query.pb.cc 198 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682
  1. /*
  2. * Copyright 2025 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/query.proto
  18. #include "google/firestore/v1/query.pb.h"
  19. #include <algorithm>
  20. #include "google/protobuf/io/coded_stream.h"
  21. #include "google/protobuf/extension_set.h"
  22. #include "google/protobuf/wire_format_lite.h"
  23. #include "google/protobuf/descriptor.h"
  24. #include "google/protobuf/generated_message_reflection.h"
  25. #include "google/protobuf/reflection_ops.h"
  26. #include "google/protobuf/wire_format.h"
  27. #include "google/protobuf/generated_message_tctable_impl.h"
  28. // @@protoc_insertion_point(includes)
  29. // Must be included last.
  30. #include "google/protobuf/port_def.inc"
  31. PROTOBUF_PRAGMA_INIT_SEG
  32. namespace _pb = ::google::protobuf;
  33. namespace _pbi = ::google::protobuf::internal;
  34. namespace _fl = ::google::protobuf::internal::field_layout;
  35. namespace google {
  36. namespace firestore {
  37. namespace v1 {
  38. inline constexpr StructuredQuery_FieldReference::Impl_::Impl_(
  39. ::_pbi::ConstantInitialized) noexcept
  40. : field_path_(
  41. &::google::protobuf::internal::fixed_address_empty_string,
  42. ::_pbi::ConstantInitialized()),
  43. _cached_size_{0} {}
  44. template <typename>
  45. PROTOBUF_CONSTEXPR StructuredQuery_FieldReference::StructuredQuery_FieldReference(::_pbi::ConstantInitialized)
  46. : _impl_(::_pbi::ConstantInitialized()) {}
  47. struct StructuredQuery_FieldReferenceDefaultTypeInternal {
  48. PROTOBUF_CONSTEXPR StructuredQuery_FieldReferenceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  49. ~StructuredQuery_FieldReferenceDefaultTypeInternal() {}
  50. union {
  51. StructuredQuery_FieldReference _instance;
  52. };
  53. };
  54. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  55. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_FieldReferenceDefaultTypeInternal _StructuredQuery_FieldReference_default_instance_;
  56. inline constexpr StructuredQuery_CollectionSelector::Impl_::Impl_(
  57. ::_pbi::ConstantInitialized) noexcept
  58. : collection_id_(
  59. &::google::protobuf::internal::fixed_address_empty_string,
  60. ::_pbi::ConstantInitialized()),
  61. all_descendants_{false},
  62. _cached_size_{0} {}
  63. template <typename>
  64. PROTOBUF_CONSTEXPR StructuredQuery_CollectionSelector::StructuredQuery_CollectionSelector(::_pbi::ConstantInitialized)
  65. : _impl_(::_pbi::ConstantInitialized()) {}
  66. struct StructuredQuery_CollectionSelectorDefaultTypeInternal {
  67. PROTOBUF_CONSTEXPR StructuredQuery_CollectionSelectorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  68. ~StructuredQuery_CollectionSelectorDefaultTypeInternal() {}
  69. union {
  70. StructuredQuery_CollectionSelector _instance;
  71. };
  72. };
  73. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  74. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_CollectionSelectorDefaultTypeInternal _StructuredQuery_CollectionSelector_default_instance_;
  75. inline constexpr StructuredQuery_UnaryFilter::Impl_::Impl_(
  76. ::_pbi::ConstantInitialized) noexcept
  77. : op_{static_cast< ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator >(0)},
  78. operand_type_{},
  79. _cached_size_{0},
  80. _oneof_case_{} {}
  81. template <typename>
  82. PROTOBUF_CONSTEXPR StructuredQuery_UnaryFilter::StructuredQuery_UnaryFilter(::_pbi::ConstantInitialized)
  83. : _impl_(::_pbi::ConstantInitialized()) {}
  84. struct StructuredQuery_UnaryFilterDefaultTypeInternal {
  85. PROTOBUF_CONSTEXPR StructuredQuery_UnaryFilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  86. ~StructuredQuery_UnaryFilterDefaultTypeInternal() {}
  87. union {
  88. StructuredQuery_UnaryFilter _instance;
  89. };
  90. };
  91. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  92. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_UnaryFilterDefaultTypeInternal _StructuredQuery_UnaryFilter_default_instance_;
  93. inline constexpr StructuredQuery_Projection::Impl_::Impl_(
  94. ::_pbi::ConstantInitialized) noexcept
  95. : fields_{},
  96. _cached_size_{0} {}
  97. template <typename>
  98. PROTOBUF_CONSTEXPR StructuredQuery_Projection::StructuredQuery_Projection(::_pbi::ConstantInitialized)
  99. : _impl_(::_pbi::ConstantInitialized()) {}
  100. struct StructuredQuery_ProjectionDefaultTypeInternal {
  101. PROTOBUF_CONSTEXPR StructuredQuery_ProjectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  102. ~StructuredQuery_ProjectionDefaultTypeInternal() {}
  103. union {
  104. StructuredQuery_Projection _instance;
  105. };
  106. };
  107. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  108. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_ProjectionDefaultTypeInternal _StructuredQuery_Projection_default_instance_;
  109. inline constexpr StructuredQuery_Order::Impl_::Impl_(
  110. ::_pbi::ConstantInitialized) noexcept
  111. : _cached_size_{0},
  112. field_{nullptr},
  113. direction_{static_cast< ::google::firestore::v1::StructuredQuery_Direction >(0)} {}
  114. template <typename>
  115. PROTOBUF_CONSTEXPR StructuredQuery_Order::StructuredQuery_Order(::_pbi::ConstantInitialized)
  116. : _impl_(::_pbi::ConstantInitialized()) {}
  117. struct StructuredQuery_OrderDefaultTypeInternal {
  118. PROTOBUF_CONSTEXPR StructuredQuery_OrderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  119. ~StructuredQuery_OrderDefaultTypeInternal() {}
  120. union {
  121. StructuredQuery_Order _instance;
  122. };
  123. };
  124. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  125. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_OrderDefaultTypeInternal _StructuredQuery_Order_default_instance_;
  126. inline constexpr StructuredAggregationQuery_Aggregation_Sum::Impl_::Impl_(
  127. ::_pbi::ConstantInitialized) noexcept
  128. : _cached_size_{0},
  129. field_{nullptr} {}
  130. template <typename>
  131. PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Sum::StructuredAggregationQuery_Aggregation_Sum(::_pbi::ConstantInitialized)
  132. : _impl_(::_pbi::ConstantInitialized()) {}
  133. struct StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal {
  134. PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  135. ~StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal() {}
  136. union {
  137. StructuredAggregationQuery_Aggregation_Sum _instance;
  138. };
  139. };
  140. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  141. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Sum_default_instance_;
  142. inline constexpr StructuredAggregationQuery_Aggregation_Count::Impl_::Impl_(
  143. ::_pbi::ConstantInitialized) noexcept
  144. : _cached_size_{0},
  145. up_to_{nullptr} {}
  146. template <typename>
  147. PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Count::StructuredAggregationQuery_Aggregation_Count(::_pbi::ConstantInitialized)
  148. : _impl_(::_pbi::ConstantInitialized()) {}
  149. struct StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal {
  150. PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  151. ~StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal() {}
  152. union {
  153. StructuredAggregationQuery_Aggregation_Count _instance;
  154. };
  155. };
  156. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  157. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Count_default_instance_;
  158. inline constexpr StructuredAggregationQuery_Aggregation_Avg::Impl_::Impl_(
  159. ::_pbi::ConstantInitialized) noexcept
  160. : _cached_size_{0},
  161. field_{nullptr} {}
  162. template <typename>
  163. PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Avg::StructuredAggregationQuery_Aggregation_Avg(::_pbi::ConstantInitialized)
  164. : _impl_(::_pbi::ConstantInitialized()) {}
  165. struct StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal {
  166. PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  167. ~StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal() {}
  168. union {
  169. StructuredAggregationQuery_Aggregation_Avg _instance;
  170. };
  171. };
  172. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  173. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Avg_default_instance_;
  174. inline constexpr StructuredQuery_FieldFilter::Impl_::Impl_(
  175. ::_pbi::ConstantInitialized) noexcept
  176. : _cached_size_{0},
  177. field_{nullptr},
  178. value_{nullptr},
  179. op_{static_cast< ::google::firestore::v1::StructuredQuery_FieldFilter_Operator >(0)} {}
  180. template <typename>
  181. PROTOBUF_CONSTEXPR StructuredQuery_FieldFilter::StructuredQuery_FieldFilter(::_pbi::ConstantInitialized)
  182. : _impl_(::_pbi::ConstantInitialized()) {}
  183. struct StructuredQuery_FieldFilterDefaultTypeInternal {
  184. PROTOBUF_CONSTEXPR StructuredQuery_FieldFilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  185. ~StructuredQuery_FieldFilterDefaultTypeInternal() {}
  186. union {
  187. StructuredQuery_FieldFilter _instance;
  188. };
  189. };
  190. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  191. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_FieldFilterDefaultTypeInternal _StructuredQuery_FieldFilter_default_instance_;
  192. inline constexpr StructuredAggregationQuery_Aggregation::Impl_::Impl_(
  193. ::_pbi::ConstantInitialized) noexcept
  194. : alias_(
  195. &::google::protobuf::internal::fixed_address_empty_string,
  196. ::_pbi::ConstantInitialized()),
  197. operator_{},
  198. _cached_size_{0},
  199. _oneof_case_{} {}
  200. template <typename>
  201. PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation::StructuredAggregationQuery_Aggregation(::_pbi::ConstantInitialized)
  202. : _impl_(::_pbi::ConstantInitialized()) {}
  203. struct StructuredAggregationQuery_AggregationDefaultTypeInternal {
  204. PROTOBUF_CONSTEXPR StructuredAggregationQuery_AggregationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  205. ~StructuredAggregationQuery_AggregationDefaultTypeInternal() {}
  206. union {
  207. StructuredAggregationQuery_Aggregation _instance;
  208. };
  209. };
  210. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  211. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQuery_AggregationDefaultTypeInternal _StructuredAggregationQuery_Aggregation_default_instance_;
  212. inline constexpr Cursor::Impl_::Impl_(
  213. ::_pbi::ConstantInitialized) noexcept
  214. : values_{},
  215. before_{false},
  216. _cached_size_{0} {}
  217. template <typename>
  218. PROTOBUF_CONSTEXPR Cursor::Cursor(::_pbi::ConstantInitialized)
  219. : _impl_(::_pbi::ConstantInitialized()) {}
  220. struct CursorDefaultTypeInternal {
  221. PROTOBUF_CONSTEXPR CursorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  222. ~CursorDefaultTypeInternal() {}
  223. union {
  224. Cursor _instance;
  225. };
  226. };
  227. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  228. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CursorDefaultTypeInternal _Cursor_default_instance_;
  229. inline constexpr StructuredQuery_CompositeFilter::Impl_::Impl_(
  230. ::_pbi::ConstantInitialized) noexcept
  231. : filters_{},
  232. op_{static_cast< ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator >(0)},
  233. _cached_size_{0} {}
  234. template <typename>
  235. PROTOBUF_CONSTEXPR StructuredQuery_CompositeFilter::StructuredQuery_CompositeFilter(::_pbi::ConstantInitialized)
  236. : _impl_(::_pbi::ConstantInitialized()) {}
  237. struct StructuredQuery_CompositeFilterDefaultTypeInternal {
  238. PROTOBUF_CONSTEXPR StructuredQuery_CompositeFilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  239. ~StructuredQuery_CompositeFilterDefaultTypeInternal() {}
  240. union {
  241. StructuredQuery_CompositeFilter _instance;
  242. };
  243. };
  244. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  245. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_CompositeFilterDefaultTypeInternal _StructuredQuery_CompositeFilter_default_instance_;
  246. inline constexpr StructuredQuery_Filter::Impl_::Impl_(
  247. ::_pbi::ConstantInitialized) noexcept
  248. : filter_type_{},
  249. _cached_size_{0},
  250. _oneof_case_{} {}
  251. template <typename>
  252. PROTOBUF_CONSTEXPR StructuredQuery_Filter::StructuredQuery_Filter(::_pbi::ConstantInitialized)
  253. : _impl_(::_pbi::ConstantInitialized()) {}
  254. struct StructuredQuery_FilterDefaultTypeInternal {
  255. PROTOBUF_CONSTEXPR StructuredQuery_FilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  256. ~StructuredQuery_FilterDefaultTypeInternal() {}
  257. union {
  258. StructuredQuery_Filter _instance;
  259. };
  260. };
  261. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  262. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_FilterDefaultTypeInternal _StructuredQuery_Filter_default_instance_;
  263. inline constexpr StructuredQuery::Impl_::Impl_(
  264. ::_pbi::ConstantInitialized) noexcept
  265. : _cached_size_{0},
  266. from_{},
  267. order_by_{},
  268. select_{nullptr},
  269. where_{nullptr},
  270. limit_{nullptr},
  271. start_at_{nullptr},
  272. end_at_{nullptr},
  273. offset_{0} {}
  274. template <typename>
  275. PROTOBUF_CONSTEXPR StructuredQuery::StructuredQuery(::_pbi::ConstantInitialized)
  276. : _impl_(::_pbi::ConstantInitialized()) {}
  277. struct StructuredQueryDefaultTypeInternal {
  278. PROTOBUF_CONSTEXPR StructuredQueryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  279. ~StructuredQueryDefaultTypeInternal() {}
  280. union {
  281. StructuredQuery _instance;
  282. };
  283. };
  284. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  285. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQueryDefaultTypeInternal _StructuredQuery_default_instance_;
  286. inline constexpr StructuredAggregationQuery::Impl_::Impl_(
  287. ::_pbi::ConstantInitialized) noexcept
  288. : aggregations_{},
  289. query_type_{},
  290. _cached_size_{0},
  291. _oneof_case_{} {}
  292. template <typename>
  293. PROTOBUF_CONSTEXPR StructuredAggregationQuery::StructuredAggregationQuery(::_pbi::ConstantInitialized)
  294. : _impl_(::_pbi::ConstantInitialized()) {}
  295. struct StructuredAggregationQueryDefaultTypeInternal {
  296. PROTOBUF_CONSTEXPR StructuredAggregationQueryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  297. ~StructuredAggregationQueryDefaultTypeInternal() {}
  298. union {
  299. StructuredAggregationQuery _instance;
  300. };
  301. };
  302. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  303. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQueryDefaultTypeInternal _StructuredAggregationQuery_default_instance_;
  304. } // namespace v1
  305. } // namespace firestore
  306. } // namespace google
  307. static ::_pb::Metadata file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[15];
  308. static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[4];
  309. static constexpr const ::_pb::ServiceDescriptor**
  310. file_level_service_descriptors_google_2ffirestore_2fv1_2fquery_2eproto = nullptr;
  311. const ::uint32_t TableStruct_google_2ffirestore_2fv1_2fquery_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  312. protodesc_cold) = {
  313. ~0u, // no _has_bits_
  314. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CollectionSelector, _internal_metadata_),
  315. ~0u, // no _extensions_
  316. ~0u, // no _oneof_case_
  317. ~0u, // no _weak_field_map_
  318. ~0u, // no _inlined_string_donated_
  319. ~0u, // no _split_
  320. ~0u, // no sizeof(Split)
  321. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CollectionSelector, _impl_.collection_id_),
  322. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CollectionSelector, _impl_.all_descendants_),
  323. ~0u, // no _has_bits_
  324. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Filter, _internal_metadata_),
  325. ~0u, // no _extensions_
  326. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Filter, _impl_._oneof_case_[0]),
  327. ~0u, // no _weak_field_map_
  328. ~0u, // no _inlined_string_donated_
  329. ~0u, // no _split_
  330. ~0u, // no sizeof(Split)
  331. ::_pbi::kInvalidFieldOffsetTag,
  332. ::_pbi::kInvalidFieldOffsetTag,
  333. ::_pbi::kInvalidFieldOffsetTag,
  334. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Filter, _impl_.filter_type_),
  335. ~0u, // no _has_bits_
  336. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CompositeFilter, _internal_metadata_),
  337. ~0u, // no _extensions_
  338. ~0u, // no _oneof_case_
  339. ~0u, // no _weak_field_map_
  340. ~0u, // no _inlined_string_donated_
  341. ~0u, // no _split_
  342. ~0u, // no sizeof(Split)
  343. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CompositeFilter, _impl_.op_),
  344. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CompositeFilter, _impl_.filters_),
  345. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _impl_._has_bits_),
  346. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _internal_metadata_),
  347. ~0u, // no _extensions_
  348. ~0u, // no _oneof_case_
  349. ~0u, // no _weak_field_map_
  350. ~0u, // no _inlined_string_donated_
  351. ~0u, // no _split_
  352. ~0u, // no sizeof(Split)
  353. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _impl_.field_),
  354. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _impl_.op_),
  355. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _impl_.value_),
  356. 0,
  357. ~0u,
  358. 1,
  359. ~0u, // no _has_bits_
  360. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _internal_metadata_),
  361. ~0u, // no _extensions_
  362. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _impl_._oneof_case_[0]),
  363. ~0u, // no _weak_field_map_
  364. ~0u, // no _inlined_string_donated_
  365. ~0u, // no _split_
  366. ~0u, // no sizeof(Split)
  367. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _impl_.op_),
  368. ::_pbi::kInvalidFieldOffsetTag,
  369. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _impl_.operand_type_),
  370. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Order, _impl_._has_bits_),
  371. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Order, _internal_metadata_),
  372. ~0u, // no _extensions_
  373. ~0u, // no _oneof_case_
  374. ~0u, // no _weak_field_map_
  375. ~0u, // no _inlined_string_donated_
  376. ~0u, // no _split_
  377. ~0u, // no sizeof(Split)
  378. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Order, _impl_.field_),
  379. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Order, _impl_.direction_),
  380. 0,
  381. ~0u,
  382. ~0u, // no _has_bits_
  383. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldReference, _internal_metadata_),
  384. ~0u, // no _extensions_
  385. ~0u, // no _oneof_case_
  386. ~0u, // no _weak_field_map_
  387. ~0u, // no _inlined_string_donated_
  388. ~0u, // no _split_
  389. ~0u, // no sizeof(Split)
  390. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldReference, _impl_.field_path_),
  391. ~0u, // no _has_bits_
  392. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Projection, _internal_metadata_),
  393. ~0u, // no _extensions_
  394. ~0u, // no _oneof_case_
  395. ~0u, // no _weak_field_map_
  396. ~0u, // no _inlined_string_donated_
  397. ~0u, // no _split_
  398. ~0u, // no sizeof(Split)
  399. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Projection, _impl_.fields_),
  400. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_._has_bits_),
  401. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _internal_metadata_),
  402. ~0u, // no _extensions_
  403. ~0u, // no _oneof_case_
  404. ~0u, // no _weak_field_map_
  405. ~0u, // no _inlined_string_donated_
  406. ~0u, // no _split_
  407. ~0u, // no sizeof(Split)
  408. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.select_),
  409. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.from_),
  410. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.where_),
  411. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.order_by_),
  412. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.start_at_),
  413. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.end_at_),
  414. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.offset_),
  415. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.limit_),
  416. 0,
  417. ~0u,
  418. 1,
  419. ~0u,
  420. 3,
  421. 4,
  422. ~0u,
  423. 2,
  424. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count, _impl_._has_bits_),
  425. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count, _internal_metadata_),
  426. ~0u, // no _extensions_
  427. ~0u, // no _oneof_case_
  428. ~0u, // no _weak_field_map_
  429. ~0u, // no _inlined_string_donated_
  430. ~0u, // no _split_
  431. ~0u, // no sizeof(Split)
  432. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count, _impl_.up_to_),
  433. 0,
  434. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum, _impl_._has_bits_),
  435. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum, _internal_metadata_),
  436. ~0u, // no _extensions_
  437. ~0u, // no _oneof_case_
  438. ~0u, // no _weak_field_map_
  439. ~0u, // no _inlined_string_donated_
  440. ~0u, // no _split_
  441. ~0u, // no sizeof(Split)
  442. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum, _impl_.field_),
  443. 0,
  444. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg, _impl_._has_bits_),
  445. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg, _internal_metadata_),
  446. ~0u, // no _extensions_
  447. ~0u, // no _oneof_case_
  448. ~0u, // no _weak_field_map_
  449. ~0u, // no _inlined_string_donated_
  450. ~0u, // no _split_
  451. ~0u, // no sizeof(Split)
  452. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg, _impl_.field_),
  453. 0,
  454. ~0u, // no _has_bits_
  455. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _internal_metadata_),
  456. ~0u, // no _extensions_
  457. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _impl_._oneof_case_[0]),
  458. ~0u, // no _weak_field_map_
  459. ~0u, // no _inlined_string_donated_
  460. ~0u, // no _split_
  461. ~0u, // no sizeof(Split)
  462. ::_pbi::kInvalidFieldOffsetTag,
  463. ::_pbi::kInvalidFieldOffsetTag,
  464. ::_pbi::kInvalidFieldOffsetTag,
  465. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _impl_.alias_),
  466. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _impl_.operator_),
  467. ~0u, // no _has_bits_
  468. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _internal_metadata_),
  469. ~0u, // no _extensions_
  470. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _impl_._oneof_case_[0]),
  471. ~0u, // no _weak_field_map_
  472. ~0u, // no _inlined_string_donated_
  473. ~0u, // no _split_
  474. ~0u, // no sizeof(Split)
  475. ::_pbi::kInvalidFieldOffsetTag,
  476. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _impl_.aggregations_),
  477. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _impl_.query_type_),
  478. ~0u, // no _has_bits_
  479. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Cursor, _internal_metadata_),
  480. ~0u, // no _extensions_
  481. ~0u, // no _oneof_case_
  482. ~0u, // no _weak_field_map_
  483. ~0u, // no _inlined_string_donated_
  484. ~0u, // no _split_
  485. ~0u, // no sizeof(Split)
  486. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Cursor, _impl_.values_),
  487. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Cursor, _impl_.before_),
  488. };
  489. static const ::_pbi::MigrationSchema
  490. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  491. {0, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_CollectionSelector)},
  492. {10, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_Filter)},
  493. {22, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_CompositeFilter)},
  494. {32, 43, -1, sizeof(::google::firestore::v1::StructuredQuery_FieldFilter)},
  495. {46, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_UnaryFilter)},
  496. {57, 67, -1, sizeof(::google::firestore::v1::StructuredQuery_Order)},
  497. {69, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_FieldReference)},
  498. {78, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_Projection)},
  499. {87, 103, -1, sizeof(::google::firestore::v1::StructuredQuery)},
  500. {111, 120, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count)},
  501. {121, 130, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum)},
  502. {131, 140, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg)},
  503. {141, -1, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery_Aggregation)},
  504. {154, -1, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery)},
  505. {165, -1, -1, sizeof(::google::firestore::v1::Cursor)},
  506. };
  507. static const ::_pb::Message* const file_default_instances[] = {
  508. &::google::firestore::v1::_StructuredQuery_CollectionSelector_default_instance_._instance,
  509. &::google::firestore::v1::_StructuredQuery_Filter_default_instance_._instance,
  510. &::google::firestore::v1::_StructuredQuery_CompositeFilter_default_instance_._instance,
  511. &::google::firestore::v1::_StructuredQuery_FieldFilter_default_instance_._instance,
  512. &::google::firestore::v1::_StructuredQuery_UnaryFilter_default_instance_._instance,
  513. &::google::firestore::v1::_StructuredQuery_Order_default_instance_._instance,
  514. &::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_._instance,
  515. &::google::firestore::v1::_StructuredQuery_Projection_default_instance_._instance,
  516. &::google::firestore::v1::_StructuredQuery_default_instance_._instance,
  517. &::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Count_default_instance_._instance,
  518. &::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Sum_default_instance_._instance,
  519. &::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Avg_default_instance_._instance,
  520. &::google::firestore::v1::_StructuredAggregationQuery_Aggregation_default_instance_._instance,
  521. &::google::firestore::v1::_StructuredAggregationQuery_default_instance_._instance,
  522. &::google::firestore::v1::_Cursor_default_instance_._instance,
  523. };
  524. const char descriptor_table_protodef_google_2ffirestore_2fv1_2fquery_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  525. "\n\037google/firestore/v1/query.proto\022\023googl"
  526. "e.firestore.v1\032\"google/firestore/v1/docu"
  527. "ment.proto\032\036google/protobuf/wrappers.pro"
  528. "to\"\276\017\n\017StructuredQuery\022\?\n\006select\030\001 \001(\0132/"
  529. ".google.firestore.v1.StructuredQuery.Pro"
  530. "jection\022E\n\004from\030\002 \003(\01327.google.firestore"
  531. ".v1.StructuredQuery.CollectionSelector\022:"
  532. "\n\005where\030\003 \001(\0132+.google.firestore.v1.Stru"
  533. "cturedQuery.Filter\022<\n\010order_by\030\004 \003(\0132*.g"
  534. "oogle.firestore.v1.StructuredQuery.Order"
  535. "\022-\n\010start_at\030\007 \001(\0132\033.google.firestore.v1"
  536. ".Cursor\022+\n\006end_at\030\010 \001(\0132\033.google.firesto"
  537. "re.v1.Cursor\022\016\n\006offset\030\006 \001(\005\022*\n\005limit\030\005 "
  538. "\001(\0132\033.google.protobuf.Int32Value\032D\n\022Coll"
  539. "ectionSelector\022\025\n\rcollection_id\030\002 \001(\t\022\027\n"
  540. "\017all_descendants\030\003 \001(\010\032\375\001\n\006Filter\022P\n\020com"
  541. "posite_filter\030\001 \001(\01324.google.firestore.v"
  542. "1.StructuredQuery.CompositeFilterH\000\022H\n\014f"
  543. "ield_filter\030\002 \001(\01320.google.firestore.v1."
  544. "StructuredQuery.FieldFilterH\000\022H\n\014unary_f"
  545. "ilter\030\003 \001(\01320.google.firestore.v1.Struct"
  546. "uredQuery.UnaryFilterH\000B\r\n\013filter_type\032\321"
  547. "\001\n\017CompositeFilter\022I\n\002op\030\001 \001(\0162=.google."
  548. "firestore.v1.StructuredQuery.CompositeFi"
  549. "lter.Operator\022<\n\007filters\030\002 \003(\0132+.google."
  550. "firestore.v1.StructuredQuery.Filter\"5\n\010O"
  551. "perator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\007\n\003AND"
  552. "\020\001\022\006\n\002OR\020\002\032\230\003\n\013FieldFilter\022B\n\005field\030\001 \001("
  553. "\01323.google.firestore.v1.StructuredQuery."
  554. "FieldReference\022E\n\002op\030\002 \001(\01629.google.fire"
  555. "store.v1.StructuredQuery.FieldFilter.Ope"
  556. "rator\022)\n\005value\030\003 \001(\0132\032.google.firestore."
  557. "v1.Value\"\322\001\n\010Operator\022\030\n\024OPERATOR_UNSPEC"
  558. "IFIED\020\000\022\r\n\tLESS_THAN\020\001\022\026\n\022LESS_THAN_OR_E"
  559. "QUAL\020\002\022\020\n\014GREATER_THAN\020\003\022\031\n\025GREATER_THAN"
  560. "_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\r\n\tNOT_EQUAL\020\006\022\022\n"
  561. "\016ARRAY_CONTAINS\020\007\022\006\n\002IN\020\010\022\026\n\022ARRAY_CONTA"
  562. "INS_ANY\020\t\022\n\n\006NOT_IN\020\n\032\212\002\n\013UnaryFilter\022E\n"
  563. "\002op\030\001 \001(\01629.google.firestore.v1.Structur"
  564. "edQuery.UnaryFilter.Operator\022D\n\005field\030\002 "
  565. "\001(\01323.google.firestore.v1.StructuredQuer"
  566. "y.FieldReferenceH\000\"^\n\010Operator\022\030\n\024OPERAT"
  567. "OR_UNSPECIFIED\020\000\022\n\n\006IS_NAN\020\002\022\013\n\007IS_NULL\020"
  568. "\003\022\016\n\nIS_NOT_NAN\020\004\022\017\n\013IS_NOT_NULL\020\005B\016\n\014op"
  569. "erand_type\032\216\001\n\005Order\022B\n\005field\030\001 \001(\01323.go"
  570. "ogle.firestore.v1.StructuredQuery.FieldR"
  571. "eference\022A\n\tdirection\030\002 \001(\0162..google.fir"
  572. "estore.v1.StructuredQuery.Direction\032$\n\016F"
  573. "ieldReference\022\022\n\nfield_path\030\002 \001(\t\032Q\n\nPro"
  574. "jection\022C\n\006fields\030\002 \003(\01323.google.firesto"
  575. "re.v1.StructuredQuery.FieldReference\"E\n\t"
  576. "Direction\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\r\n\t"
  577. "ASCENDING\020\001\022\016\n\nDESCENDING\020\002\"\251\005\n\032Structur"
  578. "edAggregationQuery\022@\n\020structured_query\030\001"
  579. " \001(\0132$.google.firestore.v1.StructuredQue"
  580. "ryH\000\022Q\n\014aggregations\030\003 \003(\0132;.google.fire"
  581. "store.v1.StructuredAggregationQuery.Aggr"
  582. "egation\032\347\003\n\013Aggregation\022R\n\005count\030\001 \001(\0132A"
  583. ".google.firestore.v1.StructuredAggregati"
  584. "onQuery.Aggregation.CountH\000\022N\n\003sum\030\002 \001(\013"
  585. "2\?.google.firestore.v1.StructuredAggrega"
  586. "tionQuery.Aggregation.SumH\000\022N\n\003avg\030\003 \001(\013"
  587. "2\?.google.firestore.v1.StructuredAggrega"
  588. "tionQuery.Aggregation.AvgH\000\022\r\n\005alias\030\007 \001"
  589. "(\t\0323\n\005Count\022*\n\005up_to\030\001 \001(\0132\033.google.prot"
  590. "obuf.Int64Value\032I\n\003Sum\022B\n\005field\030\001 \001(\01323."
  591. "google.firestore.v1.StructuredQuery.Fiel"
  592. "dReference\032I\n\003Avg\022B\n\005field\030\001 \001(\01323.googl"
  593. "e.firestore.v1.StructuredQuery.FieldRefe"
  594. "renceB\n\n\010operatorB\014\n\nquery_type\"D\n\006Curso"
  595. "r\022*\n\006values\030\001 \003(\0132\032.google.firestore.v1."
  596. "Value\022\016\n\006before\030\002 \001(\010B\256\001\n\027com.google.fir"
  597. "estore.v1B\nQueryProtoP\001Z<google.golang.o"
  598. "rg/genproto/googleapis/firestore/v1;fire"
  599. "store\242\002\004GCFS\252\002\036Google.Cloud.Firestore.V1"
  600. "Beta1\312\002\036Google\\Cloud\\Firestore\\V1beta1b\006"
  601. "proto3"
  602. };
  603. static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_deps[2] =
  604. {
  605. &::descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto,
  606. &::descriptor_table_google_2fprotobuf_2fwrappers_2eproto,
  607. };
  608. static ::absl::once_flag descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once;
  609. const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto = {
  610. false,
  611. false,
  612. 3046,
  613. descriptor_table_protodef_google_2ffirestore_2fv1_2fquery_2eproto,
  614. "google/firestore/v1/query.proto",
  615. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  616. descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_deps,
  617. 2,
  618. 15,
  619. schemas,
  620. file_default_instances,
  621. TableStruct_google_2ffirestore_2fv1_2fquery_2eproto::offsets,
  622. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto,
  623. file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto,
  624. file_level_service_descriptors_google_2ffirestore_2fv1_2fquery_2eproto,
  625. };
  626. // This function exists to be marked as weak.
  627. // It can significantly speed up compilation by breaking up LLVM's SCC
  628. // in the .pb.cc translation units. Large translation units see a
  629. // reduction of more than 35% of walltime for optimized builds. Without
  630. // the weak attribute all the messages in the file, including all the
  631. // vtables and everything they use become part of the same SCC through
  632. // a cycle like:
  633. // GetMetadata -> descriptor table -> default instances ->
  634. // vtables -> GetMetadata
  635. // By adding a weak function here we break the connection from the
  636. // individual vtables back into the descriptor table.
  637. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter() {
  638. return &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto;
  639. }
  640. // Force running AddDescriptors() at dynamic initialization time.
  641. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  642. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2ffirestore_2fv1_2fquery_2eproto(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
  643. namespace google {
  644. namespace firestore {
  645. namespace v1 {
  646. const ::google::protobuf::EnumDescriptor* StructuredQuery_CompositeFilter_Operator_descriptor() {
  647. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
  648. return file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[0];
  649. }
  650. PROTOBUF_CONSTINIT const uint32_t StructuredQuery_CompositeFilter_Operator_internal_data_[] = {
  651. 196608u, 0u, };
  652. bool StructuredQuery_CompositeFilter_Operator_IsValid(int value) {
  653. return 0 <= value && value <= 2;
  654. }
  655. #if (__cplusplus < 201703) && \
  656. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  657. constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::OPERATOR_UNSPECIFIED;
  658. constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::AND;
  659. constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::OR;
  660. constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::Operator_MIN;
  661. constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::Operator_MAX;
  662. constexpr int StructuredQuery_CompositeFilter::Operator_ARRAYSIZE;
  663. #endif // (__cplusplus < 201703) &&
  664. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  665. const ::google::protobuf::EnumDescriptor* StructuredQuery_FieldFilter_Operator_descriptor() {
  666. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
  667. return file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[1];
  668. }
  669. PROTOBUF_CONSTINIT const uint32_t StructuredQuery_FieldFilter_Operator_internal_data_[] = {
  670. 720896u, 0u, };
  671. bool StructuredQuery_FieldFilter_Operator_IsValid(int value) {
  672. return 0 <= value && value <= 10;
  673. }
  674. #if (__cplusplus < 201703) && \
  675. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  676. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::OPERATOR_UNSPECIFIED;
  677. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::LESS_THAN;
  678. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::LESS_THAN_OR_EQUAL;
  679. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::GREATER_THAN;
  680. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::GREATER_THAN_OR_EQUAL;
  681. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::EQUAL;
  682. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::NOT_EQUAL;
  683. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::ARRAY_CONTAINS;
  684. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::IN_;
  685. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::ARRAY_CONTAINS_ANY;
  686. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::NOT_IN;
  687. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::Operator_MIN;
  688. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::Operator_MAX;
  689. constexpr int StructuredQuery_FieldFilter::Operator_ARRAYSIZE;
  690. #endif // (__cplusplus < 201703) &&
  691. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  692. const ::google::protobuf::EnumDescriptor* StructuredQuery_UnaryFilter_Operator_descriptor() {
  693. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
  694. return file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[2];
  695. }
  696. PROTOBUF_CONSTINIT const uint32_t StructuredQuery_UnaryFilter_Operator_internal_data_[] = {
  697. 65536u, 32u, 30u, };
  698. bool StructuredQuery_UnaryFilter_Operator_IsValid(int value) {
  699. return 0 <= value && value <= 5 && ((61u >> value) & 1) != 0;
  700. }
  701. #if (__cplusplus < 201703) && \
  702. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  703. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::OPERATOR_UNSPECIFIED;
  704. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NAN;
  705. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NULL;
  706. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NOT_NAN;
  707. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NOT_NULL;
  708. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::Operator_MIN;
  709. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::Operator_MAX;
  710. constexpr int StructuredQuery_UnaryFilter::Operator_ARRAYSIZE;
  711. #endif // (__cplusplus < 201703) &&
  712. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  713. const ::google::protobuf::EnumDescriptor* StructuredQuery_Direction_descriptor() {
  714. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
  715. return file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[3];
  716. }
  717. PROTOBUF_CONSTINIT const uint32_t StructuredQuery_Direction_internal_data_[] = {
  718. 196608u, 0u, };
  719. bool StructuredQuery_Direction_IsValid(int value) {
  720. return 0 <= value && value <= 2;
  721. }
  722. #if (__cplusplus < 201703) && \
  723. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  724. constexpr StructuredQuery_Direction StructuredQuery::DIRECTION_UNSPECIFIED;
  725. constexpr StructuredQuery_Direction StructuredQuery::ASCENDING;
  726. constexpr StructuredQuery_Direction StructuredQuery::DESCENDING;
  727. constexpr StructuredQuery_Direction StructuredQuery::Direction_MIN;
  728. constexpr StructuredQuery_Direction StructuredQuery::Direction_MAX;
  729. constexpr int StructuredQuery::Direction_ARRAYSIZE;
  730. #endif // (__cplusplus < 201703) &&
  731. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  732. // ===================================================================
  733. class StructuredQuery_CollectionSelector::_Internal {
  734. public:
  735. };
  736. StructuredQuery_CollectionSelector::StructuredQuery_CollectionSelector(::google::protobuf::Arena* arena)
  737. : ::google::protobuf::Message(arena) {
  738. SharedCtor(arena);
  739. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.CollectionSelector)
  740. }
  741. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_CollectionSelector::Impl_::Impl_(
  742. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  743. const Impl_& from)
  744. : collection_id_(arena, from.collection_id_),
  745. _cached_size_{0} {}
  746. StructuredQuery_CollectionSelector::StructuredQuery_CollectionSelector(
  747. ::google::protobuf::Arena* arena,
  748. const StructuredQuery_CollectionSelector& from)
  749. : ::google::protobuf::Message(arena) {
  750. StructuredQuery_CollectionSelector* const _this = this;
  751. (void)_this;
  752. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  753. from._internal_metadata_);
  754. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  755. _impl_.all_descendants_ = from._impl_.all_descendants_;
  756. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.CollectionSelector)
  757. }
  758. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_CollectionSelector::Impl_::Impl_(
  759. ::google::protobuf::internal::InternalVisibility visibility,
  760. ::google::protobuf::Arena* arena)
  761. : collection_id_(arena),
  762. _cached_size_{0} {}
  763. inline void StructuredQuery_CollectionSelector::SharedCtor(::_pb::Arena* arena) {
  764. new (&_impl_) Impl_(internal_visibility(), arena);
  765. _impl_.all_descendants_ = {};
  766. }
  767. StructuredQuery_CollectionSelector::~StructuredQuery_CollectionSelector() {
  768. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.CollectionSelector)
  769. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  770. SharedDtor();
  771. }
  772. inline void StructuredQuery_CollectionSelector::SharedDtor() {
  773. ABSL_DCHECK(GetArena() == nullptr);
  774. _impl_.collection_id_.Destroy();
  775. _impl_.~Impl_();
  776. }
  777. PROTOBUF_NOINLINE void StructuredQuery_CollectionSelector::Clear() {
  778. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.CollectionSelector)
  779. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  780. ::uint32_t cached_has_bits = 0;
  781. // Prevent compiler warnings about cached_has_bits being unused
  782. (void) cached_has_bits;
  783. _impl_.collection_id_.ClearToEmpty();
  784. _impl_.all_descendants_ = false;
  785. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  786. }
  787. const char* StructuredQuery_CollectionSelector::_InternalParse(
  788. const char* ptr, ::_pbi::ParseContext* ctx) {
  789. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  790. return ptr;
  791. }
  792. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  793. const ::_pbi::TcParseTable<1, 2, 0, 76, 2> StructuredQuery_CollectionSelector::_table_ = {
  794. {
  795. 0, // no _has_bits_
  796. 0, // no _extensions_
  797. 3, 8, // max_field_number, fast_idx_mask
  798. offsetof(decltype(_table_), field_lookup_table),
  799. 4294967289, // skipmap
  800. offsetof(decltype(_table_), field_entries),
  801. 2, // num_field_entries
  802. 0, // num_aux_entries
  803. offsetof(decltype(_table_), field_names), // no aux_entries
  804. &_StructuredQuery_CollectionSelector_default_instance_._instance,
  805. ::_pbi::TcParser::GenericFallback, // fallback
  806. }, {{
  807. // string collection_id = 2;
  808. {::_pbi::TcParser::FastUS1,
  809. {18, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_CollectionSelector, _impl_.collection_id_)}},
  810. // bool all_descendants = 3;
  811. {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(StructuredQuery_CollectionSelector, _impl_.all_descendants_), 63>(),
  812. {24, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_CollectionSelector, _impl_.all_descendants_)}},
  813. }}, {{
  814. 65535, 65535
  815. }}, {{
  816. // string collection_id = 2;
  817. {PROTOBUF_FIELD_OFFSET(StructuredQuery_CollectionSelector, _impl_.collection_id_), 0, 0,
  818. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  819. // bool all_descendants = 3;
  820. {PROTOBUF_FIELD_OFFSET(StructuredQuery_CollectionSelector, _impl_.all_descendants_), 0, 0,
  821. (0 | ::_fl::kFcSingular | ::_fl::kBool)},
  822. }},
  823. // no aux_entries
  824. {{
  825. "\66\15\0\0\0\0\0\0"
  826. "google.firestore.v1.StructuredQuery.CollectionSelector"
  827. "collection_id"
  828. }},
  829. };
  830. ::uint8_t* StructuredQuery_CollectionSelector::_InternalSerialize(
  831. ::uint8_t* target,
  832. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  833. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.CollectionSelector)
  834. ::uint32_t cached_has_bits = 0;
  835. (void)cached_has_bits;
  836. // string collection_id = 2;
  837. if (!this->_internal_collection_id().empty()) {
  838. const std::string& _s = this->_internal_collection_id();
  839. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  840. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.StructuredQuery.CollectionSelector.collection_id");
  841. target = stream->WriteStringMaybeAliased(2, _s, target);
  842. }
  843. // bool all_descendants = 3;
  844. if (this->_internal_all_descendants() != 0) {
  845. target = stream->EnsureSpace(target);
  846. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  847. 3, this->_internal_all_descendants(), target);
  848. }
  849. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  850. target =
  851. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  852. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  853. }
  854. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.CollectionSelector)
  855. return target;
  856. }
  857. ::size_t StructuredQuery_CollectionSelector::ByteSizeLong() const {
  858. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.CollectionSelector)
  859. ::size_t total_size = 0;
  860. ::uint32_t cached_has_bits = 0;
  861. // Prevent compiler warnings about cached_has_bits being unused
  862. (void) cached_has_bits;
  863. // string collection_id = 2;
  864. if (!this->_internal_collection_id().empty()) {
  865. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  866. this->_internal_collection_id());
  867. }
  868. // bool all_descendants = 3;
  869. if (this->_internal_all_descendants() != 0) {
  870. total_size += 2;
  871. }
  872. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  873. }
  874. const ::google::protobuf::Message::ClassData StructuredQuery_CollectionSelector::_class_data_ = {
  875. StructuredQuery_CollectionSelector::MergeImpl,
  876. nullptr, // OnDemandRegisterArenaDtor
  877. };
  878. const ::google::protobuf::Message::ClassData* StructuredQuery_CollectionSelector::GetClassData() const {
  879. return &_class_data_;
  880. }
  881. void StructuredQuery_CollectionSelector::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  882. auto* const _this = static_cast<StructuredQuery_CollectionSelector*>(&to_msg);
  883. auto& from = static_cast<const StructuredQuery_CollectionSelector&>(from_msg);
  884. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.CollectionSelector)
  885. ABSL_DCHECK_NE(&from, _this);
  886. ::uint32_t cached_has_bits = 0;
  887. (void) cached_has_bits;
  888. if (!from._internal_collection_id().empty()) {
  889. _this->_internal_set_collection_id(from._internal_collection_id());
  890. }
  891. if (from._internal_all_descendants() != 0) {
  892. _this->_internal_set_all_descendants(from._internal_all_descendants());
  893. }
  894. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  895. }
  896. void StructuredQuery_CollectionSelector::CopyFrom(const StructuredQuery_CollectionSelector& from) {
  897. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.CollectionSelector)
  898. if (&from == this) return;
  899. Clear();
  900. MergeFrom(from);
  901. }
  902. PROTOBUF_NOINLINE bool StructuredQuery_CollectionSelector::IsInitialized() const {
  903. return true;
  904. }
  905. ::_pbi::CachedSize* StructuredQuery_CollectionSelector::AccessCachedSize() const {
  906. return &_impl_._cached_size_;
  907. }
  908. void StructuredQuery_CollectionSelector::InternalSwap(StructuredQuery_CollectionSelector* PROTOBUF_RESTRICT other) {
  909. using std::swap;
  910. auto* arena = GetArena();
  911. ABSL_DCHECK_EQ(arena, other->GetArena());
  912. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  913. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.collection_id_, &other->_impl_.collection_id_, arena);
  914. swap(_impl_.all_descendants_, other->_impl_.all_descendants_);
  915. }
  916. ::google::protobuf::Metadata StructuredQuery_CollectionSelector::GetMetadata() const {
  917. return ::_pbi::AssignDescriptors(
  918. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  919. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[0]);
  920. }
  921. // ===================================================================
  922. class StructuredQuery_Filter::_Internal {
  923. public:
  924. static constexpr ::int32_t kOneofCaseOffset =
  925. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Filter, _impl_._oneof_case_);
  926. static const ::google::firestore::v1::StructuredQuery_CompositeFilter& composite_filter(const StructuredQuery_Filter* msg);
  927. static const ::google::firestore::v1::StructuredQuery_FieldFilter& field_filter(const StructuredQuery_Filter* msg);
  928. static const ::google::firestore::v1::StructuredQuery_UnaryFilter& unary_filter(const StructuredQuery_Filter* msg);
  929. };
  930. const ::google::firestore::v1::StructuredQuery_CompositeFilter& StructuredQuery_Filter::_Internal::composite_filter(const StructuredQuery_Filter* msg) {
  931. return *msg->_impl_.filter_type_.composite_filter_;
  932. }
  933. const ::google::firestore::v1::StructuredQuery_FieldFilter& StructuredQuery_Filter::_Internal::field_filter(const StructuredQuery_Filter* msg) {
  934. return *msg->_impl_.filter_type_.field_filter_;
  935. }
  936. const ::google::firestore::v1::StructuredQuery_UnaryFilter& StructuredQuery_Filter::_Internal::unary_filter(const StructuredQuery_Filter* msg) {
  937. return *msg->_impl_.filter_type_.unary_filter_;
  938. }
  939. void StructuredQuery_Filter::set_allocated_composite_filter(::google::firestore::v1::StructuredQuery_CompositeFilter* composite_filter) {
  940. ::google::protobuf::Arena* message_arena = GetArena();
  941. clear_filter_type();
  942. if (composite_filter) {
  943. ::google::protobuf::Arena* submessage_arena = composite_filter->GetArena();
  944. if (message_arena != submessage_arena) {
  945. composite_filter = ::google::protobuf::internal::GetOwnedMessage(message_arena, composite_filter, submessage_arena);
  946. }
  947. set_has_composite_filter();
  948. _impl_.filter_type_.composite_filter_ = composite_filter;
  949. }
  950. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  951. }
  952. void StructuredQuery_Filter::set_allocated_field_filter(::google::firestore::v1::StructuredQuery_FieldFilter* field_filter) {
  953. ::google::protobuf::Arena* message_arena = GetArena();
  954. clear_filter_type();
  955. if (field_filter) {
  956. ::google::protobuf::Arena* submessage_arena = field_filter->GetArena();
  957. if (message_arena != submessage_arena) {
  958. field_filter = ::google::protobuf::internal::GetOwnedMessage(message_arena, field_filter, submessage_arena);
  959. }
  960. set_has_field_filter();
  961. _impl_.filter_type_.field_filter_ = field_filter;
  962. }
  963. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.Filter.field_filter)
  964. }
  965. void StructuredQuery_Filter::set_allocated_unary_filter(::google::firestore::v1::StructuredQuery_UnaryFilter* unary_filter) {
  966. ::google::protobuf::Arena* message_arena = GetArena();
  967. clear_filter_type();
  968. if (unary_filter) {
  969. ::google::protobuf::Arena* submessage_arena = unary_filter->GetArena();
  970. if (message_arena != submessage_arena) {
  971. unary_filter = ::google::protobuf::internal::GetOwnedMessage(message_arena, unary_filter, submessage_arena);
  972. }
  973. set_has_unary_filter();
  974. _impl_.filter_type_.unary_filter_ = unary_filter;
  975. }
  976. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  977. }
  978. StructuredQuery_Filter::StructuredQuery_Filter(::google::protobuf::Arena* arena)
  979. : ::google::protobuf::Message(arena) {
  980. SharedCtor(arena);
  981. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.Filter)
  982. }
  983. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Filter::Impl_::Impl_(
  984. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  985. const Impl_& from)
  986. : filter_type_{},
  987. _cached_size_{0},
  988. _oneof_case_{from._oneof_case_[0]} {}
  989. StructuredQuery_Filter::StructuredQuery_Filter(
  990. ::google::protobuf::Arena* arena,
  991. const StructuredQuery_Filter& from)
  992. : ::google::protobuf::Message(arena) {
  993. StructuredQuery_Filter* const _this = this;
  994. (void)_this;
  995. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  996. from._internal_metadata_);
  997. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  998. switch (filter_type_case()) {
  999. case FILTER_TYPE_NOT_SET:
  1000. break;
  1001. case kCompositeFilter:
  1002. _impl_.filter_type_.composite_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_CompositeFilter>(arena, *from._impl_.filter_type_.composite_filter_);
  1003. break;
  1004. case kFieldFilter:
  1005. _impl_.filter_type_.field_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldFilter>(arena, *from._impl_.filter_type_.field_filter_);
  1006. break;
  1007. case kUnaryFilter:
  1008. _impl_.filter_type_.unary_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_UnaryFilter>(arena, *from._impl_.filter_type_.unary_filter_);
  1009. break;
  1010. }
  1011. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.Filter)
  1012. }
  1013. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Filter::Impl_::Impl_(
  1014. ::google::protobuf::internal::InternalVisibility visibility,
  1015. ::google::protobuf::Arena* arena)
  1016. : filter_type_{},
  1017. _cached_size_{0},
  1018. _oneof_case_{} {}
  1019. inline void StructuredQuery_Filter::SharedCtor(::_pb::Arena* arena) {
  1020. new (&_impl_) Impl_(internal_visibility(), arena);
  1021. }
  1022. StructuredQuery_Filter::~StructuredQuery_Filter() {
  1023. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.Filter)
  1024. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1025. SharedDtor();
  1026. }
  1027. inline void StructuredQuery_Filter::SharedDtor() {
  1028. ABSL_DCHECK(GetArena() == nullptr);
  1029. if (has_filter_type()) {
  1030. clear_filter_type();
  1031. }
  1032. _impl_.~Impl_();
  1033. }
  1034. void StructuredQuery_Filter::clear_filter_type() {
  1035. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.StructuredQuery.Filter)
  1036. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1037. switch (filter_type_case()) {
  1038. case kCompositeFilter: {
  1039. if (GetArena() == nullptr) {
  1040. delete _impl_.filter_type_.composite_filter_;
  1041. }
  1042. break;
  1043. }
  1044. case kFieldFilter: {
  1045. if (GetArena() == nullptr) {
  1046. delete _impl_.filter_type_.field_filter_;
  1047. }
  1048. break;
  1049. }
  1050. case kUnaryFilter: {
  1051. if (GetArena() == nullptr) {
  1052. delete _impl_.filter_type_.unary_filter_;
  1053. }
  1054. break;
  1055. }
  1056. case FILTER_TYPE_NOT_SET: {
  1057. break;
  1058. }
  1059. }
  1060. _impl_._oneof_case_[0] = FILTER_TYPE_NOT_SET;
  1061. }
  1062. PROTOBUF_NOINLINE void StructuredQuery_Filter::Clear() {
  1063. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.Filter)
  1064. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1065. ::uint32_t cached_has_bits = 0;
  1066. // Prevent compiler warnings about cached_has_bits being unused
  1067. (void) cached_has_bits;
  1068. clear_filter_type();
  1069. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1070. }
  1071. const char* StructuredQuery_Filter::_InternalParse(
  1072. const char* ptr, ::_pbi::ParseContext* ctx) {
  1073. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1074. return ptr;
  1075. }
  1076. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1077. const ::_pbi::TcParseTable<0, 3, 3, 0, 2> StructuredQuery_Filter::_table_ = {
  1078. {
  1079. 0, // no _has_bits_
  1080. 0, // no _extensions_
  1081. 3, 0, // max_field_number, fast_idx_mask
  1082. offsetof(decltype(_table_), field_lookup_table),
  1083. 4294967288, // skipmap
  1084. offsetof(decltype(_table_), field_entries),
  1085. 3, // num_field_entries
  1086. 3, // num_aux_entries
  1087. offsetof(decltype(_table_), aux_entries),
  1088. &_StructuredQuery_Filter_default_instance_._instance,
  1089. ::_pbi::TcParser::GenericFallback, // fallback
  1090. }, {{
  1091. {::_pbi::TcParser::MiniParse, {}},
  1092. }}, {{
  1093. 65535, 65535
  1094. }}, {{
  1095. // .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
  1096. {PROTOBUF_FIELD_OFFSET(StructuredQuery_Filter, _impl_.filter_type_.composite_filter_), _Internal::kOneofCaseOffset + 0, 0,
  1097. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1098. // .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
  1099. {PROTOBUF_FIELD_OFFSET(StructuredQuery_Filter, _impl_.filter_type_.field_filter_), _Internal::kOneofCaseOffset + 0, 1,
  1100. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1101. // .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
  1102. {PROTOBUF_FIELD_OFFSET(StructuredQuery_Filter, _impl_.filter_type_.unary_filter_), _Internal::kOneofCaseOffset + 0, 2,
  1103. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1104. }}, {{
  1105. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_CompositeFilter>()},
  1106. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldFilter>()},
  1107. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_UnaryFilter>()},
  1108. }}, {{
  1109. }},
  1110. };
  1111. ::uint8_t* StructuredQuery_Filter::_InternalSerialize(
  1112. ::uint8_t* target,
  1113. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1114. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.Filter)
  1115. ::uint32_t cached_has_bits = 0;
  1116. (void)cached_has_bits;
  1117. switch (filter_type_case()) {
  1118. case kCompositeFilter: {
  1119. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1120. 1, _Internal::composite_filter(this),
  1121. _Internal::composite_filter(this).GetCachedSize(), target, stream);
  1122. break;
  1123. }
  1124. case kFieldFilter: {
  1125. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1126. 2, _Internal::field_filter(this),
  1127. _Internal::field_filter(this).GetCachedSize(), target, stream);
  1128. break;
  1129. }
  1130. case kUnaryFilter: {
  1131. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1132. 3, _Internal::unary_filter(this),
  1133. _Internal::unary_filter(this).GetCachedSize(), target, stream);
  1134. break;
  1135. }
  1136. default:
  1137. break;
  1138. }
  1139. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1140. target =
  1141. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1142. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1143. }
  1144. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.Filter)
  1145. return target;
  1146. }
  1147. ::size_t StructuredQuery_Filter::ByteSizeLong() const {
  1148. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.Filter)
  1149. ::size_t total_size = 0;
  1150. ::uint32_t cached_has_bits = 0;
  1151. // Prevent compiler warnings about cached_has_bits being unused
  1152. (void) cached_has_bits;
  1153. switch (filter_type_case()) {
  1154. // .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
  1155. case kCompositeFilter: {
  1156. total_size +=
  1157. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.filter_type_.composite_filter_);
  1158. break;
  1159. }
  1160. // .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
  1161. case kFieldFilter: {
  1162. total_size +=
  1163. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.filter_type_.field_filter_);
  1164. break;
  1165. }
  1166. // .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
  1167. case kUnaryFilter: {
  1168. total_size +=
  1169. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.filter_type_.unary_filter_);
  1170. break;
  1171. }
  1172. case FILTER_TYPE_NOT_SET: {
  1173. break;
  1174. }
  1175. }
  1176. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1177. }
  1178. const ::google::protobuf::Message::ClassData StructuredQuery_Filter::_class_data_ = {
  1179. StructuredQuery_Filter::MergeImpl,
  1180. nullptr, // OnDemandRegisterArenaDtor
  1181. };
  1182. const ::google::protobuf::Message::ClassData* StructuredQuery_Filter::GetClassData() const {
  1183. return &_class_data_;
  1184. }
  1185. void StructuredQuery_Filter::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  1186. auto* const _this = static_cast<StructuredQuery_Filter*>(&to_msg);
  1187. auto& from = static_cast<const StructuredQuery_Filter&>(from_msg);
  1188. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.Filter)
  1189. ABSL_DCHECK_NE(&from, _this);
  1190. ::uint32_t cached_has_bits = 0;
  1191. (void) cached_has_bits;
  1192. switch (from.filter_type_case()) {
  1193. case kCompositeFilter: {
  1194. _this->_internal_mutable_composite_filter()->::google::firestore::v1::StructuredQuery_CompositeFilter::MergeFrom(
  1195. from._internal_composite_filter());
  1196. break;
  1197. }
  1198. case kFieldFilter: {
  1199. _this->_internal_mutable_field_filter()->::google::firestore::v1::StructuredQuery_FieldFilter::MergeFrom(
  1200. from._internal_field_filter());
  1201. break;
  1202. }
  1203. case kUnaryFilter: {
  1204. _this->_internal_mutable_unary_filter()->::google::firestore::v1::StructuredQuery_UnaryFilter::MergeFrom(
  1205. from._internal_unary_filter());
  1206. break;
  1207. }
  1208. case FILTER_TYPE_NOT_SET: {
  1209. break;
  1210. }
  1211. }
  1212. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1213. }
  1214. void StructuredQuery_Filter::CopyFrom(const StructuredQuery_Filter& from) {
  1215. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.Filter)
  1216. if (&from == this) return;
  1217. Clear();
  1218. MergeFrom(from);
  1219. }
  1220. PROTOBUF_NOINLINE bool StructuredQuery_Filter::IsInitialized() const {
  1221. return true;
  1222. }
  1223. ::_pbi::CachedSize* StructuredQuery_Filter::AccessCachedSize() const {
  1224. return &_impl_._cached_size_;
  1225. }
  1226. void StructuredQuery_Filter::InternalSwap(StructuredQuery_Filter* PROTOBUF_RESTRICT other) {
  1227. using std::swap;
  1228. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1229. swap(_impl_.filter_type_, other->_impl_.filter_type_);
  1230. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  1231. }
  1232. ::google::protobuf::Metadata StructuredQuery_Filter::GetMetadata() const {
  1233. return ::_pbi::AssignDescriptors(
  1234. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  1235. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[1]);
  1236. }
  1237. // ===================================================================
  1238. class StructuredQuery_CompositeFilter::_Internal {
  1239. public:
  1240. };
  1241. StructuredQuery_CompositeFilter::StructuredQuery_CompositeFilter(::google::protobuf::Arena* arena)
  1242. : ::google::protobuf::Message(arena) {
  1243. SharedCtor(arena);
  1244. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.CompositeFilter)
  1245. }
  1246. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_CompositeFilter::Impl_::Impl_(
  1247. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1248. const Impl_& from)
  1249. : filters_{visibility, arena, from.filters_},
  1250. _cached_size_{0} {}
  1251. StructuredQuery_CompositeFilter::StructuredQuery_CompositeFilter(
  1252. ::google::protobuf::Arena* arena,
  1253. const StructuredQuery_CompositeFilter& from)
  1254. : ::google::protobuf::Message(arena) {
  1255. StructuredQuery_CompositeFilter* const _this = this;
  1256. (void)_this;
  1257. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1258. from._internal_metadata_);
  1259. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1260. _impl_.op_ = from._impl_.op_;
  1261. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.CompositeFilter)
  1262. }
  1263. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_CompositeFilter::Impl_::Impl_(
  1264. ::google::protobuf::internal::InternalVisibility visibility,
  1265. ::google::protobuf::Arena* arena)
  1266. : filters_{visibility, arena},
  1267. _cached_size_{0} {}
  1268. inline void StructuredQuery_CompositeFilter::SharedCtor(::_pb::Arena* arena) {
  1269. new (&_impl_) Impl_(internal_visibility(), arena);
  1270. _impl_.op_ = {};
  1271. }
  1272. StructuredQuery_CompositeFilter::~StructuredQuery_CompositeFilter() {
  1273. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.CompositeFilter)
  1274. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1275. SharedDtor();
  1276. }
  1277. inline void StructuredQuery_CompositeFilter::SharedDtor() {
  1278. ABSL_DCHECK(GetArena() == nullptr);
  1279. _impl_.~Impl_();
  1280. }
  1281. PROTOBUF_NOINLINE void StructuredQuery_CompositeFilter::Clear() {
  1282. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.CompositeFilter)
  1283. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1284. ::uint32_t cached_has_bits = 0;
  1285. // Prevent compiler warnings about cached_has_bits being unused
  1286. (void) cached_has_bits;
  1287. _impl_.filters_.Clear();
  1288. _impl_.op_ = 0;
  1289. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1290. }
  1291. const char* StructuredQuery_CompositeFilter::_InternalParse(
  1292. const char* ptr, ::_pbi::ParseContext* ctx) {
  1293. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1294. return ptr;
  1295. }
  1296. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1297. const ::_pbi::TcParseTable<1, 2, 1, 0, 2> StructuredQuery_CompositeFilter::_table_ = {
  1298. {
  1299. 0, // no _has_bits_
  1300. 0, // no _extensions_
  1301. 2, 8, // max_field_number, fast_idx_mask
  1302. offsetof(decltype(_table_), field_lookup_table),
  1303. 4294967292, // skipmap
  1304. offsetof(decltype(_table_), field_entries),
  1305. 2, // num_field_entries
  1306. 1, // num_aux_entries
  1307. offsetof(decltype(_table_), aux_entries),
  1308. &_StructuredQuery_CompositeFilter_default_instance_._instance,
  1309. ::_pbi::TcParser::GenericFallback, // fallback
  1310. }, {{
  1311. // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
  1312. {::_pbi::TcParser::FastMtR1,
  1313. {18, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_CompositeFilter, _impl_.filters_)}},
  1314. // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
  1315. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery_CompositeFilter, _impl_.op_), 63>(),
  1316. {8, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_CompositeFilter, _impl_.op_)}},
  1317. }}, {{
  1318. 65535, 65535
  1319. }}, {{
  1320. // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
  1321. {PROTOBUF_FIELD_OFFSET(StructuredQuery_CompositeFilter, _impl_.op_), 0, 0,
  1322. (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
  1323. // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
  1324. {PROTOBUF_FIELD_OFFSET(StructuredQuery_CompositeFilter, _impl_.filters_), 0, 0,
  1325. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  1326. }}, {{
  1327. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_Filter>()},
  1328. }}, {{
  1329. }},
  1330. };
  1331. ::uint8_t* StructuredQuery_CompositeFilter::_InternalSerialize(
  1332. ::uint8_t* target,
  1333. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1334. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.CompositeFilter)
  1335. ::uint32_t cached_has_bits = 0;
  1336. (void)cached_has_bits;
  1337. // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
  1338. if (this->_internal_op() != 0) {
  1339. target = stream->EnsureSpace(target);
  1340. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1341. 1, this->_internal_op(), target);
  1342. }
  1343. // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
  1344. for (unsigned i = 0,
  1345. n = static_cast<unsigned>(this->_internal_filters_size()); i < n; i++) {
  1346. const auto& repfield = this->_internal_filters().Get(i);
  1347. target = ::google::protobuf::internal::WireFormatLite::
  1348. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  1349. }
  1350. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1351. target =
  1352. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1353. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1354. }
  1355. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.CompositeFilter)
  1356. return target;
  1357. }
  1358. ::size_t StructuredQuery_CompositeFilter::ByteSizeLong() const {
  1359. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.CompositeFilter)
  1360. ::size_t total_size = 0;
  1361. ::uint32_t cached_has_bits = 0;
  1362. // Prevent compiler warnings about cached_has_bits being unused
  1363. (void) cached_has_bits;
  1364. // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
  1365. total_size += 1UL * this->_internal_filters_size();
  1366. for (const auto& msg : this->_internal_filters()) {
  1367. total_size +=
  1368. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  1369. }
  1370. // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
  1371. if (this->_internal_op() != 0) {
  1372. total_size += 1 +
  1373. ::_pbi::WireFormatLite::EnumSize(this->_internal_op());
  1374. }
  1375. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1376. }
  1377. const ::google::protobuf::Message::ClassData StructuredQuery_CompositeFilter::_class_data_ = {
  1378. StructuredQuery_CompositeFilter::MergeImpl,
  1379. nullptr, // OnDemandRegisterArenaDtor
  1380. };
  1381. const ::google::protobuf::Message::ClassData* StructuredQuery_CompositeFilter::GetClassData() const {
  1382. return &_class_data_;
  1383. }
  1384. void StructuredQuery_CompositeFilter::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  1385. auto* const _this = static_cast<StructuredQuery_CompositeFilter*>(&to_msg);
  1386. auto& from = static_cast<const StructuredQuery_CompositeFilter&>(from_msg);
  1387. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.CompositeFilter)
  1388. ABSL_DCHECK_NE(&from, _this);
  1389. ::uint32_t cached_has_bits = 0;
  1390. (void) cached_has_bits;
  1391. _this->_internal_mutable_filters()->MergeFrom(
  1392. from._internal_filters());
  1393. if (from._internal_op() != 0) {
  1394. _this->_internal_set_op(from._internal_op());
  1395. }
  1396. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1397. }
  1398. void StructuredQuery_CompositeFilter::CopyFrom(const StructuredQuery_CompositeFilter& from) {
  1399. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.CompositeFilter)
  1400. if (&from == this) return;
  1401. Clear();
  1402. MergeFrom(from);
  1403. }
  1404. PROTOBUF_NOINLINE bool StructuredQuery_CompositeFilter::IsInitialized() const {
  1405. return true;
  1406. }
  1407. ::_pbi::CachedSize* StructuredQuery_CompositeFilter::AccessCachedSize() const {
  1408. return &_impl_._cached_size_;
  1409. }
  1410. void StructuredQuery_CompositeFilter::InternalSwap(StructuredQuery_CompositeFilter* PROTOBUF_RESTRICT other) {
  1411. using std::swap;
  1412. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1413. _impl_.filters_.InternalSwap(&other->_impl_.filters_);
  1414. swap(_impl_.op_, other->_impl_.op_);
  1415. }
  1416. ::google::protobuf::Metadata StructuredQuery_CompositeFilter::GetMetadata() const {
  1417. return ::_pbi::AssignDescriptors(
  1418. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  1419. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[2]);
  1420. }
  1421. // ===================================================================
  1422. class StructuredQuery_FieldFilter::_Internal {
  1423. public:
  1424. using HasBits = decltype(std::declval<StructuredQuery_FieldFilter>()._impl_._has_bits_);
  1425. static constexpr ::int32_t kHasBitsOffset =
  1426. 8 * PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_._has_bits_);
  1427. static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredQuery_FieldFilter* msg);
  1428. static void set_has_field(HasBits* has_bits) {
  1429. (*has_bits)[0] |= 1u;
  1430. }
  1431. static const ::google::firestore::v1::Value& value(const StructuredQuery_FieldFilter* msg);
  1432. static void set_has_value(HasBits* has_bits) {
  1433. (*has_bits)[0] |= 2u;
  1434. }
  1435. };
  1436. const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_FieldFilter::_Internal::field(const StructuredQuery_FieldFilter* msg) {
  1437. return *msg->_impl_.field_;
  1438. }
  1439. const ::google::firestore::v1::Value& StructuredQuery_FieldFilter::_Internal::value(const StructuredQuery_FieldFilter* msg) {
  1440. return *msg->_impl_.value_;
  1441. }
  1442. void StructuredQuery_FieldFilter::clear_value() {
  1443. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1444. if (_impl_.value_ != nullptr) _impl_.value_->Clear();
  1445. _impl_._has_bits_[0] &= ~0x00000002u;
  1446. }
  1447. StructuredQuery_FieldFilter::StructuredQuery_FieldFilter(::google::protobuf::Arena* arena)
  1448. : ::google::protobuf::Message(arena) {
  1449. SharedCtor(arena);
  1450. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.FieldFilter)
  1451. }
  1452. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_FieldFilter::Impl_::Impl_(
  1453. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1454. const Impl_& from)
  1455. : _has_bits_{from._has_bits_},
  1456. _cached_size_{0} {}
  1457. StructuredQuery_FieldFilter::StructuredQuery_FieldFilter(
  1458. ::google::protobuf::Arena* arena,
  1459. const StructuredQuery_FieldFilter& from)
  1460. : ::google::protobuf::Message(arena) {
  1461. StructuredQuery_FieldFilter* const _this = this;
  1462. (void)_this;
  1463. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1464. from._internal_metadata_);
  1465. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1466. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  1467. _impl_.field_ = (cached_has_bits & 0x00000001u)
  1468. ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.field_)
  1469. : nullptr;
  1470. _impl_.value_ = (cached_has_bits & 0x00000002u)
  1471. ? CreateMaybeMessage<::google::firestore::v1::Value>(arena, *from._impl_.value_)
  1472. : nullptr;
  1473. _impl_.op_ = from._impl_.op_;
  1474. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.FieldFilter)
  1475. }
  1476. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_FieldFilter::Impl_::Impl_(
  1477. ::google::protobuf::internal::InternalVisibility visibility,
  1478. ::google::protobuf::Arena* arena)
  1479. : _cached_size_{0} {}
  1480. inline void StructuredQuery_FieldFilter::SharedCtor(::_pb::Arena* arena) {
  1481. new (&_impl_) Impl_(internal_visibility(), arena);
  1482. ::memset(reinterpret_cast<char *>(&_impl_) +
  1483. offsetof(Impl_, field_),
  1484. 0,
  1485. offsetof(Impl_, op_) -
  1486. offsetof(Impl_, field_) +
  1487. sizeof(Impl_::op_));
  1488. }
  1489. StructuredQuery_FieldFilter::~StructuredQuery_FieldFilter() {
  1490. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.FieldFilter)
  1491. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1492. SharedDtor();
  1493. }
  1494. inline void StructuredQuery_FieldFilter::SharedDtor() {
  1495. ABSL_DCHECK(GetArena() == nullptr);
  1496. delete _impl_.field_;
  1497. delete _impl_.value_;
  1498. _impl_.~Impl_();
  1499. }
  1500. PROTOBUF_NOINLINE void StructuredQuery_FieldFilter::Clear() {
  1501. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.FieldFilter)
  1502. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1503. ::uint32_t cached_has_bits = 0;
  1504. // Prevent compiler warnings about cached_has_bits being unused
  1505. (void) cached_has_bits;
  1506. cached_has_bits = _impl_._has_bits_[0];
  1507. if (cached_has_bits & 0x00000003u) {
  1508. if (cached_has_bits & 0x00000001u) {
  1509. ABSL_DCHECK(_impl_.field_ != nullptr);
  1510. _impl_.field_->Clear();
  1511. }
  1512. if (cached_has_bits & 0x00000002u) {
  1513. ABSL_DCHECK(_impl_.value_ != nullptr);
  1514. _impl_.value_->Clear();
  1515. }
  1516. }
  1517. _impl_.op_ = 0;
  1518. _impl_._has_bits_.Clear();
  1519. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1520. }
  1521. const char* StructuredQuery_FieldFilter::_InternalParse(
  1522. const char* ptr, ::_pbi::ParseContext* ctx) {
  1523. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1524. return ptr;
  1525. }
  1526. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1527. const ::_pbi::TcParseTable<2, 3, 2, 0, 2> StructuredQuery_FieldFilter::_table_ = {
  1528. {
  1529. PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_._has_bits_),
  1530. 0, // no _extensions_
  1531. 3, 24, // max_field_number, fast_idx_mask
  1532. offsetof(decltype(_table_), field_lookup_table),
  1533. 4294967288, // skipmap
  1534. offsetof(decltype(_table_), field_entries),
  1535. 3, // num_field_entries
  1536. 2, // num_aux_entries
  1537. offsetof(decltype(_table_), aux_entries),
  1538. &_StructuredQuery_FieldFilter_default_instance_._instance,
  1539. ::_pbi::TcParser::GenericFallback, // fallback
  1540. }, {{
  1541. {::_pbi::TcParser::MiniParse, {}},
  1542. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1543. {::_pbi::TcParser::FastMtS1,
  1544. {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.field_)}},
  1545. // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
  1546. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery_FieldFilter, _impl_.op_), 63>(),
  1547. {16, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.op_)}},
  1548. // .google.firestore.v1.Value value = 3;
  1549. {::_pbi::TcParser::FastMtS1,
  1550. {26, 1, 1, PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.value_)}},
  1551. }}, {{
  1552. 65535, 65535
  1553. }}, {{
  1554. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1555. {PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.field_), _Internal::kHasBitsOffset + 0, 0,
  1556. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  1557. // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
  1558. {PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.op_), -1, 0,
  1559. (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
  1560. // .google.firestore.v1.Value value = 3;
  1561. {PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.value_), _Internal::kHasBitsOffset + 1, 1,
  1562. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  1563. }}, {{
  1564. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
  1565. {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
  1566. }}, {{
  1567. }},
  1568. };
  1569. ::uint8_t* StructuredQuery_FieldFilter::_InternalSerialize(
  1570. ::uint8_t* target,
  1571. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1572. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.FieldFilter)
  1573. ::uint32_t cached_has_bits = 0;
  1574. (void)cached_has_bits;
  1575. cached_has_bits = _impl_._has_bits_[0];
  1576. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1577. if (cached_has_bits & 0x00000001u) {
  1578. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1579. 1, _Internal::field(this),
  1580. _Internal::field(this).GetCachedSize(), target, stream);
  1581. }
  1582. // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
  1583. if (this->_internal_op() != 0) {
  1584. target = stream->EnsureSpace(target);
  1585. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1586. 2, this->_internal_op(), target);
  1587. }
  1588. // .google.firestore.v1.Value value = 3;
  1589. if (cached_has_bits & 0x00000002u) {
  1590. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1591. 3, _Internal::value(this),
  1592. _Internal::value(this).GetCachedSize(), target, stream);
  1593. }
  1594. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1595. target =
  1596. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1597. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1598. }
  1599. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.FieldFilter)
  1600. return target;
  1601. }
  1602. ::size_t StructuredQuery_FieldFilter::ByteSizeLong() const {
  1603. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.FieldFilter)
  1604. ::size_t total_size = 0;
  1605. ::uint32_t cached_has_bits = 0;
  1606. // Prevent compiler warnings about cached_has_bits being unused
  1607. (void) cached_has_bits;
  1608. cached_has_bits = _impl_._has_bits_[0];
  1609. if (cached_has_bits & 0x00000003u) {
  1610. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1611. if (cached_has_bits & 0x00000001u) {
  1612. total_size +=
  1613. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_);
  1614. }
  1615. // .google.firestore.v1.Value value = 3;
  1616. if (cached_has_bits & 0x00000002u) {
  1617. total_size +=
  1618. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_);
  1619. }
  1620. }
  1621. // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
  1622. if (this->_internal_op() != 0) {
  1623. total_size += 1 +
  1624. ::_pbi::WireFormatLite::EnumSize(this->_internal_op());
  1625. }
  1626. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1627. }
  1628. const ::google::protobuf::Message::ClassData StructuredQuery_FieldFilter::_class_data_ = {
  1629. StructuredQuery_FieldFilter::MergeImpl,
  1630. nullptr, // OnDemandRegisterArenaDtor
  1631. };
  1632. const ::google::protobuf::Message::ClassData* StructuredQuery_FieldFilter::GetClassData() const {
  1633. return &_class_data_;
  1634. }
  1635. void StructuredQuery_FieldFilter::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  1636. auto* const _this = static_cast<StructuredQuery_FieldFilter*>(&to_msg);
  1637. auto& from = static_cast<const StructuredQuery_FieldFilter&>(from_msg);
  1638. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.FieldFilter)
  1639. ABSL_DCHECK_NE(&from, _this);
  1640. ::uint32_t cached_has_bits = 0;
  1641. (void) cached_has_bits;
  1642. cached_has_bits = from._impl_._has_bits_[0];
  1643. if (cached_has_bits & 0x00000003u) {
  1644. if (cached_has_bits & 0x00000001u) {
  1645. _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
  1646. from._internal_field());
  1647. }
  1648. if (cached_has_bits & 0x00000002u) {
  1649. _this->_internal_mutable_value()->::google::firestore::v1::Value::MergeFrom(
  1650. from._internal_value());
  1651. }
  1652. }
  1653. if (from._internal_op() != 0) {
  1654. _this->_internal_set_op(from._internal_op());
  1655. }
  1656. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1657. }
  1658. void StructuredQuery_FieldFilter::CopyFrom(const StructuredQuery_FieldFilter& from) {
  1659. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.FieldFilter)
  1660. if (&from == this) return;
  1661. Clear();
  1662. MergeFrom(from);
  1663. }
  1664. PROTOBUF_NOINLINE bool StructuredQuery_FieldFilter::IsInitialized() const {
  1665. return true;
  1666. }
  1667. ::_pbi::CachedSize* StructuredQuery_FieldFilter::AccessCachedSize() const {
  1668. return &_impl_._cached_size_;
  1669. }
  1670. void StructuredQuery_FieldFilter::InternalSwap(StructuredQuery_FieldFilter* PROTOBUF_RESTRICT other) {
  1671. using std::swap;
  1672. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1673. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  1674. ::google::protobuf::internal::memswap<
  1675. PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.op_)
  1676. + sizeof(StructuredQuery_FieldFilter::_impl_.op_)
  1677. - PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.field_)>(
  1678. reinterpret_cast<char*>(&_impl_.field_),
  1679. reinterpret_cast<char*>(&other->_impl_.field_));
  1680. }
  1681. ::google::protobuf::Metadata StructuredQuery_FieldFilter::GetMetadata() const {
  1682. return ::_pbi::AssignDescriptors(
  1683. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  1684. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[3]);
  1685. }
  1686. // ===================================================================
  1687. class StructuredQuery_UnaryFilter::_Internal {
  1688. public:
  1689. static constexpr ::int32_t kOneofCaseOffset =
  1690. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _impl_._oneof_case_);
  1691. static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredQuery_UnaryFilter* msg);
  1692. };
  1693. const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_UnaryFilter::_Internal::field(const StructuredQuery_UnaryFilter* msg) {
  1694. return *msg->_impl_.operand_type_.field_;
  1695. }
  1696. void StructuredQuery_UnaryFilter::set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* field) {
  1697. ::google::protobuf::Arena* message_arena = GetArena();
  1698. clear_operand_type();
  1699. if (field) {
  1700. ::google::protobuf::Arena* submessage_arena = field->GetArena();
  1701. if (message_arena != submessage_arena) {
  1702. field = ::google::protobuf::internal::GetOwnedMessage(message_arena, field, submessage_arena);
  1703. }
  1704. set_has_field();
  1705. _impl_.operand_type_.field_ = field;
  1706. }
  1707. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  1708. }
  1709. StructuredQuery_UnaryFilter::StructuredQuery_UnaryFilter(::google::protobuf::Arena* arena)
  1710. : ::google::protobuf::Message(arena) {
  1711. SharedCtor(arena);
  1712. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.UnaryFilter)
  1713. }
  1714. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_UnaryFilter::Impl_::Impl_(
  1715. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1716. const Impl_& from)
  1717. : operand_type_{},
  1718. _cached_size_{0},
  1719. _oneof_case_{from._oneof_case_[0]} {}
  1720. StructuredQuery_UnaryFilter::StructuredQuery_UnaryFilter(
  1721. ::google::protobuf::Arena* arena,
  1722. const StructuredQuery_UnaryFilter& from)
  1723. : ::google::protobuf::Message(arena) {
  1724. StructuredQuery_UnaryFilter* const _this = this;
  1725. (void)_this;
  1726. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1727. from._internal_metadata_);
  1728. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1729. _impl_.op_ = from._impl_.op_;
  1730. switch (operand_type_case()) {
  1731. case OPERAND_TYPE_NOT_SET:
  1732. break;
  1733. case kField:
  1734. _impl_.operand_type_.field_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.operand_type_.field_);
  1735. break;
  1736. }
  1737. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.UnaryFilter)
  1738. }
  1739. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_UnaryFilter::Impl_::Impl_(
  1740. ::google::protobuf::internal::InternalVisibility visibility,
  1741. ::google::protobuf::Arena* arena)
  1742. : operand_type_{},
  1743. _cached_size_{0},
  1744. _oneof_case_{} {}
  1745. inline void StructuredQuery_UnaryFilter::SharedCtor(::_pb::Arena* arena) {
  1746. new (&_impl_) Impl_(internal_visibility(), arena);
  1747. _impl_.op_ = {};
  1748. }
  1749. StructuredQuery_UnaryFilter::~StructuredQuery_UnaryFilter() {
  1750. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.UnaryFilter)
  1751. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1752. SharedDtor();
  1753. }
  1754. inline void StructuredQuery_UnaryFilter::SharedDtor() {
  1755. ABSL_DCHECK(GetArena() == nullptr);
  1756. if (has_operand_type()) {
  1757. clear_operand_type();
  1758. }
  1759. _impl_.~Impl_();
  1760. }
  1761. void StructuredQuery_UnaryFilter::clear_operand_type() {
  1762. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.StructuredQuery.UnaryFilter)
  1763. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1764. switch (operand_type_case()) {
  1765. case kField: {
  1766. if (GetArena() == nullptr) {
  1767. delete _impl_.operand_type_.field_;
  1768. }
  1769. break;
  1770. }
  1771. case OPERAND_TYPE_NOT_SET: {
  1772. break;
  1773. }
  1774. }
  1775. _impl_._oneof_case_[0] = OPERAND_TYPE_NOT_SET;
  1776. }
  1777. PROTOBUF_NOINLINE void StructuredQuery_UnaryFilter::Clear() {
  1778. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.UnaryFilter)
  1779. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1780. ::uint32_t cached_has_bits = 0;
  1781. // Prevent compiler warnings about cached_has_bits being unused
  1782. (void) cached_has_bits;
  1783. _impl_.op_ = 0;
  1784. clear_operand_type();
  1785. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1786. }
  1787. const char* StructuredQuery_UnaryFilter::_InternalParse(
  1788. const char* ptr, ::_pbi::ParseContext* ctx) {
  1789. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1790. return ptr;
  1791. }
  1792. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1793. const ::_pbi::TcParseTable<0, 2, 1, 0, 2> StructuredQuery_UnaryFilter::_table_ = {
  1794. {
  1795. 0, // no _has_bits_
  1796. 0, // no _extensions_
  1797. 2, 0, // max_field_number, fast_idx_mask
  1798. offsetof(decltype(_table_), field_lookup_table),
  1799. 4294967292, // skipmap
  1800. offsetof(decltype(_table_), field_entries),
  1801. 2, // num_field_entries
  1802. 1, // num_aux_entries
  1803. offsetof(decltype(_table_), aux_entries),
  1804. &_StructuredQuery_UnaryFilter_default_instance_._instance,
  1805. ::_pbi::TcParser::GenericFallback, // fallback
  1806. }, {{
  1807. // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
  1808. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery_UnaryFilter, _impl_.op_), 63>(),
  1809. {8, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_UnaryFilter, _impl_.op_)}},
  1810. }}, {{
  1811. 65535, 65535
  1812. }}, {{
  1813. // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
  1814. {PROTOBUF_FIELD_OFFSET(StructuredQuery_UnaryFilter, _impl_.op_), 0, 0,
  1815. (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
  1816. // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
  1817. {PROTOBUF_FIELD_OFFSET(StructuredQuery_UnaryFilter, _impl_.operand_type_.field_), _Internal::kOneofCaseOffset + 0, 0,
  1818. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1819. }}, {{
  1820. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
  1821. }}, {{
  1822. }},
  1823. };
  1824. ::uint8_t* StructuredQuery_UnaryFilter::_InternalSerialize(
  1825. ::uint8_t* target,
  1826. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1827. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.UnaryFilter)
  1828. ::uint32_t cached_has_bits = 0;
  1829. (void)cached_has_bits;
  1830. // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
  1831. if (this->_internal_op() != 0) {
  1832. target = stream->EnsureSpace(target);
  1833. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1834. 1, this->_internal_op(), target);
  1835. }
  1836. // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
  1837. if (operand_type_case() == kField) {
  1838. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1839. 2, _Internal::field(this),
  1840. _Internal::field(this).GetCachedSize(), target, stream);
  1841. }
  1842. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1843. target =
  1844. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1845. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1846. }
  1847. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.UnaryFilter)
  1848. return target;
  1849. }
  1850. ::size_t StructuredQuery_UnaryFilter::ByteSizeLong() const {
  1851. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.UnaryFilter)
  1852. ::size_t total_size = 0;
  1853. ::uint32_t cached_has_bits = 0;
  1854. // Prevent compiler warnings about cached_has_bits being unused
  1855. (void) cached_has_bits;
  1856. // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
  1857. if (this->_internal_op() != 0) {
  1858. total_size += 1 +
  1859. ::_pbi::WireFormatLite::EnumSize(this->_internal_op());
  1860. }
  1861. switch (operand_type_case()) {
  1862. // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
  1863. case kField: {
  1864. total_size +=
  1865. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operand_type_.field_);
  1866. break;
  1867. }
  1868. case OPERAND_TYPE_NOT_SET: {
  1869. break;
  1870. }
  1871. }
  1872. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1873. }
  1874. const ::google::protobuf::Message::ClassData StructuredQuery_UnaryFilter::_class_data_ = {
  1875. StructuredQuery_UnaryFilter::MergeImpl,
  1876. nullptr, // OnDemandRegisterArenaDtor
  1877. };
  1878. const ::google::protobuf::Message::ClassData* StructuredQuery_UnaryFilter::GetClassData() const {
  1879. return &_class_data_;
  1880. }
  1881. void StructuredQuery_UnaryFilter::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  1882. auto* const _this = static_cast<StructuredQuery_UnaryFilter*>(&to_msg);
  1883. auto& from = static_cast<const StructuredQuery_UnaryFilter&>(from_msg);
  1884. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.UnaryFilter)
  1885. ABSL_DCHECK_NE(&from, _this);
  1886. ::uint32_t cached_has_bits = 0;
  1887. (void) cached_has_bits;
  1888. if (from._internal_op() != 0) {
  1889. _this->_internal_set_op(from._internal_op());
  1890. }
  1891. switch (from.operand_type_case()) {
  1892. case kField: {
  1893. _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
  1894. from._internal_field());
  1895. break;
  1896. }
  1897. case OPERAND_TYPE_NOT_SET: {
  1898. break;
  1899. }
  1900. }
  1901. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1902. }
  1903. void StructuredQuery_UnaryFilter::CopyFrom(const StructuredQuery_UnaryFilter& from) {
  1904. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.UnaryFilter)
  1905. if (&from == this) return;
  1906. Clear();
  1907. MergeFrom(from);
  1908. }
  1909. PROTOBUF_NOINLINE bool StructuredQuery_UnaryFilter::IsInitialized() const {
  1910. return true;
  1911. }
  1912. ::_pbi::CachedSize* StructuredQuery_UnaryFilter::AccessCachedSize() const {
  1913. return &_impl_._cached_size_;
  1914. }
  1915. void StructuredQuery_UnaryFilter::InternalSwap(StructuredQuery_UnaryFilter* PROTOBUF_RESTRICT other) {
  1916. using std::swap;
  1917. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1918. swap(_impl_.op_, other->_impl_.op_);
  1919. swap(_impl_.operand_type_, other->_impl_.operand_type_);
  1920. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  1921. }
  1922. ::google::protobuf::Metadata StructuredQuery_UnaryFilter::GetMetadata() const {
  1923. return ::_pbi::AssignDescriptors(
  1924. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  1925. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[4]);
  1926. }
  1927. // ===================================================================
  1928. class StructuredQuery_Order::_Internal {
  1929. public:
  1930. using HasBits = decltype(std::declval<StructuredQuery_Order>()._impl_._has_bits_);
  1931. static constexpr ::int32_t kHasBitsOffset =
  1932. 8 * PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_._has_bits_);
  1933. static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredQuery_Order* msg);
  1934. static void set_has_field(HasBits* has_bits) {
  1935. (*has_bits)[0] |= 1u;
  1936. }
  1937. };
  1938. const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_Order::_Internal::field(const StructuredQuery_Order* msg) {
  1939. return *msg->_impl_.field_;
  1940. }
  1941. StructuredQuery_Order::StructuredQuery_Order(::google::protobuf::Arena* arena)
  1942. : ::google::protobuf::Message(arena) {
  1943. SharedCtor(arena);
  1944. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.Order)
  1945. }
  1946. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Order::Impl_::Impl_(
  1947. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1948. const Impl_& from)
  1949. : _has_bits_{from._has_bits_},
  1950. _cached_size_{0} {}
  1951. StructuredQuery_Order::StructuredQuery_Order(
  1952. ::google::protobuf::Arena* arena,
  1953. const StructuredQuery_Order& from)
  1954. : ::google::protobuf::Message(arena) {
  1955. StructuredQuery_Order* const _this = this;
  1956. (void)_this;
  1957. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1958. from._internal_metadata_);
  1959. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1960. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  1961. _impl_.field_ = (cached_has_bits & 0x00000001u)
  1962. ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.field_)
  1963. : nullptr;
  1964. _impl_.direction_ = from._impl_.direction_;
  1965. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.Order)
  1966. }
  1967. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Order::Impl_::Impl_(
  1968. ::google::protobuf::internal::InternalVisibility visibility,
  1969. ::google::protobuf::Arena* arena)
  1970. : _cached_size_{0} {}
  1971. inline void StructuredQuery_Order::SharedCtor(::_pb::Arena* arena) {
  1972. new (&_impl_) Impl_(internal_visibility(), arena);
  1973. ::memset(reinterpret_cast<char *>(&_impl_) +
  1974. offsetof(Impl_, field_),
  1975. 0,
  1976. offsetof(Impl_, direction_) -
  1977. offsetof(Impl_, field_) +
  1978. sizeof(Impl_::direction_));
  1979. }
  1980. StructuredQuery_Order::~StructuredQuery_Order() {
  1981. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.Order)
  1982. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1983. SharedDtor();
  1984. }
  1985. inline void StructuredQuery_Order::SharedDtor() {
  1986. ABSL_DCHECK(GetArena() == nullptr);
  1987. delete _impl_.field_;
  1988. _impl_.~Impl_();
  1989. }
  1990. PROTOBUF_NOINLINE void StructuredQuery_Order::Clear() {
  1991. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.Order)
  1992. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1993. ::uint32_t cached_has_bits = 0;
  1994. // Prevent compiler warnings about cached_has_bits being unused
  1995. (void) cached_has_bits;
  1996. cached_has_bits = _impl_._has_bits_[0];
  1997. if (cached_has_bits & 0x00000001u) {
  1998. ABSL_DCHECK(_impl_.field_ != nullptr);
  1999. _impl_.field_->Clear();
  2000. }
  2001. _impl_.direction_ = 0;
  2002. _impl_._has_bits_.Clear();
  2003. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2004. }
  2005. const char* StructuredQuery_Order::_InternalParse(
  2006. const char* ptr, ::_pbi::ParseContext* ctx) {
  2007. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2008. return ptr;
  2009. }
  2010. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2011. const ::_pbi::TcParseTable<1, 2, 1, 0, 2> StructuredQuery_Order::_table_ = {
  2012. {
  2013. PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_._has_bits_),
  2014. 0, // no _extensions_
  2015. 2, 8, // max_field_number, fast_idx_mask
  2016. offsetof(decltype(_table_), field_lookup_table),
  2017. 4294967292, // skipmap
  2018. offsetof(decltype(_table_), field_entries),
  2019. 2, // num_field_entries
  2020. 1, // num_aux_entries
  2021. offsetof(decltype(_table_), aux_entries),
  2022. &_StructuredQuery_Order_default_instance_._instance,
  2023. ::_pbi::TcParser::GenericFallback, // fallback
  2024. }, {{
  2025. // .google.firestore.v1.StructuredQuery.Direction direction = 2;
  2026. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery_Order, _impl_.direction_), 63>(),
  2027. {16, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.direction_)}},
  2028. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  2029. {::_pbi::TcParser::FastMtS1,
  2030. {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.field_)}},
  2031. }}, {{
  2032. 65535, 65535
  2033. }}, {{
  2034. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  2035. {PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.field_), _Internal::kHasBitsOffset + 0, 0,
  2036. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2037. // .google.firestore.v1.StructuredQuery.Direction direction = 2;
  2038. {PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.direction_), -1, 0,
  2039. (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
  2040. }}, {{
  2041. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
  2042. }}, {{
  2043. }},
  2044. };
  2045. ::uint8_t* StructuredQuery_Order::_InternalSerialize(
  2046. ::uint8_t* target,
  2047. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2048. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.Order)
  2049. ::uint32_t cached_has_bits = 0;
  2050. (void)cached_has_bits;
  2051. cached_has_bits = _impl_._has_bits_[0];
  2052. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  2053. if (cached_has_bits & 0x00000001u) {
  2054. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2055. 1, _Internal::field(this),
  2056. _Internal::field(this).GetCachedSize(), target, stream);
  2057. }
  2058. // .google.firestore.v1.StructuredQuery.Direction direction = 2;
  2059. if (this->_internal_direction() != 0) {
  2060. target = stream->EnsureSpace(target);
  2061. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2062. 2, this->_internal_direction(), target);
  2063. }
  2064. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2065. target =
  2066. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2067. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2068. }
  2069. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.Order)
  2070. return target;
  2071. }
  2072. ::size_t StructuredQuery_Order::ByteSizeLong() const {
  2073. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.Order)
  2074. ::size_t total_size = 0;
  2075. ::uint32_t cached_has_bits = 0;
  2076. // Prevent compiler warnings about cached_has_bits being unused
  2077. (void) cached_has_bits;
  2078. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  2079. cached_has_bits = _impl_._has_bits_[0];
  2080. if (cached_has_bits & 0x00000001u) {
  2081. total_size +=
  2082. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_);
  2083. }
  2084. // .google.firestore.v1.StructuredQuery.Direction direction = 2;
  2085. if (this->_internal_direction() != 0) {
  2086. total_size += 1 +
  2087. ::_pbi::WireFormatLite::EnumSize(this->_internal_direction());
  2088. }
  2089. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2090. }
  2091. const ::google::protobuf::Message::ClassData StructuredQuery_Order::_class_data_ = {
  2092. StructuredQuery_Order::MergeImpl,
  2093. nullptr, // OnDemandRegisterArenaDtor
  2094. };
  2095. const ::google::protobuf::Message::ClassData* StructuredQuery_Order::GetClassData() const {
  2096. return &_class_data_;
  2097. }
  2098. void StructuredQuery_Order::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2099. auto* const _this = static_cast<StructuredQuery_Order*>(&to_msg);
  2100. auto& from = static_cast<const StructuredQuery_Order&>(from_msg);
  2101. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.Order)
  2102. ABSL_DCHECK_NE(&from, _this);
  2103. ::uint32_t cached_has_bits = 0;
  2104. (void) cached_has_bits;
  2105. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  2106. _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
  2107. from._internal_field());
  2108. }
  2109. if (from._internal_direction() != 0) {
  2110. _this->_internal_set_direction(from._internal_direction());
  2111. }
  2112. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2113. }
  2114. void StructuredQuery_Order::CopyFrom(const StructuredQuery_Order& from) {
  2115. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.Order)
  2116. if (&from == this) return;
  2117. Clear();
  2118. MergeFrom(from);
  2119. }
  2120. PROTOBUF_NOINLINE bool StructuredQuery_Order::IsInitialized() const {
  2121. return true;
  2122. }
  2123. ::_pbi::CachedSize* StructuredQuery_Order::AccessCachedSize() const {
  2124. return &_impl_._cached_size_;
  2125. }
  2126. void StructuredQuery_Order::InternalSwap(StructuredQuery_Order* PROTOBUF_RESTRICT other) {
  2127. using std::swap;
  2128. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2129. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  2130. ::google::protobuf::internal::memswap<
  2131. PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.direction_)
  2132. + sizeof(StructuredQuery_Order::_impl_.direction_)
  2133. - PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.field_)>(
  2134. reinterpret_cast<char*>(&_impl_.field_),
  2135. reinterpret_cast<char*>(&other->_impl_.field_));
  2136. }
  2137. ::google::protobuf::Metadata StructuredQuery_Order::GetMetadata() const {
  2138. return ::_pbi::AssignDescriptors(
  2139. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  2140. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[5]);
  2141. }
  2142. // ===================================================================
  2143. class StructuredQuery_FieldReference::_Internal {
  2144. public:
  2145. };
  2146. StructuredQuery_FieldReference::StructuredQuery_FieldReference(::google::protobuf::Arena* arena)
  2147. : ::google::protobuf::Message(arena) {
  2148. SharedCtor(arena);
  2149. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.FieldReference)
  2150. }
  2151. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_FieldReference::Impl_::Impl_(
  2152. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2153. const Impl_& from)
  2154. : field_path_(arena, from.field_path_),
  2155. _cached_size_{0} {}
  2156. StructuredQuery_FieldReference::StructuredQuery_FieldReference(
  2157. ::google::protobuf::Arena* arena,
  2158. const StructuredQuery_FieldReference& from)
  2159. : ::google::protobuf::Message(arena) {
  2160. StructuredQuery_FieldReference* const _this = this;
  2161. (void)_this;
  2162. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2163. from._internal_metadata_);
  2164. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2165. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.FieldReference)
  2166. }
  2167. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_FieldReference::Impl_::Impl_(
  2168. ::google::protobuf::internal::InternalVisibility visibility,
  2169. ::google::protobuf::Arena* arena)
  2170. : field_path_(arena),
  2171. _cached_size_{0} {}
  2172. inline void StructuredQuery_FieldReference::SharedCtor(::_pb::Arena* arena) {
  2173. new (&_impl_) Impl_(internal_visibility(), arena);
  2174. }
  2175. StructuredQuery_FieldReference::~StructuredQuery_FieldReference() {
  2176. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.FieldReference)
  2177. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2178. SharedDtor();
  2179. }
  2180. inline void StructuredQuery_FieldReference::SharedDtor() {
  2181. ABSL_DCHECK(GetArena() == nullptr);
  2182. _impl_.field_path_.Destroy();
  2183. _impl_.~Impl_();
  2184. }
  2185. PROTOBUF_NOINLINE void StructuredQuery_FieldReference::Clear() {
  2186. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.FieldReference)
  2187. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2188. ::uint32_t cached_has_bits = 0;
  2189. // Prevent compiler warnings about cached_has_bits being unused
  2190. (void) cached_has_bits;
  2191. _impl_.field_path_.ClearToEmpty();
  2192. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2193. }
  2194. const char* StructuredQuery_FieldReference::_InternalParse(
  2195. const char* ptr, ::_pbi::ParseContext* ctx) {
  2196. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2197. return ptr;
  2198. }
  2199. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2200. const ::_pbi::TcParseTable<0, 1, 0, 69, 2> StructuredQuery_FieldReference::_table_ = {
  2201. {
  2202. 0, // no _has_bits_
  2203. 0, // no _extensions_
  2204. 2, 0, // max_field_number, fast_idx_mask
  2205. offsetof(decltype(_table_), field_lookup_table),
  2206. 4294967293, // skipmap
  2207. offsetof(decltype(_table_), field_entries),
  2208. 1, // num_field_entries
  2209. 0, // num_aux_entries
  2210. offsetof(decltype(_table_), field_names), // no aux_entries
  2211. &_StructuredQuery_FieldReference_default_instance_._instance,
  2212. ::_pbi::TcParser::GenericFallback, // fallback
  2213. }, {{
  2214. // string field_path = 2;
  2215. {::_pbi::TcParser::FastUS1,
  2216. {18, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldReference, _impl_.field_path_)}},
  2217. }}, {{
  2218. 65535, 65535
  2219. }}, {{
  2220. // string field_path = 2;
  2221. {PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldReference, _impl_.field_path_), 0, 0,
  2222. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  2223. }},
  2224. // no aux_entries
  2225. {{
  2226. "\62\12\0\0\0\0\0\0"
  2227. "google.firestore.v1.StructuredQuery.FieldReference"
  2228. "field_path"
  2229. }},
  2230. };
  2231. ::uint8_t* StructuredQuery_FieldReference::_InternalSerialize(
  2232. ::uint8_t* target,
  2233. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2234. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.FieldReference)
  2235. ::uint32_t cached_has_bits = 0;
  2236. (void)cached_has_bits;
  2237. // string field_path = 2;
  2238. if (!this->_internal_field_path().empty()) {
  2239. const std::string& _s = this->_internal_field_path();
  2240. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2241. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.StructuredQuery.FieldReference.field_path");
  2242. target = stream->WriteStringMaybeAliased(2, _s, target);
  2243. }
  2244. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2245. target =
  2246. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2247. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2248. }
  2249. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.FieldReference)
  2250. return target;
  2251. }
  2252. ::size_t StructuredQuery_FieldReference::ByteSizeLong() const {
  2253. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.FieldReference)
  2254. ::size_t total_size = 0;
  2255. ::uint32_t cached_has_bits = 0;
  2256. // Prevent compiler warnings about cached_has_bits being unused
  2257. (void) cached_has_bits;
  2258. // string field_path = 2;
  2259. if (!this->_internal_field_path().empty()) {
  2260. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2261. this->_internal_field_path());
  2262. }
  2263. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2264. }
  2265. const ::google::protobuf::Message::ClassData StructuredQuery_FieldReference::_class_data_ = {
  2266. StructuredQuery_FieldReference::MergeImpl,
  2267. nullptr, // OnDemandRegisterArenaDtor
  2268. };
  2269. const ::google::protobuf::Message::ClassData* StructuredQuery_FieldReference::GetClassData() const {
  2270. return &_class_data_;
  2271. }
  2272. void StructuredQuery_FieldReference::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2273. auto* const _this = static_cast<StructuredQuery_FieldReference*>(&to_msg);
  2274. auto& from = static_cast<const StructuredQuery_FieldReference&>(from_msg);
  2275. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.FieldReference)
  2276. ABSL_DCHECK_NE(&from, _this);
  2277. ::uint32_t cached_has_bits = 0;
  2278. (void) cached_has_bits;
  2279. if (!from._internal_field_path().empty()) {
  2280. _this->_internal_set_field_path(from._internal_field_path());
  2281. }
  2282. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2283. }
  2284. void StructuredQuery_FieldReference::CopyFrom(const StructuredQuery_FieldReference& from) {
  2285. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.FieldReference)
  2286. if (&from == this) return;
  2287. Clear();
  2288. MergeFrom(from);
  2289. }
  2290. PROTOBUF_NOINLINE bool StructuredQuery_FieldReference::IsInitialized() const {
  2291. return true;
  2292. }
  2293. ::_pbi::CachedSize* StructuredQuery_FieldReference::AccessCachedSize() const {
  2294. return &_impl_._cached_size_;
  2295. }
  2296. void StructuredQuery_FieldReference::InternalSwap(StructuredQuery_FieldReference* PROTOBUF_RESTRICT other) {
  2297. using std::swap;
  2298. auto* arena = GetArena();
  2299. ABSL_DCHECK_EQ(arena, other->GetArena());
  2300. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2301. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.field_path_, &other->_impl_.field_path_, arena);
  2302. }
  2303. ::google::protobuf::Metadata StructuredQuery_FieldReference::GetMetadata() const {
  2304. return ::_pbi::AssignDescriptors(
  2305. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  2306. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[6]);
  2307. }
  2308. // ===================================================================
  2309. class StructuredQuery_Projection::_Internal {
  2310. public:
  2311. };
  2312. StructuredQuery_Projection::StructuredQuery_Projection(::google::protobuf::Arena* arena)
  2313. : ::google::protobuf::Message(arena) {
  2314. SharedCtor(arena);
  2315. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.Projection)
  2316. }
  2317. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Projection::Impl_::Impl_(
  2318. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2319. const Impl_& from)
  2320. : fields_{visibility, arena, from.fields_},
  2321. _cached_size_{0} {}
  2322. StructuredQuery_Projection::StructuredQuery_Projection(
  2323. ::google::protobuf::Arena* arena,
  2324. const StructuredQuery_Projection& from)
  2325. : ::google::protobuf::Message(arena) {
  2326. StructuredQuery_Projection* const _this = this;
  2327. (void)_this;
  2328. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2329. from._internal_metadata_);
  2330. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2331. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.Projection)
  2332. }
  2333. inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Projection::Impl_::Impl_(
  2334. ::google::protobuf::internal::InternalVisibility visibility,
  2335. ::google::protobuf::Arena* arena)
  2336. : fields_{visibility, arena},
  2337. _cached_size_{0} {}
  2338. inline void StructuredQuery_Projection::SharedCtor(::_pb::Arena* arena) {
  2339. new (&_impl_) Impl_(internal_visibility(), arena);
  2340. }
  2341. StructuredQuery_Projection::~StructuredQuery_Projection() {
  2342. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.Projection)
  2343. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2344. SharedDtor();
  2345. }
  2346. inline void StructuredQuery_Projection::SharedDtor() {
  2347. ABSL_DCHECK(GetArena() == nullptr);
  2348. _impl_.~Impl_();
  2349. }
  2350. PROTOBUF_NOINLINE void StructuredQuery_Projection::Clear() {
  2351. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.Projection)
  2352. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2353. ::uint32_t cached_has_bits = 0;
  2354. // Prevent compiler warnings about cached_has_bits being unused
  2355. (void) cached_has_bits;
  2356. _impl_.fields_.Clear();
  2357. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2358. }
  2359. const char* StructuredQuery_Projection::_InternalParse(
  2360. const char* ptr, ::_pbi::ParseContext* ctx) {
  2361. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2362. return ptr;
  2363. }
  2364. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2365. const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StructuredQuery_Projection::_table_ = {
  2366. {
  2367. 0, // no _has_bits_
  2368. 0, // no _extensions_
  2369. 2, 0, // max_field_number, fast_idx_mask
  2370. offsetof(decltype(_table_), field_lookup_table),
  2371. 4294967293, // skipmap
  2372. offsetof(decltype(_table_), field_entries),
  2373. 1, // num_field_entries
  2374. 1, // num_aux_entries
  2375. offsetof(decltype(_table_), aux_entries),
  2376. &_StructuredQuery_Projection_default_instance_._instance,
  2377. ::_pbi::TcParser::GenericFallback, // fallback
  2378. }, {{
  2379. // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
  2380. {::_pbi::TcParser::FastMtR1,
  2381. {18, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_Projection, _impl_.fields_)}},
  2382. }}, {{
  2383. 65535, 65535
  2384. }}, {{
  2385. // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
  2386. {PROTOBUF_FIELD_OFFSET(StructuredQuery_Projection, _impl_.fields_), 0, 0,
  2387. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  2388. }}, {{
  2389. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
  2390. }}, {{
  2391. }},
  2392. };
  2393. ::uint8_t* StructuredQuery_Projection::_InternalSerialize(
  2394. ::uint8_t* target,
  2395. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2396. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.Projection)
  2397. ::uint32_t cached_has_bits = 0;
  2398. (void)cached_has_bits;
  2399. // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
  2400. for (unsigned i = 0,
  2401. n = static_cast<unsigned>(this->_internal_fields_size()); i < n; i++) {
  2402. const auto& repfield = this->_internal_fields().Get(i);
  2403. target = ::google::protobuf::internal::WireFormatLite::
  2404. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  2405. }
  2406. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2407. target =
  2408. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2409. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2410. }
  2411. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.Projection)
  2412. return target;
  2413. }
  2414. ::size_t StructuredQuery_Projection::ByteSizeLong() const {
  2415. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.Projection)
  2416. ::size_t total_size = 0;
  2417. ::uint32_t cached_has_bits = 0;
  2418. // Prevent compiler warnings about cached_has_bits being unused
  2419. (void) cached_has_bits;
  2420. // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
  2421. total_size += 1UL * this->_internal_fields_size();
  2422. for (const auto& msg : this->_internal_fields()) {
  2423. total_size +=
  2424. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  2425. }
  2426. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2427. }
  2428. const ::google::protobuf::Message::ClassData StructuredQuery_Projection::_class_data_ = {
  2429. StructuredQuery_Projection::MergeImpl,
  2430. nullptr, // OnDemandRegisterArenaDtor
  2431. };
  2432. const ::google::protobuf::Message::ClassData* StructuredQuery_Projection::GetClassData() const {
  2433. return &_class_data_;
  2434. }
  2435. void StructuredQuery_Projection::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2436. auto* const _this = static_cast<StructuredQuery_Projection*>(&to_msg);
  2437. auto& from = static_cast<const StructuredQuery_Projection&>(from_msg);
  2438. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.Projection)
  2439. ABSL_DCHECK_NE(&from, _this);
  2440. ::uint32_t cached_has_bits = 0;
  2441. (void) cached_has_bits;
  2442. _this->_internal_mutable_fields()->MergeFrom(
  2443. from._internal_fields());
  2444. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2445. }
  2446. void StructuredQuery_Projection::CopyFrom(const StructuredQuery_Projection& from) {
  2447. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.Projection)
  2448. if (&from == this) return;
  2449. Clear();
  2450. MergeFrom(from);
  2451. }
  2452. PROTOBUF_NOINLINE bool StructuredQuery_Projection::IsInitialized() const {
  2453. return true;
  2454. }
  2455. ::_pbi::CachedSize* StructuredQuery_Projection::AccessCachedSize() const {
  2456. return &_impl_._cached_size_;
  2457. }
  2458. void StructuredQuery_Projection::InternalSwap(StructuredQuery_Projection* PROTOBUF_RESTRICT other) {
  2459. using std::swap;
  2460. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2461. _impl_.fields_.InternalSwap(&other->_impl_.fields_);
  2462. }
  2463. ::google::protobuf::Metadata StructuredQuery_Projection::GetMetadata() const {
  2464. return ::_pbi::AssignDescriptors(
  2465. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  2466. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[7]);
  2467. }
  2468. // ===================================================================
  2469. class StructuredQuery::_Internal {
  2470. public:
  2471. using HasBits = decltype(std::declval<StructuredQuery>()._impl_._has_bits_);
  2472. static constexpr ::int32_t kHasBitsOffset =
  2473. 8 * PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_._has_bits_);
  2474. static const ::google::firestore::v1::StructuredQuery_Projection& select(const StructuredQuery* msg);
  2475. static void set_has_select(HasBits* has_bits) {
  2476. (*has_bits)[0] |= 1u;
  2477. }
  2478. static const ::google::firestore::v1::StructuredQuery_Filter& where(const StructuredQuery* msg);
  2479. static void set_has_where(HasBits* has_bits) {
  2480. (*has_bits)[0] |= 2u;
  2481. }
  2482. static const ::google::firestore::v1::Cursor& start_at(const StructuredQuery* msg);
  2483. static void set_has_start_at(HasBits* has_bits) {
  2484. (*has_bits)[0] |= 8u;
  2485. }
  2486. static const ::google::firestore::v1::Cursor& end_at(const StructuredQuery* msg);
  2487. static void set_has_end_at(HasBits* has_bits) {
  2488. (*has_bits)[0] |= 16u;
  2489. }
  2490. static const ::google::protobuf::Int32Value& limit(const StructuredQuery* msg);
  2491. static void set_has_limit(HasBits* has_bits) {
  2492. (*has_bits)[0] |= 4u;
  2493. }
  2494. };
  2495. const ::google::firestore::v1::StructuredQuery_Projection& StructuredQuery::_Internal::select(const StructuredQuery* msg) {
  2496. return *msg->_impl_.select_;
  2497. }
  2498. const ::google::firestore::v1::StructuredQuery_Filter& StructuredQuery::_Internal::where(const StructuredQuery* msg) {
  2499. return *msg->_impl_.where_;
  2500. }
  2501. const ::google::firestore::v1::Cursor& StructuredQuery::_Internal::start_at(const StructuredQuery* msg) {
  2502. return *msg->_impl_.start_at_;
  2503. }
  2504. const ::google::firestore::v1::Cursor& StructuredQuery::_Internal::end_at(const StructuredQuery* msg) {
  2505. return *msg->_impl_.end_at_;
  2506. }
  2507. const ::google::protobuf::Int32Value& StructuredQuery::_Internal::limit(const StructuredQuery* msg) {
  2508. return *msg->_impl_.limit_;
  2509. }
  2510. void StructuredQuery::clear_limit() {
  2511. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2512. if (_impl_.limit_ != nullptr) _impl_.limit_->Clear();
  2513. _impl_._has_bits_[0] &= ~0x00000004u;
  2514. }
  2515. StructuredQuery::StructuredQuery(::google::protobuf::Arena* arena)
  2516. : ::google::protobuf::Message(arena) {
  2517. SharedCtor(arena);
  2518. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery)
  2519. }
  2520. inline PROTOBUF_NDEBUG_INLINE StructuredQuery::Impl_::Impl_(
  2521. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2522. const Impl_& from)
  2523. : _has_bits_{from._has_bits_},
  2524. _cached_size_{0},
  2525. from_{visibility, arena, from.from_},
  2526. order_by_{visibility, arena, from.order_by_} {}
  2527. StructuredQuery::StructuredQuery(
  2528. ::google::protobuf::Arena* arena,
  2529. const StructuredQuery& from)
  2530. : ::google::protobuf::Message(arena) {
  2531. StructuredQuery* const _this = this;
  2532. (void)_this;
  2533. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2534. from._internal_metadata_);
  2535. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2536. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  2537. _impl_.select_ = (cached_has_bits & 0x00000001u)
  2538. ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_Projection>(arena, *from._impl_.select_)
  2539. : nullptr;
  2540. _impl_.where_ = (cached_has_bits & 0x00000002u)
  2541. ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_Filter>(arena, *from._impl_.where_)
  2542. : nullptr;
  2543. _impl_.limit_ = (cached_has_bits & 0x00000004u)
  2544. ? CreateMaybeMessage<::google::protobuf::Int32Value>(arena, *from._impl_.limit_)
  2545. : nullptr;
  2546. _impl_.start_at_ = (cached_has_bits & 0x00000008u)
  2547. ? CreateMaybeMessage<::google::firestore::v1::Cursor>(arena, *from._impl_.start_at_)
  2548. : nullptr;
  2549. _impl_.end_at_ = (cached_has_bits & 0x00000010u)
  2550. ? CreateMaybeMessage<::google::firestore::v1::Cursor>(arena, *from._impl_.end_at_)
  2551. : nullptr;
  2552. _impl_.offset_ = from._impl_.offset_;
  2553. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery)
  2554. }
  2555. inline PROTOBUF_NDEBUG_INLINE StructuredQuery::Impl_::Impl_(
  2556. ::google::protobuf::internal::InternalVisibility visibility,
  2557. ::google::protobuf::Arena* arena)
  2558. : _cached_size_{0},
  2559. from_{visibility, arena},
  2560. order_by_{visibility, arena} {}
  2561. inline void StructuredQuery::SharedCtor(::_pb::Arena* arena) {
  2562. new (&_impl_) Impl_(internal_visibility(), arena);
  2563. ::memset(reinterpret_cast<char *>(&_impl_) +
  2564. offsetof(Impl_, select_),
  2565. 0,
  2566. offsetof(Impl_, offset_) -
  2567. offsetof(Impl_, select_) +
  2568. sizeof(Impl_::offset_));
  2569. }
  2570. StructuredQuery::~StructuredQuery() {
  2571. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery)
  2572. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2573. SharedDtor();
  2574. }
  2575. inline void StructuredQuery::SharedDtor() {
  2576. ABSL_DCHECK(GetArena() == nullptr);
  2577. delete _impl_.select_;
  2578. delete _impl_.where_;
  2579. delete _impl_.limit_;
  2580. delete _impl_.start_at_;
  2581. delete _impl_.end_at_;
  2582. _impl_.~Impl_();
  2583. }
  2584. PROTOBUF_NOINLINE void StructuredQuery::Clear() {
  2585. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery)
  2586. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2587. ::uint32_t cached_has_bits = 0;
  2588. // Prevent compiler warnings about cached_has_bits being unused
  2589. (void) cached_has_bits;
  2590. _impl_.from_.Clear();
  2591. _impl_.order_by_.Clear();
  2592. cached_has_bits = _impl_._has_bits_[0];
  2593. if (cached_has_bits & 0x0000001fu) {
  2594. if (cached_has_bits & 0x00000001u) {
  2595. ABSL_DCHECK(_impl_.select_ != nullptr);
  2596. _impl_.select_->Clear();
  2597. }
  2598. if (cached_has_bits & 0x00000002u) {
  2599. ABSL_DCHECK(_impl_.where_ != nullptr);
  2600. _impl_.where_->Clear();
  2601. }
  2602. if (cached_has_bits & 0x00000004u) {
  2603. ABSL_DCHECK(_impl_.limit_ != nullptr);
  2604. _impl_.limit_->Clear();
  2605. }
  2606. if (cached_has_bits & 0x00000008u) {
  2607. ABSL_DCHECK(_impl_.start_at_ != nullptr);
  2608. _impl_.start_at_->Clear();
  2609. }
  2610. if (cached_has_bits & 0x00000010u) {
  2611. ABSL_DCHECK(_impl_.end_at_ != nullptr);
  2612. _impl_.end_at_->Clear();
  2613. }
  2614. }
  2615. _impl_.offset_ = 0;
  2616. _impl_._has_bits_.Clear();
  2617. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2618. }
  2619. const char* StructuredQuery::_InternalParse(
  2620. const char* ptr, ::_pbi::ParseContext* ctx) {
  2621. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2622. return ptr;
  2623. }
  2624. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2625. const ::_pbi::TcParseTable<3, 8, 7, 0, 2> StructuredQuery::_table_ = {
  2626. {
  2627. PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_._has_bits_),
  2628. 0, // no _extensions_
  2629. 8, 56, // max_field_number, fast_idx_mask
  2630. offsetof(decltype(_table_), field_lookup_table),
  2631. 4294967040, // skipmap
  2632. offsetof(decltype(_table_), field_entries),
  2633. 8, // num_field_entries
  2634. 7, // num_aux_entries
  2635. offsetof(decltype(_table_), aux_entries),
  2636. &_StructuredQuery_default_instance_._instance,
  2637. ::_pbi::TcParser::GenericFallback, // fallback
  2638. }, {{
  2639. // .google.firestore.v1.Cursor end_at = 8;
  2640. {::_pbi::TcParser::FastMtS1,
  2641. {66, 4, 6, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.end_at_)}},
  2642. // .google.firestore.v1.StructuredQuery.Projection select = 1;
  2643. {::_pbi::TcParser::FastMtS1,
  2644. {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.select_)}},
  2645. // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
  2646. {::_pbi::TcParser::FastMtR1,
  2647. {18, 63, 1, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.from_)}},
  2648. // .google.firestore.v1.StructuredQuery.Filter where = 3;
  2649. {::_pbi::TcParser::FastMtS1,
  2650. {26, 1, 2, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.where_)}},
  2651. // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
  2652. {::_pbi::TcParser::FastMtR1,
  2653. {34, 63, 3, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.order_by_)}},
  2654. // .google.protobuf.Int32Value limit = 5;
  2655. {::_pbi::TcParser::FastMtS1,
  2656. {42, 2, 4, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.limit_)}},
  2657. // int32 offset = 6;
  2658. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery, _impl_.offset_), 63>(),
  2659. {48, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.offset_)}},
  2660. // .google.firestore.v1.Cursor start_at = 7;
  2661. {::_pbi::TcParser::FastMtS1,
  2662. {58, 3, 5, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.start_at_)}},
  2663. }}, {{
  2664. 65535, 65535
  2665. }}, {{
  2666. // .google.firestore.v1.StructuredQuery.Projection select = 1;
  2667. {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.select_), _Internal::kHasBitsOffset + 0, 0,
  2668. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2669. // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
  2670. {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.from_), -1, 1,
  2671. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  2672. // .google.firestore.v1.StructuredQuery.Filter where = 3;
  2673. {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.where_), _Internal::kHasBitsOffset + 1, 2,
  2674. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2675. // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
  2676. {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.order_by_), -1, 3,
  2677. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  2678. // .google.protobuf.Int32Value limit = 5;
  2679. {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.limit_), _Internal::kHasBitsOffset + 2, 4,
  2680. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2681. // int32 offset = 6;
  2682. {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.offset_), -1, 0,
  2683. (0 | ::_fl::kFcSingular | ::_fl::kInt32)},
  2684. // .google.firestore.v1.Cursor start_at = 7;
  2685. {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.start_at_), _Internal::kHasBitsOffset + 3, 5,
  2686. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2687. // .google.firestore.v1.Cursor end_at = 8;
  2688. {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.end_at_), _Internal::kHasBitsOffset + 4, 6,
  2689. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2690. }}, {{
  2691. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_Projection>()},
  2692. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_CollectionSelector>()},
  2693. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_Filter>()},
  2694. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_Order>()},
  2695. {::_pbi::TcParser::GetTable<::google::protobuf::Int32Value>()},
  2696. {::_pbi::TcParser::GetTable<::google::firestore::v1::Cursor>()},
  2697. {::_pbi::TcParser::GetTable<::google::firestore::v1::Cursor>()},
  2698. }}, {{
  2699. }},
  2700. };
  2701. ::uint8_t* StructuredQuery::_InternalSerialize(
  2702. ::uint8_t* target,
  2703. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2704. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery)
  2705. ::uint32_t cached_has_bits = 0;
  2706. (void)cached_has_bits;
  2707. cached_has_bits = _impl_._has_bits_[0];
  2708. // .google.firestore.v1.StructuredQuery.Projection select = 1;
  2709. if (cached_has_bits & 0x00000001u) {
  2710. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2711. 1, _Internal::select(this),
  2712. _Internal::select(this).GetCachedSize(), target, stream);
  2713. }
  2714. // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
  2715. for (unsigned i = 0,
  2716. n = static_cast<unsigned>(this->_internal_from_size()); i < n; i++) {
  2717. const auto& repfield = this->_internal_from().Get(i);
  2718. target = ::google::protobuf::internal::WireFormatLite::
  2719. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  2720. }
  2721. // .google.firestore.v1.StructuredQuery.Filter where = 3;
  2722. if (cached_has_bits & 0x00000002u) {
  2723. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2724. 3, _Internal::where(this),
  2725. _Internal::where(this).GetCachedSize(), target, stream);
  2726. }
  2727. // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
  2728. for (unsigned i = 0,
  2729. n = static_cast<unsigned>(this->_internal_order_by_size()); i < n; i++) {
  2730. const auto& repfield = this->_internal_order_by().Get(i);
  2731. target = ::google::protobuf::internal::WireFormatLite::
  2732. InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
  2733. }
  2734. // .google.protobuf.Int32Value limit = 5;
  2735. if (cached_has_bits & 0x00000004u) {
  2736. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2737. 5, _Internal::limit(this),
  2738. _Internal::limit(this).GetCachedSize(), target, stream);
  2739. }
  2740. // int32 offset = 6;
  2741. if (this->_internal_offset() != 0) {
  2742. target = ::google::protobuf::internal::WireFormatLite::
  2743. WriteInt32ToArrayWithField<6>(
  2744. stream, this->_internal_offset(), target);
  2745. }
  2746. // .google.firestore.v1.Cursor start_at = 7;
  2747. if (cached_has_bits & 0x00000008u) {
  2748. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2749. 7, _Internal::start_at(this),
  2750. _Internal::start_at(this).GetCachedSize(), target, stream);
  2751. }
  2752. // .google.firestore.v1.Cursor end_at = 8;
  2753. if (cached_has_bits & 0x00000010u) {
  2754. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2755. 8, _Internal::end_at(this),
  2756. _Internal::end_at(this).GetCachedSize(), target, stream);
  2757. }
  2758. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2759. target =
  2760. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2761. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2762. }
  2763. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery)
  2764. return target;
  2765. }
  2766. ::size_t StructuredQuery::ByteSizeLong() const {
  2767. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery)
  2768. ::size_t total_size = 0;
  2769. ::uint32_t cached_has_bits = 0;
  2770. // Prevent compiler warnings about cached_has_bits being unused
  2771. (void) cached_has_bits;
  2772. // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
  2773. total_size += 1UL * this->_internal_from_size();
  2774. for (const auto& msg : this->_internal_from()) {
  2775. total_size +=
  2776. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  2777. }
  2778. // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
  2779. total_size += 1UL * this->_internal_order_by_size();
  2780. for (const auto& msg : this->_internal_order_by()) {
  2781. total_size +=
  2782. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  2783. }
  2784. cached_has_bits = _impl_._has_bits_[0];
  2785. if (cached_has_bits & 0x0000001fu) {
  2786. // .google.firestore.v1.StructuredQuery.Projection select = 1;
  2787. if (cached_has_bits & 0x00000001u) {
  2788. total_size +=
  2789. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.select_);
  2790. }
  2791. // .google.firestore.v1.StructuredQuery.Filter where = 3;
  2792. if (cached_has_bits & 0x00000002u) {
  2793. total_size +=
  2794. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.where_);
  2795. }
  2796. // .google.protobuf.Int32Value limit = 5;
  2797. if (cached_has_bits & 0x00000004u) {
  2798. total_size +=
  2799. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.limit_);
  2800. }
  2801. // .google.firestore.v1.Cursor start_at = 7;
  2802. if (cached_has_bits & 0x00000008u) {
  2803. total_size +=
  2804. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.start_at_);
  2805. }
  2806. // .google.firestore.v1.Cursor end_at = 8;
  2807. if (cached_has_bits & 0x00000010u) {
  2808. total_size +=
  2809. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.end_at_);
  2810. }
  2811. }
  2812. // int32 offset = 6;
  2813. if (this->_internal_offset() != 0) {
  2814. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  2815. this->_internal_offset());
  2816. }
  2817. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2818. }
  2819. const ::google::protobuf::Message::ClassData StructuredQuery::_class_data_ = {
  2820. StructuredQuery::MergeImpl,
  2821. nullptr, // OnDemandRegisterArenaDtor
  2822. };
  2823. const ::google::protobuf::Message::ClassData* StructuredQuery::GetClassData() const {
  2824. return &_class_data_;
  2825. }
  2826. void StructuredQuery::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2827. auto* const _this = static_cast<StructuredQuery*>(&to_msg);
  2828. auto& from = static_cast<const StructuredQuery&>(from_msg);
  2829. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery)
  2830. ABSL_DCHECK_NE(&from, _this);
  2831. ::uint32_t cached_has_bits = 0;
  2832. (void) cached_has_bits;
  2833. _this->_internal_mutable_from()->MergeFrom(
  2834. from._internal_from());
  2835. _this->_internal_mutable_order_by()->MergeFrom(
  2836. from._internal_order_by());
  2837. cached_has_bits = from._impl_._has_bits_[0];
  2838. if (cached_has_bits & 0x0000001fu) {
  2839. if (cached_has_bits & 0x00000001u) {
  2840. _this->_internal_mutable_select()->::google::firestore::v1::StructuredQuery_Projection::MergeFrom(
  2841. from._internal_select());
  2842. }
  2843. if (cached_has_bits & 0x00000002u) {
  2844. _this->_internal_mutable_where()->::google::firestore::v1::StructuredQuery_Filter::MergeFrom(
  2845. from._internal_where());
  2846. }
  2847. if (cached_has_bits & 0x00000004u) {
  2848. _this->_internal_mutable_limit()->::google::protobuf::Int32Value::MergeFrom(
  2849. from._internal_limit());
  2850. }
  2851. if (cached_has_bits & 0x00000008u) {
  2852. _this->_internal_mutable_start_at()->::google::firestore::v1::Cursor::MergeFrom(
  2853. from._internal_start_at());
  2854. }
  2855. if (cached_has_bits & 0x00000010u) {
  2856. _this->_internal_mutable_end_at()->::google::firestore::v1::Cursor::MergeFrom(
  2857. from._internal_end_at());
  2858. }
  2859. }
  2860. if (from._internal_offset() != 0) {
  2861. _this->_internal_set_offset(from._internal_offset());
  2862. }
  2863. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2864. }
  2865. void StructuredQuery::CopyFrom(const StructuredQuery& from) {
  2866. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery)
  2867. if (&from == this) return;
  2868. Clear();
  2869. MergeFrom(from);
  2870. }
  2871. PROTOBUF_NOINLINE bool StructuredQuery::IsInitialized() const {
  2872. return true;
  2873. }
  2874. ::_pbi::CachedSize* StructuredQuery::AccessCachedSize() const {
  2875. return &_impl_._cached_size_;
  2876. }
  2877. void StructuredQuery::InternalSwap(StructuredQuery* PROTOBUF_RESTRICT other) {
  2878. using std::swap;
  2879. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2880. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  2881. _impl_.from_.InternalSwap(&other->_impl_.from_);
  2882. _impl_.order_by_.InternalSwap(&other->_impl_.order_by_);
  2883. ::google::protobuf::internal::memswap<
  2884. PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.offset_)
  2885. + sizeof(StructuredQuery::_impl_.offset_)
  2886. - PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.select_)>(
  2887. reinterpret_cast<char*>(&_impl_.select_),
  2888. reinterpret_cast<char*>(&other->_impl_.select_));
  2889. }
  2890. ::google::protobuf::Metadata StructuredQuery::GetMetadata() const {
  2891. return ::_pbi::AssignDescriptors(
  2892. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  2893. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[8]);
  2894. }
  2895. // ===================================================================
  2896. class StructuredAggregationQuery_Aggregation_Count::_Internal {
  2897. public:
  2898. using HasBits = decltype(std::declval<StructuredAggregationQuery_Aggregation_Count>()._impl_._has_bits_);
  2899. static constexpr ::int32_t kHasBitsOffset =
  2900. 8 * PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Count, _impl_._has_bits_);
  2901. static const ::google::protobuf::Int64Value& up_to(const StructuredAggregationQuery_Aggregation_Count* msg);
  2902. static void set_has_up_to(HasBits* has_bits) {
  2903. (*has_bits)[0] |= 1u;
  2904. }
  2905. };
  2906. const ::google::protobuf::Int64Value& StructuredAggregationQuery_Aggregation_Count::_Internal::up_to(const StructuredAggregationQuery_Aggregation_Count* msg) {
  2907. return *msg->_impl_.up_to_;
  2908. }
  2909. void StructuredAggregationQuery_Aggregation_Count::clear_up_to() {
  2910. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2911. if (_impl_.up_to_ != nullptr) _impl_.up_to_->Clear();
  2912. _impl_._has_bits_[0] &= ~0x00000001u;
  2913. }
  2914. StructuredAggregationQuery_Aggregation_Count::StructuredAggregationQuery_Aggregation_Count(::google::protobuf::Arena* arena)
  2915. : ::google::protobuf::Message(arena) {
  2916. SharedCtor(arena);
  2917. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  2918. }
  2919. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Count::Impl_::Impl_(
  2920. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2921. const Impl_& from)
  2922. : _has_bits_{from._has_bits_},
  2923. _cached_size_{0} {}
  2924. StructuredAggregationQuery_Aggregation_Count::StructuredAggregationQuery_Aggregation_Count(
  2925. ::google::protobuf::Arena* arena,
  2926. const StructuredAggregationQuery_Aggregation_Count& from)
  2927. : ::google::protobuf::Message(arena) {
  2928. StructuredAggregationQuery_Aggregation_Count* const _this = this;
  2929. (void)_this;
  2930. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2931. from._internal_metadata_);
  2932. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2933. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  2934. _impl_.up_to_ = (cached_has_bits & 0x00000001u)
  2935. ? CreateMaybeMessage<::google::protobuf::Int64Value>(arena, *from._impl_.up_to_)
  2936. : nullptr;
  2937. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  2938. }
  2939. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Count::Impl_::Impl_(
  2940. ::google::protobuf::internal::InternalVisibility visibility,
  2941. ::google::protobuf::Arena* arena)
  2942. : _cached_size_{0} {}
  2943. inline void StructuredAggregationQuery_Aggregation_Count::SharedCtor(::_pb::Arena* arena) {
  2944. new (&_impl_) Impl_(internal_visibility(), arena);
  2945. _impl_.up_to_ = {};
  2946. }
  2947. StructuredAggregationQuery_Aggregation_Count::~StructuredAggregationQuery_Aggregation_Count() {
  2948. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  2949. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2950. SharedDtor();
  2951. }
  2952. inline void StructuredAggregationQuery_Aggregation_Count::SharedDtor() {
  2953. ABSL_DCHECK(GetArena() == nullptr);
  2954. delete _impl_.up_to_;
  2955. _impl_.~Impl_();
  2956. }
  2957. PROTOBUF_NOINLINE void StructuredAggregationQuery_Aggregation_Count::Clear() {
  2958. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  2959. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2960. ::uint32_t cached_has_bits = 0;
  2961. // Prevent compiler warnings about cached_has_bits being unused
  2962. (void) cached_has_bits;
  2963. cached_has_bits = _impl_._has_bits_[0];
  2964. if (cached_has_bits & 0x00000001u) {
  2965. ABSL_DCHECK(_impl_.up_to_ != nullptr);
  2966. _impl_.up_to_->Clear();
  2967. }
  2968. _impl_._has_bits_.Clear();
  2969. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2970. }
  2971. const char* StructuredAggregationQuery_Aggregation_Count::_InternalParse(
  2972. const char* ptr, ::_pbi::ParseContext* ctx) {
  2973. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2974. return ptr;
  2975. }
  2976. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2977. const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StructuredAggregationQuery_Aggregation_Count::_table_ = {
  2978. {
  2979. PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Count, _impl_._has_bits_),
  2980. 0, // no _extensions_
  2981. 1, 0, // max_field_number, fast_idx_mask
  2982. offsetof(decltype(_table_), field_lookup_table),
  2983. 4294967294, // skipmap
  2984. offsetof(decltype(_table_), field_entries),
  2985. 1, // num_field_entries
  2986. 1, // num_aux_entries
  2987. offsetof(decltype(_table_), aux_entries),
  2988. &_StructuredAggregationQuery_Aggregation_Count_default_instance_._instance,
  2989. ::_pbi::TcParser::GenericFallback, // fallback
  2990. }, {{
  2991. // .google.protobuf.Int64Value up_to = 1;
  2992. {::_pbi::TcParser::FastMtS1,
  2993. {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Count, _impl_.up_to_)}},
  2994. }}, {{
  2995. 65535, 65535
  2996. }}, {{
  2997. // .google.protobuf.Int64Value up_to = 1;
  2998. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Count, _impl_.up_to_), _Internal::kHasBitsOffset + 0, 0,
  2999. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  3000. }}, {{
  3001. {::_pbi::TcParser::GetTable<::google::protobuf::Int64Value>()},
  3002. }}, {{
  3003. }},
  3004. };
  3005. ::uint8_t* StructuredAggregationQuery_Aggregation_Count::_InternalSerialize(
  3006. ::uint8_t* target,
  3007. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  3008. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  3009. ::uint32_t cached_has_bits = 0;
  3010. (void)cached_has_bits;
  3011. cached_has_bits = _impl_._has_bits_[0];
  3012. // .google.protobuf.Int64Value up_to = 1;
  3013. if (cached_has_bits & 0x00000001u) {
  3014. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3015. 1, _Internal::up_to(this),
  3016. _Internal::up_to(this).GetCachedSize(), target, stream);
  3017. }
  3018. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3019. target =
  3020. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3021. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  3022. }
  3023. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  3024. return target;
  3025. }
  3026. ::size_t StructuredAggregationQuery_Aggregation_Count::ByteSizeLong() const {
  3027. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  3028. ::size_t total_size = 0;
  3029. ::uint32_t cached_has_bits = 0;
  3030. // Prevent compiler warnings about cached_has_bits being unused
  3031. (void) cached_has_bits;
  3032. // .google.protobuf.Int64Value up_to = 1;
  3033. cached_has_bits = _impl_._has_bits_[0];
  3034. if (cached_has_bits & 0x00000001u) {
  3035. total_size +=
  3036. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.up_to_);
  3037. }
  3038. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3039. }
  3040. const ::google::protobuf::Message::ClassData StructuredAggregationQuery_Aggregation_Count::_class_data_ = {
  3041. StructuredAggregationQuery_Aggregation_Count::MergeImpl,
  3042. nullptr, // OnDemandRegisterArenaDtor
  3043. };
  3044. const ::google::protobuf::Message::ClassData* StructuredAggregationQuery_Aggregation_Count::GetClassData() const {
  3045. return &_class_data_;
  3046. }
  3047. void StructuredAggregationQuery_Aggregation_Count::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  3048. auto* const _this = static_cast<StructuredAggregationQuery_Aggregation_Count*>(&to_msg);
  3049. auto& from = static_cast<const StructuredAggregationQuery_Aggregation_Count&>(from_msg);
  3050. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  3051. ABSL_DCHECK_NE(&from, _this);
  3052. ::uint32_t cached_has_bits = 0;
  3053. (void) cached_has_bits;
  3054. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  3055. _this->_internal_mutable_up_to()->::google::protobuf::Int64Value::MergeFrom(
  3056. from._internal_up_to());
  3057. }
  3058. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  3059. }
  3060. void StructuredAggregationQuery_Aggregation_Count::CopyFrom(const StructuredAggregationQuery_Aggregation_Count& from) {
  3061. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  3062. if (&from == this) return;
  3063. Clear();
  3064. MergeFrom(from);
  3065. }
  3066. PROTOBUF_NOINLINE bool StructuredAggregationQuery_Aggregation_Count::IsInitialized() const {
  3067. return true;
  3068. }
  3069. ::_pbi::CachedSize* StructuredAggregationQuery_Aggregation_Count::AccessCachedSize() const {
  3070. return &_impl_._cached_size_;
  3071. }
  3072. void StructuredAggregationQuery_Aggregation_Count::InternalSwap(StructuredAggregationQuery_Aggregation_Count* PROTOBUF_RESTRICT other) {
  3073. using std::swap;
  3074. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3075. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  3076. swap(_impl_.up_to_, other->_impl_.up_to_);
  3077. }
  3078. ::google::protobuf::Metadata StructuredAggregationQuery_Aggregation_Count::GetMetadata() const {
  3079. return ::_pbi::AssignDescriptors(
  3080. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  3081. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[9]);
  3082. }
  3083. // ===================================================================
  3084. class StructuredAggregationQuery_Aggregation_Sum::_Internal {
  3085. public:
  3086. using HasBits = decltype(std::declval<StructuredAggregationQuery_Aggregation_Sum>()._impl_._has_bits_);
  3087. static constexpr ::int32_t kHasBitsOffset =
  3088. 8 * PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Sum, _impl_._has_bits_);
  3089. static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredAggregationQuery_Aggregation_Sum* msg);
  3090. static void set_has_field(HasBits* has_bits) {
  3091. (*has_bits)[0] |= 1u;
  3092. }
  3093. };
  3094. const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredAggregationQuery_Aggregation_Sum::_Internal::field(const StructuredAggregationQuery_Aggregation_Sum* msg) {
  3095. return *msg->_impl_.field_;
  3096. }
  3097. StructuredAggregationQuery_Aggregation_Sum::StructuredAggregationQuery_Aggregation_Sum(::google::protobuf::Arena* arena)
  3098. : ::google::protobuf::Message(arena) {
  3099. SharedCtor(arena);
  3100. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3101. }
  3102. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Sum::Impl_::Impl_(
  3103. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  3104. const Impl_& from)
  3105. : _has_bits_{from._has_bits_},
  3106. _cached_size_{0} {}
  3107. StructuredAggregationQuery_Aggregation_Sum::StructuredAggregationQuery_Aggregation_Sum(
  3108. ::google::protobuf::Arena* arena,
  3109. const StructuredAggregationQuery_Aggregation_Sum& from)
  3110. : ::google::protobuf::Message(arena) {
  3111. StructuredAggregationQuery_Aggregation_Sum* const _this = this;
  3112. (void)_this;
  3113. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  3114. from._internal_metadata_);
  3115. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  3116. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  3117. _impl_.field_ = (cached_has_bits & 0x00000001u)
  3118. ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.field_)
  3119. : nullptr;
  3120. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3121. }
  3122. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Sum::Impl_::Impl_(
  3123. ::google::protobuf::internal::InternalVisibility visibility,
  3124. ::google::protobuf::Arena* arena)
  3125. : _cached_size_{0} {}
  3126. inline void StructuredAggregationQuery_Aggregation_Sum::SharedCtor(::_pb::Arena* arena) {
  3127. new (&_impl_) Impl_(internal_visibility(), arena);
  3128. _impl_.field_ = {};
  3129. }
  3130. StructuredAggregationQuery_Aggregation_Sum::~StructuredAggregationQuery_Aggregation_Sum() {
  3131. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3132. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  3133. SharedDtor();
  3134. }
  3135. inline void StructuredAggregationQuery_Aggregation_Sum::SharedDtor() {
  3136. ABSL_DCHECK(GetArena() == nullptr);
  3137. delete _impl_.field_;
  3138. _impl_.~Impl_();
  3139. }
  3140. PROTOBUF_NOINLINE void StructuredAggregationQuery_Aggregation_Sum::Clear() {
  3141. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3142. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3143. ::uint32_t cached_has_bits = 0;
  3144. // Prevent compiler warnings about cached_has_bits being unused
  3145. (void) cached_has_bits;
  3146. cached_has_bits = _impl_._has_bits_[0];
  3147. if (cached_has_bits & 0x00000001u) {
  3148. ABSL_DCHECK(_impl_.field_ != nullptr);
  3149. _impl_.field_->Clear();
  3150. }
  3151. _impl_._has_bits_.Clear();
  3152. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  3153. }
  3154. const char* StructuredAggregationQuery_Aggregation_Sum::_InternalParse(
  3155. const char* ptr, ::_pbi::ParseContext* ctx) {
  3156. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  3157. return ptr;
  3158. }
  3159. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  3160. const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StructuredAggregationQuery_Aggregation_Sum::_table_ = {
  3161. {
  3162. PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Sum, _impl_._has_bits_),
  3163. 0, // no _extensions_
  3164. 1, 0, // max_field_number, fast_idx_mask
  3165. offsetof(decltype(_table_), field_lookup_table),
  3166. 4294967294, // skipmap
  3167. offsetof(decltype(_table_), field_entries),
  3168. 1, // num_field_entries
  3169. 1, // num_aux_entries
  3170. offsetof(decltype(_table_), aux_entries),
  3171. &_StructuredAggregationQuery_Aggregation_Sum_default_instance_._instance,
  3172. ::_pbi::TcParser::GenericFallback, // fallback
  3173. }, {{
  3174. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3175. {::_pbi::TcParser::FastMtS1,
  3176. {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Sum, _impl_.field_)}},
  3177. }}, {{
  3178. 65535, 65535
  3179. }}, {{
  3180. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3181. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Sum, _impl_.field_), _Internal::kHasBitsOffset + 0, 0,
  3182. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  3183. }}, {{
  3184. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
  3185. }}, {{
  3186. }},
  3187. };
  3188. ::uint8_t* StructuredAggregationQuery_Aggregation_Sum::_InternalSerialize(
  3189. ::uint8_t* target,
  3190. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  3191. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3192. ::uint32_t cached_has_bits = 0;
  3193. (void)cached_has_bits;
  3194. cached_has_bits = _impl_._has_bits_[0];
  3195. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3196. if (cached_has_bits & 0x00000001u) {
  3197. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3198. 1, _Internal::field(this),
  3199. _Internal::field(this).GetCachedSize(), target, stream);
  3200. }
  3201. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3202. target =
  3203. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3204. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  3205. }
  3206. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3207. return target;
  3208. }
  3209. ::size_t StructuredAggregationQuery_Aggregation_Sum::ByteSizeLong() const {
  3210. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3211. ::size_t total_size = 0;
  3212. ::uint32_t cached_has_bits = 0;
  3213. // Prevent compiler warnings about cached_has_bits being unused
  3214. (void) cached_has_bits;
  3215. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3216. cached_has_bits = _impl_._has_bits_[0];
  3217. if (cached_has_bits & 0x00000001u) {
  3218. total_size +=
  3219. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_);
  3220. }
  3221. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3222. }
  3223. const ::google::protobuf::Message::ClassData StructuredAggregationQuery_Aggregation_Sum::_class_data_ = {
  3224. StructuredAggregationQuery_Aggregation_Sum::MergeImpl,
  3225. nullptr, // OnDemandRegisterArenaDtor
  3226. };
  3227. const ::google::protobuf::Message::ClassData* StructuredAggregationQuery_Aggregation_Sum::GetClassData() const {
  3228. return &_class_data_;
  3229. }
  3230. void StructuredAggregationQuery_Aggregation_Sum::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  3231. auto* const _this = static_cast<StructuredAggregationQuery_Aggregation_Sum*>(&to_msg);
  3232. auto& from = static_cast<const StructuredAggregationQuery_Aggregation_Sum&>(from_msg);
  3233. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3234. ABSL_DCHECK_NE(&from, _this);
  3235. ::uint32_t cached_has_bits = 0;
  3236. (void) cached_has_bits;
  3237. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  3238. _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
  3239. from._internal_field());
  3240. }
  3241. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  3242. }
  3243. void StructuredAggregationQuery_Aggregation_Sum::CopyFrom(const StructuredAggregationQuery_Aggregation_Sum& from) {
  3244. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  3245. if (&from == this) return;
  3246. Clear();
  3247. MergeFrom(from);
  3248. }
  3249. PROTOBUF_NOINLINE bool StructuredAggregationQuery_Aggregation_Sum::IsInitialized() const {
  3250. return true;
  3251. }
  3252. ::_pbi::CachedSize* StructuredAggregationQuery_Aggregation_Sum::AccessCachedSize() const {
  3253. return &_impl_._cached_size_;
  3254. }
  3255. void StructuredAggregationQuery_Aggregation_Sum::InternalSwap(StructuredAggregationQuery_Aggregation_Sum* PROTOBUF_RESTRICT other) {
  3256. using std::swap;
  3257. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3258. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  3259. swap(_impl_.field_, other->_impl_.field_);
  3260. }
  3261. ::google::protobuf::Metadata StructuredAggregationQuery_Aggregation_Sum::GetMetadata() const {
  3262. return ::_pbi::AssignDescriptors(
  3263. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  3264. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[10]);
  3265. }
  3266. // ===================================================================
  3267. class StructuredAggregationQuery_Aggregation_Avg::_Internal {
  3268. public:
  3269. using HasBits = decltype(std::declval<StructuredAggregationQuery_Aggregation_Avg>()._impl_._has_bits_);
  3270. static constexpr ::int32_t kHasBitsOffset =
  3271. 8 * PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Avg, _impl_._has_bits_);
  3272. static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredAggregationQuery_Aggregation_Avg* msg);
  3273. static void set_has_field(HasBits* has_bits) {
  3274. (*has_bits)[0] |= 1u;
  3275. }
  3276. };
  3277. const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredAggregationQuery_Aggregation_Avg::_Internal::field(const StructuredAggregationQuery_Aggregation_Avg* msg) {
  3278. return *msg->_impl_.field_;
  3279. }
  3280. StructuredAggregationQuery_Aggregation_Avg::StructuredAggregationQuery_Aggregation_Avg(::google::protobuf::Arena* arena)
  3281. : ::google::protobuf::Message(arena) {
  3282. SharedCtor(arena);
  3283. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3284. }
  3285. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Avg::Impl_::Impl_(
  3286. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  3287. const Impl_& from)
  3288. : _has_bits_{from._has_bits_},
  3289. _cached_size_{0} {}
  3290. StructuredAggregationQuery_Aggregation_Avg::StructuredAggregationQuery_Aggregation_Avg(
  3291. ::google::protobuf::Arena* arena,
  3292. const StructuredAggregationQuery_Aggregation_Avg& from)
  3293. : ::google::protobuf::Message(arena) {
  3294. StructuredAggregationQuery_Aggregation_Avg* const _this = this;
  3295. (void)_this;
  3296. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  3297. from._internal_metadata_);
  3298. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  3299. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  3300. _impl_.field_ = (cached_has_bits & 0x00000001u)
  3301. ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.field_)
  3302. : nullptr;
  3303. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3304. }
  3305. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Avg::Impl_::Impl_(
  3306. ::google::protobuf::internal::InternalVisibility visibility,
  3307. ::google::protobuf::Arena* arena)
  3308. : _cached_size_{0} {}
  3309. inline void StructuredAggregationQuery_Aggregation_Avg::SharedCtor(::_pb::Arena* arena) {
  3310. new (&_impl_) Impl_(internal_visibility(), arena);
  3311. _impl_.field_ = {};
  3312. }
  3313. StructuredAggregationQuery_Aggregation_Avg::~StructuredAggregationQuery_Aggregation_Avg() {
  3314. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3315. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  3316. SharedDtor();
  3317. }
  3318. inline void StructuredAggregationQuery_Aggregation_Avg::SharedDtor() {
  3319. ABSL_DCHECK(GetArena() == nullptr);
  3320. delete _impl_.field_;
  3321. _impl_.~Impl_();
  3322. }
  3323. PROTOBUF_NOINLINE void StructuredAggregationQuery_Aggregation_Avg::Clear() {
  3324. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3325. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3326. ::uint32_t cached_has_bits = 0;
  3327. // Prevent compiler warnings about cached_has_bits being unused
  3328. (void) cached_has_bits;
  3329. cached_has_bits = _impl_._has_bits_[0];
  3330. if (cached_has_bits & 0x00000001u) {
  3331. ABSL_DCHECK(_impl_.field_ != nullptr);
  3332. _impl_.field_->Clear();
  3333. }
  3334. _impl_._has_bits_.Clear();
  3335. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  3336. }
  3337. const char* StructuredAggregationQuery_Aggregation_Avg::_InternalParse(
  3338. const char* ptr, ::_pbi::ParseContext* ctx) {
  3339. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  3340. return ptr;
  3341. }
  3342. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  3343. const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StructuredAggregationQuery_Aggregation_Avg::_table_ = {
  3344. {
  3345. PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Avg, _impl_._has_bits_),
  3346. 0, // no _extensions_
  3347. 1, 0, // max_field_number, fast_idx_mask
  3348. offsetof(decltype(_table_), field_lookup_table),
  3349. 4294967294, // skipmap
  3350. offsetof(decltype(_table_), field_entries),
  3351. 1, // num_field_entries
  3352. 1, // num_aux_entries
  3353. offsetof(decltype(_table_), aux_entries),
  3354. &_StructuredAggregationQuery_Aggregation_Avg_default_instance_._instance,
  3355. ::_pbi::TcParser::GenericFallback, // fallback
  3356. }, {{
  3357. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3358. {::_pbi::TcParser::FastMtS1,
  3359. {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Avg, _impl_.field_)}},
  3360. }}, {{
  3361. 65535, 65535
  3362. }}, {{
  3363. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3364. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Avg, _impl_.field_), _Internal::kHasBitsOffset + 0, 0,
  3365. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  3366. }}, {{
  3367. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
  3368. }}, {{
  3369. }},
  3370. };
  3371. ::uint8_t* StructuredAggregationQuery_Aggregation_Avg::_InternalSerialize(
  3372. ::uint8_t* target,
  3373. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  3374. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3375. ::uint32_t cached_has_bits = 0;
  3376. (void)cached_has_bits;
  3377. cached_has_bits = _impl_._has_bits_[0];
  3378. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3379. if (cached_has_bits & 0x00000001u) {
  3380. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3381. 1, _Internal::field(this),
  3382. _Internal::field(this).GetCachedSize(), target, stream);
  3383. }
  3384. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3385. target =
  3386. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3387. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  3388. }
  3389. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3390. return target;
  3391. }
  3392. ::size_t StructuredAggregationQuery_Aggregation_Avg::ByteSizeLong() const {
  3393. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3394. ::size_t total_size = 0;
  3395. ::uint32_t cached_has_bits = 0;
  3396. // Prevent compiler warnings about cached_has_bits being unused
  3397. (void) cached_has_bits;
  3398. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3399. cached_has_bits = _impl_._has_bits_[0];
  3400. if (cached_has_bits & 0x00000001u) {
  3401. total_size +=
  3402. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_);
  3403. }
  3404. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3405. }
  3406. const ::google::protobuf::Message::ClassData StructuredAggregationQuery_Aggregation_Avg::_class_data_ = {
  3407. StructuredAggregationQuery_Aggregation_Avg::MergeImpl,
  3408. nullptr, // OnDemandRegisterArenaDtor
  3409. };
  3410. const ::google::protobuf::Message::ClassData* StructuredAggregationQuery_Aggregation_Avg::GetClassData() const {
  3411. return &_class_data_;
  3412. }
  3413. void StructuredAggregationQuery_Aggregation_Avg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  3414. auto* const _this = static_cast<StructuredAggregationQuery_Aggregation_Avg*>(&to_msg);
  3415. auto& from = static_cast<const StructuredAggregationQuery_Aggregation_Avg&>(from_msg);
  3416. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3417. ABSL_DCHECK_NE(&from, _this);
  3418. ::uint32_t cached_has_bits = 0;
  3419. (void) cached_has_bits;
  3420. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  3421. _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
  3422. from._internal_field());
  3423. }
  3424. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  3425. }
  3426. void StructuredAggregationQuery_Aggregation_Avg::CopyFrom(const StructuredAggregationQuery_Aggregation_Avg& from) {
  3427. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  3428. if (&from == this) return;
  3429. Clear();
  3430. MergeFrom(from);
  3431. }
  3432. PROTOBUF_NOINLINE bool StructuredAggregationQuery_Aggregation_Avg::IsInitialized() const {
  3433. return true;
  3434. }
  3435. ::_pbi::CachedSize* StructuredAggregationQuery_Aggregation_Avg::AccessCachedSize() const {
  3436. return &_impl_._cached_size_;
  3437. }
  3438. void StructuredAggregationQuery_Aggregation_Avg::InternalSwap(StructuredAggregationQuery_Aggregation_Avg* PROTOBUF_RESTRICT other) {
  3439. using std::swap;
  3440. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3441. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  3442. swap(_impl_.field_, other->_impl_.field_);
  3443. }
  3444. ::google::protobuf::Metadata StructuredAggregationQuery_Aggregation_Avg::GetMetadata() const {
  3445. return ::_pbi::AssignDescriptors(
  3446. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  3447. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[11]);
  3448. }
  3449. // ===================================================================
  3450. class StructuredAggregationQuery_Aggregation::_Internal {
  3451. public:
  3452. static constexpr ::int32_t kOneofCaseOffset =
  3453. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _impl_._oneof_case_);
  3454. static const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count& count(const StructuredAggregationQuery_Aggregation* msg);
  3455. static const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum& sum(const StructuredAggregationQuery_Aggregation* msg);
  3456. static const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg& avg(const StructuredAggregationQuery_Aggregation* msg);
  3457. };
  3458. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count& StructuredAggregationQuery_Aggregation::_Internal::count(const StructuredAggregationQuery_Aggregation* msg) {
  3459. return *msg->_impl_.operator_.count_;
  3460. }
  3461. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum& StructuredAggregationQuery_Aggregation::_Internal::sum(const StructuredAggregationQuery_Aggregation* msg) {
  3462. return *msg->_impl_.operator_.sum_;
  3463. }
  3464. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg& StructuredAggregationQuery_Aggregation::_Internal::avg(const StructuredAggregationQuery_Aggregation* msg) {
  3465. return *msg->_impl_.operator_.avg_;
  3466. }
  3467. void StructuredAggregationQuery_Aggregation::set_allocated_count(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* count) {
  3468. ::google::protobuf::Arena* message_arena = GetArena();
  3469. clear_operator();
  3470. if (count) {
  3471. ::google::protobuf::Arena* submessage_arena = count->GetArena();
  3472. if (message_arena != submessage_arena) {
  3473. count = ::google::protobuf::internal::GetOwnedMessage(message_arena, count, submessage_arena);
  3474. }
  3475. set_has_count();
  3476. _impl_.operator_.count_ = count;
  3477. }
  3478. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.count)
  3479. }
  3480. void StructuredAggregationQuery_Aggregation::set_allocated_sum(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* sum) {
  3481. ::google::protobuf::Arena* message_arena = GetArena();
  3482. clear_operator();
  3483. if (sum) {
  3484. ::google::protobuf::Arena* submessage_arena = sum->GetArena();
  3485. if (message_arena != submessage_arena) {
  3486. sum = ::google::protobuf::internal::GetOwnedMessage(message_arena, sum, submessage_arena);
  3487. }
  3488. set_has_sum();
  3489. _impl_.operator_.sum_ = sum;
  3490. }
  3491. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.sum)
  3492. }
  3493. void StructuredAggregationQuery_Aggregation::set_allocated_avg(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* avg) {
  3494. ::google::protobuf::Arena* message_arena = GetArena();
  3495. clear_operator();
  3496. if (avg) {
  3497. ::google::protobuf::Arena* submessage_arena = avg->GetArena();
  3498. if (message_arena != submessage_arena) {
  3499. avg = ::google::protobuf::internal::GetOwnedMessage(message_arena, avg, submessage_arena);
  3500. }
  3501. set_has_avg();
  3502. _impl_.operator_.avg_ = avg;
  3503. }
  3504. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.avg)
  3505. }
  3506. StructuredAggregationQuery_Aggregation::StructuredAggregationQuery_Aggregation(::google::protobuf::Arena* arena)
  3507. : ::google::protobuf::Message(arena) {
  3508. SharedCtor(arena);
  3509. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3510. }
  3511. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation::Impl_::Impl_(
  3512. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  3513. const Impl_& from)
  3514. : alias_(arena, from.alias_),
  3515. operator_{},
  3516. _cached_size_{0},
  3517. _oneof_case_{from._oneof_case_[0]} {}
  3518. StructuredAggregationQuery_Aggregation::StructuredAggregationQuery_Aggregation(
  3519. ::google::protobuf::Arena* arena,
  3520. const StructuredAggregationQuery_Aggregation& from)
  3521. : ::google::protobuf::Message(arena) {
  3522. StructuredAggregationQuery_Aggregation* const _this = this;
  3523. (void)_this;
  3524. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  3525. from._internal_metadata_);
  3526. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  3527. switch (operator_case()) {
  3528. case OPERATOR_NOT_SET:
  3529. break;
  3530. case kCount:
  3531. _impl_.operator_.count_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count>(arena, *from._impl_.operator_.count_);
  3532. break;
  3533. case kSum:
  3534. _impl_.operator_.sum_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum>(arena, *from._impl_.operator_.sum_);
  3535. break;
  3536. case kAvg:
  3537. _impl_.operator_.avg_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg>(arena, *from._impl_.operator_.avg_);
  3538. break;
  3539. }
  3540. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3541. }
  3542. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation::Impl_::Impl_(
  3543. ::google::protobuf::internal::InternalVisibility visibility,
  3544. ::google::protobuf::Arena* arena)
  3545. : alias_(arena),
  3546. operator_{},
  3547. _cached_size_{0},
  3548. _oneof_case_{} {}
  3549. inline void StructuredAggregationQuery_Aggregation::SharedCtor(::_pb::Arena* arena) {
  3550. new (&_impl_) Impl_(internal_visibility(), arena);
  3551. }
  3552. StructuredAggregationQuery_Aggregation::~StructuredAggregationQuery_Aggregation() {
  3553. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3554. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  3555. SharedDtor();
  3556. }
  3557. inline void StructuredAggregationQuery_Aggregation::SharedDtor() {
  3558. ABSL_DCHECK(GetArena() == nullptr);
  3559. _impl_.alias_.Destroy();
  3560. if (has_operator()) {
  3561. clear_operator();
  3562. }
  3563. _impl_.~Impl_();
  3564. }
  3565. void StructuredAggregationQuery_Aggregation::clear_operator() {
  3566. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3567. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3568. switch (operator_case()) {
  3569. case kCount: {
  3570. if (GetArena() == nullptr) {
  3571. delete _impl_.operator_.count_;
  3572. }
  3573. break;
  3574. }
  3575. case kSum: {
  3576. if (GetArena() == nullptr) {
  3577. delete _impl_.operator_.sum_;
  3578. }
  3579. break;
  3580. }
  3581. case kAvg: {
  3582. if (GetArena() == nullptr) {
  3583. delete _impl_.operator_.avg_;
  3584. }
  3585. break;
  3586. }
  3587. case OPERATOR_NOT_SET: {
  3588. break;
  3589. }
  3590. }
  3591. _impl_._oneof_case_[0] = OPERATOR_NOT_SET;
  3592. }
  3593. PROTOBUF_NOINLINE void StructuredAggregationQuery_Aggregation::Clear() {
  3594. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3595. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3596. ::uint32_t cached_has_bits = 0;
  3597. // Prevent compiler warnings about cached_has_bits being unused
  3598. (void) cached_has_bits;
  3599. _impl_.alias_.ClearToEmpty();
  3600. clear_operator();
  3601. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  3602. }
  3603. const char* StructuredAggregationQuery_Aggregation::_InternalParse(
  3604. const char* ptr, ::_pbi::ParseContext* ctx) {
  3605. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  3606. return ptr;
  3607. }
  3608. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  3609. const ::_pbi::TcParseTable<0, 4, 3, 72, 2> StructuredAggregationQuery_Aggregation::_table_ = {
  3610. {
  3611. 0, // no _has_bits_
  3612. 0, // no _extensions_
  3613. 7, 0, // max_field_number, fast_idx_mask
  3614. offsetof(decltype(_table_), field_lookup_table),
  3615. 4294967224, // skipmap
  3616. offsetof(decltype(_table_), field_entries),
  3617. 4, // num_field_entries
  3618. 3, // num_aux_entries
  3619. offsetof(decltype(_table_), aux_entries),
  3620. &_StructuredAggregationQuery_Aggregation_default_instance_._instance,
  3621. ::_pbi::TcParser::GenericFallback, // fallback
  3622. }, {{
  3623. // string alias = 7;
  3624. {::_pbi::TcParser::FastUS1,
  3625. {58, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.alias_)}},
  3626. }}, {{
  3627. 65535, 65535
  3628. }}, {{
  3629. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1;
  3630. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.operator_.count_), _Internal::kOneofCaseOffset + 0, 0,
  3631. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  3632. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2;
  3633. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.operator_.sum_), _Internal::kOneofCaseOffset + 0, 1,
  3634. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  3635. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3;
  3636. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.operator_.avg_), _Internal::kOneofCaseOffset + 0, 2,
  3637. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  3638. // string alias = 7;
  3639. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.alias_), 0, 0,
  3640. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  3641. }}, {{
  3642. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count>()},
  3643. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum>()},
  3644. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg>()},
  3645. }}, {{
  3646. "\72\0\0\0\5\0\0\0"
  3647. "google.firestore.v1.StructuredAggregationQuery.Aggregation"
  3648. "alias"
  3649. }},
  3650. };
  3651. ::uint8_t* StructuredAggregationQuery_Aggregation::_InternalSerialize(
  3652. ::uint8_t* target,
  3653. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  3654. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3655. ::uint32_t cached_has_bits = 0;
  3656. (void)cached_has_bits;
  3657. switch (operator_case()) {
  3658. case kCount: {
  3659. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3660. 1, _Internal::count(this),
  3661. _Internal::count(this).GetCachedSize(), target, stream);
  3662. break;
  3663. }
  3664. case kSum: {
  3665. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3666. 2, _Internal::sum(this),
  3667. _Internal::sum(this).GetCachedSize(), target, stream);
  3668. break;
  3669. }
  3670. case kAvg: {
  3671. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3672. 3, _Internal::avg(this),
  3673. _Internal::avg(this).GetCachedSize(), target, stream);
  3674. break;
  3675. }
  3676. default:
  3677. break;
  3678. }
  3679. // string alias = 7;
  3680. if (!this->_internal_alias().empty()) {
  3681. const std::string& _s = this->_internal_alias();
  3682. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  3683. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.StructuredAggregationQuery.Aggregation.alias");
  3684. target = stream->WriteStringMaybeAliased(7, _s, target);
  3685. }
  3686. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3687. target =
  3688. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3689. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  3690. }
  3691. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3692. return target;
  3693. }
  3694. ::size_t StructuredAggregationQuery_Aggregation::ByteSizeLong() const {
  3695. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3696. ::size_t total_size = 0;
  3697. ::uint32_t cached_has_bits = 0;
  3698. // Prevent compiler warnings about cached_has_bits being unused
  3699. (void) cached_has_bits;
  3700. // string alias = 7;
  3701. if (!this->_internal_alias().empty()) {
  3702. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  3703. this->_internal_alias());
  3704. }
  3705. switch (operator_case()) {
  3706. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1;
  3707. case kCount: {
  3708. total_size +=
  3709. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operator_.count_);
  3710. break;
  3711. }
  3712. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2;
  3713. case kSum: {
  3714. total_size +=
  3715. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operator_.sum_);
  3716. break;
  3717. }
  3718. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3;
  3719. case kAvg: {
  3720. total_size +=
  3721. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operator_.avg_);
  3722. break;
  3723. }
  3724. case OPERATOR_NOT_SET: {
  3725. break;
  3726. }
  3727. }
  3728. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3729. }
  3730. const ::google::protobuf::Message::ClassData StructuredAggregationQuery_Aggregation::_class_data_ = {
  3731. StructuredAggregationQuery_Aggregation::MergeImpl,
  3732. nullptr, // OnDemandRegisterArenaDtor
  3733. };
  3734. const ::google::protobuf::Message::ClassData* StructuredAggregationQuery_Aggregation::GetClassData() const {
  3735. return &_class_data_;
  3736. }
  3737. void StructuredAggregationQuery_Aggregation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  3738. auto* const _this = static_cast<StructuredAggregationQuery_Aggregation*>(&to_msg);
  3739. auto& from = static_cast<const StructuredAggregationQuery_Aggregation&>(from_msg);
  3740. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3741. ABSL_DCHECK_NE(&from, _this);
  3742. ::uint32_t cached_has_bits = 0;
  3743. (void) cached_has_bits;
  3744. if (!from._internal_alias().empty()) {
  3745. _this->_internal_set_alias(from._internal_alias());
  3746. }
  3747. switch (from.operator_case()) {
  3748. case kCount: {
  3749. _this->_internal_mutable_count()->::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count::MergeFrom(
  3750. from._internal_count());
  3751. break;
  3752. }
  3753. case kSum: {
  3754. _this->_internal_mutable_sum()->::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum::MergeFrom(
  3755. from._internal_sum());
  3756. break;
  3757. }
  3758. case kAvg: {
  3759. _this->_internal_mutable_avg()->::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg::MergeFrom(
  3760. from._internal_avg());
  3761. break;
  3762. }
  3763. case OPERATOR_NOT_SET: {
  3764. break;
  3765. }
  3766. }
  3767. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  3768. }
  3769. void StructuredAggregationQuery_Aggregation::CopyFrom(const StructuredAggregationQuery_Aggregation& from) {
  3770. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  3771. if (&from == this) return;
  3772. Clear();
  3773. MergeFrom(from);
  3774. }
  3775. PROTOBUF_NOINLINE bool StructuredAggregationQuery_Aggregation::IsInitialized() const {
  3776. return true;
  3777. }
  3778. ::_pbi::CachedSize* StructuredAggregationQuery_Aggregation::AccessCachedSize() const {
  3779. return &_impl_._cached_size_;
  3780. }
  3781. void StructuredAggregationQuery_Aggregation::InternalSwap(StructuredAggregationQuery_Aggregation* PROTOBUF_RESTRICT other) {
  3782. using std::swap;
  3783. auto* arena = GetArena();
  3784. ABSL_DCHECK_EQ(arena, other->GetArena());
  3785. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3786. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.alias_, &other->_impl_.alias_, arena);
  3787. swap(_impl_.operator_, other->_impl_.operator_);
  3788. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  3789. }
  3790. ::google::protobuf::Metadata StructuredAggregationQuery_Aggregation::GetMetadata() const {
  3791. return ::_pbi::AssignDescriptors(
  3792. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  3793. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[12]);
  3794. }
  3795. // ===================================================================
  3796. class StructuredAggregationQuery::_Internal {
  3797. public:
  3798. static constexpr ::int32_t kOneofCaseOffset =
  3799. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _impl_._oneof_case_);
  3800. static const ::google::firestore::v1::StructuredQuery& structured_query(const StructuredAggregationQuery* msg);
  3801. };
  3802. const ::google::firestore::v1::StructuredQuery& StructuredAggregationQuery::_Internal::structured_query(const StructuredAggregationQuery* msg) {
  3803. return *msg->_impl_.query_type_.structured_query_;
  3804. }
  3805. void StructuredAggregationQuery::set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query) {
  3806. ::google::protobuf::Arena* message_arena = GetArena();
  3807. clear_query_type();
  3808. if (structured_query) {
  3809. ::google::protobuf::Arena* submessage_arena = structured_query->GetArena();
  3810. if (message_arena != submessage_arena) {
  3811. structured_query = ::google::protobuf::internal::GetOwnedMessage(message_arena, structured_query, submessage_arena);
  3812. }
  3813. set_has_structured_query();
  3814. _impl_.query_type_.structured_query_ = structured_query;
  3815. }
  3816. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.structured_query)
  3817. }
  3818. StructuredAggregationQuery::StructuredAggregationQuery(::google::protobuf::Arena* arena)
  3819. : ::google::protobuf::Message(arena) {
  3820. SharedCtor(arena);
  3821. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery)
  3822. }
  3823. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery::Impl_::Impl_(
  3824. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  3825. const Impl_& from)
  3826. : aggregations_{visibility, arena, from.aggregations_},
  3827. query_type_{},
  3828. _cached_size_{0},
  3829. _oneof_case_{from._oneof_case_[0]} {}
  3830. StructuredAggregationQuery::StructuredAggregationQuery(
  3831. ::google::protobuf::Arena* arena,
  3832. const StructuredAggregationQuery& from)
  3833. : ::google::protobuf::Message(arena) {
  3834. StructuredAggregationQuery* const _this = this;
  3835. (void)_this;
  3836. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  3837. from._internal_metadata_);
  3838. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  3839. switch (query_type_case()) {
  3840. case QUERY_TYPE_NOT_SET:
  3841. break;
  3842. case kStructuredQuery:
  3843. _impl_.query_type_.structured_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery>(arena, *from._impl_.query_type_.structured_query_);
  3844. break;
  3845. }
  3846. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery)
  3847. }
  3848. inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery::Impl_::Impl_(
  3849. ::google::protobuf::internal::InternalVisibility visibility,
  3850. ::google::protobuf::Arena* arena)
  3851. : aggregations_{visibility, arena},
  3852. query_type_{},
  3853. _cached_size_{0},
  3854. _oneof_case_{} {}
  3855. inline void StructuredAggregationQuery::SharedCtor(::_pb::Arena* arena) {
  3856. new (&_impl_) Impl_(internal_visibility(), arena);
  3857. }
  3858. StructuredAggregationQuery::~StructuredAggregationQuery() {
  3859. // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery)
  3860. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  3861. SharedDtor();
  3862. }
  3863. inline void StructuredAggregationQuery::SharedDtor() {
  3864. ABSL_DCHECK(GetArena() == nullptr);
  3865. if (has_query_type()) {
  3866. clear_query_type();
  3867. }
  3868. _impl_.~Impl_();
  3869. }
  3870. void StructuredAggregationQuery::clear_query_type() {
  3871. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.StructuredAggregationQuery)
  3872. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3873. switch (query_type_case()) {
  3874. case kStructuredQuery: {
  3875. if (GetArena() == nullptr) {
  3876. delete _impl_.query_type_.structured_query_;
  3877. }
  3878. break;
  3879. }
  3880. case QUERY_TYPE_NOT_SET: {
  3881. break;
  3882. }
  3883. }
  3884. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  3885. }
  3886. PROTOBUF_NOINLINE void StructuredAggregationQuery::Clear() {
  3887. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery)
  3888. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3889. ::uint32_t cached_has_bits = 0;
  3890. // Prevent compiler warnings about cached_has_bits being unused
  3891. (void) cached_has_bits;
  3892. _impl_.aggregations_.Clear();
  3893. clear_query_type();
  3894. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  3895. }
  3896. const char* StructuredAggregationQuery::_InternalParse(
  3897. const char* ptr, ::_pbi::ParseContext* ctx) {
  3898. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  3899. return ptr;
  3900. }
  3901. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  3902. const ::_pbi::TcParseTable<0, 2, 2, 0, 2> StructuredAggregationQuery::_table_ = {
  3903. {
  3904. 0, // no _has_bits_
  3905. 0, // no _extensions_
  3906. 3, 0, // max_field_number, fast_idx_mask
  3907. offsetof(decltype(_table_), field_lookup_table),
  3908. 4294967290, // skipmap
  3909. offsetof(decltype(_table_), field_entries),
  3910. 2, // num_field_entries
  3911. 2, // num_aux_entries
  3912. offsetof(decltype(_table_), aux_entries),
  3913. &_StructuredAggregationQuery_default_instance_._instance,
  3914. ::_pbi::TcParser::GenericFallback, // fallback
  3915. }, {{
  3916. // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
  3917. {::_pbi::TcParser::FastMtR1,
  3918. {26, 63, 1, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery, _impl_.aggregations_)}},
  3919. }}, {{
  3920. 65535, 65535
  3921. }}, {{
  3922. // .google.firestore.v1.StructuredQuery structured_query = 1;
  3923. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery, _impl_.query_type_.structured_query_), _Internal::kOneofCaseOffset + 0, 0,
  3924. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  3925. // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
  3926. {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery, _impl_.aggregations_), 0, 1,
  3927. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  3928. }}, {{
  3929. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery>()},
  3930. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery_Aggregation>()},
  3931. }}, {{
  3932. }},
  3933. };
  3934. ::uint8_t* StructuredAggregationQuery::_InternalSerialize(
  3935. ::uint8_t* target,
  3936. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  3937. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery)
  3938. ::uint32_t cached_has_bits = 0;
  3939. (void)cached_has_bits;
  3940. // .google.firestore.v1.StructuredQuery structured_query = 1;
  3941. if (query_type_case() == kStructuredQuery) {
  3942. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3943. 1, _Internal::structured_query(this),
  3944. _Internal::structured_query(this).GetCachedSize(), target, stream);
  3945. }
  3946. // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
  3947. for (unsigned i = 0,
  3948. n = static_cast<unsigned>(this->_internal_aggregations_size()); i < n; i++) {
  3949. const auto& repfield = this->_internal_aggregations().Get(i);
  3950. target = ::google::protobuf::internal::WireFormatLite::
  3951. InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  3952. }
  3953. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3954. target =
  3955. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3956. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  3957. }
  3958. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery)
  3959. return target;
  3960. }
  3961. ::size_t StructuredAggregationQuery::ByteSizeLong() const {
  3962. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery)
  3963. ::size_t total_size = 0;
  3964. ::uint32_t cached_has_bits = 0;
  3965. // Prevent compiler warnings about cached_has_bits being unused
  3966. (void) cached_has_bits;
  3967. // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
  3968. total_size += 1UL * this->_internal_aggregations_size();
  3969. for (const auto& msg : this->_internal_aggregations()) {
  3970. total_size +=
  3971. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  3972. }
  3973. switch (query_type_case()) {
  3974. // .google.firestore.v1.StructuredQuery structured_query = 1;
  3975. case kStructuredQuery: {
  3976. total_size +=
  3977. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.query_type_.structured_query_);
  3978. break;
  3979. }
  3980. case QUERY_TYPE_NOT_SET: {
  3981. break;
  3982. }
  3983. }
  3984. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3985. }
  3986. const ::google::protobuf::Message::ClassData StructuredAggregationQuery::_class_data_ = {
  3987. StructuredAggregationQuery::MergeImpl,
  3988. nullptr, // OnDemandRegisterArenaDtor
  3989. };
  3990. const ::google::protobuf::Message::ClassData* StructuredAggregationQuery::GetClassData() const {
  3991. return &_class_data_;
  3992. }
  3993. void StructuredAggregationQuery::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  3994. auto* const _this = static_cast<StructuredAggregationQuery*>(&to_msg);
  3995. auto& from = static_cast<const StructuredAggregationQuery&>(from_msg);
  3996. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery)
  3997. ABSL_DCHECK_NE(&from, _this);
  3998. ::uint32_t cached_has_bits = 0;
  3999. (void) cached_has_bits;
  4000. _this->_internal_mutable_aggregations()->MergeFrom(
  4001. from._internal_aggregations());
  4002. switch (from.query_type_case()) {
  4003. case kStructuredQuery: {
  4004. _this->_internal_mutable_structured_query()->::google::firestore::v1::StructuredQuery::MergeFrom(
  4005. from._internal_structured_query());
  4006. break;
  4007. }
  4008. case QUERY_TYPE_NOT_SET: {
  4009. break;
  4010. }
  4011. }
  4012. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  4013. }
  4014. void StructuredAggregationQuery::CopyFrom(const StructuredAggregationQuery& from) {
  4015. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery)
  4016. if (&from == this) return;
  4017. Clear();
  4018. MergeFrom(from);
  4019. }
  4020. PROTOBUF_NOINLINE bool StructuredAggregationQuery::IsInitialized() const {
  4021. return true;
  4022. }
  4023. ::_pbi::CachedSize* StructuredAggregationQuery::AccessCachedSize() const {
  4024. return &_impl_._cached_size_;
  4025. }
  4026. void StructuredAggregationQuery::InternalSwap(StructuredAggregationQuery* PROTOBUF_RESTRICT other) {
  4027. using std::swap;
  4028. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4029. _impl_.aggregations_.InternalSwap(&other->_impl_.aggregations_);
  4030. swap(_impl_.query_type_, other->_impl_.query_type_);
  4031. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  4032. }
  4033. ::google::protobuf::Metadata StructuredAggregationQuery::GetMetadata() const {
  4034. return ::_pbi::AssignDescriptors(
  4035. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  4036. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[13]);
  4037. }
  4038. // ===================================================================
  4039. class Cursor::_Internal {
  4040. public:
  4041. };
  4042. void Cursor::clear_values() {
  4043. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4044. _impl_.values_.Clear();
  4045. }
  4046. Cursor::Cursor(::google::protobuf::Arena* arena)
  4047. : ::google::protobuf::Message(arena) {
  4048. SharedCtor(arena);
  4049. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Cursor)
  4050. }
  4051. inline PROTOBUF_NDEBUG_INLINE Cursor::Impl_::Impl_(
  4052. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  4053. const Impl_& from)
  4054. : values_{visibility, arena, from.values_},
  4055. _cached_size_{0} {}
  4056. Cursor::Cursor(
  4057. ::google::protobuf::Arena* arena,
  4058. const Cursor& from)
  4059. : ::google::protobuf::Message(arena) {
  4060. Cursor* const _this = this;
  4061. (void)_this;
  4062. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  4063. from._internal_metadata_);
  4064. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  4065. _impl_.before_ = from._impl_.before_;
  4066. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Cursor)
  4067. }
  4068. inline PROTOBUF_NDEBUG_INLINE Cursor::Impl_::Impl_(
  4069. ::google::protobuf::internal::InternalVisibility visibility,
  4070. ::google::protobuf::Arena* arena)
  4071. : values_{visibility, arena},
  4072. _cached_size_{0} {}
  4073. inline void Cursor::SharedCtor(::_pb::Arena* arena) {
  4074. new (&_impl_) Impl_(internal_visibility(), arena);
  4075. _impl_.before_ = {};
  4076. }
  4077. Cursor::~Cursor() {
  4078. // @@protoc_insertion_point(destructor:google.firestore.v1.Cursor)
  4079. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  4080. SharedDtor();
  4081. }
  4082. inline void Cursor::SharedDtor() {
  4083. ABSL_DCHECK(GetArena() == nullptr);
  4084. _impl_.~Impl_();
  4085. }
  4086. PROTOBUF_NOINLINE void Cursor::Clear() {
  4087. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Cursor)
  4088. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4089. ::uint32_t cached_has_bits = 0;
  4090. // Prevent compiler warnings about cached_has_bits being unused
  4091. (void) cached_has_bits;
  4092. _impl_.values_.Clear();
  4093. _impl_.before_ = false;
  4094. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  4095. }
  4096. const char* Cursor::_InternalParse(
  4097. const char* ptr, ::_pbi::ParseContext* ctx) {
  4098. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  4099. return ptr;
  4100. }
  4101. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  4102. const ::_pbi::TcParseTable<1, 2, 1, 0, 2> Cursor::_table_ = {
  4103. {
  4104. 0, // no _has_bits_
  4105. 0, // no _extensions_
  4106. 2, 8, // max_field_number, fast_idx_mask
  4107. offsetof(decltype(_table_), field_lookup_table),
  4108. 4294967292, // skipmap
  4109. offsetof(decltype(_table_), field_entries),
  4110. 2, // num_field_entries
  4111. 1, // num_aux_entries
  4112. offsetof(decltype(_table_), aux_entries),
  4113. &_Cursor_default_instance_._instance,
  4114. ::_pbi::TcParser::GenericFallback, // fallback
  4115. }, {{
  4116. // bool before = 2;
  4117. {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Cursor, _impl_.before_), 63>(),
  4118. {16, 63, 0, PROTOBUF_FIELD_OFFSET(Cursor, _impl_.before_)}},
  4119. // repeated .google.firestore.v1.Value values = 1;
  4120. {::_pbi::TcParser::FastMtR1,
  4121. {10, 63, 0, PROTOBUF_FIELD_OFFSET(Cursor, _impl_.values_)}},
  4122. }}, {{
  4123. 65535, 65535
  4124. }}, {{
  4125. // repeated .google.firestore.v1.Value values = 1;
  4126. {PROTOBUF_FIELD_OFFSET(Cursor, _impl_.values_), 0, 0,
  4127. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  4128. // bool before = 2;
  4129. {PROTOBUF_FIELD_OFFSET(Cursor, _impl_.before_), 0, 0,
  4130. (0 | ::_fl::kFcSingular | ::_fl::kBool)},
  4131. }}, {{
  4132. {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
  4133. }}, {{
  4134. }},
  4135. };
  4136. ::uint8_t* Cursor::_InternalSerialize(
  4137. ::uint8_t* target,
  4138. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  4139. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Cursor)
  4140. ::uint32_t cached_has_bits = 0;
  4141. (void)cached_has_bits;
  4142. // repeated .google.firestore.v1.Value values = 1;
  4143. for (unsigned i = 0,
  4144. n = static_cast<unsigned>(this->_internal_values_size()); i < n; i++) {
  4145. const auto& repfield = this->_internal_values().Get(i);
  4146. target = ::google::protobuf::internal::WireFormatLite::
  4147. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  4148. }
  4149. // bool before = 2;
  4150. if (this->_internal_before() != 0) {
  4151. target = stream->EnsureSpace(target);
  4152. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  4153. 2, this->_internal_before(), target);
  4154. }
  4155. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4156. target =
  4157. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4158. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  4159. }
  4160. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Cursor)
  4161. return target;
  4162. }
  4163. ::size_t Cursor::ByteSizeLong() const {
  4164. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Cursor)
  4165. ::size_t total_size = 0;
  4166. ::uint32_t cached_has_bits = 0;
  4167. // Prevent compiler warnings about cached_has_bits being unused
  4168. (void) cached_has_bits;
  4169. // repeated .google.firestore.v1.Value values = 1;
  4170. total_size += 1UL * this->_internal_values_size();
  4171. for (const auto& msg : this->_internal_values()) {
  4172. total_size +=
  4173. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  4174. }
  4175. // bool before = 2;
  4176. if (this->_internal_before() != 0) {
  4177. total_size += 2;
  4178. }
  4179. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4180. }
  4181. const ::google::protobuf::Message::ClassData Cursor::_class_data_ = {
  4182. Cursor::MergeImpl,
  4183. nullptr, // OnDemandRegisterArenaDtor
  4184. };
  4185. const ::google::protobuf::Message::ClassData* Cursor::GetClassData() const {
  4186. return &_class_data_;
  4187. }
  4188. void Cursor::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  4189. auto* const _this = static_cast<Cursor*>(&to_msg);
  4190. auto& from = static_cast<const Cursor&>(from_msg);
  4191. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Cursor)
  4192. ABSL_DCHECK_NE(&from, _this);
  4193. ::uint32_t cached_has_bits = 0;
  4194. (void) cached_has_bits;
  4195. _this->_internal_mutable_values()->MergeFrom(
  4196. from._internal_values());
  4197. if (from._internal_before() != 0) {
  4198. _this->_internal_set_before(from._internal_before());
  4199. }
  4200. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  4201. }
  4202. void Cursor::CopyFrom(const Cursor& from) {
  4203. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Cursor)
  4204. if (&from == this) return;
  4205. Clear();
  4206. MergeFrom(from);
  4207. }
  4208. PROTOBUF_NOINLINE bool Cursor::IsInitialized() const {
  4209. return true;
  4210. }
  4211. ::_pbi::CachedSize* Cursor::AccessCachedSize() const {
  4212. return &_impl_._cached_size_;
  4213. }
  4214. void Cursor::InternalSwap(Cursor* PROTOBUF_RESTRICT other) {
  4215. using std::swap;
  4216. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4217. _impl_.values_.InternalSwap(&other->_impl_.values_);
  4218. swap(_impl_.before_, other->_impl_.before_);
  4219. }
  4220. ::google::protobuf::Metadata Cursor::GetMetadata() const {
  4221. return ::_pbi::AssignDescriptors(
  4222. &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
  4223. file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[14]);
  4224. }
  4225. // @@protoc_insertion_point(namespace_scope)
  4226. } // namespace v1
  4227. } // namespace firestore
  4228. } // namespace google
  4229. namespace google {
  4230. namespace protobuf {
  4231. } // namespace protobuf
  4232. } // namespace google
  4233. // @@protoc_insertion_point(global_scope)
  4234. #include "google/protobuf/port_undef.inc"