Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: third_party/protobuf/php/src/Google/Protobuf/Internal/EnumOptions.php

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 * Protobuf type <code>google.protobuf.EnumOptions</code>
16 */
17 class EnumOptions extends \Google\Protobuf\Internal\Message
18 {
19 /**
20 * <pre>
21 * Set this option to true to allow mapping different tag names to the same
22 * value.
23 * </pre>
24 *
25 * <code>optional bool allow_alias = 2;</code>
26 */
27 private $allow_alias = false;
28 private $has_allow_alias = false;
29 /**
30 * <pre>
31 * Is this enum deprecated?
32 * Depending on the target platform, this can emit Deprecated annotations
33 * for the enum, or it will be completely ignored; in the very least, this
34 * is a formalization for deprecating enums.
35 * </pre>
36 *
37 * <code>optional bool deprecated = 3 [default = false];</code>
38 */
39 private $deprecated = false;
40 private $has_deprecated = false;
41 /**
42 * <pre>
43 * The parser stores options it doesn't recognize here. See above.
44 * </pre>
45 *
46 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
47 */
48 private $uninterpreted_option;
49 private $has_uninterpreted_option = false;
50
51 public function __construct() {
52 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
53 parent::__construct();
54 }
55
56 /**
57 * <pre>
58 * Set this option to true to allow mapping different tag names to the same
59 * value.
60 * </pre>
61 *
62 * <code>optional bool allow_alias = 2;</code>
63 */
64 public function getAllowAlias()
65 {
66 return $this->allow_alias;
67 }
68
69 /**
70 * <pre>
71 * Set this option to true to allow mapping different tag names to the same
72 * value.
73 * </pre>
74 *
75 * <code>optional bool allow_alias = 2;</code>
76 */
77 public function setAllowAlias($var)
78 {
79 GPBUtil::checkBool($var);
80 $this->allow_alias = $var;
81 $this->has_allow_alias = true;
82 }
83
84 public function hasAllowAlias()
85 {
86 return $this->has_allow_alias;
87 }
88
89 /**
90 * <pre>
91 * Is this enum deprecated?
92 * Depending on the target platform, this can emit Deprecated annotations
93 * for the enum, or it will be completely ignored; in the very least, this
94 * is a formalization for deprecating enums.
95 * </pre>
96 *
97 * <code>optional bool deprecated = 3 [default = false];</code>
98 */
99 public function getDeprecated()
100 {
101 return $this->deprecated;
102 }
103
104 /**
105 * <pre>
106 * Is this enum deprecated?
107 * Depending on the target platform, this can emit Deprecated annotations
108 * for the enum, or it will be completely ignored; in the very least, this
109 * is a formalization for deprecating enums.
110 * </pre>
111 *
112 * <code>optional bool deprecated = 3 [default = false];</code>
113 */
114 public function setDeprecated($var)
115 {
116 GPBUtil::checkBool($var);
117 $this->deprecated = $var;
118 $this->has_deprecated = true;
119 }
120
121 public function hasDeprecated()
122 {
123 return $this->has_deprecated;
124 }
125
126 /**
127 * <pre>
128 * The parser stores options it doesn't recognize here. See above.
129 * </pre>
130 *
131 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
132 */
133 public function getUninterpretedOption()
134 {
135 return $this->uninterpreted_option;
136 }
137
138 /**
139 * <pre>
140 * The parser stores options it doesn't recognize here. See above.
141 * </pre>
142 *
143 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
144 */
145 public function setUninterpretedOption(&$var)
146 {
147 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES SAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
148 $this->uninterpreted_option = $var;
149 $this->has_uninterpreted_option = true;
150 }
151
152 public function hasUninterpretedOption()
153 {
154 return $this->has_uninterpreted_option;
155 }
156
157 }
158
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698