class QuotaFailure extends Message

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 RetryDetail and Help types for other details about handling a quota failure.

Generated from protobuf message google.rpc.QuotaFailure

Methods

__construct()

No description

RepeatedField
getViolations()

Describes all quota violations.

$this
setViolations(QuotaFailure_Violation[]|RepeatedField $var)

Describes all quota violations.

Details

at line 33
__construct()

at line 44
RepeatedField getViolations()

Describes all quota violations.

Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1;

Return Value

RepeatedField

at line 56
$this setViolations(QuotaFailure_Violation[]|RepeatedField $var)

Describes all quota violations.

Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameters

QuotaFailure_Violation[]|RepeatedField $var

Return Value

$this