FileOptions.php 23 KB

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