public static final class V1Autoscaling.MetricSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.MetricSpec.Builder> implements V1Autoscaling.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.v1.MetricSpec| Modifier and Type | Method and Description |
|---|---|
V1Autoscaling.MetricSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Autoscaling.MetricSpec |
build() |
V1Autoscaling.MetricSpec |
buildPartial() |
V1Autoscaling.MetricSpec.Builder |
clear() |
V1Autoscaling.MetricSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Autoscaling.MetricSpec.Builder |
clearObject()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V1Autoscaling.MetricSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Autoscaling.MetricSpec.Builder |
clearPods()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V1Autoscaling.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.
|
V1Autoscaling.MetricSpec.Builder |
clearType()
type is the type of metric source.
|
V1Autoscaling.MetricSpec.Builder |
clone() |
V1Autoscaling.MetricSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1Autoscaling.ObjectMetricSource |
getObject()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V1Autoscaling.ObjectMetricSource.Builder |
getObjectBuilder()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V1Autoscaling.ObjectMetricSourceOrBuilder |
getObjectOrBuilder()
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V1Autoscaling.PodsMetricSource |
getPods()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V1Autoscaling.PodsMetricSource.Builder |
getPodsBuilder()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V1Autoscaling.PodsMetricSourceOrBuilder |
getPodsOrBuilder()
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V1Autoscaling.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.
|
V1Autoscaling.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.
|
V1Autoscaling.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 |
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() |
V1Autoscaling.MetricSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Autoscaling.MetricSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Autoscaling.MetricSpec.Builder |
mergeFrom(V1Autoscaling.MetricSpec other) |
V1Autoscaling.MetricSpec.Builder |
mergeObject(V1Autoscaling.ObjectMetricSource value)
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V1Autoscaling.MetricSpec.Builder |
mergePods(V1Autoscaling.PodsMetricSource value)
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V1Autoscaling.MetricSpec.Builder |
mergeResource(V1Autoscaling.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.
|
V1Autoscaling.MetricSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Autoscaling.MetricSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Autoscaling.MetricSpec.Builder |
setObject(V1Autoscaling.ObjectMetricSource.Builder builderForValue)
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V1Autoscaling.MetricSpec.Builder |
setObject(V1Autoscaling.ObjectMetricSource value)
object refers to a metric describing a single kubernetes object
(for example, hits-per-second on an Ingress object).
|
V1Autoscaling.MetricSpec.Builder |
setPods(V1Autoscaling.PodsMetricSource.Builder builderForValue)
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V1Autoscaling.MetricSpec.Builder |
setPods(V1Autoscaling.PodsMetricSource value)
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).
|
V1Autoscaling.MetricSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Autoscaling.MetricSpec.Builder |
setResource(V1Autoscaling.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.
|
V1Autoscaling.MetricSpec.Builder |
setResource(V1Autoscaling.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.
|
V1Autoscaling.MetricSpec.Builder |
setType(String value)
type is the type of metric source.
|
V1Autoscaling.MetricSpec.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
type is the type of metric source.
|
V1Autoscaling.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.MetricSpec.Builder>public V1Autoscaling.MetricSpec.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.MetricSpec.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.MetricSpec.Builder>public V1Autoscaling.MetricSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Autoscaling.MetricSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Autoscaling.MetricSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Autoscaling.MetricSpec.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.MetricSpec.Builder>public V1Autoscaling.MetricSpec.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.MetricSpec.Builder>public V1Autoscaling.MetricSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.MetricSpec.Builder>public V1Autoscaling.MetricSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.MetricSpec.Builder>public V1Autoscaling.MetricSpec.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.MetricSpec.Builder>public V1Autoscaling.MetricSpec.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.MetricSpec.Builder>public V1Autoscaling.MetricSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Autoscaling.MetricSpec.Builder>public V1Autoscaling.MetricSpec.Builder mergeFrom(V1Autoscaling.MetricSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.MetricSpec.Builder>public V1Autoscaling.MetricSpec.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.MetricSpec.Builder>IOExceptionpublic boolean hasType()
type is the type of metric source. It should match one of the fields below.
optional string type = 1;hasType in interface V1Autoscaling.MetricSpecOrBuilderpublic String getType()
type is the type of metric source. It should match one of the fields below.
optional string type = 1;getType in interface V1Autoscaling.MetricSpecOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
type is the type of metric source. It should match one of the fields below.
optional string type = 1;getTypeBytes in interface V1Autoscaling.MetricSpecOrBuilderpublic V1Autoscaling.MetricSpec.Builder setType(String value)
type is the type of metric source. It should match one of the fields below.
optional string type = 1;public V1Autoscaling.MetricSpec.Builder clearType()
type is the type of metric source. It should match one of the fields below.
optional string type = 1;public V1Autoscaling.MetricSpec.Builder setTypeBytes(com.google.protobuf.ByteString value)
type is the type of metric source. It should match one of the fields below.
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.v1.ObjectMetricSource object = 2;hasObject in interface V1Autoscaling.MetricSpecOrBuilderpublic V1Autoscaling.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.v1.ObjectMetricSource object = 2;getObject in interface V1Autoscaling.MetricSpecOrBuilderpublic V1Autoscaling.MetricSpec.Builder setObject(V1Autoscaling.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.v1.ObjectMetricSource object = 2;public V1Autoscaling.MetricSpec.Builder setObject(V1Autoscaling.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.v1.ObjectMetricSource object = 2;public V1Autoscaling.MetricSpec.Builder mergeObject(V1Autoscaling.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.v1.ObjectMetricSource object = 2;public V1Autoscaling.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.v1.ObjectMetricSource object = 2;public V1Autoscaling.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.v1.ObjectMetricSource object = 2;public V1Autoscaling.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.v1.ObjectMetricSource object = 2;getObjectOrBuilder in interface V1Autoscaling.MetricSpecOrBuilderpublic 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.v1.PodsMetricSource pods = 3;hasPods in interface V1Autoscaling.MetricSpecOrBuilderpublic V1Autoscaling.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.v1.PodsMetricSource pods = 3;getPods in interface V1Autoscaling.MetricSpecOrBuilderpublic V1Autoscaling.MetricSpec.Builder setPods(V1Autoscaling.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.v1.PodsMetricSource pods = 3;public V1Autoscaling.MetricSpec.Builder setPods(V1Autoscaling.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.v1.PodsMetricSource pods = 3;public V1Autoscaling.MetricSpec.Builder mergePods(V1Autoscaling.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.v1.PodsMetricSource pods = 3;public V1Autoscaling.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.v1.PodsMetricSource pods = 3;public V1Autoscaling.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.v1.PodsMetricSource pods = 3;public V1Autoscaling.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.v1.PodsMetricSource pods = 3;getPodsOrBuilder in interface V1Autoscaling.MetricSpecOrBuilderpublic 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.v1.ResourceMetricSource resource = 4;hasResource in interface V1Autoscaling.MetricSpecOrBuilderpublic V1Autoscaling.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.v1.ResourceMetricSource resource = 4;getResource in interface V1Autoscaling.MetricSpecOrBuilderpublic V1Autoscaling.MetricSpec.Builder setResource(V1Autoscaling.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.v1.ResourceMetricSource resource = 4;public V1Autoscaling.MetricSpec.Builder setResource(V1Autoscaling.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.v1.ResourceMetricSource resource = 4;public V1Autoscaling.MetricSpec.Builder mergeResource(V1Autoscaling.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.v1.ResourceMetricSource resource = 4;public V1Autoscaling.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.v1.ResourceMetricSource resource = 4;public V1Autoscaling.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.v1.ResourceMetricSource resource = 4;public V1Autoscaling.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.v1.ResourceMetricSource resource = 4;getResourceOrBuilder in interface V1Autoscaling.MetricSpecOrBuilderpublic final V1Autoscaling.MetricSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.MetricSpec.Builder>public final V1Autoscaling.MetricSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.MetricSpec.Builder>Copyright © 2018. All rights reserved.