Class ResourcePool.AutoscalingSpec (3.25.0)

public static final class ResourcePool.AutoscalingSpec extends GeneratedMessageV3 implements ResourcePool.AutoscalingSpecOrBuilder

The min/max number of replicas allowed if enabling autoscaling

Protobuf type google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec

Static Fields

MAX_REPLICA_COUNT_FIELD_NUMBER

public static final int MAX_REPLICA_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_REPLICA_COUNT_FIELD_NUMBER

public static final int MIN_REPLICA_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResourcePool.AutoscalingSpec getDefaultInstance()
Returns
TypeDescription
ResourcePool.AutoscalingSpec

getDescriptor()

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

newBuilder()

public static ResourcePool.AutoscalingSpec.Builder newBuilder()
Returns
TypeDescription
ResourcePool.AutoscalingSpec.Builder

newBuilder(ResourcePool.AutoscalingSpec prototype)

public static ResourcePool.AutoscalingSpec.Builder newBuilder(ResourcePool.AutoscalingSpec prototype)
Parameter
NameDescription
prototypeResourcePool.AutoscalingSpec
Returns
TypeDescription
ResourcePool.AutoscalingSpec.Builder

parseDelimitedFrom(InputStream input)

public static ResourcePool.AutoscalingSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePool.AutoscalingSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ResourcePool.AutoscalingSpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourcePool.AutoscalingSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourcePool.AutoscalingSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourcePool.AutoscalingSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourcePool.AutoscalingSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePool.AutoscalingSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ResourcePool.AutoscalingSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePool.AutoscalingSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ResourcePool.AutoscalingSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourcePool.AutoscalingSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePool.AutoscalingSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ResourcePool.AutoscalingSpec> parser()
Returns
TypeDescription
Parser<AutoscalingSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ResourcePool.AutoscalingSpec getDefaultInstanceForType()
Returns
TypeDescription
ResourcePool.AutoscalingSpec

getMaxReplicaCount()

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

Returns
TypeDescription
long

The maxReplicaCount.

getMinReplicaCount()

public long getMinReplicaCount()

Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error

optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
long

The minReplicaCount.

getParserForType()

public Parser<ResourcePool.AutoscalingSpec> getParserForType()
Returns
TypeDescription
Parser<AutoscalingSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasMaxReplicaCount()

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

Returns
TypeDescription
boolean

Whether the maxReplicaCount field is set.

hasMinReplicaCount()

public boolean hasMinReplicaCount()

Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error

optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the minReplicaCount field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ResourcePool.AutoscalingSpec.Builder newBuilderForType()
Returns
TypeDescription
ResourcePool.AutoscalingSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourcePool.AutoscalingSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ResourcePool.AutoscalingSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ResourcePool.AutoscalingSpec.Builder toBuilder()
Returns
TypeDescription
ResourcePool.AutoscalingSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException