OLD | NEW |
| (Empty) |
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 | |
12 use Google\Protobuf\Internal\GPBUtil; | |
13 | |
14 /** | |
15 * <pre> | |
16 * The name of the uninterpreted option. Each string represents a segment in | |
17 * a dot-separated name. is_extension is true iff a segment represents an | |
18 * extension (denoted with parentheses in options specs in .proto files). | |
19 * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents | |
20 * "foo.(bar.baz).qux". | |
21 * </pre> | |
22 * | |
23 * Protobuf type <code>google.protobuf.UninterpretedOption.NamePart</code> | |
24 */ | |
25 class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message | |
26 { | |
27 /** | |
28 * <code>required string name_part = 1;</code> | |
29 */ | |
30 private $name_part = ''; | |
31 private $has_name_part = false; | |
32 /** | |
33 * <code>required bool is_extension = 2;</code> | |
34 */ | |
35 private $is_extension = false; | |
36 private $has_is_extension = false; | |
37 | |
38 public function __construct() { | |
39 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); | |
40 parent::__construct(); | |
41 } | |
42 | |
43 /** | |
44 * <code>required string name_part = 1;</code> | |
45 */ | |
46 public function getNamePart() | |
47 { | |
48 return $this->name_part; | |
49 } | |
50 | |
51 /** | |
52 * <code>required string name_part = 1;</code> | |
53 */ | |
54 public function setNamePart($var) | |
55 { | |
56 GPBUtil::checkString($var, True); | |
57 $this->name_part = $var; | |
58 $this->has_name_part = true; | |
59 } | |
60 | |
61 public function hasNamePart() | |
62 { | |
63 return $this->has_name_part; | |
64 } | |
65 | |
66 /** | |
67 * <code>required bool is_extension = 2;</code> | |
68 */ | |
69 public function getIsExtension() | |
70 { | |
71 return $this->is_extension; | |
72 } | |
73 | |
74 /** | |
75 * <code>required bool is_extension = 2;</code> | |
76 */ | |
77 public function setIsExtension($var) | |
78 { | |
79 GPBUtil::checkBool($var); | |
80 $this->is_extension = $var; | |
81 $this->has_is_extension = true; | |
82 } | |
83 | |
84 public function hasIsExtension() | |
85 { | |
86 return $this->has_is_extension; | |
87 } | |
88 | |
89 } | |
90 | |
OLD | NEW |