Class ConsumerQuotaMetric.Builder (2.42.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.80.0 (latest)
- 2.78.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.72.0
- 2.70.0
- 2.68.0
- 2.67.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.7
- 2.2.8
publicstaticfinalclass ConsumerQuotaMetric.BuilderextendsGeneratedMessageV3.Builder<ConsumerQuotaMetric.Builder>implementsConsumerQuotaMetricOrBuilderConsumer quota settings for a quota metric.
Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaMetric
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ConsumerQuotaMetric.BuilderImplements
ConsumerQuotaMetricOrBuilderInherited Members
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 |
|
build()
publicConsumerQuotaMetricbuild()| Returns | |
|---|---|
| Type | Description |
ConsumerQuotaMetric |
|
buildPartial()
publicConsumerQuotaMetricbuildPartial()| Returns | |
|---|---|
| Type | Description |
ConsumerQuotaMetric |
|
clear()
publicConsumerQuotaMetric.Builderclear()| Returns | |
|---|---|
| Type | Description |
ConsumerQuotaMetric.Builder |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicConsumerQuotaMetric.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ConsumerQuotaMetric.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalConsumerQuotaMetric.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ConsumerQuotaMetric.Builder |
|
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 |
|
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 |
|
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 |
|