Class ConsumerQuotaLimit (2.39.0)

publicfinalclass ConsumerQuotaLimitextendsGeneratedMessageV3implementsConsumerQuotaLimitOrBuilder

Consumer quota settings for a quota limit.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaLimit

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

ALLOWS_ADMIN_OVERRIDES_FIELD_NUMBER

publicstaticfinalintALLOWS_ADMIN_OVERRIDES_FIELD_NUMBER
Field Value
Type Description
int

IS_PRECISE_FIELD_NUMBER

publicstaticfinalintIS_PRECISE_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

QUOTA_BUCKETS_FIELD_NUMBER

publicstaticfinalintQUOTA_BUCKETS_FIELD_NUMBER
Field Value
Type Description
int

SUPPORTED_LOCATIONS_FIELD_NUMBER

publicstaticfinalintSUPPORTED_LOCATIONS_FIELD_NUMBER
Field Value
Type Description
int

UNIT_FIELD_NUMBER

publicstaticfinalintUNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticConsumerQuotaLimitgetDefaultInstance()
Returns
Type Description
ConsumerQuotaLimit

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticConsumerQuotaLimit.BuildernewBuilder()
Returns
Type Description
ConsumerQuotaLimit.Builder

newBuilder(ConsumerQuotaLimit prototype)

publicstaticConsumerQuotaLimit.BuildernewBuilder(ConsumerQuotaLimitprototype)
Parameter
Name Description
prototype ConsumerQuotaLimit
Returns
Type Description
ConsumerQuotaLimit.Builder

parseDelimitedFrom(InputStream input)

publicstaticConsumerQuotaLimitparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ConsumerQuotaLimit
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticConsumerQuotaLimitparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
ConsumerQuotaLimit
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticConsumerQuotaLimitparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
ConsumerQuotaLimit
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticConsumerQuotaLimitparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ConsumerQuotaLimit
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticConsumerQuotaLimitparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ConsumerQuotaLimit
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticConsumerQuotaLimitparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ConsumerQuotaLimit
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAllowsAdminOverrides()

publicbooleangetAllowsAdminOverrides()

Whether admin overrides are allowed on this limit

bool allows_admin_overrides = 7;

Returns
Type Description
boolean

The allowsAdminOverrides.

getDefaultInstanceForType()

publicConsumerQuotaLimitgetDefaultInstanceForType()
Returns
Type Description
ConsumerQuotaLimit

getIsPrecise()

publicbooleangetIsPrecise()

Whether this limit is precise or imprecise.

bool is_precise = 3;

Returns
Type Description
boolean

The isPrecise.

getMetric()

publicStringgetMetric()

The name of the parent metric of this limit.

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

string metric = 8;

Returns
Type Description
String

The metric.

getMetricBytes()

publicByteStringgetMetricBytes()

The name of the parent metric of this limit.

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

string metric = 8;

Returns
Type Description
ByteString

The bytes for metric.

getName()

publicStringgetName()

The resource name of the quota limit.

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

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 limit.

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

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<ConsumerQuotaLimit>getParserForType()
Returns
Type Description
Parser<ConsumerQuotaLimit>
Overrides

getQuotaBuckets(int index)

publicQuotaBucketgetQuotaBuckets(intindex)

Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).

repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;

Parameter
Name Description
index int
Returns
Type Description
QuotaBucket

getQuotaBucketsCount()

publicintgetQuotaBucketsCount()

Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).

repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;

Returns
Type Description
int

getQuotaBucketsList()

publicList<QuotaBucket>getQuotaBucketsList()

Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).

repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;

Returns
Type Description
List<QuotaBucket>

getQuotaBucketsOrBuilder(int index)

publicQuotaBucketOrBuildergetQuotaBucketsOrBuilder(intindex)

Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).

repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;

Parameter
Name Description
index int
Returns
Type Description
QuotaBucketOrBuilder

getQuotaBucketsOrBuilderList()

publicList<?extendsQuotaBucketOrBuilder>getQuotaBucketsOrBuilderList()

Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).

repeated .google.api.serviceusage.v1beta1.QuotaBucket quota_buckets = 9;

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSupportedLocations(int index)

publicStringgetSupportedLocations(intindex)

List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.

repeated string supported_locations = 11;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The supportedLocations at the given index.

getSupportedLocationsBytes(int index)

publicByteStringgetSupportedLocationsBytes(intindex)

List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.

repeated string supported_locations = 11;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the supportedLocations at the given index.

getSupportedLocationsCount()

publicintgetSupportedLocationsCount()

List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.

repeated string supported_locations = 11;

Returns
Type Description
int

The count of supportedLocations.

getSupportedLocationsList()

publicProtocolStringListgetSupportedLocationsList()

List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.

repeated string supported_locations = 11;

Returns
Type Description
ProtocolStringList

A list containing the supportedLocations.

getUnit()

publicStringgetUnit()

The limit unit.

An example unit would be 1/{project}/{region} Note that {project} and {region} are not placeholders in this example; the literal characters { and } occur in the string.

string unit = 2;

Returns
Type Description
String

The unit.

getUnitBytes()

publicByteStringgetUnitBytes()

The limit unit.

An example unit would be 1/{project}/{region} Note that {project} and {region} are not placeholders in this example; the literal characters { and } occur in the string.

string unit = 2;

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

publicConsumerQuotaLimit.BuildernewBuilderForType()
Returns
Type Description
ConsumerQuotaLimit.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedConsumerQuotaLimit.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ConsumerQuotaLimit.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicConsumerQuotaLimit.BuildertoBuilder()
Returns
Type Description
ConsumerQuotaLimit.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.