public final class QuotaBucket extends com.google.protobuf.GeneratedMessageV3 implements QuotaBucketOrBuilder
A quota bucket is a quota provisioning unit for a specific set of dimensions.Protobuf type
google.api.serviceusage.v1beta1.QuotaBucket| Modifier and Type | Class and Description |
|---|---|
static class |
QuotaBucket.Builder
A quota bucket is a quota provisioning unit for a specific set of dimensions.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADMIN_OVERRIDE_FIELD_NUMBER |
static int |
CONSUMER_OVERRIDE_FIELD_NUMBER |
static int |
DEFAULT_LIMIT_FIELD_NUMBER |
static int |
DIMENSIONS_FIELD_NUMBER |
static int |
EFFECTIVE_LIMIT_FIELD_NUMBER |
static int |
PRODUCER_OVERRIDE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDimensions(String key)
The dimensions of this quota bucket.
|
boolean |
equals(Object obj) |
QuotaOverride |
getAdminOverride()
Admin override on this quota bucket.
|
QuotaOverrideOrBuilder |
getAdminOverrideOrBuilder()
Admin override on this quota bucket.
|
QuotaOverride |
getConsumerOverride()
Consumer override on this quota bucket.
|
QuotaOverrideOrBuilder |
getConsumerOverrideOrBuilder()
Consumer override on this quota bucket.
|
static QuotaBucket |
getDefaultInstance() |
QuotaBucket |
getDefaultInstanceForType() |
long |
getDefaultLimit()
The default limit of this quota bucket, as specified by the service
configuration.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getDimensions()
Deprecated.
|
int |
getDimensionsCount()
The dimensions of this quota bucket.
|
Map<String,String> |
getDimensionsMap()
The dimensions of this quota bucket.
|
String |
getDimensionsOrDefault(String key,
String defaultValue)
The dimensions of this quota bucket.
|
String |
getDimensionsOrThrow(String key)
The dimensions of this quota bucket.
|
long |
getEffectiveLimit()
The effective limit of this quota bucket.
|
com.google.protobuf.Parser<QuotaBucket> |
getParserForType() |
QuotaOverride |
getProducerOverride()
Producer override on this quota bucket.
|
QuotaOverrideOrBuilder |
getProducerOverrideOrBuilder()
Producer override on this quota bucket.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAdminOverride()
Admin override on this quota bucket.
|
boolean |
hasConsumerOverride()
Consumer override on this quota bucket.
|
int |
hashCode() |
boolean |
hasProducerOverride()
Producer override on this quota bucket.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static QuotaBucket.Builder |
newBuilder() |
static QuotaBucket.Builder |
newBuilder(QuotaBucket prototype) |
QuotaBucket.Builder |
newBuilderForType() |
protected QuotaBucket.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static QuotaBucket |
parseDelimitedFrom(InputStream input) |
static QuotaBucket |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaBucket |
parseFrom(byte[] data) |
static QuotaBucket |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaBucket |
parseFrom(ByteBuffer data) |
static QuotaBucket |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaBucket |
parseFrom(com.google.protobuf.ByteString data) |
static QuotaBucket |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaBucket |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QuotaBucket |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaBucket |
parseFrom(InputStream input) |
static QuotaBucket |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QuotaBucket> |
parser() |
QuotaBucket.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int EFFECTIVE_LIMIT_FIELD_NUMBER
public static final int DEFAULT_LIMIT_FIELD_NUMBER
public static final int PRODUCER_OVERRIDE_FIELD_NUMBER
public static final int CONSUMER_OVERRIDE_FIELD_NUMBER
public static final int ADMIN_OVERRIDE_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public long getEffectiveLimit()
The effective limit of this quota bucket. Equal to default_limit if there are no overrides.
int64 effective_limit = 1;getEffectiveLimit in interface QuotaBucketOrBuilderpublic long getDefaultLimit()
The default limit of this quota bucket, as specified by the service configuration.
int64 default_limit = 2;getDefaultLimit in interface QuotaBucketOrBuilderpublic boolean hasProducerOverride()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;hasProducerOverride in interface QuotaBucketOrBuilderpublic QuotaOverride getProducerOverride()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;getProducerOverride in interface QuotaBucketOrBuilderpublic QuotaOverrideOrBuilder getProducerOverrideOrBuilder()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;getProducerOverrideOrBuilder in interface QuotaBucketOrBuilderpublic boolean hasConsumerOverride()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;hasConsumerOverride in interface QuotaBucketOrBuilderpublic QuotaOverride getConsumerOverride()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;getConsumerOverride in interface QuotaBucketOrBuilderpublic QuotaOverrideOrBuilder getConsumerOverrideOrBuilder()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;getConsumerOverrideOrBuilder in interface QuotaBucketOrBuilderpublic boolean hasAdminOverride()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;hasAdminOverride in interface QuotaBucketOrBuilderpublic QuotaOverride getAdminOverride()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;getAdminOverride in interface QuotaBucketOrBuilderpublic QuotaOverrideOrBuilder getAdminOverrideOrBuilder()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;getAdminOverrideOrBuilder in interface QuotaBucketOrBuilderpublic int getDimensionsCount()
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;getDimensionsCount in interface QuotaBucketOrBuilderpublic boolean containsDimensions(String key)
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;containsDimensions in interface QuotaBucketOrBuilder@Deprecated public Map<String,String> getDimensions()
getDimensionsMap() instead.getDimensions in interface QuotaBucketOrBuilderpublic Map<String,String> 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;getDimensionsMap in interface QuotaBucketOrBuilderpublic String getDimensionsOrDefault(String key, String defaultValue)
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;getDimensionsOrDefault in interface QuotaBucketOrBuilderpublic String getDimensionsOrThrow(String key)
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;getDimensionsOrThrow in interface QuotaBucketOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static QuotaBucket parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaBucket parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaBucket parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaBucket parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaBucket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaBucket parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaBucket parseFrom(InputStream input) throws IOException
IOExceptionpublic static QuotaBucket parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QuotaBucket parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static QuotaBucket parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QuotaBucket parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static QuotaBucket parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic QuotaBucket.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QuotaBucket.Builder newBuilder()
public static QuotaBucket.Builder newBuilder(QuotaBucket prototype)
public QuotaBucket.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QuotaBucket.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QuotaBucket getDefaultInstance()
public static com.google.protobuf.Parser<QuotaBucket> parser()
public com.google.protobuf.Parser<QuotaBucket> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QuotaBucket getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.