Class V2beta1Autoscaling.MetricSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
io.kubernetes.client.proto.V2beta1Autoscaling.MetricSpec.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V2beta1Autoscaling.MetricSpecOrBuilder, Cloneable
Enclosing class:
V2beta1Autoscaling.MetricSpec

public static final class V2beta1Autoscaling.MetricSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder> implements V2beta1Autoscaling.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.v2beta1.MetricSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • getDefaultInstanceForType

      public V2beta1Autoscaling.MetricSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V2beta1Autoscaling.MetricSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • setField

      public V2beta1Autoscaling.MetricSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • clearField

      public V2beta1Autoscaling.MetricSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • clearOneof

      public V2beta1Autoscaling.MetricSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • setRepeatedField

      public V2beta1Autoscaling.MetricSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • addRepeatedField

      public V2beta1Autoscaling.MetricSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • mergeFrom

      public V2beta1Autoscaling.MetricSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • mergeFrom

      public V2beta1Autoscaling.MetricSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V2beta1Autoscaling.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:
      hasType in interface V2beta1Autoscaling.MetricSpecOrBuilder
    • getType

      public String 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:
      getType in interface V2beta1Autoscaling.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:
      getTypeBytes in interface V2beta1Autoscaling.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

      public V2beta1Autoscaling.MetricSpec.Builder setTypeBytes(com.google.protobuf.ByteString value)
       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.v2beta1.ObjectMetricSource object = 2;
      Specified by:
      hasObject in interface V2beta1Autoscaling.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.v2beta1.ObjectMetricSource object = 2;
      Specified by:
      getObject in interface V2beta1Autoscaling.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.v2beta1.ObjectMetricSource object = 2;
    • 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.v2beta1.ObjectMetricSource object = 2;
    • mergeObject

       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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.ObjectMetricSource object = 2;
      Specified by:
      getObjectOrBuilder in interface V2beta1Autoscaling.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.v2beta1.PodsMetricSource pods = 3;
      Specified by:
      hasPods in interface V2beta1Autoscaling.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.v2beta1.PodsMetricSource pods = 3;
      Specified by:
      getPods in interface V2beta1Autoscaling.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.v2beta1.PodsMetricSource pods = 3;
    • 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.PodsMetricSource pods = 3;
      Specified by:
      getPodsOrBuilder in interface V2beta1Autoscaling.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.v2beta1.ResourceMetricSource resource = 4;
      Specified by:
      hasResource in interface V2beta1Autoscaling.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.v2beta1.ResourceMetricSource resource = 4;
      Specified by:
      getResource in interface V2beta1Autoscaling.MetricSpecOrBuilder
    • setResource

       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.v2beta1.ResourceMetricSource resource = 4;
    • setResource

       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.v2beta1.ResourceMetricSource resource = 4;
    • mergeResource

       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.v2beta1.ResourceMetricSource resource = 4;
    • clearResource

      public V2beta1Autoscaling.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.v2beta1.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.v2beta1.ResourceMetricSource resource = 4;
    • getResourceOrBuilder

      public V2beta1Autoscaling.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.v2beta1.ResourceMetricSource resource = 4;
      Specified by:
      getResourceOrBuilder in interface V2beta1Autoscaling.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.v2beta1.ContainerResourceMetricSource containerResource = 7;
      Specified by:
      hasContainerResource in interface V2beta1Autoscaling.MetricSpecOrBuilder
    • getContainerResource

      public V2beta1Autoscaling.ContainerResourceMetricSource 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.v2beta1.ContainerResourceMetricSource containerResource = 7;
      Specified by:
      getContainerResource in interface V2beta1Autoscaling.MetricSpecOrBuilder
    • setContainerResource

       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.v2beta1.ContainerResourceMetricSource containerResource = 7;
    • setContainerResource

       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.v2beta1.ContainerResourceMetricSource containerResource = 7;
    • mergeContainerResource

       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.v2beta1.ContainerResourceMetricSource containerResource = 7;
    • clearContainerResource

      public V2beta1Autoscaling.MetricSpec.Builder 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.v2beta1.ContainerResourceMetricSource containerResource = 7;
    • getContainerResourceBuilder

      public V2beta1Autoscaling.ContainerResourceMetricSource.Builder 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.v2beta1.ContainerResourceMetricSource containerResource = 7;
    • getContainerResourceOrBuilder

      public V2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder 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.v2beta1.ContainerResourceMetricSource containerResource = 7;
      Specified by:
      getContainerResourceOrBuilder in interface V2beta1Autoscaling.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.v2beta1.ExternalMetricSource external = 5;
      Specified by:
      hasExternal in interface V2beta1Autoscaling.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.v2beta1.ExternalMetricSource external = 5;
      Specified by:
      getExternal in interface V2beta1Autoscaling.MetricSpecOrBuilder
    • setExternal

       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.v2beta1.ExternalMetricSource external = 5;
    • setExternal

       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.v2beta1.ExternalMetricSource external = 5;
    • mergeExternal

       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.v2beta1.ExternalMetricSource external = 5;
    • clearExternal

      public V2beta1Autoscaling.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.v2beta1.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.v2beta1.ExternalMetricSource external = 5;
    • getExternalOrBuilder

      public V2beta1Autoscaling.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.v2beta1.ExternalMetricSource external = 5;
      Specified by:
      getExternalOrBuilder in interface V2beta1Autoscaling.MetricSpecOrBuilder
    • setUnknownFields

      public final V2beta1Autoscaling.MetricSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>
    • mergeUnknownFields

      public final V2beta1Autoscaling.MetricSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.MetricSpec.Builder>