Class V2beta1Autoscaling.PodsMetricStatus.Builder

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

public static final class V2beta1Autoscaling.PodsMetricStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.PodsMetricStatus.Builder> implements V2beta1Autoscaling.PodsMetricStatusOrBuilder
 PodsMetricStatus indicates the current value of a metric describing each pod in
 the current scale target (for example, transactions-processed-per-second).
 
Protobuf type k8s.io.api.autoscaling.v2beta1.PodsMetricStatus
  • 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.PodsMetricStatus.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.PodsMetricStatus.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.PodsMetricStatus.Builder>
    • getDefaultInstanceForType

      public V2beta1Autoscaling.PodsMetricStatus 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.PodsMetricStatus 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.PodsMetricStatus.Builder>
    • setField

      public V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.Builder>
    • clearField

      public V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.Builder>
    • clearOneof

      public V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.Builder>
    • setRepeatedField

      public V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.Builder>
    • addRepeatedField

      public V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.Builder>
    • mergeFrom

      public V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.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.PodsMetricStatus.Builder>
    • mergeFrom

      public V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.Builder>
      Throws:
      IOException
    • hasMetricName

      public boolean hasMetricName()
       metricName is the name of the metric in question
       
      optional string metricName = 1;
      Specified by:
      hasMetricName in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • getMetricName

      public String getMetricName()
       metricName is the name of the metric in question
       
      optional string metricName = 1;
      Specified by:
      getMetricName in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • getMetricNameBytes

      public com.google.protobuf.ByteString getMetricNameBytes()
       metricName is the name of the metric in question
       
      optional string metricName = 1;
      Specified by:
      getMetricNameBytes in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • setMetricName

       metricName is the name of the metric in question
       
      optional string metricName = 1;
    • clearMetricName

       metricName is the name of the metric in question
       
      optional string metricName = 1;
    • setMetricNameBytes

      public V2beta1Autoscaling.PodsMetricStatus.Builder setMetricNameBytes(com.google.protobuf.ByteString value)
       metricName is the name of the metric in question
       
      optional string metricName = 1;
    • hasCurrentAverageValue

      public boolean hasCurrentAverageValue()
       currentAverageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2;
      Specified by:
      hasCurrentAverageValue in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • getCurrentAverageValue

      public Resource.Quantity getCurrentAverageValue()
       currentAverageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2;
      Specified by:
      getCurrentAverageValue in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • setCurrentAverageValue

      public V2beta1Autoscaling.PodsMetricStatus.Builder setCurrentAverageValue(Resource.Quantity value)
       currentAverageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2;
    • setCurrentAverageValue

      public V2beta1Autoscaling.PodsMetricStatus.Builder setCurrentAverageValue(Resource.Quantity.Builder builderForValue)
       currentAverageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2;
    • mergeCurrentAverageValue

      public V2beta1Autoscaling.PodsMetricStatus.Builder mergeCurrentAverageValue(Resource.Quantity value)
       currentAverageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2;
    • clearCurrentAverageValue

      public V2beta1Autoscaling.PodsMetricStatus.Builder clearCurrentAverageValue()
       currentAverageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2;
    • getCurrentAverageValueBuilder

      public Resource.Quantity.Builder getCurrentAverageValueBuilder()
       currentAverageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2;
    • getCurrentAverageValueOrBuilder

      public Resource.QuantityOrBuilder getCurrentAverageValueOrBuilder()
       currentAverageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2;
      Specified by:
      getCurrentAverageValueOrBuilder in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • hasSelector

      public boolean hasSelector()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
      Specified by:
      hasSelector in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • getSelector

      public Meta.LabelSelector getSelector()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
      Specified by:
      getSelector in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • setSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
    • setSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
    • mergeSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
    • clearSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
    • getSelectorBuilder

      public Meta.LabelSelector.Builder getSelectorBuilder()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
    • getSelectorOrBuilder

      public Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
      Specified by:
      getSelectorOrBuilder in interface V2beta1Autoscaling.PodsMetricStatusOrBuilder
    • setUnknownFields

      public final V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.Builder>
    • mergeUnknownFields

      public final V2beta1Autoscaling.PodsMetricStatus.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.PodsMetricStatus.Builder>