public static final class MeterConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder> implements MeterConfigOrBuilder
Modeled as RFC 2698: A Two Rate Three Color Marker (trTCM) The trTCM meters a packet stream and marks its packets based on two rates, Peak Information Rate (PIR) and Committed Information Rate (CIR), and their associated burst sizes to be either green, yellow, or red. A packet is marked red if it exceeds the PIR. Otherwise it is marked either yellow or green depending on whether it exceeds or doesn't exceed the CIR. TODO: This is not metering protocol-independent!Protobuf type
p4.MeterConfig
Modifier and Type | Method and Description |
---|---|
MeterConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MeterConfig |
build() |
MeterConfig |
buildPartial() |
MeterConfig.Builder |
clear() |
MeterConfig.Builder |
clearCburst()
Committed burst size
|
MeterConfig.Builder |
clearCir()
Committed information rate (units per sec)
|
MeterConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MeterConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MeterConfig.Builder |
clearPburst()
Peak burst size
|
MeterConfig.Builder |
clearPir()
Peak information rate (units per sec)
|
MeterConfig.Builder |
clone() |
long |
getCburst()
Committed burst size
|
long |
getCir()
Committed information rate (units per sec)
|
MeterConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getPburst()
Peak burst size
|
long |
getPir()
Peak information rate (units per sec)
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MeterConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MeterConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
MeterConfig.Builder |
mergeFrom(MeterConfig other) |
MeterConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MeterConfig.Builder |
setCburst(long value)
Committed burst size
|
MeterConfig.Builder |
setCir(long value)
Committed information rate (units per sec)
|
MeterConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MeterConfig.Builder |
setPburst(long value)
Peak burst size
|
MeterConfig.Builder |
setPir(long value)
Peak information rate (units per sec)
|
MeterConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MeterConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MeterConfig build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MeterConfig buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MeterConfig.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MeterConfig.Builder>
public MeterConfig.Builder mergeFrom(MeterConfig other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public MeterConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MeterConfig.Builder>
IOException
public long getCir()
Committed information rate (units per sec)
int64 cir = 1;
getCir
in interface MeterConfigOrBuilder
public MeterConfig.Builder setCir(long value)
Committed information rate (units per sec)
int64 cir = 1;
public MeterConfig.Builder clearCir()
Committed information rate (units per sec)
int64 cir = 1;
public long getCburst()
Committed burst size
int64 cburst = 2;
getCburst
in interface MeterConfigOrBuilder
public MeterConfig.Builder setCburst(long value)
Committed burst size
int64 cburst = 2;
public MeterConfig.Builder clearCburst()
Committed burst size
int64 cburst = 2;
public long getPir()
Peak information rate (units per sec)
int64 pir = 3;
getPir
in interface MeterConfigOrBuilder
public MeterConfig.Builder setPir(long value)
Peak information rate (units per sec)
int64 pir = 3;
public MeterConfig.Builder clearPir()
Peak information rate (units per sec)
int64 pir = 3;
public long getPburst()
Peak burst size
int64 pburst = 4;
getPburst
in interface MeterConfigOrBuilder
public MeterConfig.Builder setPburst(long value)
Peak burst size
int64 pburst = 4;
public MeterConfig.Builder clearPburst()
Peak burst size
int64 pburst = 4;
public final MeterConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
public final MeterConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterConfig.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.