public static final class V2beta1Autoscaling.ResourceMetricSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricSource.Builder> implements V2beta1Autoscaling.ResourceMetricSourceOrBuilder
ResourceMetricSource indicates how to scale on 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). The values will be averaged together before being compared to the target. 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. Only one "target" type should be set.Protobuf type
k8s.io.api.autoscaling.v2beta1.ResourceMetricSource| Modifier and Type | Method and Description |
|---|---|
V2beta1Autoscaling.ResourceMetricSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2beta1Autoscaling.ResourceMetricSource |
build() |
V2beta1Autoscaling.ResourceMetricSource |
buildPartial() |
V2beta1Autoscaling.ResourceMetricSource.Builder |
clear() |
V2beta1Autoscaling.ResourceMetricSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V2beta1Autoscaling.ResourceMetricSource.Builder |
clearName()
name is the name of the resource in question.
|
V2beta1Autoscaling.ResourceMetricSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V2beta1Autoscaling.ResourceMetricSource.Builder |
clearTargetAverageUtilization()
targetAverageUtilization is the target 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.
|
V2beta1Autoscaling.ResourceMetricSource.Builder |
clearTargetAverageValue()
targetAverageValue is the target 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.
|
V2beta1Autoscaling.ResourceMetricSource.Builder |
clone() |
V2beta1Autoscaling.ResourceMetricSource |
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.
|
int |
getTargetAverageUtilization()
targetAverageUtilization is the target 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 |
getTargetAverageValue()
targetAverageValue is the target 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 |
getTargetAverageValueBuilder()
targetAverageValue is the target 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 |
getTargetAverageValueOrBuilder()
targetAverageValue is the target 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.
|
boolean |
hasTargetAverageUtilization()
targetAverageUtilization is the target 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 |
hasTargetAverageValue()
targetAverageValue is the target 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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V2beta1Autoscaling.ResourceMetricSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V2beta1Autoscaling.ResourceMetricSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
V2beta1Autoscaling.ResourceMetricSource.Builder |
mergeFrom(V2beta1Autoscaling.ResourceMetricSource other) |
V2beta1Autoscaling.ResourceMetricSource.Builder |
mergeTargetAverageValue(Resource.Quantity value)
targetAverageValue is the target 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.
|
V2beta1Autoscaling.ResourceMetricSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V2beta1Autoscaling.ResourceMetricSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2beta1Autoscaling.ResourceMetricSource.Builder |
setName(String value)
name is the name of the resource in question.
|
V2beta1Autoscaling.ResourceMetricSource.Builder |
setNameBytes(com.google.protobuf.ByteString value)
name is the name of the resource in question.
|
V2beta1Autoscaling.ResourceMetricSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V2beta1Autoscaling.ResourceMetricSource.Builder |
setTargetAverageUtilization(int value)
targetAverageUtilization is the target 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.
|
V2beta1Autoscaling.ResourceMetricSource.Builder |
setTargetAverageValue(Resource.Quantity.Builder builderForValue)
targetAverageValue is the target 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.
|
V2beta1Autoscaling.ResourceMetricSource.Builder |
setTargetAverageValue(Resource.Quantity value)
targetAverageValue is the target 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.
|
V2beta1Autoscaling.ResourceMetricSource.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<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricSource.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<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V2beta1Autoscaling.ResourceMetricSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V2beta1Autoscaling.ResourceMetricSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V2beta1Autoscaling.ResourceMetricSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.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<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.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<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.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<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.Builder mergeFrom(V2beta1Autoscaling.ResourceMetricSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricSource.Builder>public V2beta1Autoscaling.ResourceMetricSource.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<V2beta1Autoscaling.ResourceMetricSource.Builder>IOExceptionpublic boolean hasName()
name is the name of the resource in question.
optional string name = 1;hasName in interface V2beta1Autoscaling.ResourceMetricSourceOrBuilderpublic String getName()
name is the name of the resource in question.
optional string name = 1;getName in interface V2beta1Autoscaling.ResourceMetricSourceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
name is the name of the resource in question.
optional string name = 1;getNameBytes in interface V2beta1Autoscaling.ResourceMetricSourceOrBuilderpublic V2beta1Autoscaling.ResourceMetricSource.Builder setName(String value)
name is the name of the resource in question.
optional string name = 1;public V2beta1Autoscaling.ResourceMetricSource.Builder clearName()
name is the name of the resource in question.
optional string name = 1;public V2beta1Autoscaling.ResourceMetricSource.Builder setNameBytes(com.google.protobuf.ByteString value)
name is the name of the resource in question.
optional string name = 1;public boolean hasTargetAverageUtilization()
targetAverageUtilization is the target 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. +optional
optional int32 targetAverageUtilization = 2;hasTargetAverageUtilization in interface V2beta1Autoscaling.ResourceMetricSourceOrBuilderpublic int getTargetAverageUtilization()
targetAverageUtilization is the target 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. +optional
optional int32 targetAverageUtilization = 2;getTargetAverageUtilization in interface V2beta1Autoscaling.ResourceMetricSourceOrBuilderpublic V2beta1Autoscaling.ResourceMetricSource.Builder setTargetAverageUtilization(int value)
targetAverageUtilization is the target 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. +optional
optional int32 targetAverageUtilization = 2;public V2beta1Autoscaling.ResourceMetricSource.Builder clearTargetAverageUtilization()
targetAverageUtilization is the target 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. +optional
optional int32 targetAverageUtilization = 2;public boolean hasTargetAverageValue()
targetAverageValue is the target 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. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;
hasTargetAverageValue in interface V2beta1Autoscaling.ResourceMetricSourceOrBuilderpublic Resource.Quantity getTargetAverageValue()
targetAverageValue is the target 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. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;
getTargetAverageValue in interface V2beta1Autoscaling.ResourceMetricSourceOrBuilderpublic V2beta1Autoscaling.ResourceMetricSource.Builder setTargetAverageValue(Resource.Quantity value)
targetAverageValue is the target 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. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;
public V2beta1Autoscaling.ResourceMetricSource.Builder setTargetAverageValue(Resource.Quantity.Builder builderForValue)
targetAverageValue is the target 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. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;
public V2beta1Autoscaling.ResourceMetricSource.Builder mergeTargetAverageValue(Resource.Quantity value)
targetAverageValue is the target 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. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;
public V2beta1Autoscaling.ResourceMetricSource.Builder clearTargetAverageValue()
targetAverageValue is the target 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. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;
public Resource.Quantity.Builder getTargetAverageValueBuilder()
targetAverageValue is the target 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. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;
public Resource.QuantityOrBuilder getTargetAverageValueOrBuilder()
targetAverageValue is the target 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. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;
getTargetAverageValueOrBuilder in interface V2beta1Autoscaling.ResourceMetricSourceOrBuilderpublic final V2beta1Autoscaling.ResourceMetricSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricSource.Builder>public final V2beta1Autoscaling.ResourceMetricSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ResourceMetricSource.Builder>Copyright © 2023. All rights reserved.