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 an enum type.
15ffe3c632Sopenharmony_ci *
16ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.EnumDescriptorProto</code>
17ffe3c632Sopenharmony_ci */
18ffe3c632Sopenharmony_ciclass EnumDescriptorProto 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>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code>
26ffe3c632Sopenharmony_ci     */
27ffe3c632Sopenharmony_ci    private $value;
28ffe3c632Sopenharmony_ci    /**
29ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.EnumOptions options = 3;</code>
30ffe3c632Sopenharmony_ci     */
31ffe3c632Sopenharmony_ci    protected $options = null;
32ffe3c632Sopenharmony_ci    /**
33ffe3c632Sopenharmony_ci     * Range of reserved numeric values. Reserved numeric values may not be used
34ffe3c632Sopenharmony_ci     * by enum values in the same enum declaration. Reserved ranges may not
35ffe3c632Sopenharmony_ci     * overlap.
36ffe3c632Sopenharmony_ci     *
37ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code>
38ffe3c632Sopenharmony_ci     */
39ffe3c632Sopenharmony_ci    private $reserved_range;
40ffe3c632Sopenharmony_ci    /**
41ffe3c632Sopenharmony_ci     * Reserved enum value names, which may not be reused. A given name may only
42ffe3c632Sopenharmony_ci     * be reserved once.
43ffe3c632Sopenharmony_ci     *
44ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated string reserved_name = 5;</code>
45ffe3c632Sopenharmony_ci     */
46ffe3c632Sopenharmony_ci    private $reserved_name;
47ffe3c632Sopenharmony_ci
48ffe3c632Sopenharmony_ci    /**
49ffe3c632Sopenharmony_ci     * Constructor.
50ffe3c632Sopenharmony_ci     *
51ffe3c632Sopenharmony_ci     * @param array $data {
52ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
53ffe3c632Sopenharmony_ci     *
54ffe3c632Sopenharmony_ci     *     @type string $name
55ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Internal\EnumValueDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $value
56ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Internal\EnumOptions $options
57ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Internal\EnumDescriptorProto\EnumReservedRange[]|\Google\Protobuf\Internal\RepeatedField $reserved_range
58ffe3c632Sopenharmony_ci     *           Range of reserved numeric values. Reserved numeric values may not be used
59ffe3c632Sopenharmony_ci     *           by enum values in the same enum declaration. Reserved ranges may not
60ffe3c632Sopenharmony_ci     *           overlap.
61ffe3c632Sopenharmony_ci     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $reserved_name
62ffe3c632Sopenharmony_ci     *           Reserved enum value names, which may not be reused. A given name may only
63ffe3c632Sopenharmony_ci     *           be reserved once.
64ffe3c632Sopenharmony_ci     * }
65ffe3c632Sopenharmony_ci     */
66ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
67ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
68ffe3c632Sopenharmony_ci        parent::__construct($data);
69ffe3c632Sopenharmony_ci    }
70ffe3c632Sopenharmony_ci
71ffe3c632Sopenharmony_ci    /**
72ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string name = 1;</code>
73ffe3c632Sopenharmony_ci     * @return string
74ffe3c632Sopenharmony_ci     */
75ffe3c632Sopenharmony_ci    public function getName()
76ffe3c632Sopenharmony_ci    {
77ffe3c632Sopenharmony_ci        return isset($this->name) ? $this->name : '';
78ffe3c632Sopenharmony_ci    }
79ffe3c632Sopenharmony_ci
80ffe3c632Sopenharmony_ci    public function hasName()
81ffe3c632Sopenharmony_ci    {
82ffe3c632Sopenharmony_ci        return isset($this->name);
83ffe3c632Sopenharmony_ci    }
84ffe3c632Sopenharmony_ci
85ffe3c632Sopenharmony_ci    public function clearName()
86ffe3c632Sopenharmony_ci    {
87ffe3c632Sopenharmony_ci        unset($this->name);
88ffe3c632Sopenharmony_ci    }
89ffe3c632Sopenharmony_ci
90ffe3c632Sopenharmony_ci    /**
91ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string name = 1;</code>
92ffe3c632Sopenharmony_ci     * @param string $var
93ffe3c632Sopenharmony_ci     * @return $this
94ffe3c632Sopenharmony_ci     */
95ffe3c632Sopenharmony_ci    public function setName($var)
96ffe3c632Sopenharmony_ci    {
97ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
98ffe3c632Sopenharmony_ci        $this->name = $var;
99ffe3c632Sopenharmony_ci
100ffe3c632Sopenharmony_ci        return $this;
101ffe3c632Sopenharmony_ci    }
102ffe3c632Sopenharmony_ci
103ffe3c632Sopenharmony_ci    /**
104ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code>
105ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
106ffe3c632Sopenharmony_ci     */
107ffe3c632Sopenharmony_ci    public function getValue()
108ffe3c632Sopenharmony_ci    {
109ffe3c632Sopenharmony_ci        return $this->value;
110ffe3c632Sopenharmony_ci    }
111ffe3c632Sopenharmony_ci
112ffe3c632Sopenharmony_ci    /**
113ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code>
114ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Internal\EnumValueDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var
115ffe3c632Sopenharmony_ci     * @return $this
116ffe3c632Sopenharmony_ci     */
117ffe3c632Sopenharmony_ci    public function setValue($var)
118ffe3c632Sopenharmony_ci    {
119ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\EnumValueDescriptorProto::class);
120ffe3c632Sopenharmony_ci        $this->value = $arr;
121ffe3c632Sopenharmony_ci
122ffe3c632Sopenharmony_ci        return $this;
123ffe3c632Sopenharmony_ci    }
124ffe3c632Sopenharmony_ci
125ffe3c632Sopenharmony_ci    /**
126ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.EnumOptions options = 3;</code>
127ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\EnumOptions
128ffe3c632Sopenharmony_ci     */
129ffe3c632Sopenharmony_ci    public function getOptions()
130ffe3c632Sopenharmony_ci    {
131ffe3c632Sopenharmony_ci        return isset($this->options) ? $this->options : null;
132ffe3c632Sopenharmony_ci    }
133ffe3c632Sopenharmony_ci
134ffe3c632Sopenharmony_ci    public function hasOptions()
135ffe3c632Sopenharmony_ci    {
136ffe3c632Sopenharmony_ci        return isset($this->options);
137ffe3c632Sopenharmony_ci    }
138ffe3c632Sopenharmony_ci
139ffe3c632Sopenharmony_ci    public function clearOptions()
140ffe3c632Sopenharmony_ci    {
141ffe3c632Sopenharmony_ci        unset($this->options);
142ffe3c632Sopenharmony_ci    }
143ffe3c632Sopenharmony_ci
144ffe3c632Sopenharmony_ci    /**
145ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.EnumOptions options = 3;</code>
146ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Internal\EnumOptions $var
147ffe3c632Sopenharmony_ci     * @return $this
148ffe3c632Sopenharmony_ci     */
149ffe3c632Sopenharmony_ci    public function setOptions($var)
150ffe3c632Sopenharmony_ci    {
151ffe3c632Sopenharmony_ci        GPBUtil::checkMessage($var, \Google\Protobuf\Internal\EnumOptions::class);
152ffe3c632Sopenharmony_ci        $this->options = $var;
153ffe3c632Sopenharmony_ci
154ffe3c632Sopenharmony_ci        return $this;
155ffe3c632Sopenharmony_ci    }
156ffe3c632Sopenharmony_ci
157ffe3c632Sopenharmony_ci    /**
158ffe3c632Sopenharmony_ci     * Range of reserved numeric values. Reserved numeric values may not be used
159ffe3c632Sopenharmony_ci     * by enum values in the same enum declaration. Reserved ranges may not
160ffe3c632Sopenharmony_ci     * overlap.
161ffe3c632Sopenharmony_ci     *
162ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code>
163ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
164ffe3c632Sopenharmony_ci     */
165ffe3c632Sopenharmony_ci    public function getReservedRange()
166ffe3c632Sopenharmony_ci    {
167ffe3c632Sopenharmony_ci        return $this->reserved_range;
168ffe3c632Sopenharmony_ci    }
169ffe3c632Sopenharmony_ci
170ffe3c632Sopenharmony_ci    /**
171ffe3c632Sopenharmony_ci     * Range of reserved numeric values. Reserved numeric values may not be used
172ffe3c632Sopenharmony_ci     * by enum values in the same enum declaration. Reserved ranges may not
173ffe3c632Sopenharmony_ci     * overlap.
174ffe3c632Sopenharmony_ci     *
175ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code>
176ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Internal\EnumDescriptorProto\EnumReservedRange[]|\Google\Protobuf\Internal\RepeatedField $var
177ffe3c632Sopenharmony_ci     * @return $this
178ffe3c632Sopenharmony_ci     */
179ffe3c632Sopenharmony_ci    public function setReservedRange($var)
180ffe3c632Sopenharmony_ci    {
181ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\EnumDescriptorProto\EnumReservedRange::class);
182ffe3c632Sopenharmony_ci        $this->reserved_range = $arr;
183ffe3c632Sopenharmony_ci
184ffe3c632Sopenharmony_ci        return $this;
185ffe3c632Sopenharmony_ci    }
186ffe3c632Sopenharmony_ci
187ffe3c632Sopenharmony_ci    /**
188ffe3c632Sopenharmony_ci     * Reserved enum value names, which may not be reused. A given name may only
189ffe3c632Sopenharmony_ci     * be reserved once.
190ffe3c632Sopenharmony_ci     *
191ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated string reserved_name = 5;</code>
192ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
193ffe3c632Sopenharmony_ci     */
194ffe3c632Sopenharmony_ci    public function getReservedName()
195ffe3c632Sopenharmony_ci    {
196ffe3c632Sopenharmony_ci        return $this->reserved_name;
197ffe3c632Sopenharmony_ci    }
198ffe3c632Sopenharmony_ci
199ffe3c632Sopenharmony_ci    /**
200ffe3c632Sopenharmony_ci     * Reserved enum value names, which may not be reused. A given name may only
201ffe3c632Sopenharmony_ci     * be reserved once.
202ffe3c632Sopenharmony_ci     *
203ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated string reserved_name = 5;</code>
204ffe3c632Sopenharmony_ci     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
205ffe3c632Sopenharmony_ci     * @return $this
206ffe3c632Sopenharmony_ci     */
207ffe3c632Sopenharmony_ci    public function setReservedName($var)
208ffe3c632Sopenharmony_ci    {
209ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
210ffe3c632Sopenharmony_ci        $this->reserved_name = $arr;
211ffe3c632Sopenharmony_ci
212ffe3c632Sopenharmony_ci        return $this;
213ffe3c632Sopenharmony_ci    }
214ffe3c632Sopenharmony_ci
215ffe3c632Sopenharmony_ci}
216ffe3c632Sopenharmony_ci
217