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/Field.php +17 -12 1.0.0 → 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 * A single field of a message type.
13 + * New usages of this message as an alternative to FieldDescriptorProto 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.Field</code>
14 19 */
15 -class Field extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
20 +class Field extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
16 21 {
17 22 /**
18 23 * The field type.
19 24 *
@@ -97,9 +102,9 @@
97 102 * The index of the field type in `Type.oneofs`, for message or enumeration
98 103 * types. The first type has index 1; zero means the type is not in the list.
99 104 * @type bool $packed
100 105 * Whether to use alternative packed wire representation.
101 - * @type array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $options
106 + * @type \Google\Protobuf\Option[] $options
102 107 * The protocol buffer options.
103 108 * @type string $json_name
104 109 * The field JSON name.
105 110 * @type string $default_value
@@ -107,9 +112,9 @@
107 112 * }
108 113 */
109 114 public function __construct($data = NULL)
110 115 {
111 - \Dudlewebs\WPMCS\GPBMetadata\Google\Protobuf\Type::initOnce();
116 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Type::initOnce();
112 117 parent::__construct($data);
113 118 }
114 119 /**
115 120 * The field type.
@@ -129,9 +134,9 @@
129 134 * @return $this
130 135 */
131 136 public function setKind($var)
132 137 {
133 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Protobuf\Field\Kind::class);
138 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Field\Kind::class);
134 139 $this->kind = $var;
135 140 return $this;
136 141 }
137 142 /**
@@ -152,9 +157,9 @@
152 157 * @return $this
153 158 */
154 159 public function setCardinality($var)
155 160 {
156 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Protobuf\Field\Cardinality::class);
161 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Field\Cardinality::class);
157 162 $this->cardinality = $var;
158 163 return $this;
159 164 }
160 165 /**
@@ -279,9 +284,9 @@
279 284 /**
280 285 * The protocol buffer options.
281 286 *
282 287 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 9;</code>
283 - * @return \Google\Protobuf\Internal\RepeatedField
288 + * @return RepeatedField<\Google\Protobuf\Option>
284 289 */
285 290 public function getOptions()
286 291 {
287 292 return $this->options;
@@ -289,14 +294,14 @@
289 294 /**
290 295 * The protocol buffer options.
291 296 *
292 297 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 9;</code>
293 - * @param array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $var
298 + * @param \Google\Protobuf\Option[] $var
294 299 * @return $this
295 300 */
296 301 public function setOptions($var)
297 302 {
298 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Protobuf\Option::class);
303 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Option::class);
299 304 $this->options = $arr;
300 305 return $this;
301 306 }
302 307 /**