FileOptions.php 29 KB

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