Package io.kubernetes.client.proto
Class V2beta2Autoscaling.MetricSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
io.kubernetes.client.proto.V2beta2Autoscaling.MetricSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V2beta2Autoscaling.MetricSpecOrBuilder,Cloneable
- Enclosing class:
- V2beta2Autoscaling.MetricSpec
public static final class V2beta2Autoscaling.MetricSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
implements V2beta2Autoscaling.MetricSpecOrBuilder
MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).Protobuf type
k8s.io.api.autoscaling.v2beta2.MetricSpec-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.external refers to a global metric that is not associated with any Kubernetes object.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.type is the type of metric source.clone()container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorexternal refers to a global metric that is not associated with any Kubernetes object.external refers to a global metric that is not associated with any Kubernetes object.external refers to a global metric that is not associated with any Kubernetes object.object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).getPods()pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.getType()type is the type of metric source.com.google.protobuf.ByteStringtype is the type of metric source.booleancontainer resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.booleanexternal refers to a global metric that is not associated with any Kubernetes object.booleanobject refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).booleanhasPods()pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).booleanresource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.booleanhasType()type is the type of metric source.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleancontainer resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.external refers to a global metric that is not associated with any Kubernetes object.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.external refers to a global metric that is not associated with any Kubernetes object.setExternal(V2beta2Autoscaling.ExternalMetricSource.Builder builderForValue) external refers to a global metric that is not associated with any Kubernetes object.object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).setObject(V2beta2Autoscaling.ObjectMetricSource.Builder builderForValue) object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).setPods(V2beta2Autoscaling.PodsMetricSource.Builder builderForValue) pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.setResource(V2beta2Autoscaling.ResourceMetricSource.Builder builderForValue) resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.type is the type of metric source.setTypeBytes(com.google.protobuf.ByteString value) type is the type of metric source.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<V2beta2Autoscaling.MetricSpec.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<V2beta2Autoscaling.MetricSpec.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<V2beta2Autoscaling.MetricSpec.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<V2beta2Autoscaling.MetricSpec.Builder>
-
setField
public V2beta2Autoscaling.MetricSpec.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<V2beta2Autoscaling.MetricSpec.Builder>
-
clearField
public V2beta2Autoscaling.MetricSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
-
clearOneof
public V2beta2Autoscaling.MetricSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
-
setRepeatedField
public V2beta2Autoscaling.MetricSpec.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<V2beta2Autoscaling.MetricSpec.Builder>
-
addRepeatedField
public V2beta2Autoscaling.MetricSpec.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<V2beta2Autoscaling.MetricSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.MetricSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
-
mergeFrom
public V2beta2Autoscaling.MetricSpec.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<V2beta2Autoscaling.MetricSpec.Builder>- Throws:
IOException
-
hasType
public boolean hasType()type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
optional string type = 1;- Specified by:
hasTypein interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
getType
type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
optional string type = 1;- Specified by:
getTypein interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
optional string type = 1;- Specified by:
getTypeBytesin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
setType
type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
optional string type = 1; -
clearType
type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
optional string type = 1; -
setTypeBytes
type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
optional string type = 1; -
hasObject
public boolean hasObject()object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). +optional
optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricSource object = 2;- Specified by:
hasObjectin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
getObject
object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). +optional
optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricSource object = 2;- Specified by:
getObjectin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
setObject
object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). +optional
optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricSource object = 2; -
setObject
public V2beta2Autoscaling.MetricSpec.Builder setObject(V2beta2Autoscaling.ObjectMetricSource.Builder builderForValue) object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). +optional
optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricSource object = 2; -
mergeObject
public V2beta2Autoscaling.MetricSpec.Builder mergeObject(V2beta2Autoscaling.ObjectMetricSource value) object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). +optional
optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricSource object = 2; -
clearObject
object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). +optional
optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricSource object = 2; -
getObjectBuilder
object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). +optional
optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricSource object = 2; -
getObjectOrBuilder
object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). +optional
optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricSource object = 2;- Specified by:
getObjectOrBuilderin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
hasPods
public boolean hasPods()pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +optional
optional .k8s.io.api.autoscaling.v2beta2.PodsMetricSource pods = 3;- Specified by:
hasPodsin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
getPods
pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +optional
optional .k8s.io.api.autoscaling.v2beta2.PodsMetricSource pods = 3;- Specified by:
getPodsin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
setPods
pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +optional
optional .k8s.io.api.autoscaling.v2beta2.PodsMetricSource pods = 3; -
setPods
public V2beta2Autoscaling.MetricSpec.Builder setPods(V2beta2Autoscaling.PodsMetricSource.Builder builderForValue) pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +optional
optional .k8s.io.api.autoscaling.v2beta2.PodsMetricSource pods = 3; -
mergePods
pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +optional
optional .k8s.io.api.autoscaling.v2beta2.PodsMetricSource pods = 3; -
clearPods
pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +optional
optional .k8s.io.api.autoscaling.v2beta2.PodsMetricSource pods = 3; -
getPodsBuilder
pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +optional
optional .k8s.io.api.autoscaling.v2beta2.PodsMetricSource pods = 3; -
getPodsOrBuilder
pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +optional
optional .k8s.io.api.autoscaling.v2beta2.PodsMetricSource pods = 3;- Specified by:
getPodsOrBuilderin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
hasResource
public boolean hasResource()resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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. +optional
optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricSource resource = 4;- Specified by:
hasResourcein interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
getResource
resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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. +optional
optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricSource resource = 4;- Specified by:
getResourcein interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
setResource
public V2beta2Autoscaling.MetricSpec.Builder setResource(V2beta2Autoscaling.ResourceMetricSource value) resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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. +optional
optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricSource resource = 4; -
setResource
public V2beta2Autoscaling.MetricSpec.Builder setResource(V2beta2Autoscaling.ResourceMetricSource.Builder builderForValue) resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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. +optional
optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricSource resource = 4; -
mergeResource
public V2beta2Autoscaling.MetricSpec.Builder mergeResource(V2beta2Autoscaling.ResourceMetricSource value) resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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. +optional
optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricSource resource = 4; -
clearResource
resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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. +optional
optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricSource resource = 4; -
getResourceBuilder
resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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. +optional
optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricSource resource = 4; -
getResourceOrBuilder
resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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. +optional
optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricSource resource = 4;- Specified by:
getResourceOrBuilderin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
hasContainerResource
public boolean hasContainerResource()container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource containerResource = 7;- Specified by:
hasContainerResourcein interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
getContainerResource
container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource containerResource = 7;- Specified by:
getContainerResourcein interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
setContainerResource
public V2beta2Autoscaling.MetricSpec.Builder setContainerResource(V2beta2Autoscaling.ContainerResourceMetricSource value) container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource containerResource = 7; -
setContainerResource
public V2beta2Autoscaling.MetricSpec.Builder setContainerResource(V2beta2Autoscaling.ContainerResourceMetricSource.Builder builderForValue) container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource containerResource = 7; -
mergeContainerResource
public V2beta2Autoscaling.MetricSpec.Builder mergeContainerResource(V2beta2Autoscaling.ContainerResourceMetricSource value) container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource containerResource = 7; -
clearContainerResource
container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource containerResource = 7; -
getContainerResourceBuilder
container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource containerResource = 7; -
getContainerResourceOrBuilder
container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource containerResource = 7;- Specified by:
getContainerResourceOrBuilderin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
hasExternal
public boolean hasExternal()external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). +optional
optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricSource external = 5;- Specified by:
hasExternalin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
getExternal
external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). +optional
optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricSource external = 5;- Specified by:
getExternalin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
setExternal
public V2beta2Autoscaling.MetricSpec.Builder setExternal(V2beta2Autoscaling.ExternalMetricSource value) external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). +optional
optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricSource external = 5; -
setExternal
public V2beta2Autoscaling.MetricSpec.Builder setExternal(V2beta2Autoscaling.ExternalMetricSource.Builder builderForValue) external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). +optional
optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricSource external = 5; -
mergeExternal
public V2beta2Autoscaling.MetricSpec.Builder mergeExternal(V2beta2Autoscaling.ExternalMetricSource value) external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). +optional
optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricSource external = 5; -
clearExternal
external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). +optional
optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricSource external = 5; -
getExternalBuilder
external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). +optional
optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricSource external = 5; -
getExternalOrBuilder
external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). +optional
optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricSource external = 5;- Specified by:
getExternalOrBuilderin interfaceV2beta2Autoscaling.MetricSpecOrBuilder
-
setUnknownFields
public final V2beta2Autoscaling.MetricSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
-
mergeUnknownFields
public final V2beta2Autoscaling.MetricSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
-