Class AutoscalingConfig.Builder (6.66.0)

public static final class AutoscalingConfig.Builder extends GeneratedMessageV3.Builder<AutoscalingConfig.Builder> implements AutoscalingConfigOrBuilder

Autoscaling config for an instance.

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

Static Methods

getDescriptor()

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

Methods

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
Overrides

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
Overrides

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
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoscalingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutoscalingConfig.Builder
Overrides

clone()

public AutoscalingConfig.Builder clone()
Returns
Type Description
AutoscalingConfig.Builder
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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
Overrides

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
Overrides

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoscalingConfig.Builder
Overrides