← All changes
|
includes/sdk/google/google/protobuf/src/Google/Protobuf/Api.php
+56
-20
1.2.5
→
1.4.2
View file →
| @@ -1,13 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | +# NO CHECKED-IN PROTOBUF GENCODE | |
| 4 | 5 | # source: google/protobuf/api.proto |
| 5 | -namespace Dudlewebs\WPMCS\Google\Protobuf; | |
| 6 | +namespace Dudlewebs\WPMCS\GCP\Google\Protobuf; | |
| 6 | 7 | |
| 7 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType; | |
| 8 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField; | |
| 9 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil; | |
| 8 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType; | |
| 9 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil; | |
| 10 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField; | |
| 10 | 11 | /** |
| 11 | 12 | * Api is a light-weight descriptor for an API Interface. |
| 12 | 13 | * Interfaces are also described as "protocol buffer services" in some contexts, |
| 13 | 14 | * such as by the "service" keyword in a .proto file, but they are different |
| @@ -15,12 +16,16 @@ | ||
| 15 | 16 | * as opposed to simply a description of methods and bindings. They are also |
| 16 | 17 | * sometimes simply referred to as "APIs" in other contexts, such as the name of |
| 17 | 18 | * this message itself. See https://cloud.google.com/apis/design/glossary for |
| 18 | 19 | * detailed terminology. |
| 20 | + * New usages of this message as an alternative to ServiceDescriptorProto are | |
| 21 | + * strongly discouraged. This message does not reliability preserve all | |
| 22 | + * information necessary to model the schema and preserve semantics. Instead | |
| 23 | + * make use of FileDescriptorSet which preserves the necessary information. | |
| 19 | 24 | * |
| 20 | 25 | * Generated from protobuf message <code>google.protobuf.Api</code> |
| 21 | 26 | */ |
| 22 | -class Api extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 27 | +class Api extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 23 | 28 | { |
| 24 | 29 | /** |
| 25 | 30 | * The fully qualified name of this interface, including package name |
| 26 | 31 | * followed by the interface's simple name. |
| @@ -81,8 +86,14 @@ | ||
| 81 | 86 | * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code> |
| 82 | 87 | */ |
| 83 | 88 | protected $syntax = 0; |
| 84 | 89 | /** |
| 90 | + * The source edition string, only valid when syntax is SYNTAX_EDITIONS. | |
| 91 | + * | |
| 92 | + * Generated from protobuf field <code>string edition = 8;</code> | |
| 93 | + */ | |
| 94 | + protected $edition = ''; | |
| 95 | + /** | |
| 85 | 96 | * Constructor. |
| 86 | 97 | * |
| 87 | 98 | * @param array $data { |
| 88 | 99 | * Optional. Data for populating the Message object. |
| @@ -89,11 +100,11 @@ | ||
| 89 | 100 | * |
| 90 | 101 | * @type string $name |
| 91 | 102 | * The fully qualified name of this interface, including package name |
| 92 | 103 | * followed by the interface's simple name. |
| 93 | - * @type array<\Google\Protobuf\Method>|\Google\Protobuf\Internal\RepeatedField $methods | |
| 104 | + * @type \Google\Protobuf\Method[] $methods | |
| 94 | 105 | * The methods of this interface, in unspecified order. |
| 95 | - * @type array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $options | |
| 106 | + * @type \Google\Protobuf\Option[] $options | |
| 96 | 107 | * Any metadata attached to the interface. |
| 97 | 108 | * @type string $version |
| 98 | 109 | * A version string for this interface. If specified, must have the form |
| 99 | 110 | * `major-version.minor-version`, as in `1.10`. If the minor version is |
| @@ -114,17 +125,19 @@ | ||
| 114 | 125 | * experimental, non-GA interfaces. |
| 115 | 126 | * @type \Google\Protobuf\SourceContext $source_context |
| 116 | 127 | * Source context for the protocol buffer service represented by this |
| 117 | 128 | * message. |
| 118 | - * @type array<\Google\Protobuf\Mixin>|\Google\Protobuf\Internal\RepeatedField $mixins | |
| 129 | + * @type \Google\Protobuf\Mixin[] $mixins | |
| 119 | 130 | * Included interfaces. See [Mixin][]. |
| 120 | 131 | * @type int $syntax |
| 121 | 132 | * The source syntax of the service. |
| 133 | + * @type string $edition | |
| 134 | + * The source edition string, only valid when syntax is SYNTAX_EDITIONS. | |
| 122 | 135 | * } |
| 123 | 136 | */ |
| 124 | 137 | public function __construct($data = NULL) |
| 125 | 138 | { |
| 126 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Protobuf\Api::initOnce(); | |
| 139 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Api::initOnce(); | |
| 127 | 140 | parent::__construct($data); |
| 128 | 141 | } |
| 129 | 142 | /** |
| 130 | 143 | * The fully qualified name of this interface, including package name |
| @@ -154,9 +167,9 @@ | ||
| 154 | 167 | /** |
| 155 | 168 | * The methods of this interface, in unspecified order. |
| 156 | 169 | * |
| 157 | 170 | * Generated from protobuf field <code>repeated .google.protobuf.Method methods = 2;</code> |
| 158 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 171 | + * @return RepeatedField<\Google\Protobuf\Method> | |
| 159 | 172 | */ |
| 160 | 173 | public function getMethods() |
| 161 | 174 | { |
| 162 | 175 | return $this->methods; |
| @@ -164,14 +177,14 @@ | ||
| 164 | 177 | /** |
| 165 | 178 | * The methods of this interface, in unspecified order. |
| 166 | 179 | * |
| 167 | 180 | * Generated from protobuf field <code>repeated .google.protobuf.Method methods = 2;</code> |
| 168 | - * @param array<\Google\Protobuf\Method>|\Google\Protobuf\Internal\RepeatedField $var | |
| 181 | + * @param \Google\Protobuf\Method[] $var | |
| 169 | 182 | * @return $this |
| 170 | 183 | */ |
| 171 | 184 | public function setMethods($var) |
| 172 | 185 | { |
| 173 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Protobuf\Method::class); | |
| 186 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Method::class); | |
| 174 | 187 | $this->methods = $arr; |
| 175 | 188 | return $this; |
| 176 | 189 | } |
| 177 | 190 | /** |
| @@ -177,9 +190,9 @@ | ||
| 177 | 190 | /** |
| 178 | 191 | * Any metadata attached to the interface. |
| 179 | 192 | * |
| 180 | 193 | * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code> |
| 181 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 194 | + * @return RepeatedField<\Google\Protobuf\Option> | |
| 182 | 195 | */ |
| 183 | 196 | public function getOptions() |
| 184 | 197 | { |
| 185 | 198 | return $this->options; |
| @@ -187,14 +200,14 @@ | ||
| 187 | 200 | /** |
| 188 | 201 | * Any metadata attached to the interface. |
| 189 | 202 | * |
| 190 | 203 | * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code> |
| 191 | - * @param array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $var | |
| 204 | + * @param \Google\Protobuf\Option[] $var | |
| 192 | 205 | * @return $this |
| 193 | 206 | */ |
| 194 | 207 | public function setOptions($var) |
| 195 | 208 | { |
| 196 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Protobuf\Option::class); | |
| 209 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Option::class); | |
| 197 | 210 | $this->options = $arr; |
| 198 | 211 | return $this; |
| 199 | 212 | } |
| 200 | 213 | /** |
| @@ -280,9 +293,9 @@ | ||
| 280 | 293 | * @return $this |
| 281 | 294 | */ |
| 282 | 295 | public function setSourceContext($var) |
| 283 | 296 | { |
| 284 | - GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\Google\Protobuf\SourceContext::class); | |
| 297 | + GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\SourceContext::class); | |
| 285 | 298 | $this->source_context = $var; |
| 286 | 299 | return $this; |
| 287 | 300 | } |
| 288 | 301 | /** |
| @@ -288,9 +301,9 @@ | ||
| 288 | 301 | /** |
| 289 | 302 | * Included interfaces. See [Mixin][]. |
| 290 | 303 | * |
| 291 | 304 | * Generated from protobuf field <code>repeated .google.protobuf.Mixin mixins = 6;</code> |
| 292 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 305 | + * @return RepeatedField<\Google\Protobuf\Mixin> | |
| 293 | 306 | */ |
| 294 | 307 | public function getMixins() |
| 295 | 308 | { |
| 296 | 309 | return $this->mixins; |
| @@ -298,14 +311,14 @@ | ||
| 298 | 311 | /** |
| 299 | 312 | * Included interfaces. See [Mixin][]. |
| 300 | 313 | * |
| 301 | 314 | * Generated from protobuf field <code>repeated .google.protobuf.Mixin mixins = 6;</code> |
| 302 | - * @param array<\Google\Protobuf\Mixin>|\Google\Protobuf\Internal\RepeatedField $var | |
| 315 | + * @param \Google\Protobuf\Mixin[] $var | |
| 303 | 316 | * @return $this |
| 304 | 317 | */ |
| 305 | 318 | public function setMixins($var) |
| 306 | 319 | { |
| 307 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Protobuf\Mixin::class); | |
| 320 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Mixin::class); | |
| 308 | 321 | $this->mixins = $arr; |
| 309 | 322 | return $this; |
| 310 | 323 | } |
| 311 | 324 | /** |
| @@ -326,9 +339,32 @@ | ||
| 326 | 339 | * @return $this |
| 327 | 340 | */ |
| 328 | 341 | public function setSyntax($var) |
| 329 | 342 | { |
| 330 | - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Protobuf\Syntax::class); | |
| 343 | + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Syntax::class); | |
| 331 | 344 | $this->syntax = $var; |
| 345 | + return $this; | |
| 346 | + } | |
| 347 | + /** | |
| 348 | + * The source edition string, only valid when syntax is SYNTAX_EDITIONS. | |
| 349 | + * | |
| 350 | + * Generated from protobuf field <code>string edition = 8;</code> | |
| 351 | + * @return string | |
| 352 | + */ | |
| 353 | + public function getEdition() | |
| 354 | + { | |
| 355 | + return $this->edition; | |
| 356 | + } | |
| 357 | + /** | |
| 358 | + * The source edition string, only valid when syntax is SYNTAX_EDITIONS. | |
| 359 | + * | |
| 360 | + * Generated from protobuf field <code>string edition = 8;</code> | |
| 361 | + * @param string $var | |
| 362 | + * @return $this | |
| 363 | + */ | |
| 364 | + public function setEdition($var) | |
| 365 | + { | |
| 366 | + GPBUtil::checkString($var, True); | |
| 367 | + $this->edition = $var; | |
| 332 | 368 | return $this; |
| 333 | 369 | } |
| 334 | 370 | } |