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 / ErrorInfo.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
ErrorInfo.php
210 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 the cause of the error with structured details.
13 * Example of an error when contacting the "pubsub.googleapis.com" API when it
14 * is not enabled:
15 * { "reason": "API_DISABLED"
16 * "domain": "googleapis.com"
17 * "metadata": {
18 * "resource": "projects/123",
19 * "service": "pubsub.googleapis.com"
20 * }
21 * }
22 * This response indicates that the pubsub.googleapis.com API is not enabled.
23 * Example of an error that is returned when attempting to create a Spanner
24 * instance in a region that is out of stock:
25 * { "reason": "STOCKOUT"
26 * "domain": "spanner.googleapis.com",
27 * "metadata": {
28 * "availableRegions": "us-central1,us-east2"
29 * }
30 * }
31 *
32 * Generated from protobuf message <code>google.rpc.ErrorInfo</code>
33 */
34 class ErrorInfo extends \Google\Protobuf\Internal\Message
35 {
36 /**
37 * The reason of the error. This is a constant value that identifies the
38 * proximate cause of the error. Error reasons are unique within a particular
39 * domain of errors. This should be at most 63 characters and match
40 * /[A-Z0-9_]+/.
41 *
42 * Generated from protobuf field <code>string reason = 1;</code>
43 */
44 protected $reason = '';
45 /**
46 * The logical grouping to which the "reason" belongs. The error domain
47 * is typically the registered service name of the tool or product that
48 * generates the error. Example: "pubsub.googleapis.com". If the error is
49 * generated by some common infrastructure, the error domain must be a
50 * globally unique value that identifies the infrastructure. For Google API
51 * infrastructure, the error domain is "googleapis.com".
52 *
53 * Generated from protobuf field <code>string domain = 2;</code>
54 */
55 protected $domain = '';
56 /**
57 * Additional structured details about this error.
58 * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
59 * length. When identifying the current value of an exceeded limit, the units
60 * should be contained in the key, not the value. For example, rather than
61 * {"instanceLimit": "100/request"}, should be returned as,
62 * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
63 * instances that can be created in a single (batch) request.
64 *
65 * Generated from protobuf field <code>map<string, string> metadata = 3;</code>
66 */
67 private $metadata;
68
69 /**
70 * Constructor.
71 *
72 * @param array $data {
73 * Optional. Data for populating the Message object.
74 *
75 * @type string $reason
76 * The reason of the error. This is a constant value that identifies the
77 * proximate cause of the error. Error reasons are unique within a particular
78 * domain of errors. This should be at most 63 characters and match
79 * /[A-Z0-9_]+/.
80 * @type string $domain
81 * The logical grouping to which the "reason" belongs. The error domain
82 * is typically the registered service name of the tool or product that
83 * generates the error. Example: "pubsub.googleapis.com". If the error is
84 * generated by some common infrastructure, the error domain must be a
85 * globally unique value that identifies the infrastructure. For Google API
86 * infrastructure, the error domain is "googleapis.com".
87 * @type array|\Google\Protobuf\Internal\MapField $metadata
88 * Additional structured details about this error.
89 * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
90 * length. When identifying the current value of an exceeded limit, the units
91 * should be contained in the key, not the value. For example, rather than
92 * {"instanceLimit": "100/request"}, should be returned as,
93 * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
94 * instances that can be created in a single (batch) request.
95 * }
96 */
97 public function __construct($data = NULL) {
98 \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
99 parent::__construct($data);
100 }
101
102 /**
103 * The reason of the error. This is a constant value that identifies the
104 * proximate cause of the error. Error reasons are unique within a particular
105 * domain of errors. This should be at most 63 characters and match
106 * /[A-Z0-9_]+/.
107 *
108 * Generated from protobuf field <code>string reason = 1;</code>
109 * @return string
110 */
111 public function getReason()
112 {
113 return $this->reason;
114 }
115
116 /**
117 * The reason of the error. This is a constant value that identifies the
118 * proximate cause of the error. Error reasons are unique within a particular
119 * domain of errors. This should be at most 63 characters and match
120 * /[A-Z0-9_]+/.
121 *
122 * Generated from protobuf field <code>string reason = 1;</code>
123 * @param string $var
124 * @return $this
125 */
126 public function setReason($var)
127 {
128 GPBUtil::checkString($var, True);
129 $this->reason = $var;
130
131 return $this;
132 }
133
134 /**
135 * The logical grouping to which the "reason" belongs. The error domain
136 * is typically the registered service name of the tool or product that
137 * generates the error. Example: "pubsub.googleapis.com". If the error is
138 * generated by some common infrastructure, the error domain must be a
139 * globally unique value that identifies the infrastructure. For Google API
140 * infrastructure, the error domain is "googleapis.com".
141 *
142 * Generated from protobuf field <code>string domain = 2;</code>
143 * @return string
144 */
145 public function getDomain()
146 {
147 return $this->domain;
148 }
149
150 /**
151 * The logical grouping to which the "reason" belongs. The error domain
152 * is typically the registered service name of the tool or product that
153 * generates the error. Example: "pubsub.googleapis.com". If the error is
154 * generated by some common infrastructure, the error domain must be a
155 * globally unique value that identifies the infrastructure. For Google API
156 * infrastructure, the error domain is "googleapis.com".
157 *
158 * Generated from protobuf field <code>string domain = 2;</code>
159 * @param string $var
160 * @return $this
161 */
162 public function setDomain($var)
163 {
164 GPBUtil::checkString($var, True);
165 $this->domain = $var;
166
167 return $this;
168 }
169
170 /**
171 * Additional structured details about this error.
172 * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
173 * length. When identifying the current value of an exceeded limit, the units
174 * should be contained in the key, not the value. For example, rather than
175 * {"instanceLimit": "100/request"}, should be returned as,
176 * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
177 * instances that can be created in a single (batch) request.
178 *
179 * Generated from protobuf field <code>map<string, string> metadata = 3;</code>
180 * @return \Google\Protobuf\Internal\MapField
181 */
182 public function getMetadata()
183 {
184 return $this->metadata;
185 }
186
187 /**
188 * Additional structured details about this error.
189 * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
190 * length. When identifying the current value of an exceeded limit, the units
191 * should be contained in the key, not the value. For example, rather than
192 * {"instanceLimit": "100/request"}, should be returned as,
193 * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
194 * instances that can be created in a single (batch) request.
195 *
196 * Generated from protobuf field <code>map<string, string> metadata = 3;</code>
197 * @param array|\Google\Protobuf\Internal\MapField $var
198 * @return $this
199 */
200 public function setMetadata($var)
201 {
202 $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
203 $this->metadata = $arr;
204
205 return $this;
206 }
207
208 }
209
210