Package k8s.io.api.core.v1
Class Generated.ResourceRequirements
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.ResourceRequirements
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.ResourceRequirementsOrBuilder
- Enclosing class:
- Generated
public static final class Generated.ResourceRequirements extends com.google.protobuf.GeneratedMessageV3 implements Generated.ResourceRequirementsOrBuilder
ResourceRequirements describes the compute resource requirements.
Protobuf typek8s.io.api.core.v1.ResourceRequirements- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.ResourceRequirements.BuilderResourceRequirements describes the compute resource requirements.-
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCLAIMS_FIELD_NUMBERstatic intLIMITS_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.ResourceRequirements>PARSERDeprecated.static intREQUESTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLimits(String key)Limits describes the maximum amount of compute resources allowed.booleancontainsRequests(String key)Requests describes the minimum amount of compute resources required.booleanequals(Object obj)Generated.ResourceClaimgetClaims(int index)Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.intgetClaimsCount()Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.List<Generated.ResourceClaim>getClaimsList()Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.Generated.ResourceClaimOrBuildergetClaimsOrBuilder(int index)Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.List<? extends Generated.ResourceClaimOrBuilder>getClaimsOrBuilderList()Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.static Generated.ResourceRequirementsgetDefaultInstance()Generated.ResourceRequirementsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Map<String,Generated.Quantity>getLimits()Deprecated.intgetLimitsCount()Limits describes the maximum amount of compute resources allowed.Map<String,Generated.Quantity>getLimitsMap()Limits describes the maximum amount of compute resources allowed.Generated.QuantitygetLimitsOrDefault(String key, Generated.Quantity defaultValue)Limits describes the maximum amount of compute resources allowed.Generated.QuantitygetLimitsOrThrow(String key)Limits describes the maximum amount of compute resources allowed.com.google.protobuf.Parser<Generated.ResourceRequirements>getParserForType()Map<String,Generated.Quantity>getRequests()Deprecated.intgetRequestsCount()Requests describes the minimum amount of compute resources required.Map<String,Generated.Quantity>getRequestsMap()Requests describes the minimum amount of compute resources required.Generated.QuantitygetRequestsOrDefault(String key, Generated.Quantity defaultValue)Requests describes the minimum amount of compute resources required.Generated.QuantitygetRequestsOrThrow(String key)Requests describes the minimum amount of compute resources required.intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Generated.ResourceRequirements.BuildernewBuilder()static Generated.ResourceRequirements.BuildernewBuilder(Generated.ResourceRequirements prototype)Generated.ResourceRequirements.BuildernewBuilderForType()protected Generated.ResourceRequirements.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.ResourceRequirementsparseDelimitedFrom(InputStream input)static Generated.ResourceRequirementsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceRequirementsparseFrom(byte[] data)static Generated.ResourceRequirementsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceRequirementsparseFrom(com.google.protobuf.ByteString data)static Generated.ResourceRequirementsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceRequirementsparseFrom(com.google.protobuf.CodedInputStream input)static Generated.ResourceRequirementsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceRequirementsparseFrom(InputStream input)static Generated.ResourceRequirementsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceRequirementsparseFrom(ByteBuffer data)static Generated.ResourceRequirementsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.ResourceRequirements>parser()Generated.ResourceRequirements.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LIMITS_FIELD_NUMBER
public static final int LIMITS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTS_FIELD_NUMBER
public static final int REQUESTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLAIMS_FIELD_NUMBER
public static final int CLAIMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.ResourceRequirements> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getLimitsCount
public int getLimitsCount()
Description copied from interface:Generated.ResourceRequirementsOrBuilderLimits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1;- Specified by:
getLimitsCountin interfaceGenerated.ResourceRequirementsOrBuilder
-
containsLimits
public boolean containsLimits(String key)
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1;- Specified by:
containsLimitsin interfaceGenerated.ResourceRequirementsOrBuilder
-
getLimits
@Deprecated public Map<String,Generated.Quantity> getLimits()
Deprecated.UsegetLimitsMap()instead.- Specified by:
getLimitsin interfaceGenerated.ResourceRequirementsOrBuilder
-
getLimitsMap
public Map<String,Generated.Quantity> getLimitsMap()
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1;- Specified by:
getLimitsMapin interfaceGenerated.ResourceRequirementsOrBuilder
-
getLimitsOrDefault
public Generated.Quantity getLimitsOrDefault(String key, Generated.Quantity defaultValue)
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1;- Specified by:
getLimitsOrDefaultin interfaceGenerated.ResourceRequirementsOrBuilder
-
getLimitsOrThrow
public Generated.Quantity getLimitsOrThrow(String key)
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1;- Specified by:
getLimitsOrThrowin interfaceGenerated.ResourceRequirementsOrBuilder
-
getRequestsCount
public int getRequestsCount()
Description copied from interface:Generated.ResourceRequirementsOrBuilderRequests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;- Specified by:
getRequestsCountin interfaceGenerated.ResourceRequirementsOrBuilder
-
containsRequests
public boolean containsRequests(String key)
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;- Specified by:
containsRequestsin interfaceGenerated.ResourceRequirementsOrBuilder
-
getRequests
@Deprecated public Map<String,Generated.Quantity> getRequests()
Deprecated.UsegetRequestsMap()instead.- Specified by:
getRequestsin interfaceGenerated.ResourceRequirementsOrBuilder
-
getRequestsMap
public Map<String,Generated.Quantity> getRequestsMap()
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;- Specified by:
getRequestsMapin interfaceGenerated.ResourceRequirementsOrBuilder
-
getRequestsOrDefault
public Generated.Quantity getRequestsOrDefault(String key, Generated.Quantity defaultValue)
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;- Specified by:
getRequestsOrDefaultin interfaceGenerated.ResourceRequirementsOrBuilder
-
getRequestsOrThrow
public Generated.Quantity getRequestsOrThrow(String key)
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;- Specified by:
getRequestsOrThrowin interfaceGenerated.ResourceRequirementsOrBuilder
-
getClaimsList
public List<Generated.ResourceClaim> getClaimsList()
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional
repeated .k8s.io.api.core.v1.ResourceClaim claims = 3;- Specified by:
getClaimsListin interfaceGenerated.ResourceRequirementsOrBuilder
-
getClaimsOrBuilderList
public List<? extends Generated.ResourceClaimOrBuilder> getClaimsOrBuilderList()
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional
repeated .k8s.io.api.core.v1.ResourceClaim claims = 3;- Specified by:
getClaimsOrBuilderListin interfaceGenerated.ResourceRequirementsOrBuilder
-
getClaimsCount
public int getClaimsCount()
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional
repeated .k8s.io.api.core.v1.ResourceClaim claims = 3;- Specified by:
getClaimsCountin interfaceGenerated.ResourceRequirementsOrBuilder
-
getClaims
public Generated.ResourceClaim getClaims(int index)
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional
repeated .k8s.io.api.core.v1.ResourceClaim claims = 3;- Specified by:
getClaimsin interfaceGenerated.ResourceRequirementsOrBuilder
-
getClaimsOrBuilder
public Generated.ResourceClaimOrBuilder getClaimsOrBuilder(int index)
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional
repeated .k8s.io.api.core.v1.ResourceClaim claims = 3;- Specified by:
getClaimsOrBuilderin interfaceGenerated.ResourceRequirementsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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 Generated.ResourceRequirements parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ResourceRequirements parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ResourceRequirements parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ResourceRequirements parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.ResourceRequirements.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.ResourceRequirements.Builder newBuilder()
-
newBuilder
public static Generated.ResourceRequirements.Builder newBuilder(Generated.ResourceRequirements prototype)
-
toBuilder
public Generated.ResourceRequirements.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.ResourceRequirements.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.ResourceRequirements getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.ResourceRequirements> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.ResourceRequirements> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.ResourceRequirements getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-