Class Generated.ResourceRequirements.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceRequirements.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceRequirements.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceRequirements.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceRequirements.Builder>
      • getDefaultInstanceForType

        public Generated.ResourceRequirements getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Generated.ResourceRequirements build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.ResourceRequirements buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceRequirements.Builder>
      • 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:
        containsLimits in interface Generated.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:
        getLimitsMap in interface Generated.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:
        getLimitsOrThrow in interface Generated.ResourceRequirementsOrBuilder
      • removeLimits

        public Generated.ResourceRequirements.Builder removeLimits​(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;
      • putLimits

        public Generated.ResourceRequirements.Builder putLimits​(String key,
                                                                Generated.Quantity value)
         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;
      • putAllLimits

        public Generated.ResourceRequirements.Builder putAllLimits​(Map<String,​Generated.Quantity> values)
         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;
      • putLimitsBuilderIfAbsent

        public Generated.Quantity.Builder putLimitsBuilderIfAbsent​(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;
      • getRequestsCount

        public int getRequestsCount()
        Description copied from interface: Generated.ResourceRequirementsOrBuilder
         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:
        getRequestsCount in interface Generated.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:
        containsRequests in interface Generated.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:
        getRequestsMap in interface Generated.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:
        getRequestsOrDefault in interface Generated.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:
        getRequestsOrThrow in interface Generated.ResourceRequirementsOrBuilder
      • removeRequests

        public Generated.ResourceRequirements.Builder removeRequests​(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;
      • putRequests

        public Generated.ResourceRequirements.Builder putRequests​(String key,
                                                                  Generated.Quantity value)
         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;
      • putAllRequests

        public Generated.ResourceRequirements.Builder putAllRequests​(Map<String,​Generated.Quantity> values)
         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;
      • putRequestsBuilderIfAbsent

        public Generated.Quantity.Builder putRequestsBuilderIfAbsent​(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;
      • 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:
        getClaimsList in interface Generated.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:
        getClaimsCount in interface Generated.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:
        getClaims in interface Generated.ResourceRequirementsOrBuilder
      • setClaims

        public Generated.ResourceRequirements.Builder setClaims​(int index,
                                                                Generated.ResourceClaim value)
         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;
      • setClaims

        public Generated.ResourceRequirements.Builder setClaims​(int index,
                                                                Generated.ResourceClaim.Builder builderForValue)
         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;
      • addClaims

        public Generated.ResourceRequirements.Builder addClaims​(Generated.ResourceClaim value)
         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;
      • addClaims

        public Generated.ResourceRequirements.Builder addClaims​(int index,
                                                                Generated.ResourceClaim value)
         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;
      • addClaims

        public Generated.ResourceRequirements.Builder addClaims​(Generated.ResourceClaim.Builder builderForValue)
         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;
      • addClaims

        public Generated.ResourceRequirements.Builder addClaims​(int index,
                                                                Generated.ResourceClaim.Builder builderForValue)
         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;
      • addAllClaims

        public Generated.ResourceRequirements.Builder addAllClaims​(Iterable<? extends Generated.ResourceClaim> values)
         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;
      • clearClaims

        public Generated.ResourceRequirements.Builder clearClaims()
         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;
      • removeClaims

        public Generated.ResourceRequirements.Builder removeClaims​(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;
      • getClaimsBuilder

        public Generated.ResourceClaim.Builder getClaimsBuilder​(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;
      • 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:
        getClaimsOrBuilder in interface Generated.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:
        getClaimsOrBuilderList in interface Generated.ResourceRequirementsOrBuilder
      • addClaimsBuilder

        public Generated.ResourceClaim.Builder addClaimsBuilder()
         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;
      • addClaimsBuilder

        public Generated.ResourceClaim.Builder addClaimsBuilder​(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;
      • getClaimsBuilderList

        public List<Generated.ResourceClaim.Builder> getClaimsBuilderList()
         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;