Class Port.InterfaceStats.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Port.InterfaceStats.Builder>
-
- org.opennms.netmgt.telemetry.protocols.jti.adapter.proto.Port.InterfaceStats.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Port.InterfaceStatsOrBuilder
- Enclosing class:
- Port.InterfaceStats
public static final class Port.InterfaceStats.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Port.InterfaceStats.Builder> implements Port.InterfaceStatsOrBuilder
Protobuf typeInterfaceStats
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Port.InterfaceStats.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Port.InterfaceStats
build()
Port.InterfaceStats
buildPartial()
Port.InterfaceStats.Builder
clear()
Port.InterfaceStats.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Port.InterfaceStats.Builder
clearIf1SecOctets()
Rate: the rate at which bytes are sent/rcvd by this interfacePort.InterfaceStats.Builder
clearIf1SecPkts()
Rate: the rate at which packets are sent/rcvd by this interface (in packets/sec)Port.InterfaceStats.Builder
clearIfBcPkts()
Counter: total no of broadcast packets sent/rcvd by this interfacePort.InterfaceStats.Builder
clearIfMcPkts()
Counter: total no of multicast packets sent/rcvd by this interfacePort.InterfaceStats.Builder
clearIfOctets()
Counter: the total number of bytes sent/rcvd by this interfacePort.InterfaceStats.Builder
clearIfPkts()
Counter: the total number of packets sent/rcvd by this interfacePort.InterfaceStats.Builder
clearIfUcPkts()
Counter: total no of unicast packets sent/rcvd by this interfacePort.InterfaceStats.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Port.InterfaceStats.Builder
clone()
Port.InterfaceStats
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getIf1SecOctets()
Rate: the rate at which bytes are sent/rcvd by this interfacelong
getIf1SecPkts()
Rate: the rate at which packets are sent/rcvd by this interface (in packets/sec)long
getIfBcPkts()
Counter: total no of broadcast packets sent/rcvd by this interfacelong
getIfMcPkts()
Counter: total no of multicast packets sent/rcvd by this interfacelong
getIfOctets()
Counter: the total number of bytes sent/rcvd by this interfacelong
getIfPkts()
Counter: the total number of packets sent/rcvd by this interfacelong
getIfUcPkts()
Counter: total no of unicast packets sent/rcvd by this interfaceboolean
hasIf1SecOctets()
Rate: the rate at which bytes are sent/rcvd by this interfaceboolean
hasIf1SecPkts()
Rate: the rate at which packets are sent/rcvd by this interface (in packets/sec)boolean
hasIfBcPkts()
Counter: total no of broadcast packets sent/rcvd by this interfaceboolean
hasIfMcPkts()
Counter: total no of multicast packets sent/rcvd by this interfaceboolean
hasIfOctets()
Counter: the total number of bytes sent/rcvd by this interfaceboolean
hasIfPkts()
Counter: the total number of packets sent/rcvd by this interfaceboolean
hasIfUcPkts()
Counter: total no of unicast packets sent/rcvd by this interfaceprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Port.InterfaceStats.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Port.InterfaceStats.Builder
mergeFrom(com.google.protobuf.Message other)
Port.InterfaceStats.Builder
mergeFrom(Port.InterfaceStats other)
Port.InterfaceStats.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Port.InterfaceStats.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Port.InterfaceStats.Builder
setIf1SecOctets(long value)
Rate: the rate at which bytes are sent/rcvd by this interfacePort.InterfaceStats.Builder
setIf1SecPkts(long value)
Rate: the rate at which packets are sent/rcvd by this interface (in packets/sec)Port.InterfaceStats.Builder
setIfBcPkts(long value)
Counter: total no of broadcast packets sent/rcvd by this interfacePort.InterfaceStats.Builder
setIfMcPkts(long value)
Counter: total no of multicast packets sent/rcvd by this interfacePort.InterfaceStats.Builder
setIfOctets(long value)
Counter: the total number of bytes sent/rcvd by this interfacePort.InterfaceStats.Builder
setIfPkts(long value)
Counter: the total number of packets sent/rcvd by this interfacePort.InterfaceStats.Builder
setIfUcPkts(long value)
Counter: total no of unicast packets sent/rcvd by this interfacePort.InterfaceStats.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Port.InterfaceStats.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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<Port.InterfaceStats.Builder>
-
clear
public Port.InterfaceStats.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<Port.InterfaceStats.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<Port.InterfaceStats.Builder>
-
getDefaultInstanceForType
public Port.InterfaceStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Port.InterfaceStats build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Port.InterfaceStats buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Port.InterfaceStats.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<Port.InterfaceStats.Builder>
-
setField
public Port.InterfaceStats.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<Port.InterfaceStats.Builder>
-
clearField
public Port.InterfaceStats.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<Port.InterfaceStats.Builder>
-
clearOneof
public Port.InterfaceStats.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<Port.InterfaceStats.Builder>
-
setRepeatedField
public Port.InterfaceStats.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<Port.InterfaceStats.Builder>
-
addRepeatedField
public Port.InterfaceStats.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<Port.InterfaceStats.Builder>
-
mergeFrom
public Port.InterfaceStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Port.InterfaceStats.Builder>
-
mergeFrom
public Port.InterfaceStats.Builder mergeFrom(Port.InterfaceStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.InterfaceStats.Builder>
-
mergeFrom
public Port.InterfaceStats.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<Port.InterfaceStats.Builder>
- Throws:
IOException
-
hasIfPkts
public boolean hasIfPkts()
Counter: the total number of packets sent/rcvd by this interface
required uint64 if_pkts = 1 [(.telemetry_options) = { ... }
- Specified by:
hasIfPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- Whether the ifPkts field is set.
-
getIfPkts
public long getIfPkts()
Counter: the total number of packets sent/rcvd by this interface
required uint64 if_pkts = 1 [(.telemetry_options) = { ... }
- Specified by:
getIfPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- The ifPkts.
-
setIfPkts
public Port.InterfaceStats.Builder setIfPkts(long value)
Counter: the total number of packets sent/rcvd by this interface
required uint64 if_pkts = 1 [(.telemetry_options) = { ... }
- Parameters:
value
- The ifPkts to set.- Returns:
- This builder for chaining.
-
clearIfPkts
public Port.InterfaceStats.Builder clearIfPkts()
Counter: the total number of packets sent/rcvd by this interface
required uint64 if_pkts = 1 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasIfOctets
public boolean hasIfOctets()
Counter: the total number of bytes sent/rcvd by this interface
required uint64 if_octets = 2 [(.telemetry_options) = { ... }
- Specified by:
hasIfOctets
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- Whether the ifOctets field is set.
-
getIfOctets
public long getIfOctets()
Counter: the total number of bytes sent/rcvd by this interface
required uint64 if_octets = 2 [(.telemetry_options) = { ... }
- Specified by:
getIfOctets
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- The ifOctets.
-
setIfOctets
public Port.InterfaceStats.Builder setIfOctets(long value)
Counter: the total number of bytes sent/rcvd by this interface
required uint64 if_octets = 2 [(.telemetry_options) = { ... }
- Parameters:
value
- The ifOctets to set.- Returns:
- This builder for chaining.
-
clearIfOctets
public Port.InterfaceStats.Builder clearIfOctets()
Counter: the total number of bytes sent/rcvd by this interface
required uint64 if_octets = 2 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasIf1SecPkts
public boolean hasIf1SecPkts()
Rate: the rate at which packets are sent/rcvd by this interface (in packets/sec)
required uint64 if_1sec_pkts = 3 [(.telemetry_options) = { ... }
- Specified by:
hasIf1SecPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- Whether the if1secPkts field is set.
-
getIf1SecPkts
public long getIf1SecPkts()
Rate: the rate at which packets are sent/rcvd by this interface (in packets/sec)
required uint64 if_1sec_pkts = 3 [(.telemetry_options) = { ... }
- Specified by:
getIf1SecPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- The if1secPkts.
-
setIf1SecPkts
public Port.InterfaceStats.Builder setIf1SecPkts(long value)
Rate: the rate at which packets are sent/rcvd by this interface (in packets/sec)
required uint64 if_1sec_pkts = 3 [(.telemetry_options) = { ... }
- Parameters:
value
- The if1secPkts to set.- Returns:
- This builder for chaining.
-
clearIf1SecPkts
public Port.InterfaceStats.Builder clearIf1SecPkts()
Rate: the rate at which packets are sent/rcvd by this interface (in packets/sec)
required uint64 if_1sec_pkts = 3 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasIf1SecOctets
public boolean hasIf1SecOctets()
Rate: the rate at which bytes are sent/rcvd by this interface
required uint64 if_1sec_octets = 4 [(.telemetry_options) = { ... }
- Specified by:
hasIf1SecOctets
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- Whether the if1secOctets field is set.
-
getIf1SecOctets
public long getIf1SecOctets()
Rate: the rate at which bytes are sent/rcvd by this interface
required uint64 if_1sec_octets = 4 [(.telemetry_options) = { ... }
- Specified by:
getIf1SecOctets
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- The if1secOctets.
-
setIf1SecOctets
public Port.InterfaceStats.Builder setIf1SecOctets(long value)
Rate: the rate at which bytes are sent/rcvd by this interface
required uint64 if_1sec_octets = 4 [(.telemetry_options) = { ... }
- Parameters:
value
- The if1secOctets to set.- Returns:
- This builder for chaining.
-
clearIf1SecOctets
public Port.InterfaceStats.Builder clearIf1SecOctets()
Rate: the rate at which bytes are sent/rcvd by this interface
required uint64 if_1sec_octets = 4 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasIfUcPkts
public boolean hasIfUcPkts()
Counter: total no of unicast packets sent/rcvd by this interface
required uint64 if_uc_pkts = 5 [(.telemetry_options) = { ... }
- Specified by:
hasIfUcPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- Whether the ifUcPkts field is set.
-
getIfUcPkts
public long getIfUcPkts()
Counter: total no of unicast packets sent/rcvd by this interface
required uint64 if_uc_pkts = 5 [(.telemetry_options) = { ... }
- Specified by:
getIfUcPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- The ifUcPkts.
-
setIfUcPkts
public Port.InterfaceStats.Builder setIfUcPkts(long value)
Counter: total no of unicast packets sent/rcvd by this interface
required uint64 if_uc_pkts = 5 [(.telemetry_options) = { ... }
- Parameters:
value
- The ifUcPkts to set.- Returns:
- This builder for chaining.
-
clearIfUcPkts
public Port.InterfaceStats.Builder clearIfUcPkts()
Counter: total no of unicast packets sent/rcvd by this interface
required uint64 if_uc_pkts = 5 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasIfMcPkts
public boolean hasIfMcPkts()
Counter: total no of multicast packets sent/rcvd by this interface
required uint64 if_mc_pkts = 6 [(.telemetry_options) = { ... }
- Specified by:
hasIfMcPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- Whether the ifMcPkts field is set.
-
getIfMcPkts
public long getIfMcPkts()
Counter: total no of multicast packets sent/rcvd by this interface
required uint64 if_mc_pkts = 6 [(.telemetry_options) = { ... }
- Specified by:
getIfMcPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- The ifMcPkts.
-
setIfMcPkts
public Port.InterfaceStats.Builder setIfMcPkts(long value)
Counter: total no of multicast packets sent/rcvd by this interface
required uint64 if_mc_pkts = 6 [(.telemetry_options) = { ... }
- Parameters:
value
- The ifMcPkts to set.- Returns:
- This builder for chaining.
-
clearIfMcPkts
public Port.InterfaceStats.Builder clearIfMcPkts()
Counter: total no of multicast packets sent/rcvd by this interface
required uint64 if_mc_pkts = 6 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasIfBcPkts
public boolean hasIfBcPkts()
Counter: total no of broadcast packets sent/rcvd by this interface
required uint64 if_bc_pkts = 7 [(.telemetry_options) = { ... }
- Specified by:
hasIfBcPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- Whether the ifBcPkts field is set.
-
getIfBcPkts
public long getIfBcPkts()
Counter: total no of broadcast packets sent/rcvd by this interface
required uint64 if_bc_pkts = 7 [(.telemetry_options) = { ... }
- Specified by:
getIfBcPkts
in interfacePort.InterfaceStatsOrBuilder
- Returns:
- The ifBcPkts.
-
setIfBcPkts
public Port.InterfaceStats.Builder setIfBcPkts(long value)
Counter: total no of broadcast packets sent/rcvd by this interface
required uint64 if_bc_pkts = 7 [(.telemetry_options) = { ... }
- Parameters:
value
- The ifBcPkts to set.- Returns:
- This builder for chaining.
-
clearIfBcPkts
public Port.InterfaceStats.Builder clearIfBcPkts()
Counter: total no of broadcast packets sent/rcvd by this interface
required uint64 if_bc_pkts = 7 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Port.InterfaceStats.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.InterfaceStats.Builder>
-
mergeUnknownFields
public final Port.InterfaceStats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.InterfaceStats.Builder>
-
-