Class V1.ResourceQuotaSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
io.kubernetes.client.proto.V1.ResourceQuotaSpec.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.ResourceQuotaSpecOrBuilder, Cloneable
Enclosing class:
V1.ResourceQuotaSpec

public static final class V1.ResourceQuotaSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder> implements V1.ResourceQuotaSpecOrBuilder
 ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
 
Protobuf type k8s.io.api.core.v1.ResourceQuotaSpec
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.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<V1.ResourceQuotaSpec.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • setField

      public V1.ResourceQuotaSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • clearField

      public V1.ResourceQuotaSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • clearOneof

      public V1.ResourceQuotaSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • setRepeatedField

      public V1.ResourceQuotaSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • addRepeatedField

      public V1.ResourceQuotaSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • mergeFrom

      public V1.ResourceQuotaSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ResourceQuotaSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
    • mergeFrom

      public V1.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<V1.ResourceQuotaSpec.Builder>
      Throws:
      IOException
    • getHardCount

      public int getHardCount()
      Description copied from interface: V1.ResourceQuotaSpecOrBuilder
       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:
      getHardCount in interface V1.ResourceQuotaSpecOrBuilder
    • 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 V1.ResourceQuotaSpecOrBuilder
    • getHard

      Deprecated.
      Use getHardMap() instead.
      Specified by:
      getHard in interface V1.ResourceQuotaSpecOrBuilder
    • getHardMap

      public Map<String,Resource.Quantity> getHardMap()
       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:
      getHardMap in interface V1.ResourceQuotaSpecOrBuilder
    • getHardOrDefault

      public Resource.Quantity getHardOrDefault(String key, Resource.Quantity defaultValue)
       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:
      getHardOrDefault in interface V1.ResourceQuotaSpecOrBuilder
    • getHardOrThrow

      public Resource.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 V1.ResourceQuotaSpecOrBuilder
    • clearHard

      public V1.ResourceQuotaSpec.Builder clearHard()
    • removeHard

      public V1.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;
    • getMutableHard

      @Deprecated public Map<String,Resource.Quantity> getMutableHard()
      Deprecated.
      Use alternate mutation accessors instead.
    • putHard

       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

       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
       
      repeated string scopes = 2;
      Specified by:
      getScopesList in interface V1.ResourceQuotaSpecOrBuilder
    • 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
       
      repeated string scopes = 2;
      Specified by:
      getScopesCount in interface V1.ResourceQuotaSpecOrBuilder
    • 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
       
      repeated string scopes = 2;
      Specified by:
      getScopes in interface V1.ResourceQuotaSpecOrBuilder
    • 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
       
      repeated string scopes = 2;
      Specified by:
      getScopesBytes in interface V1.ResourceQuotaSpecOrBuilder
    • setScopes

      public V1.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
       
      repeated string scopes = 2;
    • addScopes

      public V1.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
       
      repeated string scopes = 2;
    • addAllScopes

      public V1.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
       
      repeated string scopes = 2;
    • clearScopes

      public V1.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
       
      repeated string scopes = 2;
    • addScopesBytes

      public V1.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
       
      repeated string scopes = 2;
    • 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 V1.ResourceQuotaSpecOrBuilder
    • getScopeSelector

      public V1.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 V1.ResourceQuotaSpecOrBuilder
    • setScopeSelector

      public V1.ResourceQuotaSpec.Builder setScopeSelector(V1.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 V1.ResourceQuotaSpec.Builder setScopeSelector(V1.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 V1.ResourceQuotaSpec.Builder mergeScopeSelector(V1.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 V1.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 V1.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 V1.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 V1.ResourceQuotaSpecOrBuilder
    • setUnknownFields

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

      public final V1.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<V1.ResourceQuotaSpec.Builder>