public static final class DirectCounterEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DirectCounterEntry.Builder> implements DirectCounterEntryOrBuilder
------------------------------------------------------------------------------ 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 table_entry.match is empty.Protobuf type
p4.DirectCounterEntry
Modifier and Type | Method and Description |
---|---|
DirectCounterEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DirectCounterEntry |
build() |
DirectCounterEntry |
buildPartial() |
DirectCounterEntry.Builder |
clear() |
DirectCounterEntry.Builder |
clearCounterId()
uint32 counter_id = 1; |
DirectCounterEntry.Builder |
clearData()
.p4.CounterData data = 3; |
DirectCounterEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DirectCounterEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DirectCounterEntry.Builder |
clearTableEntry()
The associated table entry match.
|
DirectCounterEntry.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; |
DirectCounterEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TableEntry |
getTableEntry()
The associated table entry match.
|
TableEntry.Builder |
getTableEntryBuilder()
The associated table entry match.
|
TableEntryOrBuilder |
getTableEntryOrBuilder()
The associated table entry match.
|
boolean |
hasData()
.p4.CounterData data = 3; |
boolean |
hasTableEntry()
The associated table entry match.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DirectCounterEntry.Builder |
mergeData(CounterData value)
.p4.CounterData data = 3; |
DirectCounterEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DirectCounterEntry.Builder |
mergeFrom(DirectCounterEntry other) |
DirectCounterEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
DirectCounterEntry.Builder |
mergeTableEntry(TableEntry value)
The associated table entry match.
|
DirectCounterEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DirectCounterEntry.Builder |
setCounterId(int value)
uint32 counter_id = 1; |
DirectCounterEntry.Builder |
setData(CounterData.Builder builderForValue)
.p4.CounterData data = 3; |
DirectCounterEntry.Builder |
setData(CounterData value)
.p4.CounterData data = 3; |
DirectCounterEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DirectCounterEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DirectCounterEntry.Builder |
setTableEntry(TableEntry.Builder builderForValue)
The associated table entry match.
|
DirectCounterEntry.Builder |
setTableEntry(TableEntry value)
The associated table entry match.
|
DirectCounterEntry.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<DirectCounterEntry.Builder>
public DirectCounterEntry.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<DirectCounterEntry.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<DirectCounterEntry.Builder>
public DirectCounterEntry getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DirectCounterEntry build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DirectCounterEntry buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DirectCounterEntry.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<DirectCounterEntry.Builder>
public DirectCounterEntry.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<DirectCounterEntry.Builder>
public DirectCounterEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<DirectCounterEntry.Builder>
public DirectCounterEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<DirectCounterEntry.Builder>
public DirectCounterEntry.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<DirectCounterEntry.Builder>
public DirectCounterEntry.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<DirectCounterEntry.Builder>
public DirectCounterEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DirectCounterEntry.Builder>
public DirectCounterEntry.Builder mergeFrom(DirectCounterEntry other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<DirectCounterEntry.Builder>
public DirectCounterEntry.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<DirectCounterEntry.Builder>
IOException
public int getCounterId()
uint32 counter_id = 1;
getCounterId
in interface DirectCounterEntryOrBuilder
public DirectCounterEntry.Builder setCounterId(int value)
uint32 counter_id = 1;
public DirectCounterEntry.Builder clearCounterId()
uint32 counter_id = 1;
public boolean hasTableEntry()
The associated table entry match. table_entry.action is ignored. Other fields specify the match.
.p4.TableEntry table_entry = 2;
hasTableEntry
in interface DirectCounterEntryOrBuilder
public TableEntry getTableEntry()
The associated table entry match. table_entry.action is ignored. Other fields specify the match.
.p4.TableEntry table_entry = 2;
getTableEntry
in interface DirectCounterEntryOrBuilder
public DirectCounterEntry.Builder setTableEntry(TableEntry value)
The associated table entry match. table_entry.action is ignored. Other fields specify the match.
.p4.TableEntry table_entry = 2;
public DirectCounterEntry.Builder setTableEntry(TableEntry.Builder builderForValue)
The associated table entry match. table_entry.action is ignored. Other fields specify the match.
.p4.TableEntry table_entry = 2;
public DirectCounterEntry.Builder mergeTableEntry(TableEntry value)
The associated table entry match. table_entry.action is ignored. Other fields specify the match.
.p4.TableEntry table_entry = 2;
public DirectCounterEntry.Builder clearTableEntry()
The associated table entry match. table_entry.action is ignored. Other fields specify the match.
.p4.TableEntry table_entry = 2;
public TableEntry.Builder getTableEntryBuilder()
The associated table entry match. table_entry.action is ignored. Other fields specify the match.
.p4.TableEntry table_entry = 2;
public TableEntryOrBuilder getTableEntryOrBuilder()
The associated table entry match. table_entry.action is ignored. Other fields specify the match.
.p4.TableEntry table_entry = 2;
getTableEntryOrBuilder
in interface DirectCounterEntryOrBuilder
public boolean hasData()
.p4.CounterData data = 3;
hasData
in interface DirectCounterEntryOrBuilder
public CounterData getData()
.p4.CounterData data = 3;
getData
in interface DirectCounterEntryOrBuilder
public DirectCounterEntry.Builder setData(CounterData value)
.p4.CounterData data = 3;
public DirectCounterEntry.Builder setData(CounterData.Builder builderForValue)
.p4.CounterData data = 3;
public DirectCounterEntry.Builder mergeData(CounterData value)
.p4.CounterData data = 3;
public DirectCounterEntry.Builder clearData()
.p4.CounterData data = 3;
public CounterData.Builder getDataBuilder()
.p4.CounterData data = 3;
public CounterDataOrBuilder getDataOrBuilder()
.p4.CounterData data = 3;
getDataOrBuilder
in interface DirectCounterEntryOrBuilder
public final DirectCounterEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DirectCounterEntry.Builder>
public final DirectCounterEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DirectCounterEntry.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.