public static final class V1Autoscaling.ContainerResourceMetricStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricStatus.Builder> implements V1Autoscaling.ContainerResourceMetricStatusOrBuilder
ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in 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.v1.ContainerResourceMetricStatus| Modifier and Type | Method and Description |
|---|---|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Autoscaling.ContainerResourceMetricStatus |
build() |
V1Autoscaling.ContainerResourceMetricStatus |
buildPartial() |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
clear() |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
clearContainer()
container is the name of the container in the pods of the scaling taget
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
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.
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
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.
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
clearName()
name is the name of the resource in question.
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
clone() |
String |
getContainer()
container is the name of the container in the pods of the scaling taget
|
com.google.protobuf.ByteString |
getContainerBytes()
container is the name of the container in the pods of the scaling taget
|
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.
|
Resource.Quantity |
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.
|
Resource.Quantity.Builder |
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.
|
Resource.QuantityOrBuilder |
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.
|
V1Autoscaling.ContainerResourceMetricStatus |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
name is the name of the resource in question.
|
com.google.protobuf.ByteString |
getNameBytes()
name is the name of the resource in question.
|
boolean |
hasContainer()
container is the name of the container in the pods of the scaling taget
|
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.
|
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.
|
boolean |
hasName()
name is the name of the resource in question.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Autoscaling.ContainerResourceMetricStatus.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.
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
mergeFrom(V1Autoscaling.ContainerResourceMetricStatus other) |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
setContainer(String value)
container is the name of the container in the pods of the scaling taget
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
setContainerBytes(com.google.protobuf.ByteString value)
container is the name of the container in the pods of the scaling taget
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
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.
|
V1Autoscaling.ContainerResourceMetricStatus.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.
|
V1Autoscaling.ContainerResourceMetricStatus.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.
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
setName(String value)
name is the name of the resource in question.
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
setNameBytes(com.google.protobuf.ByteString value)
name is the name of the resource in question.
|
V1Autoscaling.ContainerResourceMetricStatus.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Autoscaling.ContainerResourceMetricStatus.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.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.ContainerResourceMetricStatus.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.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Autoscaling.ContainerResourceMetricStatus build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Autoscaling.ContainerResourceMetricStatus buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Autoscaling.ContainerResourceMetricStatus.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.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.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.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.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.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.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.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Autoscaling.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.Builder mergeFrom(V1Autoscaling.ContainerResourceMetricStatus other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricStatus.Builder>public V1Autoscaling.ContainerResourceMetricStatus.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.ContainerResourceMetricStatus.Builder>IOExceptionpublic boolean hasName()
name is the name of the resource in question.
optional string name = 1;hasName in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic String getName()
name is the name of the resource in question.
optional string name = 1;getName in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
name is the name of the resource in question.
optional string name = 1;getNameBytes in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic V1Autoscaling.ContainerResourceMetricStatus.Builder setName(String value)
name is the name of the resource in question.
optional string name = 1;public V1Autoscaling.ContainerResourceMetricStatus.Builder clearName()
name is the name of the resource in question.
optional string name = 1;public V1Autoscaling.ContainerResourceMetricStatus.Builder setNameBytes(com.google.protobuf.ByteString value)
name is the name of the resource in question.
optional string name = 1;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;hasCurrentAverageUtilization in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic 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;getCurrentAverageUtilization in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic V1Autoscaling.ContainerResourceMetricStatus.Builder 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. It will only be present if `targetAverageValue` was set in the corresponding metric specification. +optional
optional int32 currentAverageUtilization = 2;public V1Autoscaling.ContainerResourceMetricStatus.Builder 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;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;
hasCurrentAverageValue in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic Resource.Quantity 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;
getCurrentAverageValue in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic V1Autoscaling.ContainerResourceMetricStatus.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;
public V1Autoscaling.ContainerResourceMetricStatus.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;
public V1Autoscaling.ContainerResourceMetricStatus.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;
public V1Autoscaling.ContainerResourceMetricStatus.Builder 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;
public Resource.Quantity.Builder 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;
public Resource.QuantityOrBuilder 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;
getCurrentAverageValueOrBuilder in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic boolean hasContainer()
container is the name of the container in the pods of the scaling taget
optional string container = 4;hasContainer in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic String getContainer()
container is the name of the container in the pods of the scaling taget
optional string container = 4;getContainer in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic com.google.protobuf.ByteString getContainerBytes()
container is the name of the container in the pods of the scaling taget
optional string container = 4;getContainerBytes in interface V1Autoscaling.ContainerResourceMetricStatusOrBuilderpublic V1Autoscaling.ContainerResourceMetricStatus.Builder setContainer(String value)
container is the name of the container in the pods of the scaling taget
optional string container = 4;public V1Autoscaling.ContainerResourceMetricStatus.Builder clearContainer()
container is the name of the container in the pods of the scaling taget
optional string container = 4;public V1Autoscaling.ContainerResourceMetricStatus.Builder setContainerBytes(com.google.protobuf.ByteString value)
container is the name of the container in the pods of the scaling taget
optional string container = 4;public final V1Autoscaling.ContainerResourceMetricStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricStatus.Builder>public final V1Autoscaling.ContainerResourceMetricStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricStatus.Builder>Copyright © 2023. All rights reserved.