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

Side by Side Diff: third_party/protobuf/php/src/Google/Protobuf/Internal/OneofDescriptorProto.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 * <pre>
16 * Describes a oneof.
17 * </pre>
18 *
19 * Protobuf type <code>google.protobuf.OneofDescriptorProto</code>
20 */
21 class OneofDescriptorProto extends \Google\Protobuf\Internal\Message
22 {
23 /**
24 * <code>optional string name = 1;</code>
25 */
26 private $name = '';
27 private $has_name = false;
28 /**
29 * <code>optional .google.protobuf.OneofOptions options = 2;</code>
30 */
31 private $options = null;
32 private $has_options = false;
33
34 public function __construct() {
35 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
36 parent::__construct();
37 }
38
39 /**
40 * <code>optional string name = 1;</code>
41 */
42 public function getName()
43 {
44 return $this->name;
45 }
46
47 /**
48 * <code>optional string name = 1;</code>
49 */
50 public function setName($var)
51 {
52 GPBUtil::checkString($var, True);
53 $this->name = $var;
54 $this->has_name = true;
55 }
56
57 public function hasName()
58 {
59 return $this->has_name;
60 }
61
62 /**
63 * <code>optional .google.protobuf.OneofOptions options = 2;</code>
64 */
65 public function getOptions()
66 {
67 return $this->options;
68 }
69
70 /**
71 * <code>optional .google.protobuf.OneofOptions options = 2;</code>
72 */
73 public function setOptions(&$var)
74 {
75 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\OneofOptions::clas s);
76 $this->options = $var;
77 $this->has_options = true;
78 }
79
80 public function hasOptions()
81 {
82 return $this->has_options;
83 }
84
85 }
86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698