Class ConsumerQuotaMetric.Builder (2.13.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit>
Returns
TypeDescription
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
NameDescription
valueConsumerQuotaLimit
Returns
TypeDescription
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
NameDescription
builderForValueConsumerQuotaLimit.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConsumerQuotaLimit
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConsumerQuotaLimit.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueConsumerQuotaLimit
Returns
TypeDescription
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
NameDescription
builderForValueConsumerQuotaLimit.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConsumerQuotaLimit
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConsumerQuotaLimit.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ConsumerQuotaLimit.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConsumerQuotaMetric.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConsumerQuotaMetric.Builder
Overrides

build()

public ConsumerQuotaMetric build()
Returns
TypeDescription
ConsumerQuotaMetric

buildPartial()

public ConsumerQuotaMetric buildPartial()
Returns
TypeDescription
ConsumerQuotaMetric

clear()

public ConsumerQuotaMetric.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConsumerQuotaMetric.Builder

clearDisplayName()

public ConsumerQuotaMetric.Builder clearDisplayName()

The display name of the metric. An example name would be: CPUs

string display_name = 2;

Returns
TypeDescription
ConsumerQuotaMetric.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ConsumerQuotaMetric.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConsumerQuotaMetric.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConsumerQuotaMetric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConsumerQuotaMetric.Builder
Overrides

clearUnit()

public ConsumerQuotaMetric.Builder clearUnit()

The units in which the metric value is reported.

string unit = 5;

Returns
TypeDescription
ConsumerQuotaMetric.Builder

This builder for chaining.

clone()

public ConsumerQuotaMetric.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder>

getDefaultInstanceForType()

public ConsumerQuotaMetric getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder>

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the metric. An example name would be: CPUs

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the metric. An example name would be: CPUs

string display_name = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getUnit()

public String getUnit()

The units in which the metric value is reported.

string unit = 5;

Returns
TypeDescription
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

The units in which the metric value is reported.

string unit = 5;

Returns
TypeDescription
ByteString

The bytes for unit.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConsumerQuotaMetric other)

public ConsumerQuotaMetric.Builder mergeFrom(ConsumerQuotaMetric other)
Parameter
NameDescription
otherConsumerQuotaMetric
Returns
TypeDescription
ConsumerQuotaMetric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConsumerQuotaMetric.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConsumerQuotaMetric.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConsumerQuotaMetric.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConsumerQuotaMetric.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConsumerQuotaMetric.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueConsumerQuotaLimit
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConsumerQuotaLimit.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConsumerQuotaLimit
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConsumerQuotaLimit.Builder
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ConsumerQuotaMetric.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConsumerQuotaMetric.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The metric to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for metric to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The unit to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for unit to set.

Returns
TypeDescription
ConsumerQuotaMetric.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConsumerQuotaMetric.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConsumerQuotaMetric.Builder
Overrides