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/Enum.php +52 -16 1.2.13 → 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/type.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 * Enum type definition.
13 + * New usages of this message as an alternative to EnumDescriptorProto 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.Enum</code>
14 19 */
15 -class Enum extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
20 +class Enum extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
16 21 {
17 22 /**
18 23 * Enum type name.
19 24 *
@@ -44,8 +49,14 @@
44 49 * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 5;</code>
45 50 */
46 51 protected $syntax = 0;
47 52 /**
53 + * The source edition string, only valid when syntax is SYNTAX_EDITIONS.
54 + *
55 + * Generated from protobuf field <code>string edition = 6;</code>
56 + */
57 + protected $edition = '';
58 + /**
48 59 * Constructor.
49 60 *
50 61 * @param array $data {
51 62 * Optional. Data for populating the Message object.
@@ -51,21 +62,23 @@
51 62 * Optional. Data for populating the Message object.
52 63 *
53 64 * @type string $name
54 65 * Enum type name.
55 - * @type array<\Google\Protobuf\EnumValue>|\Google\Protobuf\Internal\RepeatedField $enumvalue
66 + * @type \Google\Protobuf\EnumValue[] $enumvalue
56 67 * Enum value definitions.
57 - * @type array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $options
68 + * @type \Google\Protobuf\Option[] $options
58 69 * Protocol buffer options.
59 70 * @type \Google\Protobuf\SourceContext $source_context
60 71 * The source context.
61 72 * @type int $syntax
62 73 * The source syntax.
74 + * @type string $edition
75 + * The source edition string, only valid when syntax is SYNTAX_EDITIONS.
63 76 * }
64 77 */
65 78 public function __construct($data = NULL)
66 79 {
67 - \Dudlewebs\WPMCS\GPBMetadata\Google\Protobuf\Type::initOnce();
80 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Type::initOnce();
68 81 parent::__construct($data);
69 82 }
70 83 /**
71 84 * Enum type name.
@@ -93,9 +106,9 @@
93 106 /**
94 107 * Enum value definitions.
95 108 *
96 109 * Generated from protobuf field <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code>
97 - * @return \Google\Protobuf\Internal\RepeatedField
110 + * @return RepeatedField<\Google\Protobuf\EnumValue>
98 111 */
99 112 public function getEnumvalue()
100 113 {
101 114 return $this->enumvalue;
@@ -103,14 +116,14 @@
103 116 /**
104 117 * Enum value definitions.
105 118 *
106 119 * Generated from protobuf field <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code>
107 - * @param array<\Google\Protobuf\EnumValue>|\Google\Protobuf\Internal\RepeatedField $var
120 + * @param \Google\Protobuf\EnumValue[] $var
108 121 * @return $this
109 122 */
110 123 public function setEnumvalue($var)
111 124 {
112 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Protobuf\EnumValue::class);
125 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\EnumValue::class);
113 126 $this->enumvalue = $arr;
114 127 return $this;
115 128 }
116 129 /**
@@ -116,9 +129,9 @@
116 129 /**
117 130 * Protocol buffer options.
118 131 *
119 132 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
120 - * @return \Google\Protobuf\Internal\RepeatedField
133 + * @return RepeatedField<\Google\Protobuf\Option>
121 134 */
122 135 public function getOptions()
123 136 {
124 137 return $this->options;
@@ -126,14 +139,14 @@
126 139 /**
127 140 * Protocol buffer options.
128 141 *
129 142 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
130 - * @param array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $var
143 + * @param \Google\Protobuf\Option[] $var
131 144 * @return $this
132 145 */
133 146 public function setOptions($var)
134 147 {
135 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Protobuf\Option::class);
148 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Option::class);
136 149 $this->options = $arr;
137 150 return $this;
138 151 }
139 152 /**
@@ -162,9 +175,9 @@
162 175 * @return $this
163 176 */
164 177 public function setSourceContext($var)
165 178 {
166 - GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\Google\Protobuf\SourceContext::class);
179 + GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\SourceContext::class);
167 180 $this->source_context = $var;
168 181 return $this;
169 182 }
170 183 /**
@@ -185,9 +198,32 @@
185 198 * @return $this
186 199 */
187 200 public function setSyntax($var)
188 201 {
189 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Protobuf\Syntax::class);
202 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Syntax::class);
190 203 $this->syntax = $var;
204 + return $this;
205 + }
206 + /**
207 + * The source edition string, only valid when syntax is SYNTAX_EDITIONS.
208 + *
209 + * Generated from protobuf field <code>string edition = 6;</code>
210 + * @return string
211 + */
212 + public function getEdition()
213 + {
214 + return $this->edition;
215 + }
216 + /**
217 + * The source edition string, only valid when syntax is SYNTAX_EDITIONS.
218 + *
219 + * Generated from protobuf field <code>string edition = 6;</code>
220 + * @param string $var
221 + * @return $this
222 + */
223 + public function setEdition($var)
224 + {
225 + GPBUtil::checkString($var, True);
226 + $this->edition = $var;
191 227 return $this;
192 228 }
193 229 }