Class LspStatsOuterClass.LspStatsRecord.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessage.Builder<LspStatsOuterClass.LspStatsRecord.Builder>
-
- org.opennms.netmgt.telemetry.protocols.jti.adapter.proto.LspStatsOuterClass.LspStatsRecord.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,LspStatsOuterClass.LspStatsRecordOrBuilder
- Enclosing class:
- LspStatsOuterClass.LspStatsRecord
public static final class LspStatsOuterClass.LspStatsRecord.Builder extends com.google.protobuf.GeneratedMessage.Builder<LspStatsOuterClass.LspStatsRecord.Builder> implements LspStatsOuterClass.LspStatsRecordOrBuilder
Protobuf typeLspStatsRecord
LSP statistics record
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LspStatsOuterClass.LspStatsRecord
build()
LspStatsOuterClass.LspStatsRecord
buildPartial()
LspStatsOuterClass.LspStatsRecord.Builder
clear()
LspStatsOuterClass.LspStatsRecord.Builder
clearByteRate()
optional uint64 byte_rate = 7;
LspStatsOuterClass.LspStatsRecord.Builder
clearBytes()
optional uint64 bytes = 5;
LspStatsOuterClass.LspStatsRecord.Builder
clearCounterName()
required string counter_name = 3;
LspStatsOuterClass.LspStatsRecord.Builder
clearInstanceIdentifier()
required uint32 instance_identifier = 2;
LspStatsOuterClass.LspStatsRecord.Builder
clearName()
required string name = 1;
LspStatsOuterClass.LspStatsRecord.Builder
clearPacketRate()
optional uint64 packet_rate = 6;
LspStatsOuterClass.LspStatsRecord.Builder
clearPackets()
optional uint64 packets = 4;
LspStatsOuterClass.LspStatsRecord.Builder
clone()
long
getByteRate()
optional uint64 byte_rate = 7;
long
getBytes()
optional uint64 bytes = 5;
java.lang.String
getCounterName()
required string counter_name = 3;
com.google.protobuf.ByteString
getCounterNameBytes()
required string counter_name = 3;
LspStatsOuterClass.LspStatsRecord
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getInstanceIdentifier()
required uint32 instance_identifier = 2;
java.lang.String
getName()
required string name = 1;
com.google.protobuf.ByteString
getNameBytes()
required string name = 1;
long
getPacketRate()
optional uint64 packet_rate = 6;
long
getPackets()
optional uint64 packets = 4;
boolean
hasByteRate()
optional uint64 byte_rate = 7;
boolean
hasBytes()
optional uint64 bytes = 5;
boolean
hasCounterName()
required string counter_name = 3;
boolean
hasInstanceIdentifier()
required uint32 instance_identifier = 2;
boolean
hasName()
required string name = 1;
boolean
hasPacketRate()
optional uint64 packet_rate = 6;
boolean
hasPackets()
optional uint64 packets = 4;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LspStatsOuterClass.LspStatsRecord.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LspStatsOuterClass.LspStatsRecord.Builder
mergeFrom(com.google.protobuf.Message other)
LspStatsOuterClass.LspStatsRecord.Builder
mergeFrom(LspStatsOuterClass.LspStatsRecord other)
LspStatsOuterClass.LspStatsRecord.Builder
setByteRate(long value)
optional uint64 byte_rate = 7;
LspStatsOuterClass.LspStatsRecord.Builder
setBytes(long value)
optional uint64 bytes = 5;
LspStatsOuterClass.LspStatsRecord.Builder
setCounterName(java.lang.String value)
required string counter_name = 3;
LspStatsOuterClass.LspStatsRecord.Builder
setCounterNameBytes(com.google.protobuf.ByteString value)
required string counter_name = 3;
LspStatsOuterClass.LspStatsRecord.Builder
setInstanceIdentifier(int value)
required uint32 instance_identifier = 2;
LspStatsOuterClass.LspStatsRecord.Builder
setName(java.lang.String value)
required string name = 1;
LspStatsOuterClass.LspStatsRecord.Builder
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
LspStatsOuterClass.LspStatsRecord.Builder
setPacketRate(long value)
optional uint64 packet_rate = 6;
LspStatsOuterClass.LspStatsRecord.Builder
setPackets(long value)
optional uint64 packets = 4;
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
-
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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<LspStatsOuterClass.LspStatsRecord.Builder>
-
clear
public LspStatsOuterClass.LspStatsRecord.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.GeneratedMessage.Builder<LspStatsOuterClass.LspStatsRecord.Builder>
-
clone
public LspStatsOuterClass.LspStatsRecord.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.GeneratedMessage.Builder<LspStatsOuterClass.LspStatsRecord.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.GeneratedMessage.Builder<LspStatsOuterClass.LspStatsRecord.Builder>
-
getDefaultInstanceForType
public LspStatsOuterClass.LspStatsRecord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LspStatsOuterClass.LspStatsRecord build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LspStatsOuterClass.LspStatsRecord buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public LspStatsOuterClass.LspStatsRecord.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LspStatsOuterClass.LspStatsRecord.Builder>
-
mergeFrom
public LspStatsOuterClass.LspStatsRecord.Builder mergeFrom(LspStatsOuterClass.LspStatsRecord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<LspStatsOuterClass.LspStatsRecord.Builder>
-
mergeFrom
public LspStatsOuterClass.LspStatsRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<LspStatsOuterClass.LspStatsRecord.Builder>
- Throws:
java.io.IOException
-
hasName
public boolean hasName()
required string name = 1;
Name of the LSP
- Specified by:
hasName
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getName
public java.lang.String getName()
required string name = 1;
Name of the LSP
- Specified by:
getName
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
Name of the LSP
- Specified by:
getNameBytes
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
setName
public LspStatsOuterClass.LspStatsRecord.Builder setName(java.lang.String value)
required string name = 1;
Name of the LSP
-
clearName
public LspStatsOuterClass.LspStatsRecord.Builder clearName()
required string name = 1;
Name of the LSP
-
setNameBytes
public LspStatsOuterClass.LspStatsRecord.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
Name of the LSP
-
hasInstanceIdentifier
public boolean hasInstanceIdentifier()
required uint32 instance_identifier = 2;
Instance Identifier for cases when RPD creates multiple instances
- Specified by:
hasInstanceIdentifier
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getInstanceIdentifier
public int getInstanceIdentifier()
required uint32 instance_identifier = 2;
Instance Identifier for cases when RPD creates multiple instances
- Specified by:
getInstanceIdentifier
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
setInstanceIdentifier
public LspStatsOuterClass.LspStatsRecord.Builder setInstanceIdentifier(int value)
required uint32 instance_identifier = 2;
Instance Identifier for cases when RPD creates multiple instances
-
clearInstanceIdentifier
public LspStatsOuterClass.LspStatsRecord.Builder clearInstanceIdentifier()
required uint32 instance_identifier = 2;
Instance Identifier for cases when RPD creates multiple instances
-
hasCounterName
public boolean hasCounterName()
required string counter_name = 3;
Name of the counter. This is useful when an LSP has multiple counters. When an LSP is resignalled, it is possible that a new counter is created in the hardware.
- Specified by:
hasCounterName
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getCounterName
public java.lang.String getCounterName()
required string counter_name = 3;
Name of the counter. This is useful when an LSP has multiple counters. When an LSP is resignalled, it is possible that a new counter is created in the hardware.
- Specified by:
getCounterName
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getCounterNameBytes
public com.google.protobuf.ByteString getCounterNameBytes()
required string counter_name = 3;
Name of the counter. This is useful when an LSP has multiple counters. When an LSP is resignalled, it is possible that a new counter is created in the hardware.
- Specified by:
getCounterNameBytes
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
setCounterName
public LspStatsOuterClass.LspStatsRecord.Builder setCounterName(java.lang.String value)
required string counter_name = 3;
Name of the counter. This is useful when an LSP has multiple counters. When an LSP is resignalled, it is possible that a new counter is created in the hardware.
-
clearCounterName
public LspStatsOuterClass.LspStatsRecord.Builder clearCounterName()
required string counter_name = 3;
Name of the counter. This is useful when an LSP has multiple counters. When an LSP is resignalled, it is possible that a new counter is created in the hardware.
-
setCounterNameBytes
public LspStatsOuterClass.LspStatsRecord.Builder setCounterNameBytes(com.google.protobuf.ByteString value)
required string counter_name = 3;
Name of the counter. This is useful when an LSP has multiple counters. When an LSP is resignalled, it is possible that a new counter is created in the hardware.
-
hasPackets
public boolean hasPackets()
optional uint64 packets = 4;
The total number of packets
- Specified by:
hasPackets
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getPackets
public long getPackets()
optional uint64 packets = 4;
The total number of packets
- Specified by:
getPackets
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
setPackets
public LspStatsOuterClass.LspStatsRecord.Builder setPackets(long value)
optional uint64 packets = 4;
The total number of packets
-
clearPackets
public LspStatsOuterClass.LspStatsRecord.Builder clearPackets()
optional uint64 packets = 4;
The total number of packets
-
hasBytes
public boolean hasBytes()
optional uint64 bytes = 5;
The total number of bytes
- Specified by:
hasBytes
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getBytes
public long getBytes()
optional uint64 bytes = 5;
The total number of bytes
- Specified by:
getBytes
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
setBytes
public LspStatsOuterClass.LspStatsRecord.Builder setBytes(long value)
optional uint64 bytes = 5;
The total number of bytes
-
clearBytes
public LspStatsOuterClass.LspStatsRecord.Builder clearBytes()
optional uint64 bytes = 5;
The total number of bytes
-
hasPacketRate
public boolean hasPacketRate()
optional uint64 packet_rate = 6;
Packet rate computed over the most recent 3 second interval
- Specified by:
hasPacketRate
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getPacketRate
public long getPacketRate()
optional uint64 packet_rate = 6;
Packet rate computed over the most recent 3 second interval
- Specified by:
getPacketRate
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
setPacketRate
public LspStatsOuterClass.LspStatsRecord.Builder setPacketRate(long value)
optional uint64 packet_rate = 6;
Packet rate computed over the most recent 3 second interval
-
clearPacketRate
public LspStatsOuterClass.LspStatsRecord.Builder clearPacketRate()
optional uint64 packet_rate = 6;
Packet rate computed over the most recent 3 second interval
-
hasByteRate
public boolean hasByteRate()
optional uint64 byte_rate = 7;
Byte rate computed over the most recent 3 second interval
- Specified by:
hasByteRate
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
getByteRate
public long getByteRate()
optional uint64 byte_rate = 7;
Byte rate computed over the most recent 3 second interval
- Specified by:
getByteRate
in interfaceLspStatsOuterClass.LspStatsRecordOrBuilder
-
setByteRate
public LspStatsOuterClass.LspStatsRecord.Builder setByteRate(long value)
optional uint64 byte_rate = 7;
Byte rate computed over the most recent 3 second interval
-
clearByteRate
public LspStatsOuterClass.LspStatsRecord.Builder clearByteRate()
optional uint64 byte_rate = 7;
Byte rate computed over the most recent 3 second interval
-
-