Class AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder (6.108.0)

public static final class AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder extends GeneratedMessage.Builder<AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder> implements AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverridesOrBuilder

Overrides the top-level autoscaling configuration for the replicas identified by replica_selection. All fields in this message are optional. Any unspecified fields will use the corresponding values from the top-level autoscaling configuration.

Protobuf type google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

Static Methods

getDescriptor()

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

Methods

build()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides build()
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides

buildPartial()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides buildPartial()
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides

clear()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder clear()
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder
Overrides

clearAutoscalingLimits()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder clearAutoscalingLimits()

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

clearAutoscalingTargetHighPriorityCpuUtilizationPercent()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder clearAutoscalingTargetHighPriorityCpuUtilizationPercent()

Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

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

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

This builder for chaining.

clearAutoscalingTargetTotalCpuUtilizationPercent()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder clearAutoscalingTargetTotalCpuUtilizationPercent()

Optional. If specified, overrides the autoscaling target total_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

int32 autoscaling_target_total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

This builder for chaining.

clearDisableHighPriorityCpuAutoscaling()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder clearDisableHighPriorityCpuAutoscaling()

Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores high_priority_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a non-zero value for the same replica is not supported.

If false, the autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-level autoscaling configuration will be used.

Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

bool disable_high_priority_cpu_autoscaling = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

This builder for chaining.

clearDisableTotalCpuAutoscaling()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder clearDisableTotalCpuAutoscaling()

Optional. If true, disables total CPU autoscaling for the selected replicas and ignores total_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero value for the same replica is not supported.

If false, the autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling configuration will be used.

Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

bool disable_total_cpu_autoscaling = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

This builder for chaining.

getAutoscalingLimits()

public AutoscalingConfig.AutoscalingLimits getAutoscalingLimits()

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingConfig.AutoscalingLimits

The autoscalingLimits.

getAutoscalingLimitsBuilder()

public AutoscalingConfig.AutoscalingLimits.Builder getAutoscalingLimitsBuilder()

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

getAutoscalingLimitsOrBuilder()

public AutoscalingConfig.AutoscalingLimitsOrBuilder getAutoscalingLimitsOrBuilder()

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingConfig.AutoscalingLimitsOrBuilder

getAutoscalingTargetHighPriorityCpuUtilizationPercent()

public int getAutoscalingTargetHighPriorityCpuUtilizationPercent()

Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

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

Returns
Type Description
int

The autoscalingTargetHighPriorityCpuUtilizationPercent.

getAutoscalingTargetTotalCpuUtilizationPercent()

public int getAutoscalingTargetTotalCpuUtilizationPercent()

Optional. If specified, overrides the autoscaling target total_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

int32 autoscaling_target_total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The autoscalingTargetTotalCpuUtilizationPercent.

getDefaultInstanceForType()

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides getDefaultInstanceForType()
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides

getDescriptorForType()

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

getDisableHighPriorityCpuAutoscaling()

public boolean getDisableHighPriorityCpuAutoscaling()

Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores high_priority_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a non-zero value for the same replica is not supported.

If false, the autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-level autoscaling configuration will be used.

Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

bool disable_high_priority_cpu_autoscaling = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disableHighPriorityCpuAutoscaling.

getDisableTotalCpuAutoscaling()

public boolean getDisableTotalCpuAutoscaling()

Optional. If true, disables total CPU autoscaling for the selected replicas and ignores total_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero value for the same replica is not supported.

If false, the autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling configuration will be used.

Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

bool disable_total_cpu_autoscaling = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disableTotalCpuAutoscaling.

hasAutoscalingLimits()

public boolean hasAutoscalingLimits()

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the autoscalingLimits field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAutoscalingLimits(AutoscalingConfig.AutoscalingLimits value)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder mergeAutoscalingLimits(AutoscalingConfig.AutoscalingLimits value)

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingConfig.AutoscalingLimits
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder
Overrides

mergeFrom(AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides other)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder mergeFrom(AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides other)
Parameter
Name Description
other AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

setAutoscalingLimits(AutoscalingConfig.AutoscalingLimits value)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder setAutoscalingLimits(AutoscalingConfig.AutoscalingLimits value)

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingConfig.AutoscalingLimits
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

setAutoscalingLimits(AutoscalingConfig.AutoscalingLimits.Builder builderForValue)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder setAutoscalingLimits(AutoscalingConfig.AutoscalingLimits.Builder builderForValue)

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AutoscalingConfig.AutoscalingLimits.Builder
Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

setAutoscalingTargetHighPriorityCpuUtilizationPercent(int value)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder setAutoscalingTargetHighPriorityCpuUtilizationPercent(int value)

Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

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

Parameter
Name Description
value int

The autoscalingTargetHighPriorityCpuUtilizationPercent to set.

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

This builder for chaining.

setAutoscalingTargetTotalCpuUtilizationPercent(int value)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder setAutoscalingTargetTotalCpuUtilizationPercent(int value)

Optional. If specified, overrides the autoscaling target total_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

int32 autoscaling_target_total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The autoscalingTargetTotalCpuUtilizationPercent to set.

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

This builder for chaining.

setDisableHighPriorityCpuAutoscaling(boolean value)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder setDisableHighPriorityCpuAutoscaling(boolean value)

Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores high_priority_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a non-zero value for the same replica is not supported.

If false, the autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-level autoscaling configuration will be used.

Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

bool disable_high_priority_cpu_autoscaling = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The disableHighPriorityCpuAutoscaling to set.

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

This builder for chaining.

setDisableTotalCpuAutoscaling(boolean value)

public AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder setDisableTotalCpuAutoscaling(boolean value)

Optional. If true, disables total CPU autoscaling for the selected replicas and ignores total_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero value for the same replica is not supported.

If false, the autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling configuration will be used.

Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

bool disable_total_cpu_autoscaling = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The disableTotalCpuAutoscaling to set.

Returns
Type Description
AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.Builder

This builder for chaining.