meta.rs 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523
  1. // This file is generated by rust-protobuf 2.25.2. Do not edit
  2. // @generated
  3. // https://github.com/rust-lang/rust-clippy/issues/702
  4. #![allow(unknown_lints)]
  5. #![allow(clippy::all)]
  6. #![allow(unused_attributes)]
  7. #![cfg_attr(rustfmt, rustfmt::skip)]
  8. #![allow(box_pointers)]
  9. #![allow(dead_code)]
  10. #![allow(missing_docs)]
  11. #![allow(non_camel_case_types)]
  12. #![allow(non_snake_case)]
  13. #![allow(non_upper_case_globals)]
  14. #![allow(trivial_casts)]
  15. #![allow(unused_imports)]
  16. #![allow(unused_results)]
  17. //! Generated file from `meta.proto`
  18. /// Generated files are compatible only with the same version
  19. /// of protobuf runtime.
  20. // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_25_2;
  21. #[derive(PartialEq,Clone,Default)]
  22. pub struct GridMeta {
  23. // message fields
  24. pub grid_id: ::std::string::String,
  25. pub fields: ::protobuf::RepeatedField<FieldMeta>,
  26. pub block_metas: ::protobuf::RepeatedField<GridBlockMeta>,
  27. // special fields
  28. pub unknown_fields: ::protobuf::UnknownFields,
  29. pub cached_size: ::protobuf::CachedSize,
  30. }
  31. impl<'a> ::std::default::Default for &'a GridMeta {
  32. fn default() -> &'a GridMeta {
  33. <GridMeta as ::protobuf::Message>::default_instance()
  34. }
  35. }
  36. impl GridMeta {
  37. pub fn new() -> GridMeta {
  38. ::std::default::Default::default()
  39. }
  40. // string grid_id = 1;
  41. pub fn get_grid_id(&self) -> &str {
  42. &self.grid_id
  43. }
  44. pub fn clear_grid_id(&mut self) {
  45. self.grid_id.clear();
  46. }
  47. // Param is passed by value, moved
  48. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  49. self.grid_id = v;
  50. }
  51. // Mutable pointer to the field.
  52. // If field is not initialized, it is initialized with default value first.
  53. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  54. &mut self.grid_id
  55. }
  56. // Take field
  57. pub fn take_grid_id(&mut self) -> ::std::string::String {
  58. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  59. }
  60. // repeated .FieldMeta fields = 2;
  61. pub fn get_fields(&self) -> &[FieldMeta] {
  62. &self.fields
  63. }
  64. pub fn clear_fields(&mut self) {
  65. self.fields.clear();
  66. }
  67. // Param is passed by value, moved
  68. pub fn set_fields(&mut self, v: ::protobuf::RepeatedField<FieldMeta>) {
  69. self.fields = v;
  70. }
  71. // Mutable pointer to the field.
  72. pub fn mut_fields(&mut self) -> &mut ::protobuf::RepeatedField<FieldMeta> {
  73. &mut self.fields
  74. }
  75. // Take field
  76. pub fn take_fields(&mut self) -> ::protobuf::RepeatedField<FieldMeta> {
  77. ::std::mem::replace(&mut self.fields, ::protobuf::RepeatedField::new())
  78. }
  79. // repeated .GridBlockMeta block_metas = 3;
  80. pub fn get_block_metas(&self) -> &[GridBlockMeta] {
  81. &self.block_metas
  82. }
  83. pub fn clear_block_metas(&mut self) {
  84. self.block_metas.clear();
  85. }
  86. // Param is passed by value, moved
  87. pub fn set_block_metas(&mut self, v: ::protobuf::RepeatedField<GridBlockMeta>) {
  88. self.block_metas = v;
  89. }
  90. // Mutable pointer to the field.
  91. pub fn mut_block_metas(&mut self) -> &mut ::protobuf::RepeatedField<GridBlockMeta> {
  92. &mut self.block_metas
  93. }
  94. // Take field
  95. pub fn take_block_metas(&mut self) -> ::protobuf::RepeatedField<GridBlockMeta> {
  96. ::std::mem::replace(&mut self.block_metas, ::protobuf::RepeatedField::new())
  97. }
  98. }
  99. impl ::protobuf::Message for GridMeta {
  100. fn is_initialized(&self) -> bool {
  101. for v in &self.fields {
  102. if !v.is_initialized() {
  103. return false;
  104. }
  105. };
  106. for v in &self.block_metas {
  107. if !v.is_initialized() {
  108. return false;
  109. }
  110. };
  111. true
  112. }
  113. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  114. while !is.eof()? {
  115. let (field_number, wire_type) = is.read_tag_unpack()?;
  116. match field_number {
  117. 1 => {
  118. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  119. },
  120. 2 => {
  121. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?;
  122. },
  123. 3 => {
  124. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.block_metas)?;
  125. },
  126. _ => {
  127. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  128. },
  129. };
  130. }
  131. ::std::result::Result::Ok(())
  132. }
  133. // Compute sizes of nested messages
  134. #[allow(unused_variables)]
  135. fn compute_size(&self) -> u32 {
  136. let mut my_size = 0;
  137. if !self.grid_id.is_empty() {
  138. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  139. }
  140. for value in &self.fields {
  141. let len = value.compute_size();
  142. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  143. };
  144. for value in &self.block_metas {
  145. let len = value.compute_size();
  146. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  147. };
  148. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  149. self.cached_size.set(my_size);
  150. my_size
  151. }
  152. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  153. if !self.grid_id.is_empty() {
  154. os.write_string(1, &self.grid_id)?;
  155. }
  156. for v in &self.fields {
  157. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  158. os.write_raw_varint32(v.get_cached_size())?;
  159. v.write_to_with_cached_sizes(os)?;
  160. };
  161. for v in &self.block_metas {
  162. os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  163. os.write_raw_varint32(v.get_cached_size())?;
  164. v.write_to_with_cached_sizes(os)?;
  165. };
  166. os.write_unknown_fields(self.get_unknown_fields())?;
  167. ::std::result::Result::Ok(())
  168. }
  169. fn get_cached_size(&self) -> u32 {
  170. self.cached_size.get()
  171. }
  172. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  173. &self.unknown_fields
  174. }
  175. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  176. &mut self.unknown_fields
  177. }
  178. fn as_any(&self) -> &dyn (::std::any::Any) {
  179. self as &dyn (::std::any::Any)
  180. }
  181. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  182. self as &mut dyn (::std::any::Any)
  183. }
  184. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  185. self
  186. }
  187. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  188. Self::descriptor_static()
  189. }
  190. fn new() -> GridMeta {
  191. GridMeta::new()
  192. }
  193. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  194. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  195. descriptor.get(|| {
  196. let mut fields = ::std::vec::Vec::new();
  197. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  198. "grid_id",
  199. |m: &GridMeta| { &m.grid_id },
  200. |m: &mut GridMeta| { &mut m.grid_id },
  201. ));
  202. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldMeta>>(
  203. "fields",
  204. |m: &GridMeta| { &m.fields },
  205. |m: &mut GridMeta| { &mut m.fields },
  206. ));
  207. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockMeta>>(
  208. "block_metas",
  209. |m: &GridMeta| { &m.block_metas },
  210. |m: &mut GridMeta| { &mut m.block_metas },
  211. ));
  212. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridMeta>(
  213. "GridMeta",
  214. fields,
  215. file_descriptor_proto()
  216. )
  217. })
  218. }
  219. fn default_instance() -> &'static GridMeta {
  220. static instance: ::protobuf::rt::LazyV2<GridMeta> = ::protobuf::rt::LazyV2::INIT;
  221. instance.get(GridMeta::new)
  222. }
  223. }
  224. impl ::protobuf::Clear for GridMeta {
  225. fn clear(&mut self) {
  226. self.grid_id.clear();
  227. self.fields.clear();
  228. self.block_metas.clear();
  229. self.unknown_fields.clear();
  230. }
  231. }
  232. impl ::std::fmt::Debug for GridMeta {
  233. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  234. ::protobuf::text_format::fmt(self, f)
  235. }
  236. }
  237. impl ::protobuf::reflect::ProtobufValue for GridMeta {
  238. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  239. ::protobuf::reflect::ReflectValueRef::Message(self)
  240. }
  241. }
  242. #[derive(PartialEq,Clone,Default)]
  243. pub struct GridBlockMeta {
  244. // message fields
  245. pub block_id: ::std::string::String,
  246. pub start_row_index: i32,
  247. pub row_count: i32,
  248. // special fields
  249. pub unknown_fields: ::protobuf::UnknownFields,
  250. pub cached_size: ::protobuf::CachedSize,
  251. }
  252. impl<'a> ::std::default::Default for &'a GridBlockMeta {
  253. fn default() -> &'a GridBlockMeta {
  254. <GridBlockMeta as ::protobuf::Message>::default_instance()
  255. }
  256. }
  257. impl GridBlockMeta {
  258. pub fn new() -> GridBlockMeta {
  259. ::std::default::Default::default()
  260. }
  261. // string block_id = 1;
  262. pub fn get_block_id(&self) -> &str {
  263. &self.block_id
  264. }
  265. pub fn clear_block_id(&mut self) {
  266. self.block_id.clear();
  267. }
  268. // Param is passed by value, moved
  269. pub fn set_block_id(&mut self, v: ::std::string::String) {
  270. self.block_id = v;
  271. }
  272. // Mutable pointer to the field.
  273. // If field is not initialized, it is initialized with default value first.
  274. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  275. &mut self.block_id
  276. }
  277. // Take field
  278. pub fn take_block_id(&mut self) -> ::std::string::String {
  279. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  280. }
  281. // int32 start_row_index = 2;
  282. pub fn get_start_row_index(&self) -> i32 {
  283. self.start_row_index
  284. }
  285. pub fn clear_start_row_index(&mut self) {
  286. self.start_row_index = 0;
  287. }
  288. // Param is passed by value, moved
  289. pub fn set_start_row_index(&mut self, v: i32) {
  290. self.start_row_index = v;
  291. }
  292. // int32 row_count = 3;
  293. pub fn get_row_count(&self) -> i32 {
  294. self.row_count
  295. }
  296. pub fn clear_row_count(&mut self) {
  297. self.row_count = 0;
  298. }
  299. // Param is passed by value, moved
  300. pub fn set_row_count(&mut self, v: i32) {
  301. self.row_count = v;
  302. }
  303. }
  304. impl ::protobuf::Message for GridBlockMeta {
  305. fn is_initialized(&self) -> bool {
  306. true
  307. }
  308. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  309. while !is.eof()? {
  310. let (field_number, wire_type) = is.read_tag_unpack()?;
  311. match field_number {
  312. 1 => {
  313. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  314. },
  315. 2 => {
  316. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  317. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  318. }
  319. let tmp = is.read_int32()?;
  320. self.start_row_index = tmp;
  321. },
  322. 3 => {
  323. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  324. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  325. }
  326. let tmp = is.read_int32()?;
  327. self.row_count = tmp;
  328. },
  329. _ => {
  330. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  331. },
  332. };
  333. }
  334. ::std::result::Result::Ok(())
  335. }
  336. // Compute sizes of nested messages
  337. #[allow(unused_variables)]
  338. fn compute_size(&self) -> u32 {
  339. let mut my_size = 0;
  340. if !self.block_id.is_empty() {
  341. my_size += ::protobuf::rt::string_size(1, &self.block_id);
  342. }
  343. if self.start_row_index != 0 {
  344. my_size += ::protobuf::rt::value_size(2, self.start_row_index, ::protobuf::wire_format::WireTypeVarint);
  345. }
  346. if self.row_count != 0 {
  347. my_size += ::protobuf::rt::value_size(3, self.row_count, ::protobuf::wire_format::WireTypeVarint);
  348. }
  349. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  350. self.cached_size.set(my_size);
  351. my_size
  352. }
  353. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  354. if !self.block_id.is_empty() {
  355. os.write_string(1, &self.block_id)?;
  356. }
  357. if self.start_row_index != 0 {
  358. os.write_int32(2, self.start_row_index)?;
  359. }
  360. if self.row_count != 0 {
  361. os.write_int32(3, self.row_count)?;
  362. }
  363. os.write_unknown_fields(self.get_unknown_fields())?;
  364. ::std::result::Result::Ok(())
  365. }
  366. fn get_cached_size(&self) -> u32 {
  367. self.cached_size.get()
  368. }
  369. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  370. &self.unknown_fields
  371. }
  372. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  373. &mut self.unknown_fields
  374. }
  375. fn as_any(&self) -> &dyn (::std::any::Any) {
  376. self as &dyn (::std::any::Any)
  377. }
  378. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  379. self as &mut dyn (::std::any::Any)
  380. }
  381. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  382. self
  383. }
  384. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  385. Self::descriptor_static()
  386. }
  387. fn new() -> GridBlockMeta {
  388. GridBlockMeta::new()
  389. }
  390. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  391. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  392. descriptor.get(|| {
  393. let mut fields = ::std::vec::Vec::new();
  394. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  395. "block_id",
  396. |m: &GridBlockMeta| { &m.block_id },
  397. |m: &mut GridBlockMeta| { &mut m.block_id },
  398. ));
  399. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  400. "start_row_index",
  401. |m: &GridBlockMeta| { &m.start_row_index },
  402. |m: &mut GridBlockMeta| { &mut m.start_row_index },
  403. ));
  404. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  405. "row_count",
  406. |m: &GridBlockMeta| { &m.row_count },
  407. |m: &mut GridBlockMeta| { &mut m.row_count },
  408. ));
  409. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockMeta>(
  410. "GridBlockMeta",
  411. fields,
  412. file_descriptor_proto()
  413. )
  414. })
  415. }
  416. fn default_instance() -> &'static GridBlockMeta {
  417. static instance: ::protobuf::rt::LazyV2<GridBlockMeta> = ::protobuf::rt::LazyV2::INIT;
  418. instance.get(GridBlockMeta::new)
  419. }
  420. }
  421. impl ::protobuf::Clear for GridBlockMeta {
  422. fn clear(&mut self) {
  423. self.block_id.clear();
  424. self.start_row_index = 0;
  425. self.row_count = 0;
  426. self.unknown_fields.clear();
  427. }
  428. }
  429. impl ::std::fmt::Debug for GridBlockMeta {
  430. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  431. ::protobuf::text_format::fmt(self, f)
  432. }
  433. }
  434. impl ::protobuf::reflect::ProtobufValue for GridBlockMeta {
  435. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  436. ::protobuf::reflect::ReflectValueRef::Message(self)
  437. }
  438. }
  439. #[derive(PartialEq,Clone,Default)]
  440. pub struct GridBlockMetaSerde {
  441. // message fields
  442. pub block_id: ::std::string::String,
  443. pub row_metas: ::protobuf::RepeatedField<RowMeta>,
  444. // special fields
  445. pub unknown_fields: ::protobuf::UnknownFields,
  446. pub cached_size: ::protobuf::CachedSize,
  447. }
  448. impl<'a> ::std::default::Default for &'a GridBlockMetaSerde {
  449. fn default() -> &'a GridBlockMetaSerde {
  450. <GridBlockMetaSerde as ::protobuf::Message>::default_instance()
  451. }
  452. }
  453. impl GridBlockMetaSerde {
  454. pub fn new() -> GridBlockMetaSerde {
  455. ::std::default::Default::default()
  456. }
  457. // string block_id = 1;
  458. pub fn get_block_id(&self) -> &str {
  459. &self.block_id
  460. }
  461. pub fn clear_block_id(&mut self) {
  462. self.block_id.clear();
  463. }
  464. // Param is passed by value, moved
  465. pub fn set_block_id(&mut self, v: ::std::string::String) {
  466. self.block_id = v;
  467. }
  468. // Mutable pointer to the field.
  469. // If field is not initialized, it is initialized with default value first.
  470. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  471. &mut self.block_id
  472. }
  473. // Take field
  474. pub fn take_block_id(&mut self) -> ::std::string::String {
  475. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  476. }
  477. // repeated .RowMeta row_metas = 2;
  478. pub fn get_row_metas(&self) -> &[RowMeta] {
  479. &self.row_metas
  480. }
  481. pub fn clear_row_metas(&mut self) {
  482. self.row_metas.clear();
  483. }
  484. // Param is passed by value, moved
  485. pub fn set_row_metas(&mut self, v: ::protobuf::RepeatedField<RowMeta>) {
  486. self.row_metas = v;
  487. }
  488. // Mutable pointer to the field.
  489. pub fn mut_row_metas(&mut self) -> &mut ::protobuf::RepeatedField<RowMeta> {
  490. &mut self.row_metas
  491. }
  492. // Take field
  493. pub fn take_row_metas(&mut self) -> ::protobuf::RepeatedField<RowMeta> {
  494. ::std::mem::replace(&mut self.row_metas, ::protobuf::RepeatedField::new())
  495. }
  496. }
  497. impl ::protobuf::Message for GridBlockMetaSerde {
  498. fn is_initialized(&self) -> bool {
  499. for v in &self.row_metas {
  500. if !v.is_initialized() {
  501. return false;
  502. }
  503. };
  504. true
  505. }
  506. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  507. while !is.eof()? {
  508. let (field_number, wire_type) = is.read_tag_unpack()?;
  509. match field_number {
  510. 1 => {
  511. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  512. },
  513. 2 => {
  514. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_metas)?;
  515. },
  516. _ => {
  517. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  518. },
  519. };
  520. }
  521. ::std::result::Result::Ok(())
  522. }
  523. // Compute sizes of nested messages
  524. #[allow(unused_variables)]
  525. fn compute_size(&self) -> u32 {
  526. let mut my_size = 0;
  527. if !self.block_id.is_empty() {
  528. my_size += ::protobuf::rt::string_size(1, &self.block_id);
  529. }
  530. for value in &self.row_metas {
  531. let len = value.compute_size();
  532. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  533. };
  534. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  535. self.cached_size.set(my_size);
  536. my_size
  537. }
  538. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  539. if !self.block_id.is_empty() {
  540. os.write_string(1, &self.block_id)?;
  541. }
  542. for v in &self.row_metas {
  543. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  544. os.write_raw_varint32(v.get_cached_size())?;
  545. v.write_to_with_cached_sizes(os)?;
  546. };
  547. os.write_unknown_fields(self.get_unknown_fields())?;
  548. ::std::result::Result::Ok(())
  549. }
  550. fn get_cached_size(&self) -> u32 {
  551. self.cached_size.get()
  552. }
  553. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  554. &self.unknown_fields
  555. }
  556. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  557. &mut self.unknown_fields
  558. }
  559. fn as_any(&self) -> &dyn (::std::any::Any) {
  560. self as &dyn (::std::any::Any)
  561. }
  562. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  563. self as &mut dyn (::std::any::Any)
  564. }
  565. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  566. self
  567. }
  568. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  569. Self::descriptor_static()
  570. }
  571. fn new() -> GridBlockMetaSerde {
  572. GridBlockMetaSerde::new()
  573. }
  574. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  575. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  576. descriptor.get(|| {
  577. let mut fields = ::std::vec::Vec::new();
  578. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  579. "block_id",
  580. |m: &GridBlockMetaSerde| { &m.block_id },
  581. |m: &mut GridBlockMetaSerde| { &mut m.block_id },
  582. ));
  583. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowMeta>>(
  584. "row_metas",
  585. |m: &GridBlockMetaSerde| { &m.row_metas },
  586. |m: &mut GridBlockMetaSerde| { &mut m.row_metas },
  587. ));
  588. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockMetaSerde>(
  589. "GridBlockMetaSerde",
  590. fields,
  591. file_descriptor_proto()
  592. )
  593. })
  594. }
  595. fn default_instance() -> &'static GridBlockMetaSerde {
  596. static instance: ::protobuf::rt::LazyV2<GridBlockMetaSerde> = ::protobuf::rt::LazyV2::INIT;
  597. instance.get(GridBlockMetaSerde::new)
  598. }
  599. }
  600. impl ::protobuf::Clear for GridBlockMetaSerde {
  601. fn clear(&mut self) {
  602. self.block_id.clear();
  603. self.row_metas.clear();
  604. self.unknown_fields.clear();
  605. }
  606. }
  607. impl ::std::fmt::Debug for GridBlockMetaSerde {
  608. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  609. ::protobuf::text_format::fmt(self, f)
  610. }
  611. }
  612. impl ::protobuf::reflect::ProtobufValue for GridBlockMetaSerde {
  613. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  614. ::protobuf::reflect::ReflectValueRef::Message(self)
  615. }
  616. }
  617. #[derive(PartialEq,Clone,Default)]
  618. pub struct FieldMeta {
  619. // message fields
  620. pub id: ::std::string::String,
  621. pub name: ::std::string::String,
  622. pub desc: ::std::string::String,
  623. pub field_type: FieldType,
  624. pub frozen: bool,
  625. pub visibility: bool,
  626. pub width: i32,
  627. pub type_options: ::std::string::String,
  628. // special fields
  629. pub unknown_fields: ::protobuf::UnknownFields,
  630. pub cached_size: ::protobuf::CachedSize,
  631. }
  632. impl<'a> ::std::default::Default for &'a FieldMeta {
  633. fn default() -> &'a FieldMeta {
  634. <FieldMeta as ::protobuf::Message>::default_instance()
  635. }
  636. }
  637. impl FieldMeta {
  638. pub fn new() -> FieldMeta {
  639. ::std::default::Default::default()
  640. }
  641. // string id = 1;
  642. pub fn get_id(&self) -> &str {
  643. &self.id
  644. }
  645. pub fn clear_id(&mut self) {
  646. self.id.clear();
  647. }
  648. // Param is passed by value, moved
  649. pub fn set_id(&mut self, v: ::std::string::String) {
  650. self.id = v;
  651. }
  652. // Mutable pointer to the field.
  653. // If field is not initialized, it is initialized with default value first.
  654. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  655. &mut self.id
  656. }
  657. // Take field
  658. pub fn take_id(&mut self) -> ::std::string::String {
  659. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  660. }
  661. // string name = 2;
  662. pub fn get_name(&self) -> &str {
  663. &self.name
  664. }
  665. pub fn clear_name(&mut self) {
  666. self.name.clear();
  667. }
  668. // Param is passed by value, moved
  669. pub fn set_name(&mut self, v: ::std::string::String) {
  670. self.name = v;
  671. }
  672. // Mutable pointer to the field.
  673. // If field is not initialized, it is initialized with default value first.
  674. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  675. &mut self.name
  676. }
  677. // Take field
  678. pub fn take_name(&mut self) -> ::std::string::String {
  679. ::std::mem::replace(&mut self.name, ::std::string::String::new())
  680. }
  681. // string desc = 3;
  682. pub fn get_desc(&self) -> &str {
  683. &self.desc
  684. }
  685. pub fn clear_desc(&mut self) {
  686. self.desc.clear();
  687. }
  688. // Param is passed by value, moved
  689. pub fn set_desc(&mut self, v: ::std::string::String) {
  690. self.desc = v;
  691. }
  692. // Mutable pointer to the field.
  693. // If field is not initialized, it is initialized with default value first.
  694. pub fn mut_desc(&mut self) -> &mut ::std::string::String {
  695. &mut self.desc
  696. }
  697. // Take field
  698. pub fn take_desc(&mut self) -> ::std::string::String {
  699. ::std::mem::replace(&mut self.desc, ::std::string::String::new())
  700. }
  701. // .FieldType field_type = 4;
  702. pub fn get_field_type(&self) -> FieldType {
  703. self.field_type
  704. }
  705. pub fn clear_field_type(&mut self) {
  706. self.field_type = FieldType::RichText;
  707. }
  708. // Param is passed by value, moved
  709. pub fn set_field_type(&mut self, v: FieldType) {
  710. self.field_type = v;
  711. }
  712. // bool frozen = 5;
  713. pub fn get_frozen(&self) -> bool {
  714. self.frozen
  715. }
  716. pub fn clear_frozen(&mut self) {
  717. self.frozen = false;
  718. }
  719. // Param is passed by value, moved
  720. pub fn set_frozen(&mut self, v: bool) {
  721. self.frozen = v;
  722. }
  723. // bool visibility = 6;
  724. pub fn get_visibility(&self) -> bool {
  725. self.visibility
  726. }
  727. pub fn clear_visibility(&mut self) {
  728. self.visibility = false;
  729. }
  730. // Param is passed by value, moved
  731. pub fn set_visibility(&mut self, v: bool) {
  732. self.visibility = v;
  733. }
  734. // int32 width = 7;
  735. pub fn get_width(&self) -> i32 {
  736. self.width
  737. }
  738. pub fn clear_width(&mut self) {
  739. self.width = 0;
  740. }
  741. // Param is passed by value, moved
  742. pub fn set_width(&mut self, v: i32) {
  743. self.width = v;
  744. }
  745. // string type_options = 8;
  746. pub fn get_type_options(&self) -> &str {
  747. &self.type_options
  748. }
  749. pub fn clear_type_options(&mut self) {
  750. self.type_options.clear();
  751. }
  752. // Param is passed by value, moved
  753. pub fn set_type_options(&mut self, v: ::std::string::String) {
  754. self.type_options = v;
  755. }
  756. // Mutable pointer to the field.
  757. // If field is not initialized, it is initialized with default value first.
  758. pub fn mut_type_options(&mut self) -> &mut ::std::string::String {
  759. &mut self.type_options
  760. }
  761. // Take field
  762. pub fn take_type_options(&mut self) -> ::std::string::String {
  763. ::std::mem::replace(&mut self.type_options, ::std::string::String::new())
  764. }
  765. }
  766. impl ::protobuf::Message for FieldMeta {
  767. fn is_initialized(&self) -> bool {
  768. true
  769. }
  770. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  771. while !is.eof()? {
  772. let (field_number, wire_type) = is.read_tag_unpack()?;
  773. match field_number {
  774. 1 => {
  775. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  776. },
  777. 2 => {
  778. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
  779. },
  780. 3 => {
  781. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;
  782. },
  783. 4 => {
  784. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 4, &mut self.unknown_fields)?
  785. },
  786. 5 => {
  787. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  788. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  789. }
  790. let tmp = is.read_bool()?;
  791. self.frozen = tmp;
  792. },
  793. 6 => {
  794. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  795. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  796. }
  797. let tmp = is.read_bool()?;
  798. self.visibility = tmp;
  799. },
  800. 7 => {
  801. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  802. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  803. }
  804. let tmp = is.read_int32()?;
  805. self.width = tmp;
  806. },
  807. 8 => {
  808. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_options)?;
  809. },
  810. _ => {
  811. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  812. },
  813. };
  814. }
  815. ::std::result::Result::Ok(())
  816. }
  817. // Compute sizes of nested messages
  818. #[allow(unused_variables)]
  819. fn compute_size(&self) -> u32 {
  820. let mut my_size = 0;
  821. if !self.id.is_empty() {
  822. my_size += ::protobuf::rt::string_size(1, &self.id);
  823. }
  824. if !self.name.is_empty() {
  825. my_size += ::protobuf::rt::string_size(2, &self.name);
  826. }
  827. if !self.desc.is_empty() {
  828. my_size += ::protobuf::rt::string_size(3, &self.desc);
  829. }
  830. if self.field_type != FieldType::RichText {
  831. my_size += ::protobuf::rt::enum_size(4, self.field_type);
  832. }
  833. if self.frozen != false {
  834. my_size += 2;
  835. }
  836. if self.visibility != false {
  837. my_size += 2;
  838. }
  839. if self.width != 0 {
  840. my_size += ::protobuf::rt::value_size(7, self.width, ::protobuf::wire_format::WireTypeVarint);
  841. }
  842. if !self.type_options.is_empty() {
  843. my_size += ::protobuf::rt::string_size(8, &self.type_options);
  844. }
  845. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  846. self.cached_size.set(my_size);
  847. my_size
  848. }
  849. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  850. if !self.id.is_empty() {
  851. os.write_string(1, &self.id)?;
  852. }
  853. if !self.name.is_empty() {
  854. os.write_string(2, &self.name)?;
  855. }
  856. if !self.desc.is_empty() {
  857. os.write_string(3, &self.desc)?;
  858. }
  859. if self.field_type != FieldType::RichText {
  860. os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.field_type))?;
  861. }
  862. if self.frozen != false {
  863. os.write_bool(5, self.frozen)?;
  864. }
  865. if self.visibility != false {
  866. os.write_bool(6, self.visibility)?;
  867. }
  868. if self.width != 0 {
  869. os.write_int32(7, self.width)?;
  870. }
  871. if !self.type_options.is_empty() {
  872. os.write_string(8, &self.type_options)?;
  873. }
  874. os.write_unknown_fields(self.get_unknown_fields())?;
  875. ::std::result::Result::Ok(())
  876. }
  877. fn get_cached_size(&self) -> u32 {
  878. self.cached_size.get()
  879. }
  880. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  881. &self.unknown_fields
  882. }
  883. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  884. &mut self.unknown_fields
  885. }
  886. fn as_any(&self) -> &dyn (::std::any::Any) {
  887. self as &dyn (::std::any::Any)
  888. }
  889. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  890. self as &mut dyn (::std::any::Any)
  891. }
  892. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  893. self
  894. }
  895. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  896. Self::descriptor_static()
  897. }
  898. fn new() -> FieldMeta {
  899. FieldMeta::new()
  900. }
  901. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  902. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  903. descriptor.get(|| {
  904. let mut fields = ::std::vec::Vec::new();
  905. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  906. "id",
  907. |m: &FieldMeta| { &m.id },
  908. |m: &mut FieldMeta| { &mut m.id },
  909. ));
  910. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  911. "name",
  912. |m: &FieldMeta| { &m.name },
  913. |m: &mut FieldMeta| { &mut m.name },
  914. ));
  915. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  916. "desc",
  917. |m: &FieldMeta| { &m.desc },
  918. |m: &mut FieldMeta| { &mut m.desc },
  919. ));
  920. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldType>>(
  921. "field_type",
  922. |m: &FieldMeta| { &m.field_type },
  923. |m: &mut FieldMeta| { &mut m.field_type },
  924. ));
  925. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  926. "frozen",
  927. |m: &FieldMeta| { &m.frozen },
  928. |m: &mut FieldMeta| { &mut m.frozen },
  929. ));
  930. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  931. "visibility",
  932. |m: &FieldMeta| { &m.visibility },
  933. |m: &mut FieldMeta| { &mut m.visibility },
  934. ));
  935. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  936. "width",
  937. |m: &FieldMeta| { &m.width },
  938. |m: &mut FieldMeta| { &mut m.width },
  939. ));
  940. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  941. "type_options",
  942. |m: &FieldMeta| { &m.type_options },
  943. |m: &mut FieldMeta| { &mut m.type_options },
  944. ));
  945. ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldMeta>(
  946. "FieldMeta",
  947. fields,
  948. file_descriptor_proto()
  949. )
  950. })
  951. }
  952. fn default_instance() -> &'static FieldMeta {
  953. static instance: ::protobuf::rt::LazyV2<FieldMeta> = ::protobuf::rt::LazyV2::INIT;
  954. instance.get(FieldMeta::new)
  955. }
  956. }
  957. impl ::protobuf::Clear for FieldMeta {
  958. fn clear(&mut self) {
  959. self.id.clear();
  960. self.name.clear();
  961. self.desc.clear();
  962. self.field_type = FieldType::RichText;
  963. self.frozen = false;
  964. self.visibility = false;
  965. self.width = 0;
  966. self.type_options.clear();
  967. self.unknown_fields.clear();
  968. }
  969. }
  970. impl ::std::fmt::Debug for FieldMeta {
  971. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  972. ::protobuf::text_format::fmt(self, f)
  973. }
  974. }
  975. impl ::protobuf::reflect::ProtobufValue for FieldMeta {
  976. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  977. ::protobuf::reflect::ReflectValueRef::Message(self)
  978. }
  979. }
  980. #[derive(PartialEq,Clone,Default)]
  981. pub struct FieldChangeset {
  982. // message fields
  983. pub field_id: ::std::string::String,
  984. // message oneof groups
  985. pub one_of_name: ::std::option::Option<FieldChangeset_oneof_one_of_name>,
  986. pub one_of_desc: ::std::option::Option<FieldChangeset_oneof_one_of_desc>,
  987. pub one_of_field_type: ::std::option::Option<FieldChangeset_oneof_one_of_field_type>,
  988. pub one_of_frozen: ::std::option::Option<FieldChangeset_oneof_one_of_frozen>,
  989. pub one_of_visibility: ::std::option::Option<FieldChangeset_oneof_one_of_visibility>,
  990. pub one_of_width: ::std::option::Option<FieldChangeset_oneof_one_of_width>,
  991. pub one_of_type_options: ::std::option::Option<FieldChangeset_oneof_one_of_type_options>,
  992. // special fields
  993. pub unknown_fields: ::protobuf::UnknownFields,
  994. pub cached_size: ::protobuf::CachedSize,
  995. }
  996. impl<'a> ::std::default::Default for &'a FieldChangeset {
  997. fn default() -> &'a FieldChangeset {
  998. <FieldChangeset as ::protobuf::Message>::default_instance()
  999. }
  1000. }
  1001. #[derive(Clone,PartialEq,Debug)]
  1002. pub enum FieldChangeset_oneof_one_of_name {
  1003. name(::std::string::String),
  1004. }
  1005. #[derive(Clone,PartialEq,Debug)]
  1006. pub enum FieldChangeset_oneof_one_of_desc {
  1007. desc(::std::string::String),
  1008. }
  1009. #[derive(Clone,PartialEq,Debug)]
  1010. pub enum FieldChangeset_oneof_one_of_field_type {
  1011. field_type(FieldType),
  1012. }
  1013. #[derive(Clone,PartialEq,Debug)]
  1014. pub enum FieldChangeset_oneof_one_of_frozen {
  1015. frozen(bool),
  1016. }
  1017. #[derive(Clone,PartialEq,Debug)]
  1018. pub enum FieldChangeset_oneof_one_of_visibility {
  1019. visibility(bool),
  1020. }
  1021. #[derive(Clone,PartialEq,Debug)]
  1022. pub enum FieldChangeset_oneof_one_of_width {
  1023. width(i32),
  1024. }
  1025. #[derive(Clone,PartialEq,Debug)]
  1026. pub enum FieldChangeset_oneof_one_of_type_options {
  1027. type_options(::std::string::String),
  1028. }
  1029. impl FieldChangeset {
  1030. pub fn new() -> FieldChangeset {
  1031. ::std::default::Default::default()
  1032. }
  1033. // string field_id = 1;
  1034. pub fn get_field_id(&self) -> &str {
  1035. &self.field_id
  1036. }
  1037. pub fn clear_field_id(&mut self) {
  1038. self.field_id.clear();
  1039. }
  1040. // Param is passed by value, moved
  1041. pub fn set_field_id(&mut self, v: ::std::string::String) {
  1042. self.field_id = v;
  1043. }
  1044. // Mutable pointer to the field.
  1045. // If field is not initialized, it is initialized with default value first.
  1046. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  1047. &mut self.field_id
  1048. }
  1049. // Take field
  1050. pub fn take_field_id(&mut self) -> ::std::string::String {
  1051. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  1052. }
  1053. // string name = 2;
  1054. pub fn get_name(&self) -> &str {
  1055. match self.one_of_name {
  1056. ::std::option::Option::Some(FieldChangeset_oneof_one_of_name::name(ref v)) => v,
  1057. _ => "",
  1058. }
  1059. }
  1060. pub fn clear_name(&mut self) {
  1061. self.one_of_name = ::std::option::Option::None;
  1062. }
  1063. pub fn has_name(&self) -> bool {
  1064. match self.one_of_name {
  1065. ::std::option::Option::Some(FieldChangeset_oneof_one_of_name::name(..)) => true,
  1066. _ => false,
  1067. }
  1068. }
  1069. // Param is passed by value, moved
  1070. pub fn set_name(&mut self, v: ::std::string::String) {
  1071. self.one_of_name = ::std::option::Option::Some(FieldChangeset_oneof_one_of_name::name(v))
  1072. }
  1073. // Mutable pointer to the field.
  1074. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  1075. if let ::std::option::Option::Some(FieldChangeset_oneof_one_of_name::name(_)) = self.one_of_name {
  1076. } else {
  1077. self.one_of_name = ::std::option::Option::Some(FieldChangeset_oneof_one_of_name::name(::std::string::String::new()));
  1078. }
  1079. match self.one_of_name {
  1080. ::std::option::Option::Some(FieldChangeset_oneof_one_of_name::name(ref mut v)) => v,
  1081. _ => panic!(),
  1082. }
  1083. }
  1084. // Take field
  1085. pub fn take_name(&mut self) -> ::std::string::String {
  1086. if self.has_name() {
  1087. match self.one_of_name.take() {
  1088. ::std::option::Option::Some(FieldChangeset_oneof_one_of_name::name(v)) => v,
  1089. _ => panic!(),
  1090. }
  1091. } else {
  1092. ::std::string::String::new()
  1093. }
  1094. }
  1095. // string desc = 3;
  1096. pub fn get_desc(&self) -> &str {
  1097. match self.one_of_desc {
  1098. ::std::option::Option::Some(FieldChangeset_oneof_one_of_desc::desc(ref v)) => v,
  1099. _ => "",
  1100. }
  1101. }
  1102. pub fn clear_desc(&mut self) {
  1103. self.one_of_desc = ::std::option::Option::None;
  1104. }
  1105. pub fn has_desc(&self) -> bool {
  1106. match self.one_of_desc {
  1107. ::std::option::Option::Some(FieldChangeset_oneof_one_of_desc::desc(..)) => true,
  1108. _ => false,
  1109. }
  1110. }
  1111. // Param is passed by value, moved
  1112. pub fn set_desc(&mut self, v: ::std::string::String) {
  1113. self.one_of_desc = ::std::option::Option::Some(FieldChangeset_oneof_one_of_desc::desc(v))
  1114. }
  1115. // Mutable pointer to the field.
  1116. pub fn mut_desc(&mut self) -> &mut ::std::string::String {
  1117. if let ::std::option::Option::Some(FieldChangeset_oneof_one_of_desc::desc(_)) = self.one_of_desc {
  1118. } else {
  1119. self.one_of_desc = ::std::option::Option::Some(FieldChangeset_oneof_one_of_desc::desc(::std::string::String::new()));
  1120. }
  1121. match self.one_of_desc {
  1122. ::std::option::Option::Some(FieldChangeset_oneof_one_of_desc::desc(ref mut v)) => v,
  1123. _ => panic!(),
  1124. }
  1125. }
  1126. // Take field
  1127. pub fn take_desc(&mut self) -> ::std::string::String {
  1128. if self.has_desc() {
  1129. match self.one_of_desc.take() {
  1130. ::std::option::Option::Some(FieldChangeset_oneof_one_of_desc::desc(v)) => v,
  1131. _ => panic!(),
  1132. }
  1133. } else {
  1134. ::std::string::String::new()
  1135. }
  1136. }
  1137. // .FieldType field_type = 4;
  1138. pub fn get_field_type(&self) -> FieldType {
  1139. match self.one_of_field_type {
  1140. ::std::option::Option::Some(FieldChangeset_oneof_one_of_field_type::field_type(v)) => v,
  1141. _ => FieldType::RichText,
  1142. }
  1143. }
  1144. pub fn clear_field_type(&mut self) {
  1145. self.one_of_field_type = ::std::option::Option::None;
  1146. }
  1147. pub fn has_field_type(&self) -> bool {
  1148. match self.one_of_field_type {
  1149. ::std::option::Option::Some(FieldChangeset_oneof_one_of_field_type::field_type(..)) => true,
  1150. _ => false,
  1151. }
  1152. }
  1153. // Param is passed by value, moved
  1154. pub fn set_field_type(&mut self, v: FieldType) {
  1155. self.one_of_field_type = ::std::option::Option::Some(FieldChangeset_oneof_one_of_field_type::field_type(v))
  1156. }
  1157. // bool frozen = 5;
  1158. pub fn get_frozen(&self) -> bool {
  1159. match self.one_of_frozen {
  1160. ::std::option::Option::Some(FieldChangeset_oneof_one_of_frozen::frozen(v)) => v,
  1161. _ => false,
  1162. }
  1163. }
  1164. pub fn clear_frozen(&mut self) {
  1165. self.one_of_frozen = ::std::option::Option::None;
  1166. }
  1167. pub fn has_frozen(&self) -> bool {
  1168. match self.one_of_frozen {
  1169. ::std::option::Option::Some(FieldChangeset_oneof_one_of_frozen::frozen(..)) => true,
  1170. _ => false,
  1171. }
  1172. }
  1173. // Param is passed by value, moved
  1174. pub fn set_frozen(&mut self, v: bool) {
  1175. self.one_of_frozen = ::std::option::Option::Some(FieldChangeset_oneof_one_of_frozen::frozen(v))
  1176. }
  1177. // bool visibility = 6;
  1178. pub fn get_visibility(&self) -> bool {
  1179. match self.one_of_visibility {
  1180. ::std::option::Option::Some(FieldChangeset_oneof_one_of_visibility::visibility(v)) => v,
  1181. _ => false,
  1182. }
  1183. }
  1184. pub fn clear_visibility(&mut self) {
  1185. self.one_of_visibility = ::std::option::Option::None;
  1186. }
  1187. pub fn has_visibility(&self) -> bool {
  1188. match self.one_of_visibility {
  1189. ::std::option::Option::Some(FieldChangeset_oneof_one_of_visibility::visibility(..)) => true,
  1190. _ => false,
  1191. }
  1192. }
  1193. // Param is passed by value, moved
  1194. pub fn set_visibility(&mut self, v: bool) {
  1195. self.one_of_visibility = ::std::option::Option::Some(FieldChangeset_oneof_one_of_visibility::visibility(v))
  1196. }
  1197. // int32 width = 7;
  1198. pub fn get_width(&self) -> i32 {
  1199. match self.one_of_width {
  1200. ::std::option::Option::Some(FieldChangeset_oneof_one_of_width::width(v)) => v,
  1201. _ => 0,
  1202. }
  1203. }
  1204. pub fn clear_width(&mut self) {
  1205. self.one_of_width = ::std::option::Option::None;
  1206. }
  1207. pub fn has_width(&self) -> bool {
  1208. match self.one_of_width {
  1209. ::std::option::Option::Some(FieldChangeset_oneof_one_of_width::width(..)) => true,
  1210. _ => false,
  1211. }
  1212. }
  1213. // Param is passed by value, moved
  1214. pub fn set_width(&mut self, v: i32) {
  1215. self.one_of_width = ::std::option::Option::Some(FieldChangeset_oneof_one_of_width::width(v))
  1216. }
  1217. // string type_options = 8;
  1218. pub fn get_type_options(&self) -> &str {
  1219. match self.one_of_type_options {
  1220. ::std::option::Option::Some(FieldChangeset_oneof_one_of_type_options::type_options(ref v)) => v,
  1221. _ => "",
  1222. }
  1223. }
  1224. pub fn clear_type_options(&mut self) {
  1225. self.one_of_type_options = ::std::option::Option::None;
  1226. }
  1227. pub fn has_type_options(&self) -> bool {
  1228. match self.one_of_type_options {
  1229. ::std::option::Option::Some(FieldChangeset_oneof_one_of_type_options::type_options(..)) => true,
  1230. _ => false,
  1231. }
  1232. }
  1233. // Param is passed by value, moved
  1234. pub fn set_type_options(&mut self, v: ::std::string::String) {
  1235. self.one_of_type_options = ::std::option::Option::Some(FieldChangeset_oneof_one_of_type_options::type_options(v))
  1236. }
  1237. // Mutable pointer to the field.
  1238. pub fn mut_type_options(&mut self) -> &mut ::std::string::String {
  1239. if let ::std::option::Option::Some(FieldChangeset_oneof_one_of_type_options::type_options(_)) = self.one_of_type_options {
  1240. } else {
  1241. self.one_of_type_options = ::std::option::Option::Some(FieldChangeset_oneof_one_of_type_options::type_options(::std::string::String::new()));
  1242. }
  1243. match self.one_of_type_options {
  1244. ::std::option::Option::Some(FieldChangeset_oneof_one_of_type_options::type_options(ref mut v)) => v,
  1245. _ => panic!(),
  1246. }
  1247. }
  1248. // Take field
  1249. pub fn take_type_options(&mut self) -> ::std::string::String {
  1250. if self.has_type_options() {
  1251. match self.one_of_type_options.take() {
  1252. ::std::option::Option::Some(FieldChangeset_oneof_one_of_type_options::type_options(v)) => v,
  1253. _ => panic!(),
  1254. }
  1255. } else {
  1256. ::std::string::String::new()
  1257. }
  1258. }
  1259. }
  1260. impl ::protobuf::Message for FieldChangeset {
  1261. fn is_initialized(&self) -> bool {
  1262. true
  1263. }
  1264. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1265. while !is.eof()? {
  1266. let (field_number, wire_type) = is.read_tag_unpack()?;
  1267. match field_number {
  1268. 1 => {
  1269. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  1270. },
  1271. 2 => {
  1272. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  1273. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1274. }
  1275. self.one_of_name = ::std::option::Option::Some(FieldChangeset_oneof_one_of_name::name(is.read_string()?));
  1276. },
  1277. 3 => {
  1278. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  1279. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1280. }
  1281. self.one_of_desc = ::std::option::Option::Some(FieldChangeset_oneof_one_of_desc::desc(is.read_string()?));
  1282. },
  1283. 4 => {
  1284. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1285. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1286. }
  1287. self.one_of_field_type = ::std::option::Option::Some(FieldChangeset_oneof_one_of_field_type::field_type(is.read_enum()?));
  1288. },
  1289. 5 => {
  1290. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1291. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1292. }
  1293. self.one_of_frozen = ::std::option::Option::Some(FieldChangeset_oneof_one_of_frozen::frozen(is.read_bool()?));
  1294. },
  1295. 6 => {
  1296. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1297. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1298. }
  1299. self.one_of_visibility = ::std::option::Option::Some(FieldChangeset_oneof_one_of_visibility::visibility(is.read_bool()?));
  1300. },
  1301. 7 => {
  1302. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1303. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1304. }
  1305. self.one_of_width = ::std::option::Option::Some(FieldChangeset_oneof_one_of_width::width(is.read_int32()?));
  1306. },
  1307. 8 => {
  1308. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  1309. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1310. }
  1311. self.one_of_type_options = ::std::option::Option::Some(FieldChangeset_oneof_one_of_type_options::type_options(is.read_string()?));
  1312. },
  1313. _ => {
  1314. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1315. },
  1316. };
  1317. }
  1318. ::std::result::Result::Ok(())
  1319. }
  1320. // Compute sizes of nested messages
  1321. #[allow(unused_variables)]
  1322. fn compute_size(&self) -> u32 {
  1323. let mut my_size = 0;
  1324. if !self.field_id.is_empty() {
  1325. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  1326. }
  1327. if let ::std::option::Option::Some(ref v) = self.one_of_name {
  1328. match v {
  1329. &FieldChangeset_oneof_one_of_name::name(ref v) => {
  1330. my_size += ::protobuf::rt::string_size(2, &v);
  1331. },
  1332. };
  1333. }
  1334. if let ::std::option::Option::Some(ref v) = self.one_of_desc {
  1335. match v {
  1336. &FieldChangeset_oneof_one_of_desc::desc(ref v) => {
  1337. my_size += ::protobuf::rt::string_size(3, &v);
  1338. },
  1339. };
  1340. }
  1341. if let ::std::option::Option::Some(ref v) = self.one_of_field_type {
  1342. match v {
  1343. &FieldChangeset_oneof_one_of_field_type::field_type(v) => {
  1344. my_size += ::protobuf::rt::enum_size(4, v);
  1345. },
  1346. };
  1347. }
  1348. if let ::std::option::Option::Some(ref v) = self.one_of_frozen {
  1349. match v {
  1350. &FieldChangeset_oneof_one_of_frozen::frozen(v) => {
  1351. my_size += 2;
  1352. },
  1353. };
  1354. }
  1355. if let ::std::option::Option::Some(ref v) = self.one_of_visibility {
  1356. match v {
  1357. &FieldChangeset_oneof_one_of_visibility::visibility(v) => {
  1358. my_size += 2;
  1359. },
  1360. };
  1361. }
  1362. if let ::std::option::Option::Some(ref v) = self.one_of_width {
  1363. match v {
  1364. &FieldChangeset_oneof_one_of_width::width(v) => {
  1365. my_size += ::protobuf::rt::value_size(7, v, ::protobuf::wire_format::WireTypeVarint);
  1366. },
  1367. };
  1368. }
  1369. if let ::std::option::Option::Some(ref v) = self.one_of_type_options {
  1370. match v {
  1371. &FieldChangeset_oneof_one_of_type_options::type_options(ref v) => {
  1372. my_size += ::protobuf::rt::string_size(8, &v);
  1373. },
  1374. };
  1375. }
  1376. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1377. self.cached_size.set(my_size);
  1378. my_size
  1379. }
  1380. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1381. if !self.field_id.is_empty() {
  1382. os.write_string(1, &self.field_id)?;
  1383. }
  1384. if let ::std::option::Option::Some(ref v) = self.one_of_name {
  1385. match v {
  1386. &FieldChangeset_oneof_one_of_name::name(ref v) => {
  1387. os.write_string(2, v)?;
  1388. },
  1389. };
  1390. }
  1391. if let ::std::option::Option::Some(ref v) = self.one_of_desc {
  1392. match v {
  1393. &FieldChangeset_oneof_one_of_desc::desc(ref v) => {
  1394. os.write_string(3, v)?;
  1395. },
  1396. };
  1397. }
  1398. if let ::std::option::Option::Some(ref v) = self.one_of_field_type {
  1399. match v {
  1400. &FieldChangeset_oneof_one_of_field_type::field_type(v) => {
  1401. os.write_enum(4, ::protobuf::ProtobufEnum::value(&v))?;
  1402. },
  1403. };
  1404. }
  1405. if let ::std::option::Option::Some(ref v) = self.one_of_frozen {
  1406. match v {
  1407. &FieldChangeset_oneof_one_of_frozen::frozen(v) => {
  1408. os.write_bool(5, v)?;
  1409. },
  1410. };
  1411. }
  1412. if let ::std::option::Option::Some(ref v) = self.one_of_visibility {
  1413. match v {
  1414. &FieldChangeset_oneof_one_of_visibility::visibility(v) => {
  1415. os.write_bool(6, v)?;
  1416. },
  1417. };
  1418. }
  1419. if let ::std::option::Option::Some(ref v) = self.one_of_width {
  1420. match v {
  1421. &FieldChangeset_oneof_one_of_width::width(v) => {
  1422. os.write_int32(7, v)?;
  1423. },
  1424. };
  1425. }
  1426. if let ::std::option::Option::Some(ref v) = self.one_of_type_options {
  1427. match v {
  1428. &FieldChangeset_oneof_one_of_type_options::type_options(ref v) => {
  1429. os.write_string(8, v)?;
  1430. },
  1431. };
  1432. }
  1433. os.write_unknown_fields(self.get_unknown_fields())?;
  1434. ::std::result::Result::Ok(())
  1435. }
  1436. fn get_cached_size(&self) -> u32 {
  1437. self.cached_size.get()
  1438. }
  1439. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1440. &self.unknown_fields
  1441. }
  1442. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1443. &mut self.unknown_fields
  1444. }
  1445. fn as_any(&self) -> &dyn (::std::any::Any) {
  1446. self as &dyn (::std::any::Any)
  1447. }
  1448. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1449. self as &mut dyn (::std::any::Any)
  1450. }
  1451. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1452. self
  1453. }
  1454. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1455. Self::descriptor_static()
  1456. }
  1457. fn new() -> FieldChangeset {
  1458. FieldChangeset::new()
  1459. }
  1460. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1461. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1462. descriptor.get(|| {
  1463. let mut fields = ::std::vec::Vec::new();
  1464. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1465. "field_id",
  1466. |m: &FieldChangeset| { &m.field_id },
  1467. |m: &mut FieldChangeset| { &mut m.field_id },
  1468. ));
  1469. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  1470. "name",
  1471. FieldChangeset::has_name,
  1472. FieldChangeset::get_name,
  1473. ));
  1474. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  1475. "desc",
  1476. FieldChangeset::has_desc,
  1477. FieldChangeset::get_desc,
  1478. ));
  1479. fields.push(::protobuf::reflect::accessor::make_singular_enum_accessor::<_, FieldType>(
  1480. "field_type",
  1481. FieldChangeset::has_field_type,
  1482. FieldChangeset::get_field_type,
  1483. ));
  1484. fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>(
  1485. "frozen",
  1486. FieldChangeset::has_frozen,
  1487. FieldChangeset::get_frozen,
  1488. ));
  1489. fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>(
  1490. "visibility",
  1491. FieldChangeset::has_visibility,
  1492. FieldChangeset::get_visibility,
  1493. ));
  1494. fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>(
  1495. "width",
  1496. FieldChangeset::has_width,
  1497. FieldChangeset::get_width,
  1498. ));
  1499. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  1500. "type_options",
  1501. FieldChangeset::has_type_options,
  1502. FieldChangeset::get_type_options,
  1503. ));
  1504. ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldChangeset>(
  1505. "FieldChangeset",
  1506. fields,
  1507. file_descriptor_proto()
  1508. )
  1509. })
  1510. }
  1511. fn default_instance() -> &'static FieldChangeset {
  1512. static instance: ::protobuf::rt::LazyV2<FieldChangeset> = ::protobuf::rt::LazyV2::INIT;
  1513. instance.get(FieldChangeset::new)
  1514. }
  1515. }
  1516. impl ::protobuf::Clear for FieldChangeset {
  1517. fn clear(&mut self) {
  1518. self.field_id.clear();
  1519. self.one_of_name = ::std::option::Option::None;
  1520. self.one_of_desc = ::std::option::Option::None;
  1521. self.one_of_field_type = ::std::option::Option::None;
  1522. self.one_of_frozen = ::std::option::Option::None;
  1523. self.one_of_visibility = ::std::option::Option::None;
  1524. self.one_of_width = ::std::option::Option::None;
  1525. self.one_of_type_options = ::std::option::Option::None;
  1526. self.unknown_fields.clear();
  1527. }
  1528. }
  1529. impl ::std::fmt::Debug for FieldChangeset {
  1530. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1531. ::protobuf::text_format::fmt(self, f)
  1532. }
  1533. }
  1534. impl ::protobuf::reflect::ProtobufValue for FieldChangeset {
  1535. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1536. ::protobuf::reflect::ReflectValueRef::Message(self)
  1537. }
  1538. }
  1539. #[derive(PartialEq,Clone,Default)]
  1540. pub struct AnyData {
  1541. // message fields
  1542. pub type_id: ::std::string::String,
  1543. pub value: ::std::vec::Vec<u8>,
  1544. // special fields
  1545. pub unknown_fields: ::protobuf::UnknownFields,
  1546. pub cached_size: ::protobuf::CachedSize,
  1547. }
  1548. impl<'a> ::std::default::Default for &'a AnyData {
  1549. fn default() -> &'a AnyData {
  1550. <AnyData as ::protobuf::Message>::default_instance()
  1551. }
  1552. }
  1553. impl AnyData {
  1554. pub fn new() -> AnyData {
  1555. ::std::default::Default::default()
  1556. }
  1557. // string type_id = 1;
  1558. pub fn get_type_id(&self) -> &str {
  1559. &self.type_id
  1560. }
  1561. pub fn clear_type_id(&mut self) {
  1562. self.type_id.clear();
  1563. }
  1564. // Param is passed by value, moved
  1565. pub fn set_type_id(&mut self, v: ::std::string::String) {
  1566. self.type_id = v;
  1567. }
  1568. // Mutable pointer to the field.
  1569. // If field is not initialized, it is initialized with default value first.
  1570. pub fn mut_type_id(&mut self) -> &mut ::std::string::String {
  1571. &mut self.type_id
  1572. }
  1573. // Take field
  1574. pub fn take_type_id(&mut self) -> ::std::string::String {
  1575. ::std::mem::replace(&mut self.type_id, ::std::string::String::new())
  1576. }
  1577. // bytes value = 2;
  1578. pub fn get_value(&self) -> &[u8] {
  1579. &self.value
  1580. }
  1581. pub fn clear_value(&mut self) {
  1582. self.value.clear();
  1583. }
  1584. // Param is passed by value, moved
  1585. pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
  1586. self.value = v;
  1587. }
  1588. // Mutable pointer to the field.
  1589. // If field is not initialized, it is initialized with default value first.
  1590. pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
  1591. &mut self.value
  1592. }
  1593. // Take field
  1594. pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
  1595. ::std::mem::replace(&mut self.value, ::std::vec::Vec::new())
  1596. }
  1597. }
  1598. impl ::protobuf::Message for AnyData {
  1599. fn is_initialized(&self) -> bool {
  1600. true
  1601. }
  1602. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1603. while !is.eof()? {
  1604. let (field_number, wire_type) = is.read_tag_unpack()?;
  1605. match field_number {
  1606. 1 => {
  1607. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_id)?;
  1608. },
  1609. 2 => {
  1610. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;
  1611. },
  1612. _ => {
  1613. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1614. },
  1615. };
  1616. }
  1617. ::std::result::Result::Ok(())
  1618. }
  1619. // Compute sizes of nested messages
  1620. #[allow(unused_variables)]
  1621. fn compute_size(&self) -> u32 {
  1622. let mut my_size = 0;
  1623. if !self.type_id.is_empty() {
  1624. my_size += ::protobuf::rt::string_size(1, &self.type_id);
  1625. }
  1626. if !self.value.is_empty() {
  1627. my_size += ::protobuf::rt::bytes_size(2, &self.value);
  1628. }
  1629. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1630. self.cached_size.set(my_size);
  1631. my_size
  1632. }
  1633. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1634. if !self.type_id.is_empty() {
  1635. os.write_string(1, &self.type_id)?;
  1636. }
  1637. if !self.value.is_empty() {
  1638. os.write_bytes(2, &self.value)?;
  1639. }
  1640. os.write_unknown_fields(self.get_unknown_fields())?;
  1641. ::std::result::Result::Ok(())
  1642. }
  1643. fn get_cached_size(&self) -> u32 {
  1644. self.cached_size.get()
  1645. }
  1646. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1647. &self.unknown_fields
  1648. }
  1649. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1650. &mut self.unknown_fields
  1651. }
  1652. fn as_any(&self) -> &dyn (::std::any::Any) {
  1653. self as &dyn (::std::any::Any)
  1654. }
  1655. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1656. self as &mut dyn (::std::any::Any)
  1657. }
  1658. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1659. self
  1660. }
  1661. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1662. Self::descriptor_static()
  1663. }
  1664. fn new() -> AnyData {
  1665. AnyData::new()
  1666. }
  1667. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1668. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1669. descriptor.get(|| {
  1670. let mut fields = ::std::vec::Vec::new();
  1671. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1672. "type_id",
  1673. |m: &AnyData| { &m.type_id },
  1674. |m: &mut AnyData| { &mut m.type_id },
  1675. ));
  1676. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1677. "value",
  1678. |m: &AnyData| { &m.value },
  1679. |m: &mut AnyData| { &mut m.value },
  1680. ));
  1681. ::protobuf::reflect::MessageDescriptor::new_pb_name::<AnyData>(
  1682. "AnyData",
  1683. fields,
  1684. file_descriptor_proto()
  1685. )
  1686. })
  1687. }
  1688. fn default_instance() -> &'static AnyData {
  1689. static instance: ::protobuf::rt::LazyV2<AnyData> = ::protobuf::rt::LazyV2::INIT;
  1690. instance.get(AnyData::new)
  1691. }
  1692. }
  1693. impl ::protobuf::Clear for AnyData {
  1694. fn clear(&mut self) {
  1695. self.type_id.clear();
  1696. self.value.clear();
  1697. self.unknown_fields.clear();
  1698. }
  1699. }
  1700. impl ::std::fmt::Debug for AnyData {
  1701. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1702. ::protobuf::text_format::fmt(self, f)
  1703. }
  1704. }
  1705. impl ::protobuf::reflect::ProtobufValue for AnyData {
  1706. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1707. ::protobuf::reflect::ReflectValueRef::Message(self)
  1708. }
  1709. }
  1710. #[derive(PartialEq,Clone,Default)]
  1711. pub struct RowMeta {
  1712. // message fields
  1713. pub id: ::std::string::String,
  1714. pub block_id: ::std::string::String,
  1715. pub cell_by_field_id: ::std::collections::HashMap<::std::string::String, CellMeta>,
  1716. pub height: i32,
  1717. pub visibility: bool,
  1718. // special fields
  1719. pub unknown_fields: ::protobuf::UnknownFields,
  1720. pub cached_size: ::protobuf::CachedSize,
  1721. }
  1722. impl<'a> ::std::default::Default for &'a RowMeta {
  1723. fn default() -> &'a RowMeta {
  1724. <RowMeta as ::protobuf::Message>::default_instance()
  1725. }
  1726. }
  1727. impl RowMeta {
  1728. pub fn new() -> RowMeta {
  1729. ::std::default::Default::default()
  1730. }
  1731. // string id = 1;
  1732. pub fn get_id(&self) -> &str {
  1733. &self.id
  1734. }
  1735. pub fn clear_id(&mut self) {
  1736. self.id.clear();
  1737. }
  1738. // Param is passed by value, moved
  1739. pub fn set_id(&mut self, v: ::std::string::String) {
  1740. self.id = v;
  1741. }
  1742. // Mutable pointer to the field.
  1743. // If field is not initialized, it is initialized with default value first.
  1744. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  1745. &mut self.id
  1746. }
  1747. // Take field
  1748. pub fn take_id(&mut self) -> ::std::string::String {
  1749. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  1750. }
  1751. // string block_id = 2;
  1752. pub fn get_block_id(&self) -> &str {
  1753. &self.block_id
  1754. }
  1755. pub fn clear_block_id(&mut self) {
  1756. self.block_id.clear();
  1757. }
  1758. // Param is passed by value, moved
  1759. pub fn set_block_id(&mut self, v: ::std::string::String) {
  1760. self.block_id = v;
  1761. }
  1762. // Mutable pointer to the field.
  1763. // If field is not initialized, it is initialized with default value first.
  1764. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  1765. &mut self.block_id
  1766. }
  1767. // Take field
  1768. pub fn take_block_id(&mut self) -> ::std::string::String {
  1769. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  1770. }
  1771. // repeated .RowMeta.CellByFieldIdEntry cell_by_field_id = 3;
  1772. pub fn get_cell_by_field_id(&self) -> &::std::collections::HashMap<::std::string::String, CellMeta> {
  1773. &self.cell_by_field_id
  1774. }
  1775. pub fn clear_cell_by_field_id(&mut self) {
  1776. self.cell_by_field_id.clear();
  1777. }
  1778. // Param is passed by value, moved
  1779. pub fn set_cell_by_field_id(&mut self, v: ::std::collections::HashMap<::std::string::String, CellMeta>) {
  1780. self.cell_by_field_id = v;
  1781. }
  1782. // Mutable pointer to the field.
  1783. pub fn mut_cell_by_field_id(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, CellMeta> {
  1784. &mut self.cell_by_field_id
  1785. }
  1786. // Take field
  1787. pub fn take_cell_by_field_id(&mut self) -> ::std::collections::HashMap<::std::string::String, CellMeta> {
  1788. ::std::mem::replace(&mut self.cell_by_field_id, ::std::collections::HashMap::new())
  1789. }
  1790. // int32 height = 4;
  1791. pub fn get_height(&self) -> i32 {
  1792. self.height
  1793. }
  1794. pub fn clear_height(&mut self) {
  1795. self.height = 0;
  1796. }
  1797. // Param is passed by value, moved
  1798. pub fn set_height(&mut self, v: i32) {
  1799. self.height = v;
  1800. }
  1801. // bool visibility = 5;
  1802. pub fn get_visibility(&self) -> bool {
  1803. self.visibility
  1804. }
  1805. pub fn clear_visibility(&mut self) {
  1806. self.visibility = false;
  1807. }
  1808. // Param is passed by value, moved
  1809. pub fn set_visibility(&mut self, v: bool) {
  1810. self.visibility = v;
  1811. }
  1812. }
  1813. impl ::protobuf::Message for RowMeta {
  1814. fn is_initialized(&self) -> bool {
  1815. true
  1816. }
  1817. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1818. while !is.eof()? {
  1819. let (field_number, wire_type) = is.read_tag_unpack()?;
  1820. match field_number {
  1821. 1 => {
  1822. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  1823. },
  1824. 2 => {
  1825. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  1826. },
  1827. 3 => {
  1828. ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<CellMeta>>(wire_type, is, &mut self.cell_by_field_id)?;
  1829. },
  1830. 4 => {
  1831. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1832. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1833. }
  1834. let tmp = is.read_int32()?;
  1835. self.height = tmp;
  1836. },
  1837. 5 => {
  1838. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1839. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1840. }
  1841. let tmp = is.read_bool()?;
  1842. self.visibility = tmp;
  1843. },
  1844. _ => {
  1845. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1846. },
  1847. };
  1848. }
  1849. ::std::result::Result::Ok(())
  1850. }
  1851. // Compute sizes of nested messages
  1852. #[allow(unused_variables)]
  1853. fn compute_size(&self) -> u32 {
  1854. let mut my_size = 0;
  1855. if !self.id.is_empty() {
  1856. my_size += ::protobuf::rt::string_size(1, &self.id);
  1857. }
  1858. if !self.block_id.is_empty() {
  1859. my_size += ::protobuf::rt::string_size(2, &self.block_id);
  1860. }
  1861. my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<CellMeta>>(3, &self.cell_by_field_id);
  1862. if self.height != 0 {
  1863. my_size += ::protobuf::rt::value_size(4, self.height, ::protobuf::wire_format::WireTypeVarint);
  1864. }
  1865. if self.visibility != false {
  1866. my_size += 2;
  1867. }
  1868. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1869. self.cached_size.set(my_size);
  1870. my_size
  1871. }
  1872. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1873. if !self.id.is_empty() {
  1874. os.write_string(1, &self.id)?;
  1875. }
  1876. if !self.block_id.is_empty() {
  1877. os.write_string(2, &self.block_id)?;
  1878. }
  1879. ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<CellMeta>>(3, &self.cell_by_field_id, os)?;
  1880. if self.height != 0 {
  1881. os.write_int32(4, self.height)?;
  1882. }
  1883. if self.visibility != false {
  1884. os.write_bool(5, self.visibility)?;
  1885. }
  1886. os.write_unknown_fields(self.get_unknown_fields())?;
  1887. ::std::result::Result::Ok(())
  1888. }
  1889. fn get_cached_size(&self) -> u32 {
  1890. self.cached_size.get()
  1891. }
  1892. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1893. &self.unknown_fields
  1894. }
  1895. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1896. &mut self.unknown_fields
  1897. }
  1898. fn as_any(&self) -> &dyn (::std::any::Any) {
  1899. self as &dyn (::std::any::Any)
  1900. }
  1901. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1902. self as &mut dyn (::std::any::Any)
  1903. }
  1904. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1905. self
  1906. }
  1907. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1908. Self::descriptor_static()
  1909. }
  1910. fn new() -> RowMeta {
  1911. RowMeta::new()
  1912. }
  1913. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1914. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1915. descriptor.get(|| {
  1916. let mut fields = ::std::vec::Vec::new();
  1917. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1918. "id",
  1919. |m: &RowMeta| { &m.id },
  1920. |m: &mut RowMeta| { &mut m.id },
  1921. ));
  1922. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1923. "block_id",
  1924. |m: &RowMeta| { &m.block_id },
  1925. |m: &mut RowMeta| { &mut m.block_id },
  1926. ));
  1927. fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<CellMeta>>(
  1928. "cell_by_field_id",
  1929. |m: &RowMeta| { &m.cell_by_field_id },
  1930. |m: &mut RowMeta| { &mut m.cell_by_field_id },
  1931. ));
  1932. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  1933. "height",
  1934. |m: &RowMeta| { &m.height },
  1935. |m: &mut RowMeta| { &mut m.height },
  1936. ));
  1937. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  1938. "visibility",
  1939. |m: &RowMeta| { &m.visibility },
  1940. |m: &mut RowMeta| { &mut m.visibility },
  1941. ));
  1942. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RowMeta>(
  1943. "RowMeta",
  1944. fields,
  1945. file_descriptor_proto()
  1946. )
  1947. })
  1948. }
  1949. fn default_instance() -> &'static RowMeta {
  1950. static instance: ::protobuf::rt::LazyV2<RowMeta> = ::protobuf::rt::LazyV2::INIT;
  1951. instance.get(RowMeta::new)
  1952. }
  1953. }
  1954. impl ::protobuf::Clear for RowMeta {
  1955. fn clear(&mut self) {
  1956. self.id.clear();
  1957. self.block_id.clear();
  1958. self.cell_by_field_id.clear();
  1959. self.height = 0;
  1960. self.visibility = false;
  1961. self.unknown_fields.clear();
  1962. }
  1963. }
  1964. impl ::std::fmt::Debug for RowMeta {
  1965. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1966. ::protobuf::text_format::fmt(self, f)
  1967. }
  1968. }
  1969. impl ::protobuf::reflect::ProtobufValue for RowMeta {
  1970. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1971. ::protobuf::reflect::ReflectValueRef::Message(self)
  1972. }
  1973. }
  1974. #[derive(PartialEq,Clone,Default)]
  1975. pub struct RowMetaChangeset {
  1976. // message fields
  1977. pub row_id: ::std::string::String,
  1978. pub cell_by_field_id: ::std::collections::HashMap<::std::string::String, CellMeta>,
  1979. // message oneof groups
  1980. pub one_of_height: ::std::option::Option<RowMetaChangeset_oneof_one_of_height>,
  1981. pub one_of_visibility: ::std::option::Option<RowMetaChangeset_oneof_one_of_visibility>,
  1982. // special fields
  1983. pub unknown_fields: ::protobuf::UnknownFields,
  1984. pub cached_size: ::protobuf::CachedSize,
  1985. }
  1986. impl<'a> ::std::default::Default for &'a RowMetaChangeset {
  1987. fn default() -> &'a RowMetaChangeset {
  1988. <RowMetaChangeset as ::protobuf::Message>::default_instance()
  1989. }
  1990. }
  1991. #[derive(Clone,PartialEq,Debug)]
  1992. pub enum RowMetaChangeset_oneof_one_of_height {
  1993. height(i32),
  1994. }
  1995. #[derive(Clone,PartialEq,Debug)]
  1996. pub enum RowMetaChangeset_oneof_one_of_visibility {
  1997. visibility(bool),
  1998. }
  1999. impl RowMetaChangeset {
  2000. pub fn new() -> RowMetaChangeset {
  2001. ::std::default::Default::default()
  2002. }
  2003. // string row_id = 1;
  2004. pub fn get_row_id(&self) -> &str {
  2005. &self.row_id
  2006. }
  2007. pub fn clear_row_id(&mut self) {
  2008. self.row_id.clear();
  2009. }
  2010. // Param is passed by value, moved
  2011. pub fn set_row_id(&mut self, v: ::std::string::String) {
  2012. self.row_id = v;
  2013. }
  2014. // Mutable pointer to the field.
  2015. // If field is not initialized, it is initialized with default value first.
  2016. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  2017. &mut self.row_id
  2018. }
  2019. // Take field
  2020. pub fn take_row_id(&mut self) -> ::std::string::String {
  2021. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  2022. }
  2023. // int32 height = 2;
  2024. pub fn get_height(&self) -> i32 {
  2025. match self.one_of_height {
  2026. ::std::option::Option::Some(RowMetaChangeset_oneof_one_of_height::height(v)) => v,
  2027. _ => 0,
  2028. }
  2029. }
  2030. pub fn clear_height(&mut self) {
  2031. self.one_of_height = ::std::option::Option::None;
  2032. }
  2033. pub fn has_height(&self) -> bool {
  2034. match self.one_of_height {
  2035. ::std::option::Option::Some(RowMetaChangeset_oneof_one_of_height::height(..)) => true,
  2036. _ => false,
  2037. }
  2038. }
  2039. // Param is passed by value, moved
  2040. pub fn set_height(&mut self, v: i32) {
  2041. self.one_of_height = ::std::option::Option::Some(RowMetaChangeset_oneof_one_of_height::height(v))
  2042. }
  2043. // bool visibility = 3;
  2044. pub fn get_visibility(&self) -> bool {
  2045. match self.one_of_visibility {
  2046. ::std::option::Option::Some(RowMetaChangeset_oneof_one_of_visibility::visibility(v)) => v,
  2047. _ => false,
  2048. }
  2049. }
  2050. pub fn clear_visibility(&mut self) {
  2051. self.one_of_visibility = ::std::option::Option::None;
  2052. }
  2053. pub fn has_visibility(&self) -> bool {
  2054. match self.one_of_visibility {
  2055. ::std::option::Option::Some(RowMetaChangeset_oneof_one_of_visibility::visibility(..)) => true,
  2056. _ => false,
  2057. }
  2058. }
  2059. // Param is passed by value, moved
  2060. pub fn set_visibility(&mut self, v: bool) {
  2061. self.one_of_visibility = ::std::option::Option::Some(RowMetaChangeset_oneof_one_of_visibility::visibility(v))
  2062. }
  2063. // repeated .RowMetaChangeset.CellByFieldIdEntry cell_by_field_id = 4;
  2064. pub fn get_cell_by_field_id(&self) -> &::std::collections::HashMap<::std::string::String, CellMeta> {
  2065. &self.cell_by_field_id
  2066. }
  2067. pub fn clear_cell_by_field_id(&mut self) {
  2068. self.cell_by_field_id.clear();
  2069. }
  2070. // Param is passed by value, moved
  2071. pub fn set_cell_by_field_id(&mut self, v: ::std::collections::HashMap<::std::string::String, CellMeta>) {
  2072. self.cell_by_field_id = v;
  2073. }
  2074. // Mutable pointer to the field.
  2075. pub fn mut_cell_by_field_id(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, CellMeta> {
  2076. &mut self.cell_by_field_id
  2077. }
  2078. // Take field
  2079. pub fn take_cell_by_field_id(&mut self) -> ::std::collections::HashMap<::std::string::String, CellMeta> {
  2080. ::std::mem::replace(&mut self.cell_by_field_id, ::std::collections::HashMap::new())
  2081. }
  2082. }
  2083. impl ::protobuf::Message for RowMetaChangeset {
  2084. fn is_initialized(&self) -> bool {
  2085. true
  2086. }
  2087. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2088. while !is.eof()? {
  2089. let (field_number, wire_type) = is.read_tag_unpack()?;
  2090. match field_number {
  2091. 1 => {
  2092. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  2093. },
  2094. 2 => {
  2095. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2096. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2097. }
  2098. self.one_of_height = ::std::option::Option::Some(RowMetaChangeset_oneof_one_of_height::height(is.read_int32()?));
  2099. },
  2100. 3 => {
  2101. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2102. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2103. }
  2104. self.one_of_visibility = ::std::option::Option::Some(RowMetaChangeset_oneof_one_of_visibility::visibility(is.read_bool()?));
  2105. },
  2106. 4 => {
  2107. ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<CellMeta>>(wire_type, is, &mut self.cell_by_field_id)?;
  2108. },
  2109. _ => {
  2110. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2111. },
  2112. };
  2113. }
  2114. ::std::result::Result::Ok(())
  2115. }
  2116. // Compute sizes of nested messages
  2117. #[allow(unused_variables)]
  2118. fn compute_size(&self) -> u32 {
  2119. let mut my_size = 0;
  2120. if !self.row_id.is_empty() {
  2121. my_size += ::protobuf::rt::string_size(1, &self.row_id);
  2122. }
  2123. my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<CellMeta>>(4, &self.cell_by_field_id);
  2124. if let ::std::option::Option::Some(ref v) = self.one_of_height {
  2125. match v {
  2126. &RowMetaChangeset_oneof_one_of_height::height(v) => {
  2127. my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint);
  2128. },
  2129. };
  2130. }
  2131. if let ::std::option::Option::Some(ref v) = self.one_of_visibility {
  2132. match v {
  2133. &RowMetaChangeset_oneof_one_of_visibility::visibility(v) => {
  2134. my_size += 2;
  2135. },
  2136. };
  2137. }
  2138. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2139. self.cached_size.set(my_size);
  2140. my_size
  2141. }
  2142. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2143. if !self.row_id.is_empty() {
  2144. os.write_string(1, &self.row_id)?;
  2145. }
  2146. ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<CellMeta>>(4, &self.cell_by_field_id, os)?;
  2147. if let ::std::option::Option::Some(ref v) = self.one_of_height {
  2148. match v {
  2149. &RowMetaChangeset_oneof_one_of_height::height(v) => {
  2150. os.write_int32(2, v)?;
  2151. },
  2152. };
  2153. }
  2154. if let ::std::option::Option::Some(ref v) = self.one_of_visibility {
  2155. match v {
  2156. &RowMetaChangeset_oneof_one_of_visibility::visibility(v) => {
  2157. os.write_bool(3, v)?;
  2158. },
  2159. };
  2160. }
  2161. os.write_unknown_fields(self.get_unknown_fields())?;
  2162. ::std::result::Result::Ok(())
  2163. }
  2164. fn get_cached_size(&self) -> u32 {
  2165. self.cached_size.get()
  2166. }
  2167. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2168. &self.unknown_fields
  2169. }
  2170. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2171. &mut self.unknown_fields
  2172. }
  2173. fn as_any(&self) -> &dyn (::std::any::Any) {
  2174. self as &dyn (::std::any::Any)
  2175. }
  2176. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2177. self as &mut dyn (::std::any::Any)
  2178. }
  2179. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2180. self
  2181. }
  2182. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2183. Self::descriptor_static()
  2184. }
  2185. fn new() -> RowMetaChangeset {
  2186. RowMetaChangeset::new()
  2187. }
  2188. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2189. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2190. descriptor.get(|| {
  2191. let mut fields = ::std::vec::Vec::new();
  2192. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2193. "row_id",
  2194. |m: &RowMetaChangeset| { &m.row_id },
  2195. |m: &mut RowMetaChangeset| { &mut m.row_id },
  2196. ));
  2197. fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>(
  2198. "height",
  2199. RowMetaChangeset::has_height,
  2200. RowMetaChangeset::get_height,
  2201. ));
  2202. fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>(
  2203. "visibility",
  2204. RowMetaChangeset::has_visibility,
  2205. RowMetaChangeset::get_visibility,
  2206. ));
  2207. fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<CellMeta>>(
  2208. "cell_by_field_id",
  2209. |m: &RowMetaChangeset| { &m.cell_by_field_id },
  2210. |m: &mut RowMetaChangeset| { &mut m.cell_by_field_id },
  2211. ));
  2212. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RowMetaChangeset>(
  2213. "RowMetaChangeset",
  2214. fields,
  2215. file_descriptor_proto()
  2216. )
  2217. })
  2218. }
  2219. fn default_instance() -> &'static RowMetaChangeset {
  2220. static instance: ::protobuf::rt::LazyV2<RowMetaChangeset> = ::protobuf::rt::LazyV2::INIT;
  2221. instance.get(RowMetaChangeset::new)
  2222. }
  2223. }
  2224. impl ::protobuf::Clear for RowMetaChangeset {
  2225. fn clear(&mut self) {
  2226. self.row_id.clear();
  2227. self.one_of_height = ::std::option::Option::None;
  2228. self.one_of_visibility = ::std::option::Option::None;
  2229. self.cell_by_field_id.clear();
  2230. self.unknown_fields.clear();
  2231. }
  2232. }
  2233. impl ::std::fmt::Debug for RowMetaChangeset {
  2234. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2235. ::protobuf::text_format::fmt(self, f)
  2236. }
  2237. }
  2238. impl ::protobuf::reflect::ProtobufValue for RowMetaChangeset {
  2239. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2240. ::protobuf::reflect::ReflectValueRef::Message(self)
  2241. }
  2242. }
  2243. #[derive(PartialEq,Clone,Default)]
  2244. pub struct CellMeta {
  2245. // message fields
  2246. pub field_id: ::std::string::String,
  2247. pub data: ::std::string::String,
  2248. // special fields
  2249. pub unknown_fields: ::protobuf::UnknownFields,
  2250. pub cached_size: ::protobuf::CachedSize,
  2251. }
  2252. impl<'a> ::std::default::Default for &'a CellMeta {
  2253. fn default() -> &'a CellMeta {
  2254. <CellMeta as ::protobuf::Message>::default_instance()
  2255. }
  2256. }
  2257. impl CellMeta {
  2258. pub fn new() -> CellMeta {
  2259. ::std::default::Default::default()
  2260. }
  2261. // string field_id = 1;
  2262. pub fn get_field_id(&self) -> &str {
  2263. &self.field_id
  2264. }
  2265. pub fn clear_field_id(&mut self) {
  2266. self.field_id.clear();
  2267. }
  2268. // Param is passed by value, moved
  2269. pub fn set_field_id(&mut self, v: ::std::string::String) {
  2270. self.field_id = v;
  2271. }
  2272. // Mutable pointer to the field.
  2273. // If field is not initialized, it is initialized with default value first.
  2274. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  2275. &mut self.field_id
  2276. }
  2277. // Take field
  2278. pub fn take_field_id(&mut self) -> ::std::string::String {
  2279. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  2280. }
  2281. // string data = 2;
  2282. pub fn get_data(&self) -> &str {
  2283. &self.data
  2284. }
  2285. pub fn clear_data(&mut self) {
  2286. self.data.clear();
  2287. }
  2288. // Param is passed by value, moved
  2289. pub fn set_data(&mut self, v: ::std::string::String) {
  2290. self.data = v;
  2291. }
  2292. // Mutable pointer to the field.
  2293. // If field is not initialized, it is initialized with default value first.
  2294. pub fn mut_data(&mut self) -> &mut ::std::string::String {
  2295. &mut self.data
  2296. }
  2297. // Take field
  2298. pub fn take_data(&mut self) -> ::std::string::String {
  2299. ::std::mem::replace(&mut self.data, ::std::string::String::new())
  2300. }
  2301. }
  2302. impl ::protobuf::Message for CellMeta {
  2303. fn is_initialized(&self) -> bool {
  2304. true
  2305. }
  2306. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2307. while !is.eof()? {
  2308. let (field_number, wire_type) = is.read_tag_unpack()?;
  2309. match field_number {
  2310. 1 => {
  2311. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  2312. },
  2313. 2 => {
  2314. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.data)?;
  2315. },
  2316. _ => {
  2317. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2318. },
  2319. };
  2320. }
  2321. ::std::result::Result::Ok(())
  2322. }
  2323. // Compute sizes of nested messages
  2324. #[allow(unused_variables)]
  2325. fn compute_size(&self) -> u32 {
  2326. let mut my_size = 0;
  2327. if !self.field_id.is_empty() {
  2328. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  2329. }
  2330. if !self.data.is_empty() {
  2331. my_size += ::protobuf::rt::string_size(2, &self.data);
  2332. }
  2333. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2334. self.cached_size.set(my_size);
  2335. my_size
  2336. }
  2337. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2338. if !self.field_id.is_empty() {
  2339. os.write_string(1, &self.field_id)?;
  2340. }
  2341. if !self.data.is_empty() {
  2342. os.write_string(2, &self.data)?;
  2343. }
  2344. os.write_unknown_fields(self.get_unknown_fields())?;
  2345. ::std::result::Result::Ok(())
  2346. }
  2347. fn get_cached_size(&self) -> u32 {
  2348. self.cached_size.get()
  2349. }
  2350. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2351. &self.unknown_fields
  2352. }
  2353. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2354. &mut self.unknown_fields
  2355. }
  2356. fn as_any(&self) -> &dyn (::std::any::Any) {
  2357. self as &dyn (::std::any::Any)
  2358. }
  2359. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2360. self as &mut dyn (::std::any::Any)
  2361. }
  2362. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2363. self
  2364. }
  2365. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2366. Self::descriptor_static()
  2367. }
  2368. fn new() -> CellMeta {
  2369. CellMeta::new()
  2370. }
  2371. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2372. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2373. descriptor.get(|| {
  2374. let mut fields = ::std::vec::Vec::new();
  2375. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2376. "field_id",
  2377. |m: &CellMeta| { &m.field_id },
  2378. |m: &mut CellMeta| { &mut m.field_id },
  2379. ));
  2380. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2381. "data",
  2382. |m: &CellMeta| { &m.data },
  2383. |m: &mut CellMeta| { &mut m.data },
  2384. ));
  2385. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CellMeta>(
  2386. "CellMeta",
  2387. fields,
  2388. file_descriptor_proto()
  2389. )
  2390. })
  2391. }
  2392. fn default_instance() -> &'static CellMeta {
  2393. static instance: ::protobuf::rt::LazyV2<CellMeta> = ::protobuf::rt::LazyV2::INIT;
  2394. instance.get(CellMeta::new)
  2395. }
  2396. }
  2397. impl ::protobuf::Clear for CellMeta {
  2398. fn clear(&mut self) {
  2399. self.field_id.clear();
  2400. self.data.clear();
  2401. self.unknown_fields.clear();
  2402. }
  2403. }
  2404. impl ::std::fmt::Debug for CellMeta {
  2405. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2406. ::protobuf::text_format::fmt(self, f)
  2407. }
  2408. }
  2409. impl ::protobuf::reflect::ProtobufValue for CellMeta {
  2410. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2411. ::protobuf::reflect::ReflectValueRef::Message(self)
  2412. }
  2413. }
  2414. #[derive(PartialEq,Clone,Default)]
  2415. pub struct CellMetaChangeset {
  2416. // message fields
  2417. pub grid_id: ::std::string::String,
  2418. pub row_id: ::std::string::String,
  2419. pub field_id: ::std::string::String,
  2420. // message oneof groups
  2421. pub one_of_data: ::std::option::Option<CellMetaChangeset_oneof_one_of_data>,
  2422. // special fields
  2423. pub unknown_fields: ::protobuf::UnknownFields,
  2424. pub cached_size: ::protobuf::CachedSize,
  2425. }
  2426. impl<'a> ::std::default::Default for &'a CellMetaChangeset {
  2427. fn default() -> &'a CellMetaChangeset {
  2428. <CellMetaChangeset as ::protobuf::Message>::default_instance()
  2429. }
  2430. }
  2431. #[derive(Clone,PartialEq,Debug)]
  2432. pub enum CellMetaChangeset_oneof_one_of_data {
  2433. data(::std::string::String),
  2434. }
  2435. impl CellMetaChangeset {
  2436. pub fn new() -> CellMetaChangeset {
  2437. ::std::default::Default::default()
  2438. }
  2439. // string grid_id = 1;
  2440. pub fn get_grid_id(&self) -> &str {
  2441. &self.grid_id
  2442. }
  2443. pub fn clear_grid_id(&mut self) {
  2444. self.grid_id.clear();
  2445. }
  2446. // Param is passed by value, moved
  2447. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  2448. self.grid_id = v;
  2449. }
  2450. // Mutable pointer to the field.
  2451. // If field is not initialized, it is initialized with default value first.
  2452. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  2453. &mut self.grid_id
  2454. }
  2455. // Take field
  2456. pub fn take_grid_id(&mut self) -> ::std::string::String {
  2457. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  2458. }
  2459. // string row_id = 2;
  2460. pub fn get_row_id(&self) -> &str {
  2461. &self.row_id
  2462. }
  2463. pub fn clear_row_id(&mut self) {
  2464. self.row_id.clear();
  2465. }
  2466. // Param is passed by value, moved
  2467. pub fn set_row_id(&mut self, v: ::std::string::String) {
  2468. self.row_id = v;
  2469. }
  2470. // Mutable pointer to the field.
  2471. // If field is not initialized, it is initialized with default value first.
  2472. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  2473. &mut self.row_id
  2474. }
  2475. // Take field
  2476. pub fn take_row_id(&mut self) -> ::std::string::String {
  2477. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  2478. }
  2479. // string field_id = 3;
  2480. pub fn get_field_id(&self) -> &str {
  2481. &self.field_id
  2482. }
  2483. pub fn clear_field_id(&mut self) {
  2484. self.field_id.clear();
  2485. }
  2486. // Param is passed by value, moved
  2487. pub fn set_field_id(&mut self, v: ::std::string::String) {
  2488. self.field_id = v;
  2489. }
  2490. // Mutable pointer to the field.
  2491. // If field is not initialized, it is initialized with default value first.
  2492. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  2493. &mut self.field_id
  2494. }
  2495. // Take field
  2496. pub fn take_field_id(&mut self) -> ::std::string::String {
  2497. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  2498. }
  2499. // string data = 4;
  2500. pub fn get_data(&self) -> &str {
  2501. match self.one_of_data {
  2502. ::std::option::Option::Some(CellMetaChangeset_oneof_one_of_data::data(ref v)) => v,
  2503. _ => "",
  2504. }
  2505. }
  2506. pub fn clear_data(&mut self) {
  2507. self.one_of_data = ::std::option::Option::None;
  2508. }
  2509. pub fn has_data(&self) -> bool {
  2510. match self.one_of_data {
  2511. ::std::option::Option::Some(CellMetaChangeset_oneof_one_of_data::data(..)) => true,
  2512. _ => false,
  2513. }
  2514. }
  2515. // Param is passed by value, moved
  2516. pub fn set_data(&mut self, v: ::std::string::String) {
  2517. self.one_of_data = ::std::option::Option::Some(CellMetaChangeset_oneof_one_of_data::data(v))
  2518. }
  2519. // Mutable pointer to the field.
  2520. pub fn mut_data(&mut self) -> &mut ::std::string::String {
  2521. if let ::std::option::Option::Some(CellMetaChangeset_oneof_one_of_data::data(_)) = self.one_of_data {
  2522. } else {
  2523. self.one_of_data = ::std::option::Option::Some(CellMetaChangeset_oneof_one_of_data::data(::std::string::String::new()));
  2524. }
  2525. match self.one_of_data {
  2526. ::std::option::Option::Some(CellMetaChangeset_oneof_one_of_data::data(ref mut v)) => v,
  2527. _ => panic!(),
  2528. }
  2529. }
  2530. // Take field
  2531. pub fn take_data(&mut self) -> ::std::string::String {
  2532. if self.has_data() {
  2533. match self.one_of_data.take() {
  2534. ::std::option::Option::Some(CellMetaChangeset_oneof_one_of_data::data(v)) => v,
  2535. _ => panic!(),
  2536. }
  2537. } else {
  2538. ::std::string::String::new()
  2539. }
  2540. }
  2541. }
  2542. impl ::protobuf::Message for CellMetaChangeset {
  2543. fn is_initialized(&self) -> bool {
  2544. true
  2545. }
  2546. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2547. while !is.eof()? {
  2548. let (field_number, wire_type) = is.read_tag_unpack()?;
  2549. match field_number {
  2550. 1 => {
  2551. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  2552. },
  2553. 2 => {
  2554. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  2555. },
  2556. 3 => {
  2557. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  2558. },
  2559. 4 => {
  2560. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  2561. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2562. }
  2563. self.one_of_data = ::std::option::Option::Some(CellMetaChangeset_oneof_one_of_data::data(is.read_string()?));
  2564. },
  2565. _ => {
  2566. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2567. },
  2568. };
  2569. }
  2570. ::std::result::Result::Ok(())
  2571. }
  2572. // Compute sizes of nested messages
  2573. #[allow(unused_variables)]
  2574. fn compute_size(&self) -> u32 {
  2575. let mut my_size = 0;
  2576. if !self.grid_id.is_empty() {
  2577. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  2578. }
  2579. if !self.row_id.is_empty() {
  2580. my_size += ::protobuf::rt::string_size(2, &self.row_id);
  2581. }
  2582. if !self.field_id.is_empty() {
  2583. my_size += ::protobuf::rt::string_size(3, &self.field_id);
  2584. }
  2585. if let ::std::option::Option::Some(ref v) = self.one_of_data {
  2586. match v {
  2587. &CellMetaChangeset_oneof_one_of_data::data(ref v) => {
  2588. my_size += ::protobuf::rt::string_size(4, &v);
  2589. },
  2590. };
  2591. }
  2592. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2593. self.cached_size.set(my_size);
  2594. my_size
  2595. }
  2596. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2597. if !self.grid_id.is_empty() {
  2598. os.write_string(1, &self.grid_id)?;
  2599. }
  2600. if !self.row_id.is_empty() {
  2601. os.write_string(2, &self.row_id)?;
  2602. }
  2603. if !self.field_id.is_empty() {
  2604. os.write_string(3, &self.field_id)?;
  2605. }
  2606. if let ::std::option::Option::Some(ref v) = self.one_of_data {
  2607. match v {
  2608. &CellMetaChangeset_oneof_one_of_data::data(ref v) => {
  2609. os.write_string(4, v)?;
  2610. },
  2611. };
  2612. }
  2613. os.write_unknown_fields(self.get_unknown_fields())?;
  2614. ::std::result::Result::Ok(())
  2615. }
  2616. fn get_cached_size(&self) -> u32 {
  2617. self.cached_size.get()
  2618. }
  2619. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2620. &self.unknown_fields
  2621. }
  2622. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2623. &mut self.unknown_fields
  2624. }
  2625. fn as_any(&self) -> &dyn (::std::any::Any) {
  2626. self as &dyn (::std::any::Any)
  2627. }
  2628. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2629. self as &mut dyn (::std::any::Any)
  2630. }
  2631. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2632. self
  2633. }
  2634. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2635. Self::descriptor_static()
  2636. }
  2637. fn new() -> CellMetaChangeset {
  2638. CellMetaChangeset::new()
  2639. }
  2640. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2641. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2642. descriptor.get(|| {
  2643. let mut fields = ::std::vec::Vec::new();
  2644. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2645. "grid_id",
  2646. |m: &CellMetaChangeset| { &m.grid_id },
  2647. |m: &mut CellMetaChangeset| { &mut m.grid_id },
  2648. ));
  2649. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2650. "row_id",
  2651. |m: &CellMetaChangeset| { &m.row_id },
  2652. |m: &mut CellMetaChangeset| { &mut m.row_id },
  2653. ));
  2654. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2655. "field_id",
  2656. |m: &CellMetaChangeset| { &m.field_id },
  2657. |m: &mut CellMetaChangeset| { &mut m.field_id },
  2658. ));
  2659. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  2660. "data",
  2661. CellMetaChangeset::has_data,
  2662. CellMetaChangeset::get_data,
  2663. ));
  2664. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CellMetaChangeset>(
  2665. "CellMetaChangeset",
  2666. fields,
  2667. file_descriptor_proto()
  2668. )
  2669. })
  2670. }
  2671. fn default_instance() -> &'static CellMetaChangeset {
  2672. static instance: ::protobuf::rt::LazyV2<CellMetaChangeset> = ::protobuf::rt::LazyV2::INIT;
  2673. instance.get(CellMetaChangeset::new)
  2674. }
  2675. }
  2676. impl ::protobuf::Clear for CellMetaChangeset {
  2677. fn clear(&mut self) {
  2678. self.grid_id.clear();
  2679. self.row_id.clear();
  2680. self.field_id.clear();
  2681. self.one_of_data = ::std::option::Option::None;
  2682. self.unknown_fields.clear();
  2683. }
  2684. }
  2685. impl ::std::fmt::Debug for CellMetaChangeset {
  2686. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2687. ::protobuf::text_format::fmt(self, f)
  2688. }
  2689. }
  2690. impl ::protobuf::reflect::ProtobufValue for CellMetaChangeset {
  2691. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2692. ::protobuf::reflect::ReflectValueRef::Message(self)
  2693. }
  2694. }
  2695. #[derive(PartialEq,Clone,Default)]
  2696. pub struct BuildGridContext {
  2697. // message fields
  2698. pub field_metas: ::protobuf::RepeatedField<FieldMeta>,
  2699. pub block_metas: ::protobuf::SingularPtrField<GridBlockMeta>,
  2700. pub block_meta_data: ::protobuf::SingularPtrField<GridBlockMetaSerde>,
  2701. // special fields
  2702. pub unknown_fields: ::protobuf::UnknownFields,
  2703. pub cached_size: ::protobuf::CachedSize,
  2704. }
  2705. impl<'a> ::std::default::Default for &'a BuildGridContext {
  2706. fn default() -> &'a BuildGridContext {
  2707. <BuildGridContext as ::protobuf::Message>::default_instance()
  2708. }
  2709. }
  2710. impl BuildGridContext {
  2711. pub fn new() -> BuildGridContext {
  2712. ::std::default::Default::default()
  2713. }
  2714. // repeated .FieldMeta field_metas = 1;
  2715. pub fn get_field_metas(&self) -> &[FieldMeta] {
  2716. &self.field_metas
  2717. }
  2718. pub fn clear_field_metas(&mut self) {
  2719. self.field_metas.clear();
  2720. }
  2721. // Param is passed by value, moved
  2722. pub fn set_field_metas(&mut self, v: ::protobuf::RepeatedField<FieldMeta>) {
  2723. self.field_metas = v;
  2724. }
  2725. // Mutable pointer to the field.
  2726. pub fn mut_field_metas(&mut self) -> &mut ::protobuf::RepeatedField<FieldMeta> {
  2727. &mut self.field_metas
  2728. }
  2729. // Take field
  2730. pub fn take_field_metas(&mut self) -> ::protobuf::RepeatedField<FieldMeta> {
  2731. ::std::mem::replace(&mut self.field_metas, ::protobuf::RepeatedField::new())
  2732. }
  2733. // .GridBlockMeta block_metas = 2;
  2734. pub fn get_block_metas(&self) -> &GridBlockMeta {
  2735. self.block_metas.as_ref().unwrap_or_else(|| <GridBlockMeta as ::protobuf::Message>::default_instance())
  2736. }
  2737. pub fn clear_block_metas(&mut self) {
  2738. self.block_metas.clear();
  2739. }
  2740. pub fn has_block_metas(&self) -> bool {
  2741. self.block_metas.is_some()
  2742. }
  2743. // Param is passed by value, moved
  2744. pub fn set_block_metas(&mut self, v: GridBlockMeta) {
  2745. self.block_metas = ::protobuf::SingularPtrField::some(v);
  2746. }
  2747. // Mutable pointer to the field.
  2748. // If field is not initialized, it is initialized with default value first.
  2749. pub fn mut_block_metas(&mut self) -> &mut GridBlockMeta {
  2750. if self.block_metas.is_none() {
  2751. self.block_metas.set_default();
  2752. }
  2753. self.block_metas.as_mut().unwrap()
  2754. }
  2755. // Take field
  2756. pub fn take_block_metas(&mut self) -> GridBlockMeta {
  2757. self.block_metas.take().unwrap_or_else(|| GridBlockMeta::new())
  2758. }
  2759. // .GridBlockMetaSerde block_meta_data = 3;
  2760. pub fn get_block_meta_data(&self) -> &GridBlockMetaSerde {
  2761. self.block_meta_data.as_ref().unwrap_or_else(|| <GridBlockMetaSerde as ::protobuf::Message>::default_instance())
  2762. }
  2763. pub fn clear_block_meta_data(&mut self) {
  2764. self.block_meta_data.clear();
  2765. }
  2766. pub fn has_block_meta_data(&self) -> bool {
  2767. self.block_meta_data.is_some()
  2768. }
  2769. // Param is passed by value, moved
  2770. pub fn set_block_meta_data(&mut self, v: GridBlockMetaSerde) {
  2771. self.block_meta_data = ::protobuf::SingularPtrField::some(v);
  2772. }
  2773. // Mutable pointer to the field.
  2774. // If field is not initialized, it is initialized with default value first.
  2775. pub fn mut_block_meta_data(&mut self) -> &mut GridBlockMetaSerde {
  2776. if self.block_meta_data.is_none() {
  2777. self.block_meta_data.set_default();
  2778. }
  2779. self.block_meta_data.as_mut().unwrap()
  2780. }
  2781. // Take field
  2782. pub fn take_block_meta_data(&mut self) -> GridBlockMetaSerde {
  2783. self.block_meta_data.take().unwrap_or_else(|| GridBlockMetaSerde::new())
  2784. }
  2785. }
  2786. impl ::protobuf::Message for BuildGridContext {
  2787. fn is_initialized(&self) -> bool {
  2788. for v in &self.field_metas {
  2789. if !v.is_initialized() {
  2790. return false;
  2791. }
  2792. };
  2793. for v in &self.block_metas {
  2794. if !v.is_initialized() {
  2795. return false;
  2796. }
  2797. };
  2798. for v in &self.block_meta_data {
  2799. if !v.is_initialized() {
  2800. return false;
  2801. }
  2802. };
  2803. true
  2804. }
  2805. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2806. while !is.eof()? {
  2807. let (field_number, wire_type) = is.read_tag_unpack()?;
  2808. match field_number {
  2809. 1 => {
  2810. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.field_metas)?;
  2811. },
  2812. 2 => {
  2813. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.block_metas)?;
  2814. },
  2815. 3 => {
  2816. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.block_meta_data)?;
  2817. },
  2818. _ => {
  2819. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2820. },
  2821. };
  2822. }
  2823. ::std::result::Result::Ok(())
  2824. }
  2825. // Compute sizes of nested messages
  2826. #[allow(unused_variables)]
  2827. fn compute_size(&self) -> u32 {
  2828. let mut my_size = 0;
  2829. for value in &self.field_metas {
  2830. let len = value.compute_size();
  2831. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2832. };
  2833. if let Some(ref v) = self.block_metas.as_ref() {
  2834. let len = v.compute_size();
  2835. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2836. }
  2837. if let Some(ref v) = self.block_meta_data.as_ref() {
  2838. let len = v.compute_size();
  2839. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2840. }
  2841. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2842. self.cached_size.set(my_size);
  2843. my_size
  2844. }
  2845. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2846. for v in &self.field_metas {
  2847. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2848. os.write_raw_varint32(v.get_cached_size())?;
  2849. v.write_to_with_cached_sizes(os)?;
  2850. };
  2851. if let Some(ref v) = self.block_metas.as_ref() {
  2852. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2853. os.write_raw_varint32(v.get_cached_size())?;
  2854. v.write_to_with_cached_sizes(os)?;
  2855. }
  2856. if let Some(ref v) = self.block_meta_data.as_ref() {
  2857. os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2858. os.write_raw_varint32(v.get_cached_size())?;
  2859. v.write_to_with_cached_sizes(os)?;
  2860. }
  2861. os.write_unknown_fields(self.get_unknown_fields())?;
  2862. ::std::result::Result::Ok(())
  2863. }
  2864. fn get_cached_size(&self) -> u32 {
  2865. self.cached_size.get()
  2866. }
  2867. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2868. &self.unknown_fields
  2869. }
  2870. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2871. &mut self.unknown_fields
  2872. }
  2873. fn as_any(&self) -> &dyn (::std::any::Any) {
  2874. self as &dyn (::std::any::Any)
  2875. }
  2876. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2877. self as &mut dyn (::std::any::Any)
  2878. }
  2879. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2880. self
  2881. }
  2882. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2883. Self::descriptor_static()
  2884. }
  2885. fn new() -> BuildGridContext {
  2886. BuildGridContext::new()
  2887. }
  2888. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2889. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2890. descriptor.get(|| {
  2891. let mut fields = ::std::vec::Vec::new();
  2892. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldMeta>>(
  2893. "field_metas",
  2894. |m: &BuildGridContext| { &m.field_metas },
  2895. |m: &mut BuildGridContext| { &mut m.field_metas },
  2896. ));
  2897. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockMeta>>(
  2898. "block_metas",
  2899. |m: &BuildGridContext| { &m.block_metas },
  2900. |m: &mut BuildGridContext| { &mut m.block_metas },
  2901. ));
  2902. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockMetaSerde>>(
  2903. "block_meta_data",
  2904. |m: &BuildGridContext| { &m.block_meta_data },
  2905. |m: &mut BuildGridContext| { &mut m.block_meta_data },
  2906. ));
  2907. ::protobuf::reflect::MessageDescriptor::new_pb_name::<BuildGridContext>(
  2908. "BuildGridContext",
  2909. fields,
  2910. file_descriptor_proto()
  2911. )
  2912. })
  2913. }
  2914. fn default_instance() -> &'static BuildGridContext {
  2915. static instance: ::protobuf::rt::LazyV2<BuildGridContext> = ::protobuf::rt::LazyV2::INIT;
  2916. instance.get(BuildGridContext::new)
  2917. }
  2918. }
  2919. impl ::protobuf::Clear for BuildGridContext {
  2920. fn clear(&mut self) {
  2921. self.field_metas.clear();
  2922. self.block_metas.clear();
  2923. self.block_meta_data.clear();
  2924. self.unknown_fields.clear();
  2925. }
  2926. }
  2927. impl ::std::fmt::Debug for BuildGridContext {
  2928. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2929. ::protobuf::text_format::fmt(self, f)
  2930. }
  2931. }
  2932. impl ::protobuf::reflect::ProtobufValue for BuildGridContext {
  2933. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2934. ::protobuf::reflect::ReflectValueRef::Message(self)
  2935. }
  2936. }
  2937. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  2938. pub enum FieldType {
  2939. RichText = 0,
  2940. Number = 1,
  2941. DateTime = 2,
  2942. SingleSelect = 3,
  2943. MultiSelect = 4,
  2944. Checkbox = 5,
  2945. }
  2946. impl ::protobuf::ProtobufEnum for FieldType {
  2947. fn value(&self) -> i32 {
  2948. *self as i32
  2949. }
  2950. fn from_i32(value: i32) -> ::std::option::Option<FieldType> {
  2951. match value {
  2952. 0 => ::std::option::Option::Some(FieldType::RichText),
  2953. 1 => ::std::option::Option::Some(FieldType::Number),
  2954. 2 => ::std::option::Option::Some(FieldType::DateTime),
  2955. 3 => ::std::option::Option::Some(FieldType::SingleSelect),
  2956. 4 => ::std::option::Option::Some(FieldType::MultiSelect),
  2957. 5 => ::std::option::Option::Some(FieldType::Checkbox),
  2958. _ => ::std::option::Option::None
  2959. }
  2960. }
  2961. fn values() -> &'static [Self] {
  2962. static values: &'static [FieldType] = &[
  2963. FieldType::RichText,
  2964. FieldType::Number,
  2965. FieldType::DateTime,
  2966. FieldType::SingleSelect,
  2967. FieldType::MultiSelect,
  2968. FieldType::Checkbox,
  2969. ];
  2970. values
  2971. }
  2972. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  2973. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2974. descriptor.get(|| {
  2975. ::protobuf::reflect::EnumDescriptor::new_pb_name::<FieldType>("FieldType", file_descriptor_proto())
  2976. })
  2977. }
  2978. }
  2979. impl ::std::marker::Copy for FieldType {
  2980. }
  2981. impl ::std::default::Default for FieldType {
  2982. fn default() -> Self {
  2983. FieldType::RichText
  2984. }
  2985. }
  2986. impl ::protobuf::reflect::ProtobufValue for FieldType {
  2987. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2988. ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
  2989. }
  2990. }
  2991. static file_descriptor_proto_data: &'static [u8] = b"\
  2992. \n\nmeta.proto\"x\n\x08GridMeta\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\
  2993. \x06gridId\x12\"\n\x06fields\x18\x02\x20\x03(\x0b2\n.FieldMetaR\x06field\
  2994. s\x12/\n\x0bblock_metas\x18\x03\x20\x03(\x0b2\x0e.GridBlockMetaR\nblockM\
  2995. etas\"o\n\rGridBlockMeta\x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07bl\
  2996. ockId\x12&\n\x0fstart_row_index\x18\x02\x20\x01(\x05R\rstartRowIndex\x12\
  2997. \x1b\n\trow_count\x18\x03\x20\x01(\x05R\x08rowCount\"V\n\x12GridBlockMet\
  2998. aSerde\x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07blockId\x12%\n\trow_\
  2999. metas\x18\x02\x20\x03(\x0b2\x08.RowMetaR\x08rowMetas\"\xdf\x01\n\tFieldM\
  3000. eta\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\
  3001. \x20\x01(\tR\x04name\x12\x12\n\x04desc\x18\x03\x20\x01(\tR\x04desc\x12)\
  3002. \n\nfield_type\x18\x04\x20\x01(\x0e2\n.FieldTypeR\tfieldType\x12\x16\n\
  3003. \x06frozen\x18\x05\x20\x01(\x08R\x06frozen\x12\x1e\n\nvisibility\x18\x06\
  3004. \x20\x01(\x08R\nvisibility\x12\x14\n\x05width\x18\x07\x20\x01(\x05R\x05w\
  3005. idth\x12!\n\x0ctype_options\x18\x08\x20\x01(\tR\x0btypeOptions\"\xfd\x02\
  3006. \n\x0eFieldChangeset\x12\x19\n\x08field_id\x18\x01\x20\x01(\tR\x07fieldI\
  3007. d\x12\x14\n\x04name\x18\x02\x20\x01(\tH\0R\x04name\x12\x14\n\x04desc\x18\
  3008. \x03\x20\x01(\tH\x01R\x04desc\x12+\n\nfield_type\x18\x04\x20\x01(\x0e2\n\
  3009. .FieldTypeH\x02R\tfieldType\x12\x18\n\x06frozen\x18\x05\x20\x01(\x08H\
  3010. \x03R\x06frozen\x12\x20\n\nvisibility\x18\x06\x20\x01(\x08H\x04R\nvisibi\
  3011. lity\x12\x16\n\x05width\x18\x07\x20\x01(\x05H\x05R\x05width\x12#\n\x0cty\
  3012. pe_options\x18\x08\x20\x01(\tH\x06R\x0btypeOptionsB\r\n\x0bone_of_nameB\
  3013. \r\n\x0bone_of_descB\x13\n\x11one_of_field_typeB\x0f\n\rone_of_frozenB\
  3014. \x13\n\x11one_of_visibilityB\x0e\n\x0cone_of_widthB\x15\n\x13one_of_type\
  3015. _options\"8\n\x07AnyData\x12\x17\n\x07type_id\x18\x01\x20\x01(\tR\x06typ\
  3016. eId\x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\"\xff\x01\n\x07Row\
  3017. Meta\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x19\n\x08block_id\x18\
  3018. \x02\x20\x01(\tR\x07blockId\x12D\n\x10cell_by_field_id\x18\x03\x20\x03(\
  3019. \x0b2\x1b.RowMeta.CellByFieldIdEntryR\rcellByFieldId\x12\x16\n\x06height\
  3020. \x18\x04\x20\x01(\x05R\x06height\x12\x1e\n\nvisibility\x18\x05\x20\x01(\
  3021. \x08R\nvisibility\x1aK\n\x12CellByFieldIdEntry\x12\x10\n\x03key\x18\x01\
  3022. \x20\x01(\tR\x03key\x12\x1f\n\x05value\x18\x02\x20\x01(\x0b2\t.CellMetaR\
  3023. \x05value:\x028\x01\"\xa7\x02\n\x10RowMetaChangeset\x12\x15\n\x06row_id\
  3024. \x18\x01\x20\x01(\tR\x05rowId\x12\x18\n\x06height\x18\x02\x20\x01(\x05H\
  3025. \0R\x06height\x12\x20\n\nvisibility\x18\x03\x20\x01(\x08H\x01R\nvisibili\
  3026. ty\x12M\n\x10cell_by_field_id\x18\x04\x20\x03(\x0b2$.RowMetaChangeset.Ce\
  3027. llByFieldIdEntryR\rcellByFieldId\x1aK\n\x12CellByFieldIdEntry\x12\x10\n\
  3028. \x03key\x18\x01\x20\x01(\tR\x03key\x12\x1f\n\x05value\x18\x02\x20\x01(\
  3029. \x0b2\t.CellMetaR\x05value:\x028\x01B\x0f\n\rone_of_heightB\x13\n\x11one\
  3030. _of_visibility\"9\n\x08CellMeta\x12\x19\n\x08field_id\x18\x01\x20\x01(\t\
  3031. R\x07fieldId\x12\x12\n\x04data\x18\x02\x20\x01(\tR\x04data\"\x83\x01\n\
  3032. \x11CellMetaChangeset\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\
  3033. \x12\x15\n\x06row_id\x18\x02\x20\x01(\tR\x05rowId\x12\x19\n\x08field_id\
  3034. \x18\x03\x20\x01(\tR\x07fieldId\x12\x14\n\x04data\x18\x04\x20\x01(\tH\0R\
  3035. \x04dataB\r\n\x0bone_of_data\"\xad\x01\n\x10BuildGridContext\x12+\n\x0bf\
  3036. ield_metas\x18\x01\x20\x03(\x0b2\n.FieldMetaR\nfieldMetas\x12/\n\x0bbloc\
  3037. k_metas\x18\x02\x20\x01(\x0b2\x0e.GridBlockMetaR\nblockMetas\x12;\n\x0fb\
  3038. lock_meta_data\x18\x03\x20\x01(\x0b2\x13.GridBlockMetaSerdeR\rblockMetaD\
  3039. ata*d\n\tFieldType\x12\x0c\n\x08RichText\x10\0\x12\n\n\x06Number\x10\x01\
  3040. \x12\x0c\n\x08DateTime\x10\x02\x12\x10\n\x0cSingleSelect\x10\x03\x12\x0f\
  3041. \n\x0bMultiSelect\x10\x04\x12\x0c\n\x08Checkbox\x10\x05b\x06proto3\
  3042. ";
  3043. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  3044. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  3045. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  3046. }
  3047. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  3048. file_descriptor_proto_lazy.get(|| {
  3049. parse_descriptor_proto()
  3050. })
  3051. }