1ffe3c632Sopenharmony_ci<?php
2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler.  DO NOT EDIT!
3ffe3c632Sopenharmony_ci# source: google/protobuf/api.proto
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_cinamespace Google\Protobuf;
6ffe3c632Sopenharmony_ci
7ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBType;
8ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\RepeatedField;
9ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBUtil;
10ffe3c632Sopenharmony_ci
11ffe3c632Sopenharmony_ci/**
12ffe3c632Sopenharmony_ci * Api is a light-weight descriptor for an API Interface.
13ffe3c632Sopenharmony_ci * Interfaces are also described as "protocol buffer services" in some contexts,
14ffe3c632Sopenharmony_ci * such as by the "service" keyword in a .proto file, but they are different
15ffe3c632Sopenharmony_ci * from API Services, which represent a concrete implementation of an interface
16ffe3c632Sopenharmony_ci * as opposed to simply a description of methods and bindings. They are also
17ffe3c632Sopenharmony_ci * sometimes simply referred to as "APIs" in other contexts, such as the name of
18ffe3c632Sopenharmony_ci * this message itself. See https://cloud.google.com/apis/design/glossary for
19ffe3c632Sopenharmony_ci * detailed terminology.
20ffe3c632Sopenharmony_ci *
21ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.Api</code>
22ffe3c632Sopenharmony_ci */
23ffe3c632Sopenharmony_ciclass Api extends \Google\Protobuf\Internal\Message
24ffe3c632Sopenharmony_ci{
25ffe3c632Sopenharmony_ci    /**
26ffe3c632Sopenharmony_ci     * The fully qualified name of this interface, including package name
27ffe3c632Sopenharmony_ci     * followed by the interface's simple name.
28ffe3c632Sopenharmony_ci     *
29ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
30ffe3c632Sopenharmony_ci     */
31ffe3c632Sopenharmony_ci    private $name = '';
32ffe3c632Sopenharmony_ci    /**
33ffe3c632Sopenharmony_ci     * The methods of this interface, in unspecified order.
34ffe3c632Sopenharmony_ci     *
35ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Method methods = 2;</code>
36ffe3c632Sopenharmony_ci     */
37ffe3c632Sopenharmony_ci    private $methods;
38ffe3c632Sopenharmony_ci    /**
39ffe3c632Sopenharmony_ci     * Any metadata attached to the interface.
40ffe3c632Sopenharmony_ci     *
41ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
42ffe3c632Sopenharmony_ci     */
43ffe3c632Sopenharmony_ci    private $options;
44ffe3c632Sopenharmony_ci    /**
45ffe3c632Sopenharmony_ci     * A version string for this interface. If specified, must have the form
46ffe3c632Sopenharmony_ci     * `major-version.minor-version`, as in `1.10`. If the minor version is
47ffe3c632Sopenharmony_ci     * omitted, it defaults to zero. If the entire version field is empty, the
48ffe3c632Sopenharmony_ci     * major version is derived from the package name, as outlined below. If the
49ffe3c632Sopenharmony_ci     * field is not empty, the version in the package name will be verified to be
50ffe3c632Sopenharmony_ci     * consistent with what is provided here.
51ffe3c632Sopenharmony_ci     * The versioning schema uses [semantic
52ffe3c632Sopenharmony_ci     * versioning](http://semver.org) where the major version number
53ffe3c632Sopenharmony_ci     * indicates a breaking change and the minor version an additive,
54ffe3c632Sopenharmony_ci     * non-breaking change. Both version numbers are signals to users
55ffe3c632Sopenharmony_ci     * what to expect from different versions, and should be carefully
56ffe3c632Sopenharmony_ci     * chosen based on the product plan.
57ffe3c632Sopenharmony_ci     * The major version is also reflected in the package name of the
58ffe3c632Sopenharmony_ci     * interface, which must end in `v<major-version>`, as in
59ffe3c632Sopenharmony_ci     * `google.feature.v1`. For major versions 0 and 1, the suffix can
60ffe3c632Sopenharmony_ci     * be omitted. Zero major versions must only be used for
61ffe3c632Sopenharmony_ci     * experimental, non-GA interfaces.
62ffe3c632Sopenharmony_ci     *
63ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string version = 4;</code>
64ffe3c632Sopenharmony_ci     */
65ffe3c632Sopenharmony_ci    private $version = '';
66ffe3c632Sopenharmony_ci    /**
67ffe3c632Sopenharmony_ci     * Source context for the protocol buffer service represented by this
68ffe3c632Sopenharmony_ci     * message.
69ffe3c632Sopenharmony_ci     *
70ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 5;</code>
71ffe3c632Sopenharmony_ci     */
72ffe3c632Sopenharmony_ci    private $source_context = null;
73ffe3c632Sopenharmony_ci    /**
74ffe3c632Sopenharmony_ci     * Included interfaces. See [Mixin][].
75ffe3c632Sopenharmony_ci     *
76ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Mixin mixins = 6;</code>
77ffe3c632Sopenharmony_ci     */
78ffe3c632Sopenharmony_ci    private $mixins;
79ffe3c632Sopenharmony_ci    /**
80ffe3c632Sopenharmony_ci     * The source syntax of the service.
81ffe3c632Sopenharmony_ci     *
82ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
83ffe3c632Sopenharmony_ci     */
84ffe3c632Sopenharmony_ci    private $syntax = 0;
85ffe3c632Sopenharmony_ci
86ffe3c632Sopenharmony_ci    /**
87ffe3c632Sopenharmony_ci     * Constructor.
88ffe3c632Sopenharmony_ci     *
89ffe3c632Sopenharmony_ci     * @param array $data {
90ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
91ffe3c632Sopenharmony_ci     *
92ffe3c632Sopenharmony_ci     *     @type string $name
93ffe3c632Sopenharmony_ci     *           The fully qualified name of this interface, including package name
94ffe3c632Sopenharmony_ci     *           followed by the interface's simple name.
95ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Method[]|\Google\Protobuf\Internal\RepeatedField $methods
96ffe3c632Sopenharmony_ci     *           The methods of this interface, in unspecified order.
97ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $options
98ffe3c632Sopenharmony_ci     *           Any metadata attached to the interface.
99ffe3c632Sopenharmony_ci     *     @type string $version
100ffe3c632Sopenharmony_ci     *           A version string for this interface. If specified, must have the form
101ffe3c632Sopenharmony_ci     *           `major-version.minor-version`, as in `1.10`. If the minor version is
102ffe3c632Sopenharmony_ci     *           omitted, it defaults to zero. If the entire version field is empty, the
103ffe3c632Sopenharmony_ci     *           major version is derived from the package name, as outlined below. If the
104ffe3c632Sopenharmony_ci     *           field is not empty, the version in the package name will be verified to be
105ffe3c632Sopenharmony_ci     *           consistent with what is provided here.
106ffe3c632Sopenharmony_ci     *           The versioning schema uses [semantic
107ffe3c632Sopenharmony_ci     *           versioning](http://semver.org) where the major version number
108ffe3c632Sopenharmony_ci     *           indicates a breaking change and the minor version an additive,
109ffe3c632Sopenharmony_ci     *           non-breaking change. Both version numbers are signals to users
110ffe3c632Sopenharmony_ci     *           what to expect from different versions, and should be carefully
111ffe3c632Sopenharmony_ci     *           chosen based on the product plan.
112ffe3c632Sopenharmony_ci     *           The major version is also reflected in the package name of the
113ffe3c632Sopenharmony_ci     *           interface, which must end in `v<major-version>`, as in
114ffe3c632Sopenharmony_ci     *           `google.feature.v1`. For major versions 0 and 1, the suffix can
115ffe3c632Sopenharmony_ci     *           be omitted. Zero major versions must only be used for
116ffe3c632Sopenharmony_ci     *           experimental, non-GA interfaces.
117ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\SourceContext $source_context
118ffe3c632Sopenharmony_ci     *           Source context for the protocol buffer service represented by this
119ffe3c632Sopenharmony_ci     *           message.
120ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Mixin[]|\Google\Protobuf\Internal\RepeatedField $mixins
121ffe3c632Sopenharmony_ci     *           Included interfaces. See [Mixin][].
122ffe3c632Sopenharmony_ci     *     @type int $syntax
123ffe3c632Sopenharmony_ci     *           The source syntax of the service.
124ffe3c632Sopenharmony_ci     * }
125ffe3c632Sopenharmony_ci     */
126ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
127ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Api::initOnce();
128ffe3c632Sopenharmony_ci        parent::__construct($data);
129ffe3c632Sopenharmony_ci    }
130ffe3c632Sopenharmony_ci
131ffe3c632Sopenharmony_ci    /**
132ffe3c632Sopenharmony_ci     * The fully qualified name of this interface, including package name
133ffe3c632Sopenharmony_ci     * followed by the interface's simple name.
134ffe3c632Sopenharmony_ci     *
135ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
136ffe3c632Sopenharmony_ci     * @return string
137ffe3c632Sopenharmony_ci     */
138ffe3c632Sopenharmony_ci    public function getName()
139ffe3c632Sopenharmony_ci    {
140ffe3c632Sopenharmony_ci        return $this->name;
141ffe3c632Sopenharmony_ci    }
142ffe3c632Sopenharmony_ci
143ffe3c632Sopenharmony_ci    /**
144ffe3c632Sopenharmony_ci     * The fully qualified name of this interface, including package name
145ffe3c632Sopenharmony_ci     * followed by the interface's simple name.
146ffe3c632Sopenharmony_ci     *
147ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
148ffe3c632Sopenharmony_ci     * @param string $var
149ffe3c632Sopenharmony_ci     * @return $this
150ffe3c632Sopenharmony_ci     */
151ffe3c632Sopenharmony_ci    public function setName($var)
152ffe3c632Sopenharmony_ci    {
153ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
154ffe3c632Sopenharmony_ci        $this->name = $var;
155ffe3c632Sopenharmony_ci
156ffe3c632Sopenharmony_ci        return $this;
157ffe3c632Sopenharmony_ci    }
158ffe3c632Sopenharmony_ci
159ffe3c632Sopenharmony_ci    /**
160ffe3c632Sopenharmony_ci     * The methods of this interface, in unspecified order.
161ffe3c632Sopenharmony_ci     *
162ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Method methods = 2;</code>
163ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
164ffe3c632Sopenharmony_ci     */
165ffe3c632Sopenharmony_ci    public function getMethods()
166ffe3c632Sopenharmony_ci    {
167ffe3c632Sopenharmony_ci        return $this->methods;
168ffe3c632Sopenharmony_ci    }
169ffe3c632Sopenharmony_ci
170ffe3c632Sopenharmony_ci    /**
171ffe3c632Sopenharmony_ci     * The methods of this interface, in unspecified order.
172ffe3c632Sopenharmony_ci     *
173ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Method methods = 2;</code>
174ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Method[]|\Google\Protobuf\Internal\RepeatedField $var
175ffe3c632Sopenharmony_ci     * @return $this
176ffe3c632Sopenharmony_ci     */
177ffe3c632Sopenharmony_ci    public function setMethods($var)
178ffe3c632Sopenharmony_ci    {
179ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Method::class);
180ffe3c632Sopenharmony_ci        $this->methods = $arr;
181ffe3c632Sopenharmony_ci
182ffe3c632Sopenharmony_ci        return $this;
183ffe3c632Sopenharmony_ci    }
184ffe3c632Sopenharmony_ci
185ffe3c632Sopenharmony_ci    /**
186ffe3c632Sopenharmony_ci     * Any metadata attached to the interface.
187ffe3c632Sopenharmony_ci     *
188ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
189ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
190ffe3c632Sopenharmony_ci     */
191ffe3c632Sopenharmony_ci    public function getOptions()
192ffe3c632Sopenharmony_ci    {
193ffe3c632Sopenharmony_ci        return $this->options;
194ffe3c632Sopenharmony_ci    }
195ffe3c632Sopenharmony_ci
196ffe3c632Sopenharmony_ci    /**
197ffe3c632Sopenharmony_ci     * Any metadata attached to the interface.
198ffe3c632Sopenharmony_ci     *
199ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
200ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $var
201ffe3c632Sopenharmony_ci     * @return $this
202ffe3c632Sopenharmony_ci     */
203ffe3c632Sopenharmony_ci    public function setOptions($var)
204ffe3c632Sopenharmony_ci    {
205ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Option::class);
206ffe3c632Sopenharmony_ci        $this->options = $arr;
207ffe3c632Sopenharmony_ci
208ffe3c632Sopenharmony_ci        return $this;
209ffe3c632Sopenharmony_ci    }
210ffe3c632Sopenharmony_ci
211ffe3c632Sopenharmony_ci    /**
212ffe3c632Sopenharmony_ci     * A version string for this interface. If specified, must have the form
213ffe3c632Sopenharmony_ci     * `major-version.minor-version`, as in `1.10`. If the minor version is
214ffe3c632Sopenharmony_ci     * omitted, it defaults to zero. If the entire version field is empty, the
215ffe3c632Sopenharmony_ci     * major version is derived from the package name, as outlined below. If the
216ffe3c632Sopenharmony_ci     * field is not empty, the version in the package name will be verified to be
217ffe3c632Sopenharmony_ci     * consistent with what is provided here.
218ffe3c632Sopenharmony_ci     * The versioning schema uses [semantic
219ffe3c632Sopenharmony_ci     * versioning](http://semver.org) where the major version number
220ffe3c632Sopenharmony_ci     * indicates a breaking change and the minor version an additive,
221ffe3c632Sopenharmony_ci     * non-breaking change. Both version numbers are signals to users
222ffe3c632Sopenharmony_ci     * what to expect from different versions, and should be carefully
223ffe3c632Sopenharmony_ci     * chosen based on the product plan.
224ffe3c632Sopenharmony_ci     * The major version is also reflected in the package name of the
225ffe3c632Sopenharmony_ci     * interface, which must end in `v<major-version>`, as in
226ffe3c632Sopenharmony_ci     * `google.feature.v1`. For major versions 0 and 1, the suffix can
227ffe3c632Sopenharmony_ci     * be omitted. Zero major versions must only be used for
228ffe3c632Sopenharmony_ci     * experimental, non-GA interfaces.
229ffe3c632Sopenharmony_ci     *
230ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string version = 4;</code>
231ffe3c632Sopenharmony_ci     * @return string
232ffe3c632Sopenharmony_ci     */
233ffe3c632Sopenharmony_ci    public function getVersion()
234ffe3c632Sopenharmony_ci    {
235ffe3c632Sopenharmony_ci        return $this->version;
236ffe3c632Sopenharmony_ci    }
237ffe3c632Sopenharmony_ci
238ffe3c632Sopenharmony_ci    /**
239ffe3c632Sopenharmony_ci     * A version string for this interface. If specified, must have the form
240ffe3c632Sopenharmony_ci     * `major-version.minor-version`, as in `1.10`. If the minor version is
241ffe3c632Sopenharmony_ci     * omitted, it defaults to zero. If the entire version field is empty, the
242ffe3c632Sopenharmony_ci     * major version is derived from the package name, as outlined below. If the
243ffe3c632Sopenharmony_ci     * field is not empty, the version in the package name will be verified to be
244ffe3c632Sopenharmony_ci     * consistent with what is provided here.
245ffe3c632Sopenharmony_ci     * The versioning schema uses [semantic
246ffe3c632Sopenharmony_ci     * versioning](http://semver.org) where the major version number
247ffe3c632Sopenharmony_ci     * indicates a breaking change and the minor version an additive,
248ffe3c632Sopenharmony_ci     * non-breaking change. Both version numbers are signals to users
249ffe3c632Sopenharmony_ci     * what to expect from different versions, and should be carefully
250ffe3c632Sopenharmony_ci     * chosen based on the product plan.
251ffe3c632Sopenharmony_ci     * The major version is also reflected in the package name of the
252ffe3c632Sopenharmony_ci     * interface, which must end in `v<major-version>`, as in
253ffe3c632Sopenharmony_ci     * `google.feature.v1`. For major versions 0 and 1, the suffix can
254ffe3c632Sopenharmony_ci     * be omitted. Zero major versions must only be used for
255ffe3c632Sopenharmony_ci     * experimental, non-GA interfaces.
256ffe3c632Sopenharmony_ci     *
257ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string version = 4;</code>
258ffe3c632Sopenharmony_ci     * @param string $var
259ffe3c632Sopenharmony_ci     * @return $this
260ffe3c632Sopenharmony_ci     */
261ffe3c632Sopenharmony_ci    public function setVersion($var)
262ffe3c632Sopenharmony_ci    {
263ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
264ffe3c632Sopenharmony_ci        $this->version = $var;
265ffe3c632Sopenharmony_ci
266ffe3c632Sopenharmony_ci        return $this;
267ffe3c632Sopenharmony_ci    }
268ffe3c632Sopenharmony_ci
269ffe3c632Sopenharmony_ci    /**
270ffe3c632Sopenharmony_ci     * Source context for the protocol buffer service represented by this
271ffe3c632Sopenharmony_ci     * message.
272ffe3c632Sopenharmony_ci     *
273ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 5;</code>
274ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\SourceContext
275ffe3c632Sopenharmony_ci     */
276ffe3c632Sopenharmony_ci    public function getSourceContext()
277ffe3c632Sopenharmony_ci    {
278ffe3c632Sopenharmony_ci        return $this->source_context;
279ffe3c632Sopenharmony_ci    }
280ffe3c632Sopenharmony_ci
281ffe3c632Sopenharmony_ci    /**
282ffe3c632Sopenharmony_ci     * Source context for the protocol buffer service represented by this
283ffe3c632Sopenharmony_ci     * message.
284ffe3c632Sopenharmony_ci     *
285ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 5;</code>
286ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\SourceContext $var
287ffe3c632Sopenharmony_ci     * @return $this
288ffe3c632Sopenharmony_ci     */
289ffe3c632Sopenharmony_ci    public function setSourceContext($var)
290ffe3c632Sopenharmony_ci    {
291ffe3c632Sopenharmony_ci        GPBUtil::checkMessage($var, \Google\Protobuf\SourceContext::class);
292ffe3c632Sopenharmony_ci        $this->source_context = $var;
293ffe3c632Sopenharmony_ci
294ffe3c632Sopenharmony_ci        return $this;
295ffe3c632Sopenharmony_ci    }
296ffe3c632Sopenharmony_ci
297ffe3c632Sopenharmony_ci    /**
298ffe3c632Sopenharmony_ci     * Included interfaces. See [Mixin][].
299ffe3c632Sopenharmony_ci     *
300ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Mixin mixins = 6;</code>
301ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
302ffe3c632Sopenharmony_ci     */
303ffe3c632Sopenharmony_ci    public function getMixins()
304ffe3c632Sopenharmony_ci    {
305ffe3c632Sopenharmony_ci        return $this->mixins;
306ffe3c632Sopenharmony_ci    }
307ffe3c632Sopenharmony_ci
308ffe3c632Sopenharmony_ci    /**
309ffe3c632Sopenharmony_ci     * Included interfaces. See [Mixin][].
310ffe3c632Sopenharmony_ci     *
311ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Mixin mixins = 6;</code>
312ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Mixin[]|\Google\Protobuf\Internal\RepeatedField $var
313ffe3c632Sopenharmony_ci     * @return $this
314ffe3c632Sopenharmony_ci     */
315ffe3c632Sopenharmony_ci    public function setMixins($var)
316ffe3c632Sopenharmony_ci    {
317ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Mixin::class);
318ffe3c632Sopenharmony_ci        $this->mixins = $arr;
319ffe3c632Sopenharmony_ci
320ffe3c632Sopenharmony_ci        return $this;
321ffe3c632Sopenharmony_ci    }
322ffe3c632Sopenharmony_ci
323ffe3c632Sopenharmony_ci    /**
324ffe3c632Sopenharmony_ci     * The source syntax of the service.
325ffe3c632Sopenharmony_ci     *
326ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
327ffe3c632Sopenharmony_ci     * @return int
328ffe3c632Sopenharmony_ci     */
329ffe3c632Sopenharmony_ci    public function getSyntax()
330ffe3c632Sopenharmony_ci    {
331ffe3c632Sopenharmony_ci        return $this->syntax;
332ffe3c632Sopenharmony_ci    }
333ffe3c632Sopenharmony_ci
334ffe3c632Sopenharmony_ci    /**
335ffe3c632Sopenharmony_ci     * The source syntax of the service.
336ffe3c632Sopenharmony_ci     *
337ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
338ffe3c632Sopenharmony_ci     * @param int $var
339ffe3c632Sopenharmony_ci     * @return $this
340ffe3c632Sopenharmony_ci     */
341ffe3c632Sopenharmony_ci    public function setSyntax($var)
342ffe3c632Sopenharmony_ci    {
343ffe3c632Sopenharmony_ci        GPBUtil::checkEnum($var, \Google\Protobuf\Syntax::class);
344ffe3c632Sopenharmony_ci        $this->syntax = $var;
345ffe3c632Sopenharmony_ci
346ffe3c632Sopenharmony_ci        return $this;
347ffe3c632Sopenharmony_ci    }
348ffe3c632Sopenharmony_ci
349ffe3c632Sopenharmony_ci}
350ffe3c632Sopenharmony_ci
351