Send feedback
Enum QuotaOperation.QuotaMode (1.72.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public enum QuotaOperation . QuotaMode extends Enum<QuotaOperation . QuotaMode > implements ProtocolMessageEnum
Supported quota modes.
Protobuf enum google.api.servicecontrol.v1.QuotaOperation.QuotaMode
Static Fields
Name
Description
ADJUST_ONLY
The operation allocates quota for the amount specified in the service
configuration or specified using the quota metrics. If the requested
amount is higher than the available quota, request does not fail and
remaining quota would become negative (going over the limit).
Not supported for Rate Quota.
ADJUST_ONLY = 5;
ADJUST_ONLY_VALUE
The operation allocates quota for the amount specified in the service
configuration or specified using the quota metrics. If the requested
amount is higher than the available quota, request does not fail and
remaining quota would become negative (going over the limit).
Not supported for Rate Quota.
ADJUST_ONLY = 5;
BEST_EFFORT
The operation allocates quota for the amount specified in the service
configuration or specified using the quota metrics. If the amount is
higher than the available quota, request does not fail but all available
quota will be allocated.
For rate quota, BEST_EFFORT will continue to deduct from other groups
even if one does not have enough quota. For allocation, it will find the
minimum available amount across all groups and deduct that amount from
all the affected groups.
BEST_EFFORT = 2;
BEST_EFFORT_VALUE
The operation allocates quota for the amount specified in the service
configuration or specified using the quota metrics. If the amount is
higher than the available quota, request does not fail but all available
quota will be allocated.
For rate quota, BEST_EFFORT will continue to deduct from other groups
even if one does not have enough quota. For allocation, it will find the
minimum available amount across all groups and deduct that amount from
all the affected groups.
BEST_EFFORT = 2;
CHECK_ONLY
For AllocateQuota request, only checks if there is enough quota
available and does not change the available quota. No lock is placed on
the available quota either.
CHECK_ONLY = 3;
CHECK_ONLY_VALUE
For AllocateQuota request, only checks if there is enough quota
available and does not change the available quota. No lock is placed on
the available quota either.
CHECK_ONLY = 3;
NORMAL
For AllocateQuota request, allocates quota for the amount specified in
the service configuration or specified using the quota metrics. If the
amount is higher than the available quota, allocation error will be
returned and no quota will be allocated.
If multiple quotas are part of the request, and one fails, none of the
quotas are allocated or released.
NORMAL = 1;
NORMAL_VALUE
For AllocateQuota request, allocates quota for the amount specified in
the service configuration or specified using the quota metrics. If the
amount is higher than the available quota, allocation error will be
returned and no quota will be allocated.
If multiple quotas are part of the request, and one fails, none of the
quotas are allocated or released.
NORMAL = 1;
QUERY_ONLY
Unimplemented. When used in AllocateQuotaRequest, this returns the
effective quota limit(s) in the response, and no quota check will be
performed. Not supported for other requests, and even for
AllocateQuotaRequest, this is currently supported only for allowlisted
services.
QUERY_ONLY = 4;
QUERY_ONLY_VALUE
Unimplemented. When used in AllocateQuotaRequest, this returns the
effective quota limit(s) in the response, and no quota check will be
performed. Not supported for other requests, and even for
AllocateQuotaRequest, this is currently supported only for allowlisted
services.
QUERY_ONLY = 4;
UNRECOGNIZED
UNSPECIFIED
Guard against implicit default. Must not be used.
UNSPECIFIED = 0;
UNSPECIFIED_VALUE
Guard against implicit default. Must not be used.
UNSPECIFIED = 0;
Static Methods
Name
Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)
Deprecated. Use #forNumber(int) instead.
valueOf(String name)
values()
Methods
Name
Description
getDescriptorForType()
getNumber()
getValueDescriptor()
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-08-16 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-08-16 UTC."],[],[],null,["# Enum QuotaOperation.QuotaMode (1.72.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.72.0 (latest)](/java/docs/reference/google-cloud-service-control/latest/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.70.0](/java/docs/reference/google-cloud-service-control/1.70.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.68.0](/java/docs/reference/google-cloud-service-control/1.68.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.67.0](/java/docs/reference/google-cloud-service-control/1.67.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.64.0](/java/docs/reference/google-cloud-service-control/1.64.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.63.0](/java/docs/reference/google-cloud-service-control/1.63.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.62.0](/java/docs/reference/google-cloud-service-control/1.62.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.60.0](/java/docs/reference/google-cloud-service-control/1.60.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.59.0](/java/docs/reference/google-cloud-service-control/1.59.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.58.0](/java/docs/reference/google-cloud-service-control/1.58.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.57.0](/java/docs/reference/google-cloud-service-control/1.57.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.56.0](/java/docs/reference/google-cloud-service-control/1.56.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.55.0](/java/docs/reference/google-cloud-service-control/1.55.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.54.0](/java/docs/reference/google-cloud-service-control/1.54.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.53.0](/java/docs/reference/google-cloud-service-control/1.53.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.52.0](/java/docs/reference/google-cloud-service-control/1.52.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.51.0](/java/docs/reference/google-cloud-service-control/1.51.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.49.0](/java/docs/reference/google-cloud-service-control/1.49.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.48.0](/java/docs/reference/google-cloud-service-control/1.48.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.47.0](/java/docs/reference/google-cloud-service-control/1.47.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.46.0](/java/docs/reference/google-cloud-service-control/1.46.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.45.0](/java/docs/reference/google-cloud-service-control/1.45.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.44.0](/java/docs/reference/google-cloud-service-control/1.44.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.43.0](/java/docs/reference/google-cloud-service-control/1.43.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.42.0](/java/docs/reference/google-cloud-service-control/1.42.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.41.0](/java/docs/reference/google-cloud-service-control/1.41.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.40.0](/java/docs/reference/google-cloud-service-control/1.40.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.39.0](/java/docs/reference/google-cloud-service-control/1.39.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.37.0](/java/docs/reference/google-cloud-service-control/1.37.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.36.0](/java/docs/reference/google-cloud-service-control/1.36.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.35.0](/java/docs/reference/google-cloud-service-control/1.35.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.34.0](/java/docs/reference/google-cloud-service-control/1.34.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.33.0](/java/docs/reference/google-cloud-service-control/1.33.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.32.0](/java/docs/reference/google-cloud-service-control/1.32.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.31.0](/java/docs/reference/google-cloud-service-control/1.31.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.30.0](/java/docs/reference/google-cloud-service-control/1.30.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.29.0](/java/docs/reference/google-cloud-service-control/1.29.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.28.0](/java/docs/reference/google-cloud-service-control/1.28.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.27.0](/java/docs/reference/google-cloud-service-control/1.27.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.24.0](/java/docs/reference/google-cloud-service-control/1.24.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.23.0](/java/docs/reference/google-cloud-service-control/1.23.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.22.0](/java/docs/reference/google-cloud-service-control/1.22.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.21.0](/java/docs/reference/google-cloud-service-control/1.21.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.20.0](/java/docs/reference/google-cloud-service-control/1.20.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.19.0](/java/docs/reference/google-cloud-service-control/1.19.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.18.0](/java/docs/reference/google-cloud-service-control/1.18.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.17.0](/java/docs/reference/google-cloud-service-control/1.17.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.16.0](/java/docs/reference/google-cloud-service-control/1.16.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.15.0](/java/docs/reference/google-cloud-service-control/1.15.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.14.0](/java/docs/reference/google-cloud-service-control/1.14.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.13.0](/java/docs/reference/google-cloud-service-control/1.13.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.12.0](/java/docs/reference/google-cloud-service-control/1.12.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.11.0](/java/docs/reference/google-cloud-service-control/1.11.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.9.0](/java/docs/reference/google-cloud-service-control/1.9.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.8.0](/java/docs/reference/google-cloud-service-control/1.8.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.7.0](/java/docs/reference/google-cloud-service-control/1.7.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.6.0](/java/docs/reference/google-cloud-service-control/1.6.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.5.0](/java/docs/reference/google-cloud-service-control/1.5.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.4.0](/java/docs/reference/google-cloud-service-control/1.4.0/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode)\n- [1.1.10](/java/docs/reference/google-cloud-service-control/1.1.10/com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode) \n\n public enum QuotaOperation.QuotaMode extends Enum\u003cQuotaOperation.QuotaMode\u003e implements ProtocolMessageEnum\n\nSupported quota modes.\n\nProtobuf enum `google.api.servicecontrol.v1.QuotaOperation.QuotaMode` \n\nImplements\n----------\n\n[ProtocolMessageEnum](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ProtocolMessageEnum.html) \n\nInherited Members\n-----------------\n\n[Enum.\\\u003cT\\\u003evalueOf(Class\\\u003cT\\\u003e,String)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf-java.lang.Class-java.lang.String-) \n[Enum.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#clone--) \n[Enum.compareTo(E)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#compareTo-E-) \n[Enum.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#equals-java.lang.Object-) \n[Enum.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#finalize--) \n[Enum.getDeclaringClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#getDeclaringClass--) \n[Enum.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#hashCode--) \n[Enum.name()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#name--) \n[Enum.ordinal()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#ordinal--) \n[Enum.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#toString--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)"]]