Class QuotaBucket.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QuotaBucket.Builder>
com.google.api.serviceusage.v1beta1.QuotaBucket.Builder
- All Implemented Interfaces:
QuotaBucketOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QuotaBucket
public static final class QuotaBucket.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QuotaBucket.Builder>
implements QuotaBucketOrBuilder
A quota bucket is a quota provisioning unit for a specific set of dimensions.Protobuf type
google.api.serviceusage.v1beta1.QuotaBucket-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Admin override on this quota bucket.Consumer override on this quota bucket.The default limit of this quota bucket, as specified by the service configuration.The effective limit of this quota bucket.Producer override on this quota bucket.Producer policy inherited from the closet ancestor of the current consumer.booleancontainsDimensions(String key) The dimensions of this quota bucket.Admin override on this quota bucket.Admin override on this quota bucket.Admin override on this quota bucket.Consumer override on this quota bucket.Consumer override on this quota bucket.Consumer override on this quota bucket.longThe default limit of this quota bucket, as specified by the service configuration.static final com.google.protobuf.Descriptors.Descriptorcom.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.Deprecated.Producer override on this quota bucket.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.Producer policy inherited from the closet ancestor of the current consumer.booleanAdmin override on this quota bucket.booleanConsumer override on this quota bucket.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) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeAdminOverride(QuotaOverride value) Admin override on this quota bucket.Consumer override on this quota bucket.mergeFrom(QuotaBucket other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Producer override on this quota bucket.Producer policy inherited from the closet ancestor of the current consumer.putAllDimensions(Map<String, String> values) The dimensions of this quota bucket.putDimensions(String key, String value) The dimensions of this quota bucket.removeDimensions(String key) The dimensions of this quota bucket.setAdminOverride(QuotaOverride value) Admin override on this quota bucket.setAdminOverride(QuotaOverride.Builder builderForValue) Admin override on this quota bucket.setConsumerOverride(QuotaOverride value) Consumer override on this quota bucket.setConsumerOverride(QuotaOverride.Builder builderForValue) Consumer override on this quota bucket.setDefaultLimit(long value) The default limit of this quota bucket, as specified by the service configuration.setEffectiveLimit(long value) The effective limit of this quota bucket.setProducerOverride(QuotaOverride value) Producer override on this quota bucket.setProducerOverride(QuotaOverride.Builder builderForValue) Producer override on this quota bucket.Producer policy inherited from the closet ancestor of the current consumer.setProducerQuotaPolicy(ProducerQuotaPolicy.Builder builderForValue) Producer policy inherited from the closet ancestor of the current consumer.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<QuotaBucket.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<QuotaBucket.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QuotaBucket.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QuotaBucket.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QuotaBucket.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QuotaBucket.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QuotaBucket.Builder>
-
mergeFrom
public QuotaBucket.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QuotaBucket.Builder>- Throws:
IOException
-
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.
-
setEffectiveLimit
The effective limit of this quota bucket. Equal to default_limit if there are no overrides.
int64 effective_limit = 1;- Parameters:
value- The effectiveLimit to set.- Returns:
- This builder for chaining.
-
clearEffectiveLimit
The effective limit of this quota bucket. Equal to default_limit if there are no overrides.
int64 effective_limit = 1;- Returns:
- This builder for chaining.
-
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.
-
setDefaultLimit
The default limit of this quota bucket, as specified by the service configuration.
int64 default_limit = 2;- Parameters:
value- The defaultLimit to set.- Returns:
- This builder for chaining.
-
clearDefaultLimit
The default limit of this quota bucket, as specified by the service configuration.
int64 default_limit = 2;- Returns:
- This builder for chaining.
-
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.
-
setProducerOverride
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3; -
setProducerOverride
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3; -
mergeProducerOverride
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3; -
clearProducerOverride
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3; -
getProducerOverrideBuilder
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3; -
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.
-
setConsumerOverride
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4; -
setConsumerOverride
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4; -
mergeConsumerOverride
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4; -
clearConsumerOverride
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4; -
getConsumerOverrideBuilder
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4; -
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.
-
setAdminOverride
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5; -
setAdminOverride
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5; -
mergeAdminOverride
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5; -
clearAdminOverride
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5; -
getAdminOverrideBuilder
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5; -
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.
-
setProducerQuotaPolicy
Producer policy inherited from the closet ancestor of the current consumer.
.google.api.serviceusage.v1beta1.ProducerQuotaPolicy producer_quota_policy = 7; -
setProducerQuotaPolicy
Producer policy inherited from the closet ancestor of the current consumer.
.google.api.serviceusage.v1beta1.ProducerQuotaPolicy producer_quota_policy = 7; -
mergeProducerQuotaPolicy
Producer policy inherited from the closet ancestor of the current consumer.
.google.api.serviceusage.v1beta1.ProducerQuotaPolicy producer_quota_policy = 7; -
clearProducerQuotaPolicy
Producer policy inherited from the closet ancestor of the current consumer.
.google.api.serviceusage.v1beta1.ProducerQuotaPolicy producer_quota_policy = 7; -
getProducerQuotaPolicyBuilder
Producer policy inherited from the closet ancestor of the current consumer.
.google.api.serviceusage.v1beta1.ProducerQuotaPolicy producer_quota_policy = 7; -
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
-
clearDimensions
-
removeDimensions
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; -
getMutableDimensions
Deprecated.Use alternate mutation accessors instead. -
putDimensions
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; -
putAllDimensions
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;
-