Package io.kubernetes.client.proto
Interface V1.ResourceRequirementsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
V1.ResourceRequirements
,V1.ResourceRequirements.Builder
- Enclosing class:
- V1
public static interface V1.ResourceRequirementsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsLimits
(String key) Limits describes the maximum amount of compute resources allowed.boolean
containsRequests
(String key) Requests describes the minimum amount of compute resources required.Deprecated.int
Limits describes the maximum amount of compute resources allowed.Limits describes the maximum amount of compute resources allowed.getLimitsOrDefault
(String key, Resource.Quantity defaultValue) Limits describes the maximum amount of compute resources allowed.getLimitsOrThrow
(String key) Limits describes the maximum amount of compute resources allowed.Deprecated.int
Requests describes the minimum amount of compute resources required.Requests describes the minimum amount of compute resources required.getRequestsOrDefault
(String key, Resource.Quantity defaultValue) Requests describes the minimum amount of compute resources required.getRequestsOrThrow
(String key) Requests describes the minimum amount of compute resources required.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getLimitsCount
int getLimitsCount()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;
-
containsLimits
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;
-
getLimits
Deprecated.UsegetLimitsMap()
instead. -
getLimitsMap
Map<String,Resource.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;
-
getLimitsOrDefault
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;
-
getLimitsOrThrow
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;
-
getRequestsCount
int getRequestsCount()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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;
-
containsRequests
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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;
-
getRequests
Deprecated.UsegetRequestsMap()
instead. -
getRequestsMap
Map<String,Resource.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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;
-
getRequestsOrDefault
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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;
-
getRequestsOrThrow
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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;
-