Class ConsumerQuotaMetric.Builder (2.42.0)

publicstaticfinalclass ConsumerQuotaMetric.BuilderextendsGeneratedMessageV3.Builder<ConsumerQuotaMetric.Builder>implementsConsumerQuotaMetricOrBuilder

Consumer quota settings for a quota metric.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaMetric

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> values)

publicConsumerQuotaMetric.BuilderaddAllConsumerQuotaLimits(Iterable<?extendsConsumerQuotaLimit>values)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameter
Name Description
values Iterable<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit>
Returns
Type Description
ConsumerQuotaMetric.Builder

addAllDescendantConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> values)

publicConsumerQuotaMetric.BuilderaddAllDescendantConsumerQuotaLimits(Iterable<?extendsConsumerQuotaLimit>values)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameter
Name Description
values Iterable<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit>
Returns
Type Description
ConsumerQuotaMetric.Builder

addConsumerQuotaLimits(ConsumerQuotaLimit value)

publicConsumerQuotaMetric.BuilderaddConsumerQuotaLimits(ConsumerQuotaLimitvalue)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameter
Name Description
value ConsumerQuotaLimit
Returns
Type Description
ConsumerQuotaMetric.Builder

addConsumerQuotaLimits(ConsumerQuotaLimit.Builder builderForValue)

publicConsumerQuotaMetric.BuilderaddConsumerQuotaLimits(ConsumerQuotaLimit.BuilderbuilderForValue)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameter
Name Description
builderForValue ConsumerQuotaLimit.Builder
Returns
Type Description
ConsumerQuotaMetric.Builder

addConsumerQuotaLimits(int index, ConsumerQuotaLimit value)

publicConsumerQuotaMetric.BuilderaddConsumerQuotaLimits(intindex,ConsumerQuotaLimitvalue)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameters
Name Description
index int
value ConsumerQuotaLimit
Returns
Type Description
ConsumerQuotaMetric.Builder

addConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)

publicConsumerQuotaMetric.BuilderaddConsumerQuotaLimits(intindex,ConsumerQuotaLimit.BuilderbuilderForValue)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameters
Name Description
index int
builderForValue ConsumerQuotaLimit.Builder
Returns
Type Description
ConsumerQuotaMetric.Builder

addConsumerQuotaLimitsBuilder()

publicConsumerQuotaLimit.BuilderaddConsumerQuotaLimitsBuilder()

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Returns
Type Description
ConsumerQuotaLimit.Builder

addConsumerQuotaLimitsBuilder(int index)

publicConsumerQuotaLimit.BuilderaddConsumerQuotaLimitsBuilder(intindex)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimit.Builder

addDescendantConsumerQuotaLimits(ConsumerQuotaLimit value)

publicConsumerQuotaMetric.BuilderaddDescendantConsumerQuotaLimits(ConsumerQuotaLimitvalue)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameter
Name Description
value ConsumerQuotaLimit
Returns
Type Description
ConsumerQuotaMetric.Builder

addDescendantConsumerQuotaLimits(ConsumerQuotaLimit.Builder builderForValue)

publicConsumerQuotaMetric.BuilderaddDescendantConsumerQuotaLimits(ConsumerQuotaLimit.BuilderbuilderForValue)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameter
Name Description
builderForValue ConsumerQuotaLimit.Builder
Returns
Type Description
ConsumerQuotaMetric.Builder

addDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit value)

publicConsumerQuotaMetric.BuilderaddDescendantConsumerQuotaLimits(intindex,ConsumerQuotaLimitvalue)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameters
Name Description
index int
value ConsumerQuotaLimit
Returns
Type Description
ConsumerQuotaMetric.Builder

addDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)

publicConsumerQuotaMetric.BuilderaddDescendantConsumerQuotaLimits(intindex,ConsumerQuotaLimit.BuilderbuilderForValue)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameters
Name Description
index int
builderForValue ConsumerQuotaLimit.Builder
Returns
Type Description
ConsumerQuotaMetric.Builder

addDescendantConsumerQuotaLimitsBuilder()

publicConsumerQuotaLimit.BuilderaddDescendantConsumerQuotaLimitsBuilder()

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Returns
Type Description
ConsumerQuotaLimit.Builder

addDescendantConsumerQuotaLimitsBuilder(int index)

publicConsumerQuotaLimit.BuilderaddDescendantConsumerQuotaLimitsBuilder(intindex)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimit.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicConsumerQuotaMetric.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

build()

publicConsumerQuotaMetricbuild()
Returns
Type Description
ConsumerQuotaMetric

buildPartial()

