Package k8s.io.api.core.v1
Class Generated.ResourceQuotaSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.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 typek8s.io.api.core.v1.ResourceQuotaSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.ResourceQuotaSpec.BuilderResourceQuotaSpec defines the desired hard limits to enforce for Quota.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intHARD_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.ResourceQuotaSpec>PARSERDeprecated.static intSCOPES_FIELD_NUMBERstatic intSCOPESELECTOR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsHard(String key)hard is the set of desired hard limits for each named resource.booleanequals(Object obj)static Generated.ResourceQuotaSpecgetDefaultInstance()Generated.ResourceQuotaSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Map<String,Generated.Quantity>getHard()Deprecated.intgetHardCount()hard is the set of desired hard limits for each named resource.Map<String,Generated.Quantity>getHardMap()hard is the set of desired hard limits for each named resource.Generated.QuantitygetHardOrDefault(String key, Generated.Quantity defaultValue)hard is the set of desired hard limits for each named resource.Generated.QuantitygetHardOrThrow(String key)hard is the set of desired hard limits for each named resource.com.google.protobuf.Parser<Generated.ResourceQuotaSpec>getParserForType()StringgetScopes(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.intgetScopesCount()A collection of filters that must match each object tracked by a quota.Generated.ScopeSelectorgetScopeSelector()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.Generated.ScopeSelectorOrBuildergetScopeSelectorOrBuilder()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.ProtocolStringListgetScopesList()A collection of filters that must match each object tracked by a quota.intgetSerializedSize()inthashCode()booleanhasScopeSelector()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.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Generated.ResourceQuotaSpec.BuildernewBuilder()static Generated.ResourceQuotaSpec.BuildernewBuilder(Generated.ResourceQuotaSpec prototype)Generated.ResourceQuotaSpec.BuildernewBuilderForType()protected Generated.ResourceQuotaSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.ResourceQuotaSpecparseDelimitedFrom(InputStream input)static Generated.ResourceQuotaSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceQuotaSpecparseFrom(byte[] data)static Generated.ResourceQuotaSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceQuotaSpecparseFrom(com.google.protobuf.ByteString data)static Generated.ResourceQuotaSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceQuotaSpecparseFrom(com.google.protobuf.CodedInputStream input)static Generated.ResourceQuotaSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceQuotaSpecparseFrom(InputStream input)static Generated.ResourceQuotaSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ResourceQuotaSpecparseFrom(ByteBuffer data)static Generated.ResourceQuotaSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.ResourceQuotaSpec>parser()Generated.ResourceQuotaSpec.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
HARD_FIELD_NUMBER
public static final int HARD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCOPES_FIELD_NUMBER
public static final int SCOPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCOPESELECTOR_FIELD_NUMBER
public static final int SCOPESELECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.ResourceQuotaSpec> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getHardCount
public int getHardCount()
Description copied from interface:Generated.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 interfaceGenerated.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:
containsHardin interfaceGenerated.ResourceQuotaSpecOrBuilder
-
getHard
@Deprecated public Map<String,Generated.Quantity> getHard()
Deprecated.UsegetHardMap()instead.- Specified by:
getHardin interfaceGenerated.ResourceQuotaSpecOrBuilder
-
getHardMap
public Map<String,Generated.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:
getHardMapin interfaceGenerated.ResourceQuotaSpecOrBuilder
-
getHardOrDefault
public Generated.Quantity getHardOrDefault(String key, Generated.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:
getHardOrDefaultin interfaceGenerated.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:
getHardOrThrowin interfaceGenerated.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:
getScopesListin interfaceGenerated.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:
getScopesCountin interfaceGenerated.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:
getScopesin interfaceGenerated.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:
getScopesBytesin interfaceGenerated.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:
hasScopeSelectorin interfaceGenerated.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:
getScopeSelectorin interfaceGenerated.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:
getScopeSelectorOrBuilderin interfaceGenerated.ResourceQuotaSpecOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
-
parseFrom
public static Generated.ResourceQuotaSpec parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ResourceQuotaSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ResourceQuotaSpec parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ResourceQuotaSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ResourceQuotaSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ResourceQuotaSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.ResourceQuotaSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.ResourceQuotaSpec.Builder newBuilder()
-
newBuilder
public static Generated.ResourceQuotaSpec.Builder newBuilder(Generated.ResourceQuotaSpec prototype)
-
toBuilder
public Generated.ResourceQuotaSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.ResourceQuotaSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.ResourceQuotaSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.ResourceQuotaSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.ResourceQuotaSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.ResourceQuotaSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-