googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Rpc
/
PreconditionFailure.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
PreconditionFailure.php
71 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 what preconditions have failed. |
| 13 | * For example, if an RPC failed because it required the Terms of Service to be |
| 14 | * acknowledged, it could list the terms of service violation in the |
| 15 | * PreconditionFailure message. |
| 16 | * |
| 17 | * Generated from protobuf message <code>google.rpc.PreconditionFailure</code> |
| 18 | */ |
| 19 | class PreconditionFailure extends \Google\Protobuf\Internal\Message |
| 20 | { |
| 21 | /** |
| 22 | * Describes all precondition violations. |
| 23 | * |
| 24 | * Generated from protobuf field <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code> |
| 25 | */ |
| 26 | private $violations; |
| 27 | |
| 28 | /** |
| 29 | * Constructor. |
| 30 | * |
| 31 | * @param array $data { |
| 32 | * Optional. Data for populating the Message object. |
| 33 | * |
| 34 | * @type \Google\Rpc\PreconditionFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $violations |
| 35 | * Describes all precondition violations. |
| 36 | * } |
| 37 | */ |
| 38 | public function __construct($data = NULL) { |
| 39 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); |
| 40 | parent::__construct($data); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Describes all precondition violations. |
| 45 | * |
| 46 | * Generated from protobuf field <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code> |
| 47 | * @return \Google\Protobuf\Internal\RepeatedField |
| 48 | */ |
| 49 | public function getViolations() |
| 50 | { |
| 51 | return $this->violations; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Describes all precondition violations. |
| 56 | * |
| 57 | * Generated from protobuf field <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code> |
| 58 | * @param \Google\Rpc\PreconditionFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $var |
| 59 | * @return $this |
| 60 | */ |
| 61 | public function setViolations($var) |
| 62 | { |
| 63 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\PreconditionFailure\Violation::class); |
| 64 | $this->violations = $arr; |
| 65 | |
| 66 | return $this; |
| 67 | } |
| 68 | |
| 69 | } |
| 70 | |
| 71 |