1ffe3c632Sopenharmony_ci<?php
2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler.  DO NOT EDIT!
3ffe3c632Sopenharmony_ci# source: google/protobuf/descriptor.proto
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_cinamespace Google\Protobuf\Internal;
6ffe3c632Sopenharmony_ci
7ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBType;
8ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBWire;
9ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\RepeatedField;
10ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\InputStream;
11ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBUtil;
12ffe3c632Sopenharmony_ci
13ffe3c632Sopenharmony_ci/**
14ffe3c632Sopenharmony_ci * Describes a oneof.
15ffe3c632Sopenharmony_ci *
16ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.OneofDescriptorProto</code>
17ffe3c632Sopenharmony_ci */
18ffe3c632Sopenharmony_ciclass OneofDescriptorProto extends \Google\Protobuf\Internal\Message
19ffe3c632Sopenharmony_ci{
20ffe3c632Sopenharmony_ci    /**
21ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string name = 1;</code>
22ffe3c632Sopenharmony_ci     */
23ffe3c632Sopenharmony_ci    protected $name = null;
24ffe3c632Sopenharmony_ci    /**
25ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.OneofOptions options = 2;</code>
26ffe3c632Sopenharmony_ci     */
27ffe3c632Sopenharmony_ci    protected $options = null;
28ffe3c632Sopenharmony_ci
29ffe3c632Sopenharmony_ci    /**
30ffe3c632Sopenharmony_ci     * Constructor.
31ffe3c632Sopenharmony_ci     *
32ffe3c632Sopenharmony_ci     * @param array $data {
33ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
34ffe3c632Sopenharmony_ci     *
35ffe3c632Sopenharmony_ci     *     @type string $name
36ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Internal\OneofOptions $options
37ffe3c632Sopenharmony_ci     * }
38ffe3c632Sopenharmony_ci     */
39ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
40ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
41ffe3c632Sopenharmony_ci        parent::__construct($data);
42ffe3c632Sopenharmony_ci    }
43ffe3c632Sopenharmony_ci
44ffe3c632Sopenharmony_ci    /**
45ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string name = 1;</code>
46ffe3c632Sopenharmony_ci     * @return string
47ffe3c632Sopenharmony_ci     */
48ffe3c632Sopenharmony_ci    public function getName()
49ffe3c632Sopenharmony_ci    {
50ffe3c632Sopenharmony_ci        return isset($this->name) ? $this->name : '';
51ffe3c632Sopenharmony_ci    }
52ffe3c632Sopenharmony_ci
53ffe3c632Sopenharmony_ci    public function hasName()
54ffe3c632Sopenharmony_ci    {
55ffe3c632Sopenharmony_ci        return isset($this->name);
56ffe3c632Sopenharmony_ci    }
57ffe3c632Sopenharmony_ci
58ffe3c632Sopenharmony_ci    public function clearName()
59ffe3c632Sopenharmony_ci    {
60ffe3c632Sopenharmony_ci        unset($this->name);
61ffe3c632Sopenharmony_ci    }
62ffe3c632Sopenharmony_ci
63ffe3c632Sopenharmony_ci    /**
64ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string name = 1;</code>
65ffe3c632Sopenharmony_ci     * @param string $var
66ffe3c632Sopenharmony_ci     * @return $this
67ffe3c632Sopenharmony_ci     */
68ffe3c632Sopenharmony_ci    public function setName($var)
69ffe3c632Sopenharmony_ci    {
70ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
71ffe3c632Sopenharmony_ci        $this->name = $var;
72ffe3c632Sopenharmony_ci
73ffe3c632Sopenharmony_ci        return $this;
74ffe3c632Sopenharmony_ci    }
75ffe3c632Sopenharmony_ci
76ffe3c632Sopenharmony_ci    /**
77ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.OneofOptions options = 2;</code>
78ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\OneofOptions
79ffe3c632Sopenharmony_ci     */
80ffe3c632Sopenharmony_ci    public function getOptions()
81ffe3c632Sopenharmony_ci    {
82ffe3c632Sopenharmony_ci        return isset($this->options) ? $this->options : null;
83ffe3c632Sopenharmony_ci    }
84ffe3c632Sopenharmony_ci
85ffe3c632Sopenharmony_ci    public function hasOptions()
86ffe3c632Sopenharmony_ci    {
87ffe3c632Sopenharmony_ci        return isset($this->options);
88ffe3c632Sopenharmony_ci    }
89ffe3c632Sopenharmony_ci
90ffe3c632Sopenharmony_ci    public function clearOptions()
91ffe3c632Sopenharmony_ci    {
92ffe3c632Sopenharmony_ci        unset($this->options);
93ffe3c632Sopenharmony_ci    }
94ffe3c632Sopenharmony_ci
95ffe3c632Sopenharmony_ci    /**
96ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.OneofOptions options = 2;</code>
97ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Internal\OneofOptions $var
98ffe3c632Sopenharmony_ci     * @return $this
99ffe3c632Sopenharmony_ci     */
100ffe3c632Sopenharmony_ci    public function setOptions($var)
101ffe3c632Sopenharmony_ci    {
102ffe3c632Sopenharmony_ci        GPBUtil::checkMessage($var, \Google\Protobuf\Internal\OneofOptions::class);
103ffe3c632Sopenharmony_ci        $this->options = $var;
104ffe3c632Sopenharmony_ci
105ffe3c632Sopenharmony_ci        return $this;
106ffe3c632Sopenharmony_ci    }
107ffe3c632Sopenharmony_ci
108ffe3c632Sopenharmony_ci}
109ffe3c632Sopenharmony_ci
110