Class ConsumerQuotaMetric.Builder (2.47.0)

public static final class ConsumerQuotaMetric.Builder extends GeneratedMessageV3.Builder<ConsumerQuotaMetric.Builder> implements ConsumerQuotaMetricOrBuilder

Consumer quota settings for a quota metric.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaMetric

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> values)

public ConsumerQuotaMetric.Builder addAllConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> 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)

public ConsumerQuotaMetric.Builder addAllDescendantConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> 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)

public ConsumerQuotaMetric.Builder addConsumerQuotaLimits(ConsumerQuotaLimit value)

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)

public ConsumerQuotaMetric.Builder addConsumerQuotaLimits(ConsumerQuotaLimit.Builder builderForValue)

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)

public ConsumerQuotaMetric.Builder addConsumerQuotaLimits(int index, ConsumerQuotaLimit value)

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)

public ConsumerQuotaMetric.Builder addConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)

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()

public ConsumerQuotaLimit.Builder addConsumerQuotaLimitsBuilder()

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)

public ConsumerQuotaLimit.Builder addConsumerQuotaLimitsBuilder(int index)

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)

public ConsumerQuotaMetric.Builder addDescendantConsumerQuotaLimits(ConsumerQuotaLimit value)

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)

public ConsumerQuotaMetric.Builder addDescendantConsumerQuotaLimits(ConsumerQuotaLimit.Builder builderForValue)

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)

public ConsumerQuotaMetric.Builder addDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit value)

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)

public ConsumerQuotaMetric.Builder addDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)

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()

public ConsumerQuotaLimit.Builder addDescendantConsumerQuotaLimitsBuilder()

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)

public ConsumerQuotaLimit.Builder addDescendantConsumerQuotaLimitsBuilder(int index)

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)

public ConsumerQuotaMetric.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

build()

public ConsumerQuotaMetric build()
Returns
Type Description
ConsumerQuotaMetric

buildPartial()

public ConsumerQuotaMetric buildPartial()
Returns
Type Description
ConsumerQuotaMetric

clear()

public ConsumerQuotaMetric.Builder clear()
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

clearConsumerQuotaLimits()

public ConsumerQuotaMetric.Builder clearConsumerQuotaLimits()

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()

public ConsumerQuotaMetric.Builder clearDescendantConsumerQuotaLimits()

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()

public ConsumerQuotaMetric.Builder clearDisplayName()

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)

public ConsumerQuotaMetric.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

clearMetric()

public ConsumerQuotaMetric.Builder clearMetric()

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()

public ConsumerQuotaMetric.Builder clearName()

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)

public ConsumerQuotaMetric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

clearUnit()

public ConsumerQuotaMetric.Builder clearUnit()

The units in which the metric value is reported.

string unit = 5;

Returns
Type Description
ConsumerQuotaMetric.Builder

This builder for chaining.

clone()

public ConsumerQuotaMetric.Builder clone()
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

getConsumerQuotaLimits(int index)

public ConsumerQuotaLimit getConsumerQuotaLimits(int index)

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)

public ConsumerQuotaLimit.Builder getConsumerQuotaLimitsBuilder(int index)

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()

public List<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()

public int getConsumerQuotaLimitsCount()

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()

public List<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)

public ConsumerQuotaLimitOrBuilder getConsumerQuotaLimitsOrBuilder(int index)

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()

public List<? extends ConsumerQuotaLimitOrBuilder> 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()

public ConsumerQuotaMetric getDefaultInstanceForType()
Returns
Type Description
ConsumerQuotaMetric

getDescendantConsumerQuotaLimits(int index)

public ConsumerQuotaLimit getDescendantConsumerQuotaLimits(int index)

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)

public ConsumerQuotaLimit.Builder getDescendantConsumerQuotaLimitsBuilder(int index)

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()

public List<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()

public int getDescendantConsumerQuotaLimitsCount()

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()

public List<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)

public ConsumerQuotaLimitOrBuilder getDescendantConsumerQuotaLimitsOrBuilder(int index)

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()

public List<? extends ConsumerQuotaLimitOrBuilder> 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()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the metric.

An example name would be: CPUs

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

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()

public String getMetric()

The name of the metric.

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

string metric = 4;

Returns
Type Description
String

The metric.

getMetricBytes()

public ByteString getMetricBytes()

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()

public String getName()

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()

public ByteString getNameBytes()

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()

public String getUnit()

The units in which the metric value is reported.

string unit = 5;

Returns
Type Description
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

The units in which the metric value is reported.

string unit = 5;

Returns
Type Description
ByteString

The bytes for unit.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConsumerQuotaMetric other)

public ConsumerQuotaMetric.Builder mergeFrom(ConsumerQuotaMetric other)
Parameter
Name Description
other ConsumerQuotaMetric
Returns
Type Description
ConsumerQuotaMetric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConsumerQuotaMetric.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConsumerQuotaMetric.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConsumerQuotaMetric.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

removeConsumerQuotaLimits(int index)

public ConsumerQuotaMetric.Builder removeConsumerQuotaLimits(int index)

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)

public ConsumerQuotaMetric.Builder removeDescendantConsumerQuotaLimits(int index)

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)

public ConsumerQuotaMetric.Builder setConsumerQuotaLimits(int index, ConsumerQuotaLimit value)

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)

public ConsumerQuotaMetric.Builder setConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)

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)

public ConsumerQuotaMetric.Builder setDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit value)

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)

public ConsumerQuotaMetric.Builder setDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)

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)

public ConsumerQuotaMetric.Builder setDisplayName(String value)

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)

public ConsumerQuotaMetric.Builder setDisplayNameBytes(ByteString value)

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)

public ConsumerQuotaMetric.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

setMetric(String value)

public ConsumerQuotaMetric.Builder setMetric(String value)

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)

public ConsumerQuotaMetric.Builder setMetricBytes(ByteString value)

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)

public ConsumerQuotaMetric.Builder setName(String value)

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)

public ConsumerQuotaMetric.Builder setNameBytes(ByteString value)

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)

public ConsumerQuotaMetric.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

setUnit(String value)

public ConsumerQuotaMetric.Builder setUnit(String value)

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)

public ConsumerQuotaMetric.Builder setUnitBytes(ByteString value)

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)

public final ConsumerQuotaMetric.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides