Package com.google.iam.admin.v1
Class ServiceAccount.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
- com.google.iam.admin.v1.ServiceAccount.Builder
-
- All Implemented Interfaces:
ServiceAccountOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ServiceAccount
public static final class ServiceAccount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder> implements ServiceAccountOrBuilder
An IAM service account. A service account is an account for an application or a virtual machine (VM) instance, not a person. You can use a service account to call Google APIs. To learn more, read the [overview of service accounts](https://cloud.google.com/iam/help/service-accounts/overview). When you create a service account, you specify the project ID that owns the service account, as well as a name that must be unique within the project. IAM uses these values to create an email address that identifies the service account.
Protobuf typegoogle.iam.admin.v1.ServiceAccount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServiceAccount.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServiceAccountbuild()ServiceAccountbuildPartial()ServiceAccount.Builderclear()ServiceAccount.BuilderclearDescription()Optional.ServiceAccount.BuilderclearDisabled()Output only.ServiceAccount.BuilderclearDisplayName()Optional.ServiceAccount.BuilderclearEmail()Output only.ServiceAccount.BuilderclearEtag()Deprecated.google.iam.admin.v1.ServiceAccount.etag is deprecated.ServiceAccount.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ServiceAccount.BuilderclearName()The resource name of the service account.ServiceAccount.BuilderclearOauth2ClientId()Output only.ServiceAccount.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ServiceAccount.BuilderclearProjectId()Output only.ServiceAccount.BuilderclearUniqueId()Output only.ServiceAccount.Builderclone()ServiceAccountgetDefaultInstanceForType()StringgetDescription()Optional.com.google.protobuf.ByteStringgetDescriptionBytes()Optional.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetDisabled()Output only.StringgetDisplayName()Optional.com.google.protobuf.ByteStringgetDisplayNameBytes()Optional.StringgetEmail()Output only.com.google.protobuf.ByteStringgetEmailBytes()Output only.com.google.protobuf.ByteStringgetEtag()Deprecated.google.iam.admin.v1.ServiceAccount.etag is deprecated.StringgetName()The resource name of the service account.com.google.protobuf.ByteStringgetNameBytes()The resource name of the service account.StringgetOauth2ClientId()Output only.com.google.protobuf.ByteStringgetOauth2ClientIdBytes()Output only.StringgetProjectId()Output only.com.google.protobuf.ByteStringgetProjectIdBytes()Output only.StringgetUniqueId()Output only.com.google.protobuf.ByteStringgetUniqueIdBytes()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ServiceAccount.BuildermergeFrom(ServiceAccount other)ServiceAccount.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ServiceAccount.BuildermergeFrom(com.google.protobuf.Message other)ServiceAccount.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ServiceAccount.BuildersetDescription(String value)Optional.ServiceAccount.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Optional.ServiceAccount.BuildersetDisabled(boolean value)Output only.ServiceAccount.BuildersetDisplayName(String value)Optional.ServiceAccount.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Optional.ServiceAccount.BuildersetEmail(String value)Output only.ServiceAccount.BuildersetEmailBytes(com.google.protobuf.ByteString value)Output only.ServiceAccount.BuildersetEtag(com.google.protobuf.ByteString value)Deprecated.google.iam.admin.v1.ServiceAccount.etag is deprecated.ServiceAccount.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServiceAccount.BuildersetName(String value)The resource name of the service account.ServiceAccount.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource name of the service account.ServiceAccount.BuildersetOauth2ClientId(String value)Output only.ServiceAccount.BuildersetOauth2ClientIdBytes(com.google.protobuf.ByteString value)Output only.ServiceAccount.BuildersetProjectId(String value)Output only.ServiceAccount.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)Output only.ServiceAccount.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ServiceAccount.BuildersetUniqueId(String value)Output only.ServiceAccount.BuildersetUniqueIdBytes(com.google.protobuf.ByteString value)Output only.ServiceAccount.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
clear
public ServiceAccount.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
getDefaultInstanceForType
public ServiceAccount getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServiceAccount build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServiceAccount buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServiceAccount.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
setField
public ServiceAccount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
clearField
public ServiceAccount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
clearOneof
public ServiceAccount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
setRepeatedField
public ServiceAccount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
addRepeatedField
public ServiceAccount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
mergeFrom
public ServiceAccount.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServiceAccount.Builder>
-
mergeFrom
public ServiceAccount.Builder mergeFrom(ServiceAccount other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
mergeFrom
public ServiceAccount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServiceAccount.Builder>- Throws:
IOException
-
getName
public String getName()
The resource name of the service account. Use one of the following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you can use the `-` wildcard character instead of the project ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}` * `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-` wildcard character, because it can cause response messages to contain misleading error codes. For example, if you try to get the service account `projects/-/serviceAccounts/fake@example.com`, which does not exist, the response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.string name = 1;- Specified by:
getNamein interfaceServiceAccountOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the service account. Use one of the following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you can use the `-` wildcard character instead of the project ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}` * `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-` wildcard character, because it can cause response messages to contain misleading error codes. For example, if you try to get the service account `projects/-/serviceAccounts/fake@example.com`, which does not exist, the response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.string name = 1;- Specified by:
getNameBytesin interfaceServiceAccountOrBuilder- Returns:
- The bytes for name.
-
setName
public ServiceAccount.Builder setName(String value)
The resource name of the service account. Use one of the following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you can use the `-` wildcard character instead of the project ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}` * `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-` wildcard character, because it can cause response messages to contain misleading error codes. For example, if you try to get the service account `projects/-/serviceAccounts/fake@example.com`, which does not exist, the response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ServiceAccount.Builder clearName()
The resource name of the service account. Use one of the following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you can use the `-` wildcard character instead of the project ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}` * `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-` wildcard character, because it can cause response messages to contain misleading error codes. For example, if you try to get the service account `projects/-/serviceAccounts/fake@example.com`, which does not exist, the response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public ServiceAccount.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the service account. Use one of the following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you can use the `-` wildcard character instead of the project ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}` * `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-` wildcard character, because it can cause response messages to contain misleading error codes. For example, if you try to get the service account `projects/-/serviceAccounts/fake@example.com`, which does not exist, the response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getProjectId
public String getProjectId()
Output only. The ID of the project that owns the service account.
string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProjectIdin interfaceServiceAccountOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()
Output only. The ID of the project that owns the service account.
string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProjectIdBytesin interfaceServiceAccountOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
public ServiceAccount.Builder setProjectId(String value)
Output only. The ID of the project that owns the service account.
string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
public ServiceAccount.Builder clearProjectId()
Output only. The ID of the project that owns the service account.
string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setProjectIdBytes
public ServiceAccount.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
Output only. The ID of the project that owns the service account.
string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getUniqueId
public String getUniqueId()
Output only. The unique, stable numeric ID for the service account. Each service account retains its unique ID even if you delete the service account. For example, if you delete a service account, then create a new service account with the same name, the new service account has a different unique ID than the deleted service account.
string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUniqueIdin interfaceServiceAccountOrBuilder- Returns:
- The uniqueId.
-
getUniqueIdBytes
public com.google.protobuf.ByteString getUniqueIdBytes()
Output only. The unique, stable numeric ID for the service account. Each service account retains its unique ID even if you delete the service account. For example, if you delete a service account, then create a new service account with the same name, the new service account has a different unique ID than the deleted service account.
string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUniqueIdBytesin interfaceServiceAccountOrBuilder- Returns:
- The bytes for uniqueId.
-
setUniqueId
public ServiceAccount.Builder setUniqueId(String value)
Output only. The unique, stable numeric ID for the service account. Each service account retains its unique ID even if you delete the service account. For example, if you delete a service account, then create a new service account with the same name, the new service account has a different unique ID than the deleted service account.
string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The uniqueId to set.- Returns:
- This builder for chaining.
-
clearUniqueId
public ServiceAccount.Builder clearUniqueId()
Output only. The unique, stable numeric ID for the service account. Each service account retains its unique ID even if you delete the service account. For example, if you delete a service account, then create a new service account with the same name, the new service account has a different unique ID than the deleted service account.
string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUniqueIdBytes
public ServiceAccount.Builder setUniqueIdBytes(com.google.protobuf.ByteString value)
Output only. The unique, stable numeric ID for the service account. Each service account retains its unique ID even if you delete the service account. For example, if you delete a service account, then create a new service account with the same name, the new service account has a different unique ID than the deleted service account.
string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for uniqueId to set.- Returns:
- This builder for chaining.
-
getEmail
public String getEmail()
Output only. The email address of the service account.
string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEmailin interfaceServiceAccountOrBuilder- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes()
Output only. The email address of the service account.
string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEmailBytesin interfaceServiceAccountOrBuilder- Returns:
- The bytes for email.
-
setEmail
public ServiceAccount.Builder setEmail(String value)
Output only. The email address of the service account.
string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The email to set.- Returns:
- This builder for chaining.
-
clearEmail
public ServiceAccount.Builder clearEmail()
Output only. The email address of the service account.
string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setEmailBytes
public ServiceAccount.Builder setEmailBytes(com.google.protobuf.ByteString value)
Output only. The email address of the service account.
string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for email to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Optional. A user-specified, human-readable name for the service account. The maximum length is 100 UTF-8 bytes.
string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceServiceAccountOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Optional. A user-specified, human-readable name for the service account. The maximum length is 100 UTF-8 bytes.
string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceServiceAccountOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public ServiceAccount.Builder setDisplayName(String value)
Optional. A user-specified, human-readable name for the service account. The maximum length is 100 UTF-8 bytes.
string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public ServiceAccount.Builder clearDisplayName()
Optional. A user-specified, human-readable name for the service account. The maximum length is 100 UTF-8 bytes.
string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public ServiceAccount.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Optional. A user-specified, human-readable name for the service account. The maximum length is 100 UTF-8 bytes.
string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getEtag
@Deprecated public com.google.protobuf.ByteString getEtag()
Deprecated.google.iam.admin.v1.ServiceAccount.etag is deprecated. See google/iam/admin/v1/iam.proto;l=538Deprecated. Do not use.
bytes etag = 7 [deprecated = true];- Specified by:
getEtagin interfaceServiceAccountOrBuilder- Returns:
- The etag.
-
setEtag
@Deprecated public ServiceAccount.Builder setEtag(com.google.protobuf.ByteString value)
Deprecated.google.iam.admin.v1.ServiceAccount.etag is deprecated. See google/iam/admin/v1/iam.proto;l=538Deprecated. Do not use.
bytes etag = 7 [deprecated = true];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
@Deprecated public ServiceAccount.Builder clearEtag()
Deprecated.google.iam.admin.v1.ServiceAccount.etag is deprecated. See google/iam/admin/v1/iam.proto;l=538Deprecated. Do not use.
bytes etag = 7 [deprecated = true];- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Optional. A user-specified, human-readable description of the service account. The maximum length is 256 UTF-8 bytes.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceServiceAccountOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Optional. A user-specified, human-readable description of the service account. The maximum length is 256 UTF-8 bytes.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceServiceAccountOrBuilder- Returns:
- The bytes for description.
-
setDescription
public ServiceAccount.Builder setDescription(String value)
Optional. A user-specified, human-readable description of the service account. The maximum length is 256 UTF-8 bytes.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public ServiceAccount.Builder clearDescription()
Optional. A user-specified, human-readable description of the service account. The maximum length is 256 UTF-8 bytes.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ServiceAccount.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. A user-specified, human-readable description of the service account. The maximum length is 256 UTF-8 bytes.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getOauth2ClientId
public String getOauth2ClientId()
Output only. The OAuth 2.0 client ID for the service account.
string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOauth2ClientIdin interfaceServiceAccountOrBuilder- Returns:
- The oauth2ClientId.
-
getOauth2ClientIdBytes
public com.google.protobuf.ByteString getOauth2ClientIdBytes()
Output only. The OAuth 2.0 client ID for the service account.
string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOauth2ClientIdBytesin interfaceServiceAccountOrBuilder- Returns:
- The bytes for oauth2ClientId.
-
setOauth2ClientId
public ServiceAccount.Builder setOauth2ClientId(String value)
Output only. The OAuth 2.0 client ID for the service account.
string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The oauth2ClientId to set.- Returns:
- This builder for chaining.
-
clearOauth2ClientId
public ServiceAccount.Builder clearOauth2ClientId()
Output only. The OAuth 2.0 client ID for the service account.
string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setOauth2ClientIdBytes
public ServiceAccount.Builder setOauth2ClientIdBytes(com.google.protobuf.ByteString value)
Output only. The OAuth 2.0 client ID for the service account.
string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for oauth2ClientId to set.- Returns:
- This builder for chaining.
-
getDisabled
public boolean getDisabled()
Output only. Whether the service account is disabled.
bool disabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisabledin interfaceServiceAccountOrBuilder- Returns:
- The disabled.
-
setDisabled
public ServiceAccount.Builder setDisabled(boolean value)
Output only. Whether the service account is disabled.
bool disabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
public ServiceAccount.Builder clearDisabled()
Output only. Whether the service account is disabled.
bool disabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final ServiceAccount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
mergeUnknownFields
public final ServiceAccount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
-