public static final class V2beta1Autoscaling.HorizontalPodAutoscalerSpec extends com.google.protobuf.GeneratedMessageV3 implements V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.Protobuf type
k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec
Modifier and Type | Class and Description |
---|---|
static class |
V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder
HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
|
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 |
MAXREPLICAS_FIELD_NUMBER |
static int |
METRICS_FIELD_NUMBER |
static int |
MINREPLICAS_FIELD_NUMBER |
static com.google.protobuf.Parser<V2beta1Autoscaling.HorizontalPodAutoscalerSpec> |
PARSER
Deprecated.
|
static int |
SCALETARGETREF_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
getDefaultInstance() |
V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
|
V2beta1Autoscaling.MetricSpec |
getMetrics(int index)
metrics contains the specifications for which to use to calculate the
desired replica count (the maximum replica count across all metrics will
be used).
|
int |
getMetricsCount()
metrics contains the specifications for which to use to calculate the
desired replica count (the maximum replica count across all metrics will
be used).
|
List<V2beta1Autoscaling.MetricSpec> |
getMetricsList()
metrics contains the specifications for which to use to calculate the
desired replica count (the maximum replica count across all metrics will
be used).
|
V2beta1Autoscaling.MetricSpecOrBuilder |
getMetricsOrBuilder(int index)
metrics contains the specifications for which to use to calculate the
desired replica count (the maximum replica count across all metrics will
be used).
|
List<? extends V2beta1Autoscaling.MetricSpecOrBuilder> |
getMetricsOrBuilderList()
metrics contains the specifications for which to use to calculate the
desired replica count (the maximum replica count across all metrics will
be used).
|
int |
getMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler
can scale down.
|
com.google.protobuf.Parser<V2beta1Autoscaling.HorizontalPodAutoscalerSpec> |
getParserForType() |
V2beta1Autoscaling.CrossVersionObjectReference |
getScaleTargetRef()
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
should be collected, as well as to actually change the replica count.
|
V2beta1Autoscaling.CrossVersionObjectReferenceOrBuilder |
getScaleTargetRefOrBuilder()
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
should be collected, as well as to actually change the replica count.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
|
boolean |
hasMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler
can scale down.
|
boolean |
hasScaleTargetRef()
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
should be collected, as well as to actually change the replica count.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
newBuilder() |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
newBuilder(V2beta1Autoscaling.HorizontalPodAutoscalerSpec prototype) |
V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
newBuilderForType() |
protected V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseDelimitedFrom(InputStream input) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(byte[] data) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(ByteBuffer data) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(com.google.protobuf.ByteString data) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(InputStream input) |
static V2beta1Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V2beta1Autoscaling.HorizontalPodAutoscalerSpec> |
parser() |
V2beta1Autoscaling.HorizontalPodAutoscalerSpec.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, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int SCALETARGETREF_FIELD_NUMBER
public static final int MINREPLICAS_FIELD_NUMBER
public static final int MAXREPLICAS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V2beta1Autoscaling.HorizontalPodAutoscalerSpec> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasScaleTargetRef()
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference scaleTargetRef = 1;
hasScaleTargetRef
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public V2beta1Autoscaling.CrossVersionObjectReference getScaleTargetRef()
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference scaleTargetRef = 1;
getScaleTargetRef
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public V2beta1Autoscaling.CrossVersionObjectReferenceOrBuilder getScaleTargetRefOrBuilder()
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference scaleTargetRef = 1;
getScaleTargetRefOrBuilder
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public boolean hasMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. +optional
optional int32 minReplicas = 2;
hasMinReplicas
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public int getMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. +optional
optional int32 minReplicas = 2;
getMinReplicas
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public boolean hasMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.
optional int32 maxReplicas = 3;
hasMaxReplicas
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public int getMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.
optional int32 maxReplicas = 3;
getMaxReplicas
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public List<V2beta1Autoscaling.MetricSpec> getMetricsList()
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. +optional
repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;
getMetricsList
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public List<? extends V2beta1Autoscaling.MetricSpecOrBuilder> getMetricsOrBuilderList()
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. +optional
repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;
getMetricsOrBuilderList
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public int getMetricsCount()
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. +optional
repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;
getMetricsCount
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public V2beta1Autoscaling.MetricSpec getMetrics(int index)
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. +optional
repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;
getMetrics
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public V2beta1Autoscaling.MetricSpecOrBuilder getMetricsOrBuilder(int index)
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. +optional
repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;
getMetricsOrBuilder
in interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(InputStream input) throws IOException
IOException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseDelimitedFrom(InputStream input) throws IOException
IOException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder newBuilder()
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder newBuilder(V2beta1Autoscaling.HorizontalPodAutoscalerSpec prototype)
public V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected V2beta1Autoscaling.HorizontalPodAutoscalerSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static V2beta1Autoscaling.HorizontalPodAutoscalerSpec getDefaultInstance()
public static com.google.protobuf.Parser<V2beta1Autoscaling.HorizontalPodAutoscalerSpec> parser()
public com.google.protobuf.Parser<V2beta1Autoscaling.HorizontalPodAutoscalerSpec> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public V2beta1Autoscaling.HorizontalPodAutoscalerSpec getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.