public abstract class QuotaFailure extends Object
For example, if a daily limit was exceeded for the calling project, a service could respond
with a QuotaFailure detail containing the project id and the description of the quota limit that
was exceeded. If the calling project hasn't enabled the service in the developer console, then a
service could respond with the project id and set service_disabled to true.
Also see RetryInfo and Help types for other details about handling a quota
failure.
This information helps clients understand:
| Modifier and Type | Class and Description |
|---|---|
static class |
QuotaFailure.Builder
Builder for constructing QuotaFailure instances.
|
static class |
QuotaFailure.QuotaFailureViolation
QuotaFailureViolation describes a specific quota violation.
|
| Constructor and Description |
|---|
QuotaFailure() |
| Modifier and Type | Method and Description |
|---|---|
static QuotaFailure.Builder |
builder()
Creates a new builder for constructing QuotaFailure instances.
|
abstract List<QuotaFailure.QuotaFailureViolation> |
violations()
Describes all quota violations.
|
public abstract List<QuotaFailure.QuotaFailureViolation> violations()
This list contains details about each specific quota violation that occurred. Multiple violations can happen in a single request if multiple quota limits are exceeded simultaneously.
public static QuotaFailure.Builder builder()
Copyright © 2026. All rights reserved.