public static final class CounterEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CounterEntry.Builder> implements CounterEntryOrBuilder
------------------------------------------------------------------------------ For WriteRequest, Update.Type has following semantics: - INSERT: Insert a cell in the counter array (with given data) - MODIFY: Modify the counter cell data - DELETE: Delete the counter cell (i.e. reset the counter data) For ReadRequest, the scope is defined as follows: - All counter cells for all meters if counter_id = 0 (default). - All counter cells for given counter_id if index = 0 (default).Protobuf type
p4.CounterEntry
Modifier and Type | Method and Description |
---|---|
CounterEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CounterEntry |
build() |
CounterEntry |
buildPartial() |
CounterEntry.Builder |
clear() |
CounterEntry.Builder |
clearCounterId()
uint32 counter_id = 1; |
CounterEntry.Builder |
clearData()
.p4.CounterData data = 3; |
CounterEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CounterEntry.Builder |
clearIndex()
int64 index = 2; |
CounterEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CounterEntry.Builder |
clone() |
int |
getCounterId()
uint32 counter_id = 1; |
CounterData |
getData()
.p4.CounterData data = 3; |
CounterData.Builder |
getDataBuilder()
.p4.CounterData data = 3; |
CounterDataOrBuilder |
getDataOrBuilder()
.p4.CounterData data = 3; |
CounterEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getIndex()
int64 index = 2; |
boolean |
hasData()
.p4.CounterData data = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CounterEntry.Builder |
mergeData(CounterData value)
.p4.CounterData data = 3; |
CounterEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CounterEntry.Builder |
mergeFrom(CounterEntry other) |
CounterEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
CounterEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CounterEntry.Builder |
setCounterId(int value)
uint32 counter_id = 1; |
CounterEntry.Builder |
setData(CounterData.Builder builderForValue)
.p4.CounterData data = 3; |
CounterEntry.Builder |
setData(CounterData value)
.p4.CounterData data = 3; |
CounterEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CounterEntry.Builder |
setIndex(long value)
int64 index = 2; |
CounterEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CounterEntry.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<CounterEntry.Builder>
public CounterEntry.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<CounterEntry.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<CounterEntry.Builder>
public CounterEntry getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public CounterEntry build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public CounterEntry buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public CounterEntry.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<CounterEntry.Builder>
public CounterEntry.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<CounterEntry.Builder>
public CounterEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<CounterEntry.Builder>
public CounterEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<CounterEntry.Builder>
public CounterEntry.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<CounterEntry.Builder>
public CounterEntry.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<CounterEntry.Builder>
public CounterEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CounterEntry.Builder>
public CounterEntry.Builder mergeFrom(CounterEntry other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<CounterEntry.Builder>
public CounterEntry.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<CounterEntry.Builder>
IOException
public int getCounterId()
uint32 counter_id = 1;
getCounterId
in interface CounterEntryOrBuilder
public CounterEntry.Builder setCounterId(int value)
uint32 counter_id = 1;
public CounterEntry.Builder clearCounterId()
uint32 counter_id = 1;
public long getIndex()
int64 index = 2;
getIndex
in interface CounterEntryOrBuilder
public CounterEntry.Builder setIndex(long value)
int64 index = 2;
public CounterEntry.Builder clearIndex()
int64 index = 2;
public boolean hasData()
.p4.CounterData data = 3;
hasData
in interface CounterEntryOrBuilder
public CounterData getData()
.p4.CounterData data = 3;
getData
in interface CounterEntryOrBuilder
public CounterEntry.Builder setData(CounterData value)
.p4.CounterData data = 3;
public CounterEntry.Builder setData(CounterData.Builder builderForValue)
.p4.CounterData data = 3;
public CounterEntry.Builder mergeData(CounterData value)
.p4.CounterData data = 3;
public CounterEntry.Builder clearData()
.p4.CounterData data = 3;
public CounterData.Builder getDataBuilder()
.p4.CounterData data = 3;
public CounterDataOrBuilder getDataOrBuilder()
.p4.CounterData data = 3;
getDataOrBuilder
in interface CounterEntryOrBuilder
public final CounterEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CounterEntry.Builder>
public final CounterEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CounterEntry.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.