Enum QuotaOperation.QuotaMode (1.19.0)

public enum QuotaOperation.QuotaMode extends Enum<QuotaOperation.QuotaMode> implements ProtocolMessageEnum

Supported quota modes.

Protobuf enum google.api.servicecontrol.v1.QuotaOperation.QuotaMode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
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

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()