← All changes
|
includes/sdk/google/google/common-protos/src/Api/Publishing.php
+54
-19
1.2.10
→
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/client.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 | * This message configures the settings for publishing [Google Cloud Client |
| 12 | 12 | * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) |
| 13 | 13 | * generated from the service config. |
| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | * generated from the service config. |
| 14 | 14 | * |
| 15 | 15 | * Generated from protobuf message <code>google.api.Publishing</code> |
| 16 | 16 | */ |
| 17 | -class Publishing extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 17 | +class Publishing extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 18 | 18 | { |
| 19 | 19 | /** |
| 20 | 20 | * A list of API method settings, e.g. the behavior for methods that use the |
| 21 | 21 | * long-running operation pattern. |
| @@ -86,14 +86,21 @@ | ||
| 86 | 86 | * Generated from protobuf field <code>string proto_reference_documentation_uri = 110;</code> |
| 87 | 87 | */ |
| 88 | 88 | protected $proto_reference_documentation_uri = ''; |
| 89 | 89 | /** |
| 90 | + * Optional link to REST reference documentation. Example: | |
| 91 | + * https://cloud.google.com/pubsub/lite/docs/reference/rest | |
| 92 | + * | |
| 93 | + * Generated from protobuf field <code>string rest_reference_documentation_uri = 111;</code> | |
| 94 | + */ | |
| 95 | + protected $rest_reference_documentation_uri = ''; | |
| 96 | + /** | |
| 90 | 97 | * Constructor. |
| 91 | 98 | * |
| 92 | 99 | * @param array $data { |
| 93 | 100 | * Optional. Data for populating the Message object. |
| 94 | 101 | * |
| 95 | - * @type array<\Google\Api\MethodSettings>|\Google\Protobuf\Internal\RepeatedField $method_settings | |
| 102 | + * @type \Google\Api\MethodSettings[] $method_settings | |
| 96 | 103 | * A list of API method settings, e.g. the behavior for methods that use the |
| 97 | 104 | * long-running operation pattern. |
| 98 | 105 | * @type string $new_issue_uri |
| 99 | 106 | * Link to a *public* URI where users can report issues. Example: |
| @@ -106,9 +113,9 @@ | ||
| 106 | 113 | * relations artifacts like docs, packages delivered to package managers, |
| 107 | 114 | * etc. Example: "speech". |
| 108 | 115 | * @type string $github_label |
| 109 | 116 | * GitHub label to apply to issues and pull requests opened for this API. |
| 110 | - * @type array<string>|\Google\Protobuf\Internal\RepeatedField $codeowner_github_teams | |
| 117 | + * @type string[] $codeowner_github_teams | |
| 111 | 118 | * GitHub teams to be added to CODEOWNERS in the directory in GitHub |
| 112 | 119 | * containing source code for the client libraries for this API. |
| 113 | 120 | * @type string $doc_tag_prefix |
| 114 | 121 | * A prefix used in sample code when demarking regions to be included in |
| @@ -114,9 +121,9 @@ | ||
| 114 | 121 | * A prefix used in sample code when demarking regions to be included in |
| 115 | 122 | * documentation. |
| 116 | 123 | * @type int $organization |
| 117 | 124 | * For whom the client library is being published. |
| 118 | - * @type array<\Google\Api\ClientLibrarySettings>|\Google\Protobuf\Internal\RepeatedField $library_settings | |
| 125 | + * @type \Google\Api\ClientLibrarySettings[] $library_settings | |
| 119 | 126 | * Client library settings. If the same version string appears multiple |
| 120 | 127 | * times in this list, then the last one wins. Settings from earlier |
| 121 | 128 | * settings with the same version string are discarded. |
| 122 | 129 | * @type string $proto_reference_documentation_uri |
| @@ -121,13 +128,16 @@ | ||
| 121 | 128 | * settings with the same version string are discarded. |
| 122 | 129 | * @type string $proto_reference_documentation_uri |
| 123 | 130 | * Optional link to proto reference documentation. Example: |
| 124 | 131 | * https://cloud.google.com/pubsub/lite/docs/reference/rpc |
| 132 | + * @type string $rest_reference_documentation_uri | |
| 133 | + * Optional link to REST reference documentation. Example: | |
| 134 | + * https://cloud.google.com/pubsub/lite/docs/reference/rest | |
| 125 | 135 | * } |
| 126 | 136 | */ |
| 127 | 137 | public function __construct($data = NULL) |
| 128 | 138 | { |
| 129 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Client::initOnce(); | |
| 139 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Client::initOnce(); | |
| 130 | 140 | parent::__construct($data); |
| 131 | 141 | } |
| 132 | 142 | /** |
| 133 | 143 | * A list of API method settings, e.g. the behavior for methods that use the |
| @@ -133,9 +143,9 @@ | ||
| 133 | 143 | * A list of API method settings, e.g. the behavior for methods that use the |
| 134 | 144 | * long-running operation pattern. |
| 135 | 145 | * |
| 136 | 146 | * Generated from protobuf field <code>repeated .google.api.MethodSettings method_settings = 2;</code> |
| 137 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 147 | + * @return RepeatedField<\Google\Api\MethodSettings> | |
| 138 | 148 | */ |
| 139 | 149 | public function getMethodSettings() |
| 140 | 150 | { |
| 141 | 151 | return $this->method_settings; |
| @@ -144,14 +154,14 @@ | ||
| 144 | 154 | * A list of API method settings, e.g. the behavior for methods that use the |
| 145 | 155 | * long-running operation pattern. |
| 146 | 156 | * |
| 147 | 157 | * Generated from protobuf field <code>repeated .google.api.MethodSettings method_settings = 2;</code> |
| 148 | - * @param array<\Google\Api\MethodSettings>|\Google\Protobuf\Internal\RepeatedField $var | |
| 158 | + * @param \Google\Api\MethodSettings[] $var | |
| 149 | 159 | * @return $this |
| 150 | 160 | */ |
| 151 | 161 | public function setMethodSettings($var) |
| 152 | 162 | { |
| 153 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\MethodSettings::class); | |
| 163 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\MethodSettings::class); | |
| 154 | 164 | $this->method_settings = $arr; |
| 155 | 165 | return $this; |
| 156 | 166 | } |
| 157 | 167 | /** |
| @@ -258,9 +268,9 @@ | ||
| 258 | 268 | * GitHub teams to be added to CODEOWNERS in the directory in GitHub |
| 259 | 269 | * containing source code for the client libraries for this API. |
| 260 | 270 | * |
| 261 | 271 | * Generated from protobuf field <code>repeated string codeowner_github_teams = 105;</code> |
| 262 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 272 | + * @return RepeatedField<string> | |
| 263 | 273 | */ |
| 264 | 274 | public function getCodeownerGithubTeams() |
| 265 | 275 | { |
| 266 | 276 | return $this->codeowner_github_teams; |
| @@ -269,14 +279,14 @@ | ||
| 269 | 279 | * GitHub teams to be added to CODEOWNERS in the directory in GitHub |
| 270 | 280 | * containing source code for the client libraries for this API. |
| 271 | 281 | * |
| 272 | 282 | * Generated from protobuf field <code>repeated string codeowner_github_teams = 105;</code> |
| 273 | - * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var | |
| 283 | + * @param string[] $var | |
| 274 | 284 | * @return $this |
| 275 | 285 | */ |
| 276 | 286 | public function setCodeownerGithubTeams($var) |
| 277 | 287 | { |
| 278 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING); | |
| 288 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::STRING); | |
| 279 | 289 | $this->codeowner_github_teams = $arr; |
| 280 | 290 | return $this; |
| 281 | 291 | } |
| 282 | 292 | /** |
| @@ -322,9 +332,9 @@ | ||
| 322 | 332 | * @return $this |
| 323 | 333 | */ |
| 324 | 334 | public function setOrganization($var) |
| 325 | 335 | { |
| 326 | - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Api\ClientLibraryOrganization::class); | |
| 336 | + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Api\ClientLibraryOrganization::class); | |
| 327 | 337 | $this->organization = $var; |
| 328 | 338 | return $this; |
| 329 | 339 | } |
| 330 | 340 | /** |
| @@ -332,9 +342,9 @@ | ||
| 332 | 342 | * times in this list, then the last one wins. Settings from earlier |
| 333 | 343 | * settings with the same version string are discarded. |
| 334 | 344 | * |
| 335 | 345 | * Generated from protobuf field <code>repeated .google.api.ClientLibrarySettings library_settings = 109;</code> |
| 336 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 346 | + * @return RepeatedField<\Google\Api\ClientLibrarySettings> | |
| 337 | 347 | */ |
| 338 | 348 | public function getLibrarySettings() |
| 339 | 349 | { |
| 340 | 350 | return $this->library_settings; |
| @@ -344,14 +354,14 @@ | ||
| 344 | 354 | * times in this list, then the last one wins. Settings from earlier |
| 345 | 355 | * settings with the same version string are discarded. |
| 346 | 356 | * |
| 347 | 357 | * Generated from protobuf field <code>repeated .google.api.ClientLibrarySettings library_settings = 109;</code> |
| 348 | - * @param array<\Google\Api\ClientLibrarySettings>|\Google\Protobuf\Internal\RepeatedField $var | |
| 358 | + * @param \Google\Api\ClientLibrarySettings[] $var | |
| 349 | 359 | * @return $this |
| 350 | 360 | */ |
| 351 | 361 | public function setLibrarySettings($var) |
| 352 | 362 | { |
| 353 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\ClientLibrarySettings::class); | |
| 363 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\ClientLibrarySettings::class); | |
| 354 | 364 | $this->library_settings = $arr; |
| 355 | 365 | return $this; |
| 356 | 366 | } |
| 357 | 367 | /** |
| @@ -376,7 +386,32 @@ | ||
| 376 | 386 | public function setProtoReferenceDocumentationUri($var) |
| 377 | 387 | { |
| 378 | 388 | GPBUtil::checkString($var, True); |
| 379 | 389 | $this->proto_reference_documentation_uri = $var; |
| 390 | + return $this; | |
| 391 | + } | |
| 392 | + /** | |
| 393 | + * Optional link to REST reference documentation. Example: | |
| 394 | + * https://cloud.google.com/pubsub/lite/docs/reference/rest | |
| 395 | + * | |
| 396 | + * Generated from protobuf field <code>string rest_reference_documentation_uri = 111;</code> | |
| 397 | + * @return string | |
| 398 | + */ | |
| 399 | + public function getRestReferenceDocumentationUri() | |
| 400 | + { | |
| 401 | + return $this->rest_reference_documentation_uri; | |
| 402 | + } | |
| 403 | + /** | |
| 404 | + * Optional link to REST reference documentation. Example: | |
| 405 | + * https://cloud.google.com/pubsub/lite/docs/reference/rest | |
| 406 | + * | |
| 407 | + * Generated from protobuf field <code>string rest_reference_documentation_uri = 111;</code> | |
| 408 | + * @param string $var | |
| 409 | + * @return $this | |
| 410 | + */ | |
| 411 | + public function setRestReferenceDocumentationUri($var) | |
| 412 | + { | |
| 413 | + GPBUtil::checkString($var, True); | |
| 414 | + $this->rest_reference_documentation_uri = $var; | |
| 380 | 415 | return $this; |
| 381 | 416 | } |
| 382 | 417 | } |