lily.pb.cc 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: lily.proto
  3. #include "lily.pb.h"
  4. #include <algorithm>
  5. #include "google/protobuf/io/coded_stream.h"
  6. #include "google/protobuf/extension_set.h"
  7. #include "google/protobuf/wire_format_lite.h"
  8. #include "google/protobuf/descriptor.h"
  9. #include "google/protobuf/generated_message_reflection.h"
  10. #include "google/protobuf/reflection_ops.h"
  11. #include "google/protobuf/wire_format.h"
  12. // @@protoc_insertion_point(includes)
  13. // Must be included last.
  14. #include "google/protobuf/port_def.inc"
  15. PROTOBUF_PRAGMA_INIT_SEG
  16. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  17. namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
  18. namespace palm {
  19. namespace lily {
  20. namespace v1 {
  21. template <typename>
  22. PROTOBUF_CONSTEXPR File::File(
  23. ::_pbi::ConstantInitialized): _impl_{
  24. /*decltype(_impl_._has_bits_)*/{}
  25. , /*decltype(_impl_._cached_size_)*/{}
  26. , /*decltype(_impl_.content_type_)*/ {
  27. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  28. }
  29. , /*decltype(_impl_.payload_)*/ {
  30. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  31. }
  32. } {}
  33. struct FileDefaultTypeInternal {
  34. PROTOBUF_CONSTEXPR FileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  35. ~FileDefaultTypeInternal() {}
  36. union {
  37. File _instance;
  38. };
  39. };
  40. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  41. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDefaultTypeInternal _File_default_instance_;
  42. template <typename>
  43. PROTOBUF_CONSTEXPR ExcelModel_Sheet_Cell::ExcelModel_Sheet_Cell(
  44. ::_pbi::ConstantInitialized): _impl_{
  45. /*decltype(_impl_.val_)*/ {
  46. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  47. }
  48. , /*decltype(_impl_.row_)*/ 0u
  49. , /*decltype(_impl_.col_)*/ 0u
  50. , /*decltype(_impl_._cached_size_)*/{}} {}
  51. struct ExcelModel_Sheet_CellDefaultTypeInternal {
  52. PROTOBUF_CONSTEXPR ExcelModel_Sheet_CellDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  53. ~ExcelModel_Sheet_CellDefaultTypeInternal() {}
  54. union {
  55. ExcelModel_Sheet_Cell _instance;
  56. };
  57. };
  58. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  59. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExcelModel_Sheet_CellDefaultTypeInternal _ExcelModel_Sheet_Cell_default_instance_;
  60. template <typename>
  61. PROTOBUF_CONSTEXPR ExcelModel_Sheet::ExcelModel_Sheet(
  62. ::_pbi::ConstantInitialized): _impl_{
  63. /*decltype(_impl_.cells_)*/{}
  64. , /*decltype(_impl_.name_)*/ {
  65. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  66. }
  67. , /*decltype(_impl_._cached_size_)*/{}} {}
  68. struct ExcelModel_SheetDefaultTypeInternal {
  69. PROTOBUF_CONSTEXPR ExcelModel_SheetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  70. ~ExcelModel_SheetDefaultTypeInternal() {}
  71. union {
  72. ExcelModel_Sheet _instance;
  73. };
  74. };
  75. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  76. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExcelModel_SheetDefaultTypeInternal _ExcelModel_Sheet_default_instance_;
  77. template <typename>
  78. PROTOBUF_CONSTEXPR ExcelModel::ExcelModel(
  79. ::_pbi::ConstantInitialized): _impl_{
  80. /*decltype(_impl_.sheets_)*/{}
  81. , /*decltype(_impl_._cached_size_)*/{}} {}
  82. struct ExcelModelDefaultTypeInternal {
  83. PROTOBUF_CONSTEXPR ExcelModelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  84. ~ExcelModelDefaultTypeInternal() {}
  85. union {
  86. ExcelModel _instance;
  87. };
  88. };
  89. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  90. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExcelModelDefaultTypeInternal _ExcelModel_default_instance_;
  91. template <typename>
  92. PROTOBUF_CONSTEXPR TexToRequest_FilesEntry_DoNotUse::TexToRequest_FilesEntry_DoNotUse(
  93. ::_pbi::ConstantInitialized) {}
  94. struct TexToRequest_FilesEntry_DoNotUseDefaultTypeInternal {
  95. PROTOBUF_CONSTEXPR TexToRequest_FilesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  96. ~TexToRequest_FilesEntry_DoNotUseDefaultTypeInternal() {}
  97. union {
  98. TexToRequest_FilesEntry_DoNotUse _instance;
  99. };
  100. };
  101. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  102. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TexToRequest_FilesEntry_DoNotUseDefaultTypeInternal _TexToRequest_FilesEntry_DoNotUse_default_instance_;
  103. template <typename>
  104. PROTOBUF_CONSTEXPR TexToRequest::TexToRequest(
  105. ::_pbi::ConstantInitialized): _impl_{
  106. /*decltype(_impl_.files_)*/{}
  107. , /*decltype(_impl_._cached_size_)*/{}} {}
  108. struct TexToRequestDefaultTypeInternal {
  109. PROTOBUF_CONSTEXPR TexToRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  110. ~TexToRequestDefaultTypeInternal() {}
  111. union {
  112. TexToRequest _instance;
  113. };
  114. };
  115. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  116. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TexToRequestDefaultTypeInternal _TexToRequest_default_instance_;
  117. template <typename>
  118. PROTOBUF_CONSTEXPR EpubBuildRequest::EpubBuildRequest(
  119. ::_pbi::ConstantInitialized) {}
  120. struct EpubBuildRequestDefaultTypeInternal {
  121. PROTOBUF_CONSTEXPR EpubBuildRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  122. ~EpubBuildRequestDefaultTypeInternal() {}
  123. union {
  124. EpubBuildRequest _instance;
  125. };
  126. };
  127. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  128. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EpubBuildRequestDefaultTypeInternal _EpubBuildRequest_default_instance_;
  129. } // namespace v1
  130. } // namespace lily
  131. } // namespace palm
  132. static ::_pb::Metadata file_level_metadata_lily_2eproto[7];
  133. static constexpr const ::_pb::EnumDescriptor**
  134. file_level_enum_descriptors_lily_2eproto = nullptr;
  135. static constexpr const ::_pb::ServiceDescriptor**
  136. file_level_service_descriptors_lily_2eproto = nullptr;
  137. const ::uint32_t TableStruct_lily_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  138. protodesc_cold) = {
  139. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::File, _impl_._has_bits_),
  140. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::File, _internal_metadata_),
  141. ~0u, // no _extensions_
  142. ~0u, // no _oneof_case_
  143. ~0u, // no _weak_field_map_
  144. ~0u, // no _inlined_string_donated_
  145. ~0u, // no _split_
  146. ~0u, // no sizeof(Split)
  147. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::File, _impl_.content_type_),
  148. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::File, _impl_.payload_),
  149. 0,
  150. ~0u,
  151. ~0u, // no _has_bits_
  152. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel_Sheet_Cell, _internal_metadata_),
  153. ~0u, // no _extensions_
  154. ~0u, // no _oneof_case_
  155. ~0u, // no _weak_field_map_
  156. ~0u, // no _inlined_string_donated_
  157. ~0u, // no _split_
  158. ~0u, // no sizeof(Split)
  159. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel_Sheet_Cell, _impl_.row_),
  160. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel_Sheet_Cell, _impl_.col_),
  161. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel_Sheet_Cell, _impl_.val_),
  162. ~0u, // no _has_bits_
  163. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel_Sheet, _internal_metadata_),
  164. ~0u, // no _extensions_
  165. ~0u, // no _oneof_case_
  166. ~0u, // no _weak_field_map_
  167. ~0u, // no _inlined_string_donated_
  168. ~0u, // no _split_
  169. ~0u, // no sizeof(Split)
  170. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel_Sheet, _impl_.name_),
  171. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel_Sheet, _impl_.cells_),
  172. ~0u, // no _has_bits_
  173. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel, _internal_metadata_),
  174. ~0u, // no _extensions_
  175. ~0u, // no _oneof_case_
  176. ~0u, // no _weak_field_map_
  177. ~0u, // no _inlined_string_donated_
  178. ~0u, // no _split_
  179. ~0u, // no sizeof(Split)
  180. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::ExcelModel, _impl_.sheets_),
  181. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::TexToRequest_FilesEntry_DoNotUse, _has_bits_),
  182. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::TexToRequest_FilesEntry_DoNotUse, _internal_metadata_),
  183. ~0u, // no _extensions_
  184. ~0u, // no _oneof_case_
  185. ~0u, // no _weak_field_map_
  186. ~0u, // no _inlined_string_donated_
  187. ~0u, // no _split_
  188. ~0u, // no sizeof(Split)
  189. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::TexToRequest_FilesEntry_DoNotUse, key_),
  190. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::TexToRequest_FilesEntry_DoNotUse, value_),
  191. 0,
  192. 1,
  193. ~0u, // no _has_bits_
  194. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::TexToRequest, _internal_metadata_),
  195. ~0u, // no _extensions_
  196. ~0u, // no _oneof_case_
  197. ~0u, // no _weak_field_map_
  198. ~0u, // no _inlined_string_donated_
  199. ~0u, // no _split_
  200. ~0u, // no sizeof(Split)
  201. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::TexToRequest, _impl_.files_),
  202. ~0u, // no _has_bits_
  203. PROTOBUF_FIELD_OFFSET(::palm::lily::v1::EpubBuildRequest, _internal_metadata_),
  204. ~0u, // no _extensions_
  205. ~0u, // no _oneof_case_
  206. ~0u, // no _weak_field_map_
  207. ~0u, // no _inlined_string_donated_
  208. ~0u, // no _split_
  209. ~0u, // no sizeof(Split)
  210. };
  211. static const ::_pbi::MigrationSchema
  212. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  213. { 0, 10, -1, sizeof(::palm::lily::v1::File)},
  214. { 12, -1, -1, sizeof(::palm::lily::v1::ExcelModel_Sheet_Cell)},
  215. { 23, -1, -1, sizeof(::palm::lily::v1::ExcelModel_Sheet)},
  216. { 33, -1, -1, sizeof(::palm::lily::v1::ExcelModel)},
  217. { 42, 52, -1, sizeof(::palm::lily::v1::TexToRequest_FilesEntry_DoNotUse)},
  218. { 54, -1, -1, sizeof(::palm::lily::v1::TexToRequest)},
  219. { 63, -1, -1, sizeof(::palm::lily::v1::EpubBuildRequest)},
  220. };
  221. static const ::_pb::Message* const file_default_instances[] = {
  222. &::palm::lily::v1::_File_default_instance_._instance,
  223. &::palm::lily::v1::_ExcelModel_Sheet_Cell_default_instance_._instance,
  224. &::palm::lily::v1::_ExcelModel_Sheet_default_instance_._instance,
  225. &::palm::lily::v1::_ExcelModel_default_instance_._instance,
  226. &::palm::lily::v1::_TexToRequest_FilesEntry_DoNotUse_default_instance_._instance,
  227. &::palm::lily::v1::_TexToRequest_default_instance_._instance,
  228. &::palm::lily::v1::_EpubBuildRequest_default_instance_._instance,
  229. };
  230. const char descriptor_table_protodef_lily_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  231. "\n\nlily.proto\022\014palm.lily.v1\"C\n\004File\022\031\n\014co"
  232. "ntent_type\030\001 \001(\tH\000\210\001\001\022\017\n\007payload\030\002 \001(\014B\017"
  233. "\n\r_content_type\"\266\001\n\nExcelModel\022.\n\006sheets"
  234. "\030\001 \003(\0132\036.palm.lily.v1.ExcelModel.Sheet\032x"
  235. "\n\005Sheet\022\014\n\004name\030\001 \001(\t\0222\n\005cells\030\002 \003(\0132#.p"
  236. "alm.lily.v1.ExcelModel.Sheet.Cell\032-\n\004Cel"
  237. "l\022\013\n\003row\030\001 \001(\r\022\013\n\003col\030\002 \001(\r\022\013\n\003val\030\003 \001(\t"
  238. "\"r\n\014TexToRequest\0224\n\005files\030\001 \003(\0132%.palm.l"
  239. "ily.v1.TexToRequest.FilesEntry\032,\n\nFilesE"
  240. "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\022\n\020"
  241. "EpubBuildRequest2|\n\005Excel\0227\n\005Parse\022\022.pal"
  242. "m.lily.v1.File\032\030.palm.lily.v1.ExcelModel"
  243. "\"\000\022:\n\010Generate\022\030.palm.lily.v1.ExcelModel"
  244. "\032\022.palm.lily.v1.File\"\0002|\n\003Tex\0229\n\005ToPdf\022\032"
  245. ".palm.lily.v1.TexToRequest\032\022.palm.lily.v"
  246. "1.File\"\000\022:\n\006ToWord\022\032.palm.lily.v1.TexToR"
  247. "equest\032\022.palm.lily.v1.File\"\0002E\n\004Epub\022=\n\005"
  248. "Build\022\036.palm.lily.v1.EpubBuildRequest\032\022."
  249. "palm.lily.v1.File\"\000B.\n*com.github.saturn"
  250. "_xiv.palm.plugins.lily.v1P\001b\006proto3"
  251. };
  252. static ::absl::once_flag descriptor_table_lily_2eproto_once;
  253. const ::_pbi::DescriptorTable descriptor_table_lily_2eproto = {
  254. false,
  255. false,
  256. 795,
  257. descriptor_table_protodef_lily_2eproto,
  258. "lily.proto",
  259. &descriptor_table_lily_2eproto_once,
  260. nullptr,
  261. 0,
  262. 7,
  263. schemas,
  264. file_default_instances,
  265. TableStruct_lily_2eproto::offsets,
  266. file_level_metadata_lily_2eproto,
  267. file_level_enum_descriptors_lily_2eproto,
  268. file_level_service_descriptors_lily_2eproto,
  269. };
  270. // This function exists to be marked as weak.
  271. // It can significantly speed up compilation by breaking up LLVM's SCC
  272. // in the .pb.cc translation units. Large translation units see a
  273. // reduction of more than 35% of walltime for optimized builds. Without
  274. // the weak attribute all the messages in the file, including all the
  275. // vtables and everything they use become part of the same SCC through
  276. // a cycle like:
  277. // GetMetadata -> descriptor table -> default instances ->
  278. // vtables -> GetMetadata
  279. // By adding a weak function here we break the connection from the
  280. // individual vtables back into the descriptor table.
  281. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_lily_2eproto_getter() {
  282. return &descriptor_table_lily_2eproto;
  283. }
  284. // Force running AddDescriptors() at dynamic initialization time.
  285. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  286. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_lily_2eproto(&descriptor_table_lily_2eproto);
  287. namespace palm {
  288. namespace lily {
  289. namespace v1 {
  290. // ===================================================================
  291. class File::_Internal {
  292. public:
  293. using HasBits = decltype(std::declval<File>()._impl_._has_bits_);
  294. static constexpr ::int32_t kHasBitsOffset =
  295. 8 * PROTOBUF_FIELD_OFFSET(File, _impl_._has_bits_);
  296. static void set_has_content_type(HasBits* has_bits) {
  297. (*has_bits)[0] |= 1u;
  298. }
  299. };
  300. File::File(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  301. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  302. SharedCtor(arena);
  303. // @@protoc_insertion_point(arena_constructor:palm.lily.v1.File)
  304. }
  305. File::File(const File& from)
  306. : ::PROTOBUF_NAMESPACE_ID::Message() {
  307. File* const _this = this; (void)_this;
  308. new (&_impl_) Impl_{
  309. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  310. , /*decltype(_impl_._cached_size_)*/{}
  311. , decltype(_impl_.content_type_) {}
  312. , decltype(_impl_.payload_) {}
  313. };
  314. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  315. _impl_.content_type_.InitDefault();
  316. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  317. _impl_.content_type_.Set("", GetArenaForAllocation());
  318. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  319. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  320. _this->_impl_.content_type_.Set(from._internal_content_type(), _this->GetArenaForAllocation());
  321. }
  322. _impl_.payload_.InitDefault();
  323. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  324. _impl_.payload_.Set("", GetArenaForAllocation());
  325. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  326. if (!from._internal_payload().empty()) {
  327. _this->_impl_.payload_.Set(from._internal_payload(), _this->GetArenaForAllocation());
  328. }
  329. // @@protoc_insertion_point(copy_constructor:palm.lily.v1.File)
  330. }
  331. inline void File::SharedCtor(::_pb::Arena* arena) {
  332. (void)arena;
  333. new (&_impl_) Impl_{
  334. decltype(_impl_._has_bits_){}
  335. , /*decltype(_impl_._cached_size_)*/{}
  336. , decltype(_impl_.content_type_) {}
  337. , decltype(_impl_.payload_) {}
  338. };
  339. _impl_.content_type_.InitDefault();
  340. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  341. _impl_.content_type_.Set("", GetArenaForAllocation());
  342. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  343. _impl_.payload_.InitDefault();
  344. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  345. _impl_.payload_.Set("", GetArenaForAllocation());
  346. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  347. }
  348. File::~File() {
  349. // @@protoc_insertion_point(destructor:palm.lily.v1.File)
  350. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  351. (void)arena;
  352. return;
  353. }
  354. SharedDtor();
  355. }
  356. inline void File::SharedDtor() {
  357. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  358. _impl_.content_type_.Destroy();
  359. _impl_.payload_.Destroy();
  360. }
  361. void File::SetCachedSize(int size) const {
  362. _impl_._cached_size_.Set(size);
  363. }
  364. void File::Clear() {
  365. // @@protoc_insertion_point(message_clear_start:palm.lily.v1.File)
  366. ::uint32_t cached_has_bits = 0;
  367. // Prevent compiler warnings about cached_has_bits being unused
  368. (void) cached_has_bits;
  369. cached_has_bits = _impl_._has_bits_[0];
  370. if (cached_has_bits & 0x00000001u) {
  371. _impl_.content_type_.ClearNonDefaultToEmpty();
  372. }
  373. _impl_.payload_.ClearToEmpty();
  374. _impl_._has_bits_.Clear();
  375. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  376. }
  377. const char* File::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  378. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  379. _Internal::HasBits has_bits{};
  380. while (!ctx->Done(&ptr)) {
  381. ::uint32_t tag;
  382. ptr = ::_pbi::ReadTag(ptr, &tag);
  383. switch (tag >> 3) {
  384. // optional string content_type = 1;
  385. case 1:
  386. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  387. auto str = _internal_mutable_content_type();
  388. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  389. CHK_(ptr);
  390. CHK_(::_pbi::VerifyUTF8(str, "palm.lily.v1.File.content_type"));
  391. } else {
  392. goto handle_unusual;
  393. }
  394. continue;
  395. // bytes payload = 2;
  396. case 2:
  397. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  398. auto str = _internal_mutable_payload();
  399. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  400. CHK_(ptr);
  401. } else {
  402. goto handle_unusual;
  403. }
  404. continue;
  405. default:
  406. goto handle_unusual;
  407. } // switch
  408. handle_unusual:
  409. if ((tag == 0) || ((tag & 7) == 4)) {
  410. CHK_(ptr);
  411. ctx->SetLastTag(tag);
  412. goto message_done;
  413. }
  414. ptr = UnknownFieldParse(
  415. tag,
  416. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  417. ptr, ctx);
  418. CHK_(ptr != nullptr);
  419. } // while
  420. message_done:
  421. _impl_._has_bits_.Or(has_bits);
  422. return ptr;
  423. failure:
  424. ptr = nullptr;
  425. goto message_done;
  426. #undef CHK_
  427. }
  428. ::uint8_t* File::_InternalSerialize(
  429. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  430. // @@protoc_insertion_point(serialize_to_array_start:palm.lily.v1.File)
  431. ::uint32_t cached_has_bits = 0;
  432. (void) cached_has_bits;
  433. cached_has_bits = _impl_._has_bits_[0];
  434. // optional string content_type = 1;
  435. if (cached_has_bits & 0x00000001u) {
  436. const std::string& _s = this->_internal_content_type();
  437. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  438. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "palm.lily.v1.File.content_type");
  439. target = stream->WriteStringMaybeAliased(1, _s, target);
  440. }
  441. // bytes payload = 2;
  442. if (!this->_internal_payload().empty()) {
  443. const std::string& _s = this->_internal_payload();
  444. target = stream->WriteBytesMaybeAliased(2, _s, target);
  445. }
  446. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  447. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  448. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  449. }
  450. // @@protoc_insertion_point(serialize_to_array_end:palm.lily.v1.File)
  451. return target;
  452. }
  453. ::size_t File::ByteSizeLong() const {
  454. // @@protoc_insertion_point(message_byte_size_start:palm.lily.v1.File)
  455. ::size_t total_size = 0;
  456. ::uint32_t cached_has_bits = 0;
  457. // Prevent compiler warnings about cached_has_bits being unused
  458. (void) cached_has_bits;
  459. // optional string content_type = 1;
  460. cached_has_bits = _impl_._has_bits_[0];
  461. if (cached_has_bits & 0x00000001u) {
  462. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  463. this->_internal_content_type());
  464. }
  465. // bytes payload = 2;
  466. if (!this->_internal_payload().empty()) {
  467. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  468. this->_internal_payload());
  469. }
  470. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  471. }
  472. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData File::_class_data_ = {
  473. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  474. File::MergeImpl
  475. };
  476. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*File::GetClassData() const { return &_class_data_; }
  477. void File::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  478. auto* const _this = static_cast<File*>(&to_msg);
  479. auto& from = static_cast<const File&>(from_msg);
  480. // @@protoc_insertion_point(class_specific_merge_from_start:palm.lily.v1.File)
  481. ABSL_DCHECK_NE(&from, _this);
  482. ::uint32_t cached_has_bits = 0;
  483. (void) cached_has_bits;
  484. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  485. _this->_internal_set_content_type(from._internal_content_type());
  486. }
  487. if (!from._internal_payload().empty()) {
  488. _this->_internal_set_payload(from._internal_payload());
  489. }
  490. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  491. }
  492. void File::CopyFrom(const File& from) {
  493. // @@protoc_insertion_point(class_specific_copy_from_start:palm.lily.v1.File)
  494. if (&from == this) return;
  495. Clear();
  496. MergeFrom(from);
  497. }
  498. bool File::IsInitialized() const {
  499. return true;
  500. }
  501. void File::InternalSwap(File* other) {
  502. using std::swap;
  503. auto* lhs_arena = GetArenaForAllocation();
  504. auto* rhs_arena = other->GetArenaForAllocation();
  505. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  506. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  507. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_type_, lhs_arena,
  508. &other->_impl_.content_type_, rhs_arena);
  509. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, lhs_arena,
  510. &other->_impl_.payload_, rhs_arena);
  511. }
  512. ::PROTOBUF_NAMESPACE_ID::Metadata File::GetMetadata() const {
  513. return ::_pbi::AssignDescriptors(
  514. &descriptor_table_lily_2eproto_getter, &descriptor_table_lily_2eproto_once,
  515. file_level_metadata_lily_2eproto[0]);
  516. }
  517. // ===================================================================
  518. class ExcelModel_Sheet_Cell::_Internal {
  519. public:
  520. };
  521. ExcelModel_Sheet_Cell::ExcelModel_Sheet_Cell(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  522. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  523. SharedCtor(arena);
  524. // @@protoc_insertion_point(arena_constructor:palm.lily.v1.ExcelModel.Sheet.Cell)
  525. }
  526. ExcelModel_Sheet_Cell::ExcelModel_Sheet_Cell(const ExcelModel_Sheet_Cell& from)
  527. : ::PROTOBUF_NAMESPACE_ID::Message() {
  528. ExcelModel_Sheet_Cell* const _this = this; (void)_this;
  529. new (&_impl_) Impl_{
  530. decltype(_impl_.val_) {}
  531. , decltype(_impl_.row_) {}
  532. , decltype(_impl_.col_) {}
  533. , /*decltype(_impl_._cached_size_)*/{}};
  534. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  535. _impl_.val_.InitDefault();
  536. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  537. _impl_.val_.Set("", GetArenaForAllocation());
  538. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  539. if (!from._internal_val().empty()) {
  540. _this->_impl_.val_.Set(from._internal_val(), _this->GetArenaForAllocation());
  541. }
  542. ::memcpy(&_impl_.row_, &from._impl_.row_,
  543. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.col_) -
  544. reinterpret_cast<char*>(&_impl_.row_)) + sizeof(_impl_.col_));
  545. // @@protoc_insertion_point(copy_constructor:palm.lily.v1.ExcelModel.Sheet.Cell)
  546. }
  547. inline void ExcelModel_Sheet_Cell::SharedCtor(::_pb::Arena* arena) {
  548. (void)arena;
  549. new (&_impl_) Impl_{
  550. decltype(_impl_.val_) {}
  551. , decltype(_impl_.row_) { 0u }
  552. , decltype(_impl_.col_) { 0u }
  553. , /*decltype(_impl_._cached_size_)*/{}
  554. };
  555. _impl_.val_.InitDefault();
  556. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  557. _impl_.val_.Set("", GetArenaForAllocation());
  558. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  559. }
  560. ExcelModel_Sheet_Cell::~ExcelModel_Sheet_Cell() {
  561. // @@protoc_insertion_point(destructor:palm.lily.v1.ExcelModel.Sheet.Cell)
  562. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  563. (void)arena;
  564. return;
  565. }
  566. SharedDtor();
  567. }
  568. inline void ExcelModel_Sheet_Cell::SharedDtor() {
  569. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  570. _impl_.val_.Destroy();
  571. }
  572. void ExcelModel_Sheet_Cell::SetCachedSize(int size) const {
  573. _impl_._cached_size_.Set(size);
  574. }
  575. void ExcelModel_Sheet_Cell::Clear() {
  576. // @@protoc_insertion_point(message_clear_start:palm.lily.v1.ExcelModel.Sheet.Cell)
  577. ::uint32_t cached_has_bits = 0;
  578. // Prevent compiler warnings about cached_has_bits being unused
  579. (void) cached_has_bits;
  580. _impl_.val_.ClearToEmpty();
  581. ::memset(&_impl_.row_, 0, static_cast<::size_t>(
  582. reinterpret_cast<char*>(&_impl_.col_) -
  583. reinterpret_cast<char*>(&_impl_.row_)) + sizeof(_impl_.col_));
  584. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  585. }
  586. const char* ExcelModel_Sheet_Cell::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  587. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  588. while (!ctx->Done(&ptr)) {
  589. ::uint32_t tag;
  590. ptr = ::_pbi::ReadTag(ptr, &tag);
  591. switch (tag >> 3) {
  592. // uint32 row = 1;
  593. case 1:
  594. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  595. _impl_.row_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  596. CHK_(ptr);
  597. } else {
  598. goto handle_unusual;
  599. }
  600. continue;
  601. // uint32 col = 2;
  602. case 2:
  603. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
  604. _impl_.col_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  605. CHK_(ptr);
  606. } else {
  607. goto handle_unusual;
  608. }
  609. continue;
  610. // string val = 3;
  611. case 3:
  612. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
  613. auto str = _internal_mutable_val();
  614. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  615. CHK_(ptr);
  616. CHK_(::_pbi::VerifyUTF8(str, "palm.lily.v1.ExcelModel.Sheet.Cell.val"));
  617. } else {
  618. goto handle_unusual;
  619. }
  620. continue;
  621. default:
  622. goto handle_unusual;
  623. } // switch
  624. handle_unusual:
  625. if ((tag == 0) || ((tag & 7) == 4)) {
  626. CHK_(ptr);
  627. ctx->SetLastTag(tag);
  628. goto message_done;
  629. }
  630. ptr = UnknownFieldParse(
  631. tag,
  632. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  633. ptr, ctx);
  634. CHK_(ptr != nullptr);
  635. } // while
  636. message_done:
  637. return ptr;
  638. failure:
  639. ptr = nullptr;
  640. goto message_done;
  641. #undef CHK_
  642. }
  643. ::uint8_t* ExcelModel_Sheet_Cell::_InternalSerialize(
  644. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  645. // @@protoc_insertion_point(serialize_to_array_start:palm.lily.v1.ExcelModel.Sheet.Cell)
  646. ::uint32_t cached_has_bits = 0;
  647. (void) cached_has_bits;
  648. // uint32 row = 1;
  649. if (this->_internal_row() != 0) {
  650. target = stream->EnsureSpace(target);
  651. target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
  652. 1, this->_internal_row(), target);
  653. }
  654. // uint32 col = 2;
  655. if (this->_internal_col() != 0) {
  656. target = stream->EnsureSpace(target);
  657. target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
  658. 2, this->_internal_col(), target);
  659. }
  660. // string val = 3;
  661. if (!this->_internal_val().empty()) {
  662. const std::string& _s = this->_internal_val();
  663. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  664. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "palm.lily.v1.ExcelModel.Sheet.Cell.val");
  665. target = stream->WriteStringMaybeAliased(3, _s, target);
  666. }
  667. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  668. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  669. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  670. }
  671. // @@protoc_insertion_point(serialize_to_array_end:palm.lily.v1.ExcelModel.Sheet.Cell)
  672. return target;
  673. }
  674. ::size_t ExcelModel_Sheet_Cell::ByteSizeLong() const {
  675. // @@protoc_insertion_point(message_byte_size_start:palm.lily.v1.ExcelModel.Sheet.Cell)
  676. ::size_t total_size = 0;
  677. ::uint32_t cached_has_bits = 0;
  678. // Prevent compiler warnings about cached_has_bits being unused
  679. (void) cached_has_bits;
  680. // string val = 3;
  681. if (!this->_internal_val().empty()) {
  682. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  683. this->_internal_val());
  684. }
  685. // uint32 row = 1;
  686. if (this->_internal_row() != 0) {
  687. total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
  688. this->_internal_row());
  689. }
  690. // uint32 col = 2;
  691. if (this->_internal_col() != 0) {
  692. total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
  693. this->_internal_col());
  694. }
  695. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  696. }
  697. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExcelModel_Sheet_Cell::_class_data_ = {
  698. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  699. ExcelModel_Sheet_Cell::MergeImpl
  700. };
  701. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExcelModel_Sheet_Cell::GetClassData() const { return &_class_data_; }
  702. void ExcelModel_Sheet_Cell::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  703. auto* const _this = static_cast<ExcelModel_Sheet_Cell*>(&to_msg);
  704. auto& from = static_cast<const ExcelModel_Sheet_Cell&>(from_msg);
  705. // @@protoc_insertion_point(class_specific_merge_from_start:palm.lily.v1.ExcelModel.Sheet.Cell)
  706. ABSL_DCHECK_NE(&from, _this);
  707. ::uint32_t cached_has_bits = 0;
  708. (void) cached_has_bits;
  709. if (!from._internal_val().empty()) {
  710. _this->_internal_set_val(from._internal_val());
  711. }
  712. if (from._internal_row() != 0) {
  713. _this->_internal_set_row(from._internal_row());
  714. }
  715. if (from._internal_col() != 0) {
  716. _this->_internal_set_col(from._internal_col());
  717. }
  718. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  719. }
  720. void ExcelModel_Sheet_Cell::CopyFrom(const ExcelModel_Sheet_Cell& from) {
  721. // @@protoc_insertion_point(class_specific_copy_from_start:palm.lily.v1.ExcelModel.Sheet.Cell)
  722. if (&from == this) return;
  723. Clear();
  724. MergeFrom(from);
  725. }
  726. bool ExcelModel_Sheet_Cell::IsInitialized() const {
  727. return true;
  728. }
  729. void ExcelModel_Sheet_Cell::InternalSwap(ExcelModel_Sheet_Cell* other) {
  730. using std::swap;
  731. auto* lhs_arena = GetArenaForAllocation();
  732. auto* rhs_arena = other->GetArenaForAllocation();
  733. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  734. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.val_, lhs_arena,
  735. &other->_impl_.val_, rhs_arena);
  736. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  737. PROTOBUF_FIELD_OFFSET(ExcelModel_Sheet_Cell, _impl_.col_)
  738. + sizeof(ExcelModel_Sheet_Cell::_impl_.col_)
  739. - PROTOBUF_FIELD_OFFSET(ExcelModel_Sheet_Cell, _impl_.row_)>(
  740. reinterpret_cast<char*>(&_impl_.row_),
  741. reinterpret_cast<char*>(&other->_impl_.row_));
  742. }
  743. ::PROTOBUF_NAMESPACE_ID::Metadata ExcelModel_Sheet_Cell::GetMetadata() const {
  744. return ::_pbi::AssignDescriptors(
  745. &descriptor_table_lily_2eproto_getter, &descriptor_table_lily_2eproto_once,
  746. file_level_metadata_lily_2eproto[1]);
  747. }
  748. // ===================================================================
  749. class ExcelModel_Sheet::_Internal {
  750. public:
  751. };
  752. ExcelModel_Sheet::ExcelModel_Sheet(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  753. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  754. SharedCtor(arena);
  755. // @@protoc_insertion_point(arena_constructor:palm.lily.v1.ExcelModel.Sheet)
  756. }
  757. ExcelModel_Sheet::ExcelModel_Sheet(const ExcelModel_Sheet& from)
  758. : ::PROTOBUF_NAMESPACE_ID::Message() {
  759. ExcelModel_Sheet* const _this = this; (void)_this;
  760. new (&_impl_) Impl_{
  761. decltype(_impl_.cells_){from._impl_.cells_}
  762. , decltype(_impl_.name_) {}
  763. , /*decltype(_impl_._cached_size_)*/{}};
  764. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  765. _impl_.name_.InitDefault();
  766. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  767. _impl_.name_.Set("", GetArenaForAllocation());
  768. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  769. if (!from._internal_name().empty()) {
  770. _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
  771. }
  772. // @@protoc_insertion_point(copy_constructor:palm.lily.v1.ExcelModel.Sheet)
  773. }
  774. inline void ExcelModel_Sheet::SharedCtor(::_pb::Arena* arena) {
  775. (void)arena;
  776. new (&_impl_) Impl_{
  777. decltype(_impl_.cells_){arena}
  778. , decltype(_impl_.name_) {}
  779. , /*decltype(_impl_._cached_size_)*/{}
  780. };
  781. _impl_.name_.InitDefault();
  782. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  783. _impl_.name_.Set("", GetArenaForAllocation());
  784. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  785. }
  786. ExcelModel_Sheet::~ExcelModel_Sheet() {
  787. // @@protoc_insertion_point(destructor:palm.lily.v1.ExcelModel.Sheet)
  788. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  789. (void)arena;
  790. return;
  791. }
  792. SharedDtor();
  793. }
  794. inline void ExcelModel_Sheet::SharedDtor() {
  795. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  796. _internal_mutable_cells()->~RepeatedPtrField();
  797. _impl_.name_.Destroy();
  798. }
  799. void ExcelModel_Sheet::SetCachedSize(int size) const {
  800. _impl_._cached_size_.Set(size);
  801. }
  802. void ExcelModel_Sheet::Clear() {
  803. // @@protoc_insertion_point(message_clear_start:palm.lily.v1.ExcelModel.Sheet)
  804. ::uint32_t cached_has_bits = 0;
  805. // Prevent compiler warnings about cached_has_bits being unused
  806. (void) cached_has_bits;
  807. _internal_mutable_cells()->Clear();
  808. _impl_.name_.ClearToEmpty();
  809. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  810. }
  811. const char* ExcelModel_Sheet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  812. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  813. while (!ctx->Done(&ptr)) {
  814. ::uint32_t tag;
  815. ptr = ::_pbi::ReadTag(ptr, &tag);
  816. switch (tag >> 3) {
  817. // string name = 1;
  818. case 1:
  819. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  820. auto str = _internal_mutable_name();
  821. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  822. CHK_(ptr);
  823. CHK_(::_pbi::VerifyUTF8(str, "palm.lily.v1.ExcelModel.Sheet.name"));
  824. } else {
  825. goto handle_unusual;
  826. }
  827. continue;
  828. // repeated .palm.lily.v1.ExcelModel.Sheet.Cell cells = 2;
  829. case 2:
  830. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  831. ptr -= 1;
  832. do {
  833. ptr += 1;
  834. ptr = ctx->ParseMessage(_internal_add_cells(), ptr);
  835. CHK_(ptr);
  836. if (!ctx->DataAvailable(ptr)) break;
  837. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  838. } else {
  839. goto handle_unusual;
  840. }
  841. continue;
  842. default:
  843. goto handle_unusual;
  844. } // switch
  845. handle_unusual:
  846. if ((tag == 0) || ((tag & 7) == 4)) {
  847. CHK_(ptr);
  848. ctx->SetLastTag(tag);
  849. goto message_done;
  850. }
  851. ptr = UnknownFieldParse(
  852. tag,
  853. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  854. ptr, ctx);
  855. CHK_(ptr != nullptr);
  856. } // while
  857. message_done:
  858. return ptr;
  859. failure:
  860. ptr = nullptr;
  861. goto message_done;
  862. #undef CHK_
  863. }
  864. ::uint8_t* ExcelModel_Sheet::_InternalSerialize(
  865. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  866. // @@protoc_insertion_point(serialize_to_array_start:palm.lily.v1.ExcelModel.Sheet)
  867. ::uint32_t cached_has_bits = 0;
  868. (void) cached_has_bits;
  869. // string name = 1;
  870. if (!this->_internal_name().empty()) {
  871. const std::string& _s = this->_internal_name();
  872. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  873. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "palm.lily.v1.ExcelModel.Sheet.name");
  874. target = stream->WriteStringMaybeAliased(1, _s, target);
  875. }
  876. // repeated .palm.lily.v1.ExcelModel.Sheet.Cell cells = 2;
  877. for (unsigned i = 0,
  878. n = static_cast<unsigned>(this->_internal_cells_size()); i < n; i++) {
  879. const auto& repfield = this->_internal_cells(i);
  880. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  881. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  882. }
  883. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  884. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  885. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  886. }
  887. // @@protoc_insertion_point(serialize_to_array_end:palm.lily.v1.ExcelModel.Sheet)
  888. return target;
  889. }
  890. ::size_t ExcelModel_Sheet::ByteSizeLong() const {
  891. // @@protoc_insertion_point(message_byte_size_start:palm.lily.v1.ExcelModel.Sheet)
  892. ::size_t total_size = 0;
  893. ::uint32_t cached_has_bits = 0;
  894. // Prevent compiler warnings about cached_has_bits being unused
  895. (void) cached_has_bits;
  896. // repeated .palm.lily.v1.ExcelModel.Sheet.Cell cells = 2;
  897. total_size += 1UL * this->_internal_cells_size();
  898. for (const auto& msg : this->_internal_cells()) {
  899. total_size +=
  900. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  901. }
  902. // string name = 1;
  903. if (!this->_internal_name().empty()) {
  904. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  905. this->_internal_name());
  906. }
  907. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  908. }
  909. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExcelModel_Sheet::_class_data_ = {
  910. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  911. ExcelModel_Sheet::MergeImpl
  912. };
  913. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExcelModel_Sheet::GetClassData() const { return &_class_data_; }
  914. void ExcelModel_Sheet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  915. auto* const _this = static_cast<ExcelModel_Sheet*>(&to_msg);
  916. auto& from = static_cast<const ExcelModel_Sheet&>(from_msg);
  917. // @@protoc_insertion_point(class_specific_merge_from_start:palm.lily.v1.ExcelModel.Sheet)
  918. ABSL_DCHECK_NE(&from, _this);
  919. ::uint32_t cached_has_bits = 0;
  920. (void) cached_has_bits;
  921. _this->_internal_mutable_cells()->MergeFrom(from._internal_cells());
  922. if (!from._internal_name().empty()) {
  923. _this->_internal_set_name(from._internal_name());
  924. }
  925. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  926. }
  927. void ExcelModel_Sheet::CopyFrom(const ExcelModel_Sheet& from) {
  928. // @@protoc_insertion_point(class_specific_copy_from_start:palm.lily.v1.ExcelModel.Sheet)
  929. if (&from == this) return;
  930. Clear();
  931. MergeFrom(from);
  932. }
  933. bool ExcelModel_Sheet::IsInitialized() const {
  934. return true;
  935. }
  936. void ExcelModel_Sheet::InternalSwap(ExcelModel_Sheet* other) {
  937. using std::swap;
  938. auto* lhs_arena = GetArenaForAllocation();
  939. auto* rhs_arena = other->GetArenaForAllocation();
  940. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  941. _internal_mutable_cells()->InternalSwap(other->_internal_mutable_cells());
  942. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
  943. &other->_impl_.name_, rhs_arena);
  944. }
  945. ::PROTOBUF_NAMESPACE_ID::Metadata ExcelModel_Sheet::GetMetadata() const {
  946. return ::_pbi::AssignDescriptors(
  947. &descriptor_table_lily_2eproto_getter, &descriptor_table_lily_2eproto_once,
  948. file_level_metadata_lily_2eproto[2]);
  949. }
  950. // ===================================================================
  951. class ExcelModel::_Internal {
  952. public:
  953. };
  954. ExcelModel::ExcelModel(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  955. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  956. SharedCtor(arena);
  957. // @@protoc_insertion_point(arena_constructor:palm.lily.v1.ExcelModel)
  958. }
  959. ExcelModel::ExcelModel(const ExcelModel& from)
  960. : ::PROTOBUF_NAMESPACE_ID::Message() {
  961. ExcelModel* const _this = this; (void)_this;
  962. new (&_impl_) Impl_{
  963. decltype(_impl_.sheets_){from._impl_.sheets_}
  964. , /*decltype(_impl_._cached_size_)*/{}};
  965. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  966. // @@protoc_insertion_point(copy_constructor:palm.lily.v1.ExcelModel)
  967. }
  968. inline void ExcelModel::SharedCtor(::_pb::Arena* arena) {
  969. (void)arena;
  970. new (&_impl_) Impl_{
  971. decltype(_impl_.sheets_){arena}
  972. , /*decltype(_impl_._cached_size_)*/{}
  973. };
  974. }
  975. ExcelModel::~ExcelModel() {
  976. // @@protoc_insertion_point(destructor:palm.lily.v1.ExcelModel)
  977. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  978. (void)arena;
  979. return;
  980. }
  981. SharedDtor();
  982. }
  983. inline void ExcelModel::SharedDtor() {
  984. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  985. _internal_mutable_sheets()->~RepeatedPtrField();
  986. }
  987. void ExcelModel::SetCachedSize(int size) const {
  988. _impl_._cached_size_.Set(size);
  989. }
  990. void ExcelModel::Clear() {
  991. // @@protoc_insertion_point(message_clear_start:palm.lily.v1.ExcelModel)
  992. ::uint32_t cached_has_bits = 0;
  993. // Prevent compiler warnings about cached_has_bits being unused
  994. (void) cached_has_bits;
  995. _internal_mutable_sheets()->Clear();
  996. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  997. }
  998. const char* ExcelModel::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  999. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1000. while (!ctx->Done(&ptr)) {
  1001. ::uint32_t tag;
  1002. ptr = ::_pbi::ReadTag(ptr, &tag);
  1003. switch (tag >> 3) {
  1004. // repeated .palm.lily.v1.ExcelModel.Sheet sheets = 1;
  1005. case 1:
  1006. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  1007. ptr -= 1;
  1008. do {
  1009. ptr += 1;
  1010. ptr = ctx->ParseMessage(_internal_add_sheets(), ptr);
  1011. CHK_(ptr);
  1012. if (!ctx->DataAvailable(ptr)) break;
  1013. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  1014. } else {
  1015. goto handle_unusual;
  1016. }
  1017. continue;
  1018. default:
  1019. goto handle_unusual;
  1020. } // switch
  1021. handle_unusual:
  1022. if ((tag == 0) || ((tag & 7) == 4)) {
  1023. CHK_(ptr);
  1024. ctx->SetLastTag(tag);
  1025. goto message_done;
  1026. }
  1027. ptr = UnknownFieldParse(
  1028. tag,
  1029. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1030. ptr, ctx);
  1031. CHK_(ptr != nullptr);
  1032. } // while
  1033. message_done:
  1034. return ptr;
  1035. failure:
  1036. ptr = nullptr;
  1037. goto message_done;
  1038. #undef CHK_
  1039. }
  1040. ::uint8_t* ExcelModel::_InternalSerialize(
  1041. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1042. // @@protoc_insertion_point(serialize_to_array_start:palm.lily.v1.ExcelModel)
  1043. ::uint32_t cached_has_bits = 0;
  1044. (void) cached_has_bits;
  1045. // repeated .palm.lily.v1.ExcelModel.Sheet sheets = 1;
  1046. for (unsigned i = 0,
  1047. n = static_cast<unsigned>(this->_internal_sheets_size()); i < n; i++) {
  1048. const auto& repfield = this->_internal_sheets(i);
  1049. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1050. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  1051. }
  1052. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1053. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1054. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1055. }
  1056. // @@protoc_insertion_point(serialize_to_array_end:palm.lily.v1.ExcelModel)
  1057. return target;
  1058. }
  1059. ::size_t ExcelModel::ByteSizeLong() const {
  1060. // @@protoc_insertion_point(message_byte_size_start:palm.lily.v1.ExcelModel)
  1061. ::size_t total_size = 0;
  1062. ::uint32_t cached_has_bits = 0;
  1063. // Prevent compiler warnings about cached_has_bits being unused
  1064. (void) cached_has_bits;
  1065. // repeated .palm.lily.v1.ExcelModel.Sheet sheets = 1;
  1066. total_size += 1UL * this->_internal_sheets_size();
  1067. for (const auto& msg : this->_internal_sheets()) {
  1068. total_size +=
  1069. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1070. }
  1071. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1072. }
  1073. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExcelModel::_class_data_ = {
  1074. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1075. ExcelModel::MergeImpl
  1076. };
  1077. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExcelModel::GetClassData() const { return &_class_data_; }
  1078. void ExcelModel::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1079. auto* const _this = static_cast<ExcelModel*>(&to_msg);
  1080. auto& from = static_cast<const ExcelModel&>(from_msg);
  1081. // @@protoc_insertion_point(class_specific_merge_from_start:palm.lily.v1.ExcelModel)
  1082. ABSL_DCHECK_NE(&from, _this);
  1083. ::uint32_t cached_has_bits = 0;
  1084. (void) cached_has_bits;
  1085. _this->_internal_mutable_sheets()->MergeFrom(from._internal_sheets());
  1086. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1087. }
  1088. void ExcelModel::CopyFrom(const ExcelModel& from) {
  1089. // @@protoc_insertion_point(class_specific_copy_from_start:palm.lily.v1.ExcelModel)
  1090. if (&from == this) return;
  1091. Clear();
  1092. MergeFrom(from);
  1093. }
  1094. bool ExcelModel::IsInitialized() const {
  1095. return true;
  1096. }
  1097. void ExcelModel::InternalSwap(ExcelModel* other) {
  1098. using std::swap;
  1099. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1100. _internal_mutable_sheets()->InternalSwap(other->_internal_mutable_sheets());
  1101. }
  1102. ::PROTOBUF_NAMESPACE_ID::Metadata ExcelModel::GetMetadata() const {
  1103. return ::_pbi::AssignDescriptors(
  1104. &descriptor_table_lily_2eproto_getter, &descriptor_table_lily_2eproto_once,
  1105. file_level_metadata_lily_2eproto[3]);
  1106. }
  1107. // ===================================================================
  1108. TexToRequest_FilesEntry_DoNotUse::TexToRequest_FilesEntry_DoNotUse() {}
  1109. TexToRequest_FilesEntry_DoNotUse::TexToRequest_FilesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1110. : SuperType(arena) {}
  1111. void TexToRequest_FilesEntry_DoNotUse::MergeFrom(const TexToRequest_FilesEntry_DoNotUse& other) {
  1112. MergeFromInternal(other);
  1113. }
  1114. ::PROTOBUF_NAMESPACE_ID::Metadata TexToRequest_FilesEntry_DoNotUse::GetMetadata() const {
  1115. return ::_pbi::AssignDescriptors(
  1116. &descriptor_table_lily_2eproto_getter, &descriptor_table_lily_2eproto_once,
  1117. file_level_metadata_lily_2eproto[4]);
  1118. }
  1119. // ===================================================================
  1120. class TexToRequest::_Internal {
  1121. public:
  1122. };
  1123. TexToRequest::TexToRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1124. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1125. SharedCtor(arena);
  1126. // @@protoc_insertion_point(arena_constructor:palm.lily.v1.TexToRequest)
  1127. }
  1128. TexToRequest::TexToRequest(const TexToRequest& from)
  1129. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1130. TexToRequest* const _this = this; (void)_this;
  1131. new (&_impl_) Impl_{
  1132. /*decltype(_impl_.files_)*/{}
  1133. , /*decltype(_impl_._cached_size_)*/{}};
  1134. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1135. _this->_impl_.files_.MergeFrom(from._impl_.files_);
  1136. // @@protoc_insertion_point(copy_constructor:palm.lily.v1.TexToRequest)
  1137. }
  1138. inline void TexToRequest::SharedCtor(::_pb::Arena* arena) {
  1139. (void)arena;
  1140. new (&_impl_) Impl_{
  1141. /*decltype(_impl_.files_)*/{::_pbi::ArenaInitialized(), arena}
  1142. , /*decltype(_impl_._cached_size_)*/{}
  1143. };
  1144. }
  1145. TexToRequest::~TexToRequest() {
  1146. // @@protoc_insertion_point(destructor:palm.lily.v1.TexToRequest)
  1147. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1148. (void)arena;
  1149. return;
  1150. }
  1151. SharedDtor();
  1152. }
  1153. inline void TexToRequest::SharedDtor() {
  1154. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1155. _impl_.files_.~MapField();
  1156. }
  1157. void TexToRequest::SetCachedSize(int size) const {
  1158. _impl_._cached_size_.Set(size);
  1159. }
  1160. void TexToRequest::Clear() {
  1161. // @@protoc_insertion_point(message_clear_start:palm.lily.v1.TexToRequest)
  1162. ::uint32_t cached_has_bits = 0;
  1163. // Prevent compiler warnings about cached_has_bits being unused
  1164. (void) cached_has_bits;
  1165. _impl_.files_.Clear();
  1166. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1167. }
  1168. const char* TexToRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1169. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1170. while (!ctx->Done(&ptr)) {
  1171. ::uint32_t tag;
  1172. ptr = ::_pbi::ReadTag(ptr, &tag);
  1173. switch (tag >> 3) {
  1174. // map<string, bytes> files = 1;
  1175. case 1:
  1176. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  1177. ptr -= 1;
  1178. do {
  1179. ptr += 1;
  1180. ptr = ctx->ParseMessage(&_impl_.files_, ptr);
  1181. CHK_(ptr);
  1182. if (!ctx->DataAvailable(ptr)) break;
  1183. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  1184. } else {
  1185. goto handle_unusual;
  1186. }
  1187. continue;
  1188. default:
  1189. goto handle_unusual;
  1190. } // switch
  1191. handle_unusual:
  1192. if ((tag == 0) || ((tag & 7) == 4)) {
  1193. CHK_(ptr);
  1194. ctx->SetLastTag(tag);
  1195. goto message_done;
  1196. }
  1197. ptr = UnknownFieldParse(
  1198. tag,
  1199. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1200. ptr, ctx);
  1201. CHK_(ptr != nullptr);
  1202. } // while
  1203. message_done:
  1204. return ptr;
  1205. failure:
  1206. ptr = nullptr;
  1207. goto message_done;
  1208. #undef CHK_
  1209. }
  1210. ::uint8_t* TexToRequest::_InternalSerialize(
  1211. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1212. // @@protoc_insertion_point(serialize_to_array_start:palm.lily.v1.TexToRequest)
  1213. ::uint32_t cached_has_bits = 0;
  1214. (void) cached_has_bits;
  1215. // map<string, bytes> files = 1;
  1216. if (!this->_internal_files().empty()) {
  1217. using MapType = ::_pb::Map<std::string, std::string>;
  1218. using WireHelper = TexToRequest_FilesEntry_DoNotUse::Funcs;
  1219. const auto& map_field = this->_internal_files();
  1220. auto check_utf8 = [](const MapType::value_type& entry) {
  1221. (void)entry;
  1222. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1223. entry.first.data(), static_cast<int>(entry.first.length()),
  1224. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "palm.lily.v1.TexToRequest.files");
  1225. };
  1226. if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
  1227. for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
  1228. target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
  1229. check_utf8(entry);
  1230. }
  1231. } else {
  1232. for (const auto& entry : map_field) {
  1233. target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
  1234. check_utf8(entry);
  1235. }
  1236. }
  1237. }
  1238. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1239. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1240. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1241. }
  1242. // @@protoc_insertion_point(serialize_to_array_end:palm.lily.v1.TexToRequest)
  1243. return target;
  1244. }
  1245. ::size_t TexToRequest::ByteSizeLong() const {
  1246. // @@protoc_insertion_point(message_byte_size_start:palm.lily.v1.TexToRequest)
  1247. ::size_t total_size = 0;
  1248. ::uint32_t cached_has_bits = 0;
  1249. // Prevent compiler warnings about cached_has_bits being unused
  1250. (void) cached_has_bits;
  1251. // map<string, bytes> files = 1;
  1252. total_size += 1 *
  1253. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_files_size());
  1254. for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
  1255. it = this->_internal_files().begin();
  1256. it != this->_internal_files().end(); ++it) {
  1257. total_size += TexToRequest_FilesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
  1258. }
  1259. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1260. }
  1261. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TexToRequest::_class_data_ = {
  1262. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1263. TexToRequest::MergeImpl
  1264. };
  1265. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TexToRequest::GetClassData() const { return &_class_data_; }
  1266. void TexToRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1267. auto* const _this = static_cast<TexToRequest*>(&to_msg);
  1268. auto& from = static_cast<const TexToRequest&>(from_msg);
  1269. // @@protoc_insertion_point(class_specific_merge_from_start:palm.lily.v1.TexToRequest)
  1270. ABSL_DCHECK_NE(&from, _this);
  1271. ::uint32_t cached_has_bits = 0;
  1272. (void) cached_has_bits;
  1273. _this->_impl_.files_.MergeFrom(from._impl_.files_);
  1274. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1275. }
  1276. void TexToRequest::CopyFrom(const TexToRequest& from) {
  1277. // @@protoc_insertion_point(class_specific_copy_from_start:palm.lily.v1.TexToRequest)
  1278. if (&from == this) return;
  1279. Clear();
  1280. MergeFrom(from);
  1281. }
  1282. bool TexToRequest::IsInitialized() const {
  1283. return true;
  1284. }
  1285. void TexToRequest::InternalSwap(TexToRequest* other) {
  1286. using std::swap;
  1287. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1288. _impl_.files_.InternalSwap(&other->_impl_.files_);
  1289. }
  1290. ::PROTOBUF_NAMESPACE_ID::Metadata TexToRequest::GetMetadata() const {
  1291. return ::_pbi::AssignDescriptors(
  1292. &descriptor_table_lily_2eproto_getter, &descriptor_table_lily_2eproto_once,
  1293. file_level_metadata_lily_2eproto[5]);
  1294. }
  1295. // ===================================================================
  1296. class EpubBuildRequest::_Internal {
  1297. public:
  1298. };
  1299. EpubBuildRequest::EpubBuildRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1300. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) {
  1301. // @@protoc_insertion_point(arena_constructor:palm.lily.v1.EpubBuildRequest)
  1302. }
  1303. EpubBuildRequest::EpubBuildRequest(const EpubBuildRequest& from)
  1304. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  1305. EpubBuildRequest* const _this = this; (void)_this;
  1306. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1307. // @@protoc_insertion_point(copy_constructor:palm.lily.v1.EpubBuildRequest)
  1308. }
  1309. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EpubBuildRequest::_class_data_ = {
  1310. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  1311. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  1312. };
  1313. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EpubBuildRequest::GetClassData() const { return &_class_data_; }
  1314. ::PROTOBUF_NAMESPACE_ID::Metadata EpubBuildRequest::GetMetadata() const {
  1315. return ::_pbi::AssignDescriptors(
  1316. &descriptor_table_lily_2eproto_getter, &descriptor_table_lily_2eproto_once,
  1317. file_level_metadata_lily_2eproto[6]);
  1318. }
  1319. // @@protoc_insertion_point(namespace_scope)
  1320. } // namespace v1
  1321. } // namespace lily
  1322. } // namespace palm
  1323. PROTOBUF_NAMESPACE_OPEN
  1324. template<> PROTOBUF_NOINLINE ::palm::lily::v1::File*
  1325. Arena::CreateMaybeMessage< ::palm::lily::v1::File >(Arena* arena) {
  1326. return Arena::CreateMessageInternal< ::palm::lily::v1::File >(arena);
  1327. }
  1328. template<> PROTOBUF_NOINLINE ::palm::lily::v1::ExcelModel_Sheet_Cell*
  1329. Arena::CreateMaybeMessage< ::palm::lily::v1::ExcelModel_Sheet_Cell >(Arena* arena) {
  1330. return Arena::CreateMessageInternal< ::palm::lily::v1::ExcelModel_Sheet_Cell >(arena);
  1331. }
  1332. template<> PROTOBUF_NOINLINE ::palm::lily::v1::ExcelModel_Sheet*
  1333. Arena::CreateMaybeMessage< ::palm::lily::v1::ExcelModel_Sheet >(Arena* arena) {
  1334. return Arena::CreateMessageInternal< ::palm::lily::v1::ExcelModel_Sheet >(arena);
  1335. }
  1336. template<> PROTOBUF_NOINLINE ::palm::lily::v1::ExcelModel*
  1337. Arena::CreateMaybeMessage< ::palm::lily::v1::ExcelModel >(Arena* arena) {
  1338. return Arena::CreateMessageInternal< ::palm::lily::v1::ExcelModel >(arena);
  1339. }
  1340. template<> PROTOBUF_NOINLINE ::palm::lily::v1::TexToRequest_FilesEntry_DoNotUse*
  1341. Arena::CreateMaybeMessage< ::palm::lily::v1::TexToRequest_FilesEntry_DoNotUse >(Arena* arena) {
  1342. return Arena::CreateMessageInternal< ::palm::lily::v1::TexToRequest_FilesEntry_DoNotUse >(arena);
  1343. }
  1344. template<> PROTOBUF_NOINLINE ::palm::lily::v1::TexToRequest*
  1345. Arena::CreateMaybeMessage< ::palm::lily::v1::TexToRequest >(Arena* arena) {
  1346. return Arena::CreateMessageInternal< ::palm::lily::v1::TexToRequest >(arena);
  1347. }
  1348. template<> PROTOBUF_NOINLINE ::palm::lily::v1::EpubBuildRequest*
  1349. Arena::CreateMaybeMessage< ::palm::lily::v1::EpubBuildRequest >(Arena* arena) {
  1350. return Arena::CreateMessageInternal< ::palm::lily::v1::EpubBuildRequest >(arena);
  1351. }
  1352. PROTOBUF_NAMESPACE_CLOSE
  1353. // @@protoc_insertion_point(global_scope)
  1354. #include "google/protobuf/port_undef.inc"