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)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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 | |
SUPPORTED_LOCATIONS_FIELD_NUMBER
public static final int SUPPORTED_LOCATIONS_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
getSupportedLocations(int index)
public String getSupportedLocations(int index)
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)
public ByteString getSupportedLocationsBytes(int index)
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()
public int getSupportedLocationsCount()
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()
public ProtocolStringList getSupportedLocationsList()
List of all supported locations.
This field is present only if the limit has a {region} or {zone} dimension.
repeated string supported_locations = 11;
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