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.vertexai.v1beta1.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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AutomaticResources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AutomaticResources build()
buildPartial()
public AutomaticResources buildPartial()
clear()
public AutomaticResources.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AutomaticResources.Builder clearField(Descriptors.FieldDescriptor field)
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomaticResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AutomaticResources.Builder clone()
Overrides
getDefaultInstanceForType()
public AutomaticResources getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AutomaticResources other)
public AutomaticResources.Builder mergeFrom(AutomaticResources other)
public AutomaticResources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AutomaticResources.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomaticResources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AutomaticResources.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AutomaticResources.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomaticResources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides