Class CreateServiceAccountRequest.Builder

    • Method Detail

      • 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<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.GeneratedMessageV3.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

        public CreateServiceAccountRequest 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public CreateServiceAccountRequest.Builder setName​(String 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 name to set.
        Returns:
        This builder for chaining.
      • clearName

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

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