public static final class V2beta2Autoscaling.HPAScalingRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HPAScalingRules.Builder> implements V2beta2Autoscaling.HPAScalingRulesOrBuilder
HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.Protobuf type
k8s.io.api.autoscaling.v2beta2.HPAScalingRules| Modifier and Type | Method and Description |
|---|---|
V2beta2Autoscaling.HPAScalingRules.Builder |
addAllPolicies(Iterable<? extends V2beta2Autoscaling.HPAScalingPolicy> values)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
addPolicies(int index,
V2beta2Autoscaling.HPAScalingPolicy.Builder builderForValue)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
addPolicies(int index,
V2beta2Autoscaling.HPAScalingPolicy value)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
addPolicies(V2beta2Autoscaling.HPAScalingPolicy.Builder builderForValue)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
addPolicies(V2beta2Autoscaling.HPAScalingPolicy value)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingPolicy.Builder |
addPoliciesBuilder()
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingPolicy.Builder |
addPoliciesBuilder(int index)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2beta2Autoscaling.HPAScalingRules |
build() |
V2beta2Autoscaling.HPAScalingRules |
buildPartial() |
V2beta2Autoscaling.HPAScalingRules.Builder |
clear() |
V2beta2Autoscaling.HPAScalingRules.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V2beta2Autoscaling.HPAScalingRules.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V2beta2Autoscaling.HPAScalingRules.Builder |
clearPolicies()
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
clearSelectPolicy()
selectPolicy is used to specify which policy should be used.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
clearStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be
considered while scaling up or scaling down.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
clone() |
V2beta2Autoscaling.HPAScalingRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V2beta2Autoscaling.HPAScalingPolicy |
getPolicies(int index)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingPolicy.Builder |
getPoliciesBuilder(int index)
policies is a list of potential scaling polices which can be used during scaling.
|
List<V2beta2Autoscaling.HPAScalingPolicy.Builder> |
getPoliciesBuilderList()
policies is a list of potential scaling polices which can be used during scaling.
|
int |
getPoliciesCount()
policies is a list of potential scaling polices which can be used during scaling.
|
List<V2beta2Autoscaling.HPAScalingPolicy> |
getPoliciesList()
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingPolicyOrBuilder |
getPoliciesOrBuilder(int index)
policies is a list of potential scaling polices which can be used during scaling.
|
List<? extends V2beta2Autoscaling.HPAScalingPolicyOrBuilder> |
getPoliciesOrBuilderList()
policies is a list of potential scaling polices which can be used during scaling.
|
String |
getSelectPolicy()
selectPolicy is used to specify which policy should be used.
|
com.google.protobuf.ByteString |
getSelectPolicyBytes()
selectPolicy is used to specify which policy should be used.
|
int |
getStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be
considered while scaling up or scaling down.
|
boolean |
hasSelectPolicy()
selectPolicy is used to specify which policy should be used.
|
boolean |
hasStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be
considered while scaling up or scaling down.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V2beta2Autoscaling.HPAScalingRules.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V2beta2Autoscaling.HPAScalingRules.Builder |
mergeFrom(com.google.protobuf.Message other) |
V2beta2Autoscaling.HPAScalingRules.Builder |
mergeFrom(V2beta2Autoscaling.HPAScalingRules other) |
V2beta2Autoscaling.HPAScalingRules.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V2beta2Autoscaling.HPAScalingRules.Builder |
removePolicies(int index)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2beta2Autoscaling.HPAScalingRules.Builder |
setPolicies(int index,
V2beta2Autoscaling.HPAScalingPolicy.Builder builderForValue)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
setPolicies(int index,
V2beta2Autoscaling.HPAScalingPolicy value)
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V2beta2Autoscaling.HPAScalingRules.Builder |
setSelectPolicy(String value)
selectPolicy is used to specify which policy should be used.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
setSelectPolicyBytes(com.google.protobuf.ByteString value)
selectPolicy is used to specify which policy should be used.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
setStabilizationWindowSeconds(int value)
StabilizationWindowSeconds is the number of seconds for which past recommendations should be
considered while scaling up or scaling down.
|
V2beta2Autoscaling.HPAScalingRules.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HPAScalingRules.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<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V2beta2Autoscaling.HPAScalingRules build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V2beta2Autoscaling.HPAScalingRules buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V2beta2Autoscaling.HPAScalingRules.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.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<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.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<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.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<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.Builder mergeFrom(V2beta2Autoscaling.HPAScalingRules other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HPAScalingRules.Builder>public V2beta2Autoscaling.HPAScalingRules.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<V2beta2Autoscaling.HPAScalingRules.Builder>IOExceptionpublic boolean hasStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional
optional int32 stabilizationWindowSeconds = 3;hasStabilizationWindowSeconds in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic int getStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional
optional int32 stabilizationWindowSeconds = 3;getStabilizationWindowSeconds in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic V2beta2Autoscaling.HPAScalingRules.Builder setStabilizationWindowSeconds(int value)
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional
optional int32 stabilizationWindowSeconds = 3;public V2beta2Autoscaling.HPAScalingRules.Builder clearStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional
optional int32 stabilizationWindowSeconds = 3;public boolean hasSelectPolicy()
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;hasSelectPolicy in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic String getSelectPolicy()
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;getSelectPolicy in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic com.google.protobuf.ByteString getSelectPolicyBytes()
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;getSelectPolicyBytes in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic V2beta2Autoscaling.HPAScalingRules.Builder setSelectPolicy(String value)
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;public V2beta2Autoscaling.HPAScalingRules.Builder clearSelectPolicy()
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;public V2beta2Autoscaling.HPAScalingRules.Builder setSelectPolicyBytes(com.google.protobuf.ByteString value)
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;public List<V2beta2Autoscaling.HPAScalingPolicy> getPoliciesList()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPoliciesList in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic int getPoliciesCount()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPoliciesCount in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic V2beta2Autoscaling.HPAScalingPolicy getPolicies(int index)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPolicies in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic V2beta2Autoscaling.HPAScalingRules.Builder setPolicies(int index, V2beta2Autoscaling.HPAScalingPolicy value)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingRules.Builder setPolicies(int index, V2beta2Autoscaling.HPAScalingPolicy.Builder builderForValue)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingRules.Builder addPolicies(V2beta2Autoscaling.HPAScalingPolicy value)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingRules.Builder addPolicies(int index, V2beta2Autoscaling.HPAScalingPolicy value)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingRules.Builder addPolicies(V2beta2Autoscaling.HPAScalingPolicy.Builder builderForValue)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingRules.Builder addPolicies(int index, V2beta2Autoscaling.HPAScalingPolicy.Builder builderForValue)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingRules.Builder addAllPolicies(Iterable<? extends V2beta2Autoscaling.HPAScalingPolicy> values)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingRules.Builder clearPolicies()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingRules.Builder removePolicies(int index)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingPolicy.Builder getPoliciesBuilder(int index)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingPolicyOrBuilder getPoliciesOrBuilder(int index)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPoliciesOrBuilder in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic List<? extends V2beta2Autoscaling.HPAScalingPolicyOrBuilder> getPoliciesOrBuilderList()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPoliciesOrBuilderList in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic V2beta2Autoscaling.HPAScalingPolicy.Builder addPoliciesBuilder()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public V2beta2Autoscaling.HPAScalingPolicy.Builder addPoliciesBuilder(int index)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public List<V2beta2Autoscaling.HPAScalingPolicy.Builder> getPoliciesBuilderList()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;public final V2beta2Autoscaling.HPAScalingRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HPAScalingRules.Builder>public final V2beta2Autoscaling.HPAScalingRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HPAScalingRules.Builder>Copyright © 2023. All rights reserved.