Package io.kubernetes.client.proto
Class V1Autoscaling.HorizontalPodAutoscalerStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerStatus.Builder>
io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerStatus.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder,Cloneable
- Enclosing class:
- V1Autoscaling.HorizontalPodAutoscalerStatus
public static final class V1Autoscaling.HorizontalPodAutoscalerStatus.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerStatus.Builder>
implements V1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
current status of a horizontal pod autoscalerProtobuf type
k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerStatus-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g.current number of replicas of pods managed by this autoscaler.desired number of replicas of pods managed by this autoscaler.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.most recent generation observed by this autoscaler.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()intcurrent average CPU utilization over all pods, represented as a percentage of requested CPU, e.g.intcurrent number of replicas of pods managed by this autoscaler.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorintdesired number of replicas of pods managed by this autoscaler.last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.longmost recent generation observed by this autoscaler.booleancurrent average CPU utilization over all pods, represented as a percentage of requested CPU, e.g.booleancurrent number of replicas of pods managed by this autoscaler.booleandesired number of replicas of pods managed by this autoscaler.booleanlast time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.booleanmost recent generation observed by this autoscaler.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastScaleTime(Meta.Time value) last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCurrentCPUUtilizationPercentage(int value) current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g.setCurrentReplicas(int value) current number of replicas of pods managed by this autoscaler.setDesiredReplicas(int value) desired number of replicas of pods managed by this autoscaler.setLastScaleTime(Meta.Time value) last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.setLastScaleTime(Meta.Time.Builder builderForValue) last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.setObservedGeneration(long value) most recent generation observed by this autoscaler.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.HorizontalPodAutoscalerStatus.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.HorizontalPodAutoscalerStatus.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.HorizontalPodAutoscalerStatus.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.HorizontalPodAutoscalerStatus.Builder>
-
setField
public V1Autoscaling.HorizontalPodAutoscalerStatus.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.HorizontalPodAutoscalerStatus.Builder>
-
clearField
public V1Autoscaling.HorizontalPodAutoscalerStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerStatus.Builder>
-
clearOneof
public V1Autoscaling.HorizontalPodAutoscalerStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerStatus.Builder>
-
setRepeatedField
public V1Autoscaling.HorizontalPodAutoscalerStatus.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.HorizontalPodAutoscalerStatus.Builder>
-
addRepeatedField
public V1Autoscaling.HorizontalPodAutoscalerStatus.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.HorizontalPodAutoscalerStatus.Builder>
-
mergeFrom
public V1Autoscaling.HorizontalPodAutoscalerStatus.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Autoscaling.HorizontalPodAutoscalerStatus.Builder>
-
mergeFrom
public V1Autoscaling.HorizontalPodAutoscalerStatus.Builder mergeFrom(V1Autoscaling.HorizontalPodAutoscalerStatus other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerStatus.Builder>
-
mergeFrom
public V1Autoscaling.HorizontalPodAutoscalerStatus.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.HorizontalPodAutoscalerStatus.Builder>- Throws:
IOException
-
hasObservedGeneration
public boolean hasObservedGeneration()most recent generation observed by this autoscaler. +optional
optional int64 observedGeneration = 1;- Specified by:
hasObservedGenerationin interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
getObservedGeneration
public long getObservedGeneration()most recent generation observed by this autoscaler. +optional
optional int64 observedGeneration = 1;- Specified by:
getObservedGenerationin interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
setObservedGeneration
most recent generation observed by this autoscaler. +optional
optional int64 observedGeneration = 1; -
clearObservedGeneration
most recent generation observed by this autoscaler. +optional
optional int64 observedGeneration = 1; -
hasLastScaleTime
public boolean hasLastScaleTime()last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2;- Specified by:
hasLastScaleTimein interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
getLastScaleTime
last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2;- Specified by:
getLastScaleTimein interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
setLastScaleTime
last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2; -
setLastScaleTime
public V1Autoscaling.HorizontalPodAutoscalerStatus.Builder setLastScaleTime(Meta.Time.Builder builderForValue) last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2; -
mergeLastScaleTime
last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2; -
clearLastScaleTime
last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2; -
getLastScaleTimeBuilder
last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2; -
getLastScaleTimeOrBuilder
last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2;- Specified by:
getLastScaleTimeOrBuilderin interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
hasCurrentReplicas
public boolean hasCurrentReplicas()current number of replicas of pods managed by this autoscaler.
optional int32 currentReplicas = 3;- Specified by:
hasCurrentReplicasin interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
getCurrentReplicas
public int getCurrentReplicas()current number of replicas of pods managed by this autoscaler.
optional int32 currentReplicas = 3;- Specified by:
getCurrentReplicasin interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
setCurrentReplicas
current number of replicas of pods managed by this autoscaler.
optional int32 currentReplicas = 3; -
clearCurrentReplicas
current number of replicas of pods managed by this autoscaler.
optional int32 currentReplicas = 3; -
hasDesiredReplicas
public boolean hasDesiredReplicas()desired number of replicas of pods managed by this autoscaler.
optional int32 desiredReplicas = 4;- Specified by:
hasDesiredReplicasin interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
getDesiredReplicas
public int getDesiredReplicas()desired number of replicas of pods managed by this autoscaler.
optional int32 desiredReplicas = 4;- Specified by:
getDesiredReplicasin interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
setDesiredReplicas
desired number of replicas of pods managed by this autoscaler.
optional int32 desiredReplicas = 4; -
clearDesiredReplicas
desired number of replicas of pods managed by this autoscaler.
optional int32 desiredReplicas = 4; -
hasCurrentCPUUtilizationPercentage
public boolean hasCurrentCPUUtilizationPercentage()current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. +optional
optional int32 currentCPUUtilizationPercentage = 5;- Specified by:
hasCurrentCPUUtilizationPercentagein interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
getCurrentCPUUtilizationPercentage
public int getCurrentCPUUtilizationPercentage()current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. +optional
optional int32 currentCPUUtilizationPercentage = 5;- Specified by:
getCurrentCPUUtilizationPercentagein interfaceV1Autoscaling.HorizontalPodAutoscalerStatusOrBuilder
-
setCurrentCPUUtilizationPercentage
public V1Autoscaling.HorizontalPodAutoscalerStatus.Builder setCurrentCPUUtilizationPercentage(int value) current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. +optional
optional int32 currentCPUUtilizationPercentage = 5; -
clearCurrentCPUUtilizationPercentage
current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. +optional
optional int32 currentCPUUtilizationPercentage = 5; -
setUnknownFields
public final V1Autoscaling.HorizontalPodAutoscalerStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerStatus.Builder>
-
mergeUnknownFields
public final V1Autoscaling.HorizontalPodAutoscalerStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.HorizontalPodAutoscalerStatus.Builder>
-