← All changes
|
includes/sdk/google/google/common-protos/src/Api/BackendRule.php
+12
-10
1.2.10
→
1.4.2
View file →
| @@ -1,19 +1,19 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | 4 | # source: google/api/backend.proto |
| 5 | -namespace Dudlewebs\WPMCS\Google\Api; | |
| 5 | +namespace Dudlewebs\WPMCS\GCP\Google\Api; | |
| 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 | * A backend rule provides configuration for an individual API element. |
| 12 | 12 | * |
| 13 | 13 | * Generated from protobuf message <code>google.api.BackendRule</code> |
| 14 | 14 | */ |
| 15 | -class BackendRule extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 15 | +class BackendRule extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | 18 | * Selects the methods to which this rule applies. |
| 19 | 19 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax |
| @@ -161,9 +161,9 @@ | ||
| 161 | 161 | * } |
| 162 | 162 | */ |
| 163 | 163 | public function __construct($data = NULL) |
| 164 | 164 | { |
| 165 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Backend::initOnce(); | |
| 165 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Backend::initOnce(); | |
| 166 | 166 | parent::__construct($data); |
| 167 | 167 | } |
| 168 | 168 | /** |
| 169 | 169 | * Selects the methods to which this rule applies. |
| @@ -276,9 +276,11 @@ | ||
| 276 | 276 | * @deprecated |
| 277 | 277 | */ |
| 278 | 278 | public function getMinDeadline() |
| 279 | 279 | { |
| 280 | - @trigger_error('min_deadline is deprecated.', \E_USER_DEPRECATED); | |
| 280 | + if ($this->min_deadline !== 0.0) { | |
| 281 | + @\trigger_error('min_deadline is deprecated.', \E_USER_DEPRECATED); | |
| 282 | + } | |
| 281 | 283 | return $this->min_deadline; |
| 282 | 284 | } |
| 283 | 285 | /** |
| 284 | 286 | * Deprecated, do not use. |
| @@ -289,9 +291,9 @@ | ||
| 289 | 291 | * @deprecated |
| 290 | 292 | */ |
| 291 | 293 | public function setMinDeadline($var) |
| 292 | 294 | { |
| 293 | - @trigger_error('min_deadline is deprecated.', \E_USER_DEPRECATED); | |
| 295 | + @\trigger_error('min_deadline is deprecated.', \E_USER_DEPRECATED); | |
| 294 | 296 | GPBUtil::checkDouble($var); |
| 295 | 297 | $this->min_deadline = $var; |
| 296 | 298 | return $this; |
| 297 | 299 | } |
| @@ -334,9 +336,9 @@ | ||
| 334 | 336 | * @return $this |
| 335 | 337 | */ |
| 336 | 338 | public function setPathTranslation($var) |
| 337 | 339 | { |
| 338 | - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Api\BackendRule\PathTranslation::class); | |
| 340 | + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Api\BackendRule\PathTranslation::class); | |
| 339 | 341 | $this->path_translation = $var; |
| 340 | 342 | return $this; |
| 341 | 343 | } |
| 342 | 344 | /** |
| @@ -474,9 +476,9 @@ | ||
| 474 | 476 | * @return $this |
| 475 | 477 | */ |
| 476 | 478 | public function setOverridesByRequestProtocol($var) |
| 477 | 479 | { |
| 478 | - $arr = GPBUtil::checkMapField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\BackendRule::class); | |
| 480 | + $arr = GPBUtil::checkMapField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::STRING, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\BackendRule::class); | |
| 479 | 481 | $this->overrides_by_request_protocol = $arr; |
| 480 | 482 | return $this; |
| 481 | 483 | } |
| 482 | 484 | /** |