Class AutomaticResources (3.23.0)

public final class AutomaticResources extends GeneratedMessageV3 implements AutomaticResourcesOrBuilder

A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration. Each Model supporting these resources documents its specific guidelines.

Protobuf type google.cloud.aiplatform.v1.AutomaticResources

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 AutomaticResources getDefaultInstance()
Returns
TypeDescription
AutomaticResources

getDescriptor()

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

newBuilder()

public static AutomaticResources.Builder newBuilder()
Returns
TypeDescription
AutomaticResources.Builder

newBuilder(AutomaticResources prototype)

public static AutomaticResources.Builder newBuilder(AutomaticResources prototype)
Parameter
NameDescription
prototypeAutomaticResources
Returns
TypeDescription
AutomaticResources.Builder

parseDelimitedFrom(InputStream input)

public static AutomaticResources parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutomaticResources
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AutomaticResources parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AutomaticResources
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AutomaticResources parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AutomaticResources
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AutomaticResources parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutomaticResources
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AutomaticResources parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AutomaticResources
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AutomaticResources> parser()
Returns
TypeDescription
Parser<AutomaticResources>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AutomaticResources getDefaultInstanceForType()
Returns
TypeDescription
AutomaticResources

getMaxReplicaCount()

public int getMaxReplicaCount()

Immutable. The maximum number of replicas this DeployedModel may be deployed on when the traffic against it increases. If the requested value is too large, the deployment will error, but if deployment succeeds then the ability to scale the model to that many replicas is guaranteed (barring service outages). If traffic against the DeployedModel increases beyond what its replicas at maximum may handle, a portion of the traffic will be dropped. If this value is not provided, a no upper bound for scaling under heavy traffic will be assume, though Vertex AI may be unable to scale beyond certain replica number.

int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The maxReplicaCount.

getMinReplicaCount()

public int getMinReplicaCount()

Immutable. The minimum number of replicas this DeployedModel will be always deployed on. If traffic against it increases, it may dynamically be deployed onto more replicas up to max_replica_count, and as traffic decreases, some of these extra replicas may be freed. If the requested value is too large, the deployment will error.

int32 min_replica_count = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The minReplicaCount.

getParserForType()

public Parser<AutomaticResources> getParserForType()
Returns
TypeDescription
Parser<AutomaticResources>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 AutomaticResources.Builder newBuilderForType()
Returns
TypeDescription
AutomaticResources.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AutomaticResources.Builder toBuilder()
Returns
TypeDescription
AutomaticResources.Builder

writeTo(CodedOutputStream output)

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