public final class AutoscalingPolicyCpuUtilization extends com.google.protobuf.GeneratedMessageV3 implements AutoscalingPolicyCpuUtilizationOrBuilder
CPU utilization policy.Protobuf type
google.cloud.compute.v1.AutoscalingPolicyCpuUtilization| Modifier and Type | Class and Description |
|---|---|
static class |
AutoscalingPolicyCpuUtilization.Builder
CPU utilization policy.
|
static class |
AutoscalingPolicyCpuUtilization.PredictiveMethod
Indicates whether predictive autoscaling based on CPU metric is enabled.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
PREDICTIVE_METHOD_FIELD_NUMBER |
static int |
UTILIZATION_TARGET_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static AutoscalingPolicyCpuUtilization |
getDefaultInstance() |
AutoscalingPolicyCpuUtilization |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<AutoscalingPolicyCpuUtilization> |
getParserForType() |
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
double |
getUtilizationTarget()
The target CPU utilization that the autoscaler maintains.
|
int |
hashCode() |
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() |
static AutoscalingPolicyCpuUtilization.Builder |
newBuilder() |
static AutoscalingPolicyCpuUtilization.Builder |
newBuilder(AutoscalingPolicyCpuUtilization prototype) |
AutoscalingPolicyCpuUtilization.Builder |
newBuilderForType() |
protected AutoscalingPolicyCpuUtilization.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AutoscalingPolicyCpuUtilization |
parseDelimitedFrom(InputStream input) |
static AutoscalingPolicyCpuUtilization |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicyCpuUtilization |
parseFrom(byte[] data) |
static AutoscalingPolicyCpuUtilization |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicyCpuUtilization |
parseFrom(ByteBuffer data) |
static AutoscalingPolicyCpuUtilization |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicyCpuUtilization |
parseFrom(com.google.protobuf.ByteString data) |
static AutoscalingPolicyCpuUtilization |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicyCpuUtilization |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AutoscalingPolicyCpuUtilization |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicyCpuUtilization |
parseFrom(InputStream input) |
static AutoscalingPolicyCpuUtilization |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AutoscalingPolicyCpuUtilization> |
parser() |
AutoscalingPolicyCpuUtilization.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PREDICTIVE_METHOD_FIELD_NUMBER
public static final int UTILIZATION_TARGET_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AutoscalingPolicyCpuUtilization parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(InputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AutoscalingPolicyCpuUtilization parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicyCpuUtilization parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicyCpuUtilization parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AutoscalingPolicyCpuUtilization.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AutoscalingPolicyCpuUtilization.Builder newBuilder()
public static AutoscalingPolicyCpuUtilization.Builder newBuilder(AutoscalingPolicyCpuUtilization prototype)
public AutoscalingPolicyCpuUtilization.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AutoscalingPolicyCpuUtilization.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AutoscalingPolicyCpuUtilization getDefaultInstance()
public static com.google.protobuf.Parser<AutoscalingPolicyCpuUtilization> parser()
public com.google.protobuf.Parser<AutoscalingPolicyCpuUtilization> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AutoscalingPolicyCpuUtilization getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.