Google API Common Protos Client - Class QuotaFailure (4.8.2)

Reference documentation and code samples for the Google API Common Protos Client class 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.

Generated from protobuf message google.rpc.QuotaFailure

Namespace

Google \ Rpc

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ violations array<Google\Rpc\QuotaFailure\Violation>

Describes all quota violations.

getViolations

Describes all quota violations.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setViolations

Describes all quota violations.

Parameter
Name Description
var array<Google\Rpc\QuotaFailure\Violation>
Returns
Type Description
$this