googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Rpc
/
BadRequest.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
BadRequest.php
69 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 violations in a client request. This error type focuses on the |
| 13 | * syntactic aspects of the request. |
| 14 | * |
| 15 | * Generated from protobuf message <code>google.rpc.BadRequest</code> |
| 16 | */ |
| 17 | class BadRequest extends \Google\Protobuf\Internal\Message |
| 18 | { |
| 19 | /** |
| 20 | * Describes all violations in a client request. |
| 21 | * |
| 22 | * Generated from protobuf field <code>repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;</code> |
| 23 | */ |
| 24 | private $field_violations; |
| 25 | |
| 26 | /** |
| 27 | * Constructor. |
| 28 | * |
| 29 | * @param array $data { |
| 30 | * Optional. Data for populating the Message object. |
| 31 | * |
| 32 | * @type \Google\Rpc\BadRequest\FieldViolation[]|\Google\Protobuf\Internal\RepeatedField $field_violations |
| 33 | * Describes all violations in a client request. |
| 34 | * } |
| 35 | */ |
| 36 | public function __construct($data = NULL) { |
| 37 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); |
| 38 | parent::__construct($data); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Describes all violations in a client request. |
| 43 | * |
| 44 | * Generated from protobuf field <code>repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;</code> |
| 45 | * @return \Google\Protobuf\Internal\RepeatedField |
| 46 | */ |
| 47 | public function getFieldViolations() |
| 48 | { |
| 49 | return $this->field_violations; |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Describes all violations in a client request. |
| 54 | * |
| 55 | * Generated from protobuf field <code>repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;</code> |
| 56 | * @param \Google\Rpc\BadRequest\FieldViolation[]|\Google\Protobuf\Internal\RepeatedField $var |
| 57 | * @return $this |
| 58 | */ |
| 59 | public function setFieldViolations($var) |
| 60 | { |
| 61 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\BadRequest\FieldViolation::class); |
| 62 | $this->field_violations = $arr; |
| 63 | |
| 64 | return $this; |
| 65 | } |
| 66 | |
| 67 | } |
| 68 | |
| 69 |