Package com.google.cloud.aiplatform.v1
Class RaySpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RaySpec.Builder>
com.google.cloud.aiplatform.v1.RaySpec.Builder
- All Implemented Interfaces:
RaySpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RaySpec
public static final class RaySpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RaySpec.Builder>
implements RaySpecOrBuilder
Configuration information for the Ray cluster. For experimental launch, Ray cluster creation and Persistent cluster creation are 1:1 mapping: We will provision all the nodes within the Persistent cluster as Ray nodes.Protobuf type
google.cloud.aiplatform.v1.RaySpec-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.booleanOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Deprecated.Optional.Optional.Optional.Optional.Optional.Optional.Deprecated.intOptional.Optional.getResourcePoolImagesOrDefault(String key, String defaultValue) Optional.Optional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRayLogsSpec(RayLogsSpec value) Optional.mergeRayMetricSpec(RayMetricSpec value) Optional.putAllResourcePoolImages(Map<String, String> values) Optional.putResourcePoolImages(String key, String value) Optional.Optional.setHeadNodeResourcePoolId(String value) Optional.setHeadNodeResourcePoolIdBytes(com.google.protobuf.ByteString value) Optional.setImageUri(String value) Optional.setImageUriBytes(com.google.protobuf.ByteString value) Optional.setRayLogsSpec(RayLogsSpec value) Optional.setRayLogsSpec(RayLogsSpec.Builder builderForValue) Optional.setRayMetricSpec(RayMetricSpec value) Optional.setRayMetricSpec(RayMetricSpec.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<RaySpec.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<RaySpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RaySpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RaySpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RaySpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RaySpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RaySpec.Builder>
-
mergeFrom
public RaySpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RaySpec.Builder>- Throws:
IOException
-
getImageUri
Optional. Default image for user to choose a preferred ML framework (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image. Otherwise, use the {@code resource_pool_images} field.string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageUriin interfaceRaySpecOrBuilder- Returns:
- The imageUri.
-
getImageUriBytes
public com.google.protobuf.ByteString getImageUriBytes()Optional. Default image for user to choose a preferred ML framework (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image. Otherwise, use the {@code resource_pool_images} field.string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageUriBytesin interfaceRaySpecOrBuilder- Returns:
- The bytes for imageUri.
-
setImageUri
Optional. Default image for user to choose a preferred ML framework (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image. Otherwise, use the {@code resource_pool_images} field.string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The imageUri to set.- Returns:
- This builder for chaining.
-
clearImageUri
Optional. Default image for user to choose a preferred ML framework (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image. Otherwise, use the {@code resource_pool_images} field.string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setImageUriBytes
Optional. Default image for user to choose a preferred ML framework (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image. Otherwise, use the {@code resource_pool_images} field.string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for imageUri to set.- Returns:
- This builder for chaining.
-
getResourcePoolImagesCount
public int getResourcePoolImagesCount()Description copied from interface:RaySpecOrBuilderOptional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResourcePoolImagesCountin interfaceRaySpecOrBuilder
-
containsResourcePoolImages
Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsResourcePoolImagesin interfaceRaySpecOrBuilder
-
getResourcePoolImages
Deprecated.UsegetResourcePoolImagesMap()instead.- Specified by:
getResourcePoolImagesin interfaceRaySpecOrBuilder
-
getResourcePoolImagesMap
Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResourcePoolImagesMapin interfaceRaySpecOrBuilder
-
getResourcePoolImagesOrDefault
Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResourcePoolImagesOrDefaultin interfaceRaySpecOrBuilder
-
getResourcePoolImagesOrThrow
Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResourcePoolImagesOrThrowin interfaceRaySpecOrBuilder
-
clearResourcePoolImages
-
removeResourcePoolImages
Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableResourcePoolImages
Deprecated.Use alternate mutation accessors instead. -
putResourcePoolImages
Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; -
putAllResourcePoolImages
Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getHeadNodeResourcePoolId
Optional. This will be used to indicate which resource pool will serve as the Ray head node(the first node within that pool). Will use the machine from the first workerpool as the head node by default if this field isn't set.
string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeadNodeResourcePoolIdin interfaceRaySpecOrBuilder- Returns:
- The headNodeResourcePoolId.
-
getHeadNodeResourcePoolIdBytes
public com.google.protobuf.ByteString getHeadNodeResourcePoolIdBytes()Optional. This will be used to indicate which resource pool will serve as the Ray head node(the first node within that pool). Will use the machine from the first workerpool as the head node by default if this field isn't set.
string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeadNodeResourcePoolIdBytesin interfaceRaySpecOrBuilder- Returns:
- The bytes for headNodeResourcePoolId.
-
setHeadNodeResourcePoolId
Optional. This will be used to indicate which resource pool will serve as the Ray head node(the first node within that pool). Will use the machine from the first workerpool as the head node by default if this field isn't set.
string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The headNodeResourcePoolId to set.- Returns:
- This builder for chaining.
-
clearHeadNodeResourcePoolId
Optional. This will be used to indicate which resource pool will serve as the Ray head node(the first node within that pool). Will use the machine from the first workerpool as the head node by default if this field isn't set.
string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setHeadNodeResourcePoolIdBytes
Optional. This will be used to indicate which resource pool will serve as the Ray head node(the first node within that pool). Will use the machine from the first workerpool as the head node by default if this field isn't set.
string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for headNodeResourcePoolId to set.- Returns:
- This builder for chaining.
-
hasRayMetricSpec
public boolean hasRayMetricSpec()Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRayMetricSpecin interfaceRaySpecOrBuilder- Returns:
- Whether the rayMetricSpec field is set.
-
getRayMetricSpec
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRayMetricSpecin interfaceRaySpecOrBuilder- Returns:
- The rayMetricSpec.
-
setRayMetricSpec
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; -
setRayMetricSpec
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRayMetricSpec
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; -
clearRayMetricSpec
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getRayMetricSpecBuilder
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getRayMetricSpecOrBuilder
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRayMetricSpecOrBuilderin interfaceRaySpecOrBuilder
-
hasRayLogsSpec
public boolean hasRayLogsSpec()Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRayLogsSpecin interfaceRaySpecOrBuilder- Returns:
- Whether the rayLogsSpec field is set.
-
getRayLogsSpec
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRayLogsSpecin interfaceRaySpecOrBuilder- Returns:
- The rayLogsSpec.
-
setRayLogsSpec
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; -
setRayLogsSpec
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRayLogsSpec
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; -
clearRayLogsSpec
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getRayLogsSpecBuilder
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getRayLogsSpecOrBuilder
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRayLogsSpecOrBuilderin interfaceRaySpecOrBuilder
-