Class AutoscalingSettings.AutoscalingPolicy.Builder (0.47.0)

public static final class AutoscalingSettings.AutoscalingPolicy.Builder extends GeneratedMessageV3.Builder<AutoscalingSettings.AutoscalingPolicy.Builder> implements AutoscalingSettings.AutoscalingPolicyOrBuilder

Autoscaling policy describes the behavior of the autoscaling with respect to the resource utilization. The scale-out operation is initiated if the utilization exceeds ANY of the respective thresholds. The scale-in operation is initiated if the utilization is below ALL of the respective thresholds.

Protobuf type google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingSettings.AutoscalingPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder
Overrides

build()

public AutoscalingSettings.AutoscalingPolicy build()
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy

buildPartial()

public AutoscalingSettings.AutoscalingPolicy buildPartial()
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy

clear()

public AutoscalingSettings.AutoscalingPolicy.Builder clear()
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder
Overrides

clearConsumedMemoryThresholds()

public AutoscalingSettings.AutoscalingPolicy.Builder clearConsumedMemoryThresholds()

Optional. Utilization thresholds pertaining to amount of consumed memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

clearCpuThresholds()

public AutoscalingSettings.AutoscalingPolicy.Builder clearCpuThresholds()

Optional. Utilization thresholds pertaining to CPU utilization.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

public AutoscalingSettings.AutoscalingPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder
Overrides

clearGrantedMemoryThresholds()

public AutoscalingSettings.AutoscalingPolicy.Builder clearGrantedMemoryThresholds()

Optional. Utilization thresholds pertaining to amount of granted memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

clearNodeTypeId()

public AutoscalingSettings.AutoscalingPolicy.Builder clearNodeTypeId()

Required. The canonical identifier of the node type to add or remove. Corresponds to the NodeType.

string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScaleOutSize()

public AutoscalingSettings.AutoscalingPolicy.Builder clearScaleOutSize()

Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration.

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

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

This builder for chaining.

clearStorageThresholds()

public AutoscalingSettings.AutoscalingPolicy.Builder clearStorageThresholds()

Optional. Utilization thresholds pertaining to amount of consumed storage.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

clone()

public AutoscalingSettings.AutoscalingPolicy.Builder clone()
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder
Overrides

getConsumedMemoryThresholds()

public AutoscalingSettings.Thresholds getConsumedMemoryThresholds()

Optional. Utilization thresholds pertaining to amount of consumed memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Thresholds

The consumedMemoryThresholds.

getConsumedMemoryThresholdsBuilder()

public AutoscalingSettings.Thresholds.Builder getConsumedMemoryThresholdsBuilder()

Optional. Utilization thresholds pertaining to amount of consumed memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Thresholds.Builder

getConsumedMemoryThresholdsOrBuilder()

public AutoscalingSettings.ThresholdsOrBuilder getConsumedMemoryThresholdsOrBuilder()

Optional. Utilization thresholds pertaining to amount of consumed memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.ThresholdsOrBuilder

getCpuThresholds()

public AutoscalingSettings.Thresholds getCpuThresholds()

Optional. Utilization thresholds pertaining to CPU utilization.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Thresholds

The cpuThresholds.

getCpuThresholdsBuilder()

public AutoscalingSettings.Thresholds.Builder getCpuThresholdsBuilder()

Optional. Utilization thresholds pertaining to CPU utilization.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Thresholds.Builder

getCpuThresholdsOrBuilder()

public AutoscalingSettings.ThresholdsOrBuilder getCpuThresholdsOrBuilder()

Optional. Utilization thresholds pertaining to CPU utilization.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.ThresholdsOrBuilder

getDefaultInstanceForType()

public AutoscalingSettings.AutoscalingPolicy getDefaultInstanceForType()
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy

getDescriptorForType()

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

getGrantedMemoryThresholds()

public AutoscalingSettings.Thresholds getGrantedMemoryThresholds()

Optional. Utilization thresholds pertaining to amount of granted memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Thresholds

The grantedMemoryThresholds.

getGrantedMemoryThresholdsBuilder()

public AutoscalingSettings.Thresholds.Builder getGrantedMemoryThresholdsBuilder()

Optional. Utilization thresholds pertaining to amount of granted memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Thresholds.Builder

getGrantedMemoryThresholdsOrBuilder()

public AutoscalingSettings.ThresholdsOrBuilder getGrantedMemoryThresholdsOrBuilder()

Optional. Utilization thresholds pertaining to amount of granted memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.ThresholdsOrBuilder

getNodeTypeId()

public String getNodeTypeId()

Required. The canonical identifier of the node type to add or remove. Corresponds to the NodeType.

string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The nodeTypeId.

getNodeTypeIdBytes()

public ByteString getNodeTypeIdBytes()

Required. The canonical identifier of the node type to add or remove. Corresponds to the NodeType.

string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for nodeTypeId.

getScaleOutSize()

public int getScaleOutSize()

Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration.

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

Returns
Type Description
int

The scaleOutSize.

getStorageThresholds()

public AutoscalingSettings.Thresholds getStorageThresholds()

Optional. Utilization thresholds pertaining to amount of consumed storage.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Thresholds

The storageThresholds.

getStorageThresholdsBuilder()

public AutoscalingSettings.Thresholds.Builder getStorageThresholdsBuilder()

Optional. Utilization thresholds pertaining to amount of consumed storage.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Thresholds.Builder

getStorageThresholdsOrBuilder()

public AutoscalingSettings.ThresholdsOrBuilder getStorageThresholdsOrBuilder()

