Class ServiceAccountSpec (3.77.0)
public final class ServiceAccountSpec extends GeneratedMessageV3 implements ServiceAccountSpecOrBuilder
Configuration for the use of custom service account to run the workloads.
Protobuf type google.cloud.aiplatform.v1.ServiceAccountSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ENABLE_CUSTOM_SERVICE_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static ServiceAccountSpec getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ServiceAccountSpec.Builder newBuilder()
public static ServiceAccountSpec.Builder newBuilder(ServiceAccountSpec prototype)
public static ServiceAccountSpec parseDelimitedFrom(InputStream input)
public static ServiceAccountSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceAccountSpec parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static ServiceAccountSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ServiceAccountSpec parseFrom(ByteString data)
public static ServiceAccountSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ServiceAccountSpec parseFrom(CodedInputStream input)
public static ServiceAccountSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceAccountSpec parseFrom(InputStream input)
public static ServiceAccountSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceAccountSpec parseFrom(ByteBuffer data)
public static ServiceAccountSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ServiceAccountSpec> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public ServiceAccountSpec getDefaultInstanceForType()
public 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.
bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
The enableCustomServiceAccount.
|
public Parser<ServiceAccountSpec> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public String getServiceAccount()
Optional. Required when all below conditions are met
enable_custom_service_account
is true;
any runtime is specified via ResourceRuntimeSpec
on creation time,
for example, Ray
The users must have iam.serviceAccounts.actAs
permission on this service
account and then the specified runtime containers will run as it.
Do not set this field if you want to submit jobs using custom service
account to this PersistentResource after creation, but only specify the
service_account
inside the job.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The serviceAccount.
|
public ByteString getServiceAccountBytes()
Optional. Required when all below conditions are met
enable_custom_service_account
is true;
any runtime is specified via ResourceRuntimeSpec
on creation time,
for example, Ray
The users must have iam.serviceAccounts.actAs
permission on this service
account and then the specified runtime containers will run as it.
Do not set this field if you want to submit jobs using custom service
account to this PersistentResource after creation, but only specify the
service_account
inside the job.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for serviceAccount.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ServiceAccountSpec.Builder newBuilderForType()
protected ServiceAccountSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public ServiceAccountSpec.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]