Class QuotaBucket
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
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 typegoogle.api.serviceusage.v1beta1.QuotaBucket
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuotaBucket.Builder
A quota bucket is a quota provisioning unit for a specific set of dimensions.-
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 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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()
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(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 QuotaBucket
parseFrom(ByteBuffer data)
static QuotaBucket
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<QuotaBucket>
parser()
QuotaBucket.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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
-
EFFECTIVE_LIMIT_FIELD_NUMBER
public static final int EFFECTIVE_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_LIMIT_FIELD_NUMBER
public static final int DEFAULT_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRODUCER_OVERRIDE_FIELD_NUMBER
public static final int PRODUCER_OVERRIDE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONSUMER_OVERRIDE_FIELD_NUMBER
public static final int CONSUMER_OVERRIDE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADMIN_OVERRIDE_FIELD_NUMBER
public static final int ADMIN_OVERRIDE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DIMENSIONS_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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:
getEffectiveLimit
in 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:
getDefaultLimit
in interfaceQuotaBucketOrBuilder
- Returns:
- The defaultLimit.
-
hasProducerOverride
public boolean hasProducerOverride()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
- Specified by:
hasProducerOverride
in interfaceQuotaBucketOrBuilder
- Returns:
- Whether the producerOverride field is set.
-
getProducerOverride
public QuotaOverride getProducerOverride()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
- Specified by:
getProducerOverride
in interfaceQuotaBucketOrBuilder
- Returns:
- The producerOverride.
-
getProducerOverrideOrBuilder
public QuotaOverrideOrBuilder getProducerOverrideOrBuilder()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
- Specified by:
getProducerOverrideOrBuilder
in interfaceQuotaBucketOrBuilder
-
hasConsumerOverride
public boolean hasConsumerOverride()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
- Specified by:
hasConsumerOverride
in interfaceQuotaBucketOrBuilder
- Returns:
- Whether the consumerOverride field is set.
-
getConsumerOverride
public QuotaOverride getConsumerOverride()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
- Specified by:
getConsumerOverride
in interfaceQuotaBucketOrBuilder
- Returns:
- The consumerOverride.
-
getConsumerOverrideOrBuilder
public QuotaOverrideOrBuilder getConsumerOverrideOrBuilder()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
- Specified by:
getConsumerOverrideOrBuilder
in interfaceQuotaBucketOrBuilder
-
hasAdminOverride
public boolean hasAdminOverride()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
- Specified by:
hasAdminOverride
in interfaceQuotaBucketOrBuilder
- Returns:
- Whether the adminOverride field is set.
-
getAdminOverride
public QuotaOverride getAdminOverride()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
- Specified by:
getAdminOverride
in interfaceQuotaBucketOrBuilder
- Returns:
- The adminOverride.
-
getAdminOverrideOrBuilder
public QuotaOverrideOrBuilder getAdminOverrideOrBuilder()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
- Specified by:
getAdminOverrideOrBuilder
in interfaceQuotaBucketOrBuilder
-
getDimensionsCount
public int getDimensionsCount()
Description copied from interface:QuotaBucketOrBuilder
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:
getDimensionsCount
in interfaceQuotaBucketOrBuilder
-
containsDimensions
public 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;
- Specified by:
containsDimensions
in interfaceQuotaBucketOrBuilder
-
getDimensions
@Deprecated public Map<String,String> getDimensions()
Deprecated.UsegetDimensionsMap()
instead.- Specified by:
getDimensions
in interfaceQuotaBucketOrBuilder
-
getDimensionsMap
public 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;
- Specified by:
getDimensionsMap
in interfaceQuotaBucketOrBuilder
-
getDimensionsOrDefault
public 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;
- Specified by:
getDimensionsOrDefault
in interfaceQuotaBucketOrBuilder
-
getDimensionsOrThrow
public 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;
- Specified by:
getDimensionsOrThrow
in interfaceQuotaBucketOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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
public static QuotaBucket parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static QuotaBucket parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static QuotaBucket parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static QuotaBucket parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static QuotaBucket parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static QuotaBucket parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public QuotaBucket.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static QuotaBucket.Builder newBuilder()
-
newBuilder
public static QuotaBucket.Builder newBuilder(QuotaBucket prototype)
-
toBuilder
public QuotaBucket.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QuotaBucket.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static QuotaBucket getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<QuotaBucket> parser()
-
getParserForType
public com.google.protobuf.Parser<QuotaBucket> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public QuotaBucket getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-