Class ResourceRuntimeSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceRuntimeSpec.Builder>
com.google.cloud.aiplatform.v1.ResourceRuntimeSpec.Builder
All Implemented Interfaces:
ResourceRuntimeSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ResourceRuntimeSpec

public static final class ResourceRuntimeSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourceRuntimeSpec.Builder> implements ResourceRuntimeSpecOrBuilder
 Configuration for the runtime on a PersistentResource instance, including
 but not limited to:

 * Service accounts used to run the workloads.
 * Whether to make it a dedicated Ray Cluster.
 
Protobuf type google.cloud.aiplatform.v1.ResourceRuntimeSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ResourceRuntimeSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ResourceRuntimeSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ResourceRuntimeSpec.Builder>
    • getDefaultInstanceForType

      public ResourceRuntimeSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ResourceRuntimeSpec build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ResourceRuntimeSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ResourceRuntimeSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceRuntimeSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ResourceRuntimeSpec.Builder>
    • mergeFrom

      public ResourceRuntimeSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceRuntimeSpec.Builder>
      Throws:
      IOException
    • hasServiceAccountSpec

      public boolean hasServiceAccountSpec()
       Optional. Configure the use of workload identity on the PersistentResource
       
      .google.cloud.aiplatform.v1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasServiceAccountSpec in interface ResourceRuntimeSpecOrBuilder
      Returns:
      Whether the serviceAccountSpec field is set.
    • getServiceAccountSpec

      public ServiceAccountSpec getServiceAccountSpec()
       Optional. Configure the use of workload identity on the PersistentResource
       
      .google.cloud.aiplatform.v1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountSpec in interface ResourceRuntimeSpecOrBuilder
      Returns:
      The serviceAccountSpec.
    • setServiceAccountSpec

      public ResourceRuntimeSpec.Builder setServiceAccountSpec(ServiceAccountSpec value)
       Optional. Configure the use of workload identity on the PersistentResource
       
      .google.cloud.aiplatform.v1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setServiceAccountSpec

      public ResourceRuntimeSpec.Builder setServiceAccountSpec(ServiceAccountSpec.Builder builderForValue)
       Optional. Configure the use of workload identity on the PersistentResource
       
      .google.cloud.aiplatform.v1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeServiceAccountSpec

      public ResourceRuntimeSpec.Builder mergeServiceAccountSpec(ServiceAccountSpec value)
       Optional. Configure the use of workload identity on the PersistentResource
       
      .google.cloud.aiplatform.v1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearServiceAccountSpec

      public ResourceRuntimeSpec.Builder clearServiceAccountSpec()
       Optional. Configure the use of workload identity on the PersistentResource
       
      .google.cloud.aiplatform.v1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getServiceAccountSpecBuilder

      public ServiceAccountSpec.Builder getServiceAccountSpecBuilder()
       Optional. Configure the use of workload identity on the PersistentResource
       
      .google.cloud.aiplatform.v1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getServiceAccountSpecOrBuilder

      public ServiceAccountSpecOrBuilder getServiceAccountSpecOrBuilder()
       Optional. Configure the use of workload identity on the PersistentResource
       
      .google.cloud.aiplatform.v1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountSpecOrBuilder in interface ResourceRuntimeSpecOrBuilder
    • hasRaySpec

      public boolean hasRaySpec()
       Optional. Ray cluster configuration.
       Required when creating a dedicated RayCluster on the PersistentResource.
       
      .google.cloud.aiplatform.v1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRaySpec in interface ResourceRuntimeSpecOrBuilder
      Returns:
      Whether the raySpec field is set.
    • getRaySpec

      public RaySpec getRaySpec()
       Optional. Ray cluster configuration.
       Required when creating a dedicated RayCluster on the PersistentResource.
       
      .google.cloud.aiplatform.v1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRaySpec in interface ResourceRuntimeSpecOrBuilder
      Returns:
      The raySpec.
    • setRaySpec

      public ResourceRuntimeSpec.Builder setRaySpec(RaySpec value)
       Optional. Ray cluster configuration.
       Required when creating a dedicated RayCluster on the PersistentResource.
       
      .google.cloud.aiplatform.v1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setRaySpec

      public ResourceRuntimeSpec.Builder setRaySpec(RaySpec.Builder builderForValue)
       Optional. Ray cluster configuration.
       Required when creating a dedicated RayCluster on the PersistentResource.
       
      .google.cloud.aiplatform.v1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRaySpec

      public ResourceRuntimeSpec.Builder mergeRaySpec(RaySpec value)
       Optional. Ray cluster configuration.
       Required when creating a dedicated RayCluster on the PersistentResource.
       
      .google.cloud.aiplatform.v1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearRaySpec

      public ResourceRuntimeSpec.Builder clearRaySpec()
       Optional. Ray cluster configuration.
       Required when creating a dedicated RayCluster on the PersistentResource.
       
      .google.cloud.aiplatform.v1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getRaySpecBuilder

      public RaySpec.Builder getRaySpecBuilder()
       Optional. Ray cluster configuration.
       Required when creating a dedicated RayCluster on the PersistentResource.
       
      .google.cloud.aiplatform.v1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getRaySpecOrBuilder

      public RaySpecOrBuilder getRaySpecOrBuilder()
       Optional. Ray cluster configuration.
       Required when creating a dedicated RayCluster on the PersistentResource.
       
      .google.cloud.aiplatform.v1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRaySpecOrBuilder in interface ResourceRuntimeSpecOrBuilder