← All changes
|
includes/sdk/google/google/common-protos/src/Api/Authentication.php
+14
-14
1.2.11
→
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/auth.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 | * `Authentication` defines the authentication configuration for API methods |
| 12 | 12 | * provided by an API service. |
| 13 | 13 | * Example: |
| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | * canonical_scopes: https://www.googleapis.com/auth/calendar.read |
| 27 | 27 | * |
| 28 | 28 | * Generated from protobuf message <code>google.api.Authentication</code> |
| 29 | 29 | */ |
| 30 | -class Authentication extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 30 | +class Authentication extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 31 | 31 | { |
| 32 | 32 | /** |
| 33 | 33 | * A list of authentication rules that apply to individual API methods. |
| 34 | 34 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| @@ -47,18 +47,18 @@ | ||
| 47 | 47 | * |
| 48 | 48 | * @param array $data { |
| 49 | 49 | * Optional. Data for populating the Message object. |
| 50 | 50 | * |
| 51 | - * @type array<\Google\Api\AuthenticationRule>|\Google\Protobuf\Internal\RepeatedField $rules | |
| 51 | + * @type \Google\Api\AuthenticationRule[] $rules | |
| 52 | 52 | * A list of authentication rules that apply to individual API methods. |
| 53 | 53 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 54 | - * @type array<\Google\Api\AuthProvider>|\Google\Protobuf\Internal\RepeatedField $providers | |
| 54 | + * @type \Google\Api\AuthProvider[] $providers | |
| 55 | 55 | * Defines a set of authentication providers that a service supports. |
| 56 | 56 | * } |
| 57 | 57 | */ |
| 58 | 58 | public function __construct($data = NULL) |
| 59 | 59 | { |
| 60 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Auth::initOnce(); | |
| 60 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Auth::initOnce(); | |
| 61 | 61 | parent::__construct($data); |
| 62 | 62 | } |
| 63 | 63 | /** |
| 64 | 64 | * A list of authentication rules that apply to individual API methods. |
| @@ -64,9 +64,9 @@ | ||
| 64 | 64 | * A list of authentication rules that apply to individual API methods. |
| 65 | 65 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 66 | 66 | * |
| 67 | 67 | * Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code> |
| 68 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 68 | + * @return RepeatedField<\Google\Api\AuthenticationRule> | |
| 69 | 69 | */ |
| 70 | 70 | public function getRules() |
| 71 | 71 | { |
| 72 | 72 | return $this->rules; |
| @@ -75,14 +75,14 @@ | ||
| 75 | 75 | * A list of authentication rules that apply to individual API methods. |
| 76 | 76 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 77 | 77 | * |
| 78 | 78 | * Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code> |
| 79 | - * @param array<\Google\Api\AuthenticationRule>|\Google\Protobuf\Internal\RepeatedField $var | |
| 79 | + * @param \Google\Api\AuthenticationRule[] $var | |
| 80 | 80 | * @return $this |
| 81 | 81 | */ |
| 82 | 82 | public function setRules($var) |
| 83 | 83 | { |
| 84 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\AuthenticationRule::class); | |
| 84 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\AuthenticationRule::class); | |
| 85 | 85 | $this->rules = $arr; |
| 86 | 86 | return $this; |
| 87 | 87 | } |
| 88 | 88 | /** |
| @@ -88,9 +88,9 @@ | ||
| 88 | 88 | /** |
| 89 | 89 | * Defines a set of authentication providers that a service supports. |
| 90 | 90 | * |
| 91 | 91 | * Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code> |
| 92 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 92 | + * @return RepeatedField<\Google\Api\AuthProvider> | |
| 93 | 93 | */ |
| 94 | 94 | public function getProviders() |
| 95 | 95 | { |
| 96 | 96 | return $this->providers; |
| @@ -98,14 +98,14 @@ | ||
| 98 | 98 | /** |
| 99 | 99 | * Defines a set of authentication providers that a service supports. |
| 100 | 100 | * |
| 101 | 101 | * Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code> |
| 102 | - * @param array<\Google\Api\AuthProvider>|\Google\Protobuf\Internal\RepeatedField $var | |
| 102 | + * @param \Google\Api\AuthProvider[] $var | |
| 103 | 103 | * @return $this |
| 104 | 104 | */ |
| 105 | 105 | public function setProviders($var) |
| 106 | 106 | { |
| 107 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\AuthProvider::class); | |
| 107 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\AuthProvider::class); | |
| 108 | 108 | $this->providers = $arr; |
| 109 | 109 | return $this; |
| 110 | 110 | } |
| 111 | 111 | } |