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 (e.g. Vertex Jobs) on the resource; Otherwise, will always
use 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,
e.g. 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 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,
e.g. 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 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