Optional. Utilization thresholds pertaining to amount of consumed storage.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.ThresholdsOrBuilder

hasConsumedMemoryThresholds()

public boolean hasConsumedMemoryThresholds()

Optional. Utilization thresholds pertaining to amount of consumed memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the consumedMemoryThresholds field is set.

hasCpuThresholds()

public boolean hasCpuThresholds()

Optional. Utilization thresholds pertaining to CPU utilization.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cpuThresholds field is set.

hasGrantedMemoryThresholds()

public boolean hasGrantedMemoryThresholds()

Optional. Utilization thresholds pertaining to amount of granted memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the grantedMemoryThresholds field is set.

hasStorageThresholds()

public boolean hasStorageThresholds()

Optional. Utilization thresholds pertaining to amount of consumed storage.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the storageThresholds field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConsumedMemoryThresholds(AutoscalingSettings.Thresholds value)

public AutoscalingSettings.AutoscalingPolicy.Builder mergeConsumedMemoryThresholds(AutoscalingSettings.Thresholds value)

Optional. Utilization thresholds pertaining to amount of consumed memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingSettings.Thresholds
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

mergeCpuThresholds(AutoscalingSettings.Thresholds value)

public AutoscalingSettings.AutoscalingPolicy.Builder mergeCpuThresholds(AutoscalingSettings.Thresholds value)

Optional. Utilization thresholds pertaining to CPU utilization.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingSettings.Thresholds
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

mergeFrom(AutoscalingSettings.AutoscalingPolicy other)

public AutoscalingSettings.AutoscalingPolicy.Builder mergeFrom(AutoscalingSettings.AutoscalingPolicy other)
Parameter
Name Description
other AutoscalingSettings.AutoscalingPolicy
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutoscalingSettings.AutoscalingPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeGrantedMemoryThresholds(AutoscalingSettings.Thresholds value)

public AutoscalingSettings.AutoscalingPolicy.Builder mergeGrantedMemoryThresholds(AutoscalingSettings.Thresholds value)

Optional. Utilization thresholds pertaining to amount of granted memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingSettings.Thresholds
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

mergeStorageThresholds(AutoscalingSettings.Thresholds value)

public AutoscalingSettings.AutoscalingPolicy.Builder mergeStorageThresholds(AutoscalingSettings.Thresholds value)

Optional. Utilization thresholds pertaining to amount of consumed storage.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingSettings.Thresholds
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingSettings.AutoscalingPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder
Overrides

setConsumedMemoryThresholds(AutoscalingSettings.Thresholds value)

public AutoscalingSettings.AutoscalingPolicy.Builder setConsumedMemoryThresholds(AutoscalingSettings.Thresholds value)

Optional. Utilization thresholds pertaining to amount of consumed memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingSettings.Thresholds
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

setConsumedMemoryThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)

public AutoscalingSettings.AutoscalingPolicy.Builder setConsumedMemoryThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)

Optional. Utilization thresholds pertaining to amount of consumed memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AutoscalingSettings.Thresholds.Builder
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

setCpuThresholds(AutoscalingSettings.Thresholds value)

public AutoscalingSettings.AutoscalingPolicy.Builder setCpuThresholds(AutoscalingSettings.Thresholds value)

Optional. Utilization thresholds pertaining to CPU utilization.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingSettings.Thresholds
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

setCpuThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)

public AutoscalingSettings.AutoscalingPolicy.Builder setCpuThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)

Optional. Utilization thresholds pertaining to CPU utilization.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AutoscalingSettings.Thresholds.Builder
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingSettings.AutoscalingPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder
Overrides

setGrantedMemoryThresholds(AutoscalingSettings.Thresholds value)

public AutoscalingSettings.AutoscalingPolicy.Builder setGrantedMemoryThresholds(AutoscalingSettings.Thresholds value)

Optional. Utilization thresholds pertaining to amount of granted memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingSettings.Thresholds
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

setGrantedMemoryThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)

public AutoscalingSettings.AutoscalingPolicy.Builder setGrantedMemoryThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)

Optional. Utilization thresholds pertaining to amount of granted memory.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AutoscalingSettings.Thresholds.Builder
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

setNodeTypeId(String value)

public AutoscalingSettings.AutoscalingPolicy.Builder setNodeTypeId(String value)

Required. The canonical identifier of the node type to add or remove. Corresponds to the NodeType.

string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The nodeTypeId to set.

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

This builder for chaining.

setNodeTypeIdBytes(ByteString value)

public AutoscalingSettings.AutoscalingPolicy.Builder setNodeTypeIdBytes(ByteString value)

Required. The canonical identifier of the node type to add or remove. Corresponds to the NodeType.

string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for nodeTypeId to set.

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

This builder for chaining.

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

public AutoscalingSettings.AutoscalingPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder
Overrides

setScaleOutSize(int value)

public AutoscalingSettings.AutoscalingPolicy.Builder setScaleOutSize(int value)

Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration.

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

Parameter
Name Description
value int

The scaleOutSize to set.

Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

This builder for chaining.

setStorageThresholds(AutoscalingSettings.Thresholds value)

public AutoscalingSettings.AutoscalingPolicy.Builder setStorageThresholds(AutoscalingSettings.Thresholds value)

Optional. Utilization thresholds pertaining to amount of consumed storage.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutoscalingSettings.Thresholds
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

setStorageThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)

public AutoscalingSettings.AutoscalingPolicy.Builder setStorageThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)

Optional. Utilization thresholds pertaining to amount of consumed storage.

.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AutoscalingSettings.Thresholds.Builder
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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