Package io.kubernetes.client.proto
Class V1Autoscaling.HorizontalPodAutoscalerSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder,Cloneable
- Enclosing class:
- V1Autoscaling.HorizontalPodAutoscalerSpec
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.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.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorintupper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.intminReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.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.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.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.inttarget average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.booleanupper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.booleanminReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.booleanreference 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.booleantarget 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.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMaxReplicas(int value) upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.setMinReplicas(int value) minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object 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.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.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.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
setField
public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
clearField
public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
clearOneof
public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
setRepeatedField
public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
addRepeatedField
public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
mergeFrom
public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
mergeFrom
public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(V1Autoscaling.HorizontalPodAutoscalerSpec other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
mergeFrom
public V1Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>- Throws:
IOException
-
hasScaleTargetRef
public 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;- Specified by:
hasScaleTargetRefin interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
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;- Specified by:
getScaleTargetRefin interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setScaleTargetRef
public 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; -
setScaleTargetRef
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; -
mergeScaleTargetRef
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; -
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; -
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; -
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;- Specified by:
getScaleTargetRefOrBuilderin interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
hasMinReplicas
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;- Specified by:
hasMinReplicasin interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
getMinReplicas
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;- Specified by:
getMinReplicasin interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setMinReplicas
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; -
clearMinReplicas
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; -
hasMaxReplicas
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;- Specified by:
hasMaxReplicasin interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
getMaxReplicas
public 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;- Specified by:
getMaxReplicasin interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setMaxReplicas
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
optional int32 maxReplicas = 3; -
clearMaxReplicas
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
optional int32 maxReplicas = 3; -
hasTargetCPUUtilizationPercentage
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;- Specified by:
hasTargetCPUUtilizationPercentagein interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
getTargetCPUUtilizationPercentage
public 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;- Specified by:
getTargetCPUUtilizationPercentagein interfaceV1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setTargetCPUUtilizationPercentage
public 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; -
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; -
setUnknownFields
public final V1Autoscaling.HorizontalPodAutoscalerSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
mergeUnknownFields
public final V1Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-