Class MonitorDProto.NetworkDeviceUsage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceUsage.Builder>
de.serosystems.proto.v3.grx.monitord.MonitorDProto.NetworkDeviceUsage.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,MonitorDProto.NetworkDeviceUsageOrBuilder
,Cloneable
- Enclosing class:
- MonitorDProto.NetworkDeviceUsage
public static final class MonitorDProto.NetworkDeviceUsage.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceUsage.Builder>
implements MonitorDProto.NetworkDeviceUsageOrBuilder
Network device usage: rates for the measurement period, i.e. packets/s, bytes/s, errors/s and collisions/s.Protobuf type
serosystems.proto.v3.grx.monitord.NetworkDeviceUsage
-
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 device.uint32 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 device.com.google.protobuf.ByteString
Name of the device.int
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 device.setDeviceBytes
(com.google.protobuf.ByteString value) Name of the device.setErrorsIn
(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.NetworkDeviceUsage.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.NetworkDeviceUsage.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.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
-
setField
public MonitorDProto.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
-
clearField
public MonitorDProto.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
-
clearOneof
public MonitorDProto.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
-
setRepeatedField
public MonitorDProto.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
-
addRepeatedField
public MonitorDProto.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MonitorDProto.NetworkDeviceUsage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.NetworkDeviceUsage.Builder>
-
mergeFrom
public MonitorDProto.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
- Throws:
IOException
-
getDevice
Name of the device.
string device = 1;
- Specified by:
getDevice
in interfaceMonitorDProto.NetworkDeviceUsageOrBuilder
- Returns:
- The device.
-
getDeviceBytes
public com.google.protobuf.ByteString getDeviceBytes()Name of the device.
string device = 1;
- Specified by:
getDeviceBytes
in interfaceMonitorDProto.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsage.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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsageOrBuilder
- 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.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
-
mergeUnknownFields
public final MonitorDProto.NetworkDeviceUsage.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.NetworkDeviceUsage.Builder>
-