Class V2beta2Autoscaling.MetricStatus

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

public static final class V2beta2Autoscaling.MetricStatus extends com.google.protobuf.GeneratedMessageV3 implements V2beta2Autoscaling.MetricStatusOrBuilder
 MetricStatus describes the last-read state of a single metric.
 
Protobuf type k8s.io.api.autoscaling.v2beta2.MetricStatus
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
    • hasType

      public boolean hasType()
       type is the type of metric source.  It will be one of "ContainerResource", "External",
       "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
       Note: "ContainerResource" type is available on when the feature-gate
       HPAContainerMetrics is enabled
       
      optional string type = 1;
      Specified by:
      hasType in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getType

      public String getType()
       type is the type of metric source.  It will be one of "ContainerResource", "External",
       "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
       Note: "ContainerResource" type is available on when the feature-gate
       HPAContainerMetrics is enabled
       
      optional string type = 1;
      Specified by:
      getType in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       type is the type of metric source.  It will be one of "ContainerResource", "External",
       "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
       Note: "ContainerResource" type is available on when the feature-gate
       HPAContainerMetrics is enabled
       
      optional string type = 1;
      Specified by:
      getTypeBytes in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • hasObject

      public boolean hasObject()
       object refers to a metric describing a single kubernetes object
       (for example, hits-per-second on an Ingress object).
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricStatus object = 2;
      Specified by:
      hasObject in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getObject

       object refers to a metric describing a single kubernetes object
       (for example, hits-per-second on an Ingress object).
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricStatus object = 2;
      Specified by:
      getObject in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getObjectOrBuilder

       object refers to a metric describing a single kubernetes object
       (for example, hits-per-second on an Ingress object).
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ObjectMetricStatus object = 2;
      Specified by:
      getObjectOrBuilder in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • hasPods

      public boolean hasPods()
       pods refers to 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.PodsMetricStatus pods = 3;
      Specified by:
      hasPods in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getPods

       pods refers to 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.PodsMetricStatus pods = 3;
      Specified by:
      getPods in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getPodsOrBuilder

       pods refers to 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.PodsMetricStatus pods = 3;
      Specified by:
      getPodsOrBuilder in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • hasResource

      public boolean hasResource()
       resource refers to a resource metric (such as those specified in
       requests and limits) known to Kubernetes 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricStatus resource = 4;
      Specified by:
      hasResource in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getResource

       resource refers to a resource metric (such as those specified in
       requests and limits) known to Kubernetes 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricStatus resource = 4;
      Specified by:
      getResource in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getResourceOrBuilder

      public V2beta2Autoscaling.ResourceMetricStatusOrBuilder getResourceOrBuilder()
       resource refers to a resource metric (such as those specified in
       requests and limits) known to Kubernetes 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ResourceMetricStatus resource = 4;
      Specified by:
      getResourceOrBuilder in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • hasContainerResource

      public boolean hasContainerResource()
       container resource refers to a resource metric (such as those specified in
       requests and limits) known to Kubernetes describing a single container in 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricStatus containerResource = 7;
      Specified by:
      hasContainerResource in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getContainerResource

      public V2beta2Autoscaling.ContainerResourceMetricStatus getContainerResource()
       container resource refers to a resource metric (such as those specified in
       requests and limits) known to Kubernetes describing a single container in 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricStatus containerResource = 7;
      Specified by:
      getContainerResource in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getContainerResourceOrBuilder

      public V2beta2Autoscaling.ContainerResourceMetricStatusOrBuilder getContainerResourceOrBuilder()
       container resource refers to a resource metric (such as those specified in
       requests and limits) known to Kubernetes describing a single container in 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.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricStatus containerResource = 7;
      Specified by:
      getContainerResourceOrBuilder in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • hasExternal

      public boolean hasExternal()
       external refers to a global metric that is not associated
       with any Kubernetes object. It allows autoscaling based on information
       coming from components running outside of cluster
       (for example length of queue in cloud messaging service, or
       QPS from loadbalancer running outside of cluster).
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricStatus external = 5;
      Specified by:
      hasExternal in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getExternal

       external refers to a global metric that is not associated
       with any Kubernetes object. It allows autoscaling based on information
       coming from components running outside of cluster
       (for example length of queue in cloud messaging service, or
       QPS from loadbalancer running outside of cluster).
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricStatus external = 5;
      Specified by:
      getExternal in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • getExternalOrBuilder

      public V2beta2Autoscaling.ExternalMetricStatusOrBuilder getExternalOrBuilder()
       external refers to a global metric that is not associated
       with any Kubernetes object. It allows autoscaling based on information
       coming from components running outside of cluster
       (for example length of queue in cloud messaging service, or
       QPS from loadbalancer running outside of cluster).
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.ExternalMetricStatus external = 5;
      Specified by:
      getExternalOrBuilder in interface V2beta2Autoscaling.MetricStatusOrBuilder
    • 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 V2beta2Autoscaling.MetricStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static V2beta2Autoscaling.MetricStatus parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static V2beta2Autoscaling.MetricStatus parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static V2beta2Autoscaling.MetricStatus.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static V2beta2Autoscaling.MetricStatus getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V2beta2Autoscaling.MetricStatus> parser()
    • getParserForType

      public com.google.protobuf.Parser<V2beta2Autoscaling.MetricStatus> 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 V2beta2Autoscaling.MetricStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder