descriptor_internal.pb.php 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532
  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\DescriptorPool;
  6. use Google\Protobuf\Internal\GPBType;
  7. use Google\Protobuf\Internal\GPBWire;
  8. use Google\Protobuf\Internal\RepeatedField;
  9. use Google\Protobuf\Internal\InputStream;
  10. use Google\Protobuf\Internal\GPBUtil;
  11. class FileDescriptorSet extends \Google\Protobuf\Internal\Message
  12. {
  13. private $file;
  14. private $has_file = false;
  15. public function getFile()
  16. {
  17. return $this->file;
  18. }
  19. public function setFile(&$var)
  20. {
  21. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\FileDescriptorProto::class);
  22. $this->file = $var;
  23. $this->has_file = true;
  24. }
  25. public function hasFile()
  26. {
  27. return $this->has_file;
  28. }
  29. }
  30. class FileDescriptorProto extends \Google\Protobuf\Internal\Message
  31. {
  32. private $name = '';
  33. private $has_name = false;
  34. private $package = '';
  35. private $has_package = false;
  36. private $dependency;
  37. private $has_dependency = false;
  38. private $public_dependency;
  39. private $has_public_dependency = false;
  40. private $weak_dependency;
  41. private $has_weak_dependency = false;
  42. private $message_type;
  43. private $has_message_type = false;
  44. private $enum_type;
  45. private $has_enum_type = false;
  46. private $service;
  47. private $has_service = false;
  48. private $extension;
  49. private $has_extension = false;
  50. private $options = null;
  51. private $has_options = false;
  52. private $source_code_info = null;
  53. private $has_source_code_info = false;
  54. private $syntax = '';
  55. private $has_syntax = false;
  56. public function getName()
  57. {
  58. return $this->name;
  59. }
  60. public function setName($var)
  61. {
  62. GPBUtil::checkString($var, True);
  63. $this->name = $var;
  64. $this->has_name = true;
  65. }
  66. public function hasName()
  67. {
  68. return $this->has_name;
  69. }
  70. public function getPackage()
  71. {
  72. return $this->package;
  73. }
  74. public function setPackage($var)
  75. {
  76. GPBUtil::checkString($var, True);
  77. $this->package = $var;
  78. $this->has_package = true;
  79. }
  80. public function hasPackage()
  81. {
  82. return $this->has_package;
  83. }
  84. public function getDependency()
  85. {
  86. return $this->dependency;
  87. }
  88. public function setDependency(&$var)
  89. {
  90. GPBUtil::checkRepeatedField($var, GPBType::STRING);
  91. $this->dependency = $var;
  92. $this->has_dependency = true;
  93. }
  94. public function hasDependency()
  95. {
  96. return $this->has_dependency;
  97. }
  98. public function getPublicDependency()
  99. {
  100. return $this->public_dependency;
  101. }
  102. public function setPublicDependency(&$var)
  103. {
  104. GPBUtil::checkRepeatedField($var, GPBType::INT32);
  105. $this->public_dependency = $var;
  106. $this->has_public_dependency = true;
  107. }
  108. public function hasPublicDependency()
  109. {
  110. return $this->has_public_dependency;
  111. }
  112. public function getWeakDependency()
  113. {
  114. return $this->weak_dependency;
  115. }
  116. public function setWeakDependency(&$var)
  117. {
  118. GPBUtil::checkRepeatedField($var, GPBType::INT32);
  119. $this->weak_dependency = $var;
  120. $this->has_weak_dependency = true;
  121. }
  122. public function hasWeakDependency()
  123. {
  124. return $this->has_weak_dependency;
  125. }
  126. public function getMessageType()
  127. {
  128. return $this->message_type;
  129. }
  130. public function setMessageType(&$var)
  131. {
  132. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto::class);
  133. $this->message_type = $var;
  134. $this->has_message_type = true;
  135. }
  136. public function hasMessageType()
  137. {
  138. return $this->has_message_type;
  139. }
  140. public function getEnumType()
  141. {
  142. return $this->enum_type;
  143. }
  144. public function setEnumType(&$var)
  145. {
  146. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\EnumDescriptorProto::class);
  147. $this->enum_type = $var;
  148. $this->has_enum_type = true;
  149. }
  150. public function hasEnumType()
  151. {
  152. return $this->has_enum_type;
  153. }
  154. public function getService()
  155. {
  156. return $this->service;
  157. }
  158. public function setService(&$var)
  159. {
  160. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\ServiceDescriptorProto::class);
  161. $this->service = $var;
  162. $this->has_service = true;
  163. }
  164. public function hasService()
  165. {
  166. return $this->has_service;
  167. }
  168. public function getExtension()
  169. {
  170. return $this->extension;
  171. }
  172. public function setExtension(&$var)
  173. {
  174. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
  175. $this->extension = $var;
  176. $this->has_extension = true;
  177. }
  178. public function hasExtension()
  179. {
  180. return $this->has_extension;
  181. }
  182. public function getOptions()
  183. {
  184. return $this->options;
  185. }
  186. public function setOptions(&$var)
  187. {
  188. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\FileOptions::class);
  189. $this->options = $var;
  190. $this->has_options = true;
  191. }
  192. public function hasOptions()
  193. {
  194. return $this->has_options;
  195. }
  196. public function getSourceCodeInfo()
  197. {
  198. return $this->source_code_info;
  199. }
  200. public function setSourceCodeInfo(&$var)
  201. {
  202. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\SourceCodeInfo::class);
  203. $this->source_code_info = $var;
  204. $this->has_source_code_info = true;
  205. }
  206. public function hasSourceCodeInfo()
  207. {
  208. return $this->has_source_code_info;
  209. }
  210. public function getSyntax()
  211. {
  212. return $this->syntax;
  213. }
  214. public function setSyntax($var)
  215. {
  216. GPBUtil::checkString($var, True);
  217. $this->syntax = $var;
  218. $this->has_syntax = true;
  219. }
  220. public function hasSyntax()
  221. {
  222. return $this->has_syntax;
  223. }
  224. }
  225. class DescriptorProto extends \Google\Protobuf\Internal\Message
  226. {
  227. private $name = '';
  228. private $has_name = false;
  229. private $field;
  230. private $has_field = false;
  231. private $extension;
  232. private $has_extension = false;
  233. private $nested_type;
  234. private $has_nested_type = false;
  235. private $enum_type;
  236. private $has_enum_type = false;
  237. private $extension_range;
  238. private $has_extension_range = false;
  239. private $oneof_decl;
  240. private $has_oneof_decl = false;
  241. private $options = null;
  242. private $has_options = false;
  243. private $reserved_range;
  244. private $has_reserved_range = false;
  245. private $reserved_name;
  246. private $has_reserved_name = false;
  247. public function getName()
  248. {
  249. return $this->name;
  250. }
  251. public function setName($var)
  252. {
  253. GPBUtil::checkString($var, True);
  254. $this->name = $var;
  255. $this->has_name = true;
  256. }
  257. public function hasName()
  258. {
  259. return $this->has_name;
  260. }
  261. public function getField()
  262. {
  263. return $this->field;
  264. }
  265. public function setField(&$var)
  266. {
  267. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
  268. $this->field = $var;
  269. $this->has_field = true;
  270. }
  271. public function hasField()
  272. {
  273. return $this->has_field;
  274. }
  275. public function getExtension()
  276. {
  277. return $this->extension;
  278. }
  279. public function setExtension(&$var)
  280. {
  281. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
  282. $this->extension = $var;
  283. $this->has_extension = true;
  284. }
  285. public function hasExtension()
  286. {
  287. return $this->has_extension;
  288. }
  289. public function getNestedType()
  290. {
  291. return $this->nested_type;
  292. }
  293. public function setNestedType(&$var)
  294. {
  295. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto::class);
  296. $this->nested_type = $var;
  297. $this->has_nested_type = true;
  298. }
  299. public function hasNestedType()
  300. {
  301. return $this->has_nested_type;
  302. }
  303. public function getEnumType()
  304. {
  305. return $this->enum_type;
  306. }
  307. public function setEnumType(&$var)
  308. {
  309. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\EnumDescriptorProto::class);
  310. $this->enum_type = $var;
  311. $this->has_enum_type = true;
  312. }
  313. public function hasEnumType()
  314. {
  315. return $this->has_enum_type;
  316. }
  317. public function getExtensionRange()
  318. {
  319. return $this->extension_range;
  320. }
  321. public function setExtensionRange(&$var)
  322. {
  323. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto_ExtensionRange::class);
  324. $this->extension_range = $var;
  325. $this->has_extension_range = true;
  326. }
  327. public function hasExtensionRange()
  328. {
  329. return $this->has_extension_range;
  330. }
  331. public function getOneofDecl()
  332. {
  333. return $this->oneof_decl;
  334. }
  335. public function setOneofDecl(&$var)
  336. {
  337. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\OneofDescriptorProto::class);
  338. $this->oneof_decl = $var;
  339. $this->has_oneof_decl = true;
  340. }
  341. public function hasOneofDecl()
  342. {
  343. return $this->has_oneof_decl;
  344. }
  345. public function getOptions()
  346. {
  347. return $this->options;
  348. }
  349. public function setOptions(&$var)
  350. {
  351. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MessageOptions::class);
  352. $this->options = $var;
  353. $this->has_options = true;
  354. }
  355. public function hasOptions()
  356. {
  357. return $this->has_options;
  358. }
  359. public function getReservedRange()
  360. {
  361. return $this->reserved_range;
  362. }
  363. public function setReservedRange(&$var)
  364. {
  365. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto_ReservedRange::class);
  366. $this->reserved_range = $var;
  367. $this->has_reserved_range = true;
  368. }
  369. public function hasReservedRange()
  370. {
  371. return $this->has_reserved_range;
  372. }
  373. public function getReservedName()
  374. {
  375. return $this->reserved_name;
  376. }
  377. public function setReservedName(&$var)
  378. {
  379. GPBUtil::checkRepeatedField($var, GPBType::STRING);
  380. $this->reserved_name = $var;
  381. $this->has_reserved_name = true;
  382. }
  383. public function hasReservedName()
  384. {
  385. return $this->has_reserved_name;
  386. }
  387. }
  388. class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message
  389. {
  390. private $start = 0;
  391. private $has_start = false;
  392. private $end = 0;
  393. private $has_end = false;
  394. public function getStart()
  395. {
  396. return $this->start;
  397. }
  398. public function setStart($var)
  399. {
  400. GPBUtil::checkInt32($var);
  401. $this->start = $var;
  402. $this->has_start = true;
  403. }
  404. public function hasStart()
  405. {
  406. return $this->has_start;
  407. }
  408. public function getEnd()
  409. {
  410. return $this->end;
  411. }
  412. public function setEnd($var)
  413. {
  414. GPBUtil::checkInt32($var);
  415. $this->end = $var;
  416. $this->has_end = true;
  417. }
  418. public function hasEnd()
  419. {
  420. return $this->has_end;
  421. }
  422. }
  423. class DescriptorProto_ReservedRange extends \Google\Protobuf\Internal\Message
  424. {
  425. private $start = 0;
  426. private $has_start = false;
  427. private $end = 0;
  428. private $has_end = false;
  429. public function getStart()
  430. {
  431. return $this->start;
  432. }
  433. public function setStart($var)
  434. {
  435. GPBUtil::checkInt32($var);
  436. $this->start = $var;
  437. $this->has_start = true;
  438. }
  439. public function hasStart()
  440. {
  441. return $this->has_start;
  442. }
  443. public function getEnd()
  444. {
  445. return $this->end;
  446. }
  447. public function setEnd($var)
  448. {
  449. GPBUtil::checkInt32($var);
  450. $this->end = $var;
  451. $this->has_end = true;
  452. }
  453. public function hasEnd()
  454. {
  455. return $this->has_end;
  456. }
  457. }
  458. class FieldDescriptorProto extends \Google\Protobuf\Internal\Message
  459. {
  460. private $name = '';
  461. private $has_name = false;
  462. private $number = 0;
  463. private $has_number = false;
  464. private $label = 0;
  465. private $has_label = false;
  466. private $type = 0;
  467. private $has_type = false;
  468. private $type_name = '';
  469. private $has_type_name = false;
  470. private $extendee = '';
  471. private $has_extendee = false;
  472. private $default_value = '';
  473. private $has_default_value = false;
  474. private $oneof_index = 0;
  475. private $has_oneof_index = false;
  476. private $json_name = '';
  477. private $has_json_name = false;
  478. private $options = null;
  479. private $has_options = false;
  480. public function getName()
  481. {
  482. return $this->name;
  483. }
  484. public function setName($var)
  485. {
  486. GPBUtil::checkString($var, True);
  487. $this->name = $var;
  488. $this->has_name = true;
  489. }
  490. public function hasName()
  491. {
  492. return $this->has_name;
  493. }
  494. public function getNumber()
  495. {
  496. return $this->number;
  497. }
  498. public function setNumber($var)
  499. {
  500. GPBUtil::checkInt32($var);
  501. $this->number = $var;
  502. $this->has_number = true;
  503. }
  504. public function hasNumber()
  505. {
  506. return $this->has_number;
  507. }
  508. public function getLabel()
  509. {
  510. return $this->label;
  511. }
  512. public function setLabel($var)
  513. {
  514. GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto_Label::class);
  515. $this->label = $var;
  516. $this->has_label = true;
  517. }
  518. public function hasLabel()
  519. {
  520. return $this->has_label;
  521. }
  522. public function getType()
  523. {
  524. return $this->type;
  525. }
  526. public function setType($var)
  527. {
  528. GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto_Type::class);
  529. $this->type = $var;
  530. $this->has_type = true;
  531. }
  532. public function hasType()
  533. {
  534. return $this->has_type;
  535. }
  536. public function getTypeName()
  537. {
  538. return $this->type_name;
  539. }
  540. public function setTypeName($var)
  541. {
  542. GPBUtil::checkString($var, True);
  543. $this->type_name = $var;
  544. $this->has_type_name = true;
  545. }
  546. public function hasTypeName()
  547. {
  548. return $this->has_type_name;
  549. }
  550. public function getExtendee()
  551. {
  552. return $this->extendee;
  553. }
  554. public function setExtendee($var)
  555. {
  556. GPBUtil::checkString($var, True);
  557. $this->extendee = $var;
  558. $this->has_extendee = true;
  559. }
  560. public function hasExtendee()
  561. {
  562. return $this->has_extendee;
  563. }
  564. public function getDefaultValue()
  565. {
  566. return $this->default_value;
  567. }
  568. public function setDefaultValue($var)
  569. {
  570. GPBUtil::checkString($var, True);
  571. $this->default_value = $var;
  572. $this->has_default_value = true;
  573. }
  574. public function hasDefaultValue()
  575. {
  576. return $this->has_default_value;
  577. }
  578. public function getOneofIndex()
  579. {
  580. return $this->oneof_index;
  581. }
  582. public function setOneofIndex($var)
  583. {
  584. GPBUtil::checkInt32($var);
  585. $this->oneof_index = $var;
  586. $this->has_oneof_index = true;
  587. }
  588. public function hasOneofIndex()
  589. {
  590. return $this->has_oneof_index;
  591. }
  592. public function getJsonName()
  593. {
  594. return $this->json_name;
  595. }
  596. public function setJsonName($var)
  597. {
  598. GPBUtil::checkString($var, True);
  599. $this->json_name = $var;
  600. $this->has_json_name = true;
  601. }
  602. public function hasJsonName()
  603. {
  604. return $this->has_json_name;
  605. }
  606. public function getOptions()
  607. {
  608. return $this->options;
  609. }
  610. public function setOptions(&$var)
  611. {
  612. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\FieldOptions::class);
  613. $this->options = $var;
  614. $this->has_options = true;
  615. }
  616. public function hasOptions()
  617. {
  618. return $this->has_options;
  619. }
  620. }
  621. class FieldDescriptorProto_Type
  622. {
  623. const TYPE_DOUBLE = 1;
  624. const TYPE_FLOAT = 2;
  625. const TYPE_INT64 = 3;
  626. const TYPE_UINT64 = 4;
  627. const TYPE_INT32 = 5;
  628. const TYPE_FIXED64 = 6;
  629. const TYPE_FIXED32 = 7;
  630. const TYPE_BOOL = 8;
  631. const TYPE_STRING = 9;
  632. const TYPE_GROUP = 10;
  633. const TYPE_MESSAGE = 11;
  634. const TYPE_BYTES = 12;
  635. const TYPE_UINT32 = 13;
  636. const TYPE_ENUM = 14;
  637. const TYPE_SFIXED32 = 15;
  638. const TYPE_SFIXED64 = 16;
  639. const TYPE_SINT32 = 17;
  640. const TYPE_SINT64 = 18;
  641. }
  642. class FieldDescriptorProto_Label
  643. {
  644. const LABEL_OPTIONAL = 1;
  645. const LABEL_REQUIRED = 2;
  646. const LABEL_REPEATED = 3;
  647. }
  648. class OneofDescriptorProto extends \Google\Protobuf\Internal\Message
  649. {
  650. private $name = '';
  651. private $has_name = false;
  652. private $options = null;
  653. private $has_options = false;
  654. public function getName()
  655. {
  656. return $this->name;
  657. }
  658. public function setName($var)
  659. {
  660. GPBUtil::checkString($var, True);
  661. $this->name = $var;
  662. $this->has_name = true;
  663. }
  664. public function hasName()
  665. {
  666. return $this->has_name;
  667. }
  668. public function getOptions()
  669. {
  670. return $this->options;
  671. }
  672. public function setOptions(&$var)
  673. {
  674. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\OneofOptions::class);
  675. $this->options = $var;
  676. $this->has_options = true;
  677. }
  678. public function hasOptions()
  679. {
  680. return $this->has_options;
  681. }
  682. }
  683. class EnumDescriptorProto extends \Google\Protobuf\Internal\Message
  684. {
  685. private $name = '';
  686. private $has_name = false;
  687. private $value;
  688. private $has_value = false;
  689. private $options = null;
  690. private $has_options = false;
  691. public function getName()
  692. {
  693. return $this->name;
  694. }
  695. public function setName($var)
  696. {
  697. GPBUtil::checkString($var, True);
  698. $this->name = $var;
  699. $this->has_name = true;
  700. }
  701. public function hasName()
  702. {
  703. return $this->has_name;
  704. }
  705. public function getValue()
  706. {
  707. return $this->value;
  708. }
  709. public function setValue(&$var)
  710. {
  711. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\EnumValueDescriptorProto::class);
  712. $this->value = $var;
  713. $this->has_value = true;
  714. }
  715. public function hasValue()
  716. {
  717. return $this->has_value;
  718. }
  719. public function getOptions()
  720. {
  721. return $this->options;
  722. }
  723. public function setOptions(&$var)
  724. {
  725. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\EnumOptions::class);
  726. $this->options = $var;
  727. $this->has_options = true;
  728. }
  729. public function hasOptions()
  730. {
  731. return $this->has_options;
  732. }
  733. }
  734. class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message
  735. {
  736. private $name = '';
  737. private $has_name = false;
  738. private $number = 0;
  739. private $has_number = false;
  740. private $options = null;
  741. private $has_options = false;
  742. public function getName()
  743. {
  744. return $this->name;
  745. }
  746. public function setName($var)
  747. {
  748. GPBUtil::checkString($var, True);
  749. $this->name = $var;
  750. $this->has_name = true;
  751. }
  752. public function hasName()
  753. {
  754. return $this->has_name;
  755. }
  756. public function getNumber()
  757. {
  758. return $this->number;
  759. }
  760. public function setNumber($var)
  761. {
  762. GPBUtil::checkInt32($var);
  763. $this->number = $var;
  764. $this->has_number = true;
  765. }
  766. public function hasNumber()
  767. {
  768. return $this->has_number;
  769. }
  770. public function getOptions()
  771. {
  772. return $this->options;
  773. }
  774. public function setOptions(&$var)
  775. {
  776. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\EnumValueOptions::class);
  777. $this->options = $var;
  778. $this->has_options = true;
  779. }
  780. public function hasOptions()
  781. {
  782. return $this->has_options;
  783. }
  784. }
  785. class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message
  786. {
  787. private $name = '';
  788. private $has_name = false;
  789. private $method;
  790. private $has_method = false;
  791. private $options = null;
  792. private $has_options = false;
  793. public function getName()
  794. {
  795. return $this->name;
  796. }
  797. public function setName($var)
  798. {
  799. GPBUtil::checkString($var, True);
  800. $this->name = $var;
  801. $this->has_name = true;
  802. }
  803. public function hasName()
  804. {
  805. return $this->has_name;
  806. }
  807. public function getMethod()
  808. {
  809. return $this->method;
  810. }
  811. public function setMethod(&$var)
  812. {
  813. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\MethodDescriptorProto::class);
  814. $this->method = $var;
  815. $this->has_method = true;
  816. }
  817. public function hasMethod()
  818. {
  819. return $this->has_method;
  820. }
  821. public function getOptions()
  822. {
  823. return $this->options;
  824. }
  825. public function setOptions(&$var)
  826. {
  827. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\ServiceOptions::class);
  828. $this->options = $var;
  829. $this->has_options = true;
  830. }
  831. public function hasOptions()
  832. {
  833. return $this->has_options;
  834. }
  835. }
  836. class MethodDescriptorProto extends \Google\Protobuf\Internal\Message
  837. {
  838. private $name = '';
  839. private $has_name = false;
  840. private $input_type = '';
  841. private $has_input_type = false;
  842. private $output_type = '';
  843. private $has_output_type = false;
  844. private $options = null;
  845. private $has_options = false;
  846. private $client_streaming = false;
  847. private $has_client_streaming = false;
  848. private $server_streaming = false;
  849. private $has_server_streaming = false;
  850. public function getName()
  851. {
  852. return $this->name;
  853. }
  854. public function setName($var)
  855. {
  856. GPBUtil::checkString($var, True);
  857. $this->name = $var;
  858. $this->has_name = true;
  859. }
  860. public function hasName()
  861. {
  862. return $this->has_name;
  863. }
  864. public function getInputType()
  865. {
  866. return $this->input_type;
  867. }
  868. public function setInputType($var)
  869. {
  870. GPBUtil::checkString($var, True);
  871. $this->input_type = $var;
  872. $this->has_input_type = true;
  873. }
  874. public function hasInputType()
  875. {
  876. return $this->has_input_type;
  877. }
  878. public function getOutputType()
  879. {
  880. return $this->output_type;
  881. }
  882. public function setOutputType($var)
  883. {
  884. GPBUtil::checkString($var, True);
  885. $this->output_type = $var;
  886. $this->has_output_type = true;
  887. }
  888. public function hasOutputType()
  889. {
  890. return $this->has_output_type;
  891. }
  892. public function getOptions()
  893. {
  894. return $this->options;
  895. }
  896. public function setOptions(&$var)
  897. {
  898. GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MethodOptions::class);
  899. $this->options = $var;
  900. $this->has_options = true;
  901. }
  902. public function hasOptions()
  903. {
  904. return $this->has_options;
  905. }
  906. public function getClientStreaming()
  907. {
  908. return $this->client_streaming;
  909. }
  910. public function setClientStreaming($var)
  911. {
  912. GPBUtil::checkBool($var);
  913. $this->client_streaming = $var;
  914. $this->has_client_streaming = true;
  915. }
  916. public function hasClientStreaming()
  917. {
  918. return $this->has_client_streaming;
  919. }
  920. public function getServerStreaming()
  921. {
  922. return $this->server_streaming;
  923. }
  924. public function setServerStreaming($var)
  925. {
  926. GPBUtil::checkBool($var);
  927. $this->server_streaming = $var;
  928. $this->has_server_streaming = true;
  929. }
  930. public function hasServerStreaming()
  931. {
  932. return $this->has_server_streaming;
  933. }
  934. }
  935. class FileOptions extends \Google\Protobuf\Internal\Message
  936. {
  937. private $java_package = '';
  938. private $has_java_package = false;
  939. private $java_outer_classname = '';
  940. private $has_java_outer_classname = false;
  941. private $java_multiple_files = false;
  942. private $has_java_multiple_files = false;
  943. private $java_generate_equals_and_hash = false;
  944. private $has_java_generate_equals_and_hash = false;
  945. private $java_string_check_utf8 = false;
  946. private $has_java_string_check_utf8 = false;
  947. private $optimize_for = 0;
  948. private $has_optimize_for = false;
  949. private $go_package = '';
  950. private $has_go_package = false;
  951. private $cc_generic_services = false;
  952. private $has_cc_generic_services = false;
  953. private $java_generic_services = false;
  954. private $has_java_generic_services = false;
  955. private $py_generic_services = false;
  956. private $has_py_generic_services = false;
  957. private $deprecated = false;
  958. private $has_deprecated = false;
  959. private $cc_enable_arenas = false;
  960. private $has_cc_enable_arenas = false;
  961. private $objc_class_prefix = '';
  962. private $has_objc_class_prefix = false;
  963. private $csharp_namespace = '';
  964. private $has_csharp_namespace = false;
  965. private $uninterpreted_option;
  966. private $has_uninterpreted_option = false;
  967. public function getJavaPackage()
  968. {
  969. return $this->java_package;
  970. }
  971. public function setJavaPackage($var)
  972. {
  973. GPBUtil::checkString($var, True);
  974. $this->java_package = $var;
  975. $this->has_java_package = true;
  976. }
  977. public function hasJavaPackage()
  978. {
  979. return $this->has_java_package;
  980. }
  981. public function getJavaOuterClassname()
  982. {
  983. return $this->java_outer_classname;
  984. }
  985. public function setJavaOuterClassname($var)
  986. {
  987. GPBUtil::checkString($var, True);
  988. $this->java_outer_classname = $var;
  989. $this->has_java_outer_classname = true;
  990. }
  991. public function hasJavaOuterClassname()
  992. {
  993. return $this->has_java_outer_classname;
  994. }
  995. public function getJavaMultipleFiles()
  996. {
  997. return $this->java_multiple_files;
  998. }
  999. public function setJavaMultipleFiles($var)
  1000. {
  1001. GPBUtil::checkBool($var);
  1002. $this->java_multiple_files = $var;
  1003. $this->has_java_multiple_files = true;
  1004. }
  1005. public function hasJavaMultipleFiles()
  1006. {
  1007. return $this->has_java_multiple_files;
  1008. }
  1009. public function getJavaGenerateEqualsAndHash()
  1010. {
  1011. return $this->java_generate_equals_and_hash;
  1012. }
  1013. public function setJavaGenerateEqualsAndHash($var)
  1014. {
  1015. GPBUtil::checkBool($var);
  1016. $this->java_generate_equals_and_hash = $var;
  1017. $this->has_java_generate_equals_and_hash = true;
  1018. }
  1019. public function hasJavaGenerateEqualsAndHash()
  1020. {
  1021. return $this->has_java_generate_equals_and_hash;
  1022. }
  1023. public function getJavaStringCheckUtf8()
  1024. {
  1025. return $this->java_string_check_utf8;
  1026. }
  1027. public function setJavaStringCheckUtf8($var)
  1028. {
  1029. GPBUtil::checkBool($var);
  1030. $this->java_string_check_utf8 = $var;
  1031. $this->has_java_string_check_utf8 = true;
  1032. }
  1033. public function hasJavaStringCheckUtf8()
  1034. {
  1035. return $this->has_java_string_check_utf8;
  1036. }
  1037. public function getOptimizeFor()
  1038. {
  1039. return $this->optimize_for;
  1040. }
  1041. public function setOptimizeFor($var)
  1042. {
  1043. GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FileOptions_OptimizeMode::class);
  1044. $this->optimize_for = $var;
  1045. $this->has_optimize_for = true;
  1046. }
  1047. public function hasOptimizeFor()
  1048. {
  1049. return $this->has_optimize_for;
  1050. }
  1051. public function getGoPackage()
  1052. {
  1053. return $this->go_package;
  1054. }
  1055. public function setGoPackage($var)
  1056. {
  1057. GPBUtil::checkString($var, True);
  1058. $this->go_package = $var;
  1059. $this->has_go_package = true;
  1060. }
  1061. public function hasGoPackage()
  1062. {
  1063. return $this->has_go_package;
  1064. }
  1065. public function getCcGenericServices()
  1066. {
  1067. return $this->cc_generic_services;
  1068. }
  1069. public function setCcGenericServices($var)
  1070. {
  1071. GPBUtil::checkBool($var);
  1072. $this->cc_generic_services = $var;
  1073. $this->has_cc_generic_services = true;
  1074. }
  1075. public function hasCcGenericServices()
  1076. {
  1077. return $this->has_cc_generic_services;
  1078. }
  1079. public function getJavaGenericServices()
  1080. {
  1081. return $this->java_generic_services;
  1082. }
  1083. public function setJavaGenericServices($var)
  1084. {
  1085. GPBUtil::checkBool($var);
  1086. $this->java_generic_services = $var;
  1087. $this->has_java_generic_services = true;
  1088. }
  1089. public function hasJavaGenericServices()
  1090. {
  1091. return $this->has_java_generic_services;
  1092. }
  1093. public function getPyGenericServices()
  1094. {
  1095. return $this->py_generic_services;
  1096. }
  1097. public function setPyGenericServices($var)
  1098. {
  1099. GPBUtil::checkBool($var);
  1100. $this->py_generic_services = $var;
  1101. $this->has_py_generic_services = true;
  1102. }
  1103. public function hasPyGenericServices()
  1104. {
  1105. return $this->has_py_generic_services;
  1106. }
  1107. public function getDeprecated()
  1108. {
  1109. return $this->deprecated;
  1110. }
  1111. public function setDeprecated($var)
  1112. {
  1113. GPBUtil::checkBool($var);
  1114. $this->deprecated = $var;
  1115. $this->has_deprecated = true;
  1116. }
  1117. public function hasDeprecated()
  1118. {
  1119. return $this->has_deprecated;
  1120. }
  1121. public function getCcEnableArenas()
  1122. {
  1123. return $this->cc_enable_arenas;
  1124. }
  1125. public function setCcEnableArenas($var)
  1126. {
  1127. GPBUtil::checkBool($var);
  1128. $this->cc_enable_arenas = $var;
  1129. $this->has_cc_enable_arenas = true;
  1130. }
  1131. public function hasCcEnableArenas()
  1132. {
  1133. return $this->has_cc_enable_arenas;
  1134. }
  1135. public function getObjcClassPrefix()
  1136. {
  1137. return $this->objc_class_prefix;
  1138. }
  1139. public function setObjcClassPrefix($var)
  1140. {
  1141. GPBUtil::checkString($var, True);
  1142. $this->objc_class_prefix = $var;
  1143. $this->has_objc_class_prefix = true;
  1144. }
  1145. public function hasObjcClassPrefix()
  1146. {
  1147. return $this->has_objc_class_prefix;
  1148. }
  1149. public function getCsharpNamespace()
  1150. {
  1151. return $this->csharp_namespace;
  1152. }
  1153. public function setCsharpNamespace($var)
  1154. {
  1155. GPBUtil::checkString($var, True);
  1156. $this->csharp_namespace = $var;
  1157. $this->has_csharp_namespace = true;
  1158. }
  1159. public function hasCsharpNamespace()
  1160. {
  1161. return $this->has_csharp_namespace;
  1162. }
  1163. public function getUninterpretedOption()
  1164. {
  1165. return $this->uninterpreted_option;
  1166. }
  1167. public function setUninterpretedOption(&$var)
  1168. {
  1169. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  1170. $this->uninterpreted_option = $var;
  1171. $this->has_uninterpreted_option = true;
  1172. }
  1173. public function hasUninterpretedOption()
  1174. {
  1175. return $this->has_uninterpreted_option;
  1176. }
  1177. }
  1178. class FileOptions_OptimizeMode
  1179. {
  1180. const SPEED = 1;
  1181. const CODE_SIZE = 2;
  1182. const LITE_RUNTIME = 3;
  1183. }
  1184. class MessageOptions extends \Google\Protobuf\Internal\Message
  1185. {
  1186. private $message_set_wire_format = false;
  1187. private $has_message_set_wire_format = false;
  1188. private $no_standard_descriptor_accessor = false;
  1189. private $has_no_standard_descriptor_accessor = false;
  1190. private $deprecated = false;
  1191. private $has_deprecated = false;
  1192. private $map_entry = false;
  1193. private $has_map_entry = false;
  1194. private $uninterpreted_option;
  1195. private $has_uninterpreted_option = false;
  1196. public function getMessageSetWireFormat()
  1197. {
  1198. return $this->message_set_wire_format;
  1199. }
  1200. public function setMessageSetWireFormat($var)
  1201. {
  1202. GPBUtil::checkBool($var);
  1203. $this->message_set_wire_format = $var;
  1204. $this->has_message_set_wire_format = true;
  1205. }
  1206. public function hasMessageSetWireFormat()
  1207. {
  1208. return $this->has_message_set_wire_format;
  1209. }
  1210. public function getNoStandardDescriptorAccessor()
  1211. {
  1212. return $this->no_standard_descriptor_accessor;
  1213. }
  1214. public function setNoStandardDescriptorAccessor($var)
  1215. {
  1216. GPBUtil::checkBool($var);
  1217. $this->no_standard_descriptor_accessor = $var;
  1218. $this->has_no_standard_descriptor_accessor = true;
  1219. }
  1220. public function hasNoStandardDescriptorAccessor()
  1221. {
  1222. return $this->has_no_standard_descriptor_accessor;
  1223. }
  1224. public function getDeprecated()
  1225. {
  1226. return $this->deprecated;
  1227. }
  1228. public function setDeprecated($var)
  1229. {
  1230. GPBUtil::checkBool($var);
  1231. $this->deprecated = $var;
  1232. $this->has_deprecated = true;
  1233. }
  1234. public function hasDeprecated()
  1235. {
  1236. return $this->has_deprecated;
  1237. }
  1238. public function getMapEntry()
  1239. {
  1240. return $this->map_entry;
  1241. }
  1242. public function setMapEntry($var)
  1243. {
  1244. GPBUtil::checkBool($var);
  1245. $this->map_entry = $var;
  1246. $this->has_map_entry = true;
  1247. }
  1248. public function hasMapEntry()
  1249. {
  1250. return $this->has_map_entry;
  1251. }
  1252. public function getUninterpretedOption()
  1253. {
  1254. return $this->uninterpreted_option;
  1255. }
  1256. public function setUninterpretedOption(&$var)
  1257. {
  1258. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  1259. $this->uninterpreted_option = $var;
  1260. $this->has_uninterpreted_option = true;
  1261. }
  1262. public function hasUninterpretedOption()
  1263. {
  1264. return $this->has_uninterpreted_option;
  1265. }
  1266. }
  1267. class FieldOptions extends \Google\Protobuf\Internal\Message
  1268. {
  1269. private $ctype = 0;
  1270. private $has_ctype = false;
  1271. private $packed = false;
  1272. private $has_packed = false;
  1273. private $jstype = 0;
  1274. private $has_jstype = false;
  1275. private $lazy = false;
  1276. private $has_lazy = false;
  1277. private $deprecated = false;
  1278. private $has_deprecated = false;
  1279. private $weak = false;
  1280. private $has_weak = false;
  1281. private $uninterpreted_option;
  1282. private $has_uninterpreted_option = false;
  1283. public function getCtype()
  1284. {
  1285. return $this->ctype;
  1286. }
  1287. public function setCtype($var)
  1288. {
  1289. GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldOptions_CType::class);
  1290. $this->ctype = $var;
  1291. $this->has_ctype = true;
  1292. }
  1293. public function hasCtype()
  1294. {
  1295. return $this->has_ctype;
  1296. }
  1297. public function getPacked()
  1298. {
  1299. return $this->packed;
  1300. }
  1301. public function setPacked($var)
  1302. {
  1303. GPBUtil::checkBool($var);
  1304. $this->packed = $var;
  1305. $this->has_packed = true;
  1306. }
  1307. public function hasPacked()
  1308. {
  1309. return $this->has_packed;
  1310. }
  1311. public function getJstype()
  1312. {
  1313. return $this->jstype;
  1314. }
  1315. public function setJstype($var)
  1316. {
  1317. GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldOptions_JSType::class);
  1318. $this->jstype = $var;
  1319. $this->has_jstype = true;
  1320. }
  1321. public function hasJstype()
  1322. {
  1323. return $this->has_jstype;
  1324. }
  1325. public function getLazy()
  1326. {
  1327. return $this->lazy;
  1328. }
  1329. public function setLazy($var)
  1330. {
  1331. GPBUtil::checkBool($var);
  1332. $this->lazy = $var;
  1333. $this->has_lazy = true;
  1334. }
  1335. public function hasLazy()
  1336. {
  1337. return $this->has_lazy;
  1338. }
  1339. public function getDeprecated()
  1340. {
  1341. return $this->deprecated;
  1342. }
  1343. public function setDeprecated($var)
  1344. {
  1345. GPBUtil::checkBool($var);
  1346. $this->deprecated = $var;
  1347. $this->has_deprecated = true;
  1348. }
  1349. public function hasDeprecated()
  1350. {
  1351. return $this->has_deprecated;
  1352. }
  1353. public function getWeak()
  1354. {
  1355. return $this->weak;
  1356. }
  1357. public function setWeak($var)
  1358. {
  1359. GPBUtil::checkBool($var);
  1360. $this->weak = $var;
  1361. $this->has_weak = true;
  1362. }
  1363. public function hasWeak()
  1364. {
  1365. return $this->has_weak;
  1366. }
  1367. public function getUninterpretedOption()
  1368. {
  1369. return $this->uninterpreted_option;
  1370. }
  1371. public function setUninterpretedOption(&$var)
  1372. {
  1373. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  1374. $this->uninterpreted_option = $var;
  1375. $this->has_uninterpreted_option = true;
  1376. }
  1377. public function hasUninterpretedOption()
  1378. {
  1379. return $this->has_uninterpreted_option;
  1380. }
  1381. }
  1382. class FieldOptions_CType
  1383. {
  1384. const STRING = 0;
  1385. const CORD = 1;
  1386. const STRING_PIECE = 2;
  1387. }
  1388. class FieldOptions_JSType
  1389. {
  1390. const JS_NORMAL = 0;
  1391. const JS_STRING = 1;
  1392. const JS_NUMBER = 2;
  1393. }
  1394. class OneofOptions extends \Google\Protobuf\Internal\Message
  1395. {
  1396. private $uninterpreted_option;
  1397. private $has_uninterpreted_option = false;
  1398. public function getUninterpretedOption()
  1399. {
  1400. return $this->uninterpreted_option;
  1401. }
  1402. public function setUninterpretedOption(&$var)
  1403. {
  1404. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  1405. $this->uninterpreted_option = $var;
  1406. $this->has_uninterpreted_option = true;
  1407. }
  1408. public function hasUninterpretedOption()
  1409. {
  1410. return $this->has_uninterpreted_option;
  1411. }
  1412. }
  1413. class EnumOptions extends \Google\Protobuf\Internal\Message
  1414. {
  1415. private $allow_alias = false;
  1416. private $has_allow_alias = false;
  1417. private $deprecated = false;
  1418. private $has_deprecated = false;
  1419. private $uninterpreted_option;
  1420. private $has_uninterpreted_option = false;
  1421. public function getAllowAlias()
  1422. {
  1423. return $this->allow_alias;
  1424. }
  1425. public function setAllowAlias($var)
  1426. {
  1427. GPBUtil::checkBool($var);
  1428. $this->allow_alias = $var;
  1429. $this->has_allow_alias = true;
  1430. }
  1431. public function hasAllowAlias()
  1432. {
  1433. return $this->has_allow_alias;
  1434. }
  1435. public function getDeprecated()
  1436. {
  1437. return $this->deprecated;
  1438. }
  1439. public function setDeprecated($var)
  1440. {
  1441. GPBUtil::checkBool($var);
  1442. $this->deprecated = $var;
  1443. $this->has_deprecated = true;
  1444. }
  1445. public function hasDeprecated()
  1446. {
  1447. return $this->has_deprecated;
  1448. }
  1449. public function getUninterpretedOption()
  1450. {
  1451. return $this->uninterpreted_option;
  1452. }
  1453. public function setUninterpretedOption(&$var)
  1454. {
  1455. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  1456. $this->uninterpreted_option = $var;
  1457. $this->has_uninterpreted_option = true;
  1458. }
  1459. public function hasUninterpretedOption()
  1460. {
  1461. return $this->has_uninterpreted_option;
  1462. }
  1463. }
  1464. class EnumValueOptions extends \Google\Protobuf\Internal\Message
  1465. {
  1466. private $deprecated = false;
  1467. private $has_deprecated = false;
  1468. private $uninterpreted_option;
  1469. private $has_uninterpreted_option = false;
  1470. public function getDeprecated()
  1471. {
  1472. return $this->deprecated;
  1473. }
  1474. public function setDeprecated($var)
  1475. {
  1476. GPBUtil::checkBool($var);
  1477. $this->deprecated = $var;
  1478. $this->has_deprecated = true;
  1479. }
  1480. public function hasDeprecated()
  1481. {
  1482. return $this->has_deprecated;
  1483. }
  1484. public function getUninterpretedOption()
  1485. {
  1486. return $this->uninterpreted_option;
  1487. }
  1488. public function setUninterpretedOption(&$var)
  1489. {
  1490. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  1491. $this->uninterpreted_option = $var;
  1492. $this->has_uninterpreted_option = true;
  1493. }
  1494. public function hasUninterpretedOption()
  1495. {
  1496. return $this->has_uninterpreted_option;
  1497. }
  1498. }
  1499. class ServiceOptions extends \Google\Protobuf\Internal\Message
  1500. {
  1501. private $deprecated = false;
  1502. private $has_deprecated = false;
  1503. private $uninterpreted_option;
  1504. private $has_uninterpreted_option = false;
  1505. public function getDeprecated()
  1506. {
  1507. return $this->deprecated;
  1508. }
  1509. public function setDeprecated($var)
  1510. {
  1511. GPBUtil::checkBool($var);
  1512. $this->deprecated = $var;
  1513. $this->has_deprecated = true;
  1514. }
  1515. public function hasDeprecated()
  1516. {
  1517. return $this->has_deprecated;
  1518. }
  1519. public function getUninterpretedOption()
  1520. {
  1521. return $this->uninterpreted_option;
  1522. }
  1523. public function setUninterpretedOption(&$var)
  1524. {
  1525. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  1526. $this->uninterpreted_option = $var;
  1527. $this->has_uninterpreted_option = true;
  1528. }
  1529. public function hasUninterpretedOption()
  1530. {
  1531. return $this->has_uninterpreted_option;
  1532. }
  1533. }
  1534. class MethodOptions extends \Google\Protobuf\Internal\Message
  1535. {
  1536. private $deprecated = false;
  1537. private $has_deprecated = false;
  1538. private $uninterpreted_option;
  1539. private $has_uninterpreted_option = false;
  1540. public function getDeprecated()
  1541. {
  1542. return $this->deprecated;
  1543. }
  1544. public function setDeprecated($var)
  1545. {
  1546. GPBUtil::checkBool($var);
  1547. $this->deprecated = $var;
  1548. $this->has_deprecated = true;
  1549. }
  1550. public function hasDeprecated()
  1551. {
  1552. return $this->has_deprecated;
  1553. }
  1554. public function getUninterpretedOption()
  1555. {
  1556. return $this->uninterpreted_option;
  1557. }
  1558. public function setUninterpretedOption(&$var)
  1559. {
  1560. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  1561. $this->uninterpreted_option = $var;
  1562. $this->has_uninterpreted_option = true;
  1563. }
  1564. public function hasUninterpretedOption()
  1565. {
  1566. return $this->has_uninterpreted_option;
  1567. }
  1568. }
  1569. class UninterpretedOption extends \Google\Protobuf\Internal\Message
  1570. {
  1571. private $name;
  1572. private $has_name = false;
  1573. private $identifier_value = '';
  1574. private $has_identifier_value = false;
  1575. private $positive_int_value = 0;
  1576. private $has_positive_int_value = false;
  1577. private $negative_int_value = 0;
  1578. private $has_negative_int_value = false;
  1579. private $double_value = 0.0;
  1580. private $has_double_value = false;
  1581. private $string_value = '';
  1582. private $has_string_value = false;
  1583. private $aggregate_value = '';
  1584. private $has_aggregate_value = false;
  1585. public function getName()
  1586. {
  1587. return $this->name;
  1588. }
  1589. public function setName(&$var)
  1590. {
  1591. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption_NamePart::class);
  1592. $this->name = $var;
  1593. $this->has_name = true;
  1594. }
  1595. public function hasName()
  1596. {
  1597. return $this->has_name;
  1598. }
  1599. public function getIdentifierValue()
  1600. {
  1601. return $this->identifier_value;
  1602. }
  1603. public function setIdentifierValue($var)
  1604. {
  1605. GPBUtil::checkString($var, True);
  1606. $this->identifier_value = $var;
  1607. $this->has_identifier_value = true;
  1608. }
  1609. public function hasIdentifierValue()
  1610. {
  1611. return $this->has_identifier_value;
  1612. }
  1613. public function getPositiveIntValue()
  1614. {
  1615. return $this->positive_int_value;
  1616. }
  1617. public function setPositiveIntValue($var)
  1618. {
  1619. GPBUtil::checkUint64($var);
  1620. $this->positive_int_value = $var;
  1621. $this->has_positive_int_value = true;
  1622. }
  1623. public function hasPositiveIntValue()
  1624. {
  1625. return $this->has_positive_int_value;
  1626. }
  1627. public function getNegativeIntValue()
  1628. {
  1629. return $this->negative_int_value;
  1630. }
  1631. public function setNegativeIntValue($var)
  1632. {
  1633. GPBUtil::checkInt64($var);
  1634. $this->negative_int_value = $var;
  1635. $this->has_negative_int_value = true;
  1636. }
  1637. public function hasNegativeIntValue()
  1638. {
  1639. return $this->has_negative_int_value;
  1640. }
  1641. public function getDoubleValue()
  1642. {
  1643. return $this->double_value;
  1644. }
  1645. public function setDoubleValue($var)
  1646. {
  1647. GPBUtil::checkDouble($var);
  1648. $this->double_value = $var;
  1649. $this->has_double_value = true;
  1650. }
  1651. public function hasDoubleValue()
  1652. {
  1653. return $this->has_double_value;
  1654. }
  1655. public function getStringValue()
  1656. {
  1657. return $this->string_value;
  1658. }
  1659. public function setStringValue($var)
  1660. {
  1661. GPBUtil::checkString($var, False);
  1662. $this->string_value = $var;
  1663. $this->has_string_value = true;
  1664. }
  1665. public function hasStringValue()
  1666. {
  1667. return $this->has_string_value;
  1668. }
  1669. public function getAggregateValue()
  1670. {
  1671. return $this->aggregate_value;
  1672. }
  1673. public function setAggregateValue($var)
  1674. {
  1675. GPBUtil::checkString($var, True);
  1676. $this->aggregate_value = $var;
  1677. $this->has_aggregate_value = true;
  1678. }
  1679. public function hasAggregateValue()
  1680. {
  1681. return $this->has_aggregate_value;
  1682. }
  1683. }
  1684. class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message
  1685. {
  1686. private $name_part = '';
  1687. private $has_name_part = false;
  1688. private $is_extension = false;
  1689. private $has_is_extension = false;
  1690. public function getNamePart()
  1691. {
  1692. return $this->name_part;
  1693. }
  1694. public function setNamePart($var)
  1695. {
  1696. GPBUtil::checkString($var, True);
  1697. $this->name_part = $var;
  1698. $this->has_name_part = true;
  1699. }
  1700. public function hasNamePart()
  1701. {
  1702. return $this->has_name_part;
  1703. }
  1704. public function getIsExtension()
  1705. {
  1706. return $this->is_extension;
  1707. }
  1708. public function setIsExtension($var)
  1709. {
  1710. GPBUtil::checkBool($var);
  1711. $this->is_extension = $var;
  1712. $this->has_is_extension = true;
  1713. }
  1714. public function hasIsExtension()
  1715. {
  1716. return $this->has_is_extension;
  1717. }
  1718. }
  1719. class SourceCodeInfo extends \Google\Protobuf\Internal\Message
  1720. {
  1721. private $location;
  1722. private $has_location = false;
  1723. public function getLocation()
  1724. {
  1725. return $this->location;
  1726. }
  1727. public function setLocation(&$var)
  1728. {
  1729. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\SourceCodeInfo_Location::class);
  1730. $this->location = $var;
  1731. $this->has_location = true;
  1732. }
  1733. public function hasLocation()
  1734. {
  1735. return $this->has_location;
  1736. }
  1737. }
  1738. class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message
  1739. {
  1740. private $path;
  1741. private $has_path = false;
  1742. private $span;
  1743. private $has_span = false;
  1744. private $leading_comments = '';
  1745. private $has_leading_comments = false;
  1746. private $trailing_comments = '';
  1747. private $has_trailing_comments = false;
  1748. private $leading_detached_comments;
  1749. private $has_leading_detached_comments = false;
  1750. public function getPath()
  1751. {
  1752. return $this->path;
  1753. }
  1754. public function setPath(&$var)
  1755. {
  1756. GPBUtil::checkRepeatedField($var, GPBType::INT32);
  1757. $this->path = $var;
  1758. $this->has_path = true;
  1759. }
  1760. public function hasPath()
  1761. {
  1762. return $this->has_path;
  1763. }
  1764. public function getSpan()
  1765. {
  1766. return $this->span;
  1767. }
  1768. public function setSpan(&$var)
  1769. {
  1770. GPBUtil::checkRepeatedField($var, GPBType::INT32);
  1771. $this->span = $var;
  1772. $this->has_span = true;
  1773. }
  1774. public function hasSpan()
  1775. {
  1776. return $this->has_span;
  1777. }
  1778. public function getLeadingComments()
  1779. {
  1780. return $this->leading_comments;
  1781. }
  1782. public function setLeadingComments($var)
  1783. {
  1784. GPBUtil::checkString($var, True);
  1785. $this->leading_comments = $var;
  1786. $this->has_leading_comments = true;
  1787. }
  1788. public function hasLeadingComments()
  1789. {
  1790. return $this->has_leading_comments;
  1791. }
  1792. public function getTrailingComments()
  1793. {
  1794. return $this->trailing_comments;
  1795. }
  1796. public function setTrailingComments($var)
  1797. {
  1798. GPBUtil::checkString($var, True);
  1799. $this->trailing_comments = $var;
  1800. $this->has_trailing_comments = true;
  1801. }
  1802. public function hasTrailingComments()
  1803. {
  1804. return $this->has_trailing_comments;
  1805. }
  1806. public function getLeadingDetachedComments()
  1807. {
  1808. return $this->leading_detached_comments;
  1809. }
  1810. public function setLeadingDetachedComments(&$var)
  1811. {
  1812. GPBUtil::checkRepeatedField($var, GPBType::STRING);
  1813. $this->leading_detached_comments = $var;
  1814. $this->has_leading_detached_comments = true;
  1815. }
  1816. public function hasLeadingDetachedComments()
  1817. {
  1818. return $this->has_leading_detached_comments;
  1819. }
  1820. }
  1821. class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message
  1822. {
  1823. private $annotation;
  1824. private $has_annotation = false;
  1825. public function getAnnotation()
  1826. {
  1827. return $this->annotation;
  1828. }
  1829. public function setAnnotation(&$var)
  1830. {
  1831. GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Internal\GeneratedCodeInfo_Annotation::class);
  1832. $this->annotation = $var;
  1833. $this->has_annotation = true;
  1834. }
  1835. public function hasAnnotation()
  1836. {
  1837. return $this->has_annotation;
  1838. }
  1839. }
  1840. class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message
  1841. {
  1842. private $path;
  1843. private $has_path = false;
  1844. private $source_file = '';
  1845. private $has_source_file = false;
  1846. private $begin = 0;
  1847. private $has_begin = false;
  1848. private $end = 0;
  1849. private $has_end = false;
  1850. public function getPath()
  1851. {
  1852. return $this->path;
  1853. }
  1854. public function setPath(&$var)
  1855. {
  1856. GPBUtil::checkRepeatedField($var, GPBType::INT32);
  1857. $this->path = $var;
  1858. $this->has_path = true;
  1859. }
  1860. public function hasPath()
  1861. {
  1862. return $this->has_path;
  1863. }
  1864. public function getSourceFile()
  1865. {
  1866. return $this->source_file;
  1867. }
  1868. public function setSourceFile($var)
  1869. {
  1870. GPBUtil::checkString($var, True);
  1871. $this->source_file = $var;
  1872. $this->has_source_file = true;
  1873. }
  1874. public function hasSourceFile()
  1875. {
  1876. return $this->has_source_file;
  1877. }
  1878. public function getBegin()
  1879. {
  1880. return $this->begin;
  1881. }
  1882. public function setBegin($var)
  1883. {
  1884. GPBUtil::checkInt32($var);
  1885. $this->begin = $var;
  1886. $this->has_begin = true;
  1887. }
  1888. public function hasBegin()
  1889. {
  1890. return $this->has_begin;
  1891. }
  1892. public function getEnd()
  1893. {
  1894. return $this->end;
  1895. }
  1896. public function setEnd($var)
  1897. {
  1898. GPBUtil::checkInt32($var);
  1899. $this->end = $var;
  1900. $this->has_end = true;
  1901. }
  1902. public function hasEnd()
  1903. {
  1904. return $this->has_end;
  1905. }
  1906. }
  1907. $pool = DescriptorPool::getGeneratedPool();
  1908. $pool->addMessage('google.protobuf.internal.FileDescriptorSet', FileDescriptorSet::class)
  1909. ->repeated('file', GPBType::MESSAGE, 1, 'google.protobuf.internal.FileDescriptorProto')
  1910. ->finalizeToPool();
  1911. $pool->addMessage('google.protobuf.internal.FileDescriptorProto', FileDescriptorProto::class)
  1912. ->optional('name', GPBType::STRING, 1)
  1913. ->optional('package', GPBType::STRING, 2)
  1914. ->repeated('dependency', GPBType::STRING, 3)
  1915. ->repeated('public_dependency', GPBType::INT32, 10)
  1916. ->repeated('weak_dependency', GPBType::INT32, 11)
  1917. ->repeated('message_type', GPBType::MESSAGE, 4, 'google.protobuf.internal.DescriptorProto')
  1918. ->repeated('enum_type', GPBType::MESSAGE, 5, 'google.protobuf.internal.EnumDescriptorProto')
  1919. ->repeated('service', GPBType::MESSAGE, 6, 'google.protobuf.internal.ServiceDescriptorProto')
  1920. ->repeated('extension', GPBType::MESSAGE, 7, 'google.protobuf.internal.FieldDescriptorProto')
  1921. ->optional('options', GPBType::MESSAGE, 8, 'google.protobuf.internal.FileOptions')
  1922. ->optional('source_code_info', GPBType::MESSAGE, 9, 'google.protobuf.internal.SourceCodeInfo')
  1923. ->optional('syntax', GPBType::STRING, 12)
  1924. ->finalizeToPool();
  1925. $pool->addMessage('google.protobuf.internal.DescriptorProto', DescriptorProto::class)
  1926. ->optional('name', GPBType::STRING, 1)
  1927. ->repeated('field', GPBType::MESSAGE, 2, 'google.protobuf.internal.FieldDescriptorProto')
  1928. ->repeated('extension', GPBType::MESSAGE, 6, 'google.protobuf.internal.FieldDescriptorProto')
  1929. ->repeated('nested_type', GPBType::MESSAGE, 3, 'google.protobuf.internal.DescriptorProto')
  1930. ->repeated('enum_type', GPBType::MESSAGE, 4, 'google.protobuf.internal.EnumDescriptorProto')
  1931. ->repeated('extension_range', GPBType::MESSAGE, 5, 'google.protobuf.internal.DescriptorProto.ExtensionRange')
  1932. ->repeated('oneof_decl', GPBType::MESSAGE, 8, 'google.protobuf.internal.OneofDescriptorProto')
  1933. ->optional('options', GPBType::MESSAGE, 7, 'google.protobuf.internal.MessageOptions')
  1934. ->repeated('reserved_range', GPBType::MESSAGE, 9, 'google.protobuf.internal.DescriptorProto.ReservedRange')
  1935. ->repeated('reserved_name', GPBType::STRING, 10)
  1936. ->finalizeToPool();
  1937. $pool->addMessage('google.protobuf.internal.DescriptorProto.ExtensionRange', DescriptorProto_ExtensionRange::class)
  1938. ->optional('start', GPBType::INT32, 1)
  1939. ->optional('end', GPBType::INT32, 2)
  1940. ->finalizeToPool();
  1941. $pool->addMessage('google.protobuf.internal.DescriptorProto.ReservedRange', DescriptorProto_ReservedRange::class)
  1942. ->optional('start', GPBType::INT32, 1)
  1943. ->optional('end', GPBType::INT32, 2)
  1944. ->finalizeToPool();
  1945. $pool->addMessage('google.protobuf.internal.FieldDescriptorProto', FieldDescriptorProto::class)
  1946. ->optional('name', GPBType::STRING, 1)
  1947. ->optional('number', GPBType::INT32, 3)
  1948. ->optional('label', GPBType::ENUM, 4, 'google.protobuf.internal.FieldDescriptorProto.Label')
  1949. ->optional('type', GPBType::ENUM, 5, 'google.protobuf.internal.FieldDescriptorProto.Type')
  1950. ->optional('type_name', GPBType::STRING, 6)
  1951. ->optional('extendee', GPBType::STRING, 2)
  1952. ->optional('default_value', GPBType::STRING, 7)
  1953. ->optional('oneof_index', GPBType::INT32, 9)
  1954. ->optional('json_name', GPBType::STRING, 10)
  1955. ->optional('options', GPBType::MESSAGE, 8, 'google.protobuf.internal.FieldOptions')
  1956. ->finalizeToPool();
  1957. $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Type', Type::class)
  1958. ->value("TYPE_DOUBLE", 1)
  1959. ->value("TYPE_FLOAT", 2)
  1960. ->value("TYPE_INT64", 3)
  1961. ->value("TYPE_UINT64", 4)
  1962. ->value("TYPE_INT32", 5)
  1963. ->value("TYPE_FIXED64", 6)
  1964. ->value("TYPE_FIXED32", 7)
  1965. ->value("TYPE_BOOL", 8)
  1966. ->value("TYPE_STRING", 9)
  1967. ->value("TYPE_GROUP", 10)
  1968. ->value("TYPE_MESSAGE", 11)
  1969. ->value("TYPE_BYTES", 12)
  1970. ->value("TYPE_UINT32", 13)
  1971. ->value("TYPE_ENUM", 14)
  1972. ->value("TYPE_SFIXED32", 15)
  1973. ->value("TYPE_SFIXED64", 16)
  1974. ->value("TYPE_SINT32", 17)
  1975. ->value("TYPE_SINT64", 18)
  1976. ->finalizeToPool();
  1977. $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Label', Label::class)
  1978. ->value("LABEL_OPTIONAL", 1)
  1979. ->value("LABEL_REQUIRED", 2)
  1980. ->value("LABEL_REPEATED", 3)
  1981. ->finalizeToPool();
  1982. $pool->addMessage('google.protobuf.internal.OneofDescriptorProto', OneofDescriptorProto::class)
  1983. ->optional('name', GPBType::STRING, 1)
  1984. ->optional('options', GPBType::MESSAGE, 2, 'google.protobuf.internal.OneofOptions')
  1985. ->finalizeToPool();
  1986. $pool->addMessage('google.protobuf.internal.EnumDescriptorProto', EnumDescriptorProto::class)
  1987. ->optional('name', GPBType::STRING, 1)
  1988. ->repeated('value', GPBType::MESSAGE, 2, 'google.protobuf.internal.EnumValueDescriptorProto')
  1989. ->optional('options', GPBType::MESSAGE, 3, 'google.protobuf.internal.EnumOptions')
  1990. ->finalizeToPool();
  1991. $pool->addMessage('google.protobuf.internal.EnumValueDescriptorProto', EnumValueDescriptorProto::class)
  1992. ->optional('name', GPBType::STRING, 1)
  1993. ->optional('number', GPBType::INT32, 2)
  1994. ->optional('options', GPBType::MESSAGE, 3, 'google.protobuf.internal.EnumValueOptions')
  1995. ->finalizeToPool();
  1996. $pool->addMessage('google.protobuf.internal.ServiceDescriptorProto', ServiceDescriptorProto::class)
  1997. ->optional('name', GPBType::STRING, 1)
  1998. ->repeated('method', GPBType::MESSAGE, 2, 'google.protobuf.internal.MethodDescriptorProto')
  1999. ->optional('options', GPBType::MESSAGE, 3, 'google.protobuf.internal.ServiceOptions')
  2000. ->finalizeToPool();
  2001. $pool->addMessage('google.protobuf.internal.MethodDescriptorProto', MethodDescriptorProto::class)
  2002. ->optional('name', GPBType::STRING, 1)
  2003. ->optional('input_type', GPBType::STRING, 2)
  2004. ->optional('output_type', GPBType::STRING, 3)
  2005. ->optional('options', GPBType::MESSAGE, 4, 'google.protobuf.internal.MethodOptions')
  2006. ->optional('client_streaming', GPBType::BOOL, 5)
  2007. ->optional('server_streaming', GPBType::BOOL, 6)
  2008. ->finalizeToPool();
  2009. $pool->addMessage('google.protobuf.internal.FileOptions', FileOptions::class)
  2010. ->optional('java_package', GPBType::STRING, 1)
  2011. ->optional('java_outer_classname', GPBType::STRING, 8)
  2012. ->optional('java_multiple_files', GPBType::BOOL, 10)
  2013. ->optional('java_generate_equals_and_hash', GPBType::BOOL, 20)
  2014. ->optional('java_string_check_utf8', GPBType::BOOL, 27)
  2015. ->optional('optimize_for', GPBType::ENUM, 9, 'google.protobuf.internal.FileOptions.OptimizeMode')
  2016. ->optional('go_package', GPBType::STRING, 11)
  2017. ->optional('cc_generic_services', GPBType::BOOL, 16)
  2018. ->optional('java_generic_services', GPBType::BOOL, 17)
  2019. ->optional('py_generic_services', GPBType::BOOL, 18)
  2020. ->optional('deprecated', GPBType::BOOL, 23)
  2021. ->optional('cc_enable_arenas', GPBType::BOOL, 31)
  2022. ->optional('objc_class_prefix', GPBType::STRING, 36)
  2023. ->optional('csharp_namespace', GPBType::STRING, 37)
  2024. ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  2025. ->finalizeToPool();
  2026. $pool->addEnum('google.protobuf.internal.FileOptions.OptimizeMode', OptimizeMode::class)
  2027. ->value("SPEED", 1)
  2028. ->value("CODE_SIZE", 2)
  2029. ->value("LITE_RUNTIME", 3)
  2030. ->finalizeToPool();
  2031. $pool->addMessage('google.protobuf.internal.MessageOptions', MessageOptions::class)
  2032. ->optional('message_set_wire_format', GPBType::BOOL, 1)
  2033. ->optional('no_standard_descriptor_accessor', GPBType::BOOL, 2)
  2034. ->optional('deprecated', GPBType::BOOL, 3)
  2035. ->optional('map_entry', GPBType::BOOL, 7)
  2036. ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  2037. ->finalizeToPool();
  2038. $pool->addMessage('google.protobuf.internal.FieldOptions', FieldOptions::class)
  2039. ->optional('ctype', GPBType::ENUM, 1, 'google.protobuf.internal.FieldOptions.CType')
  2040. ->optional('packed', GPBType::BOOL, 2)
  2041. ->optional('jstype', GPBType::ENUM, 6, 'google.protobuf.internal.FieldOptions.JSType')
  2042. ->optional('lazy', GPBType::BOOL, 5)
  2043. ->optional('deprecated', GPBType::BOOL, 3)
  2044. ->optional('weak', GPBType::BOOL, 10)
  2045. ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  2046. ->finalizeToPool();
  2047. $pool->addEnum('google.protobuf.internal.FieldOptions.CType', CType::class)
  2048. ->value("STRING", 0)
  2049. ->value("CORD", 1)
  2050. ->value("STRING_PIECE", 2)
  2051. ->finalizeToPool();
  2052. $pool->addEnum('google.protobuf.internal.FieldOptions.JSType', JSType::class)
  2053. ->value("JS_NORMAL", 0)
  2054. ->value("JS_STRING", 1)
  2055. ->value("JS_NUMBER", 2)
  2056. ->finalizeToPool();
  2057. $pool->addMessage('google.protobuf.internal.OneofOptions', OneofOptions::class)
  2058. ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  2059. ->finalizeToPool();
  2060. $pool->addMessage('google.protobuf.internal.EnumOptions', EnumOptions::class)
  2061. ->optional('allow_alias', GPBType::BOOL, 2)
  2062. ->optional('deprecated', GPBType::BOOL, 3)
  2063. ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  2064. ->finalizeToPool();
  2065. $pool->addMessage('google.protobuf.internal.EnumValueOptions', EnumValueOptions::class)
  2066. ->optional('deprecated', GPBType::BOOL, 1)
  2067. ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  2068. ->finalizeToPool();
  2069. $pool->addMessage('google.protobuf.internal.ServiceOptions', ServiceOptions::class)
  2070. ->optional('deprecated', GPBType::BOOL, 33)
  2071. ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  2072. ->finalizeToPool();
  2073. $pool->addMessage('google.protobuf.internal.MethodOptions', MethodOptions::class)
  2074. ->optional('deprecated', GPBType::BOOL, 33)
  2075. ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  2076. ->finalizeToPool();
  2077. $pool->addMessage('google.protobuf.internal.UninterpretedOption', UninterpretedOption::class)
  2078. ->repeated('name', GPBType::MESSAGE, 2, 'google.protobuf.internal.UninterpretedOption.NamePart')
  2079. ->optional('identifier_value', GPBType::STRING, 3)
  2080. ->optional('positive_int_value', GPBType::UINT64, 4)
  2081. ->optional('negative_int_value', GPBType::INT64, 5)
  2082. ->optional('double_value', GPBType::DOUBLE, 6)
  2083. ->optional('string_value', GPBType::BYTES, 7)
  2084. ->optional('aggregate_value', GPBType::STRING, 8)
  2085. ->finalizeToPool();
  2086. $pool->addMessage('google.protobuf.internal.UninterpretedOption.NamePart', UninterpretedOption_NamePart::class)
  2087. ->required('name_part', GPBType::STRING, 1)
  2088. ->required('is_extension', GPBType::BOOL, 2)
  2089. ->finalizeToPool();
  2090. $pool->addMessage('google.protobuf.internal.SourceCodeInfo', SourceCodeInfo::class)
  2091. ->repeated('location', GPBType::MESSAGE, 1, 'google.protobuf.internal.SourceCodeInfo.Location')
  2092. ->finalizeToPool();
  2093. $pool->addMessage('google.protobuf.internal.SourceCodeInfo.Location', SourceCodeInfo_Location::class)
  2094. ->repeated('path', GPBType::INT32, 1)
  2095. ->repeated('span', GPBType::INT32, 2)
  2096. ->optional('leading_comments', GPBType::STRING, 3)
  2097. ->optional('trailing_comments', GPBType::STRING, 4)
  2098. ->repeated('leading_detached_comments', GPBType::STRING, 6)
  2099. ->finalizeToPool();
  2100. $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo', GeneratedCodeInfo::class)
  2101. ->repeated('annotation', GPBType::MESSAGE, 1, 'google.protobuf.internal.GeneratedCodeInfo.Annotation')
  2102. ->finalizeToPool();
  2103. $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo.Annotation', GeneratedCodeInfo_Annotation::class)
  2104. ->repeated('path', GPBType::INT32, 1)
  2105. ->optional('source_file', GPBType::STRING, 2)
  2106. ->optional('begin', GPBType::INT32, 3)
  2107. ->optional('end', GPBType::INT32, 4)
  2108. ->finalizeToPool();
  2109. $pool->finish();