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 Details

    • hasPreamble

      boolean hasPreamble()
      .p4.config.v1.Preamble preamble = 1;
      Returns:
      Whether the preamble field is set.
    • 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

      P4InfoOuterClass.MatchField getMatchFields(int index)
      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

      P4InfoOuterClass.MatchFieldOrBuilder getMatchFieldsOrBuilder(int index)
      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

      P4InfoOuterClass.ActionRef getActionRefs(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 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

      P4InfoOuterClass.ActionRefOrBuilder getActionRefsOrBuilder(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 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

      List<Integer> 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

       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;