Class AutoscalingSettings.Builder (0.49.0)

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

Autoscaling settings define the rules used by VMware Engine to automatically scale-out and scale-in the clusters in a private cloud.

Protobuf type google.cloud.vmwareengine.v1.AutoscalingSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoscalingSettings build()
Returns
Type Description
AutoscalingSettings

buildPartial()

public AutoscalingSettings buildPartial()
Returns
Type Description
AutoscalingSettings

clear()

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

clearAutoscalingPolicies()

public AutoscalingSettings.Builder clearAutoscalingPolicies()
Returns
Type Description
AutoscalingSettings.Builder

clearCoolDownPeriod()

public AutoscalingSettings.Builder clearCoolDownPeriod()

Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).

.google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMaxClusterNodeCount()

public AutoscalingSettings.Builder clearMaxClusterNodeCount()

Optional. Maximum number of nodes of any type in a cluster. If not specified the default limits apply.

int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Builder

This builder for chaining.

clearMinClusterNodeCount()

public AutoscalingSettings.Builder clearMinClusterNodeCount()

Optional. Minimum number of nodes of any type in a cluster. If not specified the default limits apply.

int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsAutoscalingPolicies(String key)

public boolean containsAutoscalingPolicies(String key)

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAutoscalingPolicies() (deprecated)

public Map<String,AutoscalingSettings.AutoscalingPolicy> getAutoscalingPolicies()
Returns
Type Description
Map<String,AutoscalingPolicy>

getAutoscalingPoliciesCount()

public int getAutoscalingPoliciesCount()

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getAutoscalingPoliciesMap()

public Map<String,AutoscalingSettings.AutoscalingPolicy> getAutoscalingPoliciesMap()

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Map<String,AutoscalingPolicy>

getAutoscalingPoliciesOrDefault(String key, AutoscalingSettings.AutoscalingPolicy defaultValue)

public AutoscalingSettings.AutoscalingPolicy getAutoscalingPoliciesOrDefault(String key, AutoscalingSettings.AutoscalingPolicy defaultValue)

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
defaultValue AutoscalingSettings.AutoscalingPolicy
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy

getAutoscalingPoliciesOrThrow(String key)

public AutoscalingSettings.AutoscalingPolicy getAutoscalingPoliciesOrThrow(String key)

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy

getCoolDownPeriod()

public Duration getCoolDownPeriod()

Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).

.google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The coolDownPeriod.

getCoolDownPeriodBuilder()

public Duration.Builder getCoolDownPeriodBuilder()

Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).

.google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getCoolDownPeriodOrBuilder()

public DurationOrBuilder getCoolDownPeriodOrBuilder()

Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).

.google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public AutoscalingSettings getDefaultInstanceForType()
Returns
Type Description
AutoscalingSettings

getDescriptorForType()

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

getMaxClusterNodeCount()

public int getMaxClusterNodeCount()

Optional. Maximum number of nodes of any type in a cluster. If not specified the default limits apply.

int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxClusterNodeCount.

getMinClusterNodeCount()

public int getMinClusterNodeCount()

Optional. Minimum number of nodes of any type in a cluster. If not specified the default limits apply.

int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minClusterNodeCount.

getMutableAutoscalingPolicies() (deprecated)

public Map<String,AutoscalingSettings.AutoscalingPolicy> getMutableAutoscalingPolicies()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,AutoscalingPolicy>

hasCoolDownPeriod()

public boolean hasCoolDownPeriod()

Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).

.google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the coolDownPeriod field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCoolDownPeriod(Duration value)

public AutoscalingSettings.Builder mergeCoolDownPeriod(Duration value)

Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).

.google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
AutoscalingSettings.Builder

mergeFrom(AutoscalingSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllAutoscalingPolicies(Map<String,AutoscalingSettings.AutoscalingPolicy> values)

public AutoscalingSettings.Builder putAllAutoscalingPolicies(Map<String,AutoscalingSettings.AutoscalingPolicy> values)

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Map<String,AutoscalingPolicy>
Returns
Type Description
AutoscalingSettings.Builder

putAutoscalingPolicies(String key, AutoscalingSettings.AutoscalingPolicy value)

public AutoscalingSettings.Builder putAutoscalingPolicies(String key, AutoscalingSettings.AutoscalingPolicy value)

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
value AutoscalingSettings.AutoscalingPolicy
Returns
Type Description
AutoscalingSettings.Builder

putAutoscalingPoliciesBuilderIfAbsent(String key)

public AutoscalingSettings.AutoscalingPolicy.Builder putAutoscalingPoliciesBuilderIfAbsent(String key)

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
AutoscalingSettings.AutoscalingPolicy.Builder

removeAutoscalingPolicies(String key)

public AutoscalingSettings.Builder removeAutoscalingPolicies(String key)

Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

    Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
AutoscalingSettings.Builder

setCoolDownPeriod(Duration value)

public AutoscalingSettings.Builder setCoolDownPeriod(Duration value)

Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).

.google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
AutoscalingSettings.Builder

setCoolDownPeriod(Duration.Builder builderForValue)

public AutoscalingSettings.Builder setCoolDownPeriod(Duration.Builder builderForValue)

Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).

.google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AutoscalingSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxClusterNodeCount(int value)

public AutoscalingSettings.Builder setMaxClusterNodeCount(int value)

Optional. Maximum number of nodes of any type in a cluster. If not specified the default limits apply.

int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxClusterNodeCount to set.

Returns
Type Description
AutoscalingSettings.Builder

This builder for chaining.

setMinClusterNodeCount(int value)

public AutoscalingSettings.Builder setMinClusterNodeCount(int value)

Optional. Minimum number of nodes of any type in a cluster. If not specified the default limits apply.

int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The minClusterNodeCount to set.

Returns
Type Description
AutoscalingSettings.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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