Class Generated.ResourceRequirements

    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • newBuilderForType

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

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

        protected Generated.ResourceRequirements.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.ResourceRequirements> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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