FileOptions.php 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/descriptor.proto
  4. namespace Google\Protobuf\Internal;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\GPBWire;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\InputStream;
  9. use Google\Protobuf\Internal\GPBUtil;
  10. /**
  11. * Generated from protobuf message <code>google.protobuf.FileOptions</code>
  12. */
  13. class FileOptions extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Sets the Java package where classes generated from this .proto will be
  17. * placed. By default, the proto package is used, but this is often
  18. * inappropriate because proto packages do not normally start with backwards
  19. * domain names.
  20. *
  21. * Generated from protobuf field <code>optional string java_package = 1;</code>
  22. */
  23. private $java_package = '';
  24. private $has_java_package = false;
  25. /**
  26. * If set, all the classes from the .proto file are wrapped in a single
  27. * outer class with the given name. This applies to both Proto1
  28. * (equivalent to the old "--one_java_file" option) and Proto2 (where
  29. * a .proto always translates to a single class, but you may want to
  30. * explicitly choose the class name).
  31. *
  32. * Generated from protobuf field <code>optional string java_outer_classname = 8;</code>
  33. */
  34. private $java_outer_classname = '';
  35. private $has_java_outer_classname = false;
  36. /**
  37. * If set true, then the Java code generator will generate a separate .java
  38. * file for each top-level message, enum, and service defined in the .proto
  39. * file. Thus, these types will *not* be nested inside the outer class
  40. * named by java_outer_classname. However, the outer class will still be
  41. * generated to contain the file's getDescriptor() method as well as any
  42. * top-level extensions defined in the file.
  43. *
  44. * Generated from protobuf field <code>optional bool java_multiple_files = 10 [default = false];</code>
  45. */
  46. private $java_multiple_files = false;
  47. private $has_java_multiple_files = false;
  48. /**
  49. * This option does nothing.
  50. *
  51. * Generated from protobuf field <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code>
  52. */
  53. private $java_generate_equals_and_hash = false;
  54. private $has_java_generate_equals_and_hash = false;
  55. /**
  56. * If set true, then the Java2 code generator will generate code that
  57. * throws an exception whenever an attempt is made to assign a non-UTF-8
  58. * byte sequence to a string field.
  59. * Message reflection will do the same.
  60. * However, an extension field still accepts non-UTF-8 byte sequences.
  61. * This option has no effect on when used with the lite runtime.
  62. *
  63. * Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
  64. */
  65. private $java_string_check_utf8 = false;
  66. private $has_java_string_check_utf8 = false;
  67. /**
  68. * Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
  69. */
  70. private $optimize_for = 0;
  71. private $has_optimize_for = false;
  72. /**
  73. * Sets the Go package where structs generated from this .proto will be
  74. * placed. If omitted, the Go package will be derived from the following:
  75. * - The basename of the package import path, if provided.
  76. * - Otherwise, the package statement in the .proto file, if present.
  77. * - Otherwise, the basename of the .proto file, without extension.
  78. *
  79. * Generated from protobuf field <code>optional string go_package = 11;</code>
  80. */
  81. private $go_package = '';
  82. private $has_go_package = false;
  83. /**
  84. * Should generic services be generated in each language? "Generic" services
  85. * are not specific to any particular RPC system. They are generated by the
  86. * main code generators in each language (without additional plugins).
  87. * Generic services were the only kind of service generation supported by
  88. * early versions of google.protobuf.
  89. * Generic services are now considered deprecated in favor of using plugins
  90. * that generate code specific to your particular RPC system. Therefore,
  91. * these default to false. Old code which depends on generic services should
  92. * explicitly set them to true.
  93. *
  94. * Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>
  95. */
  96. private $cc_generic_services = false;
  97. private $has_cc_generic_services = false;
  98. /**
  99. * Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
  100. */
  101. private $java_generic_services = false;
  102. private $has_java_generic_services = false;
  103. /**
  104. * Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
  105. */
  106. private $py_generic_services = false;
  107. private $has_py_generic_services = false;
  108. /**
  109. * Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
  110. */
  111. private $php_generic_services = false;
  112. private $has_php_generic_services = false;
  113. /**
  114. * Is this file deprecated?
  115. * Depending on the target platform, this can emit Deprecated annotations
  116. * for everything in the file, or it will be completely ignored; in the very
  117. * least, this is a formalization for deprecating files.
  118. *
  119. * Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
  120. */
  121. private $deprecated = false;
  122. private $has_deprecated = false;
  123. /**
  124. * Enables the use of arenas for the proto messages in this file. This applies
  125. * only to generated classes for C++.
  126. *
  127. * Generated from protobuf field <code>optional bool cc_enable_arenas = 31 [default = false];</code>
  128. */
  129. private $cc_enable_arenas = false;
  130. private $has_cc_enable_arenas = false;
  131. /**
  132. * Sets the objective c class prefix which is prepended to all objective c
  133. * generated classes from this .proto. There is no default.
  134. *
  135. * Generated from protobuf field <code>optional string objc_class_prefix = 36;</code>
  136. */
  137. private $objc_class_prefix = '';
  138. private $has_objc_class_prefix = false;
  139. /**
  140. * Namespace for generated classes; defaults to the package.
  141. *
  142. * Generated from protobuf field <code>optional string csharp_namespace = 37;</code>
  143. */
  144. private $csharp_namespace = '';
  145. private $has_csharp_namespace = false;
  146. /**
  147. * By default Swift generators will take the proto package and CamelCase it
  148. * replacing '.' with underscore and use that to prefix the types/symbols
  149. * defined. When this options is provided, they will use this value instead
  150. * to prefix the types/symbols defined.
  151. *
  152. * Generated from protobuf field <code>optional string swift_prefix = 39;</code>
  153. */
  154. private $swift_prefix = '';
  155. private $has_swift_prefix = false;
  156. /**
  157. * Sets the php class prefix which is prepended to all php generated classes
  158. * from this .proto. Default is empty.
  159. *
  160. * Generated from protobuf field <code>optional string php_class_prefix = 40;</code>
  161. */
  162. private $php_class_prefix = '';
  163. private $has_php_class_prefix = false;
  164. /**
  165. * Use this option to change the namespace of php generated classes. Default
  166. * is empty. When this option is empty, the package name will be used for
  167. * determining the namespace.
  168. *
  169. * Generated from protobuf field <code>optional string php_namespace = 41;</code>
  170. */
  171. private $php_namespace = '';
  172. private $has_php_namespace = false;
  173. /**
  174. * The parser stores options it doesn't recognize here. See above.
  175. *
  176. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  177. */
  178. private $uninterpreted_option;
  179. private $has_uninterpreted_option = false;
  180. public function __construct() {
  181. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  182. parent::__construct();
  183. }
  184. /**
  185. * Sets the Java package where classes generated from this .proto will be
  186. * placed. By default, the proto package is used, but this is often
  187. * inappropriate because proto packages do not normally start with backwards
  188. * domain names.
  189. *
  190. * Generated from protobuf field <code>optional string java_package = 1;</code>
  191. * @return string
  192. */
  193. public function getJavaPackage()
  194. {
  195. return $this->java_package;
  196. }
  197. /**
  198. * Sets the Java package where classes generated from this .proto will be
  199. * placed. By default, the proto package is used, but this is often
  200. * inappropriate because proto packages do not normally start with backwards
  201. * domain names.
  202. *
  203. * Generated from protobuf field <code>optional string java_package = 1;</code>
  204. * @param string $var
  205. * @return $this
  206. */
  207. public function setJavaPackage($var)
  208. {
  209. GPBUtil::checkString($var, True);
  210. $this->java_package = $var;
  211. $this->has_java_package = true;
  212. return $this;
  213. }
  214. public function hasJavaPackage()
  215. {
  216. return $this->has_java_package;
  217. }
  218. /**
  219. * If set, all the classes from the .proto file are wrapped in a single
  220. * outer class with the given name. This applies to both Proto1
  221. * (equivalent to the old "--one_java_file" option) and Proto2 (where
  222. * a .proto always translates to a single class, but you may want to
  223. * explicitly choose the class name).
  224. *
  225. * Generated from protobuf field <code>optional string java_outer_classname = 8;</code>
  226. * @return string
  227. */
  228. public function getJavaOuterClassname()
  229. {
  230. return $this->java_outer_classname;
  231. }
  232. /**
  233. * If set, all the classes from the .proto file are wrapped in a single
  234. * outer class with the given name. This applies to both Proto1
  235. * (equivalent to the old "--one_java_file" option) and Proto2 (where
  236. * a .proto always translates to a single class, but you may want to
  237. * explicitly choose the class name).
  238. *
  239. * Generated from protobuf field <code>optional string java_outer_classname = 8;</code>
  240. * @param string $var
  241. * @return $this
  242. */
  243. public function setJavaOuterClassname($var)
  244. {
  245. GPBUtil::checkString($var, True);
  246. $this->java_outer_classname = $var;
  247. $this->has_java_outer_classname = true;
  248. return $this;
  249. }
  250. public function hasJavaOuterClassname()
  251. {
  252. return $this->has_java_outer_classname;
  253. }
  254. /**
  255. * If set true, then the Java code generator will generate a separate .java
  256. * file for each top-level message, enum, and service defined in the .proto
  257. * file. Thus, these types will *not* be nested inside the outer class
  258. * named by java_outer_classname. However, the outer class will still be
  259. * generated to contain the file's getDescriptor() method as well as any
  260. * top-level extensions defined in the file.
  261. *
  262. * Generated from protobuf field <code>optional bool java_multiple_files = 10 [default = false];</code>
  263. * @return bool
  264. */
  265. public function getJavaMultipleFiles()
  266. {
  267. return $this->java_multiple_files;
  268. }
  269. /**
  270. * If set true, then the Java code generator will generate a separate .java
  271. * file for each top-level message, enum, and service defined in the .proto
  272. * file. Thus, these types will *not* be nested inside the outer class
  273. * named by java_outer_classname. However, the outer class will still be
  274. * generated to contain the file's getDescriptor() method as well as any
  275. * top-level extensions defined in the file.
  276. *
  277. * Generated from protobuf field <code>optional bool java_multiple_files = 10 [default = false];</code>
  278. * @param bool $var
  279. * @return $this
  280. */
  281. public function setJavaMultipleFiles($var)
  282. {
  283. GPBUtil::checkBool($var);
  284. $this->java_multiple_files = $var;
  285. $this->has_java_multiple_files = true;
  286. return $this;
  287. }
  288. public function hasJavaMultipleFiles()
  289. {
  290. return $this->has_java_multiple_files;
  291. }
  292. /**
  293. * This option does nothing.
  294. *
  295. * Generated from protobuf field <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code>
  296. * @return bool
  297. */
  298. public function getJavaGenerateEqualsAndHash()
  299. {
  300. return $this->java_generate_equals_and_hash;
  301. }
  302. /**
  303. * This option does nothing.
  304. *
  305. * Generated from protobuf field <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code>
  306. * @param bool $var
  307. * @return $this
  308. */
  309. public function setJavaGenerateEqualsAndHash($var)
  310. {
  311. GPBUtil::checkBool($var);
  312. $this->java_generate_equals_and_hash = $var;
  313. $this->has_java_generate_equals_and_hash = true;
  314. return $this;
  315. }
  316. public function hasJavaGenerateEqualsAndHash()
  317. {
  318. return $this->has_java_generate_equals_and_hash;
  319. }
  320. /**
  321. * If set true, then the Java2 code generator will generate code that
  322. * throws an exception whenever an attempt is made to assign a non-UTF-8
  323. * byte sequence to a string field.
  324. * Message reflection will do the same.
  325. * However, an extension field still accepts non-UTF-8 byte sequences.
  326. * This option has no effect on when used with the lite runtime.
  327. *
  328. * Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
  329. * @return bool
  330. */
  331. public function getJavaStringCheckUtf8()
  332. {
  333. return $this->java_string_check_utf8;
  334. }
  335. /**
  336. * If set true, then the Java2 code generator will generate code that
  337. * throws an exception whenever an attempt is made to assign a non-UTF-8
  338. * byte sequence to a string field.
  339. * Message reflection will do the same.
  340. * However, an extension field still accepts non-UTF-8 byte sequences.
  341. * This option has no effect on when used with the lite runtime.
  342. *
  343. * Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
  344. * @param bool $var
  345. * @return $this
  346. */
  347. public function setJavaStringCheckUtf8($var)
  348. {
  349. GPBUtil::checkBool($var);
  350. $this->java_string_check_utf8 = $var;
  351. $this->has_java_string_check_utf8 = true;
  352. return $this;
  353. }
  354. public function hasJavaStringCheckUtf8()
  355. {
  356. return $this->has_java_string_check_utf8;
  357. }
  358. /**
  359. * Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
  360. * @return int
  361. */
  362. public function getOptimizeFor()
  363. {
  364. return $this->optimize_for;
  365. }
  366. /**
  367. * Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
  368. * @param int $var
  369. * @return $this
  370. */
  371. public function setOptimizeFor($var)
  372. {
  373. GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FileOptions_OptimizeMode::class);
  374. $this->optimize_for = $var;
  375. $this->has_optimize_for = true;
  376. return $this;
  377. }
  378. public function hasOptimizeFor()
  379. {
  380. return $this->has_optimize_for;
  381. }
  382. /**
  383. * Sets the Go package where structs generated from this .proto will be
  384. * placed. If omitted, the Go package will be derived from the following:
  385. * - The basename of the package import path, if provided.
  386. * - Otherwise, the package statement in the .proto file, if present.
  387. * - Otherwise, the basename of the .proto file, without extension.
  388. *
  389. * Generated from protobuf field <code>optional string go_package = 11;</code>
  390. * @return string
  391. */
  392. public function getGoPackage()
  393. {
  394. return $this->go_package;
  395. }
  396. /**
  397. * Sets the Go package where structs generated from this .proto will be
  398. * placed. If omitted, the Go package will be derived from the following:
  399. * - The basename of the package import path, if provided.
  400. * - Otherwise, the package statement in the .proto file, if present.
  401. * - Otherwise, the basename of the .proto file, without extension.
  402. *
  403. * Generated from protobuf field <code>optional string go_package = 11;</code>
  404. * @param string $var
  405. * @return $this
  406. */
  407. public function setGoPackage($var)
  408. {
  409. GPBUtil::checkString($var, True);
  410. $this->go_package = $var;
  411. $this->has_go_package = true;
  412. return $this;
  413. }
  414. public function hasGoPackage()
  415. {
  416. return $this->has_go_package;
  417. }
  418. /**
  419. * Should generic services be generated in each language? "Generic" services
  420. * are not specific to any particular RPC system. They are generated by the
  421. * main code generators in each language (without additional plugins).
  422. * Generic services were the only kind of service generation supported by
  423. * early versions of google.protobuf.
  424. * Generic services are now considered deprecated in favor of using plugins
  425. * that generate code specific to your particular RPC system. Therefore,
  426. * these default to false. Old code which depends on generic services should
  427. * explicitly set them to true.
  428. *
  429. * Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>
  430. * @return bool
  431. */
  432. public function getCcGenericServices()
  433. {
  434. return $this->cc_generic_services;
  435. }
  436. /**
  437. * Should generic services be generated in each language? "Generic" services
  438. * are not specific to any particular RPC system. They are generated by the
  439. * main code generators in each language (without additional plugins).
  440. * Generic services were the only kind of service generation supported by
  441. * early versions of google.protobuf.
  442. * Generic services are now considered deprecated in favor of using plugins
  443. * that generate code specific to your particular RPC system. Therefore,
  444. * these default to false. Old code which depends on generic services should
  445. * explicitly set them to true.
  446. *
  447. * Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>
  448. * @param bool $var
  449. * @return $this
  450. */
  451. public function setCcGenericServices($var)
  452. {
  453. GPBUtil::checkBool($var);
  454. $this->cc_generic_services = $var;
  455. $this->has_cc_generic_services = true;
  456. return $this;
  457. }
  458. public function hasCcGenericServices()
  459. {
  460. return $this->has_cc_generic_services;
  461. }
  462. /**
  463. * Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
  464. * @return bool
  465. */
  466. public function getJavaGenericServices()
  467. {
  468. return $this->java_generic_services;
  469. }
  470. /**
  471. * Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
  472. * @param bool $var
  473. * @return $this
  474. */
  475. public function setJavaGenericServices($var)
  476. {
  477. GPBUtil::checkBool($var);
  478. $this->java_generic_services = $var;
  479. $this->has_java_generic_services = true;
  480. return $this;
  481. }
  482. public function hasJavaGenericServices()
  483. {
  484. return $this->has_java_generic_services;
  485. }
  486. /**
  487. * Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
  488. * @return bool
  489. */
  490. public function getPyGenericServices()
  491. {
  492. return $this->py_generic_services;
  493. }
  494. /**
  495. * Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
  496. * @param bool $var
  497. * @return $this
  498. */
  499. public function setPyGenericServices($var)
  500. {
  501. GPBUtil::checkBool($var);
  502. $this->py_generic_services = $var;
  503. $this->has_py_generic_services = true;
  504. return $this;
  505. }
  506. public function hasPyGenericServices()
  507. {
  508. return $this->has_py_generic_services;
  509. }
  510. /**
  511. * Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
  512. * @return bool
  513. */
  514. public function getPhpGenericServices()
  515. {
  516. return $this->php_generic_services;
  517. }
  518. /**
  519. * Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
  520. * @param bool $var
  521. * @return $this
  522. */
  523. public function setPhpGenericServices($var)
  524. {
  525. GPBUtil::checkBool($var);
  526. $this->php_generic_services = $var;
  527. $this->has_php_generic_services = true;
  528. return $this;
  529. }
  530. public function hasPhpGenericServices()
  531. {
  532. return $this->has_php_generic_services;
  533. }
  534. /**
  535. * Is this file deprecated?
  536. * Depending on the target platform, this can emit Deprecated annotations
  537. * for everything in the file, or it will be completely ignored; in the very
  538. * least, this is a formalization for deprecating files.
  539. *
  540. * Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
  541. * @return bool
  542. */
  543. public function getDeprecated()
  544. {
  545. return $this->deprecated;
  546. }
  547. /**
  548. * Is this file deprecated?
  549. * Depending on the target platform, this can emit Deprecated annotations
  550. * for everything in the file, or it will be completely ignored; in the very
  551. * least, this is a formalization for deprecating files.
  552. *
  553. * Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
  554. * @param bool $var
  555. * @return $this
  556. */
  557. public function setDeprecated($var)
  558. {
  559. GPBUtil::checkBool($var);
  560. $this->deprecated = $var;
  561. $this->has_deprecated = true;
  562. return $this;
  563. }
  564. public function hasDeprecated()
  565. {
  566. return $this->has_deprecated;
  567. }
  568. /**
  569. * Enables the use of arenas for the proto messages in this file. This applies
  570. * only to generated classes for C++.
  571. *
  572. * Generated from protobuf field <code>optional bool cc_enable_arenas = 31 [default = false];</code>
  573. * @return bool
  574. */
  575. public function getCcEnableArenas()
  576. {
  577. return $this->cc_enable_arenas;
  578. }
  579. /**
  580. * Enables the use of arenas for the proto messages in this file. This applies
  581. * only to generated classes for C++.
  582. *
  583. * Generated from protobuf field <code>optional bool cc_enable_arenas = 31 [default = false];</code>
  584. * @param bool $var
  585. * @return $this
  586. */
  587. public function setCcEnableArenas($var)
  588. {
  589. GPBUtil::checkBool($var);
  590. $this->cc_enable_arenas = $var;
  591. $this->has_cc_enable_arenas = true;
  592. return $this;
  593. }
  594. public function hasCcEnableArenas()
  595. {
  596. return $this->has_cc_enable_arenas;
  597. }
  598. /**
  599. * Sets the objective c class prefix which is prepended to all objective c
  600. * generated classes from this .proto. There is no default.
  601. *
  602. * Generated from protobuf field <code>optional string objc_class_prefix = 36;</code>
  603. * @return string
  604. */
  605. public function getObjcClassPrefix()
  606. {
  607. return $this->objc_class_prefix;
  608. }
  609. /**
  610. * Sets the objective c class prefix which is prepended to all objective c
  611. * generated classes from this .proto. There is no default.
  612. *
  613. * Generated from protobuf field <code>optional string objc_class_prefix = 36;</code>
  614. * @param string $var
  615. * @return $this
  616. */
  617. public function setObjcClassPrefix($var)
  618. {
  619. GPBUtil::checkString($var, True);
  620. $this->objc_class_prefix = $var;
  621. $this->has_objc_class_prefix = true;
  622. return $this;
  623. }
  624. public function hasObjcClassPrefix()
  625. {
  626. return $this->has_objc_class_prefix;
  627. }
  628. /**
  629. * Namespace for generated classes; defaults to the package.
  630. *
  631. * Generated from protobuf field <code>optional string csharp_namespace = 37;</code>
  632. * @return string
  633. */
  634. public function getCsharpNamespace()
  635. {
  636. return $this->csharp_namespace;
  637. }
  638. /**
  639. * Namespace for generated classes; defaults to the package.
  640. *
  641. * Generated from protobuf field <code>optional string csharp_namespace = 37;</code>
  642. * @param string $var
  643. * @return $this
  644. */
  645. public function setCsharpNamespace($var)
  646. {
  647. GPBUtil::checkString($var, True);
  648. $this->csharp_namespace = $var;
  649. $this->has_csharp_namespace = true;
  650. return $this;
  651. }
  652. public function hasCsharpNamespace()
  653. {
  654. return $this->has_csharp_namespace;
  655. }
  656. /**
  657. * By default Swift generators will take the proto package and CamelCase it
  658. * replacing '.' with underscore and use that to prefix the types/symbols
  659. * defined. When this options is provided, they will use this value instead
  660. * to prefix the types/symbols defined.
  661. *
  662. * Generated from protobuf field <code>optional string swift_prefix = 39;</code>
  663. * @return string
  664. */
  665. public function getSwiftPrefix()
  666. {
  667. return $this->swift_prefix;
  668. }
  669. /**
  670. * By default Swift generators will take the proto package and CamelCase it
  671. * replacing '.' with underscore and use that to prefix the types/symbols
  672. * defined. When this options is provided, they will use this value instead
  673. * to prefix the types/symbols defined.
  674. *
  675. * Generated from protobuf field <code>optional string swift_prefix = 39;</code>
  676. * @param string $var
  677. * @return $this
  678. */
  679. public function setSwiftPrefix($var)
  680. {
  681. GPBUtil::checkString($var, True);
  682. $this->swift_prefix = $var;
  683. $this->has_swift_prefix = true;
  684. return $this;
  685. }
  686. public function hasSwiftPrefix()
  687. {
  688. return $this->has_swift_prefix;
  689. }
  690. /**
  691. * Sets the php class prefix which is prepended to all php generated classes
  692. * from this .proto. Default is empty.
  693. *
  694. * Generated from protobuf field <code>optional string php_class_prefix = 40;</code>
  695. * @return string
  696. */
  697. public function getPhpClassPrefix()
  698. {
  699. return $this->php_class_prefix;
  700. }
  701. /**
  702. * Sets the php class prefix which is prepended to all php generated classes
  703. * from this .proto. Default is empty.
  704. *
  705. * Generated from protobuf field <code>optional string php_class_prefix = 40;</code>
  706. * @param string $var
  707. * @return $this
  708. */
  709. public function setPhpClassPrefix($var)
  710. {
  711. GPBUtil::checkString($var, True);
  712. $this->php_class_prefix = $var;
  713. $this->has_php_class_prefix = true;
  714. return $this;
  715. }
  716. public function hasPhpClassPrefix()
  717. {
  718. return $this->has_php_class_prefix;
  719. }
  720. /**
  721. * Use this option to change the namespace of php generated classes. Default
  722. * is empty. When this option is empty, the package name will be used for
  723. * determining the namespace.
  724. *
  725. * Generated from protobuf field <code>optional string php_namespace = 41;</code>
  726. * @return string
  727. */
  728. public function getPhpNamespace()
  729. {
  730. return $this->php_namespace;
  731. }
  732. /**
  733. * Use this option to change the namespace of php generated classes. Default
  734. * is empty. When this option is empty, the package name will be used for
  735. * determining the namespace.
  736. *
  737. * Generated from protobuf field <code>optional string php_namespace = 41;</code>
  738. * @param string $var
  739. * @return $this
  740. */
  741. public function setPhpNamespace($var)
  742. {
  743. GPBUtil::checkString($var, True);
  744. $this->php_namespace = $var;
  745. $this->has_php_namespace = true;
  746. return $this;
  747. }
  748. public function hasPhpNamespace()
  749. {
  750. return $this->has_php_namespace;
  751. }
  752. /**
  753. * The parser stores options it doesn't recognize here. See above.
  754. *
  755. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  756. * @return \Google\Protobuf\Internal\RepeatedField
  757. */
  758. public function getUninterpretedOption()
  759. {
  760. return $this->uninterpreted_option;
  761. }
  762. /**
  763. * The parser stores options it doesn't recognize here. See above.
  764. *
  765. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  766. * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
  767. * @return $this
  768. */
  769. public function setUninterpretedOption($var)
  770. {
  771. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  772. $this->uninterpreted_option = $arr;
  773. $this->has_uninterpreted_option = true;
  774. return $this;
  775. }
  776. public function hasUninterpretedOption()
  777. {
  778. return $this->has_uninterpreted_option;
  779. }
  780. }