Class AutoscalingConfig.Builder (6.54.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutoscalingConfig.Builder
Overrides

build()

public AutoscalingConfig build()
Returns
TypeDescription
AutoscalingConfig

buildPartial()

public AutoscalingConfig buildPartial()
Returns
TypeDescription
AutoscalingConfig

clear()

public AutoscalingConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AutoscalingConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public AutoscalingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutoscalingConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoscalingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutoscalingConfig.Builder
Overrides

clone()

public AutoscalingConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AutoscalingConfig.AutoscalingTargetsOrBuilder

getDefaultInstanceForType()

public AutoscalingConfig getDefaultInstanceForType()
Returns
TypeDescription
AutoscalingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the autoscalingTargets field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAutoscalingConfig.AutoscalingLimits
Returns
TypeDescription
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
NameDescription
valueAutoscalingConfig.AutoscalingTargets
Returns
TypeDescription
AutoscalingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutoscalingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoscalingConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutoscalingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutoscalingConfig.Builder
Overrides

mergeFrom(AutoscalingConfig other)

public AutoscalingConfig.Builder mergeFrom(AutoscalingConfig other)
Parameter
NameDescription
otherAutoscalingConfig
Returns
TypeDescription
AutoscalingConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAutoscalingConfig.AutoscalingLimits
Returns
TypeDescription
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
NameDescription
builderForValueAutoscalingConfig.AutoscalingLimits.Builder
Returns
TypeDescription
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
NameDescription
valueAutoscalingConfig.AutoscalingTargets
Returns
TypeDescription
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
NameDescription
builderForValueAutoscalingConfig.AutoscalingTargets.Builder
Returns
TypeDescription
AutoscalingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutoscalingConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AutoscalingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutoscalingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutoscalingConfig.Builder
Overrides