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 classQuotaBucket.BuilderA 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 intADMIN_OVERRIDE_FIELD_NUMBERstatic intCONSUMER_OVERRIDE_FIELD_NUMBERstatic intDEFAULT_LIMIT_FIELD_NUMBERstatic intDIMENSIONS_FIELD_NUMBERstatic intEFFECTIVE_LIMIT_FIELD_NUMBERstatic intPRODUCER_OVERRIDE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsDimensions(String key)The dimensions of this quota bucket.booleanequals(Object obj)QuotaOverridegetAdminOverride()Admin override on this quota bucket.QuotaOverrideOrBuildergetAdminOverrideOrBuilder()Admin override on this quota bucket.QuotaOverridegetConsumerOverride()Consumer override on this quota bucket.QuotaOverrideOrBuildergetConsumerOverrideOrBuilder()Consumer override on this quota bucket.static QuotaBucketgetDefaultInstance()QuotaBucketgetDefaultInstanceForType()longgetDefaultLimit()The default limit of this quota bucket, as specified by the service configuration.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Map<String,String>getDimensions()Deprecated.intgetDimensionsCount()The dimensions of this quota bucket.Map<String,String>getDimensionsMap()The dimensions of this quota bucket.StringgetDimensionsOrDefault(String key, String defaultValue)The dimensions of this quota bucket.StringgetDimensionsOrThrow(String key)The dimensions of this quota bucket.longgetEffectiveLimit()The effective limit of this quota bucket.com.google.protobuf.Parser<QuotaBucket>getParserForType()QuotaOverridegetProducerOverride()Producer override on this quota bucket.QuotaOverrideOrBuildergetProducerOverrideOrBuilder()Producer override on this quota bucket.intgetSerializedSize()booleanhasAdminOverride()Admin override on this quota bucket.booleanhasConsumerOverride()Consumer override on this quota bucket.inthashCode()booleanhasProducerOverride()Producer override on this quota bucket.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static QuotaBucket.BuildernewBuilder()static QuotaBucket.BuildernewBuilder(QuotaBucket prototype)QuotaBucket.BuildernewBuilderForType()protected QuotaBucket.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()QuotaBucket.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
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
public QuotaOverride getProducerOverride()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;- Specified by:
getProducerOverridein interfaceQuotaBucketOrBuilder- Returns:
- The producerOverride.
-
getProducerOverrideOrBuilder
public QuotaOverrideOrBuilder 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
public QuotaOverride getConsumerOverride()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;- Specified by:
getConsumerOverridein interfaceQuotaBucketOrBuilder- Returns:
- The consumerOverride.
-
getConsumerOverrideOrBuilder
public QuotaOverrideOrBuilder 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
public QuotaOverride getAdminOverride()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;- Specified by:
getAdminOverridein interfaceQuotaBucketOrBuilder- Returns:
- The adminOverride.
-
getAdminOverrideOrBuilder
public QuotaOverrideOrBuilder getAdminOverrideOrBuilder()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;- Specified by:
getAdminOverrideOrBuilderin 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
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:
containsDimensionsin interfaceQuotaBucketOrBuilder
-
getDimensions
@Deprecated public Map<String,String> getDimensions()
Deprecated.UsegetDimensionsMap()instead.- Specified by:
getDimensionsin 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:
getDimensionsMapin 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:
getDimensionsOrDefaultin 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:
getDimensionsOrThrowin interfaceQuotaBucketOrBuilder
-
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 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QuotaBucket.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public QuotaBucket getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-