public static final class AutoscalingPolicyCpuUtilization.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder> implements AutoscalingPolicyCpuUtilizationOrBuilder
CPU utilization policy.Protobuf type
google.cloud.compute.v1.AutoscalingPolicyCpuUtilization| Modifier and Type | Method and Description |
|---|---|
AutoscalingPolicyCpuUtilization.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AutoscalingPolicyCpuUtilization |
build() |
AutoscalingPolicyCpuUtilization |
buildPartial() |
AutoscalingPolicyCpuUtilization.Builder |
clear() |
AutoscalingPolicyCpuUtilization.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AutoscalingPolicyCpuUtilization.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AutoscalingPolicyCpuUtilization.Builder |
clearPredictiveMethod()
Indicates whether predictive autoscaling based on CPU metric is enabled.
|
AutoscalingPolicyCpuUtilization.Builder |
clearUtilizationTarget()
The target CPU utilization that the autoscaler maintains.
|
AutoscalingPolicyCpuUtilization.Builder |
clone() |
AutoscalingPolicyCpuUtilization |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getPredictiveMethod()
Indicates whether predictive autoscaling based on CPU metric is enabled.
|
com.google.protobuf.ByteString |
getPredictiveMethodBytes()
Indicates whether predictive autoscaling based on CPU metric is enabled.
|
double |
getUtilizationTarget()
The target CPU utilization that the autoscaler maintains.
|
boolean |
hasPredictiveMethod()
Indicates whether predictive autoscaling based on CPU metric is enabled.
|
boolean |
hasUtilizationTarget()
The target CPU utilization that the autoscaler maintains.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AutoscalingPolicyCpuUtilization.Builder |
mergeFrom(AutoscalingPolicyCpuUtilization other) |
AutoscalingPolicyCpuUtilization.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AutoscalingPolicyCpuUtilization.Builder |
mergeFrom(com.google.protobuf.Message other) |
AutoscalingPolicyCpuUtilization.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AutoscalingPolicyCpuUtilization.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AutoscalingPolicyCpuUtilization.Builder |
setPredictiveMethod(String value)
Indicates whether predictive autoscaling based on CPU metric is enabled.
|
AutoscalingPolicyCpuUtilization.Builder |
setPredictiveMethodBytes(com.google.protobuf.ByteString value)
Indicates whether predictive autoscaling based on CPU metric is enabled.
|
AutoscalingPolicyCpuUtilization.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AutoscalingPolicyCpuUtilization.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AutoscalingPolicyCpuUtilization.Builder |
setUtilizationTarget(double value)
The target CPU utilization that the autoscaler maintains.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AutoscalingPolicyCpuUtilization build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AutoscalingPolicyCpuUtilization buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AutoscalingPolicyCpuUtilization.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder mergeFrom(AutoscalingPolicyCpuUtilization other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public AutoscalingPolicyCpuUtilization.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutoscalingPolicyCpuUtilization.Builder>IOExceptionpublic boolean hasPredictiveMethod()
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. Check the PredictiveMethod enum for the list of possible values.
optional string predictive_method = 390220737;hasPredictiveMethod in interface AutoscalingPolicyCpuUtilizationOrBuilderpublic String getPredictiveMethod()
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. Check the PredictiveMethod enum for the list of possible values.
optional string predictive_method = 390220737;getPredictiveMethod in interface AutoscalingPolicyCpuUtilizationOrBuilderpublic com.google.protobuf.ByteString getPredictiveMethodBytes()
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. Check the PredictiveMethod enum for the list of possible values.
optional string predictive_method = 390220737;getPredictiveMethodBytes in interface AutoscalingPolicyCpuUtilizationOrBuilderpublic AutoscalingPolicyCpuUtilization.Builder setPredictiveMethod(String value)
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. Check the PredictiveMethod enum for the list of possible values.
optional string predictive_method = 390220737;value - The predictiveMethod to set.public AutoscalingPolicyCpuUtilization.Builder clearPredictiveMethod()
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. Check the PredictiveMethod enum for the list of possible values.
optional string predictive_method = 390220737;public AutoscalingPolicyCpuUtilization.Builder setPredictiveMethodBytes(com.google.protobuf.ByteString value)
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. Check the PredictiveMethod enum for the list of possible values.
optional string predictive_method = 390220737;value - The bytes for predictiveMethod to set.public boolean hasUtilizationTarget()
The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales in the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
optional double utilization_target = 215905870;hasUtilizationTarget in interface AutoscalingPolicyCpuUtilizationOrBuilderpublic double getUtilizationTarget()
The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales in the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
optional double utilization_target = 215905870;getUtilizationTarget in interface AutoscalingPolicyCpuUtilizationOrBuilderpublic AutoscalingPolicyCpuUtilization.Builder setUtilizationTarget(double value)
The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales in the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
optional double utilization_target = 215905870;value - The utilizationTarget to set.public AutoscalingPolicyCpuUtilization.Builder clearUtilizationTarget()
The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales in the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
optional double utilization_target = 215905870;public final AutoscalingPolicyCpuUtilization.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>public final AutoscalingPolicyCpuUtilization.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>Copyright © 2023 Google LLC. All rights reserved.