public static final class V1Autoscaling.HorizontalPodAutoscalerSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder> implements V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
specification of a horizontal pod autoscaler.Protobuf type
k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec| Modifier and Type | Method and Description |
|---|---|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Autoscaling.HorizontalPodAutoscalerSpec |
build() |
V1Autoscaling.HorizontalPodAutoscalerSpec |
buildPartial() |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clear() |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearMinReplicas()
lower limit for the number of pods that can be set by the autoscaler, default 1.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearScaleTargetRef()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
and will set the desired number of pods by using its Scale subresource.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearTargetCPUUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the pods;
if not specified the default autoscaling policy will be used.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clone() |
V1Autoscaling.HorizontalPodAutoscalerSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
|
int |
getMinReplicas()
lower limit for the number of pods that can be set by the autoscaler, default 1.
|
V1Autoscaling.CrossVersionObjectReference |
getScaleTargetRef()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
and will set the desired number of pods by using its Scale subresource.
|
V1Autoscaling.CrossVersionObjectReference.Builder |
getScaleTargetRefBuilder()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
and will set the desired number of pods by using its Scale subresource.
|
V1Autoscaling.CrossVersionObjectReferenceOrBuilder |
getScaleTargetRefOrBuilder()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
and will set the desired number of pods by using its Scale subresource.
|
int |
getTargetCPUUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the pods;
if not specified the default autoscaling policy will be used.
|
boolean |
hasMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
|
boolean |
hasMinReplicas()
lower limit for the number of pods that can be set by the autoscaler, default 1.
|
boolean |
hasScaleTargetRef()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
and will set the desired number of pods by using its Scale subresource.
|
boolean |
hasTargetCPUUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the pods;
if not specified the default autoscaling policy will be used.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeFrom(V1Autoscaling.HorizontalPodAutoscalerSpec other) |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeScaleTargetRef(V1Autoscaling.CrossVersionObjectReference value)
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
and will set the desired number of pods by using its Scale subresource.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setMaxReplicas(int value)
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setMinReplicas(int value)
lower limit for the number of pods that can be set by the autoscaler, default 1.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setScaleTargetRef(V1Autoscaling.CrossVersionObjectReference.Builder builderForValue)
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
and will set the desired number of pods by using its Scale subresource.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setScaleTargetRef(V1Autoscaling.CrossVersionObjectReference value)
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
and will set the desired number of pods by using its Scale subresource.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setTargetCPUUtilizationPercentage(int value)
target average CPU utilization (represented as a percentage of requested CPU) over all the pods;
if not specified the default autoscaling policy will be used.
|
V1Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.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<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Autoscaling.HorizontalPodAutoscalerSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Autoscaling.HorizontalPodAutoscalerSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.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<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.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<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.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<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(V1Autoscaling.HorizontalPodAutoscalerSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V1Autoscaling.HorizontalPodAutoscalerSpec.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<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>IOExceptionpublic boolean hasScaleTargetRef()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;hasScaleTargetRef in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V1Autoscaling.CrossVersionObjectReference getScaleTargetRef()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;getScaleTargetRef in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setScaleTargetRef(V1Autoscaling.CrossVersionObjectReference value)
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setScaleTargetRef(V1Autoscaling.CrossVersionObjectReference.Builder builderForValue)
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeScaleTargetRef(V1Autoscaling.CrossVersionObjectReference value)
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clearScaleTargetRef()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;public V1Autoscaling.CrossVersionObjectReference.Builder getScaleTargetRefBuilder()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;public V1Autoscaling.CrossVersionObjectReferenceOrBuilder getScaleTargetRefOrBuilder()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;getScaleTargetRefOrBuilder in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic boolean hasMinReplicas()
lower limit for the number of pods that can be set by the autoscaler, default 1. +optional
optional int32 minReplicas = 2;hasMinReplicas in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic int getMinReplicas()
lower limit for the number of pods that can be set by the autoscaler, default 1. +optional
optional int32 minReplicas = 2;getMinReplicas in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setMinReplicas(int value)
lower limit for the number of pods that can be set by the autoscaler, default 1. +optional
optional int32 minReplicas = 2;public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clearMinReplicas()
lower limit for the number of pods that can be set by the autoscaler, default 1. +optional
optional int32 minReplicas = 2;public boolean hasMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
optional int32 maxReplicas = 3;hasMaxReplicas in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic int getMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
optional int32 maxReplicas = 3;getMaxReplicas in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setMaxReplicas(int value)
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
optional int32 maxReplicas = 3;public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clearMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
optional int32 maxReplicas = 3;public boolean hasTargetCPUUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. +optional
optional int32 targetCPUUtilizationPercentage = 4;hasTargetCPUUtilizationPercentage in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic int getTargetCPUUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. +optional
optional int32 targetCPUUtilizationPercentage = 4;getTargetCPUUtilizationPercentage in interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setTargetCPUUtilizationPercentage(int value)
target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. +optional
optional int32 targetCPUUtilizationPercentage = 4;public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clearTargetCPUUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. +optional
optional int32 targetCPUUtilizationPercentage = 4;public final V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>public final V1Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>Copyright © 2018. All rights reserved.