Class ConsumerQuotaLimit (2.17.0)

public final class ConsumerQuotaLimit extends GeneratedMessageV3 implements ConsumerQuotaLimitOrBuilder

Consumer quota settings for a quota limit.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaLimit

Static Fields

ALLOWS_ADMIN_OVERRIDES_FIELD_NUMBER

public static final int ALLOWS_ADMIN_OVERRIDES_FIELD_NUMBER
Field Value
TypeDescription
int

IS_PRECISE_FIELD_NUMBER

public static final int IS_PRECISE_FIELD_NUMBER
Field Value
TypeDescription
int

METRIC_FIELD_NUMBER

public static final int METRIC_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTA_BUCKETS_FIELD_NUMBER

public static final int QUOTA_BUCKETS_FIELD_NUMBER
Field Value
TypeDescription
int

UNIT_FIELD_NUMBER

public static final int UNIT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConsumerQuotaLimit getDefaultInstance()
Returns
TypeDescription
ConsumerQuotaLimit

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ConsumerQuotaLimit.Builder newBuilder()
Returns
TypeDescription
ConsumerQuotaLimit.Builder

newBuilder(ConsumerQuotaLimit prototype)

public static ConsumerQuotaLimit.Builder newBuilder(ConsumerQuotaLimit prototype)
Parameter
NameDescription
prototypeConsumerQuotaLimit
Returns
TypeDescription
ConsumerQuotaLimit.Builder

parseDelimitedFrom(InputStream input)

public static ConsumerQuotaLimit parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConsumerQuotaLimit parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConsumerQuotaLimit parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConsumerQuotaLimit parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConsumerQuotaLimit parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConsumerQuotaLimit parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConsumerQuotaLimit parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConsumerQuotaLimit parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConsumerQuotaLimit parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConsumerQuotaLimit parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConsumerQuotaLimit parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConsumerQuotaLimit parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConsumerQuotaLimit
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConsumerQuotaLimit> parser()
Returns
TypeDescription
Parser<ConsumerQuotaLimit>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAllowsAdminOverrides()

public boolean getAllowsAdminOverrides()

Whether admin overrides are allowed on this limit

bool allows_admin_overrides = 7;

Returns
TypeDescription
boolean

The allowsAdminOverrides.

getDefaultInstanceForType()

public ConsumerQuotaLimit getDefaultInstanceForType()
Returns
TypeDescription
ConsumerQuotaLimit

getIsPrecise()

public boolean getIsPrecise()

Whether this limit is precise or imprecise.

bool is_precise = 3;

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

The bytes for metric.

getName()

public String 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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<ConsumerQuotaLimit> getParserForType()
Returns
TypeDescription
Parser<ConsumerQuotaLimit>
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
NameDescription
indexint
Returns
TypeDescription
QuotaBucket

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
TypeDescription
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;

Returns
TypeDescription
List<QuotaBucket>

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
NameDescription
indexint
Returns
TypeDescription
QuotaBucketOrBuilder

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
TypeDescription
List<? extends com.google.api.serviceusage.v1beta1.QuotaBucketOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnit()

public String 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
TypeDescription
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
TypeDescription
ByteString

The bytes for unit.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConsumerQuotaLimit.Builder newBuilderForType()
Returns
TypeDescription
ConsumerQuotaLimit.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConsumerQuotaLimit.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConsumerQuotaLimit.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConsumerQuotaLimit.Builder toBuilder()
Returns
TypeDescription
ConsumerQuotaLimit.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException