public final class ProducerQuotaPolicy extends com.google.protobuf.GeneratedMessageV3 implements ProducerQuotaPolicyOrBuilder
Quota policy created by service producer.Protobuf type
google.api.serviceusage.v1beta1.ProducerQuotaPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
ProducerQuotaPolicy.Builder
Quota policy created by service producer.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINER_FIELD_NUMBER |
static int |
DIMENSIONS_FIELD_NUMBER |
static int |
METRIC_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
POLICY_VALUE_FIELD_NUMBER |
static int |
UNIT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDimensions(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
boolean |
equals(Object obj) |
String |
getContainer()
The cloud resource container at which the quota policy is created.
|
com.google.protobuf.ByteString |
getContainerBytes()
The cloud resource container at which the quota policy is created.
|
static ProducerQuotaPolicy |
getDefaultInstance() |
ProducerQuotaPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getDimensions()
Deprecated.
|
int |
getDimensionsCount()
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
Map<String,String> |
getDimensionsMap()
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
String |
getDimensionsOrDefault(String key,
String defaultValue)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
String |
getDimensionsOrThrow(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
String |
getMetric()
The name of the metric to which this policy applies.
|
com.google.protobuf.ByteString |
getMetricBytes()
The name of the metric to which this policy applies.
|
String |
getName()
The resource name of the policy.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the policy.
|
com.google.protobuf.Parser<ProducerQuotaPolicy> |
getParserForType() |
long |
getPolicyValue()
The quota policy value.
|
int |
getSerializedSize() |
String |
getUnit()
The limit unit of the limit to which this policy applies.
|
com.google.protobuf.ByteString |
getUnitBytes()
The limit unit of the limit to which this policy applies.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static ProducerQuotaPolicy.Builder |
newBuilder() |
static ProducerQuotaPolicy.Builder |
newBuilder(ProducerQuotaPolicy prototype) |
ProducerQuotaPolicy.Builder |
newBuilderForType() |
protected ProducerQuotaPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ProducerQuotaPolicy |
parseDelimitedFrom(InputStream input) |
static ProducerQuotaPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProducerQuotaPolicy |
parseFrom(byte[] data) |
static ProducerQuotaPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProducerQuotaPolicy |
parseFrom(ByteBuffer data) |
static ProducerQuotaPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProducerQuotaPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static ProducerQuotaPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProducerQuotaPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ProducerQuotaPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProducerQuotaPolicy |
parseFrom(InputStream input) |
static ProducerQuotaPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ProducerQuotaPolicy> |
parser() |
ProducerQuotaPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int POLICY_VALUE_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
The resource name of the policy. This name is generated by the server when the policy is created. Example names would be: `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
string name = 1;getName in interface ProducerQuotaPolicyOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name of the policy. This name is generated by the server when the policy is created. Example names would be: `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
string name = 1;getNameBytes in interface ProducerQuotaPolicyOrBuilderpublic long getPolicyValue()
The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;getPolicyValue in interface ProducerQuotaPolicyOrBuilderpublic int getDimensionsCount()
ProducerQuotaPolicyOrBuilder
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, a policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in {brackets} in the unit (besides {project} or
{user}) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota policies
that apply only to a specific user.
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;getDimensionsCount in interface ProducerQuotaPolicyOrBuilderpublic boolean containsDimensions(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, a policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in {brackets} in the unit (besides {project} or
{user}) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota policies
that apply only to a specific user.
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;containsDimensions in interface ProducerQuotaPolicyOrBuilder@Deprecated public Map<String,String> getDimensions()
getDimensionsMap() instead.getDimensions in interface ProducerQuotaPolicyOrBuilderpublic Map<String,String> getDimensionsMap()
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, a policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in {brackets} in the unit (besides {project} or
{user}) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota policies
that apply only to a specific user.
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;getDimensionsMap in interface ProducerQuotaPolicyOrBuilderpublic String getDimensionsOrDefault(String key, String defaultValue)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, a policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in {brackets} in the unit (besides {project} or
{user}) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota policies
that apply only to a specific user.
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;getDimensionsOrDefault in interface ProducerQuotaPolicyOrBuilderpublic String getDimensionsOrThrow(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, a policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in {brackets} in the unit (besides {project} or
{user}) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota policies
that apply only to a specific user.
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;getDimensionsOrThrow in interface ProducerQuotaPolicyOrBuilderpublic String getMetric()
The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;getMetric in interface ProducerQuotaPolicyOrBuilderpublic com.google.protobuf.ByteString getMetricBytes()
The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;getMetricBytes in interface ProducerQuotaPolicyOrBuilderpublic String getUnit()
The limit unit of the limit to which this policy applies.
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 = 5;getUnit in interface ProducerQuotaPolicyOrBuilderpublic com.google.protobuf.ByteString getUnitBytes()
The limit unit of the limit to which this policy applies.
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 = 5;getUnitBytes in interface ProducerQuotaPolicyOrBuilderpublic String getContainer()
The cloud resource container at which the quota policy is created. The
format is `{container_type}/{container_number}`
string container = 6;getContainer in interface ProducerQuotaPolicyOrBuilderpublic com.google.protobuf.ByteString getContainerBytes()
The cloud resource container at which the quota policy is created. The
format is `{container_type}/{container_number}`
string container = 6;getContainerBytes in interface ProducerQuotaPolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ProducerQuotaPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProducerQuotaPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProducerQuotaPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProducerQuotaPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProducerQuotaPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProducerQuotaPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProducerQuotaPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static ProducerQuotaPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ProducerQuotaPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ProducerQuotaPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ProducerQuotaPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ProducerQuotaPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ProducerQuotaPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ProducerQuotaPolicy.Builder newBuilder()
public static ProducerQuotaPolicy.Builder newBuilder(ProducerQuotaPolicy prototype)
public ProducerQuotaPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ProducerQuotaPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ProducerQuotaPolicy getDefaultInstance()
public static com.google.protobuf.Parser<ProducerQuotaPolicy> parser()
public com.google.protobuf.Parser<ProducerQuotaPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ProducerQuotaPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.