media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
ClientLibrarySettings.php
ClientLibrarySettings.php in Media Cloud Sync 1.4.2, at includes/sdk/google/google/common-protos/src/Api/ClientLibrarySettings.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/api/client.proto |
| 5 | namespace Dudlewebs\WPMCS\GCP\Google\Api; |
| 6 | |
| 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 | /** |
| 11 | * Details about how and where to publish client libraries. |
| 12 | * |
| 13 | * Generated from protobuf message <code>google.api.ClientLibrarySettings</code> |
| 14 | */ |
| 15 | class ClientLibrarySettings extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message |
| 16 | { |
| 17 | /** |
| 18 | * Version of the API to apply these settings to. This is the full protobuf |
| 19 | * package for the API, ending in the version element. |
| 20 | * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". |
| 21 | * |
| 22 | * Generated from protobuf field <code>string version = 1;</code> |
| 23 | */ |
| 24 | protected $version = ''; |
| 25 | /** |
| 26 | * Launch stage of this version of the API. |
| 27 | * |
| 28 | * Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 2;</code> |
| 29 | */ |
| 30 | protected $launch_stage = 0; |
| 31 | /** |
| 32 | * When using transport=rest, the client request will encode enums as |
| 33 | * numbers rather than strings. |
| 34 | * |
| 35 | * Generated from protobuf field <code>bool rest_numeric_enums = 3;</code> |
| 36 | */ |
| 37 | protected $rest_numeric_enums = \false; |
| 38 | /** |
| 39 | * Settings for legacy Java features, supported in the Service YAML. |
| 40 | * |
| 41 | * Generated from protobuf field <code>.google.api.JavaSettings java_settings = 21;</code> |
| 42 | */ |
| 43 | protected $java_settings = null; |
| 44 | /** |
| 45 | * Settings for C++ client libraries. |
| 46 | * |
| 47 | * Generated from protobuf field <code>.google.api.CppSettings cpp_settings = 22;</code> |
| 48 | */ |
| 49 | protected $cpp_settings = null; |
| 50 | /** |
| 51 | * Settings for PHP client libraries. |
| 52 | * |
| 53 | * Generated from protobuf field <code>.google.api.PhpSettings php_settings = 23;</code> |
| 54 | */ |
| 55 | protected $php_settings = null; |
| 56 | /** |
| 57 | * Settings for Python client libraries. |
| 58 | * |
| 59 | * Generated from protobuf field <code>.google.api.PythonSettings python_settings = 24;</code> |
| 60 | */ |
| 61 | protected $python_settings = null; |
| 62 | /** |
| 63 | * Settings for Node client libraries. |
| 64 | * |
| 65 | * Generated from protobuf field <code>.google.api.NodeSettings node_settings = 25;</code> |
| 66 | */ |
| 67 | protected $node_settings = null; |
| 68 | /** |
| 69 | * Settings for .NET client libraries. |
| 70 | * |
| 71 | * Generated from protobuf field <code>.google.api.DotnetSettings dotnet_settings = 26;</code> |
| 72 | */ |
| 73 | protected $dotnet_settings = null; |
| 74 | /** |
| 75 | * Settings for Ruby client libraries. |
| 76 | * |
| 77 | * Generated from protobuf field <code>.google.api.RubySettings ruby_settings = 27;</code> |
| 78 | */ |
| 79 | protected $ruby_settings = null; |
| 80 | /** |
| 81 | * Settings for Go client libraries. |
| 82 | * |
| 83 | * Generated from protobuf field <code>.google.api.GoSettings go_settings = 28;</code> |
| 84 | */ |
| 85 | protected $go_settings = null; |
| 86 | /** |
| 87 | * Constructor. |
| 88 | * |
| 89 | * @param array $data { |
| 90 | * Optional. Data for populating the Message object. |
| 91 | * |
| 92 | * @type string $version |
| 93 | * Version of the API to apply these settings to. This is the full protobuf |
| 94 | * package for the API, ending in the version element. |
| 95 | * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". |
| 96 | * @type int $launch_stage |
| 97 | * Launch stage of this version of the API. |
| 98 | * @type bool $rest_numeric_enums |
| 99 | * When using transport=rest, the client request will encode enums as |
| 100 | * numbers rather than strings. |
| 101 | * @type \Google\Api\JavaSettings $java_settings |
| 102 | * Settings for legacy Java features, supported in the Service YAML. |
| 103 | * @type \Google\Api\CppSettings $cpp_settings |
| 104 | * Settings for C++ client libraries. |
| 105 | * @type \Google\Api\PhpSettings $php_settings |
| 106 | * Settings for PHP client libraries. |
| 107 | * @type \Google\Api\PythonSettings $python_settings |
| 108 | * Settings for Python client libraries. |
| 109 | * @type \Google\Api\NodeSettings $node_settings |
| 110 | * Settings for Node client libraries. |
| 111 | * @type \Google\Api\DotnetSettings $dotnet_settings |
| 112 | * Settings for .NET client libraries. |
| 113 | * @type \Google\Api\RubySettings $ruby_settings |
| 114 | * Settings for Ruby client libraries. |
| 115 | * @type \Google\Api\GoSettings $go_settings |
| 116 | * Settings for Go client libraries. |
| 117 | * } |
| 118 | */ |
| 119 | public function __construct($data = NULL) |
| 120 | { |
| 121 | \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Client::initOnce(); |
| 122 | parent::__construct($data); |
| 123 | } |
| 124 | /** |
| 125 | * Version of the API to apply these settings to. This is the full protobuf |
| 126 | * package for the API, ending in the version element. |
| 127 | * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". |
| 128 | * |
| 129 | * Generated from protobuf field <code>string version = 1;</code> |
| 130 | * @return string |
| 131 | */ |
| 132 | public function getVersion() |
| 133 | { |
| 134 | return $this->version; |
| 135 | } |
| 136 | /** |
| 137 | * Version of the API to apply these settings to. This is the full protobuf |
| 138 | * package for the API, ending in the version element. |
| 139 | * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". |
| 140 | * |
| 141 | * Generated from protobuf field <code>string version = 1;</code> |
| 142 | * @param string $var |
| 143 | * @return $this |
| 144 | */ |
| 145 | public function setVersion($var) |
| 146 | { |
| 147 | GPBUtil::checkString($var, True); |
| 148 | $this->version = $var; |
| 149 | return $this; |
| 150 | } |
| 151 | /** |
| 152 | * Launch stage of this version of the API. |
| 153 | * |
| 154 | * Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 2;</code> |
| 155 | * @return int |
| 156 | */ |
| 157 | public function getLaunchStage() |
| 158 | { |
| 159 | return $this->launch_stage; |
| 160 | } |
| 161 | /** |
| 162 | * Launch stage of this version of the API. |
| 163 | * |
| 164 | * Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 2;</code> |
| 165 | * @param int $var |
| 166 | * @return $this |
| 167 | */ |
| 168 | public function setLaunchStage($var) |
| 169 | { |
| 170 | GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Api\LaunchStage::class); |
| 171 | $this->launch_stage = $var; |
| 172 | return $this; |
| 173 | } |
| 174 | /** |
| 175 | * When using transport=rest, the client request will encode enums as |
| 176 | * numbers rather than strings. |
| 177 | * |
| 178 | * Generated from protobuf field <code>bool rest_numeric_enums = 3;</code> |
| 179 | * @return bool |
| 180 | */ |
| 181 | public function getRestNumericEnums() |
| 182 | { |
| 183 | return $this->rest_numeric_enums; |
| 184 | } |
| 185 | /** |
| 186 | * When using transport=rest, the client request will encode enums as |
| 187 | * numbers rather than strings. |
| 188 | * |
| 189 | * Generated from protobuf field <code>bool rest_numeric_enums = 3;</code> |
| 190 | * @param bool $var |
| 191 | * @return $this |
| 192 | */ |
| 193 | public function setRestNumericEnums($var) |
| 194 | { |
| 195 | GPBUtil::checkBool($var); |
| 196 | $this->rest_numeric_enums = $var; |
| 197 | return $this; |
| 198 | } |
| 199 | /** |
| 200 | * Settings for legacy Java features, supported in the Service YAML. |
| 201 | * |
| 202 | * Generated from protobuf field <code>.google.api.JavaSettings java_settings = 21;</code> |
| 203 | * @return \Google\Api\JavaSettings|null |
| 204 | */ |
| 205 | public function getJavaSettings() |
| 206 | { |
| 207 | return $this->java_settings; |
| 208 | } |
| 209 | public function hasJavaSettings() |
| 210 | { |
| 211 | return isset($this->java_settings); |
| 212 | } |
| 213 | public function clearJavaSettings() |
| 214 | { |
| 215 | unset($this->java_settings); |
| 216 | } |
| 217 | /** |
| 218 | * Settings for legacy Java features, supported in the Service YAML. |
| 219 | * |
| 220 | * Generated from protobuf field <code>.google.api.JavaSettings java_settings = 21;</code> |
| 221 | * @param \Google\Api\JavaSettings $var |
| 222 | * @return $this |
| 223 | */ |
| 224 | public function setJavaSettings($var) |
| 225 | { |
| 226 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\JavaSettings::class); |
| 227 | $this->java_settings = $var; |
| 228 | return $this; |
| 229 | } |
| 230 | /** |
| 231 | * Settings for C++ client libraries. |
| 232 | * |
| 233 | * Generated from protobuf field <code>.google.api.CppSettings cpp_settings = 22;</code> |
| 234 | * @return \Google\Api\CppSettings|null |
| 235 | */ |
| 236 | public function getCppSettings() |
| 237 | { |
| 238 | return $this->cpp_settings; |
| 239 | } |
| 240 | public function hasCppSettings() |
| 241 | { |
| 242 | return isset($this->cpp_settings); |
| 243 | } |
| 244 | public function clearCppSettings() |
| 245 | { |
| 246 | unset($this->cpp_settings); |
| 247 | } |
| 248 | /** |
| 249 | * Settings for C++ client libraries. |
| 250 | * |
| 251 | * Generated from protobuf field <code>.google.api.CppSettings cpp_settings = 22;</code> |
| 252 | * @param \Google\Api\CppSettings $var |
| 253 | * @return $this |
| 254 | */ |
| 255 | public function setCppSettings($var) |
| 256 | { |
| 257 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\CppSettings::class); |
| 258 | $this->cpp_settings = $var; |
| 259 | return $this; |
| 260 | } |
| 261 | /** |
| 262 | * Settings for PHP client libraries. |
| 263 | * |
| 264 | * Generated from protobuf field <code>.google.api.PhpSettings php_settings = 23;</code> |
| 265 | * @return \Google\Api\PhpSettings|null |
| 266 | */ |
| 267 | public function getPhpSettings() |
| 268 | { |
| 269 | return $this->php_settings; |
| 270 | } |
| 271 | public function hasPhpSettings() |
| 272 | { |
| 273 | return isset($this->php_settings); |
| 274 | } |
| 275 | public function clearPhpSettings() |
| 276 | { |
| 277 | unset($this->php_settings); |
| 278 | } |
| 279 | /** |
| 280 | * Settings for PHP client libraries. |
| 281 | * |
| 282 | * Generated from protobuf field <code>.google.api.PhpSettings php_settings = 23;</code> |
| 283 | * @param \Google\Api\PhpSettings $var |
| 284 | * @return $this |
| 285 | */ |
| 286 | public function setPhpSettings($var) |
| 287 | { |
| 288 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\PhpSettings::class); |
| 289 | $this->php_settings = $var; |
| 290 | return $this; |
| 291 | } |
| 292 | /** |
| 293 | * Settings for Python client libraries. |
| 294 | * |
| 295 | * Generated from protobuf field <code>.google.api.PythonSettings python_settings = 24;</code> |
| 296 | * @return \Google\Api\PythonSettings|null |
| 297 | */ |
| 298 | public function getPythonSettings() |
| 299 | { |
| 300 | return $this->python_settings; |
| 301 | } |
| 302 | public function hasPythonSettings() |
| 303 | { |
| 304 | return isset($this->python_settings); |
| 305 | } |
| 306 | public function clearPythonSettings() |
| 307 | { |
| 308 | unset($this->python_settings); |
| 309 | } |
| 310 | /** |
| 311 | * Settings for Python client libraries. |
| 312 | * |
| 313 | * Generated from protobuf field <code>.google.api.PythonSettings python_settings = 24;</code> |
| 314 | * @param \Google\Api\PythonSettings $var |
| 315 | * @return $this |
| 316 | */ |
| 317 | public function setPythonSettings($var) |
| 318 | { |
| 319 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\PythonSettings::class); |
| 320 | $this->python_settings = $var; |
| 321 | return $this; |
| 322 | } |
| 323 | /** |
| 324 | * Settings for Node client libraries. |
| 325 | * |
| 326 | * Generated from protobuf field <code>.google.api.NodeSettings node_settings = 25;</code> |
| 327 | * @return \Google\Api\NodeSettings|null |
| 328 | */ |
| 329 | public function getNodeSettings() |
| 330 | { |
| 331 | return $this->node_settings; |
| 332 | } |
| 333 | public function hasNodeSettings() |
| 334 | { |
| 335 | return isset($this->node_settings); |
| 336 | } |
| 337 | public function clearNodeSettings() |
| 338 | { |
| 339 | unset($this->node_settings); |
| 340 | } |
| 341 | /** |
| 342 | * Settings for Node client libraries. |
| 343 | * |
| 344 | * Generated from protobuf field <code>.google.api.NodeSettings node_settings = 25;</code> |
| 345 | * @param \Google\Api\NodeSettings $var |
| 346 | * @return $this |
| 347 | */ |
| 348 | public function setNodeSettings($var) |
| 349 | { |
| 350 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\NodeSettings::class); |
| 351 | $this->node_settings = $var; |
| 352 | return $this; |
| 353 | } |
| 354 | /** |
| 355 | * Settings for .NET client libraries. |
| 356 | * |
| 357 | * Generated from protobuf field <code>.google.api.DotnetSettings dotnet_settings = 26;</code> |
| 358 | * @return \Google\Api\DotnetSettings|null |
| 359 | */ |
| 360 | public function getDotnetSettings() |
| 361 | { |
| 362 | return $this->dotnet_settings; |
| 363 | } |
| 364 | public function hasDotnetSettings() |
| 365 | { |
| 366 | return isset($this->dotnet_settings); |
| 367 | } |
| 368 | public function clearDotnetSettings() |
| 369 | { |
| 370 | unset($this->dotnet_settings); |
| 371 | } |
| 372 | /** |
| 373 | * Settings for .NET client libraries. |
| 374 | * |
| 375 | * Generated from protobuf field <code>.google.api.DotnetSettings dotnet_settings = 26;</code> |
| 376 | * @param \Google\Api\DotnetSettings $var |
| 377 | * @return $this |
| 378 | */ |
| 379 | public function setDotnetSettings($var) |
| 380 | { |
| 381 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\DotnetSettings::class); |
| 382 | $this->dotnet_settings = $var; |
| 383 | return $this; |
| 384 | } |
| 385 | /** |
| 386 | * Settings for Ruby client libraries. |
| 387 | * |
| 388 | * Generated from protobuf field <code>.google.api.RubySettings ruby_settings = 27;</code> |
| 389 | * @return \Google\Api\RubySettings|null |
| 390 | */ |
| 391 | public function getRubySettings() |
| 392 | { |
| 393 | return $this->ruby_settings; |
| 394 | } |
| 395 | public function hasRubySettings() |
| 396 | { |
| 397 | return isset($this->ruby_settings); |
| 398 | } |
| 399 | public function clearRubySettings() |
| 400 | { |
| 401 | unset($this->ruby_settings); |
| 402 | } |
| 403 | /** |
| 404 | * Settings for Ruby client libraries. |
| 405 | * |
| 406 | * Generated from protobuf field <code>.google.api.RubySettings ruby_settings = 27;</code> |
| 407 | * @param \Google\Api\RubySettings $var |
| 408 | * @return $this |
| 409 | */ |
| 410 | public function setRubySettings($var) |
| 411 | { |
| 412 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\RubySettings::class); |
| 413 | $this->ruby_settings = $var; |
| 414 | return $this; |
| 415 | } |
| 416 | /** |
| 417 | * Settings for Go client libraries. |
| 418 | * |
| 419 | * Generated from protobuf field <code>.google.api.GoSettings go_settings = 28;</code> |
| 420 | * @return \Google\Api\GoSettings|null |
| 421 | */ |
| 422 | public function getGoSettings() |
| 423 | { |
| 424 | return $this->go_settings; |
| 425 | } |
| 426 | public function hasGoSettings() |
| 427 | { |
| 428 | return isset($this->go_settings); |
| 429 | } |
| 430 | public function clearGoSettings() |
| 431 | { |
| 432 | unset($this->go_settings); |
| 433 | } |
| 434 | /** |
| 435 | * Settings for Go client libraries. |
| 436 | * |
| 437 | * Generated from protobuf field <code>.google.api.GoSettings go_settings = 28;</code> |
| 438 | * @param \Google\Api\GoSettings $var |
| 439 | * @return $this |
| 440 | */ |
| 441 | public function setGoSettings($var) |
| 442 | { |
| 443 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\GoSettings::class); |
| 444 | $this->go_settings = $var; |
| 445 | return $this; |
| 446 | } |
| 447 | } |
| 448 |