public final class RaySpec extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
RaySpec.Builder
Configuration information for the Ray cluster.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
HEAD_NODE_RESOURCE_POOL_ID_FIELD_NUMBER |
static int |
IMAGE_URI_FIELD_NUMBER |
static int |
RAY_LOGS_SPEC_FIELD_NUMBER |
static int |
RAY_METRIC_SPEC_FIELD_NUMBER |
static int |
RESOURCE_POOL_IMAGES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsResourcePoolImages(String key)
Optional.
|
boolean |
equals(Object obj) |
static RaySpec |
getDefaultInstance() |
RaySpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getHeadNodeResourcePoolId()
Optional.
|
com.google.protobuf.ByteString |
getHeadNodeResourcePoolIdBytes()
Optional.
|
String |
getImageUri()
Optional.
|
com.google.protobuf.ByteString |
getImageUriBytes()
Optional.
|
com.google.protobuf.Parser<RaySpec> |
getParserForType() |
RayLogsSpec |
getRayLogsSpec()
Optional.
|
RayLogsSpecOrBuilder |
getRayLogsSpecOrBuilder()
Optional.
|
RayMetricSpec |
getRayMetricSpec()
Optional.
|
RayMetricSpecOrBuilder |
getRayMetricSpecOrBuilder()
Optional.
|
Map<String,String> |
getResourcePoolImages()
Deprecated.
|
int |
getResourcePoolImagesCount()
Optional.
|
Map<String,String> |
getResourcePoolImagesMap()
Optional.
|
String |
getResourcePoolImagesOrDefault(String key,
String defaultValue)
Optional.
|
String |
getResourcePoolImagesOrThrow(String key)
Optional.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasRayLogsSpec()
Optional.
|
boolean |
hasRayMetricSpec()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static RaySpec.Builder |
newBuilder() |
static RaySpec.Builder |
newBuilder(RaySpec prototype) |
RaySpec.Builder |
newBuilderForType() |
protected RaySpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RaySpec |
parseDelimitedFrom(InputStream input) |
static RaySpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaySpec |
parseFrom(byte[] data) |
static RaySpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaySpec |
parseFrom(ByteBuffer data) |
static RaySpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaySpec |
parseFrom(com.google.protobuf.ByteString data) |
static RaySpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaySpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RaySpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaySpec |
parseFrom(InputStream input) |
static RaySpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RaySpec> |
parser() |
RaySpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int IMAGE_URI_FIELD_NUMBER
public static final int RESOURCE_POOL_IMAGES_FIELD_NUMBER
public static final int HEAD_NODE_RESOURCE_POOL_ID_FIELD_NUMBER
public static final int RAY_METRIC_SPEC_FIELD_NUMBER
public static final int RAY_LOGS_SPEC_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String 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];getImageUri in interface RaySpecOrBuilderpublic 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];getImageUriBytes in interface RaySpecOrBuilderpublic int getResourcePoolImagesCount()
RaySpecOrBuilder
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];
getResourcePoolImagesCount in interface RaySpecOrBuilderpublic boolean containsResourcePoolImages(String key)
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];
containsResourcePoolImages in interface RaySpecOrBuilder@Deprecated public Map<String,String> getResourcePoolImages()
getResourcePoolImagesMap() instead.getResourcePoolImages in interface RaySpecOrBuilderpublic Map<String,String> 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];
getResourcePoolImagesMap in interface RaySpecOrBuilderpublic String getResourcePoolImagesOrDefault(String key, String defaultValue)
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];
getResourcePoolImagesOrDefault in interface RaySpecOrBuilderpublic String getResourcePoolImagesOrThrow(String key)
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];
getResourcePoolImagesOrThrow in interface RaySpecOrBuilderpublic String 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];getHeadNodeResourcePoolId in interface RaySpecOrBuilderpublic 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];getHeadNodeResourcePoolIdBytes in interface RaySpecOrBuilderpublic boolean hasRayMetricSpec()
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
hasRayMetricSpec in interface RaySpecOrBuilderpublic RayMetricSpec getRayMetricSpec()
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
getRayMetricSpec in interface RaySpecOrBuilderpublic RayMetricSpecOrBuilder getRayMetricSpecOrBuilder()
Optional. Ray metrics configurations.
.google.cloud.aiplatform.v1.RayMetricSpec ray_metric_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
getRayMetricSpecOrBuilder in interface RaySpecOrBuilderpublic boolean hasRayLogsSpec()
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL];
hasRayLogsSpec in interface RaySpecOrBuilderpublic RayLogsSpec getRayLogsSpec()
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL];
getRayLogsSpec in interface RaySpecOrBuilderpublic RayLogsSpecOrBuilder getRayLogsSpecOrBuilder()
Optional. OSS Ray logging configurations.
.google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL];
getRayLogsSpecOrBuilder in interface RaySpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RaySpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RaySpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RaySpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RaySpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RaySpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RaySpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RaySpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static RaySpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RaySpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RaySpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RaySpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RaySpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RaySpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RaySpec.Builder newBuilder()
public static RaySpec.Builder newBuilder(RaySpec prototype)
public RaySpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RaySpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RaySpec getDefaultInstance()
public static com.google.protobuf.Parser<RaySpec> parser()
public com.google.protobuf.Parser<RaySpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RaySpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.