Package p4.v1

Class P4RuntimeOuterClass.Role.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.Role.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.Role.Builder>
p4.v1.P4RuntimeOuterClass.Role.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, P4RuntimeOuterClass.RoleOrBuilder
Enclosing class:
P4RuntimeOuterClass.Role

public static final class P4RuntimeOuterClass.Role.Builder extends com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.Role.Builder> implements P4RuntimeOuterClass.RoleOrBuilder
Protobuf type p4.v1.Role
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.Role.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.Role.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.Role.Builder>
    • getDefaultInstanceForType

      public P4RuntimeOuterClass.Role getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public P4RuntimeOuterClass.Role build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public P4RuntimeOuterClass.Role buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public P4RuntimeOuterClass.Role.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.Role.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.Role.Builder>
    • mergeFrom

      public P4RuntimeOuterClass.Role.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.Role.Builder>
      Throws:
      IOException
    • getId

      @Deprecated public long getId()
      Deprecated.
      p4.v1.Role.id is deprecated. See p4/v1/p4runtime.proto;l=680
       Uniquely identifies this role.
       Deprecated in 1.4.0.
       
      uint64 id = 1 [deprecated = true];
      Specified by:
      getId in interface P4RuntimeOuterClass.RoleOrBuilder
      Returns:
      The id.
    • setId

      @Deprecated public P4RuntimeOuterClass.Role.Builder setId(long value)
      Deprecated.
      p4.v1.Role.id is deprecated. See p4/v1/p4runtime.proto;l=680
       Uniquely identifies this role.
       Deprecated in 1.4.0.
       
      uint64 id = 1 [deprecated = true];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      Deprecated.
      p4.v1.Role.id is deprecated. See p4/v1/p4runtime.proto;l=680
       Uniquely identifies this role.
       Deprecated in 1.4.0.
       
      uint64 id = 1 [deprecated = true];
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Added in 1.4.0.
       
      string name = 3;
      Specified by:
      getName in interface P4RuntimeOuterClass.RoleOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Added in 1.4.0.
       
      string name = 3;
      Specified by:
      getNameBytes in interface P4RuntimeOuterClass.RoleOrBuilder
      Returns:
      The bytes for name.
    • setName

      public P4RuntimeOuterClass.Role.Builder setName(String value)
       Added in 1.4.0.
       
      string name = 3;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Added in 1.4.0.
       
      string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public P4RuntimeOuterClass.Role.Builder setNameBytes(com.google.protobuf.ByteString value)
       Added in 1.4.0.
       
      string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasConfig

      public boolean hasConfig()
       Describes the role configuration, i.e. what operations, P4 entities,
       behaviors, etc. are in the scope of a given role. If config is not set
       (default case), it implies all P4 objects and control behaviors are in
       scope, i.e. full pipeline access. The format of this message is
       out-of-scope of P4Runtime.
       
      .google.protobuf.Any config = 2;
      Specified by:
      hasConfig in interface P4RuntimeOuterClass.RoleOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public com.google.protobuf.Any getConfig()
       Describes the role configuration, i.e. what operations, P4 entities,
       behaviors, etc. are in the scope of a given role. If config is not set
       (default case), it implies all P4 objects and control behaviors are in
       scope, i.e. full pipeline access. The format of this message is
       out-of-scope of P4Runtime.
       
      .google.protobuf.Any config = 2;
      Specified by:
      getConfig in interface P4RuntimeOuterClass.RoleOrBuilder
      Returns:
      The config.
    • setConfig

      public P4RuntimeOuterClass.Role.Builder setConfig(com.google.protobuf.Any value)
       Describes the role configuration, i.e. what operations, P4 entities,
       behaviors, etc. are in the scope of a given role. If config is not set
       (default case), it implies all P4 objects and control behaviors are in
       scope, i.e. full pipeline access. The format of this message is
       out-of-scope of P4Runtime.
       
      .google.protobuf.Any config = 2;
    • setConfig

      public P4RuntimeOuterClass.Role.Builder setConfig(com.google.protobuf.Any.Builder builderForValue)
       Describes the role configuration, i.e. what operations, P4 entities,
       behaviors, etc. are in the scope of a given role. If config is not set
       (default case), it implies all P4 objects and control behaviors are in
       scope, i.e. full pipeline access. The format of this message is
       out-of-scope of P4Runtime.
       
      .google.protobuf.Any config = 2;
    • mergeConfig

      public P4RuntimeOuterClass.Role.Builder mergeConfig(com.google.protobuf.Any value)
       Describes the role configuration, i.e. what operations, P4 entities,
       behaviors, etc. are in the scope of a given role. If config is not set
       (default case), it implies all P4 objects and control behaviors are in
       scope, i.e. full pipeline access. The format of this message is
       out-of-scope of P4Runtime.
       
      .google.protobuf.Any config = 2;
    • clearConfig

      public P4RuntimeOuterClass.Role.Builder clearConfig()
       Describes the role configuration, i.e. what operations, P4 entities,
       behaviors, etc. are in the scope of a given role. If config is not set
       (default case), it implies all P4 objects and control behaviors are in
       scope, i.e. full pipeline access. The format of this message is
       out-of-scope of P4Runtime.
       
      .google.protobuf.Any config = 2;
    • getConfigBuilder

      public com.google.protobuf.Any.Builder getConfigBuilder()
       Describes the role configuration, i.e. what operations, P4 entities,
       behaviors, etc. are in the scope of a given role. If config is not set
       (default case), it implies all P4 objects and control behaviors are in
       scope, i.e. full pipeline access. The format of this message is
       out-of-scope of P4Runtime.
       
      .google.protobuf.Any config = 2;
    • getConfigOrBuilder

      public com.google.protobuf.AnyOrBuilder getConfigOrBuilder()
       Describes the role configuration, i.e. what operations, P4 entities,
       behaviors, etc. are in the scope of a given role. If config is not set
       (default case), it implies all P4 objects and control behaviors are in
       scope, i.e. full pipeline access. The format of this message is
       out-of-scope of P4Runtime.
       
      .google.protobuf.Any config = 2;
      Specified by:
      getConfigOrBuilder in interface P4RuntimeOuterClass.RoleOrBuilder