Reference documentation and code samples for the Google Cloud Service Control V1 Client class QuotaMode.
Supported quota modes.
Protobuf type google.api.servicecontrol.v1.QuotaOperation.QuotaMode
Namespace
Google \ Cloud \ ServiceControl \ V1 \ QuotaOperation
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
UNSPECIFIED
Value: 0
Guard against implicit default. Must not be used.
Generated from protobuf enum UNSPECIFIED = 0;
NORMAL
Value: 1
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.
Generated from protobuf enum NORMAL = 1;
BEST_EFFORT
Value: 2
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.
Generated from protobuf enum BEST_EFFORT = 2;
CHECK_ONLY
Value: 3
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.
Generated from protobuf enum CHECK_ONLY = 3;
QUERY_ONLY
Value: 4
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.
Generated from protobuf enum QUERY_ONLY = 4;
ADJUST_ONLY
Value: 5
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).
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Service Control V1 Client - Class QuotaMode (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-control/latest/V1.QuotaOperation.QuotaMode)\n- [2.0.3](/php/docs/reference/cloud-service-control/2.0.3/V1.QuotaOperation.QuotaMode)\n- [1.4.4](/php/docs/reference/cloud-service-control/1.4.4/V1.QuotaOperation.QuotaMode)\n- [1.3.0](/php/docs/reference/cloud-service-control/1.3.0/V1.QuotaOperation.QuotaMode)\n- [1.2.1](/php/docs/reference/cloud-service-control/1.2.1/V1.QuotaOperation.QuotaMode)\n- [1.1.1](/php/docs/reference/cloud-service-control/1.1.1/V1.QuotaOperation.QuotaMode)\n- [1.0.6](/php/docs/reference/cloud-service-control/1.0.6/V1.QuotaOperation.QuotaMode) \nReference documentation and code samples for the Google Cloud Service Control V1 Client class QuotaMode.\n\nSupported quota modes.\n\nProtobuf type `google.api.servicecontrol.v1.QuotaOperation.QuotaMode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceControl \\\\ V1 \\\\ QuotaOperation\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### UNSPECIFIED\n\n Value: 0\n\nGuard against implicit default. Must not be used.\n\nGenerated from protobuf enum `UNSPECIFIED = 0;`\n\n### NORMAL\n\n Value: 1\n\nFor AllocateQuota request, allocates quota for the amount specified in\nthe service configuration or specified using the quota metrics. If the\namount is higher than the available quota, allocation error will be\nreturned and no quota will be allocated.\n\nIf multiple quotas are part of the request, and one fails, none of the\nquotas are allocated or released.\n\nGenerated from protobuf enum `NORMAL = 1;`\n\n### BEST_EFFORT\n\n Value: 2\n\nThe operation allocates quota for the amount specified in the service\nconfiguration or specified using the quota metrics. If the amount is\nhigher than the available quota, request does not fail but all available\nquota will be allocated.\n\nFor rate quota, BEST_EFFORT will continue to deduct from other groups\neven if one does not have enough quota. For allocation, it will find the\nminimum available amount across all groups and deduct that amount from\nall the affected groups.\n\nGenerated from protobuf enum `BEST_EFFORT = 2;`\n\n### CHECK_ONLY\n\n Value: 3\n\nFor AllocateQuota request, only checks if there is enough quota\navailable and does not change the available quota. No lock is placed on\nthe available quota either.\n\nGenerated from protobuf enum `CHECK_ONLY = 3;`\n\n### QUERY_ONLY\n\n Value: 4\n\nUnimplemented. When used in AllocateQuotaRequest, this returns the\neffective quota limit(s) in the response, and no quota check will be\nperformed. Not supported for other requests, and even for\nAllocateQuotaRequest, this is currently supported only for allowlisted\nservices.\n\nGenerated from protobuf enum `QUERY_ONLY = 4;`\n\n### ADJUST_ONLY\n\n Value: 5\n\nThe operation allocates quota for the amount specified in the service\nconfiguration or specified using the quota metrics. If the requested\namount is higher than the available quota, request does not fail and\nremaining quota would become negative (going over the limit).\n\nNot supported for Rate Quota.\n\nGenerated from protobuf enum `ADJUST_ONLY = 5;`"]]