Class V1Autoscaling.PodsMetricSource.Builder

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

public static final class V1Autoscaling.PodsMetricSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder> implements V1Autoscaling.PodsMetricSourceOrBuilder
 PodsMetricSource indicates how to scale on 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.
 
Protobuf type k8s.io.api.autoscaling.v1.PodsMetricSource
  • 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.PodsMetricSource.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.PodsMetricSource.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.PodsMetricSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public V1Autoscaling.PodsMetricSource.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.PodsMetricSource.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 V1Autoscaling.PodsMetricSourceOrBuilder
    • getMetricName

      public String getMetricName()
       metricName is the name of the metric in question
       
      optional string metricName = 1;
      Specified by:
      getMetricName in interface V1Autoscaling.PodsMetricSourceOrBuilder
    • 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 V1Autoscaling.PodsMetricSourceOrBuilder
    • setMetricName

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

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

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

      public boolean hasTargetAverageValue()
       targetAverageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
      Specified by:
      hasTargetAverageValue in interface V1Autoscaling.PodsMetricSourceOrBuilder
    • getTargetAverageValue

      public Resource.Quantity getTargetAverageValue()
       targetAverageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
      Specified by:
      getTargetAverageValue in interface V1Autoscaling.PodsMetricSourceOrBuilder
    • setTargetAverageValue

      public V1Autoscaling.PodsMetricSource.Builder setTargetAverageValue(Resource.Quantity value)
       targetAverageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
    • setTargetAverageValue

      public V1Autoscaling.PodsMetricSource.Builder setTargetAverageValue(Resource.Quantity.Builder builderForValue)
       targetAverageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
    • mergeTargetAverageValue

      public V1Autoscaling.PodsMetricSource.Builder mergeTargetAverageValue(Resource.Quantity value)
       targetAverageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
    • clearTargetAverageValue

      public V1Autoscaling.PodsMetricSource.Builder clearTargetAverageValue()
       targetAverageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
    • getTargetAverageValueBuilder

      public Resource.Quantity.Builder getTargetAverageValueBuilder()
       targetAverageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
    • getTargetAverageValueOrBuilder

      public Resource.QuantityOrBuilder getTargetAverageValueOrBuilder()
       targetAverageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
      Specified by:
      getTargetAverageValueOrBuilder in interface V1Autoscaling.PodsMetricSourceOrBuilder
    • hasSelector

      public boolean hasSelector()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, 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 V1Autoscaling.PodsMetricSourceOrBuilder
    • getSelector

      public Meta.LabelSelector getSelector()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, 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 V1Autoscaling.PodsMetricSourceOrBuilder
    • setSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, 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, 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, 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, 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, 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, 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 V1Autoscaling.PodsMetricSourceOrBuilder
    • setUnknownFields

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

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