Class Generated.ResourceQuotaSpec

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.ResourceQuotaSpecOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.ResourceQuotaSpec
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.ResourceQuotaSpecOrBuilder
     ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
     
    Protobuf type k8s.io.api.core.v1.ResourceQuotaSpec
    See Also:
    Serialized Form
    • 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
      • containsHard

        public boolean containsHard​(String key)
         hard is the set of desired hard limits for each named resource.
         More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1;
        Specified by:
        containsHard in interface Generated.ResourceQuotaSpecOrBuilder
      • getHardOrThrow

        public Generated.Quantity getHardOrThrow​(String key)
         hard is the set of desired hard limits for each named resource.
         More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1;
        Specified by:
        getHardOrThrow in interface Generated.ResourceQuotaSpecOrBuilder
      • getScopesList

        public com.google.protobuf.ProtocolStringList getScopesList()
         A collection of filters that must match each object tracked by a quota.
         If not specified, the quota matches all objects.
         +optional
         +listType=atomic
         
        repeated string scopes = 2;
        Specified by:
        getScopesList in interface Generated.ResourceQuotaSpecOrBuilder
        Returns:
        A list containing the scopes.
      • getScopesCount

        public int getScopesCount()
         A collection of filters that must match each object tracked by a quota.
         If not specified, the quota matches all objects.
         +optional
         +listType=atomic
         
        repeated string scopes = 2;
        Specified by:
        getScopesCount in interface Generated.ResourceQuotaSpecOrBuilder
        Returns:
        The count of scopes.
      • getScopes

        public String getScopes​(int index)
         A collection of filters that must match each object tracked by a quota.
         If not specified, the quota matches all objects.
         +optional
         +listType=atomic
         
        repeated string scopes = 2;
        Specified by:
        getScopes in interface Generated.ResourceQuotaSpecOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The scopes at the given index.
      • getScopesBytes

        public com.google.protobuf.ByteString getScopesBytes​(int index)
         A collection of filters that must match each object tracked by a quota.
         If not specified, the quota matches all objects.
         +optional
         +listType=atomic
         
        repeated string scopes = 2;
        Specified by:
        getScopesBytes in interface Generated.ResourceQuotaSpecOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the scopes at the given index.
      • hasScopeSelector

        public boolean hasScopeSelector()
         scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
         but expressed using ScopeSelectorOperator in combination with possible values.
         For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
         +optional
         
        optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3;
        Specified by:
        hasScopeSelector in interface Generated.ResourceQuotaSpecOrBuilder
        Returns:
        Whether the scopeSelector field is set.
      • getScopeSelector

        public Generated.ScopeSelector getScopeSelector()
         scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
         but expressed using ScopeSelectorOperator in combination with possible values.
         For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
         +optional
         
        optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3;
        Specified by:
        getScopeSelector in interface Generated.ResourceQuotaSpecOrBuilder
        Returns:
        The scopeSelector.
      • getScopeSelectorOrBuilder

        public Generated.ScopeSelectorOrBuilder getScopeSelectorOrBuilder()
         scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
         but expressed using ScopeSelectorOperator in combination with possible values.
         For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
         +optional
         
        optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3;
        Specified by:
        getScopeSelectorOrBuilder in interface Generated.ResourceQuotaSpecOrBuilder
      • 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.ResourceQuotaSpec parseFrom​(ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ResourceQuotaSpec parseFrom​(ByteBuffer data,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ResourceQuotaSpec parseFrom​(com.google.protobuf.ByteString data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ResourceQuotaSpec 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.ResourceQuotaSpec parseFrom​(byte[] data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ResourceQuotaSpec parseFrom​(byte[] data,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

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

        public com.google.protobuf.Parser<Generated.ResourceQuotaSpec> 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.ResourceQuotaSpec getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder