Send feedback
Class ServiceAccountSpec (3.30.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.30.0 keyboard_arrow_down
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.v1beta1.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>)
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. 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];
Returns Type Description String
The serviceAccount.
public 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];
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 )
Overrides
public ServiceAccountSpec . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-01-28 UTC.
Need to tell us more?
[[["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-01-28 UTC."],[],[]]