Class AutomaticResources.Builder (1.0.0)

publicstaticfinalclass AutomaticResources.BuilderextendsGeneratedMessageV3.Builder<AutomaticResources.Builder>implementsAutomaticResourcesOrBuilder

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.vertexai.v1.AutomaticResources

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAutomaticResources.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomaticResources.Builder
Overrides

build()

publicAutomaticResourcesbuild()
Returns
Type Description
AutomaticResources

buildPartial()

publicAutomaticResourcesbuildPartial()
Returns
Type Description
AutomaticResources

clear()

publicAutomaticResources.Builderclear()
Returns
Type Description
AutomaticResources.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicAutomaticResources.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutomaticResources.Builder
Overrides

clearMaxReplicaCount()

publicAutomaticResources.BuilderclearMaxReplicaCount()

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
AutomaticResources.Builder

This builder for chaining.

clearMinReplicaCount()

publicAutomaticResources.BuilderclearMinReplicaCount()

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
AutomaticResources.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicAutomaticResources.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutomaticResources.Builder
Overrides

clone()

publicAutomaticResources.Builderclone()
Returns
Type Description
AutomaticResources.Builder
Overrides

getDefaultInstanceForType()

publicAutomaticResourcesgetDefaultInstanceForType()
Returns
Type Description
AutomaticResources

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxReplicaCount()

publicintgetMaxReplicaCount()

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.

getMinReplicaCount()

publicintgetMinReplicaCount()

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutomaticResources other)

publicAutomaticResources.BuildermergeFrom(AutomaticResourcesother)
Parameter
Name Description
other AutomaticResources
Returns
Type Description
AutomaticResources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAutomaticResources.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomaticResources.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicAutomaticResources.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AutomaticResources.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAutomaticResources.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomaticResources.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicAutomaticResources.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomaticResources.Builder
Overrides

setMaxReplicaCount(int value)

publicAutomaticResources.BuildersetMaxReplicaCount(intvalue)

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

Parameter
Name Description
value int

The maxReplicaCount to set.

Returns
Type Description
AutomaticResources.Builder

This builder for chaining.

setMinReplicaCount(int value)

publicAutomaticResources.BuildersetMinReplicaCount(intvalue)

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

Parameter
Name Description
value int

The minReplicaCount to set.

Returns
Type Description
AutomaticResources.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicAutomaticResources.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutomaticResources.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAutomaticResources.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomaticResources.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.