Class ResourceRuntimeSpec.Builder (3.30.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.v1beta1.ResourceRuntimeSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceRuntimeSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceRuntimeSpec.Builder
Overrides

build()

public ResourceRuntimeSpec build()
Returns
TypeDescription
ResourceRuntimeSpec

buildPartial()

public ResourceRuntimeSpec buildPartial()
Returns
TypeDescription
ResourceRuntimeSpec

clear()

public ResourceRuntimeSpec.Builder clear()
Returns
TypeDescription
ResourceRuntimeSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResourceRuntimeSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourceRuntimeSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceRuntimeSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResourceRuntimeSpec.Builder
Overrides

clearRaySpec()

public ResourceRuntimeSpec.Builder clearRaySpec()

Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource.

.google.cloud.aiplatform.v1beta1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ResourceRuntimeSpec.Builder

clearServiceAccountSpec()

public ResourceRuntimeSpec.Builder clearServiceAccountSpec()

Optional. Configure the use of workload identity on the PersistentResource

.google.cloud.aiplatform.v1beta1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ResourceRuntimeSpec.Builder

clone()

public ResourceRuntimeSpec.Builder clone()
Returns
TypeDescription
ResourceRuntimeSpec.Builder
Overrides

getDefaultInstanceForType()

public ResourceRuntimeSpec getDefaultInstanceForType()
Returns
TypeDescription
ResourceRuntimeSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRaySpec()

public RaySpec getRaySpec()

Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource.

.google.cloud.aiplatform.v1beta1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RaySpec

The raySpec.

getRaySpecBuilder()

public RaySpec.Builder getRaySpecBuilder()

Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource.

.google.cloud.aiplatform.v1beta1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RaySpec.Builder

getRaySpecOrBuilder()

public RaySpecOrBuilder getRaySpecOrBuilder()

Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource.

.google.cloud.aiplatform.v1beta1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RaySpecOrBuilder

getServiceAccountSpec()

public ServiceAccountSpec getServiceAccountSpec()

Optional. Configure the use of workload identity on the PersistentResource

.google.cloud.aiplatform.v1beta1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ServiceAccountSpec

The serviceAccountSpec.

getServiceAccountSpecBuilder()

public ServiceAccountSpec.Builder getServiceAccountSpecBuilder()

Optional. Configure the use of workload identity on the PersistentResource

.google.cloud.aiplatform.v1beta1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ServiceAccountSpec.Builder

getServiceAccountSpecOrBuilder()

public ServiceAccountSpecOrBuilder getServiceAccountSpecOrBuilder()

Optional. Configure the use of workload identity on the PersistentResource

.google.cloud.aiplatform.v1beta1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ServiceAccountSpecOrBuilder

hasRaySpec()

public boolean hasRaySpec()

Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource.

.google.cloud.aiplatform.v1beta1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the raySpec field is set.

hasServiceAccountSpec()

public boolean hasServiceAccountSpec()

Optional. Configure the use of workload identity on the PersistentResource

.google.cloud.aiplatform.v1beta1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the serviceAccountSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceRuntimeSpec other)

public ResourceRuntimeSpec.Builder mergeFrom(ResourceRuntimeSpec other)
Parameter
NameDescription
otherResourceRuntimeSpec
Returns
TypeDescription
ResourceRuntimeSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceRuntimeSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceRuntimeSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResourceRuntimeSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueRaySpec
Returns
TypeDescription
ResourceRuntimeSpec.Builder

mergeServiceAccountSpec(ServiceAccountSpec value)

public ResourceRuntimeSpec.Builder mergeServiceAccountSpec(ServiceAccountSpec value)

Optional. Configure the use of workload identity on the PersistentResource

.google.cloud.aiplatform.v1beta1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueServiceAccountSpec
Returns
TypeDescription
ResourceRuntimeSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceRuntimeSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceRuntimeSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceRuntimeSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueRaySpec
Returns
TypeDescription
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.v1beta1.RaySpec ray_spec = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueRaySpec.Builder
Returns
TypeDescription
ResourceRuntimeSpec.Builder

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

public ResourceRuntimeSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueServiceAccountSpec
Returns
TypeDescription
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.v1beta1.ServiceAccountSpec service_account_spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueServiceAccountSpec.Builder
Returns
TypeDescription
ResourceRuntimeSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceRuntimeSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceRuntimeSpec.Builder
Overrides