Package p4.config.v1

Class P4InfoOuterClass.Extern

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

public static final class P4InfoOuterClass.Extern extends com.google.protobuf.GeneratedMessage implements P4InfoOuterClass.ExternOrBuilder
 used to group all extern instances of the same type in one message
 
Protobuf type p4.config.v1.Extern
See Also:
  • Field Details

    • EXTERN_TYPE_ID_FIELD_NUMBER

      public static final int EXTERN_TYPE_ID_FIELD_NUMBER
      See Also:
    • EXTERN_TYPE_NAME_FIELD_NUMBER

      public static final int EXTERN_TYPE_NAME_FIELD_NUMBER
      See Also:
    • INSTANCES_FIELD_NUMBER

      public static final int INSTANCES_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
    • getExternTypeId

      public int getExternTypeId()
       the extern_type_id is unique for a given architecture and must be in the
       range [0x81, 0xfe].
       
      uint32 extern_type_id = 1;
      Specified by:
      getExternTypeId in interface P4InfoOuterClass.ExternOrBuilder
      Returns:
      The externTypeId.
    • getExternTypeName

      public String getExternTypeName()
      string extern_type_name = 2;
      Specified by:
      getExternTypeName in interface P4InfoOuterClass.ExternOrBuilder
      Returns:
      The externTypeName.
    • getExternTypeNameBytes

      public com.google.protobuf.ByteString getExternTypeNameBytes()
      string extern_type_name = 2;
      Specified by:
      getExternTypeNameBytes in interface P4InfoOuterClass.ExternOrBuilder
      Returns:
      The bytes for externTypeName.
    • getInstancesList

      public List<P4InfoOuterClass.ExternInstance> getInstancesList()
      repeated .p4.config.v1.ExternInstance instances = 3;
      Specified by:
      getInstancesList in interface P4InfoOuterClass.ExternOrBuilder
    • getInstancesOrBuilderList

      public List<? extends P4InfoOuterClass.ExternInstanceOrBuilder> getInstancesOrBuilderList()
      repeated .p4.config.v1.ExternInstance instances = 3;
      Specified by:
      getInstancesOrBuilderList in interface P4InfoOuterClass.ExternOrBuilder
    • getInstancesCount

      public int getInstancesCount()
      repeated .p4.config.v1.ExternInstance instances = 3;
      Specified by:
      getInstancesCount in interface P4InfoOuterClass.ExternOrBuilder
    • getInstances

      public P4InfoOuterClass.ExternInstance getInstances(int index)
      repeated .p4.config.v1.ExternInstance instances = 3;
      Specified by:
      getInstances in interface P4InfoOuterClass.ExternOrBuilder
    • getInstancesOrBuilder

      public P4InfoOuterClass.ExternInstanceOrBuilder getInstancesOrBuilder(int index)
      repeated .p4.config.v1.ExternInstance instances = 3;
      Specified by:
      getInstancesOrBuilder in interface P4InfoOuterClass.ExternOrBuilder
    • 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.Extern parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static P4InfoOuterClass.Extern 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.Extern parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static P4InfoOuterClass.Extern getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<P4InfoOuterClass.Extern> 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.Extern getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder