Class V2beta2Autoscaling.MetricTarget.Builder

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

public static final class V2beta2Autoscaling.MetricTarget.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricTarget.Builder> implements V2beta2Autoscaling.MetricTargetOrBuilder
 MetricTarget defines the target value, average value, or average utilization of a specific metric
 
Protobuf type k8s.io.api.autoscaling.v2beta2.MetricTarget
  • 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<V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
    • getDefaultInstanceForType

      public V2beta2Autoscaling.MetricTarget 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 V2beta2Autoscaling.MetricTarget 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<V2beta2Autoscaling.MetricTarget.Builder>
    • setField

      public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
    • clearField

      public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
    • clearOneof

      public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
    • setRepeatedField

      public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
    • addRepeatedField

      public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
    • mergeFrom

      public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
    • mergeFrom

      public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
      Throws:
      IOException
    • hasType

      public boolean hasType()
       type represents whether the metric type is Utilization, Value, or AverageValue
       
      optional string type = 1;
      Specified by:
      hasType in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • getType

      public String getType()
       type represents whether the metric type is Utilization, Value, or AverageValue
       
      optional string type = 1;
      Specified by:
      getType in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       type represents whether the metric type is Utilization, Value, or AverageValue
       
      optional string type = 1;
      Specified by:
      getTypeBytes in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • setType

       type represents whether the metric type is Utilization, Value, or AverageValue
       
      optional string type = 1;
    • clearType

       type represents whether the metric type is Utilization, Value, or AverageValue
       
      optional string type = 1;
    • setTypeBytes

      public V2beta2Autoscaling.MetricTarget.Builder setTypeBytes(com.google.protobuf.ByteString value)
       type represents whether the metric type is Utilization, Value, or AverageValue
       
      optional string type = 1;
    • hasValue

      public boolean hasValue()
       value is the target value of the metric (as a quantity).
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;
      Specified by:
      hasValue in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • getValue

      public Resource.Quantity getValue()
       value is the target value of the metric (as a quantity).
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;
      Specified by:
      getValue in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • setValue

       value is the target value of the metric (as a quantity).
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;
    • setValue

       value is the target value of the metric (as a quantity).
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;
    • mergeValue

       value is the target value of the metric (as a quantity).
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;
    • clearValue

       value is the target value of the metric (as a quantity).
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;
    • getValueBuilder

      public Resource.Quantity.Builder getValueBuilder()
       value is the target value of the metric (as a quantity).
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;
    • getValueOrBuilder

      public Resource.QuantityOrBuilder getValueOrBuilder()
       value is the target value of the metric (as a quantity).
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;
      Specified by:
      getValueOrBuilder in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • hasAverageValue

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

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

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

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

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

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

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

      public Resource.QuantityOrBuilder getAverageValueOrBuilder()
       averageValue is the target value of the average of the
       metric across all relevant pods (as a quantity)
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 3;
      Specified by:
      getAverageValueOrBuilder in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • hasAverageUtilization

      public boolean hasAverageUtilization()
       averageUtilization is the target value of the average of the
       resource metric across all relevant pods, represented as a percentage of
       the requested value of the resource for the pods.
       Currently only valid for Resource metric source type
       +optional
       
      optional int32 averageUtilization = 4;
      Specified by:
      hasAverageUtilization in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • getAverageUtilization

      public int getAverageUtilization()
       averageUtilization is the target value of the average of the
       resource metric across all relevant pods, represented as a percentage of
       the requested value of the resource for the pods.
       Currently only valid for Resource metric source type
       +optional
       
      optional int32 averageUtilization = 4;
      Specified by:
      getAverageUtilization in interface V2beta2Autoscaling.MetricTargetOrBuilder
    • setAverageUtilization

      public V2beta2Autoscaling.MetricTarget.Builder setAverageUtilization(int value)
       averageUtilization is the target value of the average of the
       resource metric across all relevant pods, represented as a percentage of
       the requested value of the resource for the pods.
       Currently only valid for Resource metric source type
       +optional
       
      optional int32 averageUtilization = 4;
    • clearAverageUtilization

      public V2beta2Autoscaling.MetricTarget.Builder clearAverageUtilization()
       averageUtilization is the target value of the average of the
       resource metric across all relevant pods, represented as a percentage of
       the requested value of the resource for the pods.
       Currently only valid for Resource metric source type
       +optional
       
      optional int32 averageUtilization = 4;
    • setUnknownFields

      public final V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
    • mergeUnknownFields

      public final V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>