Class AutomaticResources.Builder (3.17.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.v1.AutomaticResources

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomaticResources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomaticResources.Builder
Overrides

build()

public AutomaticResources build()
Returns
TypeDescription
AutomaticResources

buildPartial()

public AutomaticResources buildPartial()
Returns
TypeDescription
AutomaticResources

clear()

public AutomaticResources.Builder clear()
Returns
TypeDescription
AutomaticResources.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AutomaticResources.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AutomaticResources.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomaticResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutomaticResources.Builder
Overrides

clone()

public AutomaticResources.Builder clone()
Returns
TypeDescription
AutomaticResources.Builder
Overrides

getDefaultInstanceForType()

public AutomaticResources getDefaultInstanceForType()
Returns
TypeDescription
AutomaticResources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutomaticResources other)

public AutomaticResources.Builder mergeFrom(AutomaticResources other)
Parameter
NameDescription
otherAutomaticResources
Returns
TypeDescription
AutomaticResources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomaticResources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomaticResources.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutomaticResources.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutomaticResources.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomaticResources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomaticResources.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AutomaticResources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The maxReplicaCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The minReplicaCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutomaticResources.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomaticResources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomaticResources.Builder
Overrides