Package p4.config.v1
Interface P4InfoOuterClass.TableOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
P4InfoOuterClass.Table,P4InfoOuterClass.Table.Builder
- Enclosing class:
P4InfoOuterClass
public static interface P4InfoOuterClass.TableOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetActionRefs(int index) even when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotationsinteven when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotationseven when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotationsgetActionRefsOrBuilder(int index) even when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotationsList<? extends P4InfoOuterClass.ActionRefOrBuilder> even when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotationsint0 (default value) means that the table does not have a const default actionintgetDirectResourceIds(int index) ids of the direct resources (if any) attached to this table; for now this includes only direct counters and direct meters, but other resources may be added in the futureintids of the direct resources (if any) attached to this table; for now this includes only direct counters and direct meters, but other resources may be added in the futureids of the direct resources (if any) attached to this table; for now this includes only direct counters and direct meters, but other resources may be added in the futurebooleanTrue if and only if the table has initial entries defined using the 'entries' table property in the P4 source code, either with or without the 'const' qualifier on 'entries', and there is at least one entry in that list.is idle timeout supported for this table?intis idle timeout supported for this table?intP4 id of the "implementation" for this table (e.g.The initial default action of the table.The initial default action of the table.booleanTrue if and only if the table's entries are immutable, i.e.getMatchFields(int index) repeated .p4.config.v1.MatchField match_fields = 2;intrepeated .p4.config.v1.MatchField match_fields = 2;repeated .p4.config.v1.MatchField match_fields = 2;getMatchFieldsOrBuilder(int index) repeated .p4.config.v1.MatchField match_fields = 2;List<? extends P4InfoOuterClass.MatchFieldOrBuilder> repeated .p4.config.v1.MatchField match_fields = 2;com.google.protobuf.Anyarchitecture-specific table properties which are not part of the core P4 language or of the PSA architecture.com.google.protobuf.AnyOrBuilderarchitecture-specific table properties which are not part of the core P4 language or of the PSA architecture..p4.config.v1.Preamble preamble = 1;.p4.config.v1.Preamble preamble = 1;longgetSize()max number of entries in tablebooleanThe initial default action of the table.booleanarchitecture-specific table properties which are not part of the core P4 language or of the PSA architecture.boolean.p4.config.v1.Preamble preamble = 1;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasPreamble
boolean hasPreamble().p4.config.v1.Preamble preamble = 1;- Returns:
- Whether the preamble field is set.
-
getPreamble
P4InfoOuterClass.Preamble getPreamble().p4.config.v1.Preamble preamble = 1;- Returns:
- The preamble.
-
getPreambleOrBuilder
P4InfoOuterClass.PreambleOrBuilder getPreambleOrBuilder().p4.config.v1.Preamble preamble = 1; -
getMatchFieldsList
List<P4InfoOuterClass.MatchField> getMatchFieldsList()repeated .p4.config.v1.MatchField match_fields = 2; -
getMatchFields
repeated .p4.config.v1.MatchField match_fields = 2; -
getMatchFieldsCount
int getMatchFieldsCount()repeated .p4.config.v1.MatchField match_fields = 2; -
getMatchFieldsOrBuilderList
List<? extends P4InfoOuterClass.MatchFieldOrBuilder> getMatchFieldsOrBuilderList()repeated .p4.config.v1.MatchField match_fields = 2; -
getMatchFieldsOrBuilder
repeated .p4.config.v1.MatchField match_fields = 2; -
getActionRefsList
List<P4InfoOuterClass.ActionRef> getActionRefsList()even when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotations
repeated .p4.config.v1.ActionRef action_refs = 3; -
getActionRefs
even when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotations
repeated .p4.config.v1.ActionRef action_refs = 3; -
getActionRefsCount
int getActionRefsCount()even when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotations
repeated .p4.config.v1.ActionRef action_refs = 3; -
getActionRefsOrBuilderList
List<? extends P4InfoOuterClass.ActionRefOrBuilder> getActionRefsOrBuilderList()even when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotations
repeated .p4.config.v1.ActionRef action_refs = 3; -
getActionRefsOrBuilder
even when the table is indirect (see implementation_id) below, this field includes all possible actions for the table; by using ActionRef instead of a repeated field of action ids, each action reference in a P4 table is able to have its own annotations
repeated .p4.config.v1.ActionRef action_refs = 3; -
getConstDefaultActionId
int getConstDefaultActionId()0 (default value) means that the table does not have a const default action
uint32 const_default_action_id = 4;- Returns:
- The constDefaultActionId.
-
hasInitialDefaultAction
boolean hasInitialDefaultAction()The initial default action of the table. This can be overridden at runtime. Added in 1.4.0.
.p4.config.v1.TableActionCall initial_default_action = 5;- Returns:
- Whether the initialDefaultAction field is set.
-
getInitialDefaultAction
P4InfoOuterClass.TableActionCall getInitialDefaultAction()The initial default action of the table. This can be overridden at runtime. Added in 1.4.0.
.p4.config.v1.TableActionCall initial_default_action = 5;- Returns:
- The initialDefaultAction.
-
getInitialDefaultActionOrBuilder
P4InfoOuterClass.TableActionCallOrBuilder getInitialDefaultActionOrBuilder()The initial default action of the table. This can be overridden at runtime. Added in 1.4.0.
.p4.config.v1.TableActionCall initial_default_action = 5; -
getImplementationId
int getImplementationId()P4 id of the "implementation" for this table (e.g. action profile id); 0 (default value) means that the table is a regular (direct) match table. As of today, only action profiles are supported but other table implementations may be added in the future
uint32 implementation_id = 6;- Returns:
- The implementationId.
-
getDirectResourceIdsList
ids of the direct resources (if any) attached to this table; for now this includes only direct counters and direct meters, but other resources may be added in the future
repeated uint32 direct_resource_ids = 7;- Returns:
- A list containing the directResourceIds.
-
getDirectResourceIdsCount
int getDirectResourceIdsCount()ids of the direct resources (if any) attached to this table; for now this includes only direct counters and direct meters, but other resources may be added in the future
repeated uint32 direct_resource_ids = 7;- Returns:
- The count of directResourceIds.
-
getDirectResourceIds
int getDirectResourceIds(int index) ids of the direct resources (if any) attached to this table; for now this includes only direct counters and direct meters, but other resources may be added in the future
repeated uint32 direct_resource_ids = 7;- Parameters:
index- The index of the element to return.- Returns:
- The directResourceIds at the given index.
-
getSize
long getSize()max number of entries in table
int64 size = 8;- Returns:
- The size.
-
getIdleTimeoutBehaviorValue
int getIdleTimeoutBehaviorValue()is idle timeout supported for this table?
.p4.config.v1.Table.IdleTimeoutBehavior idle_timeout_behavior = 9;- Returns:
- The enum numeric value on the wire for idleTimeoutBehavior.
-
getIdleTimeoutBehavior
P4InfoOuterClass.Table.IdleTimeoutBehavior getIdleTimeoutBehavior()is idle timeout supported for this table?
.p4.config.v1.Table.IdleTimeoutBehavior idle_timeout_behavior = 9;- Returns:
- The idleTimeoutBehavior.
-
getIsConstTable
boolean getIsConstTable()True if and only if the table's entries are immutable, i.e. defined using the 'const entries' table property in the P4 source code, and thus entries cannot be deleted, modified, or inserted at run time.
bool is_const_table = 10;- Returns:
- The isConstTable.
-
getHasInitialEntries
boolean getHasInitialEntries()True if and only if the table has initial entries defined using the 'entries' table property in the P4 source code, either with or without the 'const' qualifier on 'entries', and there is at least one entry in that list. This field is false if the list of entries is empty in the P4 source code. Added in 1.4.0.
bool has_initial_entries = 11;- Returns:
- The hasInitialEntries.
-
hasOtherProperties
boolean hasOtherProperties()architecture-specific table properties which are not part of the core P4 language or of the PSA architecture.
.google.protobuf.Any other_properties = 100;- Returns:
- Whether the otherProperties field is set.
-
getOtherProperties
com.google.protobuf.Any getOtherProperties()architecture-specific table properties which are not part of the core P4 language or of the PSA architecture.
.google.protobuf.Any other_properties = 100;- Returns:
- The otherProperties.
-
getOtherPropertiesOrBuilder
com.google.protobuf.AnyOrBuilder getOtherPropertiesOrBuilder()architecture-specific table properties which are not part of the core P4 language or of the PSA architecture.
.google.protobuf.Any other_properties = 100;
-