public static final class TableEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder> implements TableEntryOrBuilder
From Section 11 of P4_14 spec: At run time, the table entry insert operation (not part of P4) must specify: - Values for each field specified in the reads entry. - The name of the action from the action_specification or the action_profile_specification and the parameters to be passed to the action function when it is called.Protobuf type
p4.TableEntry| Modifier and Type | Method and Description |
|---|---|
TableEntry.Builder |
addAllMatch(Iterable<? extends FieldMatch> values)
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
addMatch(FieldMatch.Builder builderForValue)
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
addMatch(FieldMatch value)
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
addMatch(int index,
FieldMatch.Builder builderForValue)
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
addMatch(int index,
FieldMatch value)
repeated .p4.FieldMatch match = 2; |
FieldMatch.Builder |
addMatchBuilder()
repeated .p4.FieldMatch match = 2; |
FieldMatch.Builder |
addMatchBuilder(int index)
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TableEntry |
build() |
TableEntry |
buildPartial() |
TableEntry.Builder |
clear() |
TableEntry.Builder |
clearAction()
.p4.TableAction action = 3; |
TableEntry.Builder |
clearControllerMetadata()
Metadata (cookie) opaque to the target.
|
TableEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TableEntry.Builder |
clearMatch()
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TableEntry.Builder |
clearPriority()
Ignored unless match implies a TCAM lookup, i.e.
|
TableEntry.Builder |
clearTableId()
uint32 table_id = 1; |
TableEntry.Builder |
clone() |
TableAction |
getAction()
.p4.TableAction action = 3; |
TableAction.Builder |
getActionBuilder()
.p4.TableAction action = 3; |
TableActionOrBuilder |
getActionOrBuilder()
.p4.TableAction action = 3; |
long |
getControllerMetadata()
Metadata (cookie) opaque to the target.
|
TableEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
FieldMatch |
getMatch(int index)
repeated .p4.FieldMatch match = 2; |
FieldMatch.Builder |
getMatchBuilder(int index)
repeated .p4.FieldMatch match = 2; |
List<FieldMatch.Builder> |
getMatchBuilderList()
repeated .p4.FieldMatch match = 2; |
int |
getMatchCount()
repeated .p4.FieldMatch match = 2; |
List<FieldMatch> |
getMatchList()
repeated .p4.FieldMatch match = 2; |
FieldMatchOrBuilder |
getMatchOrBuilder(int index)
repeated .p4.FieldMatch match = 2; |
List<? extends FieldMatchOrBuilder> |
getMatchOrBuilderList()
repeated .p4.FieldMatch match = 2; |
int |
getPriority()
Ignored unless match implies a TCAM lookup, i.e.
|
int |
getTableId()
uint32 table_id = 1; |
boolean |
hasAction()
.p4.TableAction action = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TableEntry.Builder |
mergeAction(TableAction value)
.p4.TableAction action = 3; |
TableEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TableEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
TableEntry.Builder |
mergeFrom(TableEntry other) |
TableEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TableEntry.Builder |
removeMatch(int index)
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
setAction(TableAction.Builder builderForValue)
.p4.TableAction action = 3; |
TableEntry.Builder |
setAction(TableAction value)
.p4.TableAction action = 3; |
TableEntry.Builder |
setControllerMetadata(long value)
Metadata (cookie) opaque to the target.
|
TableEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TableEntry.Builder |
setMatch(int index,
FieldMatch.Builder builderForValue)
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
setMatch(int index,
FieldMatch value)
repeated .p4.FieldMatch match = 2; |
TableEntry.Builder |
setPriority(int value)
Ignored unless match implies a TCAM lookup, i.e.
|
TableEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TableEntry.Builder |
setTableId(int value)
uint32 table_id = 1; |
TableEntry.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TableEntry build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TableEntry buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TableEntry.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TableEntry.Builder>public TableEntry.Builder mergeFrom(TableEntry other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public TableEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TableEntry.Builder>IOExceptionpublic int getTableId()
uint32 table_id = 1;getTableId in interface TableEntryOrBuilderpublic TableEntry.Builder setTableId(int value)
uint32 table_id = 1;public TableEntry.Builder clearTableId()
uint32 table_id = 1;public List<FieldMatch> getMatchList()
repeated .p4.FieldMatch match = 2;getMatchList in interface TableEntryOrBuilderpublic int getMatchCount()
repeated .p4.FieldMatch match = 2;getMatchCount in interface TableEntryOrBuilderpublic FieldMatch getMatch(int index)
repeated .p4.FieldMatch match = 2;getMatch in interface TableEntryOrBuilderpublic TableEntry.Builder setMatch(int index, FieldMatch value)
repeated .p4.FieldMatch match = 2;public TableEntry.Builder setMatch(int index, FieldMatch.Builder builderForValue)
repeated .p4.FieldMatch match = 2;public TableEntry.Builder addMatch(FieldMatch value)
repeated .p4.FieldMatch match = 2;public TableEntry.Builder addMatch(int index, FieldMatch value)
repeated .p4.FieldMatch match = 2;public TableEntry.Builder addMatch(FieldMatch.Builder builderForValue)
repeated .p4.FieldMatch match = 2;public TableEntry.Builder addMatch(int index, FieldMatch.Builder builderForValue)
repeated .p4.FieldMatch match = 2;public TableEntry.Builder addAllMatch(Iterable<? extends FieldMatch> values)
repeated .p4.FieldMatch match = 2;public TableEntry.Builder clearMatch()
repeated .p4.FieldMatch match = 2;public TableEntry.Builder removeMatch(int index)
repeated .p4.FieldMatch match = 2;public FieldMatch.Builder getMatchBuilder(int index)
repeated .p4.FieldMatch match = 2;public FieldMatchOrBuilder getMatchOrBuilder(int index)
repeated .p4.FieldMatch match = 2;getMatchOrBuilder in interface TableEntryOrBuilderpublic List<? extends FieldMatchOrBuilder> getMatchOrBuilderList()
repeated .p4.FieldMatch match = 2;getMatchOrBuilderList in interface TableEntryOrBuilderpublic FieldMatch.Builder addMatchBuilder()
repeated .p4.FieldMatch match = 2;public FieldMatch.Builder addMatchBuilder(int index)
repeated .p4.FieldMatch match = 2;public List<FieldMatch.Builder> getMatchBuilderList()
repeated .p4.FieldMatch match = 2;public boolean hasAction()
.p4.TableAction action = 3;hasAction in interface TableEntryOrBuilderpublic TableAction getAction()
.p4.TableAction action = 3;getAction in interface TableEntryOrBuilderpublic TableEntry.Builder setAction(TableAction value)
.p4.TableAction action = 3;public TableEntry.Builder setAction(TableAction.Builder builderForValue)
.p4.TableAction action = 3;public TableEntry.Builder mergeAction(TableAction value)
.p4.TableAction action = 3;public TableEntry.Builder clearAction()
.p4.TableAction action = 3;public TableAction.Builder getActionBuilder()
.p4.TableAction action = 3;public TableActionOrBuilder getActionOrBuilder()
.p4.TableAction action = 3;getActionOrBuilder in interface TableEntryOrBuilderpublic int getPriority()
Ignored unless match implies a TCAM lookup, i.e. at least one of the match fields is Ternary or Range. A higher number indicates higher priority. Only the highest priority entry that matches the packet must be selected. Given an existing entry with prority k, if the controller tries to insert or modify another entry with priority k such that a packet may match both entries, an error is returned. This will be the case if the overlap is strict (entries are identical) or not. In the future, if there is a use-case, a table-level annotation may be introduced to make the overlap check non-strict. In that case, if there are multiple matching entries with the same highest priority, the selected entry will be explicitly undefined.
int32 priority = 4;getPriority in interface TableEntryOrBuilderpublic TableEntry.Builder setPriority(int value)
Ignored unless match implies a TCAM lookup, i.e. at least one of the match fields is Ternary or Range. A higher number indicates higher priority. Only the highest priority entry that matches the packet must be selected. Given an existing entry with prority k, if the controller tries to insert or modify another entry with priority k such that a packet may match both entries, an error is returned. This will be the case if the overlap is strict (entries are identical) or not. In the future, if there is a use-case, a table-level annotation may be introduced to make the overlap check non-strict. In that case, if there are multiple matching entries with the same highest priority, the selected entry will be explicitly undefined.
int32 priority = 4;public TableEntry.Builder clearPriority()
Ignored unless match implies a TCAM lookup, i.e. at least one of the match fields is Ternary or Range. A higher number indicates higher priority. Only the highest priority entry that matches the packet must be selected. Given an existing entry with prority k, if the controller tries to insert or modify another entry with priority k such that a packet may match both entries, an error is returned. This will be the case if the overlap is strict (entries are identical) or not. In the future, if there is a use-case, a table-level annotation may be introduced to make the overlap check non-strict. In that case, if there are multiple matching entries with the same highest priority, the selected entry will be explicitly undefined.
int32 priority = 4;public long getControllerMetadata()
Metadata (cookie) opaque to the target. There is no requirement of where this is stored, as long as it is returned with the rest of the entry in a Read RPC.
uint64 controller_metadata = 5;getControllerMetadata in interface TableEntryOrBuilderpublic TableEntry.Builder setControllerMetadata(long value)
Metadata (cookie) opaque to the target. There is no requirement of where this is stored, as long as it is returned with the rest of the entry in a Read RPC.
uint64 controller_metadata = 5;public TableEntry.Builder clearControllerMetadata()
Metadata (cookie) opaque to the target. There is no requirement of where this is stored, as long as it is returned with the rest of the entry in a Read RPC.
uint64 controller_metadata = 5;public final TableEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>public final TableEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>Copyright © 2018 OpenDaylight. All rights reserved.