Class ConsumerQuotaLimit.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConsumerQuotaLimit.Builder>
com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit.Builder
- All Implemented Interfaces:
ConsumerQuotaLimitOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConsumerQuotaLimit
public static final class ConsumerQuotaLimit.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConsumerQuotaLimit.Builder>
implements ConsumerQuotaLimitOrBuilder
Consumer quota settings for a quota limit.Protobuf type
google.api.serviceusage.v1beta1.ConsumerQuotaLimit-
Method Summary
Modifier and TypeMethodDescriptionaddAllQuotaBuckets(Iterable<? extends QuotaBucket> values) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).addAllSupportedLocations(Iterable<String> values) List of all supported locations.addQuotaBuckets(int index, QuotaBucket value) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).addQuotaBuckets(int index, QuotaBucket.Builder builderForValue) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).addQuotaBuckets(QuotaBucket value) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).addQuotaBuckets(QuotaBucket.Builder builderForValue) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).addQuotaBucketsBuilder(int index) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).addSupportedLocations(String value) List of all supported locations.addSupportedLocationsBytes(com.google.protobuf.ByteString value) List of all supported locations.build()clear()Whether admin overrides are allowed on this limitWhether this limit is precise or imprecise.The name of the parent metric of this limit.The resource name of the quota limit.Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).List of all supported locations.The limit unit.booleanWhether admin overrides are allowed on this limitstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether this limit is precise or imprecise.The name of the parent metric of this limit.com.google.protobuf.ByteStringThe name of the parent metric of this limit.getName()The resource name of the quota limit.com.google.protobuf.ByteStringThe resource name of the quota limit.getQuotaBuckets(int index) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).getQuotaBucketsBuilder(int index) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).intSummary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).getQuotaBucketsOrBuilder(int index) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).List<? extends QuotaBucketOrBuilder>Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).getSupportedLocations(int index) List of all supported locations.com.google.protobuf.ByteStringgetSupportedLocationsBytes(int index) List of all supported locations.intList of all supported locations.com.google.protobuf.ProtocolStringListList of all supported locations.getUnit()The limit unit.com.google.protobuf.ByteStringThe limit unit.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ConsumerQuotaLimit other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeQuotaBuckets(int index) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).setAllowsAdminOverrides(boolean value) Whether admin overrides are allowed on this limitsetIsPrecise(boolean value) Whether this limit is precise or imprecise.The name of the parent metric of this limit.setMetricBytes(com.google.protobuf.ByteString value) The name of the parent metric of this limit.The resource name of the quota limit.setNameBytes(com.google.protobuf.ByteString value) The resource name of the quota limit.setQuotaBuckets(int index, QuotaBucket value) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).setQuotaBuckets(int index, QuotaBucket.Builder builderForValue) Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).setSupportedLocations(int index, String value) List of all supported locations.The limit unit.setUnitBytes(com.google.protobuf.ByteString value) The limit unit.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ConsumerQuotaLimit.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<ConsumerQuotaLimit.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<ConsumerQuotaLimit.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<ConsumerQuotaLimit.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConsumerQuotaLimit.Builder>
-
mergeFrom
public ConsumerQuotaLimit.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<ConsumerQuotaLimit.Builder>- Throws:
IOException
-
getName
The resource name of the quota limit. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;- Specified by:
getNamein interfaceConsumerQuotaLimitOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the quota limit. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;- Specified by:
getNameBytesin interfaceConsumerQuotaLimitOrBuilder- Returns:
- The bytes for name.
-
setName
The resource name of the quota limit. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The resource name of the quota limit. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The resource name of the quota limit. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getMetric
The name of the parent metric of this limit. An example name would be: `compute.googleapis.com/cpus`
string metric = 8;- Specified by:
getMetricin interfaceConsumerQuotaLimitOrBuilder- Returns:
- The metric.
-
getMetricBytes
public com.google.protobuf.ByteString getMetricBytes()The name of the parent metric of this limit. An example name would be: `compute.googleapis.com/cpus`
string metric = 8;- Specified by:
getMetricBytesin interfaceConsumerQuotaLimitOrBuilder- Returns:
- The bytes for metric.
-
setMetric
The name of the parent metric of this limit. An example name would be: `compute.googleapis.com/cpus`
string metric = 8;- Parameters:
value- The metric to set.- Returns:
- This builder for chaining.
-
clearMetric
The name of the parent metric of this limit. An example name would be: `compute.googleapis.com/cpus`
string metric = 8;- Returns:
- This builder for chaining.
-
setMetricBytes
The name of the parent metric of this limit. An example name would be: `compute.googleapis.com/cpus`
string metric = 8;- Parameters:
value- The bytes for metric to set.- Returns:
- This builder for chaining.
-
getUnit
The limit unit. An example unit would be `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.string unit = 2;- Specified by:
getUnitin interfaceConsumerQuotaLimitOrBuilder- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()The limit unit. An example unit would be `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.string unit = 2;- Specified by:
getUnitBytesin interfaceConsumerQuotaLimitOrBuilder- Returns:
- The bytes for unit.
-
setUnit
The limit unit. An example unit would be `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.string unit = 2;- Parameters:
value- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
The limit unit. An example unit would be `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.string unit = 2;- Returns:
- This builder for chaining.
-
setUnitBytes
The limit unit. An example unit would be `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.string unit = 2;- Parameters:
value- The bytes for unit to set.- Returns:
- This builder for chaining.
-
getIsPrecise
public boolean getIsPrecise()Whether this limit is precise or imprecise.
bool is_precise = 3;- Specified by:
getIsPrecisein interfaceConsumerQuotaLimitOrBuilder- Returns:
- The isPrecise.
-
setIsPrecise
Whether this limit is precise or imprecise.
bool is_precise = 3;- Parameters:
value- The isPrecise to set.- Returns:
- This builder for chaining.
-
clearIsPrecise
Whether this limit is precise or imprecise.
bool is_precise = 3;- Returns:
- This builder for chaining.
-
getAllowsAdminOverrides
public boolean getAllowsAdminOverrides()Whether admin overrides are allowed on this limit
bool allows_admin_overrides = 7;- Specified by:
getAllowsAdminOverridesin interfaceConsumerQuotaLimitOrBuilder- Returns:
- The allowsAdminOverrides.
-
setAllowsAdminOverrides
Whether admin overrides are allowed on this limit
bool allows_admin_overrides = 7;- Parameters:
value- The allowsAdminOverrides to set.- Returns:
- This builder for chaining.
-
clearAllowsAdminOverrides
Whether admin overrides are allowed on this limit
bool allows_admin_overrides = 7;- Returns:
- This builder for chaining.
-
getQuotaBucketsList
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;- Specified by:
getQuotaBucketsListin interfaceConsumerQuotaLimitOrBuilder
-
getQuotaBucketsCount
public int getQuotaBucketsCount()Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;- Specified by:
getQuotaBucketsCountin interfaceConsumerQuotaLimitOrBuilder
-
getQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;- Specified by:
getQuotaBucketsin interfaceConsumerQuotaLimitOrBuilder
-
setQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
setQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
addQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
addQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
addQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
addQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
addAllQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
clearQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
removeQuotaBuckets
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
getQuotaBucketsBuilder
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
getQuotaBucketsOrBuilder
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;- Specified by:
getQuotaBucketsOrBuilderin interfaceConsumerQuotaLimitOrBuilder
-
getQuotaBucketsOrBuilderList
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;- Specified by:
getQuotaBucketsOrBuilderListin interfaceConsumerQuotaLimitOrBuilder
-
addQuotaBucketsBuilder
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
addQuotaBucketsBuilder
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
getQuotaBucketsBuilderList
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9; -
getSupportedLocationsList
public com.google.protobuf.ProtocolStringList getSupportedLocationsList()List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Specified by:
getSupportedLocationsListin interfaceConsumerQuotaLimitOrBuilder- Returns:
- A list containing the supportedLocations.
-
getSupportedLocationsCount
public int getSupportedLocationsCount()List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Specified by:
getSupportedLocationsCountin interfaceConsumerQuotaLimitOrBuilder- Returns:
- The count of supportedLocations.
-
getSupportedLocations
List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Specified by:
getSupportedLocationsin interfaceConsumerQuotaLimitOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The supportedLocations at the given index.
-
getSupportedLocationsBytes
public com.google.protobuf.ByteString getSupportedLocationsBytes(int index) List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Specified by:
getSupportedLocationsBytesin interfaceConsumerQuotaLimitOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the supportedLocations at the given index.
-
setSupportedLocations
List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Parameters:
index- The index to set the value at.value- The supportedLocations to set.- Returns:
- This builder for chaining.
-
addSupportedLocations
List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Parameters:
value- The supportedLocations to add.- Returns:
- This builder for chaining.
-
addAllSupportedLocations
List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Parameters:
values- The supportedLocations to add.- Returns:
- This builder for chaining.
-
clearSupportedLocations
List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Returns:
- This builder for chaining.
-
addSupportedLocationsBytes
List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.repeated string supported_locations = 11;- Parameters:
value- The bytes of the supportedLocations to add.- Returns:
- This builder for chaining.
-