Class V1Autoscaling.ResourceMetricStatus.Builder

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

public static final class V1Autoscaling.ResourceMetricStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ResourceMetricStatus.Builder> implements V1Autoscaling.ResourceMetricStatusOrBuilder
 ResourceMetricStatus indicates the current value of a resource metric known to
 Kubernetes, as specified in requests and limits, 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.
 
Protobuf type k8s.io.api.autoscaling.v1.ResourceMetricStatus
  • 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.ResourceMetricStatus.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.ResourceMetricStatus.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.ResourceMetricStatus.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public boolean hasName()
       name is the name of the resource in question.
       
      optional string name = 1;
      Specified by:
      hasName in interface V1Autoscaling.ResourceMetricStatusOrBuilder
    • getName

      public String getName()
       name is the name of the resource in question.
       
      optional string name = 1;
      Specified by:
      getName in interface V1Autoscaling.ResourceMetricStatusOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name is the name of the resource in question.
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface V1Autoscaling.ResourceMetricStatusOrBuilder
    • setName

       name is the name of the resource in question.
       
      optional string name = 1;
    • clearName

       name is the name of the resource in question.
       
      optional string name = 1;
    • setNameBytes

      public V1Autoscaling.ResourceMetricStatus.Builder setNameBytes(com.google.protobuf.ByteString value)
       name is the name of the resource in question.
       
      optional string name = 1;
    • hasCurrentAverageUtilization

      public boolean hasCurrentAverageUtilization()
       currentAverageUtilization is the current 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.  It will only be
       present if `targetAverageValue` was set in the corresponding metric
       specification.
       +optional
       
      optional int32 currentAverageUtilization = 2;
      Specified by:
      hasCurrentAverageUtilization in interface V1Autoscaling.ResourceMetricStatusOrBuilder
    • getCurrentAverageUtilization

      public int getCurrentAverageUtilization()
       currentAverageUtilization is the current 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.  It will only be
       present if `targetAverageValue` was set in the corresponding metric
       specification.
       +optional
       
      optional int32 currentAverageUtilization = 2;
      Specified by:
      getCurrentAverageUtilization in interface V1Autoscaling.ResourceMetricStatusOrBuilder
    • setCurrentAverageUtilization

      public V1Autoscaling.ResourceMetricStatus.Builder setCurrentAverageUtilization(int value)
       currentAverageUtilization is the current 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.  It will only be
       present if `targetAverageValue` was set in the corresponding metric
       specification.
       +optional
       
      optional int32 currentAverageUtilization = 2;
    • clearCurrentAverageUtilization

      public V1Autoscaling.ResourceMetricStatus.Builder clearCurrentAverageUtilization()
       currentAverageUtilization is the current 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.  It will only be
       present if `targetAverageValue` was set in the corresponding metric
       specification.
       +optional
       
      optional int32 currentAverageUtilization = 2;
    • hasCurrentAverageValue

      public boolean hasCurrentAverageValue()
       currentAverageValue is the current value of the average of the
       resource metric across all relevant pods, as a raw value (instead of as
       a percentage of the request), similar to the "pods" metric source type.
       It will always be set, regardless of the corresponding metric specification.
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
      Specified by:
      hasCurrentAverageValue in interface V1Autoscaling.ResourceMetricStatusOrBuilder
    • getCurrentAverageValue

      public Resource.Quantity getCurrentAverageValue()
       currentAverageValue is the current value of the average of the
       resource metric across all relevant pods, as a raw value (instead of as
       a percentage of the request), similar to the "pods" metric source type.
       It will always be set, regardless of the corresponding metric specification.
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
      Specified by:
      getCurrentAverageValue in interface V1Autoscaling.ResourceMetricStatusOrBuilder
    • setCurrentAverageValue

      public V1Autoscaling.ResourceMetricStatus.Builder setCurrentAverageValue(Resource.Quantity value)
       currentAverageValue is the current value of the average of the
       resource metric across all relevant pods, as a raw value (instead of as
       a percentage of the request), similar to the "pods" metric source type.
       It will always be set, regardless of the corresponding metric specification.
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
    • setCurrentAverageValue

      public V1Autoscaling.ResourceMetricStatus.Builder setCurrentAverageValue(Resource.Quantity.Builder builderForValue)
       currentAverageValue is the current value of the average of the
       resource metric across all relevant pods, as a raw value (instead of as
       a percentage of the request), similar to the "pods" metric source type.
       It will always be set, regardless of the corresponding metric specification.
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
    • mergeCurrentAverageValue

      public V1Autoscaling.ResourceMetricStatus.Builder mergeCurrentAverageValue(Resource.Quantity value)
       currentAverageValue is the current value of the average of the
       resource metric across all relevant pods, as a raw value (instead of as
       a percentage of the request), similar to the "pods" metric source type.
       It will always be set, regardless of the corresponding metric specification.
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
    • clearCurrentAverageValue

      public V1Autoscaling.ResourceMetricStatus.Builder clearCurrentAverageValue()
       currentAverageValue is the current value of the average of the
       resource metric across all relevant pods, as a raw value (instead of as
       a percentage of the request), similar to the "pods" metric source type.
       It will always be set, regardless of the corresponding metric specification.
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
    • getCurrentAverageValueBuilder

      public Resource.Quantity.Builder getCurrentAverageValueBuilder()
       currentAverageValue is the current value of the average of the
       resource metric across all relevant pods, as a raw value (instead of as
       a percentage of the request), similar to the "pods" metric source type.
       It will always be set, regardless of the corresponding metric specification.
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
    • getCurrentAverageValueOrBuilder

      public Resource.QuantityOrBuilder getCurrentAverageValueOrBuilder()
       currentAverageValue is the current value of the average of the
       resource metric across all relevant pods, as a raw value (instead of as
       a percentage of the request), similar to the "pods" metric source type.
       It will always be set, regardless of the corresponding metric specification.
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
      Specified by:
      getCurrentAverageValueOrBuilder in interface V1Autoscaling.ResourceMetricStatusOrBuilder
    • setUnknownFields

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

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