Class CreateGroupRequest.Builder

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

public static final class CreateGroupRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateGroupRequest.Builder> implements CreateGroupRequestOrBuilder
Protobuf type yamcs.protobuf.iam.CreateGroupRequest
  • 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<CreateGroupRequest.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<CreateGroupRequest.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<CreateGroupRequest.Builder>
    • getDefaultInstanceForType

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

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

      public CreateGroupRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<CreateGroupRequest.Builder>
    • setField

      public CreateGroupRequest.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<CreateGroupRequest.Builder>
    • clearField

      public CreateGroupRequest.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<CreateGroupRequest.Builder>
    • clearOneof

      public CreateGroupRequest.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<CreateGroupRequest.Builder>
    • setRepeatedField

      public CreateGroupRequest.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<CreateGroupRequest.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public com.google.protobuf.ProtocolStringList getUsersList()
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Specified by:
      getUsersList in interface CreateGroupRequestOrBuilder
      Returns:
      A list containing the users.
    • getUsersCount

      public int getUsersCount()
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Specified by:
      getUsersCount in interface CreateGroupRequestOrBuilder
      Returns:
      The count of users.
    • getUsers

      public String getUsers(int index)
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Specified by:
      getUsers in interface CreateGroupRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The users at the given index.
    • getUsersBytes

      public com.google.protobuf.ByteString getUsersBytes(int index)
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Specified by:
      getUsersBytes in interface CreateGroupRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the users at the given index.
    • setUsers

      public CreateGroupRequest.Builder setUsers(int index, String value)
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Parameters:
      index - The index to set the value at.
      value - The users to set.
      Returns:
      This builder for chaining.
    • addUsers

      public CreateGroupRequest.Builder addUsers(String value)
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Parameters:
      value - The users to add.
      Returns:
      This builder for chaining.
    • addAllUsers

      public CreateGroupRequest.Builder addAllUsers(Iterable<String> values)
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Parameters:
      values - The users to add.
      Returns:
      This builder for chaining.
    • clearUsers

      public CreateGroupRequest.Builder clearUsers()
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Returns:
      This builder for chaining.
    • addUsersBytes

      public CreateGroupRequest.Builder addUsersBytes(com.google.protobuf.ByteString value)
       Usernames of users that should be added as member
       
      repeated string users = 3;
      Parameters:
      value - The bytes of the users to add.
      Returns:
      This builder for chaining.
    • getServiceAccountsList

      public com.google.protobuf.ProtocolStringList getServiceAccountsList()
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Specified by:
      getServiceAccountsList in interface CreateGroupRequestOrBuilder
      Returns:
      A list containing the serviceAccounts.
    • getServiceAccountsCount

      public int getServiceAccountsCount()
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Specified by:
      getServiceAccountsCount in interface CreateGroupRequestOrBuilder
      Returns:
      The count of serviceAccounts.
    • getServiceAccounts

      public String getServiceAccounts(int index)
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Specified by:
      getServiceAccounts in interface CreateGroupRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The serviceAccounts at the given index.
    • getServiceAccountsBytes

      public com.google.protobuf.ByteString getServiceAccountsBytes(int index)
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Specified by:
      getServiceAccountsBytes in interface CreateGroupRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the serviceAccounts at the given index.
    • setServiceAccounts

      public CreateGroupRequest.Builder setServiceAccounts(int index, String value)
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Parameters:
      index - The index to set the value at.
      value - The serviceAccounts to set.
      Returns:
      This builder for chaining.
    • addServiceAccounts

      public CreateGroupRequest.Builder addServiceAccounts(String value)
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Parameters:
      value - The serviceAccounts to add.
      Returns:
      This builder for chaining.
    • addAllServiceAccounts

      public CreateGroupRequest.Builder addAllServiceAccounts(Iterable<String> values)
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Parameters:
      values - The serviceAccounts to add.
      Returns:
      This builder for chaining.
    • clearServiceAccounts

      public CreateGroupRequest.Builder clearServiceAccounts()
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Returns:
      This builder for chaining.
    • addServiceAccountsBytes

      public CreateGroupRequest.Builder addServiceAccountsBytes(com.google.protobuf.ByteString value)
       Names of service accounts that should be added as member
       
      repeated string serviceAccounts = 4;
      Parameters:
      value - The bytes of the serviceAccounts to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CreateGroupRequest.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<CreateGroupRequest.Builder>
    • mergeUnknownFields

      public final CreateGroupRequest.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<CreateGroupRequest.Builder>