public static final class AutoscalingConfig.Builder extends GeneratedMessageV3.Builder<AutoscalingConfig.Builder> implements AutoscalingConfigOrBuilder
Autoscaling configuration for an instance.
Protobuf type google.spanner.admin.instance.v1.AutoscalingConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AutoscalingConfig.BuilderImplements
AutoscalingConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllAsymmetricAutoscalingOptions(Iterable<? extends AutoscalingConfig.AsymmetricAutoscalingOption> values)
public AutoscalingConfig.Builder addAllAsymmetricAutoscalingOptions(Iterable<? extends AutoscalingConfig.AsymmetricAutoscalingOption> values)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption> |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
addAsymmetricAutoscalingOptions(AutoscalingConfig.AsymmetricAutoscalingOption value)
public AutoscalingConfig.Builder addAsymmetricAutoscalingOptions(AutoscalingConfig.AsymmetricAutoscalingOption value)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
AutoscalingConfig.AsymmetricAutoscalingOption |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
addAsymmetricAutoscalingOptions(AutoscalingConfig.AsymmetricAutoscalingOption.Builder builderForValue)
public AutoscalingConfig.Builder addAsymmetricAutoscalingOptions(AutoscalingConfig.AsymmetricAutoscalingOption.Builder builderForValue)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
AutoscalingConfig.AsymmetricAutoscalingOption.Builder |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
addAsymmetricAutoscalingOptions(int index, AutoscalingConfig.AsymmetricAutoscalingOption value)
public AutoscalingConfig.Builder addAsymmetricAutoscalingOptions(int index, AutoscalingConfig.AsymmetricAutoscalingOption value)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
AutoscalingConfig.AsymmetricAutoscalingOption |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
addAsymmetricAutoscalingOptions(int index, AutoscalingConfig.AsymmetricAutoscalingOption.Builder builderForValue)
public AutoscalingConfig.Builder addAsymmetricAutoscalingOptions(int index, AutoscalingConfig.AsymmetricAutoscalingOption.Builder builderForValue)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
AutoscalingConfig.AsymmetricAutoscalingOption.Builder |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
addAsymmetricAutoscalingOptionsBuilder()
public AutoscalingConfig.AsymmetricAutoscalingOption.Builder addAsymmetricAutoscalingOptionsBuilder()
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AsymmetricAutoscalingOption.Builder |
addAsymmetricAutoscalingOptionsBuilder(int index)
public AutoscalingConfig.AsymmetricAutoscalingOption.Builder addAsymmetricAutoscalingOptionsBuilder(int index)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AsymmetricAutoscalingOption.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AutoscalingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
build()
public AutoscalingConfig build()
Returns | |
---|---|
Type | Description |
AutoscalingConfig |
buildPartial()
public AutoscalingConfig buildPartial()
Returns | |
---|---|
Type | Description |
AutoscalingConfig |
clear()
public AutoscalingConfig.Builder clear()
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
clearAsymmetricAutoscalingOptions()
public AutoscalingConfig.Builder clearAsymmetricAutoscalingOptions()
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
clearAutoscalingLimits()
public AutoscalingConfig.Builder clearAutoscalingLimits()
Required. Autoscaling limits for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
clearAutoscalingTargets()
public AutoscalingConfig.Builder clearAutoscalingTargets()
Required. The autoscaling targets for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public AutoscalingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AutoscalingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
clone()
public AutoscalingConfig.Builder clone()
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
getAsymmetricAutoscalingOptions(int index)
public AutoscalingConfig.AsymmetricAutoscalingOption getAsymmetricAutoscalingOptions(int index)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AsymmetricAutoscalingOption |
getAsymmetricAutoscalingOptionsBuilder(int index)
public AutoscalingConfig.AsymmetricAutoscalingOption.Builder getAsymmetricAutoscalingOptionsBuilder(int index)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AsymmetricAutoscalingOption.Builder |
getAsymmetricAutoscalingOptionsBuilderList()
public List<AutoscalingConfig.AsymmetricAutoscalingOption.Builder> getAsymmetricAutoscalingOptionsBuilderList()
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getAsymmetricAutoscalingOptionsCount()
public int getAsymmetricAutoscalingOptionsCount()
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getAsymmetricAutoscalingOptionsList()
public List<AutoscalingConfig.AsymmetricAutoscalingOption> getAsymmetricAutoscalingOptionsList()
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<AsymmetricAutoscalingOption> |
getAsymmetricAutoscalingOptionsOrBuilder(int index)
public AutoscalingConfig.AsymmetricAutoscalingOptionOrBuilder getAsymmetricAutoscalingOptionsOrBuilder(int index)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AsymmetricAutoscalingOptionOrBuilder |
getAsymmetricAutoscalingOptionsOrBuilderList()
public List<? extends AutoscalingConfig.AsymmetricAutoscalingOptionOrBuilder> getAsymmetricAutoscalingOptionsOrBuilderList()
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOptionOrBuilder> |
getAutoscalingLimits()
public AutoscalingConfig.AutoscalingLimits getAutoscalingLimits()
Required. Autoscaling limits for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AutoscalingLimits |
The autoscalingLimits. |
getAutoscalingLimitsBuilder()
public AutoscalingConfig.AutoscalingLimits.Builder getAutoscalingLimitsBuilder()
Required. Autoscaling limits for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AutoscalingLimits.Builder |
getAutoscalingLimitsOrBuilder()
public AutoscalingConfig.AutoscalingLimitsOrBuilder getAutoscalingLimitsOrBuilder()
Required. Autoscaling limits for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AutoscalingLimitsOrBuilder |
getAutoscalingTargets()
public AutoscalingConfig.AutoscalingTargets getAutoscalingTargets()
Required. The autoscaling targets for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AutoscalingTargets |
The autoscalingTargets. |
getAutoscalingTargetsBuilder()
public AutoscalingConfig.AutoscalingTargets.Builder getAutoscalingTargetsBuilder()
Required. The autoscaling targets for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AutoscalingTargets.Builder |
getAutoscalingTargetsOrBuilder()
public AutoscalingConfig.AutoscalingTargetsOrBuilder getAutoscalingTargetsOrBuilder()
Required. The autoscaling targets for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AutoscalingConfig.AutoscalingTargetsOrBuilder |
getDefaultInstanceForType()
public AutoscalingConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AutoscalingConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
hasAutoscalingLimits()
public boolean hasAutoscalingLimits()
Required. Autoscaling limits for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the autoscalingLimits field is set. |
hasAutoscalingTargets()
public boolean hasAutoscalingTargets()
Required. The autoscaling targets for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the autoscalingTargets field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAutoscalingLimits(AutoscalingConfig.AutoscalingLimits value)
public AutoscalingConfig.Builder mergeAutoscalingLimits(AutoscalingConfig.AutoscalingLimits value)
Required. Autoscaling limits for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
AutoscalingConfig.AutoscalingLimits |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
mergeAutoscalingTargets(AutoscalingConfig.AutoscalingTargets value)
public AutoscalingConfig.Builder mergeAutoscalingTargets(AutoscalingConfig.AutoscalingTargets value)
Required. The autoscaling targets for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
AutoscalingConfig.AutoscalingTargets |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutoscalingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AutoscalingConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
mergeFrom(AutoscalingConfig other)
public AutoscalingConfig.Builder mergeFrom(AutoscalingConfig other)
Parameter | |
---|---|
Name | Description |
other |
AutoscalingConfig |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutoscalingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
removeAsymmetricAutoscalingOptions(int index)
public AutoscalingConfig.Builder removeAsymmetricAutoscalingOptions(int index)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setAsymmetricAutoscalingOptions(int index, AutoscalingConfig.AsymmetricAutoscalingOption value)
public AutoscalingConfig.Builder setAsymmetricAutoscalingOptions(int index, AutoscalingConfig.AsymmetricAutoscalingOption value)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
AutoscalingConfig.AsymmetricAutoscalingOption |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setAsymmetricAutoscalingOptions(int index, AutoscalingConfig.AsymmetricAutoscalingOption.Builder builderForValue)
public AutoscalingConfig.Builder setAsymmetricAutoscalingOptions(int index, AutoscalingConfig.AsymmetricAutoscalingOption.Builder builderForValue)
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
AutoscalingConfig.AsymmetricAutoscalingOption.Builder |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setAutoscalingLimits(AutoscalingConfig.AutoscalingLimits value)
public AutoscalingConfig.Builder setAutoscalingLimits(AutoscalingConfig.AutoscalingLimits value)
Required. Autoscaling limits for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
AutoscalingConfig.AutoscalingLimits |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setAutoscalingLimits(AutoscalingConfig.AutoscalingLimits.Builder builderForValue)
public AutoscalingConfig.Builder setAutoscalingLimits(AutoscalingConfig.AutoscalingLimits.Builder builderForValue)
Required. Autoscaling limits for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
AutoscalingConfig.AutoscalingLimits.Builder |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setAutoscalingTargets(AutoscalingConfig.AutoscalingTargets value)
public AutoscalingConfig.Builder setAutoscalingTargets(AutoscalingConfig.AutoscalingTargets value)
Required. The autoscaling targets for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
AutoscalingConfig.AutoscalingTargets |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setAutoscalingTargets(AutoscalingConfig.AutoscalingTargets.Builder builderForValue)
public AutoscalingConfig.Builder setAutoscalingTargets(AutoscalingConfig.AutoscalingTargets.Builder builderForValue)
Required. The autoscaling targets for an instance.
.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
AutoscalingConfig.AutoscalingTargets.Builder |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AutoscalingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AutoscalingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AutoscalingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AutoscalingConfig.Builder |