Class MonitorDProto.NetworkDeviceCounters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
de.serosystems.proto.v3.grx.monitord.MonitorDProto.NetworkDeviceCounters.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,MonitorDProto.NetworkDeviceCountersOrBuilder
,Cloneable
- Enclosing class:
- MonitorDProto.NetworkDeviceCounters
public static final class MonitorDProto.NetworkDeviceCounters.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
implements MonitorDProto.NetworkDeviceCountersOrBuilder
Network device counters. Very similar to NetworkDeviceUsage, but gives absolute counter values instead of rates. Make sure to take care of overflows. Currently, Linux uses 32 bit counters for (probably most of) these values.Protobuf type
serosystems.proto.v3.grx.monitord.NetworkDeviceCounters
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
uint32 bytes_in = 5;
uint32 bytes_out = 6;
uint32 bytes_total = 7;
uint32 collisions = 11;
Name of the deviceuint32 errors_in = 8;
uint32 errors_out = 9;
uint32 errors_total = 10;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) uint32 packets_in = 2;
uint32 packets_out = 3;
uint32 packets_total = 4;
clone()
int
uint32 bytes_in = 5;
int
uint32 bytes_out = 6;
int
uint32 bytes_total = 7;
int
uint32 collisions = 11;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Name of the devicecom.google.protobuf.ByteString
Name of the deviceint
uint32 errors_in = 8;
int
uint32 errors_out = 9;
int
uint32 errors_total = 10;
int
uint32 packets_in = 2;
int
uint32 packets_out = 3;
int
uint32 packets_total = 4;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setBytesIn
(int value) uint32 bytes_in = 5;
setBytesOut
(int value) uint32 bytes_out = 6;
setBytesTotal
(int value) uint32 bytes_total = 7;
setCollisions
(int value) uint32 collisions = 11;
Name of the devicesetDeviceBytes
(com.google.protobuf.ByteString value) Name of the devicesetErrorsIn
(int value) uint32 errors_in = 8;
setErrorsOut
(int value) uint32 errors_out = 9;
setErrorsTotal
(int value) uint32 errors_total = 10;
setPacketsIn
(int value) uint32 packets_in = 2;
setPacketsOut
(int value) uint32 packets_out = 3;
setPacketsTotal
(int value) uint32 packets_total = 4;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
setField
public MonitorDProto.NetworkDeviceCounters.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
clearField
public MonitorDProto.NetworkDeviceCounters.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
clearOneof
public MonitorDProto.NetworkDeviceCounters.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
setRepeatedField
public MonitorDProto.NetworkDeviceCounters.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
addRepeatedField
public MonitorDProto.NetworkDeviceCounters.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
mergeFrom
public MonitorDProto.NetworkDeviceCounters.Builder mergeFrom(MonitorDProto.NetworkDeviceCounters other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
mergeFrom
public MonitorDProto.NetworkDeviceCounters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
- Throws:
IOException
-
getDevice
Name of the device
string device = 1;
- Specified by:
getDevice
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The device.
-
getDeviceBytes
public com.google.protobuf.ByteString getDeviceBytes()Name of the device
string device = 1;
- Specified by:
getDeviceBytes
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The bytes for device.
-
setDevice
Name of the device
string device = 1;
- Parameters:
value
- The device to set.- Returns:
- This builder for chaining.
-
clearDevice
Name of the device
string device = 1;
- Returns:
- This builder for chaining.
-
setDeviceBytes
public MonitorDProto.NetworkDeviceCounters.Builder setDeviceBytes(com.google.protobuf.ByteString value) Name of the device
string device = 1;
- Parameters:
value
- The bytes for device to set.- Returns:
- This builder for chaining.
-
getPacketsIn
public int getPacketsIn()uint32 packets_in = 2;
- Specified by:
getPacketsIn
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The packetsIn.
-
setPacketsIn
uint32 packets_in = 2;
- Parameters:
value
- The packetsIn to set.- Returns:
- This builder for chaining.
-
clearPacketsIn
uint32 packets_in = 2;
- Returns:
- This builder for chaining.
-
getPacketsOut
public int getPacketsOut()uint32 packets_out = 3;
- Specified by:
getPacketsOut
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The packetsOut.
-
setPacketsOut
uint32 packets_out = 3;
- Parameters:
value
- The packetsOut to set.- Returns:
- This builder for chaining.
-
clearPacketsOut
uint32 packets_out = 3;
- Returns:
- This builder for chaining.
-
getPacketsTotal
public int getPacketsTotal()uint32 packets_total = 4;
- Specified by:
getPacketsTotal
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The packetsTotal.
-
setPacketsTotal
uint32 packets_total = 4;
- Parameters:
value
- The packetsTotal to set.- Returns:
- This builder for chaining.
-
clearPacketsTotal
uint32 packets_total = 4;
- Returns:
- This builder for chaining.
-
getBytesIn
public int getBytesIn()uint32 bytes_in = 5;
- Specified by:
getBytesIn
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The bytesIn.
-
setBytesIn
uint32 bytes_in = 5;
- Parameters:
value
- The bytesIn to set.- Returns:
- This builder for chaining.
-
clearBytesIn
uint32 bytes_in = 5;
- Returns:
- This builder for chaining.
-
getBytesOut
public int getBytesOut()uint32 bytes_out = 6;
- Specified by:
getBytesOut
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The bytesOut.
-
setBytesOut
uint32 bytes_out = 6;
- Parameters:
value
- The bytesOut to set.- Returns:
- This builder for chaining.
-
clearBytesOut
uint32 bytes_out = 6;
- Returns:
- This builder for chaining.
-
getBytesTotal
public int getBytesTotal()uint32 bytes_total = 7;
- Specified by:
getBytesTotal
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The bytesTotal.
-
setBytesTotal
uint32 bytes_total = 7;
- Parameters:
value
- The bytesTotal to set.- Returns:
- This builder for chaining.
-
clearBytesTotal
uint32 bytes_total = 7;
- Returns:
- This builder for chaining.
-
getErrorsIn
public int getErrorsIn()uint32 errors_in = 8;
- Specified by:
getErrorsIn
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The errorsIn.
-
setErrorsIn
uint32 errors_in = 8;
- Parameters:
value
- The errorsIn to set.- Returns:
- This builder for chaining.
-
clearErrorsIn
uint32 errors_in = 8;
- Returns:
- This builder for chaining.
-
getErrorsOut
public int getErrorsOut()uint32 errors_out = 9;
- Specified by:
getErrorsOut
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The errorsOut.
-
setErrorsOut
uint32 errors_out = 9;
- Parameters:
value
- The errorsOut to set.- Returns:
- This builder for chaining.
-
clearErrorsOut
uint32 errors_out = 9;
- Returns:
- This builder for chaining.
-
getErrorsTotal
public int getErrorsTotal()uint32 errors_total = 10;
- Specified by:
getErrorsTotal
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The errorsTotal.
-
setErrorsTotal
uint32 errors_total = 10;
- Parameters:
value
- The errorsTotal to set.- Returns:
- This builder for chaining.
-
clearErrorsTotal
uint32 errors_total = 10;
- Returns:
- This builder for chaining.
-
getCollisions
public int getCollisions()uint32 collisions = 11;
- Specified by:
getCollisions
in interfaceMonitorDProto.NetworkDeviceCountersOrBuilder
- Returns:
- The collisions.
-
setCollisions
uint32 collisions = 11;
- Parameters:
value
- The collisions to set.- Returns:
- This builder for chaining.
-
clearCollisions
uint32 collisions = 11;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final MonitorDProto.NetworkDeviceCounters.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-
mergeUnknownFields
public final MonitorDProto.NetworkDeviceCounters.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceCounters.Builder>
-