Class ConsumerQuotaMetric (2.53.0)

publicfinalclass ConsumerQuotaMetricextendsGeneratedMessageV3implementsConsumerQuotaMetricOrBuilder

Consumer quota settings for a quota metric.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaMetric

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

CONSUMER_QUOTA_LIMITS_FIELD_NUMBER

publicstaticfinalintCONSUMER_QUOTA_LIMITS_FIELD_NUMBER
Field Value
Type Description
int

DESCENDANT_CONSUMER_QUOTA_LIMITS_FIELD_NUMBER

publicstaticfinalintDESCENDANT_CONSUMER_QUOTA_LIMITS_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

METRIC_FIELD_NUMBER

publicstaticfinalintMETRIC_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

UNIT_FIELD_NUMBER

publicstaticfinalintUNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticConsumerQuotaMetricgetDefaultInstance()
Returns
Type Description
ConsumerQuotaMetric

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticConsumerQuotaMetric.BuildernewBuilder()
Returns
Type Description
ConsumerQuotaMetric.Builder

newBuilder(ConsumerQuotaMetric prototype)

publicstaticConsumerQuotaMetric.BuildernewBuilder(ConsumerQuotaMetricprototype)
Parameter
Name Description
prototype ConsumerQuotaMetric
Returns
Type Description
ConsumerQuotaMetric.Builder

parseDelimitedFrom(InputStream input)

publicstaticConsumerQuotaMetricparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticConsumerQuotaMetricparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticConsumerQuotaMetricparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticConsumerQuotaMetricparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticConsumerQuotaMetricparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticConsumerQuotaMetricparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticConsumerQuotaMetricparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticConsumerQuotaMetricparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticConsumerQuotaMetricparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticConsumerQuotaMetricparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticConsumerQuotaMetricparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticConsumerQuotaMetricparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerQuotaMetric
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<ConsumerQuotaMetric>parser()
Returns
Type Description
Parser<ConsumerQuotaMetric>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConsumerQuotaLimits(int index)

publicConsumerQuotaLimitgetConsumerQuotaLimits(intindex)

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

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

Parameter
Name Description
index int
Returns
Type Description
ConsumerQuotaLimit

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

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>

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.

getParserForType()

publicParser<ConsumerQuotaMetric>getParserForType()
Returns
Type Description
Parser<ConsumerQuotaMetric>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicConsumerQuotaMetric.BuildernewBuilderForType()
Returns
Type Description
ConsumerQuotaMetric.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedConsumerQuotaMetric.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ConsumerQuotaMetric.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicConsumerQuotaMetric.BuildertoBuilder()
Returns
Type Description
ConsumerQuotaMetric.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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

Last updated 2025年11月19日 UTC.