publicConsumerQuotaMetricbuildPartial()
Returns
Type Description
ConsumerQuotaMetric

clear()

publicConsumerQuotaMetric.Builderclear()
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

clearConsumerQuotaLimits()

publicConsumerQuotaMetric.BuilderclearConsumerQuotaLimits()

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Returns
Type Description
ConsumerQuotaMetric.Builder

clearDescendantConsumerQuotaLimits()

publicConsumerQuotaMetric.BuilderclearDescendantConsumerQuotaLimits()

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Returns
Type Description
ConsumerQuotaMetric.Builder

clearDisplayName()

publicConsumerQuotaMetric.BuilderclearDisplayName()

The display name of the metric.

An example name would be: CPUs

string display_name = 2;

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicConsumerQuotaMetric.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

clearMetric()

publicConsumerQuotaMetric.BuilderclearMetric()

The name of the metric.

An example name would be: compute.googleapis.com/cpus

string metric = 4;

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

clearName()

publicConsumerQuotaMetric.BuilderclearName()

The resource name of the quota settings on this metric for this consumer.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus

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
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicConsumerQuotaMetric.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

clearUnit()

publicConsumerQuotaMetric.BuilderclearUnit()

The units in which the metric value is reported.

string unit = 5;

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

clone()

publicConsumerQuotaMetric.Builderclone()
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

getConsumerQuotaLimits(int index)

publicConsumerQuotaLimitgetConsumerQuotaLimits(intindex)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimit

getConsumerQuotaLimitsBuilder(int index)

publicConsumerQuotaLimit.BuildergetConsumerQuotaLimitsBuilder(intindex)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimit.Builder

getConsumerQuotaLimitsBuilderList()

publicList<ConsumerQuotaLimit.Builder>getConsumerQuotaLimitsBuilderList()

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Returns
Type Description
List<Builder>

getConsumerQuotaLimitsCount()

publicintgetConsumerQuotaLimitsCount()

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Returns
Type Description
int

getConsumerQuotaLimitsList()

publicList<ConsumerQuotaLimit>getConsumerQuotaLimitsList()

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Returns
Type Description
List<ConsumerQuotaLimit>

getConsumerQuotaLimitsOrBuilder(int index)

publicConsumerQuotaLimitOrBuildergetConsumerQuotaLimitsOrBuilder(intindex)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimitOrBuilder

getConsumerQuotaLimitsOrBuilderList()

publicList<?extendsConsumerQuotaLimitOrBuilder>getConsumerQuotaLimitsOrBuilderList()

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Returns
Type Description
List<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder>

getDefaultInstanceForType()

publicConsumerQuotaMetricgetDefaultInstanceForType()
Returns
Type Description
ConsumerQuotaMetric

getDescendantConsumerQuotaLimits(int index)

publicConsumerQuotaLimitgetDescendantConsumerQuotaLimits(intindex)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimit

getDescendantConsumerQuotaLimitsBuilder(int index)

publicConsumerQuotaLimit.BuildergetDescendantConsumerQuotaLimitsBuilder(intindex)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimit.Builder

getDescendantConsumerQuotaLimitsBuilderList()

publicList<ConsumerQuotaLimit.Builder>getDescendantConsumerQuotaLimitsBuilderList()

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Returns
Type Description
List<Builder>

getDescendantConsumerQuotaLimitsCount()

publicintgetDescendantConsumerQuotaLimitsCount()

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Returns
Type Description
int

getDescendantConsumerQuotaLimitsList()

publicList<ConsumerQuotaLimit>getDescendantConsumerQuotaLimitsList()

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Returns
Type Description
List<ConsumerQuotaLimit>

getDescendantConsumerQuotaLimitsOrBuilder(int index)

publicConsumerQuotaLimitOrBuildergetDescendantConsumerQuotaLimitsOrBuilder(intindex)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimitOrBuilder

getDescendantConsumerQuotaLimitsOrBuilderList()

publicList<?extendsConsumerQuotaLimitOrBuilder>getDescendantConsumerQuotaLimitsOrBuilderList()

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Returns
Type Description
List<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder>

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

publicStringgetDisplayName()

The display name of the metric.

An example name would be: CPUs

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

The display name of the metric.

An example name would be: CPUs

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getMetric()

publicStringgetMetric()

The name of the metric.

An example name would be: compute.googleapis.com/cpus

string metric = 4;

Returns
Type Description
String

The metric.

getMetricBytes()

publicByteStringgetMetricBytes()

The name of the metric.

An example name would be: compute.googleapis.com/cpus

string metric = 4;

Returns
Type Description
ByteString

