QuotaFailure

interface QuotaFailure

Describes how a quota check failed.

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.

Types

Link copied to clipboard
interface Violation

A message type used to describe a single quota violation. For example, a daily quota or a custom quota that was exceeded.

Properties

Link copied to clipboard

Describes all quota violations.

Functions

Link copied to clipboard
Link copied to clipboard
fun QuotaFailure.copy(body: <Error class: unknown class>.() -> Unit = {}): QuotaFailure

Copies the original message, including unknown fields.