← All changes
|
includes/sdk/google/google/common-protos/src/Api/Context.php
+10
-10
1.2.2
→
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/context.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 | * `Context` defines which contexts an API requests. |
| 12 | 12 | * Example: |
| 13 | 13 | * context: |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | * here. |
| 39 | 39 | * |
| 40 | 40 | * Generated from protobuf message <code>google.api.Context</code> |
| 41 | 41 | */ |
| 42 | -class Context extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 42 | +class Context extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 43 | 43 | { |
| 44 | 44 | /** |
| 45 | 45 | * A list of RPC context rules that apply to individual API methods. |
| 46 | 46 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | * |
| 54 | 54 | * @param array $data { |
| 55 | 55 | * Optional. Data for populating the Message object. |
| 56 | 56 | * |
| 57 | - * @type array<\Google\Api\ContextRule>|\Google\Protobuf\Internal\RepeatedField $rules | |
| 57 | + * @type \Google\Api\ContextRule[] $rules | |
| 58 | 58 | * A list of RPC context rules that apply to individual API methods. |
| 59 | 59 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 60 | 60 | * } |
| 61 | 61 | */ |
| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | * } |
| 61 | 61 | */ |
| 62 | 62 | public function __construct($data = NULL) |
| 63 | 63 | { |
| 64 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Context::initOnce(); | |
| 64 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Context::initOnce(); | |
| 65 | 65 | parent::__construct($data); |
| 66 | 66 | } |
| 67 | 67 | /** |
| 68 | 68 | * A list of RPC context rules that apply to individual API methods. |
| @@ -68,9 +68,9 @@ | ||
| 68 | 68 | * A list of RPC context rules that apply to individual API methods. |
| 69 | 69 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 70 | 70 | * |
| 71 | 71 | * Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code> |
| 72 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 72 | + * @return RepeatedField<\Google\Api\ContextRule> | |
| 73 | 73 | */ |
| 74 | 74 | public function getRules() |
| 75 | 75 | { |
| 76 | 76 | return $this->rules; |
| @@ -79,14 +79,14 @@ | ||
| 79 | 79 | * A list of RPC context rules that apply to individual API methods. |
| 80 | 80 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 81 | 81 | * |
| 82 | 82 | * Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code> |
| 83 | - * @param array<\Google\Api\ContextRule>|\Google\Protobuf\Internal\RepeatedField $var | |
| 83 | + * @param \Google\Api\ContextRule[] $var | |
| 84 | 84 | * @return $this |
| 85 | 85 | */ |
| 86 | 86 | public function setRules($var) |
| 87 | 87 | { |
| 88 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\ContextRule::class); | |
| 88 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\ContextRule::class); | |
| 89 | 89 | $this->rules = $arr; |
| 90 | 90 | return $this; |
| 91 | 91 | } |
| 92 | 92 | } |