Class DedicatedInfrastructure.AutoscalingSpec.Builder (0.8.0)

public static final class DedicatedInfrastructure.AutoscalingSpec.Builder extends GeneratedMessage.Builder<DedicatedInfrastructure.AutoscalingSpec.Builder> implements DedicatedInfrastructure.AutoscalingSpecOrBuilder

Specification for autoscaling.

Protobuf type google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec

Static Methods

getDescriptor()

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

Methods

build()

public DedicatedInfrastructure.AutoscalingSpec build()
Returns
Type Description
DedicatedInfrastructure.AutoscalingSpec

buildPartial()

public DedicatedInfrastructure.AutoscalingSpec buildPartial()
Returns
Type Description
DedicatedInfrastructure.AutoscalingSpec

clear()

public DedicatedInfrastructure.AutoscalingSpec.Builder clear()
Returns
Type Description
DedicatedInfrastructure.AutoscalingSpec.Builder
Overrides

clearMaxReplicaCount()

public DedicatedInfrastructure.AutoscalingSpec.Builder clearMaxReplicaCount()

Optional. The maximum number of replicas. If not set or set to 0, defaults to the greater of min_replica_count and 5. Must be >= min_replica_count and <= 1000.

int32 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DedicatedInfrastructure.AutoscalingSpec.Builder

This builder for chaining.

clearMinReplicaCount()

public DedicatedInfrastructure.AutoscalingSpec.Builder clearMinReplicaCount()

Optional. The minimum number of replicas. If not set or set to 0, defaults to 2. Must be >= 2 and <= 1000.

int32 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DedicatedInfrastructure.AutoscalingSpec.Builder

This builder for chaining.

getDefaultInstanceForType()

public DedicatedInfrastructure.AutoscalingSpec getDefaultInstanceForType()
Returns
Type Description
DedicatedInfrastructure.AutoscalingSpec

getDescriptorForType()

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

getMaxReplicaCount()

public int getMaxReplicaCount()

Optional. The maximum number of replicas. If not set or set to 0, defaults to the greater of min_replica_count and 5. Must be >= min_replica_count and <= 1000.

int32 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxReplicaCount.

getMinReplicaCount()

public int getMinReplicaCount()

Optional. The minimum number of replicas. If not set or set to 0, defaults to 2. Must be >= 2 and <= 1000.

int32 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minReplicaCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DedicatedInfrastructure.AutoscalingSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setMaxReplicaCount(int value)

public DedicatedInfrastructure.AutoscalingSpec.Builder setMaxReplicaCount(int value)

Optional. The maximum number of replicas. If not set or set to 0, defaults to the greater of min_replica_count and 5. Must be >= min_replica_count and <= 1000.

int32 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxReplicaCount to set.

Returns
Type Description
DedicatedInfrastructure.AutoscalingSpec.Builder

This builder for chaining.

setMinReplicaCount(int value)

public DedicatedInfrastructure.AutoscalingSpec.Builder setMinReplicaCount(int value)

Optional. The minimum number of replicas. If not set or set to 0, defaults to 2. Must be >= 2 and <= 1000.

int32 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The minReplicaCount to set.

Returns
Type Description
DedicatedInfrastructure.AutoscalingSpec.Builder

This builder for chaining.