Class CreateServiceAccountRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateServiceAccountRequest.Builder>
com.google.iam.admin.v1.CreateServiceAccountRequest.Builder
All Implemented Interfaces:
CreateServiceAccountRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateServiceAccountRequest

public static final class CreateServiceAccountRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateServiceAccountRequest.Builder> implements CreateServiceAccountRequestOrBuilder
 The service account create request.
 
Protobuf type google.iam.admin.v1.CreateServiceAccountRequest
  • 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<CreateServiceAccountRequest.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<CreateServiceAccountRequest.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<CreateServiceAccountRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public CreateServiceAccountRequest.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<CreateServiceAccountRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The resource name of the project associated with the service
       accounts, such as `projects/my-project-123`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface CreateServiceAccountRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the project associated with the service
       accounts, such as `projects/my-project-123`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface CreateServiceAccountRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The resource name of the project associated with the service
       accounts, such as `projects/my-project-123`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The resource name of the project associated with the service
       accounts, such as `projects/my-project-123`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public CreateServiceAccountRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the project associated with the service
       accounts, such as `projects/my-project-123`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getAccountId

      public String getAccountId()
       Required. The account id that is used to generate the service account
       email address and a stable unique id. It is unique within a project,
       must be 6-30 characters long, and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
       
      string account_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccountId in interface CreateServiceAccountRequestOrBuilder
      Returns:
      The accountId.
    • getAccountIdBytes

      public com.google.protobuf.ByteString getAccountIdBytes()
       Required. The account id that is used to generate the service account
       email address and a stable unique id. It is unique within a project,
       must be 6-30 characters long, and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
       
      string account_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccountIdBytes in interface CreateServiceAccountRequestOrBuilder
      Returns:
      The bytes for accountId.
    • setAccountId

      public CreateServiceAccountRequest.Builder setAccountId(String value)
       Required. The account id that is used to generate the service account
       email address and a stable unique id. It is unique within a project,
       must be 6-30 characters long, and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
       
      string account_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The accountId to set.
      Returns:
      This builder for chaining.
    • clearAccountId

      public CreateServiceAccountRequest.Builder clearAccountId()
       Required. The account id that is used to generate the service account
       email address and a stable unique id. It is unique within a project,
       must be 6-30 characters long, and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
       
      string account_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAccountIdBytes

      public CreateServiceAccountRequest.Builder setAccountIdBytes(com.google.protobuf.ByteString value)
       Required. The account id that is used to generate the service account
       email address and a stable unique id. It is unique within a project,
       must be 6-30 characters long, and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
       
      string account_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for accountId to set.
      Returns:
      This builder for chaining.
    • hasServiceAccount

      public boolean hasServiceAccount()
       The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
       create. Currently, only the following values are user assignable:
       `display_name` and `description`.
       
      .google.iam.admin.v1.ServiceAccount service_account = 3;
      Specified by:
      hasServiceAccount in interface CreateServiceAccountRequestOrBuilder
      Returns:
      Whether the serviceAccount field is set.
    • getServiceAccount

      public ServiceAccount getServiceAccount()
       The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
       create. Currently, only the following values are user assignable:
       `display_name` and `description`.
       
      .google.iam.admin.v1.ServiceAccount service_account = 3;
      Specified by:
      getServiceAccount in interface CreateServiceAccountRequestOrBuilder
      Returns:
      The serviceAccount.
    • setServiceAccount

      public CreateServiceAccountRequest.Builder setServiceAccount(ServiceAccount value)
       The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
       create. Currently, only the following values are user assignable:
       `display_name` and `description`.
       
      .google.iam.admin.v1.ServiceAccount service_account = 3;
    • setServiceAccount

      public CreateServiceAccountRequest.Builder setServiceAccount(ServiceAccount.Builder builderForValue)
       The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
       create. Currently, only the following values are user assignable:
       `display_name` and `description`.
       
      .google.iam.admin.v1.ServiceAccount service_account = 3;
    • mergeServiceAccount

      public CreateServiceAccountRequest.Builder mergeServiceAccount(ServiceAccount value)
       The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
       create. Currently, only the following values are user assignable:
       `display_name` and `description`.
       
      .google.iam.admin.v1.ServiceAccount service_account = 3;
    • clearServiceAccount

      public CreateServiceAccountRequest.Builder clearServiceAccount()
       The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
       create. Currently, only the following values are user assignable:
       `display_name` and `description`.
       
      .google.iam.admin.v1.ServiceAccount service_account = 3;
    • getServiceAccountBuilder

      public ServiceAccount.Builder getServiceAccountBuilder()
       The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
       create. Currently, only the following values are user assignable:
       `display_name` and `description`.
       
      .google.iam.admin.v1.ServiceAccount service_account = 3;
    • getServiceAccountOrBuilder

      public ServiceAccountOrBuilder getServiceAccountOrBuilder()
       The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
       create. Currently, only the following values are user assignable:
       `display_name` and `description`.
       
      .google.iam.admin.v1.ServiceAccount service_account = 3;
      Specified by:
      getServiceAccountOrBuilder in interface CreateServiceAccountRequestOrBuilder