Package io.kubernetes.client.proto
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 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()
boolean
containsHard
(String key) hard is the set of desired hard limits for each named resource.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getHard()
Deprecated.int
hard 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.ByteString
getScopesBytes
(int index) A collection of filters that must match each object tracked by a quota.int
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.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.ProtocolStringList
A collection of filters that must match each object tracked by a quota.boolean
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
clearField
public V1.ResourceQuotaSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
clearOneof
public V1.ResourceQuotaSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.ResourceQuotaSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 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:
containsHard
in interfaceV1.ResourceQuotaSpecOrBuilder
-
getHard
Deprecated.UsegetHardMap()
instead.- Specified by:
getHard
in 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:
getHardMap
in 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:
getHardOrDefault
in 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:
getHardOrThrow
in 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:
getScopesList
in 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:
getScopesCount
in 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:
getScopes
in 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:
getScopesBytes
in 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:
hasScopeSelector
in 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:
getScopeSelector
in 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:
getScopeSelectorOrBuilder
in interfaceV1.ResourceQuotaSpecOrBuilder
-
setUnknownFields
public final V1.ResourceQuotaSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-
mergeUnknownFields
public final V1.ResourceQuotaSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ResourceQuotaSpec.Builder>
-