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
public static final int MAX_REPLICA_COUNT_FIELD_NUMBER
Field Value
public static final int MIN_REPLICA_COUNT_FIELD_NUMBER
Field Value
Static Methods
public static AutomaticResources getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static AutomaticResources.Builder newBuilder()
Returns
public static AutomaticResources.Builder newBuilder(AutomaticResources prototype)
Parameter
Returns
public static AutomaticResources parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutomaticResources parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomaticResources parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static AutomaticResources parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomaticResources parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static AutomaticResources parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomaticResources parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AutomaticResources parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomaticResources parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutomaticResources parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomaticResources parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static AutomaticResources parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<AutomaticResources> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public AutomaticResources getDefaultInstanceForType()
Returns
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
Type | Description |
int | The maxReplicaCount.
|
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
Type | Description |
int | The minReplicaCount.
|
public Parser<AutomaticResources> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public AutomaticResources.Builder newBuilderForType()
Returns
protected AutomaticResources.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public AutomaticResources.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions