Debian Codegraph @

php/src/Google/Protobuf/Internal/OneofOptions.php

raw
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/protobuf/descriptor.proto
4
5 namespace Google\Protobuf\Internal;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\GPBWire;
9 use Google\Protobuf\Internal\RepeatedField;
10 use Google\Protobuf\Internal\InputStream;
11 use Google\Protobuf\Internal\GPBUtil;
12
13 /**
14 * Generated from protobuf message <code>google.protobuf.OneofOptions</code>
15 */
16 class OneofOptions extends \Google\Protobuf\Internal\Message
17 {
18 /**
19 * The parser stores options it doesn't recognize here. See above.
20 *
21 * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
22 */
23 private $uninterpreted_option;
24
25 /**
26 * Constructor.
27 *
28 * @param array $data {
29 * Optional. Data for populating the Message object.
30 *
31 * @type array<\Google\Protobuf\Internal\UninterpretedOption>|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option
32 * The parser stores options it doesn't recognize here. See above.
33 * }
34 */
35 public function __construct($data = NULL) {
36 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
37 parent::__construct($data);
38 }
39
40 /**
41 * The parser stores options it doesn't recognize here. See above.
42 *
43 * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
44 * @return \Google\Protobuf\Internal\RepeatedField
45 */
46 public function getUninterpretedOption()
47 {
48 return $this->uninterpreted_option;
49 }
50
51 /**
52 * The parser stores options it doesn't recognize here. See above.
53 *
54 * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
55 * @param array<\Google\Protobuf\Internal\UninterpretedOption>|\Google\Protobuf\Internal\RepeatedField $var
56 * @return $this
57 */
58 public function setUninterpretedOption($var)
59 {
60 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
61 $this->uninterpreted_option = $arr;
62
63 return $this;
64 }
65
66 }
67