Class AutoscalingTargets.Builder (2.16.0)

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

The Autoscaling targets for a Cluster. These determine the recommended nodes.

Protobuf type google.bigtable.admin.v2.AutoscalingTargets

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoscalingTargets build()
Returns
TypeDescription
AutoscalingTargets

buildPartial()

public AutoscalingTargets buildPartial()
Returns
TypeDescription
AutoscalingTargets

clear()

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

clearCpuUtilizationPercent()

public AutoscalingTargets.Builder clearCpuUtilizationPercent()

The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80, otherwise it will return INVALID_ARGUMENT error.

int32 cpu_utilization_percent = 2;

Returns
TypeDescription
AutoscalingTargets.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStorageUtilizationGibPerNode()

public AutoscalingTargets.Builder clearStorageUtilizationGibPerNode()

The storage utilization that the Autoscaler should be trying to achieve. This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster; otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, it will be treated as if it were set to the default value: 2560 for SSD, 8192 for HDD.

int32 storage_utilization_gib_per_node = 3;

Returns
TypeDescription
AutoscalingTargets.Builder

This builder for chaining.

clone()

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

getCpuUtilizationPercent()

public int getCpuUtilizationPercent()

The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80, otherwise it will return INVALID_ARGUMENT error.

int32 cpu_utilization_percent = 2;

Returns
TypeDescription
int

The cpuUtilizationPercent.

getDefaultInstanceForType()

public AutoscalingTargets getDefaultInstanceForType()
Returns
TypeDescription
AutoscalingTargets

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getStorageUtilizationGibPerNode()

public int getStorageUtilizationGibPerNode()

The storage utilization that the Autoscaler should be trying to achieve. This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster; otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, it will be treated as if it were set to the default value: 2560 for SSD, 8192 for HDD.

int32 storage_utilization_gib_per_node = 3;

Returns
TypeDescription
int

The storageUtilizationGibPerNode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutoscalingTargets other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCpuUtilizationPercent(int value)

public AutoscalingTargets.Builder setCpuUtilizationPercent(int value)

The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80, otherwise it will return INVALID_ARGUMENT error.

int32 cpu_utilization_percent = 2;

Parameter
NameDescription
valueint

The cpuUtilizationPercent to set.

Returns
TypeDescription
AutoscalingTargets.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStorageUtilizationGibPerNode(int value)

public AutoscalingTargets.Builder setStorageUtilizationGibPerNode(int value)

The storage utilization that the Autoscaler should be trying to achieve. This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster; otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, it will be treated as if it were set to the default value: 2560 for SSD, 8192 for HDD.

int32 storage_utilization_gib_per_node = 3;

Parameter
NameDescription
valueint

The storageUtilizationGibPerNode to set.

Returns
TypeDescription
AutoscalingTargets.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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