public static final class CreateServiceAccountRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder> implements CreateServiceAccountRequestOrBuilder
The service account create request.Protobuf type
google.iam.admin.v1.CreateServiceAccountRequest| Modifier and Type | Method and Description |
|---|---|
CreateServiceAccountRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateServiceAccountRequest |
build() |
CreateServiceAccountRequest |
buildPartial() |
CreateServiceAccountRequest.Builder |
clear() |
CreateServiceAccountRequest.Builder |
clearAccountId()
Required.
|
CreateServiceAccountRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CreateServiceAccountRequest.Builder |
clearName()
Required.
|
CreateServiceAccountRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CreateServiceAccountRequest.Builder |
clearServiceAccount()
The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
create.
|
CreateServiceAccountRequest.Builder |
clone() |
String |
getAccountId()
Required.
|
com.google.protobuf.ByteString |
getAccountIdBytes()
Required.
|
CreateServiceAccountRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
ServiceAccount |
getServiceAccount()
The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
create.
|
ServiceAccount.Builder |
getServiceAccountBuilder()
The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
create.
|
ServiceAccountOrBuilder |
getServiceAccountOrBuilder()
The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
create.
|
boolean |
hasServiceAccount()
The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
create.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CreateServiceAccountRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CreateServiceAccountRequest.Builder |
mergeFrom(CreateServiceAccountRequest other) |
CreateServiceAccountRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CreateServiceAccountRequest.Builder |
mergeServiceAccount(ServiceAccount value)
The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
create.
|
CreateServiceAccountRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CreateServiceAccountRequest.Builder |
setAccountId(String value)
Required.
|
CreateServiceAccountRequest.Builder |
setAccountIdBytes(com.google.protobuf.ByteString value)
Required.
|
CreateServiceAccountRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateServiceAccountRequest.Builder |
setName(String value)
Required.
|
CreateServiceAccountRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
CreateServiceAccountRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CreateServiceAccountRequest.Builder |
setServiceAccount(ServiceAccount.Builder builderForValue)
The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
create.
|
CreateServiceAccountRequest.Builder |
setServiceAccount(ServiceAccount value)
The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
create.
|
CreateServiceAccountRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CreateServiceAccountRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CreateServiceAccountRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CreateServiceAccountRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder mergeFrom(CreateServiceAccountRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public CreateServiceAccountRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateServiceAccountRequest.Builder>IOExceptionpublic 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) = { ... }
getName in interface CreateServiceAccountRequestOrBuilderpublic 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) = { ... }
getNameBytes in interface CreateServiceAccountRequestOrBuilderpublic 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) = { ... }
value - The name to set.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) = { ... }
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) = { ... }
value - The bytes for name to set.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];getAccountId in interface CreateServiceAccountRequestOrBuilderpublic 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];getAccountIdBytes in interface CreateServiceAccountRequestOrBuilderpublic 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];value - The accountId to set.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];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];value - The bytes for accountId to set.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;hasServiceAccount in interface CreateServiceAccountRequestOrBuilderpublic 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;getServiceAccount in interface CreateServiceAccountRequestOrBuilderpublic 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;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;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;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;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;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;getServiceAccountOrBuilder in interface CreateServiceAccountRequestOrBuilderpublic final CreateServiceAccountRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>public final CreateServiceAccountRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.