Package com.google.cloud.vmwareengine.v1
Class AutoscalingSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder
- All Implemented Interfaces:
AutoscalingSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutoscalingSettings
public static final class AutoscalingSettings.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.booleanRequired.Deprecated.intRequired.Required.getAutoscalingPoliciesOrDefault(String key, AutoscalingSettings.AutoscalingPolicy defaultValue) Required.Required.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintOptional.intOptional.Deprecated.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCoolDownPeriod(com.google.protobuf.Duration value) Optional.mergeFrom(AutoscalingSettings other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.Required.Required.Required.setCoolDownPeriod(com.google.protobuf.Duration value) Optional.setCoolDownPeriod(com.google.protobuf.Duration.Builder builderForValue) Optional.setMaxClusterNodeCount(int value) Optional.setMinClusterNodeCount(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoscalingSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
-
mergeFrom
public AutoscalingSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoscalingSettings.Builder>- Throws:
IOException
-
getAutoscalingPoliciesCount
public int getAutoscalingPoliciesCount()Description copied from interface:AutoscalingSettingsOrBuilderRequired. 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](https://datatracker.ietf.org/doc/html/rfc1034) (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];- Specified by:
getAutoscalingPoliciesCountin interfaceAutoscalingSettingsOrBuilder
-
containsAutoscalingPolicies
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](https://datatracker.ietf.org/doc/html/rfc1034) (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];- Specified by:
containsAutoscalingPoliciesin interfaceAutoscalingSettingsOrBuilder
-
getAutoscalingPolicies
Deprecated.UsegetAutoscalingPoliciesMap()instead.- Specified by:
getAutoscalingPoliciesin interfaceAutoscalingSettingsOrBuilder
-
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](https://datatracker.ietf.org/doc/html/rfc1034) (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];- Specified by:
getAutoscalingPoliciesMapin interfaceAutoscalingSettingsOrBuilder
-
getAutoscalingPoliciesOrDefault
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](https://datatracker.ietf.org/doc/html/rfc1034) (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];- Specified by:
getAutoscalingPoliciesOrDefaultin interfaceAutoscalingSettingsOrBuilder
-
getAutoscalingPoliciesOrThrow
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](https://datatracker.ietf.org/doc/html/rfc1034) (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];- Specified by:
getAutoscalingPoliciesOrThrowin interfaceAutoscalingSettingsOrBuilder
-
clearAutoscalingPolicies
-
removeAutoscalingPolicies
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](https://datatracker.ietf.org/doc/html/rfc1034) (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]; -
getMutableAutoscalingPolicies
@Deprecated public Map<String,AutoscalingSettings.AutoscalingPolicy> getMutableAutoscalingPolicies()Deprecated.Use alternate mutation accessors instead. -
putAutoscalingPolicies
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](https://datatracker.ietf.org/doc/html/rfc1034) (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]; -
putAllAutoscalingPolicies
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](https://datatracker.ietf.org/doc/html/rfc1034) (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]; -
putAutoscalingPoliciesBuilderIfAbsent
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](https://datatracker.ietf.org/doc/html/rfc1034) (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]; -
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];- Specified by:
getMinClusterNodeCountin interfaceAutoscalingSettingsOrBuilder- Returns:
- The minClusterNodeCount.
-
setMinClusterNodeCount
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];- Parameters:
value- The minClusterNodeCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getMaxClusterNodeCountin interfaceAutoscalingSettingsOrBuilder- Returns:
- The maxClusterNodeCount.
-
setMaxClusterNodeCount
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];- Parameters:
value- The maxClusterNodeCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasCoolDownPeriodin interfaceAutoscalingSettingsOrBuilder- Returns:
- Whether the coolDownPeriod field is set.
-
getCoolDownPeriod
public com.google.protobuf.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];- Specified by:
getCoolDownPeriodin interfaceAutoscalingSettingsOrBuilder- Returns:
- The coolDownPeriod.
-
setCoolDownPeriod
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]; -
setCoolDownPeriod
public AutoscalingSettings.Builder setCoolDownPeriod(com.google.protobuf.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]; -
mergeCoolDownPeriod
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]; -
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]; -
getCoolDownPeriodBuilder
public com.google.protobuf.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]; -
getCoolDownPeriodOrBuilder
public com.google.protobuf.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];- Specified by:
getCoolDownPeriodOrBuilderin interfaceAutoscalingSettingsOrBuilder
-