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

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

Issue 2599263002: third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Address comments Created 3 years, 12 months 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.OneofOptions</code>
16 */
17 class OneofOptions extends \Google\Protobuf\Internal\Message
18 {
19 /**
20 * <pre>
21 * The parser stores options it doesn't recognize here. See above.
22 * </pre>
23 *
24 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
25 */
26 private $uninterpreted_option;
27 private $has_uninterpreted_option = false;
28
29 public function __construct() {
30 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
31 parent::__construct();
32 }
33
34 /**
35 * <pre>
36 * The parser stores options it doesn't recognize here. See above.
37 * </pre>
38 *
39 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
40 */
41 public function getUninterpretedOption()
42 {
43 return $this->uninterpreted_option;
44 }
45
46 /**
47 * <pre>
48 * The parser stores options it doesn't recognize here. See above.
49 * </pre>
50 *
51 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
52 */
53 public function setUninterpretedOption(&$var)
54 {
55 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES SAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
56 $this->uninterpreted_option = $var;
57 $this->has_uninterpreted_option = true;
58 }
59
60 public function hasUninterpretedOption()
61 {
62 return $this->has_uninterpreted_option;
63 }
64
65 }
66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698