media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
MethodSettings.php
MethodSettings.php in Media Cloud Sync 1.2.3, at includes/sdk/google/google/common-protos/src/Api/MethodSettings.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/api/client.proto |
| 5 | namespace Dudlewebs\WPMCS\Google\Api; |
| 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; |
| 10 | /** |
| 11 | * Describes the generator configuration for a method. |
| 12 | * |
| 13 | * Generated from protobuf message <code>google.api.MethodSettings</code> |
| 14 | */ |
| 15 | class MethodSettings extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 16 | { |
| 17 | /** |
| 18 | * The fully qualified name of the method, for which the options below apply. |
| 19 | * This is used to find the method to apply the options. |
| 20 | * |
| 21 | * Generated from protobuf field <code>string selector = 1;</code> |
| 22 | */ |
| 23 | protected $selector = ''; |
| 24 | /** |
| 25 | * Describes settings to use for long-running operations when generating |
| 26 | * API methods for RPCs. Complements RPCs that use the annotations in |
| 27 | * google/longrunning/operations.proto. |
| 28 | * Example of a YAML configuration:: |
| 29 | * publishing: |
| 30 | * method_settings: |
| 31 | * - selector: google.cloud.speech.v2.Speech.BatchRecognize |
| 32 | * long_running: |
| 33 | * initial_poll_delay: |
| 34 | * seconds: 60 # 1 minute |
| 35 | * poll_delay_multiplier: 1.5 |
| 36 | * max_poll_delay: |
| 37 | * seconds: 360 # 6 minutes |
| 38 | * total_poll_timeout: |
| 39 | * seconds: 54000 # 90 minutes |
| 40 | * |
| 41 | * Generated from protobuf field <code>.google.api.MethodSettings.LongRunning long_running = 2;</code> |
| 42 | */ |
| 43 | protected $long_running = null; |
| 44 | /** |
| 45 | * List of top-level fields of the request message, that should be |
| 46 | * automatically populated by the client libraries based on their |
| 47 | * (google.api.field_info).format. Currently supported format: UUID4. |
| 48 | * Example of a YAML configuration: |
| 49 | * publishing: |
| 50 | * method_settings: |
| 51 | * - selector: google.example.v1.ExampleService.CreateExample |
| 52 | * auto_populated_fields: |
| 53 | * - request_id |
| 54 | * |
| 55 | * Generated from protobuf field <code>repeated string auto_populated_fields = 3;</code> |
| 56 | */ |
| 57 | private $auto_populated_fields; |
| 58 | /** |
| 59 | * Constructor. |
| 60 | * |
| 61 | * @param array $data { |
| 62 | * Optional. Data for populating the Message object. |
| 63 | * |
| 64 | * @type string $selector |
| 65 | * The fully qualified name of the method, for which the options below apply. |
| 66 | * This is used to find the method to apply the options. |
| 67 | * @type \Google\Api\MethodSettings\LongRunning $long_running |
| 68 | * Describes settings to use for long-running operations when generating |
| 69 | * API methods for RPCs. Complements RPCs that use the annotations in |
| 70 | * google/longrunning/operations.proto. |
| 71 | * Example of a YAML configuration:: |
| 72 | * publishing: |
| 73 | * method_settings: |
| 74 | * - selector: google.cloud.speech.v2.Speech.BatchRecognize |
| 75 | * long_running: |
| 76 | * initial_poll_delay: |
| 77 | * seconds: 60 # 1 minute |
| 78 | * poll_delay_multiplier: 1.5 |
| 79 | * max_poll_delay: |
| 80 | * seconds: 360 # 6 minutes |
| 81 | * total_poll_timeout: |
| 82 | * seconds: 54000 # 90 minutes |
| 83 | * @type array<string>|\Google\Protobuf\Internal\RepeatedField $auto_populated_fields |
| 84 | * List of top-level fields of the request message, that should be |
| 85 | * automatically populated by the client libraries based on their |
| 86 | * (google.api.field_info).format. Currently supported format: UUID4. |
| 87 | * Example of a YAML configuration: |
| 88 | * publishing: |
| 89 | * method_settings: |
| 90 | * - selector: google.example.v1.ExampleService.CreateExample |
| 91 | * auto_populated_fields: |
| 92 | * - request_id |
| 93 | * } |
| 94 | */ |
| 95 | public function __construct($data = NULL) |
| 96 | { |
| 97 | \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Client::initOnce(); |
| 98 | parent::__construct($data); |
| 99 | } |
| 100 | /** |
| 101 | * The fully qualified name of the method, for which the options below apply. |
| 102 | * This is used to find the method to apply the options. |
| 103 | * |
| 104 | * Generated from protobuf field <code>string selector = 1;</code> |
| 105 | * @return string |
| 106 | */ |
| 107 | public function getSelector() |
| 108 | { |
| 109 | return $this->selector; |
| 110 | } |
| 111 | /** |
| 112 | * The fully qualified name of the method, for which the options below apply. |
| 113 | * This is used to find the method to apply the options. |
| 114 | * |
| 115 | * Generated from protobuf field <code>string selector = 1;</code> |
| 116 | * @param string $var |
| 117 | * @return $this |
| 118 | */ |
| 119 | public function setSelector($var) |
| 120 | { |
| 121 | GPBUtil::checkString($var, True); |
| 122 | $this->selector = $var; |
| 123 | return $this; |
| 124 | } |
| 125 | /** |
| 126 | * Describes settings to use for long-running operations when generating |
| 127 | * API methods for RPCs. Complements RPCs that use the annotations in |
| 128 | * google/longrunning/operations.proto. |
| 129 | * Example of a YAML configuration:: |
| 130 | * publishing: |
| 131 | * method_settings: |
| 132 | * - selector: google.cloud.speech.v2.Speech.BatchRecognize |
| 133 | * long_running: |
| 134 | * initial_poll_delay: |
| 135 | * seconds: 60 # 1 minute |
| 136 | * poll_delay_multiplier: 1.5 |
| 137 | * max_poll_delay: |
| 138 | * seconds: 360 # 6 minutes |
| 139 | * total_poll_timeout: |
| 140 | * seconds: 54000 # 90 minutes |
| 141 | * |
| 142 | * Generated from protobuf field <code>.google.api.MethodSettings.LongRunning long_running = 2;</code> |
| 143 | * @return \Google\Api\MethodSettings\LongRunning|null |
| 144 | */ |
| 145 | public function getLongRunning() |
| 146 | { |
| 147 | return $this->long_running; |
| 148 | } |
| 149 | public function hasLongRunning() |
| 150 | { |
| 151 | return isset($this->long_running); |
| 152 | } |
| 153 | public function clearLongRunning() |
| 154 | { |
| 155 | unset($this->long_running); |
| 156 | } |
| 157 | /** |
| 158 | * Describes settings to use for long-running operations when generating |
| 159 | * API methods for RPCs. Complements RPCs that use the annotations in |
| 160 | * google/longrunning/operations.proto. |
| 161 | * Example of a YAML configuration:: |
| 162 | * publishing: |
| 163 | * method_settings: |
| 164 | * - selector: google.cloud.speech.v2.Speech.BatchRecognize |
| 165 | * long_running: |
| 166 | * initial_poll_delay: |
| 167 | * seconds: 60 # 1 minute |
| 168 | * poll_delay_multiplier: 1.5 |
| 169 | * max_poll_delay: |
| 170 | * seconds: 360 # 6 minutes |
| 171 | * total_poll_timeout: |
| 172 | * seconds: 54000 # 90 minutes |
| 173 | * |
| 174 | * Generated from protobuf field <code>.google.api.MethodSettings.LongRunning long_running = 2;</code> |
| 175 | * @param \Google\Api\MethodSettings\LongRunning $var |
| 176 | * @return $this |
| 177 | */ |
| 178 | public function setLongRunning($var) |
| 179 | { |
| 180 | GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\Google\Api\MethodSettings\LongRunning::class); |
| 181 | $this->long_running = $var; |
| 182 | return $this; |
| 183 | } |
| 184 | /** |
| 185 | * List of top-level fields of the request message, that should be |
| 186 | * automatically populated by the client libraries based on their |
| 187 | * (google.api.field_info).format. Currently supported format: UUID4. |
| 188 | * Example of a YAML configuration: |
| 189 | * publishing: |
| 190 | * method_settings: |
| 191 | * - selector: google.example.v1.ExampleService.CreateExample |
| 192 | * auto_populated_fields: |
| 193 | * - request_id |
| 194 | * |
| 195 | * Generated from protobuf field <code>repeated string auto_populated_fields = 3;</code> |
| 196 | * @return \Google\Protobuf\Internal\RepeatedField |
| 197 | */ |
| 198 | public function getAutoPopulatedFields() |
| 199 | { |
| 200 | return $this->auto_populated_fields; |
| 201 | } |
| 202 | /** |
| 203 | * List of top-level fields of the request message, that should be |
| 204 | * automatically populated by the client libraries based on their |
| 205 | * (google.api.field_info).format. Currently supported format: UUID4. |
| 206 | * Example of a YAML configuration: |
| 207 | * publishing: |
| 208 | * method_settings: |
| 209 | * - selector: google.example.v1.ExampleService.CreateExample |
| 210 | * auto_populated_fields: |
| 211 | * - request_id |
| 212 | * |
| 213 | * Generated from protobuf field <code>repeated string auto_populated_fields = 3;</code> |
| 214 | * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var |
| 215 | * @return $this |
| 216 | */ |
| 217 | public function setAutoPopulatedFields($var) |
| 218 | { |
| 219 | $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING); |
| 220 | $this->auto_populated_fields = $arr; |
| 221 | return $this; |
| 222 | } |
| 223 | } |
| 224 |