Send feedback
Class ConsumerQuotaLimit (2.21.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.21.0 keyboard_arrow_down
public final class ConsumerQuotaLimit extends GeneratedMessageV3 implements ConsumerQuotaLimitOrBuilder
Consumer quota settings for a quota limit.
Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaLimit
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ALLOWS_ADMIN_OVERRIDES_FIELD_NUMBER
public static final int ALLOWS_ADMIN_OVERRIDES_FIELD_NUMBER
Field Value Type Description int
IS_PRECISE_FIELD_NUMBER
public static final int IS_PRECISE_FIELD_NUMBER
Field Value Type Description int
METRIC_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER
Field Value Type Description int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value Type Description int
QUOTA_BUCKETS_FIELD_NUMBER
public static final int QUOTA_BUCKETS_FIELD_NUMBER
Field Value Type Description int
UNIT_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static ConsumerQuotaLimit getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static ConsumerQuotaLimit . Builder newBuilder ()
newBuilder(ConsumerQuotaLimit prototype)
public static ConsumerQuotaLimit . Builder newBuilder ( ConsumerQuotaLimit prototype )
public static ConsumerQuotaLimit parseDelimitedFrom ( InputStream input )
public static ConsumerQuotaLimit parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static ConsumerQuotaLimit parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConsumerQuotaLimit parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static ConsumerQuotaLimit parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConsumerQuotaLimit parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static ConsumerQuotaLimit parseFrom ( CodedInputStream input )
public static ConsumerQuotaLimit parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static ConsumerQuotaLimit parseFrom ( InputStream input )
public static ConsumerQuotaLimit parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static ConsumerQuotaLimit parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConsumerQuotaLimit parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<ConsumerQuotaLimit> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getAllowsAdminOverrides()
public boolean getAllowsAdminOverrides ()
Whether admin overrides are allowed on this limit
bool allows_admin_overrides = 7;
Returns Type Description boolean
The allowsAdminOverrides.
getDefaultInstanceForType()
public ConsumerQuotaLimit getDefaultInstanceForType ()
getIsPrecise()
public boolean getIsPrecise ()
Whether this limit is precise or imprecise.
bool is_precise = 3;
Returns Type Description boolean
The isPrecise.
getMetric()
public String getMetric ()
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()
public ByteString getMetricBytes ()
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()
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()
public ByteString getNameBytes ()
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()
public Parser<ConsumerQuotaLimit> getParserForType ()
Overrides
getQuotaBuckets(int index)
public QuotaBucket getQuotaBuckets ( int index )
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
getQuotaBucketsCount()
public int getQuotaBucketsCount ()
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()
public List<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;
getQuotaBucketsOrBuilder(int index)
public QuotaBucketOrBuilder getQuotaBucketsOrBuilder ( int index )
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
getQuotaBucketsOrBuilderList()
public List <? extends QuotaBucketOrBuilder > 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()
public int getSerializedSize ()
Returns Type Description int
Overrides
getUnit()
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()
public ByteString getUnitBytes ()
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()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public ConsumerQuotaLimit . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConsumerQuotaLimit . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public ConsumerQuotaLimit . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]