← All changes
|
includes/sdk/google/google/common-protos/src/Api/AuthenticationRule.php
+11
-11
1.0.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/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 rules for the service. |
| 12 | 12 | * By default, if a method has any authentication requirements, every request |
| 13 | 13 | * must include a valid credential matching one of the requirements. |
| @@ -17,9 +17,9 @@ | ||
| 17 | 17 | * ignored. |
| 18 | 18 | * |
| 19 | 19 | * Generated from protobuf message <code>google.api.AuthenticationRule</code> |
| 20 | 20 | */ |
| 21 | -class AuthenticationRule extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 21 | +class AuthenticationRule extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | 24 | * Selects the methods to which this rule applies. |
| 25 | 25 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax |
| @@ -61,15 +61,15 @@ | ||
| 61 | 61 | * The requirements for OAuth credentials. |
| 62 | 62 | * @type bool $allow_without_credential |
| 63 | 63 | * If true, the service accepts API keys without any other credential. |
| 64 | 64 | * This flag only applies to HTTP and gRPC requests. |
| 65 | - * @type array<\Google\Api\AuthRequirement>|\Google\Protobuf\Internal\RepeatedField $requirements | |
| 65 | + * @type \Google\Api\AuthRequirement[] $requirements | |
| 66 | 66 | * Requirements for additional authentication providers. |
| 67 | 67 | * } |
| 68 | 68 | */ |
| 69 | 69 | public function __construct($data = NULL) |
| 70 | 70 | { |
| 71 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Auth::initOnce(); | |
| 71 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Auth::initOnce(); | |
| 72 | 72 | parent::__construct($data); |
| 73 | 73 | } |
| 74 | 74 | /** |
| 75 | 75 | * Selects the methods to which this rule applies. |
| @@ -124,9 +124,9 @@ | ||
| 124 | 124 | * @return $this |
| 125 | 125 | */ |
| 126 | 126 | public function setOauth($var) |
| 127 | 127 | { |
| 128 | - GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\Google\Api\OAuthRequirements::class); | |
| 128 | + GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\OAuthRequirements::class); | |
| 129 | 129 | $this->oauth = $var; |
| 130 | 130 | return $this; |
| 131 | 131 | } |
| 132 | 132 | /** |
| @@ -157,9 +157,9 @@ | ||
| 157 | 157 | /** |
| 158 | 158 | * Requirements for additional authentication providers. |
| 159 | 159 | * |
| 160 | 160 | * Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code> |
| 161 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 161 | + * @return RepeatedField<\Google\Api\AuthRequirement> | |
| 162 | 162 | */ |
| 163 | 163 | public function getRequirements() |
| 164 | 164 | { |
| 165 | 165 | return $this->requirements; |
| @@ -167,14 +167,14 @@ | ||
| 167 | 167 | /** |
| 168 | 168 | * Requirements for additional authentication providers. |
| 169 | 169 | * |
| 170 | 170 | * Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code> |
| 171 | - * @param array<\Google\Api\AuthRequirement>|\Google\Protobuf\Internal\RepeatedField $var | |
| 171 | + * @param \Google\Api\AuthRequirement[] $var | |
| 172 | 172 | * @return $this |
| 173 | 173 | */ |
| 174 | 174 | public function setRequirements($var) |
| 175 | 175 | { |
| 176 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\AuthRequirement::class); | |
| 176 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\AuthRequirement::class); | |
| 177 | 177 | $this->requirements = $arr; |
| 178 | 178 | return $this; |
| 179 | 179 | } |
| 180 | 180 | } |