Package com.google.cloud.compute.v1
Class AutoscalingPolicyCpuUtilization.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
- com.google.cloud.compute.v1.AutoscalingPolicyCpuUtilization.Builder
-
- All Implemented Interfaces:
AutoscalingPolicyCpuUtilizationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutoscalingPolicyCpuUtilization
public static final class AutoscalingPolicyCpuUtilization.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder> implements AutoscalingPolicyCpuUtilizationOrBuilder
CPU utilization policy.
Protobuf typegoogle.cloud.compute.v1.AutoscalingPolicyCpuUtilization
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoscalingPolicyCpuUtilization.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AutoscalingPolicyCpuUtilizationbuild()AutoscalingPolicyCpuUtilizationbuildPartial()AutoscalingPolicyCpuUtilization.Builderclear()AutoscalingPolicyCpuUtilization.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AutoscalingPolicyCpuUtilization.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AutoscalingPolicyCpuUtilization.BuilderclearPredictiveMethod()Indicates whether predictive autoscaling based on CPU metric is enabled.AutoscalingPolicyCpuUtilization.BuilderclearUtilizationTarget()The target CPU utilization that the autoscaler maintains.AutoscalingPolicyCpuUtilization.Builderclone()AutoscalingPolicyCpuUtilizationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetPredictiveMethod()Indicates whether predictive autoscaling based on CPU metric is enabled.com.google.protobuf.ByteStringgetPredictiveMethodBytes()Indicates whether predictive autoscaling based on CPU metric is enabled.doublegetUtilizationTarget()The target CPU utilization that the autoscaler maintains.booleanhasPredictiveMethod()Indicates whether predictive autoscaling based on CPU metric is enabled.booleanhasUtilizationTarget()The target CPU utilization that the autoscaler maintains.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AutoscalingPolicyCpuUtilization.BuildermergeFrom(AutoscalingPolicyCpuUtilization other)AutoscalingPolicyCpuUtilization.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AutoscalingPolicyCpuUtilization.BuildermergeFrom(com.google.protobuf.Message other)AutoscalingPolicyCpuUtilization.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AutoscalingPolicyCpuUtilization.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AutoscalingPolicyCpuUtilization.BuildersetPredictiveMethod(String value)Indicates whether predictive autoscaling based on CPU metric is enabled.AutoscalingPolicyCpuUtilization.BuildersetPredictiveMethodBytes(com.google.protobuf.ByteString value)Indicates whether predictive autoscaling based on CPU metric is enabled.AutoscalingPolicyCpuUtilization.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AutoscalingPolicyCpuUtilization.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AutoscalingPolicyCpuUtilization.BuildersetUtilizationTarget(double value)The target CPU utilization that the autoscaler maintains.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
clear
public AutoscalingPolicyCpuUtilization.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.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.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
getDefaultInstanceForType
public AutoscalingPolicyCpuUtilization getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AutoscalingPolicyCpuUtilization build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AutoscalingPolicyCpuUtilization buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AutoscalingPolicyCpuUtilization.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
setField
public AutoscalingPolicyCpuUtilization.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
clearField
public AutoscalingPolicyCpuUtilization.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
clearOneof
public AutoscalingPolicyCpuUtilization.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
setRepeatedField
public AutoscalingPolicyCpuUtilization.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
addRepeatedField
public AutoscalingPolicyCpuUtilization.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
mergeFrom
public AutoscalingPolicyCpuUtilization.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
mergeFrom
public AutoscalingPolicyCpuUtilization.Builder mergeFrom(AutoscalingPolicyCpuUtilization other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
mergeFrom
public AutoscalingPolicyCpuUtilization.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<AutoscalingPolicyCpuUtilization.Builder>- Throws:
IOException
-
hasPredictiveMethod
public 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;- Specified by:
hasPredictiveMethodin interfaceAutoscalingPolicyCpuUtilizationOrBuilder- Returns:
- Whether the predictiveMethod field is set.
-
getPredictiveMethod
public 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;- Specified by:
getPredictiveMethodin interfaceAutoscalingPolicyCpuUtilizationOrBuilder- Returns:
- The predictiveMethod.
-
getPredictiveMethodBytes
public 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;- Specified by:
getPredictiveMethodBytesin interfaceAutoscalingPolicyCpuUtilizationOrBuilder- Returns:
- The bytes for predictiveMethod.
-
setPredictiveMethod
public 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;- Parameters:
value- The predictiveMethod to set.- Returns:
- This builder for chaining.
-
clearPredictiveMethod
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;- Returns:
- This builder for chaining.
-
setPredictiveMethodBytes
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;- Parameters:
value- The bytes for predictiveMethod to set.- Returns:
- This builder for chaining.
-
hasUtilizationTarget
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;- Specified by:
hasUtilizationTargetin interfaceAutoscalingPolicyCpuUtilizationOrBuilder- Returns:
- Whether the utilizationTarget field is set.
-
getUtilizationTarget
public 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;- Specified by:
getUtilizationTargetin interfaceAutoscalingPolicyCpuUtilizationOrBuilder- Returns:
- The utilizationTarget.
-
setUtilizationTarget
public 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;- Parameters:
value- The utilizationTarget to set.- Returns:
- This builder for chaining.
-
clearUtilizationTarget
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AutoscalingPolicyCpuUtilization.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
mergeUnknownFields
public final AutoscalingPolicyCpuUtilization.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyCpuUtilization.Builder>
-
-