Package io.kubernetes.client.proto
Class V2beta1Autoscaling.MetricStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V2beta1Autoscaling.MetricStatus
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V2beta1Autoscaling.MetricStatusOrBuilder,Serializable
- Enclosing class:
- V2beta1Autoscaling
public static final class V2beta1Autoscaling.MetricStatus
extends com.google.protobuf.GeneratedMessageV3
implements V2beta1Autoscaling.MetricStatusOrBuilder
MetricStatus describes the last-read state of a single metric.Protobuf type
k8s.io.api.autoscaling.v2beta1.MetricStatus- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetricStatus describes the last-read state of a single metric.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final com.google.protobuf.Parser<V2beta1Autoscaling.MetricStatus>Deprecated.static final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainer 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.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.static final com.google.protobuf.Descriptors.Descriptorexternal refers to a global metric that is not associated with any Kubernetes object.external refers to a global metric that is not associated with any Kubernetes object.object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).com.google.protobuf.Parser<V2beta1Autoscaling.MetricStatus>getPods()pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).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.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.intgetType()type is the type of metric source.com.google.protobuf.ByteStringtype is the type of metric source.final com.google.protobuf.UnknownFieldSetbooleancontainer 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.booleanexternal refers to a global metric that is not associated with any Kubernetes object.inthashCode()booleanobject refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).booleanhasPods()pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).booleanresource 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.booleanhasType()type is the type of metric source.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(V2beta1Autoscaling.MetricStatus prototype) protected V2beta1Autoscaling.MetricStatus.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<V2beta1Autoscaling.MetricStatus>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
OBJECT_FIELD_NUMBER
public static final int OBJECT_FIELD_NUMBER- See Also:
-
PODS_FIELD_NUMBER
public static final int PODS_FIELD_NUMBER- See Also:
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER- See Also:
-
CONTAINERRESOURCE_FIELD_NUMBER
public static final int CONTAINERRESOURCE_FIELD_NUMBER- See Also:
-
EXTERNAL_FIELD_NUMBER
public static final int EXTERNAL_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.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:
hasTypein interfaceV2beta1Autoscaling.MetricStatusOrBuilder
-
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:
getTypein interfaceV2beta1Autoscaling.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:
getTypeBytesin interfaceV2beta1Autoscaling.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.v2beta1.ObjectMetricStatus object = 2;- Specified by:
hasObjectin interfaceV2beta1Autoscaling.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.v2beta1.ObjectMetricStatus object = 2;- Specified by:
getObjectin interfaceV2beta1Autoscaling.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.v2beta1.ObjectMetricStatus object = 2;- Specified by:
getObjectOrBuilderin interfaceV2beta1Autoscaling.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.v2beta1.PodsMetricStatus pods = 3;- Specified by:
hasPodsin interfaceV2beta1Autoscaling.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.v2beta1.PodsMetricStatus pods = 3;- Specified by:
getPodsin interfaceV2beta1Autoscaling.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.v2beta1.PodsMetricStatus pods = 3;- Specified by:
getPodsOrBuilderin interfaceV2beta1Autoscaling.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.v2beta1.ResourceMetricStatus resource = 4;- Specified by:
hasResourcein interfaceV2beta1Autoscaling.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.v2beta1.ResourceMetricStatus resource = 4;- Specified by:
getResourcein interfaceV2beta1Autoscaling.MetricStatusOrBuilder
-
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.v2beta1.ResourceMetricStatus resource = 4;- Specified by:
getResourceOrBuilderin interfaceV2beta1Autoscaling.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.v2beta1.ContainerResourceMetricStatus containerResource = 7;- Specified by:
hasContainerResourcein interfaceV2beta1Autoscaling.MetricStatusOrBuilder
-
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.v2beta1.ContainerResourceMetricStatus containerResource = 7;- Specified by:
getContainerResourcein interfaceV2beta1Autoscaling.MetricStatusOrBuilder
-
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.v2beta1.ContainerResourceMetricStatus containerResource = 7;- Specified by:
getContainerResourceOrBuilderin interfaceV2beta1Autoscaling.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.v2beta1.ExternalMetricStatus external = 5;- Specified by:
hasExternalin interfaceV2beta1Autoscaling.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.v2beta1.ExternalMetricStatus external = 5;- Specified by:
getExternalin interfaceV2beta1Autoscaling.MetricStatusOrBuilder
-
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.v2beta1.ExternalMetricStatus external = 5;- Specified by:
getExternalOrBuilderin interfaceV2beta1Autoscaling.MetricStatusOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static V2beta1Autoscaling.MetricStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V2beta1Autoscaling.MetricStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V2beta1Autoscaling.MetricStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V2beta1Autoscaling.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 V2beta1Autoscaling.MetricStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V2beta1Autoscaling.MetricStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static V2beta1Autoscaling.MetricStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static V2beta1Autoscaling.MetricStatus parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static V2beta1Autoscaling.MetricStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static V2beta1Autoscaling.MetricStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static V2beta1Autoscaling.MetricStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static V2beta1Autoscaling.MetricStatus.Builder newBuilder(V2beta1Autoscaling.MetricStatus prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected V2beta1Autoscaling.MetricStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-