PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/google/google/protobuf/src/Google/Protobuf/Method.php +80 -14 1.2.8 → 1.4.2 View file →
@@ -1,19 +1,24 @@
1 1 <?php
2 2
3 3 # Generated by the protocol buffer compiler. DO NOT EDIT!
4 +# NO CHECKED-IN PROTOBUF GENCODE
4 5 # source: google/protobuf/api.proto
5 -namespace Dudlewebs\WPMCS\Google\Protobuf;
6 +namespace Dudlewebs\WPMCS\GCP\Google\Protobuf;
6 7
7 -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType;
8 -use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField;
9 -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil;
8 +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType;
9 +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil;
10 +use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField;
10 11 /**
11 12 * Method represents a method of an API interface.
13 + * New usages of this message as an alternative to MethodDescriptorProto are
14 + * strongly discouraged. This message does not reliability preserve all
15 + * information necessary to model the schema and preserve semantics. Instead
16 + * make use of FileDescriptorSet which preserves the necessary information.
12 17 *
13 18 * Generated from protobuf message <code>google.protobuf.Method</code>
14 19 */
15 -class Method extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
20 +class Method extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
16 21 {
17 22 /**
18 23 * The simple name of this method.
19 24 *
@@ -51,13 +56,25 @@
51 56 */
52 57 private $options;
53 58 /**
54 59 * The source syntax of this method.
60 + * This field should be ignored, instead the syntax should be inherited from
61 + * Api. This is similar to Field and EnumValue.
55 62 *
56 - * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
63 + * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7 [deprecated = true];</code>
64 + * @deprecated
57 65 */
58 66 protected $syntax = 0;
59 67 /**
68 + * The source edition string, only valid when syntax is SYNTAX_EDITIONS.
69 + * This field should be ignored, instead the edition should be inherited from
70 + * Api. This is similar to Field and EnumValue.
71 + *
72 + * Generated from protobuf field <code>string edition = 8 [deprecated = true];</code>
73 + * @deprecated
74 + */
75 + protected $edition = '';
76 + /**
60 77 * Constructor.
61 78 *
62 79 * @param array $data {
63 80 * Optional. Data for populating the Message object.
@@ -71,17 +88,23 @@
71 88 * @type string $response_type_url
72 89 * The URL of the output message type.
73 90 * @type bool $response_streaming
74 91 * If true, the response is streamed.
75 - * @type array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $options
92 + * @type \Google\Protobuf\Option[] $options
76 93 * Any metadata attached to the method.
77 94 * @type int $syntax
78 95 * The source syntax of this method.
96 + * This field should be ignored, instead the syntax should be inherited from
97 + * Api. This is similar to Field and EnumValue.
98 + * @type string $edition
99 + * The source edition string, only valid when syntax is SYNTAX_EDITIONS.
100 + * This field should be ignored, instead the edition should be inherited from
101 + * Api. This is similar to Field and EnumValue.
79 102 * }
80 103 */
81 104 public function __construct($data = NULL)
82 105 {
83 - \Dudlewebs\WPMCS\GPBMetadata\Google\Protobuf\Api::initOnce();
106 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Api::initOnce();
84 107 parent::__construct($data);
85 108 }
86 109 /**
87 110 * The simple name of this method.
@@ -201,9 +224,9 @@
201 224 /**
202 225 * Any metadata attached to the method.
203 226 *
204 227 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code>
205 - * @return \Google\Protobuf\Internal\RepeatedField
228 + * @return RepeatedField<\Google\Protobuf\Option>
206 229 */
207 230 public function getOptions()
208 231 {
209 232 return $this->options;
@@ -211,37 +234,80 @@
211 234 /**
212 235 * Any metadata attached to the method.
213 236 *
214 237 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code>
215 - * @param array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $var
238 + * @param \Google\Protobuf\Option[] $var
216 239 * @return $this
217 240 */
218 241 public function setOptions($var)
219 242 {
220 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Protobuf\Option::class);
243 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Option::class);
221 244 $this->options = $arr;
222 245 return $this;
223 246 }
224 247 /**
225 248 * The source syntax of this method.
249 + * This field should be ignored, instead the syntax should be inherited from
250 + * Api. This is similar to Field and EnumValue.
226 251 *
227 - * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
252 + * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7 [deprecated = true];</code>
228 253 * @return int
254 + * @deprecated
229 255 */
230 256 public function getSyntax()
231 257 {
258 + if ($this->syntax !== 0) {
259 + @\trigger_error('syntax is deprecated.', \E_USER_DEPRECATED);
260 + }
232 261 return $this->syntax;
233 262 }
234 263 /**
235 264 * The source syntax of this method.
265 + * This field should be ignored, instead the syntax should be inherited from
266 + * Api. This is similar to Field and EnumValue.
236 267 *
237 - * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
268 + * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7 [deprecated = true];</code>
238 269 * @param int $var
239 270 * @return $this
271 + * @deprecated
240 272 */
241 273 public function setSyntax($var)
242 274 {
243 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Protobuf\Syntax::class);
275 + @\trigger_error('syntax is deprecated.', \E_USER_DEPRECATED);
276 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Syntax::class);
244 277 $this->syntax = $var;
278 + return $this;
279 + }
280 + /**
281 + * The source edition string, only valid when syntax is SYNTAX_EDITIONS.
282 + * This field should be ignored, instead the edition should be inherited from
283 + * Api. This is similar to Field and EnumValue.
284 + *
285 + * Generated from protobuf field <code>string edition = 8 [deprecated = true];</code>
286 + * @return string
287 + * @deprecated
288 + */
289 + public function getEdition()
290 + {
291 + if ($this->edition !== '') {
292 + @\trigger_error('edition is deprecated.', \E_USER_DEPRECATED);
293 + }
294 + return $this->edition;
295 + }
296 + /**
297 + * The source edition string, only valid when syntax is SYNTAX_EDITIONS.
298 + * This field should be ignored, instead the edition should be inherited from
299 + * Api. This is similar to Field and EnumValue.
300 + *
301 + * Generated from protobuf field <code>string edition = 8 [deprecated = true];</code>
302 + * @param string $var
303 + * @return $this
304 + * @deprecated
305 + */
306 + public function setEdition($var)
307 + {
308 + @\trigger_error('edition is deprecated.', \E_USER_DEPRECATED);
309 + GPBUtil::checkString($var, True);
310 + $this->edition = $var;
245 311 return $this;
246 312 }
247 313 }