Class Generated.ResourceQuotaSpec.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.ResourceQuotaSpec.Builder>
      • internalGetMutableMapFieldReflection

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

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

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

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

        public Generated.ResourceQuotaSpec 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.ResourceQuotaSpec.Builder>
      • mergeFrom

        public Generated.ResourceQuotaSpec.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.ResourceQuotaSpec.Builder>
        Throws:
        IOException
      • 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
      • removeHard

        public Generated.ResourceQuotaSpec.Builder removeHard​(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;
      • putHard

        public Generated.ResourceQuotaSpec.Builder putHard​(String key,
                                                           Generated.Quantity value)
         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;
      • putAllHard

        public Generated.ResourceQuotaSpec.Builder putAllHard​(Map<String,​Generated.Quantity> values)
         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;
      • putHardBuilderIfAbsent

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

        public Generated.ResourceQuotaSpec.Builder setScopes​(int index,
                                                             String value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The scopes to set.
        Returns:
        This builder for chaining.
      • addScopes

        public Generated.ResourceQuotaSpec.Builder addScopes​(String value)
         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;
        Parameters:
        value - The scopes to add.
        Returns:
        This builder for chaining.
      • addAllScopes

        public Generated.ResourceQuotaSpec.Builder addAllScopes​(Iterable<String> values)
         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;
        Parameters:
        values - The scopes to add.
        Returns:
        This builder for chaining.
      • clearScopes

        public Generated.ResourceQuotaSpec.Builder clearScopes()
         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;
        Returns:
        This builder for chaining.
      • addScopesBytes

        public Generated.ResourceQuotaSpec.Builder addScopesBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the scopes to add.
        Returns:
        This builder for chaining.
      • 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.
      • setScopeSelector

        public Generated.ResourceQuotaSpec.Builder setScopeSelector​(Generated.ScopeSelector value)
         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;
      • setScopeSelector

        public Generated.ResourceQuotaSpec.Builder setScopeSelector​(Generated.ScopeSelector.Builder builderForValue)
         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;
      • mergeScopeSelector

        public Generated.ResourceQuotaSpec.Builder mergeScopeSelector​(Generated.ScopeSelector value)
         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;
      • clearScopeSelector

        public Generated.ResourceQuotaSpec.Builder clearScopeSelector()
         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;
      • getScopeSelectorBuilder

        public Generated.ScopeSelector.Builder getScopeSelectorBuilder()
         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;
      • 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
      • mergeUnknownFields

        public final Generated.ResourceQuotaSpec.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceQuotaSpec.Builder>