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 * Generated from protobuf message <code>google.protobuf.EnumOptions</code>
15ffe3c632Sopenharmony_ci */
16ffe3c632Sopenharmony_ciclass EnumOptions extends \Google\Protobuf\Internal\Message
17ffe3c632Sopenharmony_ci{
18ffe3c632Sopenharmony_ci    /**
19ffe3c632Sopenharmony_ci     * Set this option to true to allow mapping different tag names to the same
20ffe3c632Sopenharmony_ci     * value.
21ffe3c632Sopenharmony_ci     *
22ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool allow_alias = 2;</code>
23ffe3c632Sopenharmony_ci     */
24ffe3c632Sopenharmony_ci    protected $allow_alias = null;
25ffe3c632Sopenharmony_ci    /**
26ffe3c632Sopenharmony_ci     * Is this enum deprecated?
27ffe3c632Sopenharmony_ci     * Depending on the target platform, this can emit Deprecated annotations
28ffe3c632Sopenharmony_ci     * for the enum, or it will be completely ignored; in the very least, this
29ffe3c632Sopenharmony_ci     * is a formalization for deprecating enums.
30ffe3c632Sopenharmony_ci     *
31ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code>
32ffe3c632Sopenharmony_ci     */
33ffe3c632Sopenharmony_ci    protected $deprecated = null;
34ffe3c632Sopenharmony_ci    /**
35ffe3c632Sopenharmony_ci     * The parser stores options it doesn't recognize here. See above.
36ffe3c632Sopenharmony_ci     *
37ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
38ffe3c632Sopenharmony_ci     */
39ffe3c632Sopenharmony_ci    private $uninterpreted_option;
40ffe3c632Sopenharmony_ci
41ffe3c632Sopenharmony_ci    /**
42ffe3c632Sopenharmony_ci     * Constructor.
43ffe3c632Sopenharmony_ci     *
44ffe3c632Sopenharmony_ci     * @param array $data {
45ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
46ffe3c632Sopenharmony_ci     *
47ffe3c632Sopenharmony_ci     *     @type bool $allow_alias
48ffe3c632Sopenharmony_ci     *           Set this option to true to allow mapping different tag names to the same
49ffe3c632Sopenharmony_ci     *           value.
50ffe3c632Sopenharmony_ci     *     @type bool $deprecated
51ffe3c632Sopenharmony_ci     *           Is this enum deprecated?
52ffe3c632Sopenharmony_ci     *           Depending on the target platform, this can emit Deprecated annotations
53ffe3c632Sopenharmony_ci     *           for the enum, or it will be completely ignored; in the very least, this
54ffe3c632Sopenharmony_ci     *           is a formalization for deprecating enums.
55ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option
56ffe3c632Sopenharmony_ci     *           The parser stores options it doesn't recognize here. See above.
57ffe3c632Sopenharmony_ci     * }
58ffe3c632Sopenharmony_ci     */
59ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
60ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
61ffe3c632Sopenharmony_ci        parent::__construct($data);
62ffe3c632Sopenharmony_ci    }
63ffe3c632Sopenharmony_ci
64ffe3c632Sopenharmony_ci    /**
65ffe3c632Sopenharmony_ci     * Set this option to true to allow mapping different tag names to the same
66ffe3c632Sopenharmony_ci     * value.
67ffe3c632Sopenharmony_ci     *
68ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool allow_alias = 2;</code>
69ffe3c632Sopenharmony_ci     * @return bool
70ffe3c632Sopenharmony_ci     */
71ffe3c632Sopenharmony_ci    public function getAllowAlias()
72ffe3c632Sopenharmony_ci    {
73ffe3c632Sopenharmony_ci        return isset($this->allow_alias) ? $this->allow_alias : false;
74ffe3c632Sopenharmony_ci    }
75ffe3c632Sopenharmony_ci
76ffe3c632Sopenharmony_ci    public function hasAllowAlias()
77ffe3c632Sopenharmony_ci    {
78ffe3c632Sopenharmony_ci        return isset($this->allow_alias);
79ffe3c632Sopenharmony_ci    }
80ffe3c632Sopenharmony_ci
81ffe3c632Sopenharmony_ci    public function clearAllowAlias()
82ffe3c632Sopenharmony_ci    {
83ffe3c632Sopenharmony_ci        unset($this->allow_alias);
84ffe3c632Sopenharmony_ci    }
85ffe3c632Sopenharmony_ci
86ffe3c632Sopenharmony_ci    /**
87ffe3c632Sopenharmony_ci     * Set this option to true to allow mapping different tag names to the same
88ffe3c632Sopenharmony_ci     * value.
89ffe3c632Sopenharmony_ci     *
90ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool allow_alias = 2;</code>
91ffe3c632Sopenharmony_ci     * @param bool $var
92ffe3c632Sopenharmony_ci     * @return $this
93ffe3c632Sopenharmony_ci     */
94ffe3c632Sopenharmony_ci    public function setAllowAlias($var)
95ffe3c632Sopenharmony_ci    {
96ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
97ffe3c632Sopenharmony_ci        $this->allow_alias = $var;
98ffe3c632Sopenharmony_ci
99ffe3c632Sopenharmony_ci        return $this;
100ffe3c632Sopenharmony_ci    }
101ffe3c632Sopenharmony_ci
102ffe3c632Sopenharmony_ci    /**
103ffe3c632Sopenharmony_ci     * Is this enum deprecated?
104ffe3c632Sopenharmony_ci     * Depending on the target platform, this can emit Deprecated annotations
105ffe3c632Sopenharmony_ci     * for the enum, or it will be completely ignored; in the very least, this
106ffe3c632Sopenharmony_ci     * is a formalization for deprecating enums.
107ffe3c632Sopenharmony_ci     *
108ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code>
109ffe3c632Sopenharmony_ci     * @return bool
110ffe3c632Sopenharmony_ci     */
111ffe3c632Sopenharmony_ci    public function getDeprecated()
112ffe3c632Sopenharmony_ci    {
113ffe3c632Sopenharmony_ci        return isset($this->deprecated) ? $this->deprecated : false;
114ffe3c632Sopenharmony_ci    }
115ffe3c632Sopenharmony_ci
116ffe3c632Sopenharmony_ci    public function hasDeprecated()
117ffe3c632Sopenharmony_ci    {
118ffe3c632Sopenharmony_ci        return isset($this->deprecated);
119ffe3c632Sopenharmony_ci    }
120ffe3c632Sopenharmony_ci
121ffe3c632Sopenharmony_ci    public function clearDeprecated()
122ffe3c632Sopenharmony_ci    {
123ffe3c632Sopenharmony_ci        unset($this->deprecated);
124ffe3c632Sopenharmony_ci    }
125ffe3c632Sopenharmony_ci
126ffe3c632Sopenharmony_ci    /**
127ffe3c632Sopenharmony_ci     * Is this enum deprecated?
128ffe3c632Sopenharmony_ci     * Depending on the target platform, this can emit Deprecated annotations
129ffe3c632Sopenharmony_ci     * for the enum, or it will be completely ignored; in the very least, this
130ffe3c632Sopenharmony_ci     * is a formalization for deprecating enums.
131ffe3c632Sopenharmony_ci     *
132ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code>
133ffe3c632Sopenharmony_ci     * @param bool $var
134ffe3c632Sopenharmony_ci     * @return $this
135ffe3c632Sopenharmony_ci     */
136ffe3c632Sopenharmony_ci    public function setDeprecated($var)
137ffe3c632Sopenharmony_ci    {
138ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
139ffe3c632Sopenharmony_ci        $this->deprecated = $var;
140ffe3c632Sopenharmony_ci
141ffe3c632Sopenharmony_ci        return $this;
142ffe3c632Sopenharmony_ci    }
143ffe3c632Sopenharmony_ci
144ffe3c632Sopenharmony_ci    /**
145ffe3c632Sopenharmony_ci     * The parser stores options it doesn't recognize here. See above.
146ffe3c632Sopenharmony_ci     *
147ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
148ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
149ffe3c632Sopenharmony_ci     */
150ffe3c632Sopenharmony_ci    public function getUninterpretedOption()
151ffe3c632Sopenharmony_ci    {
152ffe3c632Sopenharmony_ci        return $this->uninterpreted_option;
153ffe3c632Sopenharmony_ci    }
154ffe3c632Sopenharmony_ci
155ffe3c632Sopenharmony_ci    /**
156ffe3c632Sopenharmony_ci     * The parser stores options it doesn't recognize here. See above.
157ffe3c632Sopenharmony_ci     *
158ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
159ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
160ffe3c632Sopenharmony_ci     * @return $this
161ffe3c632Sopenharmony_ci     */
162ffe3c632Sopenharmony_ci    public function setUninterpretedOption($var)
163ffe3c632Sopenharmony_ci    {
164ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
165ffe3c632Sopenharmony_ci        $this->uninterpreted_option = $arr;
166ffe3c632Sopenharmony_ci
167ffe3c632Sopenharmony_ci        return $this;
168ffe3c632Sopenharmony_ci    }
169ffe3c632Sopenharmony_ci
170ffe3c632Sopenharmony_ci}
171ffe3c632Sopenharmony_ci
172