public static final class MeterEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MeterEntry.Builder> implements MeterEntryOrBuilder
------------------------------------------------------------------------------ For WriteRequest, Update.Type has following semantics: - INSERT: Insert the cell in the meter array (with given configuration) - MODIFY: Modify the meter cell configuration - DELETE: Delete the meter cell (i.e. reset the meter configuration) For ReadRequest, the scope is defined as follows: - All meter cells for all meters if meter_id = 0 (default). - All meter cells for given meter_id if index = 0 (default).Protobuf type
p4.MeterEntry
Modifier and Type | Method and Description |
---|---|
MeterEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MeterEntry |
build() |
MeterEntry |
buildPartial() |
MeterEntry.Builder |
clear() |
MeterEntry.Builder |
clearConfig()
.p4.MeterConfig config = 3; |
MeterEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MeterEntry.Builder |
clearIndex()
int64 index = 2; |
MeterEntry.Builder |
clearMeterId()
uint32 meter_id = 1; |
MeterEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MeterEntry.Builder |
clone() |
MeterConfig |
getConfig()
.p4.MeterConfig config = 3; |
MeterConfig.Builder |
getConfigBuilder()
.p4.MeterConfig config = 3; |
MeterConfigOrBuilder |
getConfigOrBuilder()
.p4.MeterConfig config = 3; |
MeterEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getIndex()
int64 index = 2; |
int |
getMeterId()
uint32 meter_id = 1; |
boolean |
hasConfig()
.p4.MeterConfig config = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MeterEntry.Builder |
mergeConfig(MeterConfig value)
.p4.MeterConfig config = 3; |
MeterEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MeterEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
MeterEntry.Builder |
mergeFrom(MeterEntry other) |
MeterEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MeterEntry.Builder |
setConfig(MeterConfig.Builder builderForValue)
.p4.MeterConfig config = 3; |
MeterEntry.Builder |
setConfig(MeterConfig value)
.p4.MeterConfig config = 3; |
MeterEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MeterEntry.Builder |
setIndex(long value)
int64 index = 2; |
MeterEntry.Builder |
setMeterId(int value)
uint32 meter_id = 1; |
MeterEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MeterEntry.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<MeterEntry.Builder>
public MeterEntry.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<MeterEntry.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<MeterEntry.Builder>
public MeterEntry getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MeterEntry build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MeterEntry buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MeterEntry.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<MeterEntry.Builder>
public MeterEntry.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<MeterEntry.Builder>
public MeterEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterEntry.Builder>
public MeterEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterEntry.Builder>
public MeterEntry.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<MeterEntry.Builder>
public MeterEntry.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<MeterEntry.Builder>
public MeterEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MeterEntry.Builder>
public MeterEntry.Builder mergeFrom(MeterEntry other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterEntry.Builder>
public MeterEntry.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<MeterEntry.Builder>
IOException
public int getMeterId()
uint32 meter_id = 1;
getMeterId
in interface MeterEntryOrBuilder
public MeterEntry.Builder setMeterId(int value)
uint32 meter_id = 1;
public MeterEntry.Builder clearMeterId()
uint32 meter_id = 1;
public long getIndex()
int64 index = 2;
getIndex
in interface MeterEntryOrBuilder
public MeterEntry.Builder setIndex(long value)
int64 index = 2;
public MeterEntry.Builder clearIndex()
int64 index = 2;
public boolean hasConfig()
.p4.MeterConfig config = 3;
hasConfig
in interface MeterEntryOrBuilder
public MeterConfig getConfig()
.p4.MeterConfig config = 3;
getConfig
in interface MeterEntryOrBuilder
public MeterEntry.Builder setConfig(MeterConfig value)
.p4.MeterConfig config = 3;
public MeterEntry.Builder setConfig(MeterConfig.Builder builderForValue)
.p4.MeterConfig config = 3;
public MeterEntry.Builder mergeConfig(MeterConfig value)
.p4.MeterConfig config = 3;
public MeterEntry.Builder clearConfig()
.p4.MeterConfig config = 3;
public MeterConfig.Builder getConfigBuilder()
.p4.MeterConfig config = 3;
public MeterConfigOrBuilder getConfigOrBuilder()
.p4.MeterConfig config = 3;
getConfigOrBuilder
in interface MeterEntryOrBuilder
public final MeterEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterEntry.Builder>
public final MeterEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MeterEntry.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.