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
IS_PRECISE_FIELD_NUMBER
public static final int IS_PRECISE_FIELD_NUMBER
Field Value
METRIC_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
QUOTA_BUCKETS_FIELD_NUMBER
public static final int QUOTA_BUCKETS_FIELD_NUMBER
Field Value
UNIT_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ConsumerQuotaLimit getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ConsumerQuotaLimit.Builder newBuilder()
Returns
newBuilder(ConsumerQuotaLimit prototype)
public static ConsumerQuotaLimit.Builder newBuilder(ConsumerQuotaLimit prototype)
Parameter
Returns
public static ConsumerQuotaLimit parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConsumerQuotaLimit parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ConsumerQuotaLimit parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConsumerQuotaLimit parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ConsumerQuotaLimit parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConsumerQuotaLimit parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConsumerQuotaLimit parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ConsumerQuotaLimit parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConsumerQuotaLimit parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConsumerQuotaLimit parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ConsumerQuotaLimit parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConsumerQuotaLimit parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ConsumerQuotaLimit> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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()
Returns
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
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
getParserForType()
public Parser<ConsumerQuotaLimit> getParserForType()
Returns
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
Returns
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
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
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
Returns
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
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ConsumerQuotaLimit.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConsumerQuotaLimit.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ConsumerQuotaLimit.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions