Package io.kubernetes.client.proto
Class V2beta1Autoscaling.ResourceMetricStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricStatus.Builder>
io.kubernetes.client.proto.V2beta1Autoscaling.ResourceMetricStatus.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V2beta1Autoscaling.ResourceMetricStatusOrBuilder,Cloneable
- Enclosing class:
- V2beta1Autoscaling.ResourceMetricStatus
public static final class V2beta1Autoscaling.ResourceMetricStatus.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricStatus.Builder>
implements V2beta1Autoscaling.ResourceMetricStatusOrBuilder
ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.Protobuf type
k8s.io.api.autoscaling.v2beta1.ResourceMetricStatus-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) name is the name of the resource in question.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()intcurrentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()name is the name of the resource in question.com.google.protobuf.ByteStringname is the name of the resource in question.booleancurrentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.booleancurrentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.booleanhasName()name is the name of the resource in question.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleancurrentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCurrentAverageUtilization(int value) currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.setCurrentAverageValue(Resource.Quantity.Builder builderForValue) currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.name is the name of the resource in question.setNameBytes(com.google.protobuf.ByteString value) name is the name of the resource in question.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<V2beta1Autoscaling.ResourceMetricStatus.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<V2beta1Autoscaling.ResourceMetricStatus.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<V2beta1Autoscaling.ResourceMetricStatus.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<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
setField
public V2beta1Autoscaling.ResourceMetricStatus.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<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
clearField
public V2beta1Autoscaling.ResourceMetricStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
clearOneof
public V2beta1Autoscaling.ResourceMetricStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
setRepeatedField
public V2beta1Autoscaling.ResourceMetricStatus.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<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
addRepeatedField
public V2beta1Autoscaling.ResourceMetricStatus.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<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
mergeFrom
public V2beta1Autoscaling.ResourceMetricStatus.Builder mergeFrom(V2beta1Autoscaling.ResourceMetricStatus other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
mergeFrom
public V2beta1Autoscaling.ResourceMetricStatus.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<V2beta1Autoscaling.ResourceMetricStatus.Builder>- Throws:
IOException
-
hasName
public boolean hasName()name is the name of the resource in question.
optional string name = 1;- Specified by:
hasNamein interfaceV2beta1Autoscaling.ResourceMetricStatusOrBuilder
-
getName
name is the name of the resource in question.
optional string name = 1;- Specified by:
getNamein interfaceV2beta1Autoscaling.ResourceMetricStatusOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name is the name of the resource in question.
optional string name = 1;- Specified by:
getNameBytesin interfaceV2beta1Autoscaling.ResourceMetricStatusOrBuilder
-
setName
name is the name of the resource in question.
optional string name = 1; -
clearName
name is the name of the resource in question.
optional string name = 1; -
setNameBytes
public V2beta1Autoscaling.ResourceMetricStatus.Builder setNameBytes(com.google.protobuf.ByteString value) name is the name of the resource in question.
optional string name = 1; -
hasCurrentAverageUtilization
public boolean hasCurrentAverageUtilization()currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. +optional
optional int32 currentAverageUtilization = 2;- Specified by:
hasCurrentAverageUtilizationin interfaceV2beta1Autoscaling.ResourceMetricStatusOrBuilder
-
getCurrentAverageUtilization
public int getCurrentAverageUtilization()currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. +optional
optional int32 currentAverageUtilization = 2;- Specified by:
getCurrentAverageUtilizationin interfaceV2beta1Autoscaling.ResourceMetricStatusOrBuilder
-
setCurrentAverageUtilization
currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. +optional
optional int32 currentAverageUtilization = 2; -
clearCurrentAverageUtilization
currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. +optional
optional int32 currentAverageUtilization = 2; -
hasCurrentAverageValue
public boolean hasCurrentAverageValue()currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;- Specified by:
hasCurrentAverageValuein interfaceV2beta1Autoscaling.ResourceMetricStatusOrBuilder
-
getCurrentAverageValue
currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;- Specified by:
getCurrentAverageValuein interfaceV2beta1Autoscaling.ResourceMetricStatusOrBuilder
-
setCurrentAverageValue
public V2beta1Autoscaling.ResourceMetricStatus.Builder setCurrentAverageValue(Resource.Quantity value) currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3; -
setCurrentAverageValue
public V2beta1Autoscaling.ResourceMetricStatus.Builder setCurrentAverageValue(Resource.Quantity.Builder builderForValue) currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3; -
mergeCurrentAverageValue
public V2beta1Autoscaling.ResourceMetricStatus.Builder mergeCurrentAverageValue(Resource.Quantity value) currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3; -
clearCurrentAverageValue
currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3; -
getCurrentAverageValueBuilder
currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3; -
getCurrentAverageValueOrBuilder
currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;- Specified by:
getCurrentAverageValueOrBuilderin interfaceV2beta1Autoscaling.ResourceMetricStatusOrBuilder
-
setUnknownFields
public final V2beta1Autoscaling.ResourceMetricStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-
mergeUnknownFields
public final V2beta1Autoscaling.ResourceMetricStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricStatus.Builder>
-