Class AutomaticResources.Builder (3.49.0)

public static final class AutomaticResources.Builder extends GeneratedMessageV3.Builder<AutomaticResources.Builder> 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.v1beta1.AutomaticResources

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomaticResources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomaticResources.Builder
Overrides

build()

public AutomaticResources build()
Returns
Type Description
AutomaticResources

buildPartial()

public AutomaticResources buildPartial()
Returns
Type Description
AutomaticResources

clear()

public AutomaticResources.Builder clear()
Returns
Type Description
AutomaticResources.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AutomaticResources.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutomaticResources.Builder
Overrides

clearMaxReplicaCount()

public AutomaticResources.Builder clearMaxReplicaCount()

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()

public AutomaticResources.Builder clearMinReplicaCount()

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)

public AutomaticResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutomaticResources.Builder
Overrides

clone()

public AutomaticResources.Builder clone()
Returns
Type Description
AutomaticResources.Builder
Overrides

getDefaultInstanceForType()

public AutomaticResources getDefaultInstanceForType()
Returns
Type Description
AutomaticResources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
int

The minReplicaCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutomaticResources other)

public AutomaticResources.Builder mergeFrom(AutomaticResources other)
Parameter
Name Description
other AutomaticResources
Returns
Type Description
AutomaticResources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomaticResources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomaticResources.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AutomaticResources.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutomaticResources.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomaticResources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomaticResources.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AutomaticResources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomaticResources.Builder
Overrides

setMaxReplicaCount(int value)

public AutomaticResources.Builder setMaxReplicaCount(int value)

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)

public AutomaticResources.Builder setMinReplicaCount(int value)

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)

public AutomaticResources.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutomaticResources.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomaticResources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomaticResources.Builder
Overrides