googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Rpc
/
QuotaFailure.php
googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Rpc
Last commit date
BadRequest
3 years ago
Help
3 years ago
PreconditionFailure
3 years ago
QuotaFailure
3 years ago
BadRequest.php
3 years ago
BadRequest_FieldViolation.php
3 years ago
Code.php
3 years ago
DebugInfo.php
3 years ago
ErrorInfo.php
3 years ago
Help.php
3 years ago
Help_Link.php
3 years ago
LocalizedMessage.php
3 years ago
PreconditionFailure.php
3 years ago
PreconditionFailure_Violation.php
3 years ago
QuotaFailure.php
3 years ago
QuotaFailure_Violation.php
3 years ago
RequestInfo.php
3 years ago
ResourceInfo.php
3 years ago
RetryInfo.php
3 years ago
Status.php
3 years ago
QuotaFailure.php
76 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/rpc/error_details.proto |
| 4 | |
| 5 | namespace Google\Rpc; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * Describes how a quota check failed. |
| 13 | * For example if a daily limit was exceeded for the calling project, |
| 14 | * a service could respond with a QuotaFailure detail containing the project |
| 15 | * id and the description of the quota limit that was exceeded. If the |
| 16 | * calling project hasn't enabled the service in the developer console, then |
| 17 | * a service could respond with the project id and set `service_disabled` |
| 18 | * to true. |
| 19 | * Also see RetryInfo and Help types for other details about handling a |
| 20 | * quota failure. |
| 21 | * |
| 22 | * Generated from protobuf message <code>google.rpc.QuotaFailure</code> |
| 23 | */ |
| 24 | class QuotaFailure extends \Google\Protobuf\Internal\Message |
| 25 | { |
| 26 | /** |
| 27 | * Describes all quota violations. |
| 28 | * |
| 29 | * Generated from protobuf field <code>repeated .google.rpc.QuotaFailure.Violation violations = 1;</code> |
| 30 | */ |
| 31 | private $violations; |
| 32 | |
| 33 | /** |
| 34 | * Constructor. |
| 35 | * |
| 36 | * @param array $data { |
| 37 | * Optional. Data for populating the Message object. |
| 38 | * |
| 39 | * @type \Google\Rpc\QuotaFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $violations |
| 40 | * Describes all quota violations. |
| 41 | * } |
| 42 | */ |
| 43 | public function __construct($data = NULL) { |
| 44 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); |
| 45 | parent::__construct($data); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Describes all quota violations. |
| 50 | * |
| 51 | * Generated from protobuf field <code>repeated .google.rpc.QuotaFailure.Violation violations = 1;</code> |
| 52 | * @return \Google\Protobuf\Internal\RepeatedField |
| 53 | */ |
| 54 | public function getViolations() |
| 55 | { |
| 56 | return $this->violations; |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Describes all quota violations. |
| 61 | * |
| 62 | * Generated from protobuf field <code>repeated .google.rpc.QuotaFailure.Violation violations = 1;</code> |
| 63 | * @param \Google\Rpc\QuotaFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $var |
| 64 | * @return $this |
| 65 | */ |
| 66 | public function setViolations($var) |
| 67 | { |
| 68 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\QuotaFailure\Violation::class); |
| 69 | $this->violations = $arr; |
| 70 | |
| 71 | return $this; |
| 72 | } |
| 73 | |
| 74 | } |
| 75 | |
| 76 |