Class V1Autoscaling.ResourceMetricStatus

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

public static final class V1Autoscaling.ResourceMetricStatus extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Autoscaling.ResourceMetricStatus parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Autoscaling.ResourceMetricStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Autoscaling.ResourceMetricStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1Autoscaling.ResourceMetricStatus.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1Autoscaling.ResourceMetricStatus.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1Autoscaling.ResourceMetricStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1Autoscaling.ResourceMetricStatus getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1Autoscaling.ResourceMetricStatus> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1Autoscaling.ResourceMetricStatus> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public V1Autoscaling.ResourceMetricStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder