Package com.google.cloud.vmwareengine.v1
Class AutoscalingSettings.AutoscalingPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.AutoscalingPolicy.Builder>
com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder
- All Implemented Interfaces:
AutoscalingSettings.AutoscalingPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutoscalingSettings.AutoscalingPolicy
public static final class AutoscalingSettings.AutoscalingPolicy.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Required.Required.Optional.Optional.Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.intRequired.Optional.Optional.Optional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Optional.Optional.setConsumedMemoryThresholds(AutoscalingSettings.Thresholds.Builder builderForValue) Optional.Optional.setCpuThresholds(AutoscalingSettings.Thresholds.Builder builderForValue) Optional.Optional.setGrantedMemoryThresholds(AutoscalingSettings.Thresholds.Builder builderForValue) Optional.setNodeTypeId(String value) Required.setNodeTypeIdBytes(com.google.protobuf.ByteString value) Required.setScaleOutSize(int value) Required.Optional.setStorageThresholds(AutoscalingSettings.Thresholds.Builder builderForValue) 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.AutoscalingPolicy.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.AutoscalingPolicy.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.AutoscalingPolicy.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.AutoscalingPolicy.Builder>
-
mergeFrom
public AutoscalingSettings.AutoscalingPolicy.Builder mergeFrom(AutoscalingSettings.AutoscalingPolicy other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.AutoscalingPolicy.Builder>
-
mergeFrom
public AutoscalingSettings.AutoscalingPolicy.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.AutoscalingPolicy.Builder>- Throws:
IOException
-
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];- Specified by:
getNodeTypeIdin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- The nodeTypeId.
-
getNodeTypeIdBytes
public com.google.protobuf.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];- Specified by:
getNodeTypeIdBytesin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- The bytes for nodeTypeId.
-
setNodeTypeId
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];- Parameters:
value- The nodeTypeId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNodeTypeIdBytes
public AutoscalingSettings.AutoscalingPolicy.Builder setNodeTypeIdBytes(com.google.protobuf.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];- Parameters:
value- The bytes for nodeTypeId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getScaleOutSizein interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- The scaleOutSize.
-
setScaleOutSize
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];- Parameters:
value- The scaleOutSize to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasCpuThresholdsin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- Whether the cpuThresholds field is set.
-
getCpuThresholds
Optional. Utilization thresholds pertaining to CPU utilization.
.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCpuThresholdsin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- The cpuThresholds.
-
setCpuThresholds
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]; -
setCpuThresholds
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]; -
mergeCpuThresholds
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]; -
clearCpuThresholds
Optional. Utilization thresholds pertaining to CPU utilization.
.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getCpuThresholdsBuilder
Optional. Utilization thresholds pertaining to CPU utilization.
.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getCpuThresholdsOrBuilder
Optional. Utilization thresholds pertaining to CPU utilization.
.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCpuThresholdsOrBuilderin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder
-
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];- Specified by:
hasGrantedMemoryThresholdsin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- Whether the grantedMemoryThresholds field is set.
-
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];- Specified by:
getGrantedMemoryThresholdsin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- The grantedMemoryThresholds.
-
setGrantedMemoryThresholds
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]; -
setGrantedMemoryThresholds
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]; -
mergeGrantedMemoryThresholds
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]; -
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]; -
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]; -
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];- Specified by:
getGrantedMemoryThresholdsOrBuilderin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder
-
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];- Specified by:
hasConsumedMemoryThresholdsin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- Whether the consumedMemoryThresholds field is set.
-
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];- Specified by:
getConsumedMemoryThresholdsin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- The consumedMemoryThresholds.
-
setConsumedMemoryThresholds
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]; -
setConsumedMemoryThresholds
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]; -
mergeConsumedMemoryThresholds
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]; -
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]; -
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]; -
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];- Specified by:
getConsumedMemoryThresholdsOrBuilderin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder
-
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];- Specified by:
hasStorageThresholdsin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- Whether the storageThresholds field is set.
-
getStorageThresholds
Optional. Utilization thresholds pertaining to amount of consumed storage.
.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStorageThresholdsin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder- Returns:
- The storageThresholds.
-
setStorageThresholds
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]; -
setStorageThresholds
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]; -
mergeStorageThresholds
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]; -
clearStorageThresholds
Optional. Utilization thresholds pertaining to amount of consumed storage.
.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; -
getStorageThresholdsBuilder
Optional. Utilization thresholds pertaining to amount of consumed storage.
.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; -
getStorageThresholdsOrBuilder
Optional. Utilization thresholds pertaining to amount of consumed storage.
.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStorageThresholdsOrBuilderin interfaceAutoscalingSettings.AutoscalingPolicyOrBuilder
-