Class V1Autoscaling.ObjectMetricStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ObjectMetricStatus.Builder>
io.kubernetes.client.proto.V1Autoscaling.ObjectMetricStatus.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Autoscaling.ObjectMetricStatusOrBuilder, Cloneable
Enclosing class:
V1Autoscaling.ObjectMetricStatus

public static final class V1Autoscaling.ObjectMetricStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ObjectMetricStatus.Builder> implements V1Autoscaling.ObjectMetricStatusOrBuilder
 ObjectMetricStatus indicates the current value of a metric describing a
 kubernetes object (for example, hits-per-second on an Ingress object).
 
Protobuf type k8s.io.api.autoscaling.v1.ObjectMetricStatus
  • 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<V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
    • getDefaultInstanceForType

      public V1Autoscaling.ObjectMetricStatus 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 V1Autoscaling.ObjectMetricStatus 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<V1Autoscaling.ObjectMetricStatus.Builder>
    • setField

      public V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
    • clearField

      public V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
    • clearOneof

      public V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
    • setRepeatedField

      public V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
    • addRepeatedField

      public V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
    • mergeFrom

      public V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
    • mergeFrom

      public V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
      Throws:
      IOException
    • hasTarget

      public boolean hasTarget()
       target is the described Kubernetes object.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference target = 1;
      Specified by:
      hasTarget in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • getTarget

       target is the described Kubernetes object.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference target = 1;
      Specified by:
      getTarget in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • setTarget

       target is the described Kubernetes object.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference target = 1;
    • setTarget

       target is the described Kubernetes object.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference target = 1;
    • mergeTarget

       target is the described Kubernetes object.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference target = 1;
    • clearTarget

       target is the described Kubernetes object.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference target = 1;
    • getTargetBuilder

       target is the described Kubernetes object.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference target = 1;
    • getTargetOrBuilder

       target is the described Kubernetes object.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference target = 1;
      Specified by:
      getTargetOrBuilder in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • hasMetricName

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

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

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

      public V1Autoscaling.ObjectMetricStatus.Builder setMetricName(String value)
       metricName is the name of the metric in question.
       
      optional string metricName = 2;
    • clearMetricName

      public V1Autoscaling.ObjectMetricStatus.Builder clearMetricName()
       metricName is the name of the metric in question.
       
      optional string metricName = 2;
    • setMetricNameBytes

      public V1Autoscaling.ObjectMetricStatus.Builder setMetricNameBytes(com.google.protobuf.ByteString value)
       metricName is the name of the metric in question.
       
      optional string metricName = 2;
    • hasCurrentValue

      public boolean hasCurrentValue()
       currentValue is the current value of the metric (as a quantity).
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3;
      Specified by:
      hasCurrentValue in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • getCurrentValue

      public Resource.Quantity getCurrentValue()
       currentValue is the current value of the metric (as a quantity).
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3;
      Specified by:
      getCurrentValue in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • setCurrentValue

       currentValue is the current value of the metric (as a quantity).
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3;
    • setCurrentValue

      public V1Autoscaling.ObjectMetricStatus.Builder setCurrentValue(Resource.Quantity.Builder builderForValue)
       currentValue is the current value of the metric (as a quantity).
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3;
    • mergeCurrentValue

       currentValue is the current value of the metric (as a quantity).
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3;
    • clearCurrentValue

      public V1Autoscaling.ObjectMetricStatus.Builder clearCurrentValue()
       currentValue is the current value of the metric (as a quantity).
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3;
    • getCurrentValueBuilder

      public Resource.Quantity.Builder getCurrentValueBuilder()
       currentValue is the current value of the metric (as a quantity).
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3;
    • getCurrentValueOrBuilder

      public Resource.QuantityOrBuilder getCurrentValueOrBuilder()
       currentValue is the current value of the metric (as a quantity).
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3;
      Specified by:
      getCurrentValueOrBuilder in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • hasSelector

      public boolean hasSelector()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the ObjectMetricSource, 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 = 4;
      Specified by:
      hasSelector in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • 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 ObjectMetricSource, 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 = 4;
      Specified by:
      getSelector in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • setSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the ObjectMetricSource, 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 = 4;
    • setSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the ObjectMetricSource, 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 = 4;
    • mergeSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the ObjectMetricSource, 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 = 4;
    • clearSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set in the ObjectMetricSource, 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 = 4;
    • 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 ObjectMetricSource, 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 = 4;
    • 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 ObjectMetricSource, 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 = 4;
      Specified by:
      getSelectorOrBuilder in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • hasAverageValue

      public boolean hasAverageValue()
       averageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
      Specified by:
      hasAverageValue in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • getAverageValue

      public Resource.Quantity getAverageValue()
       averageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
      Specified by:
      getAverageValue in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • setAverageValue

       averageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
    • setAverageValue

      public V1Autoscaling.ObjectMetricStatus.Builder setAverageValue(Resource.Quantity.Builder builderForValue)
       averageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
    • mergeAverageValue

       averageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
    • clearAverageValue

      public V1Autoscaling.ObjectMetricStatus.Builder clearAverageValue()
       averageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
    • getAverageValueBuilder

      public Resource.Quantity.Builder getAverageValueBuilder()
       averageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
    • getAverageValueOrBuilder

      public Resource.QuantityOrBuilder getAverageValueOrBuilder()
       averageValue is the current value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
      Specified by:
      getAverageValueOrBuilder in interface V1Autoscaling.ObjectMetricStatusOrBuilder
    • setUnknownFields

      public final V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>
    • mergeUnknownFields

      public final V1Autoscaling.ObjectMetricStatus.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<V1Autoscaling.ObjectMetricStatus.Builder>