Class AutoscalingConfig.AutoscalingTargets.Builder (6.58.0)

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

The autoscaling targets for an instance.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoscalingConfig.AutoscalingTargets build()
Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets

buildPartial()

public AutoscalingConfig.AutoscalingTargets buildPartial()
Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets

clear()

public AutoscalingConfig.AutoscalingTargets.Builder clear()
Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearHighPriorityCpuUtilizationPercent()

public AutoscalingConfig.AutoscalingTargets.Builder clearHighPriorityCpuUtilizationPercent()

Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.

int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStorageUtilizationPercent()

public AutoscalingConfig.AutoscalingTargets.Builder clearStorageUtilizationPercent()

Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.

int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets.Builder

This builder for chaining.

clone()

public AutoscalingConfig.AutoscalingTargets.Builder clone()
Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets.Builder
Overrides

getDefaultInstanceForType()

public AutoscalingConfig.AutoscalingTargets getDefaultInstanceForType()
Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHighPriorityCpuUtilizationPercent()

public int getHighPriorityCpuUtilizationPercent()

Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.

int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The highPriorityCpuUtilizationPercent.

getStorageUtilizationPercent()

public int getStorageUtilizationPercent()

Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.

int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The storageUtilizationPercent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AutoscalingConfig.AutoscalingTargets other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHighPriorityCpuUtilizationPercent(int value)

public AutoscalingConfig.AutoscalingTargets.Builder setHighPriorityCpuUtilizationPercent(int value)

Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.

int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The highPriorityCpuUtilizationPercent to set.

Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets.Builder

This builder for chaining.

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

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

setStorageUtilizationPercent(int value)

public AutoscalingConfig.AutoscalingTargets.Builder setStorageUtilizationPercent(int value)

Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.

int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The storageUtilizationPercent to set.

Returns
TypeDescription
AutoscalingConfig.AutoscalingTargets.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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