PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Rpc / BadRequest / FieldViolation.php
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Rpc / BadRequest Last commit date
FieldViolation.php 3 years ago
FieldViolation.php
113 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\BadRequest;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * A message type used to describe a single bad request field.
13 *
14 * Generated from protobuf message <code>google.rpc.BadRequest.FieldViolation</code>
15 */
16 class FieldViolation extends \Google\Protobuf\Internal\Message
17 {
18 /**
19 * A path leading to a field in the request body. The value will be a
20 * sequence of dot-separated identifiers that identify a protocol buffer
21 * field. E.g., "field_violations.field" would identify this field.
22 *
23 * Generated from protobuf field <code>string field = 1;</code>
24 */
25 protected $field = '';
26 /**
27 * A description of why the request element is bad.
28 *
29 * Generated from protobuf field <code>string description = 2;</code>
30 */
31 protected $description = '';
32
33 /**
34 * Constructor.
35 *
36 * @param array $data {
37 * Optional. Data for populating the Message object.
38 *
39 * @type string $field
40 * A path leading to a field in the request body. The value will be a
41 * sequence of dot-separated identifiers that identify a protocol buffer
42 * field. E.g., "field_violations.field" would identify this field.
43 * @type string $description
44 * A description of why the request element is bad.
45 * }
46 */
47 public function __construct($data = NULL) {
48 \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
49 parent::__construct($data);
50 }
51
52 /**
53 * A path leading to a field in the request body. The value will be a
54 * sequence of dot-separated identifiers that identify a protocol buffer
55 * field. E.g., "field_violations.field" would identify this field.
56 *
57 * Generated from protobuf field <code>string field = 1;</code>
58 * @return string
59 */
60 public function getField()
61 {
62 return $this->field;
63 }
64
65 /**
66 * A path leading to a field in the request body. The value will be a
67 * sequence of dot-separated identifiers that identify a protocol buffer
68 * field. E.g., "field_violations.field" would identify this field.
69 *
70 * Generated from protobuf field <code>string field = 1;</code>
71 * @param string $var
72 * @return $this
73 */
74 public function setField($var)
75 {
76 GPBUtil::checkString($var, True);
77 $this->field = $var;
78
79 return $this;
80 }
81
82 /**
83 * A description of why the request element is bad.
84 *
85 * Generated from protobuf field <code>string description = 2;</code>
86 * @return string
87 */
88 public function getDescription()
89 {
90 return $this->description;
91 }
92
93 /**
94 * A description of why the request element is bad.
95 *
96 * Generated from protobuf field <code>string description = 2;</code>
97 * @param string $var
98 * @return $this
99 */
100 public function setDescription($var)
101 {
102 GPBUtil::checkString($var, True);
103 $this->description = $var;
104
105 return $this;
106 }
107
108 }
109
110 // Adding a class alias for backwards compatibility with the previous class name.
111 class_alias(FieldViolation::class, \Google\Rpc\BadRequest_FieldViolation::class);
112
113