Package p4.config.v1

Class P4InfoOuterClass.Table

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
p4.config.v1.P4InfoOuterClass.Table
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, P4InfoOuterClass.TableOrBuilder
Enclosing class:
P4InfoOuterClass

public static final class P4InfoOuterClass.Table extends com.google.protobuf.GeneratedMessage implements P4InfoOuterClass.TableOrBuilder
Protobuf type p4.config.v1.Table
See Also:
  • Field Details

    • PREAMBLE_FIELD_NUMBER

      public static final int PREAMBLE_FIELD_NUMBER
      See Also:
    • MATCH_FIELDS_FIELD_NUMBER

      public static final int MATCH_FIELDS_FIELD_NUMBER
      See Also:
    • ACTION_REFS_FIELD_NUMBER

      public static final int ACTION_REFS_FIELD_NUMBER
      See Also:
    • CONST_DEFAULT_ACTION_ID_FIELD_NUMBER

      public static final int CONST_DEFAULT_ACTION_ID_FIELD_NUMBER
      See Also:
    • INITIAL_DEFAULT_ACTION_FIELD_NUMBER

      public static final int INITIAL_DEFAULT_ACTION_FIELD_NUMBER
      See Also:
    • IMPLEMENTATION_ID_FIELD_NUMBER

      public static final int IMPLEMENTATION_ID_FIELD_NUMBER
      See Also:
    • DIRECT_RESOURCE_IDS_FIELD_NUMBER

      public static final int DIRECT_RESOURCE_IDS_FIELD_NUMBER
      See Also:
    • SIZE_FIELD_NUMBER

      public static final int SIZE_FIELD_NUMBER
      See Also:
    • IDLE_TIMEOUT_BEHAVIOR_FIELD_NUMBER

      public static final int IDLE_TIMEOUT_BEHAVIOR_FIELD_NUMBER
      See Also:
    • IS_CONST_TABLE_FIELD_NUMBER

      public static final int IS_CONST_TABLE_FIELD_NUMBER
      See Also:
    • HAS_INITIAL_ENTRIES_FIELD_NUMBER

      public static final int HAS_INITIAL_ENTRIES_FIELD_NUMBER
      See Also:
    • OTHER_PROPERTIES_FIELD_NUMBER

      public static final int OTHER_PROPERTIES_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasPreamble

      public boolean hasPreamble()
      .p4.config.v1.Preamble preamble = 1;
      Specified by:
      hasPreamble in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      Whether the preamble field is set.
    • getPreamble

      public P4InfoOuterClass.Preamble getPreamble()
      .p4.config.v1.Preamble preamble = 1;
      Specified by:
      getPreamble in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The preamble.
    • getPreambleOrBuilder

      public P4InfoOuterClass.PreambleOrBuilder getPreambleOrBuilder()
      .p4.config.v1.Preamble preamble = 1;
      Specified by:
      getPreambleOrBuilder in interface P4InfoOuterClass.TableOrBuilder
    • getMatchFieldsList

      public List<P4InfoOuterClass.MatchField> getMatchFieldsList()
      repeated .p4.config.v1.MatchField match_fields = 2;
      Specified by:
      getMatchFieldsList in interface P4InfoOuterClass.TableOrBuilder
    • getMatchFieldsOrBuilderList

      public List<? extends P4InfoOuterClass.MatchFieldOrBuilder> getMatchFieldsOrBuilderList()
      repeated .p4.config.v1.MatchField match_fields = 2;
      Specified by:
      getMatchFieldsOrBuilderList in interface P4InfoOuterClass.TableOrBuilder
    • getMatchFieldsCount

      public int getMatchFieldsCount()
      repeated .p4.config.v1.MatchField match_fields = 2;
      Specified by:
      getMatchFieldsCount in interface P4InfoOuterClass.TableOrBuilder
    • getMatchFields

      public P4InfoOuterClass.MatchField getMatchFields(int index)
      repeated .p4.config.v1.MatchField match_fields = 2;
      Specified by:
      getMatchFields in interface P4InfoOuterClass.TableOrBuilder
    • getMatchFieldsOrBuilder

      public P4InfoOuterClass.MatchFieldOrBuilder getMatchFieldsOrBuilder(int index)
      repeated .p4.config.v1.MatchField match_fields = 2;
      Specified by:
      getMatchFieldsOrBuilder in interface P4InfoOuterClass.TableOrBuilder
    • getActionRefsList

      public 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;
      Specified by:
      getActionRefsList in interface P4InfoOuterClass.TableOrBuilder
    • getActionRefsOrBuilderList

      public 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;
      Specified by:
      getActionRefsOrBuilderList in interface P4InfoOuterClass.TableOrBuilder
    • getActionRefsCount

      public 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;
      Specified by:
      getActionRefsCount in interface P4InfoOuterClass.TableOrBuilder
    • getActionRefs

      public 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;
      Specified by:
      getActionRefs in interface P4InfoOuterClass.TableOrBuilder
    • getActionRefsOrBuilder

      public 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;
      Specified by:
      getActionRefsOrBuilder in interface P4InfoOuterClass.TableOrBuilder
    • getConstDefaultActionId

      public int getConstDefaultActionId()
       0 (default value) means that the table does not have a const default action
       
      uint32 const_default_action_id = 4;
      Specified by:
      getConstDefaultActionId in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The constDefaultActionId.
    • hasInitialDefaultAction

      public 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;
      Specified by:
      hasInitialDefaultAction in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      Whether the initialDefaultAction field is set.
    • getInitialDefaultAction

      public 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;
      Specified by:
      getInitialDefaultAction in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The initialDefaultAction.
    • getInitialDefaultActionOrBuilder

      public 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;
      Specified by:
      getInitialDefaultActionOrBuilder in interface P4InfoOuterClass.TableOrBuilder
    • getImplementationId

      public 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;
      Specified by:
      getImplementationId in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The implementationId.
    • getDirectResourceIdsList

      public 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;
      Specified by:
      getDirectResourceIdsList in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      A list containing the directResourceIds.
    • getDirectResourceIdsCount

      public 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;
      Specified by:
      getDirectResourceIdsCount in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The count of directResourceIds.
    • getDirectResourceIds

      public 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;
      Specified by:
      getDirectResourceIds in interface P4InfoOuterClass.TableOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The directResourceIds at the given index.
    • getSize

      public long getSize()
       max number of entries in table
       
      int64 size = 8;
      Specified by:
      getSize in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The size.
    • getIdleTimeoutBehaviorValue

      public int getIdleTimeoutBehaviorValue()
       is idle timeout supported for this table?
       
      .p4.config.v1.Table.IdleTimeoutBehavior idle_timeout_behavior = 9;
      Specified by:
      getIdleTimeoutBehaviorValue in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The enum numeric value on the wire for idleTimeoutBehavior.
    • getIdleTimeoutBehavior

      public P4InfoOuterClass.Table.IdleTimeoutBehavior getIdleTimeoutBehavior()
       is idle timeout supported for this table?
       
      .p4.config.v1.Table.IdleTimeoutBehavior idle_timeout_behavior = 9;
      Specified by:
      getIdleTimeoutBehavior in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The idleTimeoutBehavior.
    • getIsConstTable

      public 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;
      Specified by:
      getIsConstTable in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The isConstTable.
    • getHasInitialEntries

      public 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;
      Specified by:
      getHasInitialEntries in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The hasInitialEntries.
    • hasOtherProperties

      public 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;
      Specified by:
      hasOtherProperties in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      Whether the otherProperties field is set.
    • getOtherProperties

      public 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;
      Specified by:
      getOtherProperties in interface P4InfoOuterClass.TableOrBuilder
      Returns:
      The otherProperties.
    • getOtherPropertiesOrBuilder

      public 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;
      Specified by:
      getOtherPropertiesOrBuilder in interface P4InfoOuterClass.TableOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static P4InfoOuterClass.Table parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static P4InfoOuterClass.Table parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static P4InfoOuterClass.Table parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public P4InfoOuterClass.Table.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static P4InfoOuterClass.Table.Builder newBuilder()
    • newBuilder

      public static P4InfoOuterClass.Table.Builder newBuilder(P4InfoOuterClass.Table prototype)
    • toBuilder

      public P4InfoOuterClass.Table.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected P4InfoOuterClass.Table.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static P4InfoOuterClass.Table getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<P4InfoOuterClass.Table> parser()
    • getParserForType

      public com.google.protobuf.Parser<P4InfoOuterClass.Table> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public P4InfoOuterClass.Table getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder