public static final class ResourcePool.AutoscalingSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourcePool.AutoscalingSpec.Builder> implements ResourcePool.AutoscalingSpecOrBuilder
The min/max number of replicas allowed if enabling autoscalingProtobuf type
google.cloud.aiplatform.v1.ResourcePool.AutoscalingSpec| Modifier and Type | Method and Description |
|---|---|
ResourcePool.AutoscalingSpec |
build() |
ResourcePool.AutoscalingSpec |
buildPartial() |
ResourcePool.AutoscalingSpec.Builder |
clear() |
ResourcePool.AutoscalingSpec.Builder |
clearMaxReplicaCount()
Optional. max replicas in the node pool,
must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
|
ResourcePool.AutoscalingSpec.Builder |
clearMinReplicaCount()
Optional. min replicas in the node pool,
must be ≤ replica_count and < max_replica_count or will throw error.
|
ResourcePool.AutoscalingSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getMaxReplicaCount()
Optional. max replicas in the node pool,
must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
|
long |
getMinReplicaCount()
Optional. min replicas in the node pool,
must be ≤ replica_count and < max_replica_count or will throw error.
|
boolean |
hasMaxReplicaCount()
Optional. max replicas in the node pool,
must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
|
boolean |
hasMinReplicaCount()
Optional. min replicas in the node pool,
must be ≤ replica_count and < max_replica_count or will throw error.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ResourcePool.AutoscalingSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ResourcePool.AutoscalingSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
ResourcePool.AutoscalingSpec.Builder |
mergeFrom(ResourcePool.AutoscalingSpec other) |
ResourcePool.AutoscalingSpec.Builder |
setMaxReplicaCount(long value)
Optional. max replicas in the node pool,
must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
|
ResourcePool.AutoscalingSpec.Builder |
setMinReplicaCount(long value)
Optional. min replicas in the node pool,
must be ≤ replica_count and < max_replica_count or will throw error.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ResourcePool.AutoscalingSpec.Builder>public ResourcePool.AutoscalingSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<ResourcePool.AutoscalingSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ResourcePool.AutoscalingSpec.Builder>public ResourcePool.AutoscalingSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ResourcePool.AutoscalingSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ResourcePool.AutoscalingSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ResourcePool.AutoscalingSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourcePool.AutoscalingSpec.Builder>public ResourcePool.AutoscalingSpec.Builder mergeFrom(ResourcePool.AutoscalingSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<ResourcePool.AutoscalingSpec.Builder>public ResourcePool.AutoscalingSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourcePool.AutoscalingSpec.Builder>IOExceptionpublic boolean hasMinReplicaCount()
Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be > 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];
hasMinReplicaCount in interface ResourcePool.AutoscalingSpecOrBuilderpublic long getMinReplicaCount()
Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be > 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];
getMinReplicaCount in interface ResourcePool.AutoscalingSpecOrBuilderpublic ResourcePool.AutoscalingSpec.Builder setMinReplicaCount(long value)
Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be > 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];
value - The minReplicaCount to set.public ResourcePool.AutoscalingSpec.Builder clearMinReplicaCount()
Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be > 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasMaxReplicaCount()
Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
hasMaxReplicaCount in interface ResourcePool.AutoscalingSpecOrBuilderpublic long getMaxReplicaCount()
Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
getMaxReplicaCount in interface ResourcePool.AutoscalingSpecOrBuilderpublic ResourcePool.AutoscalingSpec.Builder setMaxReplicaCount(long value)
Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The maxReplicaCount to set.public ResourcePool.AutoscalingSpec.Builder clearMaxReplicaCount()
Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2026 Google LLC. All rights reserved.