Class AutoscalingConfig.AutoscalingTargets.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingTargets.Builder>
com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AutoscalingConfig.AutoscalingTargetsOrBuilder,Cloneable
- Enclosing class:
- AutoscalingConfig.AutoscalingTargets
public static final class AutoscalingConfig.AutoscalingTargets.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingTargets.Builder>
implements AutoscalingConfig.AutoscalingTargetsOrBuilder
The autoscaling targets for an instance.Protobuf type
google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintOptional.intRequired.intOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setHighPriorityCpuUtilizationPercent(int value) Optional.setStorageUtilizationPercent(int value) Required.setTotalCpuUtilizationPercent(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, 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<AutoscalingConfig.AutoscalingTargets.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<AutoscalingConfig.AutoscalingTargets.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<AutoscalingConfig.AutoscalingTargets.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<AutoscalingConfig.AutoscalingTargets.Builder>
-
mergeFrom
public AutoscalingConfig.AutoscalingTargets.Builder mergeFrom(AutoscalingConfig.AutoscalingTargets other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingTargets.Builder>
-
mergeFrom
public AutoscalingConfig.AutoscalingTargets.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<AutoscalingConfig.AutoscalingTargets.Builder>- Throws:
IOException
-
getHighPriorityCpuUtilizationPercent
public int getHighPriorityCpuUtilizationPercent()Optional. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on high priority CPU utilization.
int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHighPriorityCpuUtilizationPercentin interfaceAutoscalingConfig.AutoscalingTargetsOrBuilder- Returns:
- The highPriorityCpuUtilizationPercent.
-
setHighPriorityCpuUtilizationPercent
Optional. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on high priority CPU utilization.
int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The highPriorityCpuUtilizationPercent to set.- Returns:
- This builder for chaining.
-
clearHighPriorityCpuUtilizationPercent
Optional. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on high priority CPU utilization.
int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getTotalCpuUtilizationPercent
public int getTotalCpuUtilizationPercent()Optional. The target total CPU utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on total CPU utilization. If both `high_priority_cpu_utilization_percent` and `total_cpu_utilization_percent` are specified, the autoscaler provisions the larger of the two required compute capacities to satisfy both targets.
int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTotalCpuUtilizationPercentin interfaceAutoscalingConfig.AutoscalingTargetsOrBuilder- Returns:
- The totalCpuUtilizationPercent.
-
setTotalCpuUtilizationPercent
Optional. The target total CPU utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on total CPU utilization. If both `high_priority_cpu_utilization_percent` and `total_cpu_utilization_percent` are specified, the autoscaler provisions the larger of the two required compute capacities to satisfy both targets.
int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The totalCpuUtilizationPercent to set.- Returns:
- This builder for chaining.
-
clearTotalCpuUtilizationPercent
Optional. The target total CPU utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on total CPU utilization. If both `high_priority_cpu_utilization_percent` and `total_cpu_utilization_percent` are specified, the autoscaler provisions the larger of the two required compute capacities to satisfy both targets.
int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getStorageUtilizationPercent
public int getStorageUtilizationPercent()Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 99] inclusive.
int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStorageUtilizationPercentin interfaceAutoscalingConfig.AutoscalingTargetsOrBuilder- Returns:
- The storageUtilizationPercent.
-
setStorageUtilizationPercent
Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 99] inclusive.
int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The storageUtilizationPercent to set.- Returns:
- This builder for chaining.
-
clearStorageUtilizationPercent
Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 99] inclusive.
int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-