Package io.kubernetes.client.proto
Class V1.ResourceQuotaSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 Summary
Modifier and TypeMethodDescriptionaddAllScopes(Iterable<String> values) A collection of filters that must match each object tracked by a quota.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) A collection of filters that must match each object tracked by a quota.addScopesBytes(com.google.protobuf.ByteString value) A collection of filters that must match each object tracked by a quota.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A collection of filters that must match each object tracked by a quota.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.clone()booleancontainsHard(String key) hard is the set of desired hard limits for each named resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHard()Deprecated.inthard is the set of desired hard limits for each named resource.hard is the set of desired hard limits for each named resource.getHardOrDefault(String key, Resource.Quantity defaultValue) hard is the set of desired hard limits for each named resource.getHardOrThrow(String key) hard is the set of desired hard limits for each named resource.Deprecated.getScopes(int index) A collection of filters that must match each object tracked by a quota.com.google.protobuf.ByteStringgetScopesBytes(int index) A collection of filters that must match each object tracked by a quota.intA collection of filters that must match each object tracked by a quota.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.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.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.com.google.protobuf.ProtocolStringListA collection of filters that must match each object tracked by a quota.booleanscopeSelector 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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(V1.ResourceQuotaSpec other) 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.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllHard(Map<String, Resource.Quantity> values) hard is the set of desired hard limits for each named resource.putHard(String key, Resource.Quantity value) hard is the set of desired hard limits for each named resource.removeHard(String key) hard is the set of desired hard limits for each named resource.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) A collection of filters that must match each object tracked by a quota.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.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.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
setField
public V1.ResourceQuotaSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
clearField
public V1.ResourceQuotaSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
clearOneof
public V1.ResourceQuotaSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
addRepeatedField
public V1.ResourceQuotaSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.ResourceQuotaSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.ResourceQuotaSpec.Builder>- Throws:
IOException
-
getHardCount
public int getHardCount()Description copied from interface:V1.ResourceQuotaSpecOrBuilderhard 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:
getHardCountin interfaceV1.ResourceQuotaSpecOrBuilder
-
containsHard
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:
containsHardin interfaceV1.ResourceQuotaSpecOrBuilder
-
getHard
Deprecated.UsegetHardMap()instead.- Specified by:
getHardin interfaceV1.ResourceQuotaSpecOrBuilder
-
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:
getHardMapin interfaceV1.ResourceQuotaSpecOrBuilder
-
getHardOrDefault
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:
getHardOrDefaultin interfaceV1.ResourceQuotaSpecOrBuilder
-
getHardOrThrow
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:
getHardOrThrowin interfaceV1.ResourceQuotaSpecOrBuilder
-
clearHard
-
removeHard
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.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:
getScopesListin interfaceV1.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:
getScopesCountin interfaceV1.ResourceQuotaSpecOrBuilder
-
getScopes
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:
getScopesin interfaceV1.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:
getScopesBytesin interfaceV1.ResourceQuotaSpecOrBuilder
-
setScopes
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
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
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
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
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:
hasScopeSelectorin interfaceV1.ResourceQuotaSpecOrBuilder
-
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:
getScopeSelectorin interfaceV1.ResourceQuotaSpecOrBuilder
-
setScopeSelector
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
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
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
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
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
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:
getScopeSelectorOrBuilderin interfaceV1.ResourceQuotaSpecOrBuilder
-
setUnknownFields
public final V1.ResourceQuotaSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
mergeUnknownFields
public final V1.ResourceQuotaSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-