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(array $data = NULL)

Constructor.

RepeatedField
getViolations()

Describes all quota violations.

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

Describes all quota violations.

Details

at line 43
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type \Google\Rpc\QuotaFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $violations
      Describes all quota violations.

}

at line 54
RepeatedField getViolations()

Describes all quota violations.

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

Return Value

RepeatedField

at line 66
$this setViolations(Violation[]|RepeatedField $var)

Describes all quota violations.

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

Parameters

Violation[]|RepeatedField $var

Return Value

$this