public static final class V2beta2Autoscaling.HorizontalPodAutoscalerSpec extends com.google.protobuf.GeneratedMessageV3 implements V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.Protobuf type
k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec| Modifier and Type | Class and Description |
|---|---|
static class |
V2beta2Autoscaling.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<V2beta2Autoscaling.HorizontalPodAutoscalerSpec> |
PARSER
Deprecated.
|
static int |
SCALETARGETREF_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
getDefaultInstance() |
V2beta2Autoscaling.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.
|
V2beta2Autoscaling.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<V2beta2Autoscaling.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).
|
V2beta2Autoscaling.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 V2beta2Autoscaling.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<V2beta2Autoscaling.HorizontalPodAutoscalerSpec> |
getParserForType() |
V2beta2Autoscaling.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.
|
V2beta2Autoscaling.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 V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
newBuilder() |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
newBuilder(V2beta2Autoscaling.HorizontalPodAutoscalerSpec prototype) |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
newBuilderForType() |
protected V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseDelimitedFrom(InputStream input) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(byte[] data) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(ByteBuffer data) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(com.google.protobuf.ByteString data) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(InputStream input) |
static V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V2beta2Autoscaling.HorizontalPodAutoscalerSpec> |
parser() |
V2beta2Autoscaling.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, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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<V2beta2Autoscaling.HorizontalPodAutoscalerSpec> PARSER
public 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 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.v2beta2.CrossVersionObjectReference scaleTargetRef = 1;
hasScaleTargetRef in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V2beta2Autoscaling.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.v2beta2.CrossVersionObjectReference scaleTargetRef = 1;
getScaleTargetRef in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V2beta2Autoscaling.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.v2beta2.CrossVersionObjectReference scaleTargetRef = 1;
getScaleTargetRefOrBuilder in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic boolean hasMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. +optional
optional int32 minReplicas = 2;hasMinReplicas in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic int getMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. +optional
optional int32 minReplicas = 2;getMinReplicas in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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 V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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 V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic List<V2beta2Autoscaling.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. If not set, the default metric will be set to 80% average CPU utilization. +optional
repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;getMetricsList in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic List<? extends V2beta2Autoscaling.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. If not set, the default metric will be set to 80% average CPU utilization. +optional
repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;getMetricsOrBuilderList in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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. If not set, the default metric will be set to 80% average CPU utilization. +optional
repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;getMetricsCount in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V2beta2Autoscaling.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. If not set, the default metric will be set to 80% average CPU utilization. +optional
repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;getMetrics in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V2beta2Autoscaling.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. If not set, the default metric will be set to 80% average CPU utilization. +optional
repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;getMetricsOrBuilder in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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 V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder newBuilder()
public static V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder newBuilder(V2beta2Autoscaling.HorizontalPodAutoscalerSpec prototype)
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V2beta2Autoscaling.HorizontalPodAutoscalerSpec getDefaultInstance()
public static com.google.protobuf.Parser<V2beta2Autoscaling.HorizontalPodAutoscalerSpec> parser()
public com.google.protobuf.Parser<V2beta2Autoscaling.HorizontalPodAutoscalerSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V2beta2Autoscaling.HorizontalPodAutoscalerSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.