Interface ServiceAccountSpecOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ServiceAccountSpec, ServiceAccountSpec.Builder

@Generated public interface ServiceAccountSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Required.
    Optional.
    com.google.protobuf.ByteString
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getEnableCustomServiceAccount

      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];
      Returns:
      The enableCustomServiceAccount.
    • getServiceAccount

      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:
      The serviceAccount.
    • getServiceAccountBytes

      com.google.protobuf.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:
      The bytes for serviceAccount.