public static final class ServiceAccountSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountSpec.Builder> implements ServiceAccountSpecOrBuilder
Configuration for the use of custom service account to run the workloads.Protobuf type
google.cloud.aiplatform.v1beta1.ServiceAccountSpec| Modifier and Type | Method and Description |
|---|---|
ServiceAccountSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ServiceAccountSpec |
build() |
ServiceAccountSpec |
buildPartial() |
ServiceAccountSpec.Builder |
clear() |
ServiceAccountSpec.Builder |
clearEnableCustomServiceAccount()
Required.
|
ServiceAccountSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ServiceAccountSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ServiceAccountSpec.Builder |
clearServiceAccount()
Optional.
|
ServiceAccountSpec.Builder |
clone() |
ServiceAccountSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnableCustomServiceAccount()
Required.
|
String |
getServiceAccount()
Optional.
|
com.google.protobuf.ByteString |
getServiceAccountBytes()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ServiceAccountSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ServiceAccountSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
ServiceAccountSpec.Builder |
mergeFrom(ServiceAccountSpec other) |
ServiceAccountSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ServiceAccountSpec.Builder |
setEnableCustomServiceAccount(boolean value)
Required.
|
ServiceAccountSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ServiceAccountSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ServiceAccountSpec.Builder |
setServiceAccount(String value)
Optional.
|
ServiceAccountSpec.Builder |
setServiceAccountBytes(com.google.protobuf.ByteString value)
Optional.
|
ServiceAccountSpec.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<ServiceAccountSpec.Builder>public ServiceAccountSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountSpec.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<ServiceAccountSpec.Builder>public ServiceAccountSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ServiceAccountSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ServiceAccountSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ServiceAccountSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountSpec.Builder>public ServiceAccountSpec.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<ServiceAccountSpec.Builder>public ServiceAccountSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountSpec.Builder>public ServiceAccountSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountSpec.Builder>public ServiceAccountSpec.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<ServiceAccountSpec.Builder>public ServiceAccountSpec.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<ServiceAccountSpec.Builder>public ServiceAccountSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServiceAccountSpec.Builder>public ServiceAccountSpec.Builder mergeFrom(ServiceAccountSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountSpec.Builder>public ServiceAccountSpec.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<ServiceAccountSpec.Builder>IOExceptionpublic boolean getEnableCustomServiceAccount()
Required. If true, custom user-managed service account is enforced to run any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses the [Vertex AI Custom Code Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED];
getEnableCustomServiceAccount in interface ServiceAccountSpecOrBuilderpublic ServiceAccountSpec.Builder setEnableCustomServiceAccount(boolean value)
Required. If true, custom user-managed service account is enforced to run any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses the [Vertex AI Custom Code Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED];
value - The enableCustomServiceAccount to set.public ServiceAccountSpec.Builder clearEnableCustomServiceAccount()
Required. If true, custom user-managed service account is enforced to run any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses the [Vertex AI Custom Code Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED];
public String getServiceAccount()
Optional. Default service account that this PersistentResource's workloads
run as. The workloads include:
* Any runtime specified via `ResourceRuntimeSpec` on creation time,
for example, Ray.
* Jobs submitted to PersistentResource, if no other service account
specified in the job specs.
Only works when custom service account is enabled and users have the
`iam.serviceAccounts.actAs` permission on this service account.
Required if any containers are specified in `ResourceRuntimeSpec`.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];getServiceAccount in interface ServiceAccountSpecOrBuilderpublic com.google.protobuf.ByteString getServiceAccountBytes()
Optional. Default service account that this PersistentResource's workloads
run as. The workloads include:
* Any runtime specified via `ResourceRuntimeSpec` on creation time,
for example, Ray.
* Jobs submitted to PersistentResource, if no other service account
specified in the job specs.
Only works when custom service account is enabled and users have the
`iam.serviceAccounts.actAs` permission on this service account.
Required if any containers are specified in `ResourceRuntimeSpec`.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];getServiceAccountBytes in interface ServiceAccountSpecOrBuilderpublic ServiceAccountSpec.Builder setServiceAccount(String value)
Optional. Default service account that this PersistentResource's workloads
run as. The workloads include:
* Any runtime specified via `ResourceRuntimeSpec` on creation time,
for example, Ray.
* Jobs submitted to PersistentResource, if no other service account
specified in the job specs.
Only works when custom service account is enabled and users have the
`iam.serviceAccounts.actAs` permission on this service account.
Required if any containers are specified in `ResourceRuntimeSpec`.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];value - The serviceAccount to set.public ServiceAccountSpec.Builder clearServiceAccount()
Optional. Default service account that this PersistentResource's workloads
run as. The workloads include:
* Any runtime specified via `ResourceRuntimeSpec` on creation time,
for example, Ray.
* Jobs submitted to PersistentResource, if no other service account
specified in the job specs.
Only works when custom service account is enabled and users have the
`iam.serviceAccounts.actAs` permission on this service account.
Required if any containers are specified in `ResourceRuntimeSpec`.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];public ServiceAccountSpec.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
Optional. Default service account that this PersistentResource's workloads
run as. The workloads include:
* Any runtime specified via `ResourceRuntimeSpec` on creation time,
for example, Ray.
* Jobs submitted to PersistentResource, if no other service account
specified in the job specs.
Only works when custom service account is enabled and users have the
`iam.serviceAccounts.actAs` permission on this service account.
Required if any containers are specified in `ResourceRuntimeSpec`.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for serviceAccount to set.public final ServiceAccountSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountSpec.Builder>public final ServiceAccountSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountSpec.Builder>Copyright © 2024 Google LLC. All rights reserved.