The bytes for metric.

getName()

publicStringgetName()

The resource name of the quota settings on this metric for this consumer.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus

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
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The resource name of the quota settings on this metric for this consumer.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus

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
Type Description
ByteString

The bytes for name.

getUnit()

publicStringgetUnit()

The units in which the metric value is reported.

string unit = 5;

Returns
Type Description
String

The unit.

getUnitBytes()

publicByteStringgetUnitBytes()

The units in which the metric value is reported.

string unit = 5;

Returns
Type Description
ByteString

The bytes for unit.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConsumerQuotaMetric other)

publicConsumerQuotaMetric.BuildermergeFrom(ConsumerQuotaMetricother)
Parameter
Name Description
other ConsumerQuotaMetric
Returns
Type Description
ConsumerQuotaMetric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicConsumerQuotaMetric.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicConsumerQuotaMetric.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalConsumerQuotaMetric.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

removeConsumerQuotaLimits(int index)

publicConsumerQuotaMetric.BuilderremoveConsumerQuotaLimits(intindex)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaMetric.Builder

removeDescendantConsumerQuotaLimits(int index)

publicConsumerQuotaMetric.BuilderremoveDescendantConsumerQuotaLimits(intindex)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaMetric.Builder

setConsumerQuotaLimits(int index, ConsumerQuotaLimit value)

publicConsumerQuotaMetric.BuildersetConsumerQuotaLimits(intindex,ConsumerQuotaLimitvalue)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameters
Name Description
index int
value ConsumerQuotaLimit
Returns
Type Description
ConsumerQuotaMetric.Builder

setConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)

publicConsumerQuotaMetric.BuildersetConsumerQuotaLimits(intindex,ConsumerQuotaLimit.BuilderbuilderForValue)

The consumer quota for each quota limit defined on the metric.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;

Parameters
Name Description
index int
builderForValue ConsumerQuotaLimit.Builder
Returns
Type Description
ConsumerQuotaMetric.Builder

setDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit value)

publicConsumerQuotaMetric.BuildersetDescendantConsumerQuotaLimits(intindex,ConsumerQuotaLimitvalue)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameters
Name Description
index int
value ConsumerQuotaLimit
Returns
Type Description
ConsumerQuotaMetric.Builder

setDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)

publicConsumerQuotaMetric.BuildersetDescendantConsumerQuotaLimits(intindex,ConsumerQuotaLimit.BuilderbuilderForValue)

The quota limits targeting the descendant containers of the consumer in request.

If the consumer in request is of type organizations or folders, the field will list per-project limits in the metric; if the consumer in request is of type project, the field will be empty.

The quota_buckets field of each descendant consumer quota limit will not be populated.

repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;

Parameters
Name Description
index int
builderForValue ConsumerQuotaLimit.Builder
Returns
Type Description
ConsumerQuotaMetric.Builder

setDisplayName(String value)

publicConsumerQuotaMetric.BuildersetDisplayName(Stringvalue)

The display name of the metric.

An example name would be: CPUs

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

publicConsumerQuotaMetric.BuildersetDisplayNameBytes(ByteStringvalue)

The display name of the metric.

An example name would be: CPUs

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicConsumerQuotaMetric.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

setMetric(String value)

publicConsumerQuotaMetric.BuildersetMetric(Stringvalue)

The name of the metric.

An example name would be: compute.googleapis.com/cpus

string metric = 4;

Parameter
Name Description
value String

The metric to set.

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

setMetricBytes(ByteString value)

publicConsumerQuotaMetric.BuildersetMetricBytes(ByteStringvalue)

The name of the metric.

An example name would be: compute.googleapis.com/cpus

string metric = 4;

Parameter
Name Description
value ByteString

The bytes for metric to set.

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

setName(String value)

publicConsumerQuotaMetric.BuildersetName(Stringvalue)

The resource name of the quota settings on this metric for this consumer.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus

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;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicConsumerQuotaMetric.BuildersetNameBytes(ByteStringvalue)

The resource name of the quota settings on this metric for this consumer.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus

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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicConsumerQuotaMetric.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

setUnit(String value)

publicConsumerQuotaMetric.BuildersetUnit(Stringvalue)

The units in which the metric value is reported.

string unit = 5;

Parameter
Name Description
value String

The unit to set.

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

setUnitBytes(ByteString value)

publicConsumerQuotaMetric.BuildersetUnitBytes(ByteStringvalue)

The units in which the metric value is reported.

string unit = 5;

Parameter
Name Description
value ByteString

The bytes for unit to set.

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalConsumerQuotaMetric.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.