media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
CommonLanguageSettings.php
CommonLanguageSettings.php in Media Cloud Sync 1.4.2, at includes/sdk/google/google/common-protos/src/Api/CommonLanguageSettings.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 | * Required information for every language. |
| 12 | * |
| 13 | * Generated from protobuf message <code>google.api.CommonLanguageSettings</code> |
| 14 | */ |
| 15 | class CommonLanguageSettings extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message |
| 16 | { |
| 17 | /** |
| 18 | * Link to automatically generated reference documentation. Example: |
| 19 | * https://cloud.google.com/nodejs/docs/reference/asset/latest |
| 20 | * |
| 21 | * Generated from protobuf field <code>string reference_docs_uri = 1 [deprecated = true];</code> |
| 22 | * @deprecated |
| 23 | */ |
| 24 | protected $reference_docs_uri = ''; |
| 25 | /** |
| 26 | * The destination where API teams want this client library to be published. |
| 27 | * |
| 28 | * Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code> |
| 29 | */ |
| 30 | private $destinations; |
| 31 | /** |
| 32 | * Configuration for which RPCs should be generated in the GAPIC client. |
| 33 | * |
| 34 | * Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code> |
| 35 | */ |
| 36 | protected $selective_gapic_generation = null; |
| 37 | /** |
| 38 | * Constructor. |
| 39 | * |
| 40 | * @param array $data { |
| 41 | * Optional. Data for populating the Message object. |
| 42 | * |
| 43 | * @type string $reference_docs_uri |
| 44 | * Link to automatically generated reference documentation. Example: |
| 45 | * https://cloud.google.com/nodejs/docs/reference/asset/latest |
| 46 | * @type int[] $destinations |
| 47 | * The destination where API teams want this client library to be published. |
| 48 | * @type \Google\Api\SelectiveGapicGeneration $selective_gapic_generation |
| 49 | * Configuration for which RPCs should be generated in the GAPIC client. |
| 50 | * } |
| 51 | */ |
| 52 | public function __construct($data = NULL) |
| 53 | { |
| 54 | \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Client::initOnce(); |
| 55 | parent::__construct($data); |
| 56 | } |
| 57 | /** |
| 58 | * Link to automatically generated reference documentation. Example: |
| 59 | * https://cloud.google.com/nodejs/docs/reference/asset/latest |
| 60 | * |
| 61 | * Generated from protobuf field <code>string reference_docs_uri = 1 [deprecated = true];</code> |
| 62 | * @return string |
| 63 | * @deprecated |
| 64 | */ |
| 65 | public function getReferenceDocsUri() |
| 66 | { |
| 67 | if ($this->reference_docs_uri !== '') { |
| 68 | @\trigger_error('reference_docs_uri is deprecated.', \E_USER_DEPRECATED); |
| 69 | } |
| 70 | return $this->reference_docs_uri; |
| 71 | } |
| 72 | /** |
| 73 | * Link to automatically generated reference documentation. Example: |
| 74 | * https://cloud.google.com/nodejs/docs/reference/asset/latest |
| 75 | * |
| 76 | * Generated from protobuf field <code>string reference_docs_uri = 1 [deprecated = true];</code> |
| 77 | * @param string $var |
| 78 | * @return $this |
| 79 | * @deprecated |
| 80 | */ |
| 81 | public function setReferenceDocsUri($var) |
| 82 | { |
| 83 | @\trigger_error('reference_docs_uri is deprecated.', \E_USER_DEPRECATED); |
| 84 | GPBUtil::checkString($var, True); |
| 85 | $this->reference_docs_uri = $var; |
| 86 | return $this; |
| 87 | } |
| 88 | /** |
| 89 | * The destination where API teams want this client library to be published. |
| 90 | * |
| 91 | * Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code> |
| 92 | * @return RepeatedField<int> |
| 93 | */ |
| 94 | public function getDestinations() |
| 95 | { |
| 96 | return $this->destinations; |
| 97 | } |
| 98 | /** |
| 99 | * The destination where API teams want this client library to be published. |
| 100 | * |
| 101 | * Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code> |
| 102 | * @param int[] $var |
| 103 | * @return $this |
| 104 | */ |
| 105 | public function setDestinations($var) |
| 106 | { |
| 107 | $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::ENUM, \Dudlewebs\WPMCS\GCP\Google\Api\ClientLibraryDestination::class); |
| 108 | $this->destinations = $arr; |
| 109 | return $this; |
| 110 | } |
| 111 | /** |
| 112 | * Configuration for which RPCs should be generated in the GAPIC client. |
| 113 | * |
| 114 | * Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code> |
| 115 | * @return \Google\Api\SelectiveGapicGeneration|null |
| 116 | */ |
| 117 | public function getSelectiveGapicGeneration() |
| 118 | { |
| 119 | return $this->selective_gapic_generation; |
| 120 | } |
| 121 | public function hasSelectiveGapicGeneration() |
| 122 | { |
| 123 | return isset($this->selective_gapic_generation); |
| 124 | } |
| 125 | public function clearSelectiveGapicGeneration() |
| 126 | { |
| 127 | unset($this->selective_gapic_generation); |
| 128 | } |
| 129 | /** |
| 130 | * Configuration for which RPCs should be generated in the GAPIC client. |
| 131 | * |
| 132 | * Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code> |
| 133 | * @param \Google\Api\SelectiveGapicGeneration $var |
| 134 | * @return $this |
| 135 | */ |
| 136 | public function setSelectiveGapicGeneration($var) |
| 137 | { |
| 138 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\SelectiveGapicGeneration::class); |
| 139 | $this->selective_gapic_generation = $var; |
| 140 | return $this; |
| 141 | } |
| 142 | } |
| 143 |