Class QuotaBucket
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.serviceusage.v1beta1.QuotaBucket
- All Implemented Interfaces:
QuotaBucketOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class QuotaBucket
extends com.google.protobuf.GeneratedMessage
implements QuotaBucketOrBuilder
A quota bucket is a quota provisioning unit for a specific set of dimensions.Protobuf type
google.api.serviceusage.v1beta1.QuotaBucket- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA quota bucket is a quota provisioning unit for a specific set of dimensions.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsDimensions(String key) The dimensions of this quota bucket.booleanAdmin override on this quota bucket.Admin override on this quota bucket.Consumer override on this quota bucket.Consumer override on this quota bucket.static QuotaBucketlongThe default limit of this quota bucket, as specified by the service configuration.static final com.google.protobuf.Descriptors.DescriptorDeprecated.intThe dimensions of this quota bucket.The dimensions of this quota bucket.getDimensionsOrDefault(String key, String defaultValue) The dimensions of this quota bucket.The dimensions of this quota bucket.longThe effective limit of this quota bucket.com.google.protobuf.Parser<QuotaBucket>Producer override on this quota bucket.Producer override on this quota bucket.Producer policy inherited from the closet ancestor of the current consumer.Producer policy inherited from the closet ancestor of the current consumer.intbooleanAdmin override on this quota bucket.booleanConsumer override on this quota bucket.inthashCode()booleanProducer override on this quota bucket.booleanProducer policy inherited from the closet ancestor of the current consumer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic QuotaBucket.Builderstatic QuotaBucket.BuildernewBuilder(QuotaBucket prototype) protected QuotaBucket.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static QuotaBucketparseDelimitedFrom(InputStream input) static QuotaBucketparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QuotaBucketparseFrom(byte[] data) static QuotaBucketparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QuotaBucketparseFrom(com.google.protobuf.ByteString data) static QuotaBucketparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QuotaBucketparseFrom(com.google.protobuf.CodedInputStream input) static QuotaBucketparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QuotaBucketparseFrom(InputStream input) static QuotaBucketparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QuotaBucketparseFrom(ByteBuffer data) static QuotaBucketparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<QuotaBucket>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
EFFECTIVE_LIMIT_FIELD_NUMBER
public static final int EFFECTIVE_LIMIT_FIELD_NUMBER- See Also:
-
DEFAULT_LIMIT_FIELD_NUMBER
public static final int DEFAULT_LIMIT_FIELD_NUMBER- See Also:
-
PRODUCER_OVERRIDE_FIELD_NUMBER
public static final int PRODUCER_OVERRIDE_FIELD_NUMBER- See Also:
-
CONSUMER_OVERRIDE_FIELD_NUMBER
public static final int CONSUMER_OVERRIDE_FIELD_NUMBER- See Also:
-
ADMIN_OVERRIDE_FIELD_NUMBER
public static final int ADMIN_OVERRIDE_FIELD_NUMBER- See Also:
-
PRODUCER_QUOTA_POLICY_FIELD_NUMBER
public static final int PRODUCER_QUOTA_POLICY_FIELD_NUMBER- See Also:
-
DIMENSIONS_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getEffectiveLimit
public long getEffectiveLimit()The effective limit of this quota bucket. Equal to default_limit if there are no overrides.
int64 effective_limit = 1;- Specified by:
getEffectiveLimitin interfaceQuotaBucketOrBuilder- Returns:
- The effectiveLimit.
-
getDefaultLimit
public long getDefaultLimit()The default limit of this quota bucket, as specified by the service configuration.
int64 default_limit = 2;- Specified by:
getDefaultLimitin interfaceQuotaBucketOrBuilder- Returns:
- The defaultLimit.
-
hasProducerOverride
public boolean hasProducerOverride()Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;- Specified by:
hasProducerOverridein interfaceQuotaBucketOrBuilder- Returns:
- Whether the producerOverride field is set.
-
getProducerOverride
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;- Specified by:
getProducerOverridein interfaceQuotaBucketOrBuilder- Returns:
- The producerOverride.
-
getProducerOverrideOrBuilder
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;- Specified by:
getProducerOverrideOrBuilderin interfaceQuotaBucketOrBuilder
-
hasConsumerOverride
public boolean hasConsumerOverride()Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;- Specified by:
hasConsumerOverridein interfaceQuotaBucketOrBuilder- Returns:
- Whether the consumerOverride field is set.
-
getConsumerOverride
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;- Specified by:
getConsumerOverridein interfaceQuotaBucketOrBuilder- Returns:
- The consumerOverride.
-
getConsumerOverrideOrBuilder
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;- Specified by:
getConsumerOverrideOrBuilderin interfaceQuotaBucketOrBuilder
-
hasAdminOverride
public boolean hasAdminOverride()Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;- Specified by:
hasAdminOverridein interfaceQuotaBucketOrBuilder- Returns:
- Whether the adminOverride field is set.
-
getAdminOverride
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;- Specified by:
getAdminOverridein interfaceQuotaBucketOrBuilder- Returns:
- The adminOverride.
-
getAdminOverrideOrBuilder
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;- Specified by:
getAdminOverrideOrBuilderin interfaceQuotaBucketOrBuilder
-
hasProducerQuotaPolicy
public boolean hasProducerQuotaPolicy()Producer policy inherited from the closet ancestor of the current consumer.
.google.api.serviceusage.v1beta1.ProducerQuotaPolicy producer_quota_policy = 7;- Specified by:
hasProducerQuotaPolicyin interfaceQuotaBucketOrBuilder- Returns:
- Whether the producerQuotaPolicy field is set.
-
getProducerQuotaPolicy
Producer policy inherited from the closet ancestor of the current consumer.
.google.api.serviceusage.v1beta1.ProducerQuotaPolicy producer_quota_policy = 7;- Specified by:
getProducerQuotaPolicyin interfaceQuotaBucketOrBuilder- Returns:
- The producerQuotaPolicy.
-
getProducerQuotaPolicyOrBuilder
Producer policy inherited from the closet ancestor of the current consumer.
.google.api.serviceusage.v1beta1.ProducerQuotaPolicy producer_quota_policy = 7;- Specified by:
getProducerQuotaPolicyOrBuilderin interfaceQuotaBucketOrBuilder
-
getDimensionsCount
public int getDimensionsCount()Description copied from interface:QuotaBucketOrBuilderThe dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key `region` and value `us-east-1`, then the specified effective limit is only effective in that region, and the specified overrides apply only in that region.
map<string, string> dimensions = 6;- Specified by:
getDimensionsCountin interfaceQuotaBucketOrBuilder
-
containsDimensions
The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key `region` and value `us-east-1`, then the specified effective limit is only effective in that region, and the specified overrides apply only in that region.
map<string, string> dimensions = 6;- Specified by:
containsDimensionsin interfaceQuotaBucketOrBuilder
-
getDimensions
Deprecated.UsegetDimensionsMap()instead.- Specified by:
getDimensionsin interfaceQuotaBucketOrBuilder
-
getDimensionsMap
The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key `region` and value `us-east-1`, then the specified effective limit is only effective in that region, and the specified overrides apply only in that region.
map<string, string> dimensions = 6;- Specified by:
getDimensionsMapin interfaceQuotaBucketOrBuilder
-
getDimensionsOrDefault
The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key `region` and value `us-east-1`, then the specified effective limit is only effective in that region, and the specified overrides apply only in that region.
map<string, string> dimensions = 6;- Specified by:
getDimensionsOrDefaultin interfaceQuotaBucketOrBuilder
-
getDimensionsOrThrow
The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key `region` and value `us-east-1`, then the specified effective limit is only effective in that region, and the specified overrides apply only in that region.
map<string, string> dimensions = 6;- Specified by:
getDimensionsOrThrowin interfaceQuotaBucketOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 QuotaBucket parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QuotaBucket parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QuotaBucket parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QuotaBucket parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QuotaBucket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QuotaBucket parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QuotaBucket parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static QuotaBucket parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QuotaBucket parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QuotaBucket.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-