← All changes
|
includes/sdk/google/google/common-protos/src/Api/Control.php
+10
-10
1.1.0
→
1.4.2
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/api/control.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 | * Selects and configures the service controller used by the service. |
| 12 | 12 | * Example: |
| 13 | 13 | * control: |
| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | * environment: servicecontrol.googleapis.com |
| 15 | 15 | * |
| 16 | 16 | * Generated from protobuf message <code>google.api.Control</code> |
| 17 | 17 | */ |
| 18 | -class Control extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 18 | +class Control extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 19 | 19 | { |
| 20 | 20 | /** |
| 21 | 21 | * The service controller environment to use. If empty, no control plane |
| 22 | 22 | * feature (like quota and billing) will be enabled. The recommended value for |
| @@ -40,15 +40,15 @@ | ||
| 40 | 40 | * @type string $environment |
| 41 | 41 | * The service controller environment to use. If empty, no control plane |
| 42 | 42 | * feature (like quota and billing) will be enabled. The recommended value for |
| 43 | 43 | * most services is servicecontrol.googleapis.com |
| 44 | - * @type array<\Google\Api\MethodPolicy>|\Google\Protobuf\Internal\RepeatedField $method_policies | |
| 44 | + * @type \Google\Api\MethodPolicy[] $method_policies | |
| 45 | 45 | * Defines policies applying to the API methods of the service. |
| 46 | 46 | * } |
| 47 | 47 | */ |
| 48 | 48 | public function __construct($data = NULL) |
| 49 | 49 | { |
| 50 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Control::initOnce(); | |
| 50 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Control::initOnce(); | |
| 51 | 51 | parent::__construct($data); |
| 52 | 52 | } |
| 53 | 53 | /** |
| 54 | 54 | * The service controller environment to use. If empty, no control plane |
| @@ -80,9 +80,9 @@ | ||
| 80 | 80 | /** |
| 81 | 81 | * Defines policies applying to the API methods of the service. |
| 82 | 82 | * |
| 83 | 83 | * Generated from protobuf field <code>repeated .google.api.MethodPolicy method_policies = 4;</code> |
| 84 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 84 | + * @return RepeatedField<\Google\Api\MethodPolicy> | |
| 85 | 85 | */ |
| 86 | 86 | public function getMethodPolicies() |
| 87 | 87 | { |
| 88 | 88 | return $this->method_policies; |
| @@ -90,14 +90,14 @@ | ||
| 90 | 90 | /** |
| 91 | 91 | * Defines policies applying to the API methods of the service. |
| 92 | 92 | * |
| 93 | 93 | * Generated from protobuf field <code>repeated .google.api.MethodPolicy method_policies = 4;</code> |
| 94 | - * @param array<\Google\Api\MethodPolicy>|\Google\Protobuf\Internal\RepeatedField $var | |
| 94 | + * @param \Google\Api\MethodPolicy[] $var | |
| 95 | 95 | * @return $this |
| 96 | 96 | */ |
| 97 | 97 | public function setMethodPolicies($var) |
| 98 | 98 | { |
| 99 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\MethodPolicy::class); | |
| 99 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\MethodPolicy::class); | |
| 100 | 100 | $this->method_policies = $arr; |
| 101 | 101 | return $this; |
| 102 | 102 | } |
| 103 | 103 | } |