← All changes
|
includes/sdk/google/google/common-protos/src/Rpc/ErrorInfo.php
+23
-19
1.2.13
→
1.4.1
View file →
| @@ -1,13 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | 4 | # source: google/rpc/error_details.proto |
| 5 | -namespace Dudlewebs\WPMCS\Google\Rpc; | |
| 5 | +namespace Dudlewebs\WPMCS\GCP\Google\Rpc; | |
| 6 | 6 | |
| 7 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType; | |
| 8 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField; | |
| 9 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil; | |
| 7 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType; | |
| 8 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil; | |
| 9 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField; | |
| 10 | 10 | /** |
| 11 | 11 | * Describes the cause of the error with structured details. |
| 12 | 12 | * Example of an error when contacting the "pubsub.googleapis.com" API when it |
| 13 | 13 | * is not enabled: |
| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | * } |
| 30 | 30 | * |
| 31 | 31 | * Generated from protobuf message <code>google.rpc.ErrorInfo</code> |
| 32 | 32 | */ |
| 33 | -class ErrorInfo extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 33 | +class ErrorInfo extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 34 | 34 | { |
| 35 | 35 | /** |
| 36 | 36 | * The reason of the error. This is a constant value that identifies the |
| 37 | 37 | * proximate cause of the error. Error reasons are unique within a particular |
| @@ -54,13 +54,14 @@ | ||
| 54 | 54 | */ |
| 55 | 55 | protected $domain = ''; |
| 56 | 56 | /** |
| 57 | 57 | * Additional structured details about this error. |
| 58 | - * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in | |
| 58 | + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should | |
| 59 | + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in | |
| 59 | 60 | * length. When identifying the current value of an exceeded limit, the units |
| 60 | 61 | * 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 | |
| 62 | + * `{"instanceLimit": "100/request"}`, should be returned as, | |
| 63 | + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of | |
| 63 | 64 | * instances that can be created in a single (batch) request. |
| 64 | 65 | * |
| 65 | 66 | * Generated from protobuf field <code>map<string, string> metadata = 3;</code> |
| 66 | 67 | */ |
| @@ -85,19 +86,20 @@ | ||
| 85 | 86 | * globally unique value that identifies the infrastructure. For Google API |
| 86 | 87 | * infrastructure, the error domain is "googleapis.com". |
| 87 | 88 | * @type array|\Google\Protobuf\Internal\MapField $metadata |
| 88 | 89 | * Additional structured details about this error. |
| 89 | - * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in | |
| 90 | + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should | |
| 91 | + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in | |
| 90 | 92 | * length. When identifying the current value of an exceeded limit, the units |
| 91 | 93 | * 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 | + * `{"instanceLimit": "100/request"}`, should be returned as, | |
| 95 | + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of | |
| 94 | 96 | * instances that can be created in a single (batch) request. |
| 95 | 97 | * } |
| 96 | 98 | */ |
| 97 | 99 | public function __construct($data = NULL) |
| 98 | 100 | { |
| 99 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); | |
| 101 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); | |
| 100 | 102 | parent::__construct($data); |
| 101 | 103 | } |
| 102 | 104 | /** |
| 103 | 105 | * The reason of the error. This is a constant value that identifies the |
| @@ -164,13 +166,14 @@ | ||
| 164 | 166 | return $this; |
| 165 | 167 | } |
| 166 | 168 | /** |
| 167 | 169 | * Additional structured details about this error. |
| 168 | - * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in | |
| 170 | + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should | |
| 171 | + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in | |
| 169 | 172 | * length. When identifying the current value of an exceeded limit, the units |
| 170 | 173 | * should be contained in the key, not the value. For example, rather than |
| 171 | - * {"instanceLimit": "100/request"}, should be returned as, | |
| 172 | - * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of | |
| 174 | + * `{"instanceLimit": "100/request"}`, should be returned as, | |
| 175 | + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of | |
| 173 | 176 | * instances that can be created in a single (batch) request. |
| 174 | 177 | * |
| 175 | 178 | * Generated from protobuf field <code>map<string, string> metadata = 3;</code> |
| 176 | 179 | * @return \Google\Protobuf\Internal\MapField |
| @@ -180,13 +183,14 @@ | ||
| 180 | 183 | return $this->metadata; |
| 181 | 184 | } |
| 182 | 185 | /** |
| 183 | 186 | * Additional structured details about this error. |
| 184 | - * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in | |
| 187 | + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should | |
| 188 | + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in | |
| 185 | 189 | * length. When identifying the current value of an exceeded limit, the units |
| 186 | 190 | * should be contained in the key, not the value. For example, rather than |
| 187 | - * {"instanceLimit": "100/request"}, should be returned as, | |
| 188 | - * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of | |
| 191 | + * `{"instanceLimit": "100/request"}`, should be returned as, | |
| 192 | + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of | |
| 189 | 193 | * instances that can be created in a single (batch) request. |
| 190 | 194 | * |
| 191 | 195 | * Generated from protobuf field <code>map<string, string> metadata = 3;</code> |
| 192 | 196 | * @param array|\Google\Protobuf\Internal\MapField $var |
| @@ -193,9 +197,9 @@ | ||
| 193 | 197 | * @return $this |
| 194 | 198 | */ |
| 195 | 199 | public function setMetadata($var) |
| 196 | 200 | { |
| 197 | - $arr = GPBUtil::checkMapField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING); | |
| 201 | + $arr = GPBUtil::checkMapField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::STRING, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::STRING); | |
| 198 | 202 | $this->metadata = $arr; |
| 199 | 203 | return $this; |
| 200 | 204 | } |
| 201 | 205 | } |