Class AutoscalingSettings (0.43.0)

public final class AutoscalingSettings extends GeneratedMessageV3 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 Fields

AUTOSCALING_POLICIES_FIELD_NUMBER

public static final int AUTOSCALING_POLICIES_FIELD_NUMBER
Field Value
Type Description
int

COOL_DOWN_PERIOD_FIELD_NUMBER

public static final int COOL_DOWN_PERIOD_FIELD_NUMBER
Field Value
Type Description
int

MAX_CLUSTER_NODE_COUNT_FIELD_NUMBER

public static final int MAX_CLUSTER_NODE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

MIN_CLUSTER_NODE_COUNT_FIELD_NUMBER

public static final int MIN_CLUSTER_NODE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AutoscalingSettings getDefaultInstance()
Returns
Type Description
AutoscalingSettings

getDescriptor()

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

newBuilder()

public static AutoscalingSettings.Builder newBuilder()
Returns
Type Description
AutoscalingSettings.Builder

newBuilder(AutoscalingSettings prototype)

public static AutoscalingSettings.Builder newBuilder(AutoscalingSettings prototype)
Parameter
Name Description
prototype AutoscalingSettings
Returns
Type Description
AutoscalingSettings.Builder

parseDelimitedFrom(InputStream input)

public static AutoscalingSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AutoscalingSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutoscalingSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutoscalingSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AutoscalingSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AutoscalingSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AutoscalingSettings> parser()
Returns
Type Description
Parser<AutoscalingSettings>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

getParserForType()

public Parser<AutoscalingSettings> getParserForType()
Returns
Type Description
Parser<AutoscalingSettings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutoscalingSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AutoscalingSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException