Package io.kubernetes.client.proto
Class V1Autoscaling.MetricSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1Autoscaling.MetricSpec
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Autoscaling.MetricSpecOrBuilder,Serializable
- Enclosing class:
- V1Autoscaling
public static final class V1Autoscaling.MetricSpec
extends com.google.protobuf.GeneratedMessageV3
implements V1Autoscaling.MetricSpecOrBuilder
MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).Protobuf type
k8s.io.api.autoscaling.v1.MetricSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, 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<V1Autoscaling.MetricSpec>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 of 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 of the current scale target (e.g.static V1Autoscaling.MetricSpecstatic 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<V1Autoscaling.MetricSpec>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 of 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(V1Autoscaling.MetricSpec prototype) protected V1Autoscaling.MetricSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) static V1Autoscaling.MetricSpecparseDelimitedFrom(InputStream input) static V1Autoscaling.MetricSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1Autoscaling.MetricSpecparseFrom(byte[] data) static V1Autoscaling.MetricSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1Autoscaling.MetricSpecparseFrom(com.google.protobuf.ByteString data) static V1Autoscaling.MetricSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1Autoscaling.MetricSpecparseFrom(com.google.protobuf.CodedInputStream input) static V1Autoscaling.MetricSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1Autoscaling.MetricSpecparseFrom(InputStream input) static V1Autoscaling.MetricSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1Autoscaling.MetricSpecparseFrom(ByteBuffer data) static V1Autoscaling.MetricSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<V1Autoscaling.MetricSpec>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, 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 should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping 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 interfaceV1Autoscaling.MetricSpecOrBuilder
-
getType
type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping 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 interfaceV1Autoscaling.MetricSpecOrBuilder
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping 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 interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ObjectMetricSource object = 2;- Specified by:
hasObjectin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ObjectMetricSource object = 2;- Specified by:
getObjectin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ObjectMetricSource object = 2;- Specified by:
getObjectOrBuilderin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.PodsMetricSource pods = 3;- Specified by:
hasPodsin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.PodsMetricSource pods = 3;- Specified by:
getPodsin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.PodsMetricSource pods = 3;- Specified by:
getPodsOrBuilderin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ResourceMetricSource resource = 4;- Specified by:
hasResourcein interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ResourceMetricSource resource = 4;- Specified by:
getResourcein interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ResourceMetricSource resource = 4;- Specified by:
getResourceOrBuilderin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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 of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v1.ContainerResourceMetricSource containerResource = 7;- Specified by:
hasContainerResourcein interfaceV1Autoscaling.MetricSpecOrBuilder
-
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 of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v1.ContainerResourceMetricSource containerResource = 7;- Specified by:
getContainerResourcein interfaceV1Autoscaling.MetricSpecOrBuilder
-
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 of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. +optional
optional .k8s.io.api.autoscaling.v1.ContainerResourceMetricSource containerResource = 7;- Specified by:
getContainerResourceOrBuilderin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ExternalMetricSource external = 5;- Specified by:
hasExternalin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ExternalMetricSource external = 5;- Specified by:
getExternalin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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.v1.ExternalMetricSource external = 5;- Specified by:
getExternalOrBuilderin interfaceV1Autoscaling.MetricSpecOrBuilder
-
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 V1Autoscaling.MetricSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Autoscaling.MetricSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Autoscaling.MetricSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Autoscaling.MetricSpec 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.MetricSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Autoscaling.MetricSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static V1Autoscaling.MetricSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static V1Autoscaling.MetricSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static V1Autoscaling.MetricSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static V1Autoscaling.MetricSpec 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
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected V1Autoscaling.MetricSpec.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
-