Class RoleInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
org.yamcs.protobuf.RoleInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, RoleInfoOrBuilder
Enclosing class:
RoleInfo

public static final class RoleInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder> implements RoleInfoOrBuilder
Protobuf type yamcs.protobuf.iam.RoleInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • clear

      public RoleInfo.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.GeneratedMessageV3.Builder<RoleInfo.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.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • getDefaultInstanceForType

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

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

      public RoleInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public RoleInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • setField

      public RoleInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • clearField

      public RoleInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • clearOneof

      public RoleInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • setRepeatedField

      public RoleInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • addRepeatedField

      public RoleInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • mergeFrom

      public RoleInfo.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<RoleInfo.Builder>
    • mergeFrom

      public RoleInfo.Builder mergeFrom(RoleInfo other)
    • isInitialized

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

      public RoleInfo.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<RoleInfo.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       Role name
       
      optional string name = 1;
      Specified by:
      hasName in interface RoleInfoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Role name
       
      optional string name = 1;
      Specified by:
      getName in interface RoleInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Role name
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface RoleInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RoleInfo.Builder setName(String value)
       Role name
       
      optional string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RoleInfo.Builder clearName()
       Role name
       
      optional string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public RoleInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       Role name
       
      optional string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       Role description
       
      optional string description = 2;
      Specified by:
      hasDescription in interface RoleInfoOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       Role description
       
      optional string description = 2;
      Specified by:
      getDescription in interface RoleInfoOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Role description
       
      optional string description = 2;
      Specified by:
      getDescriptionBytes in interface RoleInfoOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public RoleInfo.Builder setDescription(String value)
       Role description
       
      optional string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public RoleInfo.Builder clearDescription()
       Role description
       
      optional string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public RoleInfo.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Role description
       
      optional string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getSystemPrivilegesList

      public com.google.protobuf.ProtocolStringList getSystemPrivilegesList()
       System privileges
       
      repeated string systemPrivileges = 3;
      Specified by:
      getSystemPrivilegesList in interface RoleInfoOrBuilder
      Returns:
      A list containing the systemPrivileges.
    • getSystemPrivilegesCount

      public int getSystemPrivilegesCount()
       System privileges
       
      repeated string systemPrivileges = 3;
      Specified by:
      getSystemPrivilegesCount in interface RoleInfoOrBuilder
      Returns:
      The count of systemPrivileges.
    • getSystemPrivileges

      public String getSystemPrivileges(int index)
       System privileges
       
      repeated string systemPrivileges = 3;
      Specified by:
      getSystemPrivileges in interface RoleInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The systemPrivileges at the given index.
    • getSystemPrivilegesBytes

      public com.google.protobuf.ByteString getSystemPrivilegesBytes(int index)
       System privileges
       
      repeated string systemPrivileges = 3;
      Specified by:
      getSystemPrivilegesBytes in interface RoleInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the systemPrivileges at the given index.
    • setSystemPrivileges

      public RoleInfo.Builder setSystemPrivileges(int index, String value)
       System privileges
       
      repeated string systemPrivileges = 3;
      Parameters:
      index - The index to set the value at.
      value - The systemPrivileges to set.
      Returns:
      This builder for chaining.
    • addSystemPrivileges

      public RoleInfo.Builder addSystemPrivileges(String value)
       System privileges
       
      repeated string systemPrivileges = 3;
      Parameters:
      value - The systemPrivileges to add.
      Returns:
      This builder for chaining.
    • addAllSystemPrivileges

      public RoleInfo.Builder addAllSystemPrivileges(Iterable<String> values)
       System privileges
       
      repeated string systemPrivileges = 3;
      Parameters:
      values - The systemPrivileges to add.
      Returns:
      This builder for chaining.
    • clearSystemPrivileges

      public RoleInfo.Builder clearSystemPrivileges()
       System privileges
       
      repeated string systemPrivileges = 3;
      Returns:
      This builder for chaining.
    • addSystemPrivilegesBytes

      public RoleInfo.Builder addSystemPrivilegesBytes(com.google.protobuf.ByteString value)
       System privileges
       
      repeated string systemPrivileges = 3;
      Parameters:
      value - The bytes of the systemPrivileges to add.
      Returns:
      This builder for chaining.
    • getObjectPrivilegesList

      public List<ObjectPrivilegeInfo> getObjectPrivilegesList()
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
      Specified by:
      getObjectPrivilegesList in interface RoleInfoOrBuilder
    • getObjectPrivilegesCount

      public int getObjectPrivilegesCount()
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
      Specified by:
      getObjectPrivilegesCount in interface RoleInfoOrBuilder
    • getObjectPrivileges

      public ObjectPrivilegeInfo getObjectPrivileges(int index)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
      Specified by:
      getObjectPrivileges in interface RoleInfoOrBuilder
    • setObjectPrivileges

      public RoleInfo.Builder setObjectPrivileges(int index, ObjectPrivilegeInfo value)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • setObjectPrivileges

      public RoleInfo.Builder setObjectPrivileges(int index, ObjectPrivilegeInfo.Builder builderForValue)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • addObjectPrivileges

      public RoleInfo.Builder addObjectPrivileges(ObjectPrivilegeInfo value)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • addObjectPrivileges

      public RoleInfo.Builder addObjectPrivileges(int index, ObjectPrivilegeInfo value)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • addObjectPrivileges

      public RoleInfo.Builder addObjectPrivileges(ObjectPrivilegeInfo.Builder builderForValue)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • addObjectPrivileges

      public RoleInfo.Builder addObjectPrivileges(int index, ObjectPrivilegeInfo.Builder builderForValue)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • addAllObjectPrivileges

      public RoleInfo.Builder addAllObjectPrivileges(Iterable<? extends ObjectPrivilegeInfo> values)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • clearObjectPrivileges

      public RoleInfo.Builder clearObjectPrivileges()
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • removeObjectPrivileges

      public RoleInfo.Builder removeObjectPrivileges(int index)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • getObjectPrivilegesBuilder

      public ObjectPrivilegeInfo.Builder getObjectPrivilegesBuilder(int index)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • getObjectPrivilegesOrBuilder

      public ObjectPrivilegeInfoOrBuilder getObjectPrivilegesOrBuilder(int index)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
      Specified by:
      getObjectPrivilegesOrBuilder in interface RoleInfoOrBuilder
    • getObjectPrivilegesOrBuilderList

      public List<? extends ObjectPrivilegeInfoOrBuilder> getObjectPrivilegesOrBuilderList()
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
      Specified by:
      getObjectPrivilegesOrBuilderList in interface RoleInfoOrBuilder
    • addObjectPrivilegesBuilder

      public ObjectPrivilegeInfo.Builder addObjectPrivilegesBuilder()
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • addObjectPrivilegesBuilder

      public ObjectPrivilegeInfo.Builder addObjectPrivilegesBuilder(int index)
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • getObjectPrivilegesBuilderList

      public List<ObjectPrivilegeInfo.Builder> getObjectPrivilegesBuilderList()
       Object privileges
       
      repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
    • hasDefault

      public boolean hasDefault()
       Whether this role is assigned by default
       
      optional bool default = 5;
      Specified by:
      hasDefault in interface RoleInfoOrBuilder
      Returns:
      Whether the default field is set.
    • getDefault

      public boolean getDefault()
       Whether this role is assigned by default
       
      optional bool default = 5;
      Specified by:
      getDefault in interface RoleInfoOrBuilder
      Returns:
      The default.
    • setDefault

      public RoleInfo.Builder setDefault(boolean value)
       Whether this role is assigned by default
       
      optional bool default = 5;
      Parameters:
      value - The default to set.
      Returns:
      This builder for chaining.
    • clearDefault

      public RoleInfo.Builder clearDefault()
       Whether this role is assigned by default
       
      optional bool default = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final RoleInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
    • mergeUnknownFields

      public final RoleInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>