- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.7
- 2.2.8
public static final class QuotaBucket.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > QuotaBucket.BuilderImplements
QuotaBucketOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QuotaBucket.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
QuotaBucket.Builder |
build()
public QuotaBucket build()
Type | Description |
QuotaBucket |
buildPartial()
public QuotaBucket buildPartial()
Type | Description |
QuotaBucket |
clear()
public QuotaBucket.Builder clear()
Type | Description |
QuotaBucket.Builder |
clearAdminOverride()
public QuotaBucket.Builder clearAdminOverride()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
Type | Description |
QuotaBucket.Builder |
clearConsumerOverride()
public QuotaBucket.Builder clearConsumerOverride()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
Type | Description |
QuotaBucket.Builder |
clearDefaultLimit()
public QuotaBucket.Builder clearDefaultLimit()
The default limit of this quota bucket, as specified by the service configuration.
int64 default_limit = 2;
Type | Description |
QuotaBucket.Builder | This builder for chaining. |
clearDimensions()
public QuotaBucket.Builder clearDimensions()
Type | Description |
QuotaBucket.Builder |
clearEffectiveLimit()
public QuotaBucket.Builder clearEffectiveLimit()
The effective limit of this quota bucket. Equal to default_limit if there are no overrides.
int64 effective_limit = 1;
Type | Description |
QuotaBucket.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public QuotaBucket.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
QuotaBucket.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public QuotaBucket.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
QuotaBucket.Builder |
clearProducerOverride()
public QuotaBucket.Builder clearProducerOverride()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
Type | Description |
QuotaBucket.Builder |
clone()
public QuotaBucket.Builder clone()
Type | Description |
QuotaBucket.Builder |
containsDimensions(String key)
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;
Name | Description |
key | String |
Type | Description |
boolean |
getAdminOverride()
public QuotaOverride getAdminOverride()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
Type | Description |
QuotaOverride | The adminOverride. |
getAdminOverrideBuilder()
public QuotaOverride.Builder getAdminOverrideBuilder()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
Type | Description |
QuotaOverride.Builder |
getAdminOverrideOrBuilder()
public QuotaOverrideOrBuilder getAdminOverrideOrBuilder()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
Type | Description |
QuotaOverrideOrBuilder |
getConsumerOverride()
public QuotaOverride getConsumerOverride()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
Type | Description |
QuotaOverride | The consumerOverride. |
getConsumerOverrideBuilder()
public QuotaOverride.Builder getConsumerOverrideBuilder()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
Type | Description |
QuotaOverride.Builder |
getConsumerOverrideOrBuilder()
public QuotaOverrideOrBuilder getConsumerOverrideOrBuilder()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
Type | Description |
QuotaOverrideOrBuilder |
getDefaultInstanceForType()
public QuotaBucket getDefaultInstanceForType()
Type | Description |
QuotaBucket |
getDefaultLimit()
public long getDefaultLimit()
The default limit of this quota bucket, as specified by the service configuration.
int64 default_limit = 2;
Type | Description |
long | The defaultLimit. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDimensions()
public Map<String,String> getDimensions()
Use #getDimensionsMap() instead.
Type | Description |
Map<String,String> |
getDimensionsCount()
public int getDimensionsCount()
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;
Type | Description |
int |
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;
Type | Description |
Map<String,String> |
getDimensionsOrDefault(String key, String defaultValue)
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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getDimensionsOrThrow(String key)
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;
Name | Description |
key | String |
Type | Description |
String |
getEffectiveLimit()
public long getEffectiveLimit()
The effective limit of this quota bucket. Equal to default_limit if there are no overrides.
int64 effective_limit = 1;
Type | Description |
long | The effectiveLimit. |
getMutableDimensions()
public Map<String,String> getMutableDimensions()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getProducerOverride()
public QuotaOverride getProducerOverride()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
Type | Description |
QuotaOverride | The producerOverride. |
getProducerOverrideBuilder()
public QuotaOverride.Builder getProducerOverrideBuilder()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
Type | Description |
QuotaOverride.Builder |
getProducerOverrideOrBuilder()
public QuotaOverrideOrBuilder getProducerOverrideOrBuilder()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
Type | Description |
QuotaOverrideOrBuilder |
hasAdminOverride()
public boolean hasAdminOverride()
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
Type | Description |
boolean | Whether the adminOverride field is set. |
hasConsumerOverride()
public boolean hasConsumerOverride()
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
Type | Description |
boolean | Whether the consumerOverride field is set. |
hasProducerOverride()
public boolean hasProducerOverride()
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
Type | Description |
boolean | Whether the producerOverride field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeAdminOverride(QuotaOverride value)
public QuotaBucket.Builder mergeAdminOverride(QuotaOverride value)
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
Name | Description |
value | QuotaOverride |
Type | Description |
QuotaBucket.Builder |
mergeConsumerOverride(QuotaOverride value)
public QuotaBucket.Builder mergeConsumerOverride(QuotaOverride value)
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
Name | Description |
value | QuotaOverride |
Type | Description |
QuotaBucket.Builder |
mergeFrom(QuotaBucket other)
public QuotaBucket.Builder mergeFrom(QuotaBucket other)
Name | Description |
other | QuotaBucket |
Type | Description |
QuotaBucket.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QuotaBucket.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QuotaBucket.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public QuotaBucket.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
QuotaBucket.Builder |
mergeProducerOverride(QuotaOverride value)
public QuotaBucket.Builder mergeProducerOverride(QuotaOverride value)
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
Name | Description |
value | QuotaOverride |
Type | Description |
QuotaBucket.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QuotaBucket.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
QuotaBucket.Builder |
putAllDimensions(Map<String,String> values)
public QuotaBucket.Builder putAllDimensions(Map<String,String> values)
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;
Name | Description |
values | Map<String,String> |
Type | Description |
QuotaBucket.Builder |
putDimensions(String key, String value)
public QuotaBucket.Builder putDimensions(String key, String value)
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;
Name | Description |
key | String |
value | String |
Type | Description |
QuotaBucket.Builder |
removeDimensions(String key)
public QuotaBucket.Builder removeDimensions(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;
Name | Description |
key | String |
Type | Description |
QuotaBucket.Builder |
setAdminOverride(QuotaOverride value)
public QuotaBucket.Builder setAdminOverride(QuotaOverride value)
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
Name | Description |
value | QuotaOverride |
Type | Description |
QuotaBucket.Builder |
setAdminOverride(QuotaOverride.Builder builderForValue)
public QuotaBucket.Builder setAdminOverride(QuotaOverride.Builder builderForValue)
Admin override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride admin_override = 5;
Name | Description |
builderForValue | QuotaOverride.Builder |
Type | Description |
QuotaBucket.Builder |
setConsumerOverride(QuotaOverride value)
public QuotaBucket.Builder setConsumerOverride(QuotaOverride value)
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
Name | Description |
value | QuotaOverride |
Type | Description |
QuotaBucket.Builder |
setConsumerOverride(QuotaOverride.Builder builderForValue)
public QuotaBucket.Builder setConsumerOverride(QuotaOverride.Builder builderForValue)
Consumer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride consumer_override = 4;
Name | Description |
builderForValue | QuotaOverride.Builder |
Type | Description |
QuotaBucket.Builder |
setDefaultLimit(long value)
public QuotaBucket.Builder setDefaultLimit(long value)
The default limit of this quota bucket, as specified by the service configuration.
int64 default_limit = 2;
Name | Description |
value | long The defaultLimit to set. |
Type | Description |
QuotaBucket.Builder | This builder for chaining. |
setEffectiveLimit(long value)
public QuotaBucket.Builder setEffectiveLimit(long value)
The effective limit of this quota bucket. Equal to default_limit if there are no overrides.
int64 effective_limit = 1;
Name | Description |
value | long The effectiveLimit to set. |
Type | Description |
QuotaBucket.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public QuotaBucket.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
QuotaBucket.Builder |
setProducerOverride(QuotaOverride value)
public QuotaBucket.Builder setProducerOverride(QuotaOverride value)
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
Name | Description |
value | QuotaOverride |
Type | Description |
QuotaBucket.Builder |
setProducerOverride(QuotaOverride.Builder builderForValue)
public QuotaBucket.Builder setProducerOverride(QuotaOverride.Builder builderForValue)
Producer override on this quota bucket.
.google.api.serviceusage.v1beta1.QuotaOverride producer_override = 3;
Name | Description |
builderForValue | QuotaOverride.Builder |
Type | Description |
QuotaBucket.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QuotaBucket.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
QuotaBucket.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final QuotaBucket.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
QuotaBucket.Builder |