QuotaFailure
extends Message
in package
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
Table of Contents
Properties
- $violations : mixed
- Describes all quota violations.
Methods
- __construct() : mixed
- Constructor.
- getViolations() : RepeatedField
- Describes all quota violations.
- setViolations() : $this
- Describes all quota violations.
Properties
$violations
Describes all quota violations.
private
mixed
$violations
Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type array<\Google\Rpc\QuotaFailure\Violation>|\Google\Protobuf\Internal\RepeatedField $violations Describes all quota violations.}
getViolations()
Describes all quota violations.
public
getViolations() : RepeatedField
Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
Return values
RepeatedFieldsetViolations()
Describes all quota violations.
public
setViolations(array<string|int, Violation>|RepeatedField $var) : $this
Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
Parameters
- $var : array<string|int, Violation>|RepeatedField