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.FileOptions</code>
15ffe3c632Sopenharmony_ci */
16ffe3c632Sopenharmony_ciclass FileOptions extends \Google\Protobuf\Internal\Message
17ffe3c632Sopenharmony_ci{
18ffe3c632Sopenharmony_ci    /**
19ffe3c632Sopenharmony_ci     * Sets the Java package where classes generated from this .proto will be
20ffe3c632Sopenharmony_ci     * placed.  By default, the proto package is used, but this is often
21ffe3c632Sopenharmony_ci     * inappropriate because proto packages do not normally start with backwards
22ffe3c632Sopenharmony_ci     * domain names.
23ffe3c632Sopenharmony_ci     *
24ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string java_package = 1;</code>
25ffe3c632Sopenharmony_ci     */
26ffe3c632Sopenharmony_ci    protected $java_package = null;
27ffe3c632Sopenharmony_ci    /**
28ffe3c632Sopenharmony_ci     * If set, all the classes from the .proto file are wrapped in a single
29ffe3c632Sopenharmony_ci     * outer class with the given name.  This applies to both Proto1
30ffe3c632Sopenharmony_ci     * (equivalent to the old "--one_java_file" option) and Proto2 (where
31ffe3c632Sopenharmony_ci     * a .proto always translates to a single class, but you may want to
32ffe3c632Sopenharmony_ci     * explicitly choose the class name).
33ffe3c632Sopenharmony_ci     *
34ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string java_outer_classname = 8;</code>
35ffe3c632Sopenharmony_ci     */
36ffe3c632Sopenharmony_ci    protected $java_outer_classname = null;
37ffe3c632Sopenharmony_ci    /**
38ffe3c632Sopenharmony_ci     * If set true, then the Java code generator will generate a separate .java
39ffe3c632Sopenharmony_ci     * file for each top-level message, enum, and service defined in the .proto
40ffe3c632Sopenharmony_ci     * file.  Thus, these types will *not* be nested inside the outer class
41ffe3c632Sopenharmony_ci     * named by java_outer_classname.  However, the outer class will still be
42ffe3c632Sopenharmony_ci     * generated to contain the file's getDescriptor() method as well as any
43ffe3c632Sopenharmony_ci     * top-level extensions defined in the file.
44ffe3c632Sopenharmony_ci     *
45ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_multiple_files = 10 [default = false];</code>
46ffe3c632Sopenharmony_ci     */
47ffe3c632Sopenharmony_ci    protected $java_multiple_files = null;
48ffe3c632Sopenharmony_ci    /**
49ffe3c632Sopenharmony_ci     * This option does nothing.
50ffe3c632Sopenharmony_ci     *
51ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code>
52ffe3c632Sopenharmony_ci     */
53ffe3c632Sopenharmony_ci    protected $java_generate_equals_and_hash = null;
54ffe3c632Sopenharmony_ci    /**
55ffe3c632Sopenharmony_ci     * If set true, then the Java2 code generator will generate code that
56ffe3c632Sopenharmony_ci     * throws an exception whenever an attempt is made to assign a non-UTF-8
57ffe3c632Sopenharmony_ci     * byte sequence to a string field.
58ffe3c632Sopenharmony_ci     * Message reflection will do the same.
59ffe3c632Sopenharmony_ci     * However, an extension field still accepts non-UTF-8 byte sequences.
60ffe3c632Sopenharmony_ci     * This option has no effect on when used with the lite runtime.
61ffe3c632Sopenharmony_ci     *
62ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
63ffe3c632Sopenharmony_ci     */
64ffe3c632Sopenharmony_ci    protected $java_string_check_utf8 = null;
65ffe3c632Sopenharmony_ci    /**
66ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
67ffe3c632Sopenharmony_ci     */
68ffe3c632Sopenharmony_ci    protected $optimize_for = null;
69ffe3c632Sopenharmony_ci    /**
70ffe3c632Sopenharmony_ci     * Sets the Go package where structs generated from this .proto will be
71ffe3c632Sopenharmony_ci     * placed. If omitted, the Go package will be derived from the following:
72ffe3c632Sopenharmony_ci     *   - The basename of the package import path, if provided.
73ffe3c632Sopenharmony_ci     *   - Otherwise, the package statement in the .proto file, if present.
74ffe3c632Sopenharmony_ci     *   - Otherwise, the basename of the .proto file, without extension.
75ffe3c632Sopenharmony_ci     *
76ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string go_package = 11;</code>
77ffe3c632Sopenharmony_ci     */
78ffe3c632Sopenharmony_ci    protected $go_package = null;
79ffe3c632Sopenharmony_ci    /**
80ffe3c632Sopenharmony_ci     * Should generic services be generated in each language?  "Generic" services
81ffe3c632Sopenharmony_ci     * are not specific to any particular RPC system.  They are generated by the
82ffe3c632Sopenharmony_ci     * main code generators in each language (without additional plugins).
83ffe3c632Sopenharmony_ci     * Generic services were the only kind of service generation supported by
84ffe3c632Sopenharmony_ci     * early versions of google.protobuf.
85ffe3c632Sopenharmony_ci     * Generic services are now considered deprecated in favor of using plugins
86ffe3c632Sopenharmony_ci     * that generate code specific to your particular RPC system.  Therefore,
87ffe3c632Sopenharmony_ci     * these default to false.  Old code which depends on generic services should
88ffe3c632Sopenharmony_ci     * explicitly set them to true.
89ffe3c632Sopenharmony_ci     *
90ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>
91ffe3c632Sopenharmony_ci     */
92ffe3c632Sopenharmony_ci    protected $cc_generic_services = null;
93ffe3c632Sopenharmony_ci    /**
94ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
95ffe3c632Sopenharmony_ci     */
96ffe3c632Sopenharmony_ci    protected $java_generic_services = null;
97ffe3c632Sopenharmony_ci    /**
98ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
99ffe3c632Sopenharmony_ci     */
100ffe3c632Sopenharmony_ci    protected $py_generic_services = null;
101ffe3c632Sopenharmony_ci    /**
102ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
103ffe3c632Sopenharmony_ci     */
104ffe3c632Sopenharmony_ci    protected $php_generic_services = null;
105ffe3c632Sopenharmony_ci    /**
106ffe3c632Sopenharmony_ci     * Is this file deprecated?
107ffe3c632Sopenharmony_ci     * Depending on the target platform, this can emit Deprecated annotations
108ffe3c632Sopenharmony_ci     * for everything in the file, or it will be completely ignored; in the very
109ffe3c632Sopenharmony_ci     * least, this is a formalization for deprecating files.
110ffe3c632Sopenharmony_ci     *
111ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
112ffe3c632Sopenharmony_ci     */
113ffe3c632Sopenharmony_ci    protected $deprecated = null;
114ffe3c632Sopenharmony_ci    /**
115ffe3c632Sopenharmony_ci     * Enables the use of arenas for the proto messages in this file. This applies
116ffe3c632Sopenharmony_ci     * only to generated classes for C++.
117ffe3c632Sopenharmony_ci     *
118ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool cc_enable_arenas = 31 [default = true];</code>
119ffe3c632Sopenharmony_ci     */
120ffe3c632Sopenharmony_ci    protected $cc_enable_arenas = null;
121ffe3c632Sopenharmony_ci    /**
122ffe3c632Sopenharmony_ci     * Sets the objective c class prefix which is prepended to all objective c
123ffe3c632Sopenharmony_ci     * generated classes from this .proto. There is no default.
124ffe3c632Sopenharmony_ci     *
125ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string objc_class_prefix = 36;</code>
126ffe3c632Sopenharmony_ci     */
127ffe3c632Sopenharmony_ci    protected $objc_class_prefix = null;
128ffe3c632Sopenharmony_ci    /**
129ffe3c632Sopenharmony_ci     * Namespace for generated classes; defaults to the package.
130ffe3c632Sopenharmony_ci     *
131ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string csharp_namespace = 37;</code>
132ffe3c632Sopenharmony_ci     */
133ffe3c632Sopenharmony_ci    protected $csharp_namespace = null;
134ffe3c632Sopenharmony_ci    /**
135ffe3c632Sopenharmony_ci     * By default Swift generators will take the proto package and CamelCase it
136ffe3c632Sopenharmony_ci     * replacing '.' with underscore and use that to prefix the types/symbols
137ffe3c632Sopenharmony_ci     * defined. When this options is provided, they will use this value instead
138ffe3c632Sopenharmony_ci     * to prefix the types/symbols defined.
139ffe3c632Sopenharmony_ci     *
140ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string swift_prefix = 39;</code>
141ffe3c632Sopenharmony_ci     */
142ffe3c632Sopenharmony_ci    protected $swift_prefix = null;
143ffe3c632Sopenharmony_ci    /**
144ffe3c632Sopenharmony_ci     * Sets the php class prefix which is prepended to all php generated classes
145ffe3c632Sopenharmony_ci     * from this .proto. Default is empty.
146ffe3c632Sopenharmony_ci     *
147ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_class_prefix = 40;</code>
148ffe3c632Sopenharmony_ci     */
149ffe3c632Sopenharmony_ci    protected $php_class_prefix = null;
150ffe3c632Sopenharmony_ci    /**
151ffe3c632Sopenharmony_ci     * Use this option to change the namespace of php generated classes. Default
152ffe3c632Sopenharmony_ci     * is empty. When this option is empty, the package name will be used for
153ffe3c632Sopenharmony_ci     * determining the namespace.
154ffe3c632Sopenharmony_ci     *
155ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_namespace = 41;</code>
156ffe3c632Sopenharmony_ci     */
157ffe3c632Sopenharmony_ci    protected $php_namespace = null;
158ffe3c632Sopenharmony_ci    /**
159ffe3c632Sopenharmony_ci     * Use this option to change the namespace of php generated metadata classes.
160ffe3c632Sopenharmony_ci     * Default is empty. When this option is empty, the proto file name will be
161ffe3c632Sopenharmony_ci     * used for determining the namespace.
162ffe3c632Sopenharmony_ci     *
163ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_metadata_namespace = 44;</code>
164ffe3c632Sopenharmony_ci     */
165ffe3c632Sopenharmony_ci    protected $php_metadata_namespace = null;
166ffe3c632Sopenharmony_ci    /**
167ffe3c632Sopenharmony_ci     * Use this option to change the package of ruby generated classes. Default
168ffe3c632Sopenharmony_ci     * is empty. When this option is not set, the package name will be used for
169ffe3c632Sopenharmony_ci     * determining the ruby package.
170ffe3c632Sopenharmony_ci     *
171ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string ruby_package = 45;</code>
172ffe3c632Sopenharmony_ci     */
173ffe3c632Sopenharmony_ci    protected $ruby_package = null;
174ffe3c632Sopenharmony_ci    /**
175ffe3c632Sopenharmony_ci     * The parser stores options it doesn't recognize here.
176ffe3c632Sopenharmony_ci     * See the documentation for the "Options" section above.
177ffe3c632Sopenharmony_ci     *
178ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
179ffe3c632Sopenharmony_ci     */
180ffe3c632Sopenharmony_ci    private $uninterpreted_option;
181ffe3c632Sopenharmony_ci
182ffe3c632Sopenharmony_ci    /**
183ffe3c632Sopenharmony_ci     * Constructor.
184ffe3c632Sopenharmony_ci     *
185ffe3c632Sopenharmony_ci     * @param array $data {
186ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
187ffe3c632Sopenharmony_ci     *
188ffe3c632Sopenharmony_ci     *     @type string $java_package
189ffe3c632Sopenharmony_ci     *           Sets the Java package where classes generated from this .proto will be
190ffe3c632Sopenharmony_ci     *           placed.  By default, the proto package is used, but this is often
191ffe3c632Sopenharmony_ci     *           inappropriate because proto packages do not normally start with backwards
192ffe3c632Sopenharmony_ci     *           domain names.
193ffe3c632Sopenharmony_ci     *     @type string $java_outer_classname
194ffe3c632Sopenharmony_ci     *           If set, all the classes from the .proto file are wrapped in a single
195ffe3c632Sopenharmony_ci     *           outer class with the given name.  This applies to both Proto1
196ffe3c632Sopenharmony_ci     *           (equivalent to the old "--one_java_file" option) and Proto2 (where
197ffe3c632Sopenharmony_ci     *           a .proto always translates to a single class, but you may want to
198ffe3c632Sopenharmony_ci     *           explicitly choose the class name).
199ffe3c632Sopenharmony_ci     *     @type bool $java_multiple_files
200ffe3c632Sopenharmony_ci     *           If set true, then the Java code generator will generate a separate .java
201ffe3c632Sopenharmony_ci     *           file for each top-level message, enum, and service defined in the .proto
202ffe3c632Sopenharmony_ci     *           file.  Thus, these types will *not* be nested inside the outer class
203ffe3c632Sopenharmony_ci     *           named by java_outer_classname.  However, the outer class will still be
204ffe3c632Sopenharmony_ci     *           generated to contain the file's getDescriptor() method as well as any
205ffe3c632Sopenharmony_ci     *           top-level extensions defined in the file.
206ffe3c632Sopenharmony_ci     *     @type bool $java_generate_equals_and_hash
207ffe3c632Sopenharmony_ci     *           This option does nothing.
208ffe3c632Sopenharmony_ci     *     @type bool $java_string_check_utf8
209ffe3c632Sopenharmony_ci     *           If set true, then the Java2 code generator will generate code that
210ffe3c632Sopenharmony_ci     *           throws an exception whenever an attempt is made to assign a non-UTF-8
211ffe3c632Sopenharmony_ci     *           byte sequence to a string field.
212ffe3c632Sopenharmony_ci     *           Message reflection will do the same.
213ffe3c632Sopenharmony_ci     *           However, an extension field still accepts non-UTF-8 byte sequences.
214ffe3c632Sopenharmony_ci     *           This option has no effect on when used with the lite runtime.
215ffe3c632Sopenharmony_ci     *     @type int $optimize_for
216ffe3c632Sopenharmony_ci     *     @type string $go_package
217ffe3c632Sopenharmony_ci     *           Sets the Go package where structs generated from this .proto will be
218ffe3c632Sopenharmony_ci     *           placed. If omitted, the Go package will be derived from the following:
219ffe3c632Sopenharmony_ci     *             - The basename of the package import path, if provided.
220ffe3c632Sopenharmony_ci     *             - Otherwise, the package statement in the .proto file, if present.
221ffe3c632Sopenharmony_ci     *             - Otherwise, the basename of the .proto file, without extension.
222ffe3c632Sopenharmony_ci     *     @type bool $cc_generic_services
223ffe3c632Sopenharmony_ci     *           Should generic services be generated in each language?  "Generic" services
224ffe3c632Sopenharmony_ci     *           are not specific to any particular RPC system.  They are generated by the
225ffe3c632Sopenharmony_ci     *           main code generators in each language (without additional plugins).
226ffe3c632Sopenharmony_ci     *           Generic services were the only kind of service generation supported by
227ffe3c632Sopenharmony_ci     *           early versions of google.protobuf.
228ffe3c632Sopenharmony_ci     *           Generic services are now considered deprecated in favor of using plugins
229ffe3c632Sopenharmony_ci     *           that generate code specific to your particular RPC system.  Therefore,
230ffe3c632Sopenharmony_ci     *           these default to false.  Old code which depends on generic services should
231ffe3c632Sopenharmony_ci     *           explicitly set them to true.
232ffe3c632Sopenharmony_ci     *     @type bool $java_generic_services
233ffe3c632Sopenharmony_ci     *     @type bool $py_generic_services
234ffe3c632Sopenharmony_ci     *     @type bool $php_generic_services
235ffe3c632Sopenharmony_ci     *     @type bool $deprecated
236ffe3c632Sopenharmony_ci     *           Is this file deprecated?
237ffe3c632Sopenharmony_ci     *           Depending on the target platform, this can emit Deprecated annotations
238ffe3c632Sopenharmony_ci     *           for everything in the file, or it will be completely ignored; in the very
239ffe3c632Sopenharmony_ci     *           least, this is a formalization for deprecating files.
240ffe3c632Sopenharmony_ci     *     @type bool $cc_enable_arenas
241ffe3c632Sopenharmony_ci     *           Enables the use of arenas for the proto messages in this file. This applies
242ffe3c632Sopenharmony_ci     *           only to generated classes for C++.
243ffe3c632Sopenharmony_ci     *     @type string $objc_class_prefix
244ffe3c632Sopenharmony_ci     *           Sets the objective c class prefix which is prepended to all objective c
245ffe3c632Sopenharmony_ci     *           generated classes from this .proto. There is no default.
246ffe3c632Sopenharmony_ci     *     @type string $csharp_namespace
247ffe3c632Sopenharmony_ci     *           Namespace for generated classes; defaults to the package.
248ffe3c632Sopenharmony_ci     *     @type string $swift_prefix
249ffe3c632Sopenharmony_ci     *           By default Swift generators will take the proto package and CamelCase it
250ffe3c632Sopenharmony_ci     *           replacing '.' with underscore and use that to prefix the types/symbols
251ffe3c632Sopenharmony_ci     *           defined. When this options is provided, they will use this value instead
252ffe3c632Sopenharmony_ci     *           to prefix the types/symbols defined.
253ffe3c632Sopenharmony_ci     *     @type string $php_class_prefix
254ffe3c632Sopenharmony_ci     *           Sets the php class prefix which is prepended to all php generated classes
255ffe3c632Sopenharmony_ci     *           from this .proto. Default is empty.
256ffe3c632Sopenharmony_ci     *     @type string $php_namespace
257ffe3c632Sopenharmony_ci     *           Use this option to change the namespace of php generated classes. Default
258ffe3c632Sopenharmony_ci     *           is empty. When this option is empty, the package name will be used for
259ffe3c632Sopenharmony_ci     *           determining the namespace.
260ffe3c632Sopenharmony_ci     *     @type string $php_metadata_namespace
261ffe3c632Sopenharmony_ci     *           Use this option to change the namespace of php generated metadata classes.
262ffe3c632Sopenharmony_ci     *           Default is empty. When this option is empty, the proto file name will be
263ffe3c632Sopenharmony_ci     *           used for determining the namespace.
264ffe3c632Sopenharmony_ci     *     @type string $ruby_package
265ffe3c632Sopenharmony_ci     *           Use this option to change the package of ruby generated classes. Default
266ffe3c632Sopenharmony_ci     *           is empty. When this option is not set, the package name will be used for
267ffe3c632Sopenharmony_ci     *           determining the ruby package.
268ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option
269ffe3c632Sopenharmony_ci     *           The parser stores options it doesn't recognize here.
270ffe3c632Sopenharmony_ci     *           See the documentation for the "Options" section above.
271ffe3c632Sopenharmony_ci     * }
272ffe3c632Sopenharmony_ci     */
273ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
274ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
275ffe3c632Sopenharmony_ci        parent::__construct($data);
276ffe3c632Sopenharmony_ci    }
277ffe3c632Sopenharmony_ci
278ffe3c632Sopenharmony_ci    /**
279ffe3c632Sopenharmony_ci     * Sets the Java package where classes generated from this .proto will be
280ffe3c632Sopenharmony_ci     * placed.  By default, the proto package is used, but this is often
281ffe3c632Sopenharmony_ci     * inappropriate because proto packages do not normally start with backwards
282ffe3c632Sopenharmony_ci     * domain names.
283ffe3c632Sopenharmony_ci     *
284ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string java_package = 1;</code>
285ffe3c632Sopenharmony_ci     * @return string
286ffe3c632Sopenharmony_ci     */
287ffe3c632Sopenharmony_ci    public function getJavaPackage()
288ffe3c632Sopenharmony_ci    {
289ffe3c632Sopenharmony_ci        return isset($this->java_package) ? $this->java_package : '';
290ffe3c632Sopenharmony_ci    }
291ffe3c632Sopenharmony_ci
292ffe3c632Sopenharmony_ci    public function hasJavaPackage()
293ffe3c632Sopenharmony_ci    {
294ffe3c632Sopenharmony_ci        return isset($this->java_package);
295ffe3c632Sopenharmony_ci    }
296ffe3c632Sopenharmony_ci
297ffe3c632Sopenharmony_ci    public function clearJavaPackage()
298ffe3c632Sopenharmony_ci    {
299ffe3c632Sopenharmony_ci        unset($this->java_package);
300ffe3c632Sopenharmony_ci    }
301ffe3c632Sopenharmony_ci
302ffe3c632Sopenharmony_ci    /**
303ffe3c632Sopenharmony_ci     * Sets the Java package where classes generated from this .proto will be
304ffe3c632Sopenharmony_ci     * placed.  By default, the proto package is used, but this is often
305ffe3c632Sopenharmony_ci     * inappropriate because proto packages do not normally start with backwards
306ffe3c632Sopenharmony_ci     * domain names.
307ffe3c632Sopenharmony_ci     *
308ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string java_package = 1;</code>
309ffe3c632Sopenharmony_ci     * @param string $var
310ffe3c632Sopenharmony_ci     * @return $this
311ffe3c632Sopenharmony_ci     */
312ffe3c632Sopenharmony_ci    public function setJavaPackage($var)
313ffe3c632Sopenharmony_ci    {
314ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
315ffe3c632Sopenharmony_ci        $this->java_package = $var;
316ffe3c632Sopenharmony_ci
317ffe3c632Sopenharmony_ci        return $this;
318ffe3c632Sopenharmony_ci    }
319ffe3c632Sopenharmony_ci
320ffe3c632Sopenharmony_ci    /**
321ffe3c632Sopenharmony_ci     * If set, all the classes from the .proto file are wrapped in a single
322ffe3c632Sopenharmony_ci     * outer class with the given name.  This applies to both Proto1
323ffe3c632Sopenharmony_ci     * (equivalent to the old "--one_java_file" option) and Proto2 (where
324ffe3c632Sopenharmony_ci     * a .proto always translates to a single class, but you may want to
325ffe3c632Sopenharmony_ci     * explicitly choose the class name).
326ffe3c632Sopenharmony_ci     *
327ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string java_outer_classname = 8;</code>
328ffe3c632Sopenharmony_ci     * @return string
329ffe3c632Sopenharmony_ci     */
330ffe3c632Sopenharmony_ci    public function getJavaOuterClassname()
331ffe3c632Sopenharmony_ci    {
332ffe3c632Sopenharmony_ci        return isset($this->java_outer_classname) ? $this->java_outer_classname : '';
333ffe3c632Sopenharmony_ci    }
334ffe3c632Sopenharmony_ci
335ffe3c632Sopenharmony_ci    public function hasJavaOuterClassname()
336ffe3c632Sopenharmony_ci    {
337ffe3c632Sopenharmony_ci        return isset($this->java_outer_classname);
338ffe3c632Sopenharmony_ci    }
339ffe3c632Sopenharmony_ci
340ffe3c632Sopenharmony_ci    public function clearJavaOuterClassname()
341ffe3c632Sopenharmony_ci    {
342ffe3c632Sopenharmony_ci        unset($this->java_outer_classname);
343ffe3c632Sopenharmony_ci    }
344ffe3c632Sopenharmony_ci
345ffe3c632Sopenharmony_ci    /**
346ffe3c632Sopenharmony_ci     * If set, all the classes from the .proto file are wrapped in a single
347ffe3c632Sopenharmony_ci     * outer class with the given name.  This applies to both Proto1
348ffe3c632Sopenharmony_ci     * (equivalent to the old "--one_java_file" option) and Proto2 (where
349ffe3c632Sopenharmony_ci     * a .proto always translates to a single class, but you may want to
350ffe3c632Sopenharmony_ci     * explicitly choose the class name).
351ffe3c632Sopenharmony_ci     *
352ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string java_outer_classname = 8;</code>
353ffe3c632Sopenharmony_ci     * @param string $var
354ffe3c632Sopenharmony_ci     * @return $this
355ffe3c632Sopenharmony_ci     */
356ffe3c632Sopenharmony_ci    public function setJavaOuterClassname($var)
357ffe3c632Sopenharmony_ci    {
358ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
359ffe3c632Sopenharmony_ci        $this->java_outer_classname = $var;
360ffe3c632Sopenharmony_ci
361ffe3c632Sopenharmony_ci        return $this;
362ffe3c632Sopenharmony_ci    }
363ffe3c632Sopenharmony_ci
364ffe3c632Sopenharmony_ci    /**
365ffe3c632Sopenharmony_ci     * If set true, then the Java code generator will generate a separate .java
366ffe3c632Sopenharmony_ci     * file for each top-level message, enum, and service defined in the .proto
367ffe3c632Sopenharmony_ci     * file.  Thus, these types will *not* be nested inside the outer class
368ffe3c632Sopenharmony_ci     * named by java_outer_classname.  However, the outer class will still be
369ffe3c632Sopenharmony_ci     * generated to contain the file's getDescriptor() method as well as any
370ffe3c632Sopenharmony_ci     * top-level extensions defined in the file.
371ffe3c632Sopenharmony_ci     *
372ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_multiple_files = 10 [default = false];</code>
373ffe3c632Sopenharmony_ci     * @return bool
374ffe3c632Sopenharmony_ci     */
375ffe3c632Sopenharmony_ci    public function getJavaMultipleFiles()
376ffe3c632Sopenharmony_ci    {
377ffe3c632Sopenharmony_ci        return isset($this->java_multiple_files) ? $this->java_multiple_files : false;
378ffe3c632Sopenharmony_ci    }
379ffe3c632Sopenharmony_ci
380ffe3c632Sopenharmony_ci    public function hasJavaMultipleFiles()
381ffe3c632Sopenharmony_ci    {
382ffe3c632Sopenharmony_ci        return isset($this->java_multiple_files);
383ffe3c632Sopenharmony_ci    }
384ffe3c632Sopenharmony_ci
385ffe3c632Sopenharmony_ci    public function clearJavaMultipleFiles()
386ffe3c632Sopenharmony_ci    {
387ffe3c632Sopenharmony_ci        unset($this->java_multiple_files);
388ffe3c632Sopenharmony_ci    }
389ffe3c632Sopenharmony_ci
390ffe3c632Sopenharmony_ci    /**
391ffe3c632Sopenharmony_ci     * If set true, then the Java code generator will generate a separate .java
392ffe3c632Sopenharmony_ci     * file for each top-level message, enum, and service defined in the .proto
393ffe3c632Sopenharmony_ci     * file.  Thus, these types will *not* be nested inside the outer class
394ffe3c632Sopenharmony_ci     * named by java_outer_classname.  However, the outer class will still be
395ffe3c632Sopenharmony_ci     * generated to contain the file's getDescriptor() method as well as any
396ffe3c632Sopenharmony_ci     * top-level extensions defined in the file.
397ffe3c632Sopenharmony_ci     *
398ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_multiple_files = 10 [default = false];</code>
399ffe3c632Sopenharmony_ci     * @param bool $var
400ffe3c632Sopenharmony_ci     * @return $this
401ffe3c632Sopenharmony_ci     */
402ffe3c632Sopenharmony_ci    public function setJavaMultipleFiles($var)
403ffe3c632Sopenharmony_ci    {
404ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
405ffe3c632Sopenharmony_ci        $this->java_multiple_files = $var;
406ffe3c632Sopenharmony_ci
407ffe3c632Sopenharmony_ci        return $this;
408ffe3c632Sopenharmony_ci    }
409ffe3c632Sopenharmony_ci
410ffe3c632Sopenharmony_ci    /**
411ffe3c632Sopenharmony_ci     * This option does nothing.
412ffe3c632Sopenharmony_ci     *
413ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code>
414ffe3c632Sopenharmony_ci     * @return bool
415ffe3c632Sopenharmony_ci     */
416ffe3c632Sopenharmony_ci    public function getJavaGenerateEqualsAndHash()
417ffe3c632Sopenharmony_ci    {
418ffe3c632Sopenharmony_ci        return isset($this->java_generate_equals_and_hash) ? $this->java_generate_equals_and_hash : false;
419ffe3c632Sopenharmony_ci    }
420ffe3c632Sopenharmony_ci
421ffe3c632Sopenharmony_ci    public function hasJavaGenerateEqualsAndHash()
422ffe3c632Sopenharmony_ci    {
423ffe3c632Sopenharmony_ci        return isset($this->java_generate_equals_and_hash);
424ffe3c632Sopenharmony_ci    }
425ffe3c632Sopenharmony_ci
426ffe3c632Sopenharmony_ci    public function clearJavaGenerateEqualsAndHash()
427ffe3c632Sopenharmony_ci    {
428ffe3c632Sopenharmony_ci        unset($this->java_generate_equals_and_hash);
429ffe3c632Sopenharmony_ci    }
430ffe3c632Sopenharmony_ci
431ffe3c632Sopenharmony_ci    /**
432ffe3c632Sopenharmony_ci     * This option does nothing.
433ffe3c632Sopenharmony_ci     *
434ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code>
435ffe3c632Sopenharmony_ci     * @param bool $var
436ffe3c632Sopenharmony_ci     * @return $this
437ffe3c632Sopenharmony_ci     */
438ffe3c632Sopenharmony_ci    public function setJavaGenerateEqualsAndHash($var)
439ffe3c632Sopenharmony_ci    {
440ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
441ffe3c632Sopenharmony_ci        $this->java_generate_equals_and_hash = $var;
442ffe3c632Sopenharmony_ci
443ffe3c632Sopenharmony_ci        return $this;
444ffe3c632Sopenharmony_ci    }
445ffe3c632Sopenharmony_ci
446ffe3c632Sopenharmony_ci    /**
447ffe3c632Sopenharmony_ci     * If set true, then the Java2 code generator will generate code that
448ffe3c632Sopenharmony_ci     * throws an exception whenever an attempt is made to assign a non-UTF-8
449ffe3c632Sopenharmony_ci     * byte sequence to a string field.
450ffe3c632Sopenharmony_ci     * Message reflection will do the same.
451ffe3c632Sopenharmony_ci     * However, an extension field still accepts non-UTF-8 byte sequences.
452ffe3c632Sopenharmony_ci     * This option has no effect on when used with the lite runtime.
453ffe3c632Sopenharmony_ci     *
454ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
455ffe3c632Sopenharmony_ci     * @return bool
456ffe3c632Sopenharmony_ci     */
457ffe3c632Sopenharmony_ci    public function getJavaStringCheckUtf8()
458ffe3c632Sopenharmony_ci    {
459ffe3c632Sopenharmony_ci        return isset($this->java_string_check_utf8) ? $this->java_string_check_utf8 : false;
460ffe3c632Sopenharmony_ci    }
461ffe3c632Sopenharmony_ci
462ffe3c632Sopenharmony_ci    public function hasJavaStringCheckUtf8()
463ffe3c632Sopenharmony_ci    {
464ffe3c632Sopenharmony_ci        return isset($this->java_string_check_utf8);
465ffe3c632Sopenharmony_ci    }
466ffe3c632Sopenharmony_ci
467ffe3c632Sopenharmony_ci    public function clearJavaStringCheckUtf8()
468ffe3c632Sopenharmony_ci    {
469ffe3c632Sopenharmony_ci        unset($this->java_string_check_utf8);
470ffe3c632Sopenharmony_ci    }
471ffe3c632Sopenharmony_ci
472ffe3c632Sopenharmony_ci    /**
473ffe3c632Sopenharmony_ci     * If set true, then the Java2 code generator will generate code that
474ffe3c632Sopenharmony_ci     * throws an exception whenever an attempt is made to assign a non-UTF-8
475ffe3c632Sopenharmony_ci     * byte sequence to a string field.
476ffe3c632Sopenharmony_ci     * Message reflection will do the same.
477ffe3c632Sopenharmony_ci     * However, an extension field still accepts non-UTF-8 byte sequences.
478ffe3c632Sopenharmony_ci     * This option has no effect on when used with the lite runtime.
479ffe3c632Sopenharmony_ci     *
480ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
481ffe3c632Sopenharmony_ci     * @param bool $var
482ffe3c632Sopenharmony_ci     * @return $this
483ffe3c632Sopenharmony_ci     */
484ffe3c632Sopenharmony_ci    public function setJavaStringCheckUtf8($var)
485ffe3c632Sopenharmony_ci    {
486ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
487ffe3c632Sopenharmony_ci        $this->java_string_check_utf8 = $var;
488ffe3c632Sopenharmony_ci
489ffe3c632Sopenharmony_ci        return $this;
490ffe3c632Sopenharmony_ci    }
491ffe3c632Sopenharmony_ci
492ffe3c632Sopenharmony_ci    /**
493ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
494ffe3c632Sopenharmony_ci     * @return int
495ffe3c632Sopenharmony_ci     */
496ffe3c632Sopenharmony_ci    public function getOptimizeFor()
497ffe3c632Sopenharmony_ci    {
498ffe3c632Sopenharmony_ci        return isset($this->optimize_for) ? $this->optimize_for : 0;
499ffe3c632Sopenharmony_ci    }
500ffe3c632Sopenharmony_ci
501ffe3c632Sopenharmony_ci    public function hasOptimizeFor()
502ffe3c632Sopenharmony_ci    {
503ffe3c632Sopenharmony_ci        return isset($this->optimize_for);
504ffe3c632Sopenharmony_ci    }
505ffe3c632Sopenharmony_ci
506ffe3c632Sopenharmony_ci    public function clearOptimizeFor()
507ffe3c632Sopenharmony_ci    {
508ffe3c632Sopenharmony_ci        unset($this->optimize_for);
509ffe3c632Sopenharmony_ci    }
510ffe3c632Sopenharmony_ci
511ffe3c632Sopenharmony_ci    /**
512ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
513ffe3c632Sopenharmony_ci     * @param int $var
514ffe3c632Sopenharmony_ci     * @return $this
515ffe3c632Sopenharmony_ci     */
516ffe3c632Sopenharmony_ci    public function setOptimizeFor($var)
517ffe3c632Sopenharmony_ci    {
518ffe3c632Sopenharmony_ci        GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FileOptions\OptimizeMode::class);
519ffe3c632Sopenharmony_ci        $this->optimize_for = $var;
520ffe3c632Sopenharmony_ci
521ffe3c632Sopenharmony_ci        return $this;
522ffe3c632Sopenharmony_ci    }
523ffe3c632Sopenharmony_ci
524ffe3c632Sopenharmony_ci    /**
525ffe3c632Sopenharmony_ci     * Sets the Go package where structs generated from this .proto will be
526ffe3c632Sopenharmony_ci     * placed. If omitted, the Go package will be derived from the following:
527ffe3c632Sopenharmony_ci     *   - The basename of the package import path, if provided.
528ffe3c632Sopenharmony_ci     *   - Otherwise, the package statement in the .proto file, if present.
529ffe3c632Sopenharmony_ci     *   - Otherwise, the basename of the .proto file, without extension.
530ffe3c632Sopenharmony_ci     *
531ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string go_package = 11;</code>
532ffe3c632Sopenharmony_ci     * @return string
533ffe3c632Sopenharmony_ci     */
534ffe3c632Sopenharmony_ci    public function getGoPackage()
535ffe3c632Sopenharmony_ci    {
536ffe3c632Sopenharmony_ci        return isset($this->go_package) ? $this->go_package : '';
537ffe3c632Sopenharmony_ci    }
538ffe3c632Sopenharmony_ci
539ffe3c632Sopenharmony_ci    public function hasGoPackage()
540ffe3c632Sopenharmony_ci    {
541ffe3c632Sopenharmony_ci        return isset($this->go_package);
542ffe3c632Sopenharmony_ci    }
543ffe3c632Sopenharmony_ci
544ffe3c632Sopenharmony_ci    public function clearGoPackage()
545ffe3c632Sopenharmony_ci    {
546ffe3c632Sopenharmony_ci        unset($this->go_package);
547ffe3c632Sopenharmony_ci    }
548ffe3c632Sopenharmony_ci
549ffe3c632Sopenharmony_ci    /**
550ffe3c632Sopenharmony_ci     * Sets the Go package where structs generated from this .proto will be
551ffe3c632Sopenharmony_ci     * placed. If omitted, the Go package will be derived from the following:
552ffe3c632Sopenharmony_ci     *   - The basename of the package import path, if provided.
553ffe3c632Sopenharmony_ci     *   - Otherwise, the package statement in the .proto file, if present.
554ffe3c632Sopenharmony_ci     *   - Otherwise, the basename of the .proto file, without extension.
555ffe3c632Sopenharmony_ci     *
556ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string go_package = 11;</code>
557ffe3c632Sopenharmony_ci     * @param string $var
558ffe3c632Sopenharmony_ci     * @return $this
559ffe3c632Sopenharmony_ci     */
560ffe3c632Sopenharmony_ci    public function setGoPackage($var)
561ffe3c632Sopenharmony_ci    {
562ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
563ffe3c632Sopenharmony_ci        $this->go_package = $var;
564ffe3c632Sopenharmony_ci
565ffe3c632Sopenharmony_ci        return $this;
566ffe3c632Sopenharmony_ci    }
567ffe3c632Sopenharmony_ci
568ffe3c632Sopenharmony_ci    /**
569ffe3c632Sopenharmony_ci     * Should generic services be generated in each language?  "Generic" services
570ffe3c632Sopenharmony_ci     * are not specific to any particular RPC system.  They are generated by the
571ffe3c632Sopenharmony_ci     * main code generators in each language (without additional plugins).
572ffe3c632Sopenharmony_ci     * Generic services were the only kind of service generation supported by
573ffe3c632Sopenharmony_ci     * early versions of google.protobuf.
574ffe3c632Sopenharmony_ci     * Generic services are now considered deprecated in favor of using plugins
575ffe3c632Sopenharmony_ci     * that generate code specific to your particular RPC system.  Therefore,
576ffe3c632Sopenharmony_ci     * these default to false.  Old code which depends on generic services should
577ffe3c632Sopenharmony_ci     * explicitly set them to true.
578ffe3c632Sopenharmony_ci     *
579ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>
580ffe3c632Sopenharmony_ci     * @return bool
581ffe3c632Sopenharmony_ci     */
582ffe3c632Sopenharmony_ci    public function getCcGenericServices()
583ffe3c632Sopenharmony_ci    {
584ffe3c632Sopenharmony_ci        return isset($this->cc_generic_services) ? $this->cc_generic_services : false;
585ffe3c632Sopenharmony_ci    }
586ffe3c632Sopenharmony_ci
587ffe3c632Sopenharmony_ci    public function hasCcGenericServices()
588ffe3c632Sopenharmony_ci    {
589ffe3c632Sopenharmony_ci        return isset($this->cc_generic_services);
590ffe3c632Sopenharmony_ci    }
591ffe3c632Sopenharmony_ci
592ffe3c632Sopenharmony_ci    public function clearCcGenericServices()
593ffe3c632Sopenharmony_ci    {
594ffe3c632Sopenharmony_ci        unset($this->cc_generic_services);
595ffe3c632Sopenharmony_ci    }
596ffe3c632Sopenharmony_ci
597ffe3c632Sopenharmony_ci    /**
598ffe3c632Sopenharmony_ci     * Should generic services be generated in each language?  "Generic" services
599ffe3c632Sopenharmony_ci     * are not specific to any particular RPC system.  They are generated by the
600ffe3c632Sopenharmony_ci     * main code generators in each language (without additional plugins).
601ffe3c632Sopenharmony_ci     * Generic services were the only kind of service generation supported by
602ffe3c632Sopenharmony_ci     * early versions of google.protobuf.
603ffe3c632Sopenharmony_ci     * Generic services are now considered deprecated in favor of using plugins
604ffe3c632Sopenharmony_ci     * that generate code specific to your particular RPC system.  Therefore,
605ffe3c632Sopenharmony_ci     * these default to false.  Old code which depends on generic services should
606ffe3c632Sopenharmony_ci     * explicitly set them to true.
607ffe3c632Sopenharmony_ci     *
608ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>
609ffe3c632Sopenharmony_ci     * @param bool $var
610ffe3c632Sopenharmony_ci     * @return $this
611ffe3c632Sopenharmony_ci     */
612ffe3c632Sopenharmony_ci    public function setCcGenericServices($var)
613ffe3c632Sopenharmony_ci    {
614ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
615ffe3c632Sopenharmony_ci        $this->cc_generic_services = $var;
616ffe3c632Sopenharmony_ci
617ffe3c632Sopenharmony_ci        return $this;
618ffe3c632Sopenharmony_ci    }
619ffe3c632Sopenharmony_ci
620ffe3c632Sopenharmony_ci    /**
621ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
622ffe3c632Sopenharmony_ci     * @return bool
623ffe3c632Sopenharmony_ci     */
624ffe3c632Sopenharmony_ci    public function getJavaGenericServices()
625ffe3c632Sopenharmony_ci    {
626ffe3c632Sopenharmony_ci        return isset($this->java_generic_services) ? $this->java_generic_services : false;
627ffe3c632Sopenharmony_ci    }
628ffe3c632Sopenharmony_ci
629ffe3c632Sopenharmony_ci    public function hasJavaGenericServices()
630ffe3c632Sopenharmony_ci    {
631ffe3c632Sopenharmony_ci        return isset($this->java_generic_services);
632ffe3c632Sopenharmony_ci    }
633ffe3c632Sopenharmony_ci
634ffe3c632Sopenharmony_ci    public function clearJavaGenericServices()
635ffe3c632Sopenharmony_ci    {
636ffe3c632Sopenharmony_ci        unset($this->java_generic_services);
637ffe3c632Sopenharmony_ci    }
638ffe3c632Sopenharmony_ci
639ffe3c632Sopenharmony_ci    /**
640ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
641ffe3c632Sopenharmony_ci     * @param bool $var
642ffe3c632Sopenharmony_ci     * @return $this
643ffe3c632Sopenharmony_ci     */
644ffe3c632Sopenharmony_ci    public function setJavaGenericServices($var)
645ffe3c632Sopenharmony_ci    {
646ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
647ffe3c632Sopenharmony_ci        $this->java_generic_services = $var;
648ffe3c632Sopenharmony_ci
649ffe3c632Sopenharmony_ci        return $this;
650ffe3c632Sopenharmony_ci    }
651ffe3c632Sopenharmony_ci
652ffe3c632Sopenharmony_ci    /**
653ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
654ffe3c632Sopenharmony_ci     * @return bool
655ffe3c632Sopenharmony_ci     */
656ffe3c632Sopenharmony_ci    public function getPyGenericServices()
657ffe3c632Sopenharmony_ci    {
658ffe3c632Sopenharmony_ci        return isset($this->py_generic_services) ? $this->py_generic_services : false;
659ffe3c632Sopenharmony_ci    }
660ffe3c632Sopenharmony_ci
661ffe3c632Sopenharmony_ci    public function hasPyGenericServices()
662ffe3c632Sopenharmony_ci    {
663ffe3c632Sopenharmony_ci        return isset($this->py_generic_services);
664ffe3c632Sopenharmony_ci    }
665ffe3c632Sopenharmony_ci
666ffe3c632Sopenharmony_ci    public function clearPyGenericServices()
667ffe3c632Sopenharmony_ci    {
668ffe3c632Sopenharmony_ci        unset($this->py_generic_services);
669ffe3c632Sopenharmony_ci    }
670ffe3c632Sopenharmony_ci
671ffe3c632Sopenharmony_ci    /**
672ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
673ffe3c632Sopenharmony_ci     * @param bool $var
674ffe3c632Sopenharmony_ci     * @return $this
675ffe3c632Sopenharmony_ci     */
676ffe3c632Sopenharmony_ci    public function setPyGenericServices($var)
677ffe3c632Sopenharmony_ci    {
678ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
679ffe3c632Sopenharmony_ci        $this->py_generic_services = $var;
680ffe3c632Sopenharmony_ci
681ffe3c632Sopenharmony_ci        return $this;
682ffe3c632Sopenharmony_ci    }
683ffe3c632Sopenharmony_ci
684ffe3c632Sopenharmony_ci    /**
685ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
686ffe3c632Sopenharmony_ci     * @return bool
687ffe3c632Sopenharmony_ci     */
688ffe3c632Sopenharmony_ci    public function getPhpGenericServices()
689ffe3c632Sopenharmony_ci    {
690ffe3c632Sopenharmony_ci        return isset($this->php_generic_services) ? $this->php_generic_services : false;
691ffe3c632Sopenharmony_ci    }
692ffe3c632Sopenharmony_ci
693ffe3c632Sopenharmony_ci    public function hasPhpGenericServices()
694ffe3c632Sopenharmony_ci    {
695ffe3c632Sopenharmony_ci        return isset($this->php_generic_services);
696ffe3c632Sopenharmony_ci    }
697ffe3c632Sopenharmony_ci
698ffe3c632Sopenharmony_ci    public function clearPhpGenericServices()
699ffe3c632Sopenharmony_ci    {
700ffe3c632Sopenharmony_ci        unset($this->php_generic_services);
701ffe3c632Sopenharmony_ci    }
702ffe3c632Sopenharmony_ci
703ffe3c632Sopenharmony_ci    /**
704ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
705ffe3c632Sopenharmony_ci     * @param bool $var
706ffe3c632Sopenharmony_ci     * @return $this
707ffe3c632Sopenharmony_ci     */
708ffe3c632Sopenharmony_ci    public function setPhpGenericServices($var)
709ffe3c632Sopenharmony_ci    {
710ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
711ffe3c632Sopenharmony_ci        $this->php_generic_services = $var;
712ffe3c632Sopenharmony_ci
713ffe3c632Sopenharmony_ci        return $this;
714ffe3c632Sopenharmony_ci    }
715ffe3c632Sopenharmony_ci
716ffe3c632Sopenharmony_ci    /**
717ffe3c632Sopenharmony_ci     * Is this file deprecated?
718ffe3c632Sopenharmony_ci     * Depending on the target platform, this can emit Deprecated annotations
719ffe3c632Sopenharmony_ci     * for everything in the file, or it will be completely ignored; in the very
720ffe3c632Sopenharmony_ci     * least, this is a formalization for deprecating files.
721ffe3c632Sopenharmony_ci     *
722ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
723ffe3c632Sopenharmony_ci     * @return bool
724ffe3c632Sopenharmony_ci     */
725ffe3c632Sopenharmony_ci    public function getDeprecated()
726ffe3c632Sopenharmony_ci    {
727ffe3c632Sopenharmony_ci        return isset($this->deprecated) ? $this->deprecated : false;
728ffe3c632Sopenharmony_ci    }
729ffe3c632Sopenharmony_ci
730ffe3c632Sopenharmony_ci    public function hasDeprecated()
731ffe3c632Sopenharmony_ci    {
732ffe3c632Sopenharmony_ci        return isset($this->deprecated);
733ffe3c632Sopenharmony_ci    }
734ffe3c632Sopenharmony_ci
735ffe3c632Sopenharmony_ci    public function clearDeprecated()
736ffe3c632Sopenharmony_ci    {
737ffe3c632Sopenharmony_ci        unset($this->deprecated);
738ffe3c632Sopenharmony_ci    }
739ffe3c632Sopenharmony_ci
740ffe3c632Sopenharmony_ci    /**
741ffe3c632Sopenharmony_ci     * Is this file deprecated?
742ffe3c632Sopenharmony_ci     * Depending on the target platform, this can emit Deprecated annotations
743ffe3c632Sopenharmony_ci     * for everything in the file, or it will be completely ignored; in the very
744ffe3c632Sopenharmony_ci     * least, this is a formalization for deprecating files.
745ffe3c632Sopenharmony_ci     *
746ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
747ffe3c632Sopenharmony_ci     * @param bool $var
748ffe3c632Sopenharmony_ci     * @return $this
749ffe3c632Sopenharmony_ci     */
750ffe3c632Sopenharmony_ci    public function setDeprecated($var)
751ffe3c632Sopenharmony_ci    {
752ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
753ffe3c632Sopenharmony_ci        $this->deprecated = $var;
754ffe3c632Sopenharmony_ci
755ffe3c632Sopenharmony_ci        return $this;
756ffe3c632Sopenharmony_ci    }
757ffe3c632Sopenharmony_ci
758ffe3c632Sopenharmony_ci    /**
759ffe3c632Sopenharmony_ci     * Enables the use of arenas for the proto messages in this file. This applies
760ffe3c632Sopenharmony_ci     * only to generated classes for C++.
761ffe3c632Sopenharmony_ci     *
762ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool cc_enable_arenas = 31 [default = true];</code>
763ffe3c632Sopenharmony_ci     * @return bool
764ffe3c632Sopenharmony_ci     */
765ffe3c632Sopenharmony_ci    public function getCcEnableArenas()
766ffe3c632Sopenharmony_ci    {
767ffe3c632Sopenharmony_ci        return isset($this->cc_enable_arenas) ? $this->cc_enable_arenas : false;
768ffe3c632Sopenharmony_ci    }
769ffe3c632Sopenharmony_ci
770ffe3c632Sopenharmony_ci    public function hasCcEnableArenas()
771ffe3c632Sopenharmony_ci    {
772ffe3c632Sopenharmony_ci        return isset($this->cc_enable_arenas);
773ffe3c632Sopenharmony_ci    }
774ffe3c632Sopenharmony_ci
775ffe3c632Sopenharmony_ci    public function clearCcEnableArenas()
776ffe3c632Sopenharmony_ci    {
777ffe3c632Sopenharmony_ci        unset($this->cc_enable_arenas);
778ffe3c632Sopenharmony_ci    }
779ffe3c632Sopenharmony_ci
780ffe3c632Sopenharmony_ci    /**
781ffe3c632Sopenharmony_ci     * Enables the use of arenas for the proto messages in this file. This applies
782ffe3c632Sopenharmony_ci     * only to generated classes for C++.
783ffe3c632Sopenharmony_ci     *
784ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional bool cc_enable_arenas = 31 [default = true];</code>
785ffe3c632Sopenharmony_ci     * @param bool $var
786ffe3c632Sopenharmony_ci     * @return $this
787ffe3c632Sopenharmony_ci     */
788ffe3c632Sopenharmony_ci    public function setCcEnableArenas($var)
789ffe3c632Sopenharmony_ci    {
790ffe3c632Sopenharmony_ci        GPBUtil::checkBool($var);
791ffe3c632Sopenharmony_ci        $this->cc_enable_arenas = $var;
792ffe3c632Sopenharmony_ci
793ffe3c632Sopenharmony_ci        return $this;
794ffe3c632Sopenharmony_ci    }
795ffe3c632Sopenharmony_ci
796ffe3c632Sopenharmony_ci    /**
797ffe3c632Sopenharmony_ci     * Sets the objective c class prefix which is prepended to all objective c
798ffe3c632Sopenharmony_ci     * generated classes from this .proto. There is no default.
799ffe3c632Sopenharmony_ci     *
800ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string objc_class_prefix = 36;</code>
801ffe3c632Sopenharmony_ci     * @return string
802ffe3c632Sopenharmony_ci     */
803ffe3c632Sopenharmony_ci    public function getObjcClassPrefix()
804ffe3c632Sopenharmony_ci    {
805ffe3c632Sopenharmony_ci        return isset($this->objc_class_prefix) ? $this->objc_class_prefix : '';
806ffe3c632Sopenharmony_ci    }
807ffe3c632Sopenharmony_ci
808ffe3c632Sopenharmony_ci    public function hasObjcClassPrefix()
809ffe3c632Sopenharmony_ci    {
810ffe3c632Sopenharmony_ci        return isset($this->objc_class_prefix);
811ffe3c632Sopenharmony_ci    }
812ffe3c632Sopenharmony_ci
813ffe3c632Sopenharmony_ci    public function clearObjcClassPrefix()
814ffe3c632Sopenharmony_ci    {
815ffe3c632Sopenharmony_ci        unset($this->objc_class_prefix);
816ffe3c632Sopenharmony_ci    }
817ffe3c632Sopenharmony_ci
818ffe3c632Sopenharmony_ci    /**
819ffe3c632Sopenharmony_ci     * Sets the objective c class prefix which is prepended to all objective c
820ffe3c632Sopenharmony_ci     * generated classes from this .proto. There is no default.
821ffe3c632Sopenharmony_ci     *
822ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string objc_class_prefix = 36;</code>
823ffe3c632Sopenharmony_ci     * @param string $var
824ffe3c632Sopenharmony_ci     * @return $this
825ffe3c632Sopenharmony_ci     */
826ffe3c632Sopenharmony_ci    public function setObjcClassPrefix($var)
827ffe3c632Sopenharmony_ci    {
828ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
829ffe3c632Sopenharmony_ci        $this->objc_class_prefix = $var;
830ffe3c632Sopenharmony_ci
831ffe3c632Sopenharmony_ci        return $this;
832ffe3c632Sopenharmony_ci    }
833ffe3c632Sopenharmony_ci
834ffe3c632Sopenharmony_ci    /**
835ffe3c632Sopenharmony_ci     * Namespace for generated classes; defaults to the package.
836ffe3c632Sopenharmony_ci     *
837ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string csharp_namespace = 37;</code>
838ffe3c632Sopenharmony_ci     * @return string
839ffe3c632Sopenharmony_ci     */
840ffe3c632Sopenharmony_ci    public function getCsharpNamespace()
841ffe3c632Sopenharmony_ci    {
842ffe3c632Sopenharmony_ci        return isset($this->csharp_namespace) ? $this->csharp_namespace : '';
843ffe3c632Sopenharmony_ci    }
844ffe3c632Sopenharmony_ci
845ffe3c632Sopenharmony_ci    public function hasCsharpNamespace()
846ffe3c632Sopenharmony_ci    {
847ffe3c632Sopenharmony_ci        return isset($this->csharp_namespace);
848ffe3c632Sopenharmony_ci    }
849ffe3c632Sopenharmony_ci
850ffe3c632Sopenharmony_ci    public function clearCsharpNamespace()
851ffe3c632Sopenharmony_ci    {
852ffe3c632Sopenharmony_ci        unset($this->csharp_namespace);
853ffe3c632Sopenharmony_ci    }
854ffe3c632Sopenharmony_ci
855ffe3c632Sopenharmony_ci    /**
856ffe3c632Sopenharmony_ci     * Namespace for generated classes; defaults to the package.
857ffe3c632Sopenharmony_ci     *
858ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string csharp_namespace = 37;</code>
859ffe3c632Sopenharmony_ci     * @param string $var
860ffe3c632Sopenharmony_ci     * @return $this
861ffe3c632Sopenharmony_ci     */
862ffe3c632Sopenharmony_ci    public function setCsharpNamespace($var)
863ffe3c632Sopenharmony_ci    {
864ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
865ffe3c632Sopenharmony_ci        $this->csharp_namespace = $var;
866ffe3c632Sopenharmony_ci
867ffe3c632Sopenharmony_ci        return $this;
868ffe3c632Sopenharmony_ci    }
869ffe3c632Sopenharmony_ci
870ffe3c632Sopenharmony_ci    /**
871ffe3c632Sopenharmony_ci     * By default Swift generators will take the proto package and CamelCase it
872ffe3c632Sopenharmony_ci     * replacing '.' with underscore and use that to prefix the types/symbols
873ffe3c632Sopenharmony_ci     * defined. When this options is provided, they will use this value instead
874ffe3c632Sopenharmony_ci     * to prefix the types/symbols defined.
875ffe3c632Sopenharmony_ci     *
876ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string swift_prefix = 39;</code>
877ffe3c632Sopenharmony_ci     * @return string
878ffe3c632Sopenharmony_ci     */
879ffe3c632Sopenharmony_ci    public function getSwiftPrefix()
880ffe3c632Sopenharmony_ci    {
881ffe3c632Sopenharmony_ci        return isset($this->swift_prefix) ? $this->swift_prefix : '';
882ffe3c632Sopenharmony_ci    }
883ffe3c632Sopenharmony_ci
884ffe3c632Sopenharmony_ci    public function hasSwiftPrefix()
885ffe3c632Sopenharmony_ci    {
886ffe3c632Sopenharmony_ci        return isset($this->swift_prefix);
887ffe3c632Sopenharmony_ci    }
888ffe3c632Sopenharmony_ci
889ffe3c632Sopenharmony_ci    public function clearSwiftPrefix()
890ffe3c632Sopenharmony_ci    {
891ffe3c632Sopenharmony_ci        unset($this->swift_prefix);
892ffe3c632Sopenharmony_ci    }
893ffe3c632Sopenharmony_ci
894ffe3c632Sopenharmony_ci    /**
895ffe3c632Sopenharmony_ci     * By default Swift generators will take the proto package and CamelCase it
896ffe3c632Sopenharmony_ci     * replacing '.' with underscore and use that to prefix the types/symbols
897ffe3c632Sopenharmony_ci     * defined. When this options is provided, they will use this value instead
898ffe3c632Sopenharmony_ci     * to prefix the types/symbols defined.
899ffe3c632Sopenharmony_ci     *
900ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string swift_prefix = 39;</code>
901ffe3c632Sopenharmony_ci     * @param string $var
902ffe3c632Sopenharmony_ci     * @return $this
903ffe3c632Sopenharmony_ci     */
904ffe3c632Sopenharmony_ci    public function setSwiftPrefix($var)
905ffe3c632Sopenharmony_ci    {
906ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
907ffe3c632Sopenharmony_ci        $this->swift_prefix = $var;
908ffe3c632Sopenharmony_ci
909ffe3c632Sopenharmony_ci        return $this;
910ffe3c632Sopenharmony_ci    }
911ffe3c632Sopenharmony_ci
912ffe3c632Sopenharmony_ci    /**
913ffe3c632Sopenharmony_ci     * Sets the php class prefix which is prepended to all php generated classes
914ffe3c632Sopenharmony_ci     * from this .proto. Default is empty.
915ffe3c632Sopenharmony_ci     *
916ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_class_prefix = 40;</code>
917ffe3c632Sopenharmony_ci     * @return string
918ffe3c632Sopenharmony_ci     */
919ffe3c632Sopenharmony_ci    public function getPhpClassPrefix()
920ffe3c632Sopenharmony_ci    {
921ffe3c632Sopenharmony_ci        return isset($this->php_class_prefix) ? $this->php_class_prefix : '';
922ffe3c632Sopenharmony_ci    }
923ffe3c632Sopenharmony_ci
924ffe3c632Sopenharmony_ci    public function hasPhpClassPrefix()
925ffe3c632Sopenharmony_ci    {
926ffe3c632Sopenharmony_ci        return isset($this->php_class_prefix);
927ffe3c632Sopenharmony_ci    }
928ffe3c632Sopenharmony_ci
929ffe3c632Sopenharmony_ci    public function clearPhpClassPrefix()
930ffe3c632Sopenharmony_ci    {
931ffe3c632Sopenharmony_ci        unset($this->php_class_prefix);
932ffe3c632Sopenharmony_ci    }
933ffe3c632Sopenharmony_ci
934ffe3c632Sopenharmony_ci    /**
935ffe3c632Sopenharmony_ci     * Sets the php class prefix which is prepended to all php generated classes
936ffe3c632Sopenharmony_ci     * from this .proto. Default is empty.
937ffe3c632Sopenharmony_ci     *
938ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_class_prefix = 40;</code>
939ffe3c632Sopenharmony_ci     * @param string $var
940ffe3c632Sopenharmony_ci     * @return $this
941ffe3c632Sopenharmony_ci     */
942ffe3c632Sopenharmony_ci    public function setPhpClassPrefix($var)
943ffe3c632Sopenharmony_ci    {
944ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
945ffe3c632Sopenharmony_ci        $this->php_class_prefix = $var;
946ffe3c632Sopenharmony_ci
947ffe3c632Sopenharmony_ci        return $this;
948ffe3c632Sopenharmony_ci    }
949ffe3c632Sopenharmony_ci
950ffe3c632Sopenharmony_ci    /**
951ffe3c632Sopenharmony_ci     * Use this option to change the namespace of php generated classes. Default
952ffe3c632Sopenharmony_ci     * is empty. When this option is empty, the package name will be used for
953ffe3c632Sopenharmony_ci     * determining the namespace.
954ffe3c632Sopenharmony_ci     *
955ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_namespace = 41;</code>
956ffe3c632Sopenharmony_ci     * @return string
957ffe3c632Sopenharmony_ci     */
958ffe3c632Sopenharmony_ci    public function getPhpNamespace()
959ffe3c632Sopenharmony_ci    {
960ffe3c632Sopenharmony_ci        return isset($this->php_namespace) ? $this->php_namespace : '';
961ffe3c632Sopenharmony_ci    }
962ffe3c632Sopenharmony_ci
963ffe3c632Sopenharmony_ci    public function hasPhpNamespace()
964ffe3c632Sopenharmony_ci    {
965ffe3c632Sopenharmony_ci        return isset($this->php_namespace);
966ffe3c632Sopenharmony_ci    }
967ffe3c632Sopenharmony_ci
968ffe3c632Sopenharmony_ci    public function clearPhpNamespace()
969ffe3c632Sopenharmony_ci    {
970ffe3c632Sopenharmony_ci        unset($this->php_namespace);
971ffe3c632Sopenharmony_ci    }
972ffe3c632Sopenharmony_ci
973ffe3c632Sopenharmony_ci    /**
974ffe3c632Sopenharmony_ci     * Use this option to change the namespace of php generated classes. Default
975ffe3c632Sopenharmony_ci     * is empty. When this option is empty, the package name will be used for
976ffe3c632Sopenharmony_ci     * determining the namespace.
977ffe3c632Sopenharmony_ci     *
978ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_namespace = 41;</code>
979ffe3c632Sopenharmony_ci     * @param string $var
980ffe3c632Sopenharmony_ci     * @return $this
981ffe3c632Sopenharmony_ci     */
982ffe3c632Sopenharmony_ci    public function setPhpNamespace($var)
983ffe3c632Sopenharmony_ci    {
984ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
985ffe3c632Sopenharmony_ci        $this->php_namespace = $var;
986ffe3c632Sopenharmony_ci
987ffe3c632Sopenharmony_ci        return $this;
988ffe3c632Sopenharmony_ci    }
989ffe3c632Sopenharmony_ci
990ffe3c632Sopenharmony_ci    /**
991ffe3c632Sopenharmony_ci     * Use this option to change the namespace of php generated metadata classes.
992ffe3c632Sopenharmony_ci     * Default is empty. When this option is empty, the proto file name will be
993ffe3c632Sopenharmony_ci     * used for determining the namespace.
994ffe3c632Sopenharmony_ci     *
995ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_metadata_namespace = 44;</code>
996ffe3c632Sopenharmony_ci     * @return string
997ffe3c632Sopenharmony_ci     */
998ffe3c632Sopenharmony_ci    public function getPhpMetadataNamespace()
999ffe3c632Sopenharmony_ci    {
1000ffe3c632Sopenharmony_ci        return isset($this->php_metadata_namespace) ? $this->php_metadata_namespace : '';
1001ffe3c632Sopenharmony_ci    }
1002ffe3c632Sopenharmony_ci
1003ffe3c632Sopenharmony_ci    public function hasPhpMetadataNamespace()
1004ffe3c632Sopenharmony_ci    {
1005ffe3c632Sopenharmony_ci        return isset($this->php_metadata_namespace);
1006ffe3c632Sopenharmony_ci    }
1007ffe3c632Sopenharmony_ci
1008ffe3c632Sopenharmony_ci    public function clearPhpMetadataNamespace()
1009ffe3c632Sopenharmony_ci    {
1010ffe3c632Sopenharmony_ci        unset($this->php_metadata_namespace);
1011ffe3c632Sopenharmony_ci    }
1012ffe3c632Sopenharmony_ci
1013ffe3c632Sopenharmony_ci    /**
1014ffe3c632Sopenharmony_ci     * Use this option to change the namespace of php generated metadata classes.
1015ffe3c632Sopenharmony_ci     * Default is empty. When this option is empty, the proto file name will be
1016ffe3c632Sopenharmony_ci     * used for determining the namespace.
1017ffe3c632Sopenharmony_ci     *
1018ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string php_metadata_namespace = 44;</code>
1019ffe3c632Sopenharmony_ci     * @param string $var
1020ffe3c632Sopenharmony_ci     * @return $this
1021ffe3c632Sopenharmony_ci     */
1022ffe3c632Sopenharmony_ci    public function setPhpMetadataNamespace($var)
1023ffe3c632Sopenharmony_ci    {
1024ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
1025ffe3c632Sopenharmony_ci        $this->php_metadata_namespace = $var;
1026ffe3c632Sopenharmony_ci
1027ffe3c632Sopenharmony_ci        return $this;
1028ffe3c632Sopenharmony_ci    }
1029ffe3c632Sopenharmony_ci
1030ffe3c632Sopenharmony_ci    /**
1031ffe3c632Sopenharmony_ci     * Use this option to change the package of ruby generated classes. Default
1032ffe3c632Sopenharmony_ci     * is empty. When this option is not set, the package name will be used for
1033ffe3c632Sopenharmony_ci     * determining the ruby package.
1034ffe3c632Sopenharmony_ci     *
1035ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string ruby_package = 45;</code>
1036ffe3c632Sopenharmony_ci     * @return string
1037ffe3c632Sopenharmony_ci     */
1038ffe3c632Sopenharmony_ci    public function getRubyPackage()
1039ffe3c632Sopenharmony_ci    {
1040ffe3c632Sopenharmony_ci        return isset($this->ruby_package) ? $this->ruby_package : '';
1041ffe3c632Sopenharmony_ci    }
1042ffe3c632Sopenharmony_ci
1043ffe3c632Sopenharmony_ci    public function hasRubyPackage()
1044ffe3c632Sopenharmony_ci    {
1045ffe3c632Sopenharmony_ci        return isset($this->ruby_package);
1046ffe3c632Sopenharmony_ci    }
1047ffe3c632Sopenharmony_ci
1048ffe3c632Sopenharmony_ci    public function clearRubyPackage()
1049ffe3c632Sopenharmony_ci    {
1050ffe3c632Sopenharmony_ci        unset($this->ruby_package);
1051ffe3c632Sopenharmony_ci    }
1052ffe3c632Sopenharmony_ci
1053ffe3c632Sopenharmony_ci    /**
1054ffe3c632Sopenharmony_ci     * Use this option to change the package of ruby generated classes. Default
1055ffe3c632Sopenharmony_ci     * is empty. When this option is not set, the package name will be used for
1056ffe3c632Sopenharmony_ci     * determining the ruby package.
1057ffe3c632Sopenharmony_ci     *
1058ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>optional string ruby_package = 45;</code>
1059ffe3c632Sopenharmony_ci     * @param string $var
1060ffe3c632Sopenharmony_ci     * @return $this
1061ffe3c632Sopenharmony_ci     */
1062ffe3c632Sopenharmony_ci    public function setRubyPackage($var)
1063ffe3c632Sopenharmony_ci    {
1064ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
1065ffe3c632Sopenharmony_ci        $this->ruby_package = $var;
1066ffe3c632Sopenharmony_ci
1067ffe3c632Sopenharmony_ci        return $this;
1068ffe3c632Sopenharmony_ci    }
1069ffe3c632Sopenharmony_ci
1070ffe3c632Sopenharmony_ci    /**
1071ffe3c632Sopenharmony_ci     * The parser stores options it doesn't recognize here.
1072ffe3c632Sopenharmony_ci     * See the documentation for the "Options" section above.
1073ffe3c632Sopenharmony_ci     *
1074ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
1075ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
1076ffe3c632Sopenharmony_ci     */
1077ffe3c632Sopenharmony_ci    public function getUninterpretedOption()
1078ffe3c632Sopenharmony_ci    {
1079ffe3c632Sopenharmony_ci        return $this->uninterpreted_option;
1080ffe3c632Sopenharmony_ci    }
1081ffe3c632Sopenharmony_ci
1082ffe3c632Sopenharmony_ci    /**
1083ffe3c632Sopenharmony_ci     * The parser stores options it doesn't recognize here.
1084ffe3c632Sopenharmony_ci     * See the documentation for the "Options" section above.
1085ffe3c632Sopenharmony_ci     *
1086ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
1087ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
1088ffe3c632Sopenharmony_ci     * @return $this
1089ffe3c632Sopenharmony_ci     */
1090ffe3c632Sopenharmony_ci    public function setUninterpretedOption($var)
1091ffe3c632Sopenharmony_ci    {
1092ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
1093ffe3c632Sopenharmony_ci        $this->uninterpreted_option = $arr;
1094ffe3c632Sopenharmony_ci
1095ffe3c632Sopenharmony_ci        return $this;
1096ffe3c632Sopenharmony_ci    }
1097ffe3c632Sopenharmony_ci
1098ffe3c632Sopenharmony_ci}
1099ffe3c632Sopenharmony_ci
1100