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
Modifier and Type | Method and Description |
---|---|
V2beta2Autoscaling.MetricSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2beta2Autoscaling.MetricSpec |
build() |
V2beta2Autoscaling.MetricSpec |
buildPartial() |
V2beta2Autoscaling.MetricSpec.Builder |
clear() |
V2beta2Autoscaling.MetricSpec.Builder |
clearExternal()
external refers to a global metric that is not associated
with any Kubernetes object.
|
V2beta2Autoscaling.MetricSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V2beta2Autoscaling.MetricSpec.Builder |
clearObject()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V2beta2Autoscaling.MetricSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V2beta2Autoscaling.MetricSpec.Builder |
clearPods()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V2beta2Autoscaling.MetricSpec.Builder |
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.
|
V2beta2Autoscaling.MetricSpec.Builder |
clearType()
type is the type of metric source.
|
V2beta2Autoscaling.MetricSpec.Builder |
clone() |
V2beta2Autoscaling.MetricSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V2beta2Autoscaling.ExternalMetricSource |
getExternal()
external refers to a global metric that is not associated
with any Kubernetes object.
|
V2beta2Autoscaling.ExternalMetricSource.Builder |
getExternalBuilder()
external refers to a global metric that is not associated
with any Kubernetes object.
|
V2beta2Autoscaling.ExternalMetricSourceOrBuilder |
getExternalOrBuilder()
external refers to a global metric that is not associated
with any Kubernetes object.
|
V2beta2Autoscaling.ObjectMetricSource |
getObject()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V2beta2Autoscaling.ObjectMetricSource.Builder |
getObjectBuilder()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V2beta2Autoscaling.ObjectMetricSourceOrBuilder |
getObjectOrBuilder()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V2beta2Autoscaling.PodsMetricSource |
getPods()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V2beta2Autoscaling.PodsMetricSource.Builder |
getPodsBuilder()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V2beta2Autoscaling.PodsMetricSourceOrBuilder |
getPodsOrBuilder()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V2beta2Autoscaling.ResourceMetricSource |
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.
|
V2beta2Autoscaling.ResourceMetricSource.Builder |
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.
|
V2beta2Autoscaling.ResourceMetricSourceOrBuilder |
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.
|
String |
getType()
type is the type of metric source.
|
com.google.protobuf.ByteString |
getTypeBytes()
type is the type of metric source.
|
boolean |
hasExternal()
external refers to a global metric that is not associated
with any Kubernetes object.
|
boolean |
hasObject()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
boolean |
hasPods()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
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.
|
boolean |
hasType()
type is the type of metric source.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V2beta2Autoscaling.MetricSpec.Builder |
mergeExternal(V2beta2Autoscaling.ExternalMetricSource value)
external refers to a global metric that is not associated
with any Kubernetes object.
|
V2beta2Autoscaling.MetricSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V2beta2Autoscaling.MetricSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
V2beta2Autoscaling.MetricSpec.Builder |
mergeFrom(V2beta2Autoscaling.MetricSpec other) |
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).
|
V2beta2Autoscaling.MetricSpec.Builder |
mergePods(V2beta2Autoscaling.PodsMetricSource value)
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
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.
|
V2beta2Autoscaling.MetricSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V2beta2Autoscaling.MetricSpec.Builder |
setExternal(V2beta2Autoscaling.ExternalMetricSource.Builder builderForValue)
external refers to a global metric that is not associated
with any Kubernetes object.
|
V2beta2Autoscaling.MetricSpec.Builder |
setExternal(V2beta2Autoscaling.ExternalMetricSource value)
external refers to a global metric that is not associated
with any Kubernetes object.
|
V2beta2Autoscaling.MetricSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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).
|
V2beta2Autoscaling.MetricSpec.Builder |
setObject(V2beta2Autoscaling.ObjectMetricSource value)
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
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).
|
V2beta2Autoscaling.MetricSpec.Builder |
setPods(V2beta2Autoscaling.PodsMetricSource value)
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V2beta2Autoscaling.MetricSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.
|
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.
|
V2beta2Autoscaling.MetricSpec.Builder |
setType(String value)
type is the type of metric source.
|
V2beta2Autoscaling.MetricSpec.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
type is the type of metric source.
|
V2beta2Autoscaling.MetricSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public V2beta2Autoscaling.MetricSpec build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public V2beta2Autoscaling.MetricSpec buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public V2beta2Autoscaling.MetricSpec.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder mergeFrom(V2beta2Autoscaling.MetricSpec other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public V2beta2Autoscaling.MetricSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.MetricSpec.Builder>
IOException
public boolean hasType()
type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object.
optional string type = 1;
hasType
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public String getType()
type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object.
optional string type = 1;
getType
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public com.google.protobuf.ByteString getTypeBytes()
type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object.
optional string type = 1;
getTypeBytes
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public V2beta2Autoscaling.MetricSpec.Builder setType(String value)
type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object.
optional string type = 1;
public V2beta2Autoscaling.MetricSpec.Builder clearType()
type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object.
optional string type = 1;
public V2beta2Autoscaling.MetricSpec.Builder setTypeBytes(com.google.protobuf.ByteString value)
type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object.
optional string type = 1;
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;
hasObject
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public V2beta2Autoscaling.ObjectMetricSource 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;
getObject
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public V2beta2Autoscaling.MetricSpec.Builder setObject(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;
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;
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;
public V2beta2Autoscaling.MetricSpec.Builder 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;
public V2beta2Autoscaling.ObjectMetricSource.Builder 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;
public V2beta2Autoscaling.ObjectMetricSourceOrBuilder 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;
getObjectOrBuilder
in interface V2beta2Autoscaling.MetricSpecOrBuilder
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;
hasPods
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public V2beta2Autoscaling.PodsMetricSource 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;
getPods
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public V2beta2Autoscaling.MetricSpec.Builder setPods(V2beta2Autoscaling.PodsMetricSource value)
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;
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;
public V2beta2Autoscaling.MetricSpec.Builder mergePods(V2beta2Autoscaling.PodsMetricSource value)
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;
public V2beta2Autoscaling.MetricSpec.Builder 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;
public V2beta2Autoscaling.PodsMetricSource.Builder 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;
public V2beta2Autoscaling.PodsMetricSourceOrBuilder 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;
getPodsOrBuilder
in interface V2beta2Autoscaling.MetricSpecOrBuilder
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;
hasResource
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public V2beta2Autoscaling.ResourceMetricSource 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;
getResource
in interface V2beta2Autoscaling.MetricSpecOrBuilder
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;
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;
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;
public V2beta2Autoscaling.MetricSpec.Builder 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;
public V2beta2Autoscaling.ResourceMetricSource.Builder 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;
public V2beta2Autoscaling.ResourceMetricSourceOrBuilder 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;
getResourceOrBuilder
in interface V2beta2Autoscaling.MetricSpecOrBuilder
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;
hasExternal
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public V2beta2Autoscaling.ExternalMetricSource 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;
getExternal
in interface V2beta2Autoscaling.MetricSpecOrBuilder
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;
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;
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;
public V2beta2Autoscaling.MetricSpec.Builder 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;
public V2beta2Autoscaling.ExternalMetricSource.Builder 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;
public V2beta2Autoscaling.ExternalMetricSourceOrBuilder 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;
getExternalOrBuilder
in interface V2beta2Autoscaling.MetricSpecOrBuilder
public final V2beta2Autoscaling.MetricSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
public final V2beta2Autoscaling.MetricSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricSpec.Builder>
Copyright © 2021. All rights reserved.