Class ResourceRuntimeSpec.Builder (3.50.0)

public static final class ResourceRuntimeSpec.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceRuntimeSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

build()

public ResourceRuntimeSpec build()
Returns
Type Description
ResourceRuntimeSpec

buildPartial()

public ResourceRuntimeSpec buildPartial()
Returns
Type Description
ResourceRuntimeSpec

clear()

public ResourceRuntimeSpec.Builder clear()
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResourceRuntimeSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceRuntimeSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

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];

Returns
Type Description
ResourceRuntimeSpec.Builder

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];

Returns
Type Description
ResourceRuntimeSpec.Builder

clone()

public ResourceRuntimeSpec.Builder clone()
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

getDefaultInstanceForType()

public ResourceRuntimeSpec getDefaultInstanceForType()
Returns
Type Description
ResourceRuntimeSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
RaySpec

The raySpec.

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];

Returns
Type Description
RaySpec.Builder

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];

Returns
Type Description
RaySpecOrBuilder

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];

Returns
Type Description
ServiceAccountSpec

The serviceAccountSpec.

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];

Returns
Type Description
ServiceAccountSpec.Builder

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];

Returns
Type Description
ServiceAccountSpecOrBuilder

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];

Returns
Type Description
boolean

Whether the raySpec field is set.

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];

Returns
Type Description
boolean

Whether the serviceAccountSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceRuntimeSpec other)

public ResourceRuntimeSpec.Builder mergeFrom(ResourceRuntimeSpec other)
Parameter
Name Description
other ResourceRuntimeSpec
Returns
Type Description
ResourceRuntimeSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceRuntimeSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceRuntimeSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

mergeRaySpec(RaySpec value)

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];

Parameter
Name Description
value RaySpec
Returns
Type Description
ResourceRuntimeSpec.Builder

mergeServiceAccountSpec(ServiceAccountSpec value)

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];

Parameter
Name Description
value ServiceAccountSpec
Returns
Type Description
ResourceRuntimeSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceRuntimeSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceRuntimeSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

setRaySpec(RaySpec value)

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];

Parameter
Name Description
value RaySpec
Returns
Type Description
ResourceRuntimeSpec.Builder

setRaySpec(RaySpec.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RaySpec.Builder
Returns
Type Description
ResourceRuntimeSpec.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceRuntimeSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides

setServiceAccountSpec(ServiceAccountSpec value)

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];

Parameter
Name Description
value ServiceAccountSpec
Returns
Type Description
ResourceRuntimeSpec.Builder

setServiceAccountSpec(ServiceAccountSpec.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ServiceAccountSpec.Builder
Returns
Type Description
ResourceRuntimeSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceRuntimeSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceRuntimeSpec.Builder
Overrides