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