| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682 |
- /*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/firestore/v1/query.proto
- #include "google/firestore/v1/query.pb.h"
- #include <algorithm>
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/extension_set.h"
- #include "google/protobuf/wire_format_lite.h"
- #include "google/protobuf/descriptor.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/reflection_ops.h"
- #include "google/protobuf/wire_format.h"
- #include "google/protobuf/generated_message_tctable_impl.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- PROTOBUF_PRAGMA_INIT_SEG
- namespace _pb = ::google::protobuf;
- namespace _pbi = ::google::protobuf::internal;
- namespace _fl = ::google::protobuf::internal::field_layout;
- namespace google {
- namespace firestore {
- namespace v1 {
- inline constexpr StructuredQuery_FieldReference::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : field_path_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery_FieldReference::StructuredQuery_FieldReference(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQuery_FieldReferenceDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQuery_FieldReferenceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQuery_FieldReferenceDefaultTypeInternal() {}
- union {
- StructuredQuery_FieldReference _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_FieldReferenceDefaultTypeInternal _StructuredQuery_FieldReference_default_instance_;
- inline constexpr StructuredQuery_CollectionSelector::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : collection_id_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- all_descendants_{false},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery_CollectionSelector::StructuredQuery_CollectionSelector(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQuery_CollectionSelectorDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQuery_CollectionSelectorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQuery_CollectionSelectorDefaultTypeInternal() {}
- union {
- StructuredQuery_CollectionSelector _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_CollectionSelectorDefaultTypeInternal _StructuredQuery_CollectionSelector_default_instance_;
- inline constexpr StructuredQuery_UnaryFilter::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : op_{static_cast< ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator >(0)},
- operand_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery_UnaryFilter::StructuredQuery_UnaryFilter(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQuery_UnaryFilterDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQuery_UnaryFilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQuery_UnaryFilterDefaultTypeInternal() {}
- union {
- StructuredQuery_UnaryFilter _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_UnaryFilterDefaultTypeInternal _StructuredQuery_UnaryFilter_default_instance_;
- inline constexpr StructuredQuery_Projection::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : fields_{},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery_Projection::StructuredQuery_Projection(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQuery_ProjectionDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQuery_ProjectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQuery_ProjectionDefaultTypeInternal() {}
- union {
- StructuredQuery_Projection _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_ProjectionDefaultTypeInternal _StructuredQuery_Projection_default_instance_;
- inline constexpr StructuredQuery_Order::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : _cached_size_{0},
- field_{nullptr},
- direction_{static_cast< ::google::firestore::v1::StructuredQuery_Direction >(0)} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery_Order::StructuredQuery_Order(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQuery_OrderDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQuery_OrderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQuery_OrderDefaultTypeInternal() {}
- union {
- StructuredQuery_Order _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_OrderDefaultTypeInternal _StructuredQuery_Order_default_instance_;
- inline constexpr StructuredAggregationQuery_Aggregation_Sum::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : _cached_size_{0},
- field_{nullptr} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Sum::StructuredAggregationQuery_Aggregation_Sum(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal() {}
- union {
- StructuredAggregationQuery_Aggregation_Sum _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Sum_default_instance_;
- inline constexpr StructuredAggregationQuery_Aggregation_Count::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : _cached_size_{0},
- up_to_{nullptr} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Count::StructuredAggregationQuery_Aggregation_Count(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal() {}
- union {
- StructuredAggregationQuery_Aggregation_Count _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Count_default_instance_;
- inline constexpr StructuredAggregationQuery_Aggregation_Avg::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : _cached_size_{0},
- field_{nullptr} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Avg::StructuredAggregationQuery_Aggregation_Avg(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal() {}
- union {
- StructuredAggregationQuery_Aggregation_Avg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Avg_default_instance_;
- inline constexpr StructuredQuery_FieldFilter::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : _cached_size_{0},
- field_{nullptr},
- value_{nullptr},
- op_{static_cast< ::google::firestore::v1::StructuredQuery_FieldFilter_Operator >(0)} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery_FieldFilter::StructuredQuery_FieldFilter(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQuery_FieldFilterDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQuery_FieldFilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQuery_FieldFilterDefaultTypeInternal() {}
- union {
- StructuredQuery_FieldFilter _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_FieldFilterDefaultTypeInternal _StructuredQuery_FieldFilter_default_instance_;
- inline constexpr StructuredAggregationQuery_Aggregation::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : alias_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- operator_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation::StructuredAggregationQuery_Aggregation(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredAggregationQuery_AggregationDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredAggregationQuery_AggregationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredAggregationQuery_AggregationDefaultTypeInternal() {}
- union {
- StructuredAggregationQuery_Aggregation _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQuery_AggregationDefaultTypeInternal _StructuredAggregationQuery_Aggregation_default_instance_;
- inline constexpr Cursor::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : values_{},
- before_{false},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR Cursor::Cursor(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct CursorDefaultTypeInternal {
- PROTOBUF_CONSTEXPR CursorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~CursorDefaultTypeInternal() {}
- union {
- Cursor _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CursorDefaultTypeInternal _Cursor_default_instance_;
- inline constexpr StructuredQuery_CompositeFilter::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : filters_{},
- op_{static_cast< ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator >(0)},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery_CompositeFilter::StructuredQuery_CompositeFilter(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQuery_CompositeFilterDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQuery_CompositeFilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQuery_CompositeFilterDefaultTypeInternal() {}
- union {
- StructuredQuery_CompositeFilter _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_CompositeFilterDefaultTypeInternal _StructuredQuery_CompositeFilter_default_instance_;
- inline constexpr StructuredQuery_Filter::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : filter_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery_Filter::StructuredQuery_Filter(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQuery_FilterDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQuery_FilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQuery_FilterDefaultTypeInternal() {}
- union {
- StructuredQuery_Filter _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQuery_FilterDefaultTypeInternal _StructuredQuery_Filter_default_instance_;
- inline constexpr StructuredQuery::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : _cached_size_{0},
- from_{},
- order_by_{},
- select_{nullptr},
- where_{nullptr},
- limit_{nullptr},
- start_at_{nullptr},
- end_at_{nullptr},
- offset_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredQuery::StructuredQuery(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredQueryDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredQueryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredQueryDefaultTypeInternal() {}
- union {
- StructuredQuery _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredQueryDefaultTypeInternal _StructuredQuery_default_instance_;
- inline constexpr StructuredAggregationQuery::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : aggregations_{},
- query_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR StructuredAggregationQuery::StructuredAggregationQuery(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct StructuredAggregationQueryDefaultTypeInternal {
- PROTOBUF_CONSTEXPR StructuredAggregationQueryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~StructuredAggregationQueryDefaultTypeInternal() {}
- union {
- StructuredAggregationQuery _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructuredAggregationQueryDefaultTypeInternal _StructuredAggregationQuery_default_instance_;
- } // namespace v1
- } // namespace firestore
- } // namespace google
- static ::_pb::Metadata file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[15];
- static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[4];
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_google_2ffirestore_2fv1_2fquery_2eproto = nullptr;
- const ::uint32_t TableStruct_google_2ffirestore_2fv1_2fquery_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
- protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CollectionSelector, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CollectionSelector, _impl_.collection_id_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CollectionSelector, _impl_.all_descendants_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Filter, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Filter, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Filter, _impl_.filter_type_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CompositeFilter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CompositeFilter, _impl_.op_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_CompositeFilter, _impl_.filters_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _impl_.field_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _impl_.op_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldFilter, _impl_.value_),
- 0,
- ~0u,
- 1,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _impl_.op_),
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _impl_.operand_type_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Order, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Order, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Order, _impl_.field_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Order, _impl_.direction_),
- 0,
- ~0u,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldReference, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_FieldReference, _impl_.field_path_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Projection, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Projection, _impl_.fields_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.select_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.from_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.where_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.order_by_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.start_at_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.end_at_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.offset_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery, _impl_.limit_),
- 0,
- ~0u,
- 1,
- ~0u,
- 3,
- 4,
- ~0u,
- 2,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count, _impl_.up_to_),
- 0,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum, _impl_.field_),
- 0,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg, _impl_.field_),
- 0,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _impl_.alias_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _impl_.operator_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _impl_.aggregations_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _impl_.query_type_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Cursor, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Cursor, _impl_.values_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Cursor, _impl_.before_),
- };
- static const ::_pbi::MigrationSchema
- schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- {0, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_CollectionSelector)},
- {10, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_Filter)},
- {22, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_CompositeFilter)},
- {32, 43, -1, sizeof(::google::firestore::v1::StructuredQuery_FieldFilter)},
- {46, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_UnaryFilter)},
- {57, 67, -1, sizeof(::google::firestore::v1::StructuredQuery_Order)},
- {69, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_FieldReference)},
- {78, -1, -1, sizeof(::google::firestore::v1::StructuredQuery_Projection)},
- {87, 103, -1, sizeof(::google::firestore::v1::StructuredQuery)},
- {111, 120, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count)},
- {121, 130, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum)},
- {131, 140, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg)},
- {141, -1, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery_Aggregation)},
- {154, -1, -1, sizeof(::google::firestore::v1::StructuredAggregationQuery)},
- {165, -1, -1, sizeof(::google::firestore::v1::Cursor)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::google::firestore::v1::_StructuredQuery_CollectionSelector_default_instance_._instance,
- &::google::firestore::v1::_StructuredQuery_Filter_default_instance_._instance,
- &::google::firestore::v1::_StructuredQuery_CompositeFilter_default_instance_._instance,
- &::google::firestore::v1::_StructuredQuery_FieldFilter_default_instance_._instance,
- &::google::firestore::v1::_StructuredQuery_UnaryFilter_default_instance_._instance,
- &::google::firestore::v1::_StructuredQuery_Order_default_instance_._instance,
- &::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_._instance,
- &::google::firestore::v1::_StructuredQuery_Projection_default_instance_._instance,
- &::google::firestore::v1::_StructuredQuery_default_instance_._instance,
- &::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Count_default_instance_._instance,
- &::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Sum_default_instance_._instance,
- &::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Avg_default_instance_._instance,
- &::google::firestore::v1::_StructuredAggregationQuery_Aggregation_default_instance_._instance,
- &::google::firestore::v1::_StructuredAggregationQuery_default_instance_._instance,
- &::google::firestore::v1::_Cursor_default_instance_._instance,
- };
- const char descriptor_table_protodef_google_2ffirestore_2fv1_2fquery_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- "\n\037google/firestore/v1/query.proto\022\023googl"
- "e.firestore.v1\032\"google/firestore/v1/docu"
- "ment.proto\032\036google/protobuf/wrappers.pro"
- "to\"\276\017\n\017StructuredQuery\022\?\n\006select\030\001 \001(\0132/"
- ".google.firestore.v1.StructuredQuery.Pro"
- "jection\022E\n\004from\030\002 \003(\01327.google.firestore"
- ".v1.StructuredQuery.CollectionSelector\022:"
- "\n\005where\030\003 \001(\0132+.google.firestore.v1.Stru"
- "cturedQuery.Filter\022<\n\010order_by\030\004 \003(\0132*.g"
- "oogle.firestore.v1.StructuredQuery.Order"
- "\022-\n\010start_at\030\007 \001(\0132\033.google.firestore.v1"
- ".Cursor\022+\n\006end_at\030\010 \001(\0132\033.google.firesto"
- "re.v1.Cursor\022\016\n\006offset\030\006 \001(\005\022*\n\005limit\030\005 "
- "\001(\0132\033.google.protobuf.Int32Value\032D\n\022Coll"
- "ectionSelector\022\025\n\rcollection_id\030\002 \001(\t\022\027\n"
- "\017all_descendants\030\003 \001(\010\032\375\001\n\006Filter\022P\n\020com"
- "posite_filter\030\001 \001(\01324.google.firestore.v"
- "1.StructuredQuery.CompositeFilterH\000\022H\n\014f"
- "ield_filter\030\002 \001(\01320.google.firestore.v1."
- "StructuredQuery.FieldFilterH\000\022H\n\014unary_f"
- "ilter\030\003 \001(\01320.google.firestore.v1.Struct"
- "uredQuery.UnaryFilterH\000B\r\n\013filter_type\032\321"
- "\001\n\017CompositeFilter\022I\n\002op\030\001 \001(\0162=.google."
- "firestore.v1.StructuredQuery.CompositeFi"
- "lter.Operator\022<\n\007filters\030\002 \003(\0132+.google."
- "firestore.v1.StructuredQuery.Filter\"5\n\010O"
- "perator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\007\n\003AND"
- "\020\001\022\006\n\002OR\020\002\032\230\003\n\013FieldFilter\022B\n\005field\030\001 \001("
- "\01323.google.firestore.v1.StructuredQuery."
- "FieldReference\022E\n\002op\030\002 \001(\01629.google.fire"
- "store.v1.StructuredQuery.FieldFilter.Ope"
- "rator\022)\n\005value\030\003 \001(\0132\032.google.firestore."
- "v1.Value\"\322\001\n\010Operator\022\030\n\024OPERATOR_UNSPEC"
- "IFIED\020\000\022\r\n\tLESS_THAN\020\001\022\026\n\022LESS_THAN_OR_E"
- "QUAL\020\002\022\020\n\014GREATER_THAN\020\003\022\031\n\025GREATER_THAN"
- "_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\r\n\tNOT_EQUAL\020\006\022\022\n"
- "\016ARRAY_CONTAINS\020\007\022\006\n\002IN\020\010\022\026\n\022ARRAY_CONTA"
- "INS_ANY\020\t\022\n\n\006NOT_IN\020\n\032\212\002\n\013UnaryFilter\022E\n"
- "\002op\030\001 \001(\01629.google.firestore.v1.Structur"
- "edQuery.UnaryFilter.Operator\022D\n\005field\030\002 "
- "\001(\01323.google.firestore.v1.StructuredQuer"
- "y.FieldReferenceH\000\"^\n\010Operator\022\030\n\024OPERAT"
- "OR_UNSPECIFIED\020\000\022\n\n\006IS_NAN\020\002\022\013\n\007IS_NULL\020"
- "\003\022\016\n\nIS_NOT_NAN\020\004\022\017\n\013IS_NOT_NULL\020\005B\016\n\014op"
- "erand_type\032\216\001\n\005Order\022B\n\005field\030\001 \001(\01323.go"
- "ogle.firestore.v1.StructuredQuery.FieldR"
- "eference\022A\n\tdirection\030\002 \001(\0162..google.fir"
- "estore.v1.StructuredQuery.Direction\032$\n\016F"
- "ieldReference\022\022\n\nfield_path\030\002 \001(\t\032Q\n\nPro"
- "jection\022C\n\006fields\030\002 \003(\01323.google.firesto"
- "re.v1.StructuredQuery.FieldReference\"E\n\t"
- "Direction\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\r\n\t"
- "ASCENDING\020\001\022\016\n\nDESCENDING\020\002\"\251\005\n\032Structur"
- "edAggregationQuery\022@\n\020structured_query\030\001"
- " \001(\0132$.google.firestore.v1.StructuredQue"
- "ryH\000\022Q\n\014aggregations\030\003 \003(\0132;.google.fire"
- "store.v1.StructuredAggregationQuery.Aggr"
- "egation\032\347\003\n\013Aggregation\022R\n\005count\030\001 \001(\0132A"
- ".google.firestore.v1.StructuredAggregati"
- "onQuery.Aggregation.CountH\000\022N\n\003sum\030\002 \001(\013"
- "2\?.google.firestore.v1.StructuredAggrega"
- "tionQuery.Aggregation.SumH\000\022N\n\003avg\030\003 \001(\013"
- "2\?.google.firestore.v1.StructuredAggrega"
- "tionQuery.Aggregation.AvgH\000\022\r\n\005alias\030\007 \001"
- "(\t\0323\n\005Count\022*\n\005up_to\030\001 \001(\0132\033.google.prot"
- "obuf.Int64Value\032I\n\003Sum\022B\n\005field\030\001 \001(\01323."
- "google.firestore.v1.StructuredQuery.Fiel"
- "dReference\032I\n\003Avg\022B\n\005field\030\001 \001(\01323.googl"
- "e.firestore.v1.StructuredQuery.FieldRefe"
- "renceB\n\n\010operatorB\014\n\nquery_type\"D\n\006Curso"
- "r\022*\n\006values\030\001 \003(\0132\032.google.firestore.v1."
- "Value\022\016\n\006before\030\002 \001(\010B\256\001\n\027com.google.fir"
- "estore.v1B\nQueryProtoP\001Z<google.golang.o"
- "rg/genproto/googleapis/firestore/v1;fire"
- "store\242\002\004GCFS\252\002\036Google.Cloud.Firestore.V1"
- "Beta1\312\002\036Google\\Cloud\\Firestore\\V1beta1b\006"
- "proto3"
- };
- static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_deps[2] =
- {
- &::descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto,
- &::descriptor_table_google_2fprotobuf_2fwrappers_2eproto,
- };
- static ::absl::once_flag descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto = {
- false,
- false,
- 3046,
- descriptor_table_protodef_google_2ffirestore_2fv1_2fquery_2eproto,
- "google/firestore/v1/query.proto",
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_deps,
- 2,
- 15,
- schemas,
- file_default_instances,
- TableStruct_google_2ffirestore_2fv1_2fquery_2eproto::offsets,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto,
- file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto,
- file_level_service_descriptors_google_2ffirestore_2fv1_2fquery_2eproto,
- };
- // This function exists to be marked as weak.
- // It can significantly speed up compilation by breaking up LLVM's SCC
- // in the .pb.cc translation units. Large translation units see a
- // reduction of more than 35% of walltime for optimized builds. Without
- // the weak attribute all the messages in the file, including all the
- // vtables and everything they use become part of the same SCC through
- // a cycle like:
- // GetMetadata -> descriptor table -> default instances ->
- // vtables -> GetMetadata
- // By adding a weak function here we break the connection from the
- // individual vtables back into the descriptor table.
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter() {
- return &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
- static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2ffirestore_2fv1_2fquery_2eproto(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
- namespace google {
- namespace firestore {
- namespace v1 {
- const ::google::protobuf::EnumDescriptor* StructuredQuery_CompositeFilter_Operator_descriptor() {
- ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
- return file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[0];
- }
- PROTOBUF_CONSTINIT const uint32_t StructuredQuery_CompositeFilter_Operator_internal_data_[] = {
- 196608u, 0u, };
- bool StructuredQuery_CompositeFilter_Operator_IsValid(int value) {
- return 0 <= value && value <= 2;
- }
- #if (__cplusplus < 201703) && \
- (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
- constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::OPERATOR_UNSPECIFIED;
- constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::AND;
- constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::OR;
- constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::Operator_MIN;
- constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::Operator_MAX;
- constexpr int StructuredQuery_CompositeFilter::Operator_ARRAYSIZE;
- #endif // (__cplusplus < 201703) &&
- // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
- const ::google::protobuf::EnumDescriptor* StructuredQuery_FieldFilter_Operator_descriptor() {
- ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
- return file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[1];
- }
- PROTOBUF_CONSTINIT const uint32_t StructuredQuery_FieldFilter_Operator_internal_data_[] = {
- 720896u, 0u, };
- bool StructuredQuery_FieldFilter_Operator_IsValid(int value) {
- return 0 <= value && value <= 10;
- }
- #if (__cplusplus < 201703) && \
- (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::OPERATOR_UNSPECIFIED;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::LESS_THAN;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::LESS_THAN_OR_EQUAL;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::GREATER_THAN;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::GREATER_THAN_OR_EQUAL;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::EQUAL;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::NOT_EQUAL;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::ARRAY_CONTAINS;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::IN_;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::ARRAY_CONTAINS_ANY;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::NOT_IN;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::Operator_MIN;
- constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::Operator_MAX;
- constexpr int StructuredQuery_FieldFilter::Operator_ARRAYSIZE;
- #endif // (__cplusplus < 201703) &&
- // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
- const ::google::protobuf::EnumDescriptor* StructuredQuery_UnaryFilter_Operator_descriptor() {
- ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
- return file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[2];
- }
- PROTOBUF_CONSTINIT const uint32_t StructuredQuery_UnaryFilter_Operator_internal_data_[] = {
- 65536u, 32u, 30u, };
- bool StructuredQuery_UnaryFilter_Operator_IsValid(int value) {
- return 0 <= value && value <= 5 && ((61u >> value) & 1) != 0;
- }
- #if (__cplusplus < 201703) && \
- (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
- constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::OPERATOR_UNSPECIFIED;
- constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NAN;
- constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NULL;
- constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NOT_NAN;
- constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NOT_NULL;
- constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::Operator_MIN;
- constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::Operator_MAX;
- constexpr int StructuredQuery_UnaryFilter::Operator_ARRAYSIZE;
- #endif // (__cplusplus < 201703) &&
- // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
- const ::google::protobuf::EnumDescriptor* StructuredQuery_Direction_descriptor() {
- ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto);
- return file_level_enum_descriptors_google_2ffirestore_2fv1_2fquery_2eproto[3];
- }
- PROTOBUF_CONSTINIT const uint32_t StructuredQuery_Direction_internal_data_[] = {
- 196608u, 0u, };
- bool StructuredQuery_Direction_IsValid(int value) {
- return 0 <= value && value <= 2;
- }
- #if (__cplusplus < 201703) && \
- (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
- constexpr StructuredQuery_Direction StructuredQuery::DIRECTION_UNSPECIFIED;
- constexpr StructuredQuery_Direction StructuredQuery::ASCENDING;
- constexpr StructuredQuery_Direction StructuredQuery::DESCENDING;
- constexpr StructuredQuery_Direction StructuredQuery::Direction_MIN;
- constexpr StructuredQuery_Direction StructuredQuery::Direction_MAX;
- constexpr int StructuredQuery::Direction_ARRAYSIZE;
- #endif // (__cplusplus < 201703) &&
- // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
- // ===================================================================
- class StructuredQuery_CollectionSelector::_Internal {
- public:
- };
- StructuredQuery_CollectionSelector::StructuredQuery_CollectionSelector(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.CollectionSelector)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_CollectionSelector::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : collection_id_(arena, from.collection_id_),
- _cached_size_{0} {}
- StructuredQuery_CollectionSelector::StructuredQuery_CollectionSelector(
- ::google::protobuf::Arena* arena,
- const StructuredQuery_CollectionSelector& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery_CollectionSelector* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- _impl_.all_descendants_ = from._impl_.all_descendants_;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.CollectionSelector)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_CollectionSelector::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : collection_id_(arena),
- _cached_size_{0} {}
- inline void StructuredQuery_CollectionSelector::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- _impl_.all_descendants_ = {};
- }
- StructuredQuery_CollectionSelector::~StructuredQuery_CollectionSelector() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.CollectionSelector)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery_CollectionSelector::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.collection_id_.Destroy();
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredQuery_CollectionSelector::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.CollectionSelector)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.collection_id_.ClearToEmpty();
- _impl_.all_descendants_ = false;
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery_CollectionSelector::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<1, 2, 0, 76, 2> StructuredQuery_CollectionSelector::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 3, 8, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967289, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- &_StructuredQuery_CollectionSelector_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // string collection_id = 2;
- {::_pbi::TcParser::FastUS1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_CollectionSelector, _impl_.collection_id_)}},
- // bool all_descendants = 3;
- {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(StructuredQuery_CollectionSelector, _impl_.all_descendants_), 63>(),
- {24, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_CollectionSelector, _impl_.all_descendants_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // string collection_id = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_CollectionSelector, _impl_.collection_id_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // bool all_descendants = 3;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_CollectionSelector, _impl_.all_descendants_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kBool)},
- }},
- // no aux_entries
- {{
- "\66\15\0\0\0\0\0\0"
- "google.firestore.v1.StructuredQuery.CollectionSelector"
- "collection_id"
- }},
- };
- ::uint8_t* StructuredQuery_CollectionSelector::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.CollectionSelector)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string collection_id = 2;
- if (!this->_internal_collection_id().empty()) {
- const std::string& _s = this->_internal_collection_id();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.StructuredQuery.CollectionSelector.collection_id");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- // bool all_descendants = 3;
- if (this->_internal_all_descendants() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 3, this->_internal_all_descendants(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.CollectionSelector)
- return target;
- }
- ::size_t StructuredQuery_CollectionSelector::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.CollectionSelector)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string collection_id = 2;
- if (!this->_internal_collection_id().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_collection_id());
- }
- // bool all_descendants = 3;
- if (this->_internal_all_descendants() != 0) {
- total_size += 2;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery_CollectionSelector::_class_data_ = {
- StructuredQuery_CollectionSelector::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery_CollectionSelector::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery_CollectionSelector::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery_CollectionSelector*>(&to_msg);
- auto& from = static_cast<const StructuredQuery_CollectionSelector&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.CollectionSelector)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_collection_id().empty()) {
- _this->_internal_set_collection_id(from._internal_collection_id());
- }
- if (from._internal_all_descendants() != 0) {
- _this->_internal_set_all_descendants(from._internal_all_descendants());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery_CollectionSelector::CopyFrom(const StructuredQuery_CollectionSelector& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.CollectionSelector)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery_CollectionSelector::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery_CollectionSelector::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery_CollectionSelector::InternalSwap(StructuredQuery_CollectionSelector* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.collection_id_, &other->_impl_.collection_id_, arena);
- swap(_impl_.all_descendants_, other->_impl_.all_descendants_);
- }
- ::google::protobuf::Metadata StructuredQuery_CollectionSelector::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[0]);
- }
- // ===================================================================
- class StructuredQuery_Filter::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_Filter, _impl_._oneof_case_);
- static const ::google::firestore::v1::StructuredQuery_CompositeFilter& composite_filter(const StructuredQuery_Filter* msg);
- static const ::google::firestore::v1::StructuredQuery_FieldFilter& field_filter(const StructuredQuery_Filter* msg);
- static const ::google::firestore::v1::StructuredQuery_UnaryFilter& unary_filter(const StructuredQuery_Filter* msg);
- };
- const ::google::firestore::v1::StructuredQuery_CompositeFilter& StructuredQuery_Filter::_Internal::composite_filter(const StructuredQuery_Filter* msg) {
- return *msg->_impl_.filter_type_.composite_filter_;
- }
- const ::google::firestore::v1::StructuredQuery_FieldFilter& StructuredQuery_Filter::_Internal::field_filter(const StructuredQuery_Filter* msg) {
- return *msg->_impl_.filter_type_.field_filter_;
- }
- const ::google::firestore::v1::StructuredQuery_UnaryFilter& StructuredQuery_Filter::_Internal::unary_filter(const StructuredQuery_Filter* msg) {
- return *msg->_impl_.filter_type_.unary_filter_;
- }
- void StructuredQuery_Filter::set_allocated_composite_filter(::google::firestore::v1::StructuredQuery_CompositeFilter* composite_filter) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_filter_type();
- if (composite_filter) {
- ::google::protobuf::Arena* submessage_arena = composite_filter->GetArena();
- if (message_arena != submessage_arena) {
- composite_filter = ::google::protobuf::internal::GetOwnedMessage(message_arena, composite_filter, submessage_arena);
- }
- set_has_composite_filter();
- _impl_.filter_type_.composite_filter_ = composite_filter;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.Filter.composite_filter)
- }
- void StructuredQuery_Filter::set_allocated_field_filter(::google::firestore::v1::StructuredQuery_FieldFilter* field_filter) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_filter_type();
- if (field_filter) {
- ::google::protobuf::Arena* submessage_arena = field_filter->GetArena();
- if (message_arena != submessage_arena) {
- field_filter = ::google::protobuf::internal::GetOwnedMessage(message_arena, field_filter, submessage_arena);
- }
- set_has_field_filter();
- _impl_.filter_type_.field_filter_ = field_filter;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.Filter.field_filter)
- }
- void StructuredQuery_Filter::set_allocated_unary_filter(::google::firestore::v1::StructuredQuery_UnaryFilter* unary_filter) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_filter_type();
- if (unary_filter) {
- ::google::protobuf::Arena* submessage_arena = unary_filter->GetArena();
- if (message_arena != submessage_arena) {
- unary_filter = ::google::protobuf::internal::GetOwnedMessage(message_arena, unary_filter, submessage_arena);
- }
- set_has_unary_filter();
- _impl_.filter_type_.unary_filter_ = unary_filter;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.Filter.unary_filter)
- }
- StructuredQuery_Filter::StructuredQuery_Filter(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.Filter)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Filter::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : filter_type_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- StructuredQuery_Filter::StructuredQuery_Filter(
- ::google::protobuf::Arena* arena,
- const StructuredQuery_Filter& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery_Filter* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- switch (filter_type_case()) {
- case FILTER_TYPE_NOT_SET:
- break;
- case kCompositeFilter:
- _impl_.filter_type_.composite_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_CompositeFilter>(arena, *from._impl_.filter_type_.composite_filter_);
- break;
- case kFieldFilter:
- _impl_.filter_type_.field_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldFilter>(arena, *from._impl_.filter_type_.field_filter_);
- break;
- case kUnaryFilter:
- _impl_.filter_type_.unary_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_UnaryFilter>(arena, *from._impl_.filter_type_.unary_filter_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.Filter)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Filter::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : filter_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void StructuredQuery_Filter::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- StructuredQuery_Filter::~StructuredQuery_Filter() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.Filter)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery_Filter::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- if (has_filter_type()) {
- clear_filter_type();
- }
- _impl_.~Impl_();
- }
- void StructuredQuery_Filter::clear_filter_type() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.StructuredQuery.Filter)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (filter_type_case()) {
- case kCompositeFilter: {
- if (GetArena() == nullptr) {
- delete _impl_.filter_type_.composite_filter_;
- }
- break;
- }
- case kFieldFilter: {
- if (GetArena() == nullptr) {
- delete _impl_.filter_type_.field_filter_;
- }
- break;
- }
- case kUnaryFilter: {
- if (GetArena() == nullptr) {
- delete _impl_.filter_type_.unary_filter_;
- }
- break;
- }
- case FILTER_TYPE_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = FILTER_TYPE_NOT_SET;
- }
- PROTOBUF_NOINLINE void StructuredQuery_Filter::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.Filter)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- clear_filter_type();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery_Filter::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 3, 3, 0, 2> StructuredQuery_Filter::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 3, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967288, // skipmap
- offsetof(decltype(_table_), field_entries),
- 3, // num_field_entries
- 3, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredQuery_Filter_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_Filter, _impl_.filter_type_.composite_filter_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_Filter, _impl_.filter_type_.field_filter_), _Internal::kOneofCaseOffset + 0, 1,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_Filter, _impl_.filter_type_.unary_filter_), _Internal::kOneofCaseOffset + 0, 2,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_CompositeFilter>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldFilter>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_UnaryFilter>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredQuery_Filter::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.Filter)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- switch (filter_type_case()) {
- case kCompositeFilter: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::composite_filter(this),
- _Internal::composite_filter(this).GetCachedSize(), target, stream);
- break;
- }
- case kFieldFilter: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 2, _Internal::field_filter(this),
- _Internal::field_filter(this).GetCachedSize(), target, stream);
- break;
- }
- case kUnaryFilter: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 3, _Internal::unary_filter(this),
- _Internal::unary_filter(this).GetCachedSize(), target, stream);
- break;
- }
- default:
- break;
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.Filter)
- return target;
- }
- ::size_t StructuredQuery_Filter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.Filter)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- switch (filter_type_case()) {
- // .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
- case kCompositeFilter: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.filter_type_.composite_filter_);
- break;
- }
- // .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
- case kFieldFilter: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.filter_type_.field_filter_);
- break;
- }
- // .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
- case kUnaryFilter: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.filter_type_.unary_filter_);
- break;
- }
- case FILTER_TYPE_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery_Filter::_class_data_ = {
- StructuredQuery_Filter::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery_Filter::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery_Filter::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery_Filter*>(&to_msg);
- auto& from = static_cast<const StructuredQuery_Filter&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.Filter)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- switch (from.filter_type_case()) {
- case kCompositeFilter: {
- _this->_internal_mutable_composite_filter()->::google::firestore::v1::StructuredQuery_CompositeFilter::MergeFrom(
- from._internal_composite_filter());
- break;
- }
- case kFieldFilter: {
- _this->_internal_mutable_field_filter()->::google::firestore::v1::StructuredQuery_FieldFilter::MergeFrom(
- from._internal_field_filter());
- break;
- }
- case kUnaryFilter: {
- _this->_internal_mutable_unary_filter()->::google::firestore::v1::StructuredQuery_UnaryFilter::MergeFrom(
- from._internal_unary_filter());
- break;
- }
- case FILTER_TYPE_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery_Filter::CopyFrom(const StructuredQuery_Filter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.Filter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery_Filter::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery_Filter::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery_Filter::InternalSwap(StructuredQuery_Filter* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.filter_type_, other->_impl_.filter_type_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata StructuredQuery_Filter::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[1]);
- }
- // ===================================================================
- class StructuredQuery_CompositeFilter::_Internal {
- public:
- };
- StructuredQuery_CompositeFilter::StructuredQuery_CompositeFilter(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.CompositeFilter)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_CompositeFilter::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : filters_{visibility, arena, from.filters_},
- _cached_size_{0} {}
- StructuredQuery_CompositeFilter::StructuredQuery_CompositeFilter(
- ::google::protobuf::Arena* arena,
- const StructuredQuery_CompositeFilter& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery_CompositeFilter* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- _impl_.op_ = from._impl_.op_;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.CompositeFilter)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_CompositeFilter::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : filters_{visibility, arena},
- _cached_size_{0} {}
- inline void StructuredQuery_CompositeFilter::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- _impl_.op_ = {};
- }
- StructuredQuery_CompositeFilter::~StructuredQuery_CompositeFilter() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.CompositeFilter)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery_CompositeFilter::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredQuery_CompositeFilter::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.CompositeFilter)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.filters_.Clear();
- _impl_.op_ = 0;
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery_CompositeFilter::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<1, 2, 1, 0, 2> StructuredQuery_CompositeFilter::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 2, 8, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967292, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredQuery_CompositeFilter_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
- {::_pbi::TcParser::FastMtR1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_CompositeFilter, _impl_.filters_)}},
- // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery_CompositeFilter, _impl_.op_), 63>(),
- {8, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_CompositeFilter, _impl_.op_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_CompositeFilter, _impl_.op_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
- // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_CompositeFilter, _impl_.filters_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_Filter>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredQuery_CompositeFilter::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.CompositeFilter)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
- if (this->_internal_op() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_op(), target);
- }
- // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_filters_size()); i < n; i++) {
- const auto& repfield = this->_internal_filters().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.CompositeFilter)
- return target;
- }
- ::size_t StructuredQuery_CompositeFilter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.CompositeFilter)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
- total_size += 1UL * this->_internal_filters_size();
- for (const auto& msg : this->_internal_filters()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
- if (this->_internal_op() != 0) {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_op());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery_CompositeFilter::_class_data_ = {
- StructuredQuery_CompositeFilter::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery_CompositeFilter::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery_CompositeFilter::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery_CompositeFilter*>(&to_msg);
- auto& from = static_cast<const StructuredQuery_CompositeFilter&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.CompositeFilter)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_filters()->MergeFrom(
- from._internal_filters());
- if (from._internal_op() != 0) {
- _this->_internal_set_op(from._internal_op());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery_CompositeFilter::CopyFrom(const StructuredQuery_CompositeFilter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.CompositeFilter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery_CompositeFilter::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery_CompositeFilter::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery_CompositeFilter::InternalSwap(StructuredQuery_CompositeFilter* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.filters_.InternalSwap(&other->_impl_.filters_);
- swap(_impl_.op_, other->_impl_.op_);
- }
- ::google::protobuf::Metadata StructuredQuery_CompositeFilter::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[2]);
- }
- // ===================================================================
- class StructuredQuery_FieldFilter::_Internal {
- public:
- using HasBits = decltype(std::declval<StructuredQuery_FieldFilter>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_._has_bits_);
- static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredQuery_FieldFilter* msg);
- static void set_has_field(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::google::firestore::v1::Value& value(const StructuredQuery_FieldFilter* msg);
- static void set_has_value(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- };
- const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_FieldFilter::_Internal::field(const StructuredQuery_FieldFilter* msg) {
- return *msg->_impl_.field_;
- }
- const ::google::firestore::v1::Value& StructuredQuery_FieldFilter::_Internal::value(const StructuredQuery_FieldFilter* msg) {
- return *msg->_impl_.value_;
- }
- void StructuredQuery_FieldFilter::clear_value() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (_impl_.value_ != nullptr) _impl_.value_->Clear();
- _impl_._has_bits_[0] &= ~0x00000002u;
- }
- StructuredQuery_FieldFilter::StructuredQuery_FieldFilter(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.FieldFilter)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_FieldFilter::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : _has_bits_{from._has_bits_},
- _cached_size_{0} {}
- StructuredQuery_FieldFilter::StructuredQuery_FieldFilter(
- ::google::protobuf::Arena* arena,
- const StructuredQuery_FieldFilter& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery_FieldFilter* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- ::uint32_t cached_has_bits = _impl_._has_bits_[0];
- _impl_.field_ = (cached_has_bits & 0x00000001u)
- ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.field_)
- : nullptr;
- _impl_.value_ = (cached_has_bits & 0x00000002u)
- ? CreateMaybeMessage<::google::firestore::v1::Value>(arena, *from._impl_.value_)
- : nullptr;
- _impl_.op_ = from._impl_.op_;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.FieldFilter)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_FieldFilter::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0} {}
- inline void StructuredQuery_FieldFilter::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- ::memset(reinterpret_cast<char *>(&_impl_) +
- offsetof(Impl_, field_),
- 0,
- offsetof(Impl_, op_) -
- offsetof(Impl_, field_) +
- sizeof(Impl_::op_));
- }
- StructuredQuery_FieldFilter::~StructuredQuery_FieldFilter() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.FieldFilter)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery_FieldFilter::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- delete _impl_.field_;
- delete _impl_.value_;
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredQuery_FieldFilter::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.FieldFilter)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.field_ != nullptr);
- _impl_.field_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- ABSL_DCHECK(_impl_.value_ != nullptr);
- _impl_.value_->Clear();
- }
- }
- _impl_.op_ = 0;
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery_FieldFilter::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<2, 3, 2, 0, 2> StructuredQuery_FieldFilter::_table_ = {
- {
- PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_._has_bits_),
- 0, // no _extensions_
- 3, 24, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967288, // skipmap
- offsetof(decltype(_table_), field_entries),
- 3, // num_field_entries
- 2, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredQuery_FieldFilter_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- {::_pbi::TcParser::FastMtS1,
- {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.field_)}},
- // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery_FieldFilter, _impl_.op_), 63>(),
- {16, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.op_)}},
- // .google.firestore.v1.Value value = 3;
- {::_pbi::TcParser::FastMtS1,
- {26, 1, 1, PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.value_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.field_), _Internal::kHasBitsOffset + 0, 0,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.op_), -1, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
- // .google.firestore.v1.Value value = 3;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.value_), _Internal::kHasBitsOffset + 1, 1,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredQuery_FieldFilter::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.FieldFilter)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::field(this),
- _Internal::field(this).GetCachedSize(), target, stream);
- }
- // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
- if (this->_internal_op() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 2, this->_internal_op(), target);
- }
- // .google.firestore.v1.Value value = 3;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 3, _Internal::value(this),
- _Internal::value(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.FieldFilter)
- return target;
- }
- ::size_t StructuredQuery_FieldFilter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.FieldFilter)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- if (cached_has_bits & 0x00000001u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_);
- }
- // .google.firestore.v1.Value value = 3;
- if (cached_has_bits & 0x00000002u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_);
- }
- }
- // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
- if (this->_internal_op() != 0) {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_op());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery_FieldFilter::_class_data_ = {
- StructuredQuery_FieldFilter::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery_FieldFilter::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery_FieldFilter::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery_FieldFilter*>(&to_msg);
- auto& from = static_cast<const StructuredQuery_FieldFilter&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.FieldFilter)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
- from._internal_field());
- }
- if (cached_has_bits & 0x00000002u) {
- _this->_internal_mutable_value()->::google::firestore::v1::Value::MergeFrom(
- from._internal_value());
- }
- }
- if (from._internal_op() != 0) {
- _this->_internal_set_op(from._internal_op());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery_FieldFilter::CopyFrom(const StructuredQuery_FieldFilter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.FieldFilter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery_FieldFilter::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery_FieldFilter::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery_FieldFilter::InternalSwap(StructuredQuery_FieldFilter* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- ::google::protobuf::internal::memswap<
- PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.op_)
- + sizeof(StructuredQuery_FieldFilter::_impl_.op_)
- - PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldFilter, _impl_.field_)>(
- reinterpret_cast<char*>(&_impl_.field_),
- reinterpret_cast<char*>(&other->_impl_.field_));
- }
- ::google::protobuf::Metadata StructuredQuery_FieldFilter::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[3]);
- }
- // ===================================================================
- class StructuredQuery_UnaryFilter::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredQuery_UnaryFilter, _impl_._oneof_case_);
- static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredQuery_UnaryFilter* msg);
- };
- const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_UnaryFilter::_Internal::field(const StructuredQuery_UnaryFilter* msg) {
- return *msg->_impl_.operand_type_.field_;
- }
- void StructuredQuery_UnaryFilter::set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* field) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_operand_type();
- if (field) {
- ::google::protobuf::Arena* submessage_arena = field->GetArena();
- if (message_arena != submessage_arena) {
- field = ::google::protobuf::internal::GetOwnedMessage(message_arena, field, submessage_arena);
- }
- set_has_field();
- _impl_.operand_type_.field_ = field;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.UnaryFilter.field)
- }
- StructuredQuery_UnaryFilter::StructuredQuery_UnaryFilter(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.UnaryFilter)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_UnaryFilter::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : operand_type_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- StructuredQuery_UnaryFilter::StructuredQuery_UnaryFilter(
- ::google::protobuf::Arena* arena,
- const StructuredQuery_UnaryFilter& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery_UnaryFilter* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- _impl_.op_ = from._impl_.op_;
- switch (operand_type_case()) {
- case OPERAND_TYPE_NOT_SET:
- break;
- case kField:
- _impl_.operand_type_.field_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.operand_type_.field_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.UnaryFilter)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_UnaryFilter::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : operand_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void StructuredQuery_UnaryFilter::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- _impl_.op_ = {};
- }
- StructuredQuery_UnaryFilter::~StructuredQuery_UnaryFilter() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.UnaryFilter)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery_UnaryFilter::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- if (has_operand_type()) {
- clear_operand_type();
- }
- _impl_.~Impl_();
- }
- void StructuredQuery_UnaryFilter::clear_operand_type() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.StructuredQuery.UnaryFilter)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (operand_type_case()) {
- case kField: {
- if (GetArena() == nullptr) {
- delete _impl_.operand_type_.field_;
- }
- break;
- }
- case OPERAND_TYPE_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = OPERAND_TYPE_NOT_SET;
- }
- PROTOBUF_NOINLINE void StructuredQuery_UnaryFilter::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.UnaryFilter)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.op_ = 0;
- clear_operand_type();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery_UnaryFilter::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 2, 1, 0, 2> StructuredQuery_UnaryFilter::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 2, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967292, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredQuery_UnaryFilter_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery_UnaryFilter, _impl_.op_), 63>(),
- {8, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_UnaryFilter, _impl_.op_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_UnaryFilter, _impl_.op_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
- // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_UnaryFilter, _impl_.operand_type_.field_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredQuery_UnaryFilter::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.UnaryFilter)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
- if (this->_internal_op() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_op(), target);
- }
- // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
- if (operand_type_case() == kField) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 2, _Internal::field(this),
- _Internal::field(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.UnaryFilter)
- return target;
- }
- ::size_t StructuredQuery_UnaryFilter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.UnaryFilter)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
- if (this->_internal_op() != 0) {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_op());
- }
- switch (operand_type_case()) {
- // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
- case kField: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operand_type_.field_);
- break;
- }
- case OPERAND_TYPE_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery_UnaryFilter::_class_data_ = {
- StructuredQuery_UnaryFilter::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery_UnaryFilter::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery_UnaryFilter::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery_UnaryFilter*>(&to_msg);
- auto& from = static_cast<const StructuredQuery_UnaryFilter&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.UnaryFilter)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_op() != 0) {
- _this->_internal_set_op(from._internal_op());
- }
- switch (from.operand_type_case()) {
- case kField: {
- _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
- from._internal_field());
- break;
- }
- case OPERAND_TYPE_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery_UnaryFilter::CopyFrom(const StructuredQuery_UnaryFilter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.UnaryFilter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery_UnaryFilter::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery_UnaryFilter::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery_UnaryFilter::InternalSwap(StructuredQuery_UnaryFilter* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.op_, other->_impl_.op_);
- swap(_impl_.operand_type_, other->_impl_.operand_type_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata StructuredQuery_UnaryFilter::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[4]);
- }
- // ===================================================================
- class StructuredQuery_Order::_Internal {
- public:
- using HasBits = decltype(std::declval<StructuredQuery_Order>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_._has_bits_);
- static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredQuery_Order* msg);
- static void set_has_field(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_Order::_Internal::field(const StructuredQuery_Order* msg) {
- return *msg->_impl_.field_;
- }
- StructuredQuery_Order::StructuredQuery_Order(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.Order)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Order::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : _has_bits_{from._has_bits_},
- _cached_size_{0} {}
- StructuredQuery_Order::StructuredQuery_Order(
- ::google::protobuf::Arena* arena,
- const StructuredQuery_Order& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery_Order* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- ::uint32_t cached_has_bits = _impl_._has_bits_[0];
- _impl_.field_ = (cached_has_bits & 0x00000001u)
- ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.field_)
- : nullptr;
- _impl_.direction_ = from._impl_.direction_;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.Order)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Order::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0} {}
- inline void StructuredQuery_Order::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- ::memset(reinterpret_cast<char *>(&_impl_) +
- offsetof(Impl_, field_),
- 0,
- offsetof(Impl_, direction_) -
- offsetof(Impl_, field_) +
- sizeof(Impl_::direction_));
- }
- StructuredQuery_Order::~StructuredQuery_Order() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.Order)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery_Order::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- delete _impl_.field_;
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredQuery_Order::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.Order)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.field_ != nullptr);
- _impl_.field_->Clear();
- }
- _impl_.direction_ = 0;
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery_Order::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<1, 2, 1, 0, 2> StructuredQuery_Order::_table_ = {
- {
- PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_._has_bits_),
- 0, // no _extensions_
- 2, 8, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967292, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredQuery_Order_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // .google.firestore.v1.StructuredQuery.Direction direction = 2;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery_Order, _impl_.direction_), 63>(),
- {16, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.direction_)}},
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- {::_pbi::TcParser::FastMtS1,
- {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.field_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.field_), _Internal::kHasBitsOffset + 0, 0,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.StructuredQuery.Direction direction = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.direction_), -1, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredQuery_Order::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.Order)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::field(this),
- _Internal::field(this).GetCachedSize(), target, stream);
- }
- // .google.firestore.v1.StructuredQuery.Direction direction = 2;
- if (this->_internal_direction() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 2, this->_internal_direction(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.Order)
- return target;
- }
- ::size_t StructuredQuery_Order::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.Order)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_);
- }
- // .google.firestore.v1.StructuredQuery.Direction direction = 2;
- if (this->_internal_direction() != 0) {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_direction());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery_Order::_class_data_ = {
- StructuredQuery_Order::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery_Order::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery_Order::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery_Order*>(&to_msg);
- auto& from = static_cast<const StructuredQuery_Order&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.Order)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
- from._internal_field());
- }
- if (from._internal_direction() != 0) {
- _this->_internal_set_direction(from._internal_direction());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery_Order::CopyFrom(const StructuredQuery_Order& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.Order)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery_Order::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery_Order::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery_Order::InternalSwap(StructuredQuery_Order* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- ::google::protobuf::internal::memswap<
- PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.direction_)
- + sizeof(StructuredQuery_Order::_impl_.direction_)
- - PROTOBUF_FIELD_OFFSET(StructuredQuery_Order, _impl_.field_)>(
- reinterpret_cast<char*>(&_impl_.field_),
- reinterpret_cast<char*>(&other->_impl_.field_));
- }
- ::google::protobuf::Metadata StructuredQuery_Order::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[5]);
- }
- // ===================================================================
- class StructuredQuery_FieldReference::_Internal {
- public:
- };
- StructuredQuery_FieldReference::StructuredQuery_FieldReference(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.FieldReference)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_FieldReference::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : field_path_(arena, from.field_path_),
- _cached_size_{0} {}
- StructuredQuery_FieldReference::StructuredQuery_FieldReference(
- ::google::protobuf::Arena* arena,
- const StructuredQuery_FieldReference& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery_FieldReference* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.FieldReference)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_FieldReference::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : field_path_(arena),
- _cached_size_{0} {}
- inline void StructuredQuery_FieldReference::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- StructuredQuery_FieldReference::~StructuredQuery_FieldReference() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.FieldReference)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery_FieldReference::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.field_path_.Destroy();
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredQuery_FieldReference::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.FieldReference)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.field_path_.ClearToEmpty();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery_FieldReference::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 0, 69, 2> StructuredQuery_FieldReference::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 2, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967293, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- &_StructuredQuery_FieldReference_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // string field_path = 2;
- {::_pbi::TcParser::FastUS1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldReference, _impl_.field_path_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // string field_path = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_FieldReference, _impl_.field_path_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- }},
- // no aux_entries
- {{
- "\62\12\0\0\0\0\0\0"
- "google.firestore.v1.StructuredQuery.FieldReference"
- "field_path"
- }},
- };
- ::uint8_t* StructuredQuery_FieldReference::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.FieldReference)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string field_path = 2;
- if (!this->_internal_field_path().empty()) {
- const std::string& _s = this->_internal_field_path();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.StructuredQuery.FieldReference.field_path");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.FieldReference)
- return target;
- }
- ::size_t StructuredQuery_FieldReference::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.FieldReference)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string field_path = 2;
- if (!this->_internal_field_path().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_field_path());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery_FieldReference::_class_data_ = {
- StructuredQuery_FieldReference::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery_FieldReference::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery_FieldReference::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery_FieldReference*>(&to_msg);
- auto& from = static_cast<const StructuredQuery_FieldReference&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.FieldReference)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_field_path().empty()) {
- _this->_internal_set_field_path(from._internal_field_path());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery_FieldReference::CopyFrom(const StructuredQuery_FieldReference& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.FieldReference)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery_FieldReference::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery_FieldReference::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery_FieldReference::InternalSwap(StructuredQuery_FieldReference* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.field_path_, &other->_impl_.field_path_, arena);
- }
- ::google::protobuf::Metadata StructuredQuery_FieldReference::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[6]);
- }
- // ===================================================================
- class StructuredQuery_Projection::_Internal {
- public:
- };
- StructuredQuery_Projection::StructuredQuery_Projection(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery.Projection)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Projection::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : fields_{visibility, arena, from.fields_},
- _cached_size_{0} {}
- StructuredQuery_Projection::StructuredQuery_Projection(
- ::google::protobuf::Arena* arena,
- const StructuredQuery_Projection& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery_Projection* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery.Projection)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery_Projection::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : fields_{visibility, arena},
- _cached_size_{0} {}
- inline void StructuredQuery_Projection::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- StructuredQuery_Projection::~StructuredQuery_Projection() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery.Projection)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery_Projection::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredQuery_Projection::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery.Projection)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.fields_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery_Projection::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StructuredQuery_Projection::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 2, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967293, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredQuery_Projection_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
- {::_pbi::TcParser::FastMtR1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery_Projection, _impl_.fields_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery_Projection, _impl_.fields_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredQuery_Projection::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery.Projection)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_fields_size()); i < n; i++) {
- const auto& repfield = this->_internal_fields().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery.Projection)
- return target;
- }
- ::size_t StructuredQuery_Projection::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery.Projection)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
- total_size += 1UL * this->_internal_fields_size();
- for (const auto& msg : this->_internal_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery_Projection::_class_data_ = {
- StructuredQuery_Projection::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery_Projection::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery_Projection::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery_Projection*>(&to_msg);
- auto& from = static_cast<const StructuredQuery_Projection&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery.Projection)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_fields()->MergeFrom(
- from._internal_fields());
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery_Projection::CopyFrom(const StructuredQuery_Projection& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery.Projection)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery_Projection::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery_Projection::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery_Projection::InternalSwap(StructuredQuery_Projection* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.fields_.InternalSwap(&other->_impl_.fields_);
- }
- ::google::protobuf::Metadata StructuredQuery_Projection::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[7]);
- }
- // ===================================================================
- class StructuredQuery::_Internal {
- public:
- using HasBits = decltype(std::declval<StructuredQuery>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_._has_bits_);
- static const ::google::firestore::v1::StructuredQuery_Projection& select(const StructuredQuery* msg);
- static void set_has_select(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::google::firestore::v1::StructuredQuery_Filter& where(const StructuredQuery* msg);
- static void set_has_where(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static const ::google::firestore::v1::Cursor& start_at(const StructuredQuery* msg);
- static void set_has_start_at(HasBits* has_bits) {
- (*has_bits)[0] |= 8u;
- }
- static const ::google::firestore::v1::Cursor& end_at(const StructuredQuery* msg);
- static void set_has_end_at(HasBits* has_bits) {
- (*has_bits)[0] |= 16u;
- }
- static const ::google::protobuf::Int32Value& limit(const StructuredQuery* msg);
- static void set_has_limit(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- };
- const ::google::firestore::v1::StructuredQuery_Projection& StructuredQuery::_Internal::select(const StructuredQuery* msg) {
- return *msg->_impl_.select_;
- }
- const ::google::firestore::v1::StructuredQuery_Filter& StructuredQuery::_Internal::where(const StructuredQuery* msg) {
- return *msg->_impl_.where_;
- }
- const ::google::firestore::v1::Cursor& StructuredQuery::_Internal::start_at(const StructuredQuery* msg) {
- return *msg->_impl_.start_at_;
- }
- const ::google::firestore::v1::Cursor& StructuredQuery::_Internal::end_at(const StructuredQuery* msg) {
- return *msg->_impl_.end_at_;
- }
- const ::google::protobuf::Int32Value& StructuredQuery::_Internal::limit(const StructuredQuery* msg) {
- return *msg->_impl_.limit_;
- }
- void StructuredQuery::clear_limit() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (_impl_.limit_ != nullptr) _impl_.limit_->Clear();
- _impl_._has_bits_[0] &= ~0x00000004u;
- }
- StructuredQuery::StructuredQuery(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredQuery)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : _has_bits_{from._has_bits_},
- _cached_size_{0},
- from_{visibility, arena, from.from_},
- order_by_{visibility, arena, from.order_by_} {}
- StructuredQuery::StructuredQuery(
- ::google::protobuf::Arena* arena,
- const StructuredQuery& from)
- : ::google::protobuf::Message(arena) {
- StructuredQuery* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- ::uint32_t cached_has_bits = _impl_._has_bits_[0];
- _impl_.select_ = (cached_has_bits & 0x00000001u)
- ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_Projection>(arena, *from._impl_.select_)
- : nullptr;
- _impl_.where_ = (cached_has_bits & 0x00000002u)
- ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_Filter>(arena, *from._impl_.where_)
- : nullptr;
- _impl_.limit_ = (cached_has_bits & 0x00000004u)
- ? CreateMaybeMessage<::google::protobuf::Int32Value>(arena, *from._impl_.limit_)
- : nullptr;
- _impl_.start_at_ = (cached_has_bits & 0x00000008u)
- ? CreateMaybeMessage<::google::firestore::v1::Cursor>(arena, *from._impl_.start_at_)
- : nullptr;
- _impl_.end_at_ = (cached_has_bits & 0x00000010u)
- ? CreateMaybeMessage<::google::firestore::v1::Cursor>(arena, *from._impl_.end_at_)
- : nullptr;
- _impl_.offset_ = from._impl_.offset_;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredQuery)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredQuery::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0},
- from_{visibility, arena},
- order_by_{visibility, arena} {}
- inline void StructuredQuery::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- ::memset(reinterpret_cast<char *>(&_impl_) +
- offsetof(Impl_, select_),
- 0,
- offsetof(Impl_, offset_) -
- offsetof(Impl_, select_) +
- sizeof(Impl_::offset_));
- }
- StructuredQuery::~StructuredQuery() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredQuery)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredQuery::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- delete _impl_.select_;
- delete _impl_.where_;
- delete _impl_.limit_;
- delete _impl_.start_at_;
- delete _impl_.end_at_;
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredQuery::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredQuery)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.from_.Clear();
- _impl_.order_by_.Clear();
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x0000001fu) {
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.select_ != nullptr);
- _impl_.select_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- ABSL_DCHECK(_impl_.where_ != nullptr);
- _impl_.where_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- ABSL_DCHECK(_impl_.limit_ != nullptr);
- _impl_.limit_->Clear();
- }
- if (cached_has_bits & 0x00000008u) {
- ABSL_DCHECK(_impl_.start_at_ != nullptr);
- _impl_.start_at_->Clear();
- }
- if (cached_has_bits & 0x00000010u) {
- ABSL_DCHECK(_impl_.end_at_ != nullptr);
- _impl_.end_at_->Clear();
- }
- }
- _impl_.offset_ = 0;
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredQuery::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<3, 8, 7, 0, 2> StructuredQuery::_table_ = {
- {
- PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_._has_bits_),
- 0, // no _extensions_
- 8, 56, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967040, // skipmap
- offsetof(decltype(_table_), field_entries),
- 8, // num_field_entries
- 7, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredQuery_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // .google.firestore.v1.Cursor end_at = 8;
- {::_pbi::TcParser::FastMtS1,
- {66, 4, 6, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.end_at_)}},
- // .google.firestore.v1.StructuredQuery.Projection select = 1;
- {::_pbi::TcParser::FastMtS1,
- {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.select_)}},
- // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
- {::_pbi::TcParser::FastMtR1,
- {18, 63, 1, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.from_)}},
- // .google.firestore.v1.StructuredQuery.Filter where = 3;
- {::_pbi::TcParser::FastMtS1,
- {26, 1, 2, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.where_)}},
- // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
- {::_pbi::TcParser::FastMtR1,
- {34, 63, 3, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.order_by_)}},
- // .google.protobuf.Int32Value limit = 5;
- {::_pbi::TcParser::FastMtS1,
- {42, 2, 4, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.limit_)}},
- // int32 offset = 6;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StructuredQuery, _impl_.offset_), 63>(),
- {48, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.offset_)}},
- // .google.firestore.v1.Cursor start_at = 7;
- {::_pbi::TcParser::FastMtS1,
- {58, 3, 5, PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.start_at_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery.Projection select = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.select_), _Internal::kHasBitsOffset + 0, 0,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.from_), -1, 1,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.StructuredQuery.Filter where = 3;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.where_), _Internal::kHasBitsOffset + 1, 2,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.order_by_), -1, 3,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.protobuf.Int32Value limit = 5;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.limit_), _Internal::kHasBitsOffset + 2, 4,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- // int32 offset = 6;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.offset_), -1, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kInt32)},
- // .google.firestore.v1.Cursor start_at = 7;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.start_at_), _Internal::kHasBitsOffset + 3, 5,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.Cursor end_at = 8;
- {PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.end_at_), _Internal::kHasBitsOffset + 4, 6,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_Projection>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_CollectionSelector>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_Filter>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_Order>()},
- {::_pbi::TcParser::GetTable<::google::protobuf::Int32Value>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Cursor>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Cursor>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredQuery::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredQuery)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- // .google.firestore.v1.StructuredQuery.Projection select = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::select(this),
- _Internal::select(this).GetCachedSize(), target, stream);
- }
- // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_from_size()); i < n; i++) {
- const auto& repfield = this->_internal_from().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
- // .google.firestore.v1.StructuredQuery.Filter where = 3;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 3, _Internal::where(this),
- _Internal::where(this).GetCachedSize(), target, stream);
- }
- // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_order_by_size()); i < n; i++) {
- const auto& repfield = this->_internal_order_by().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
- }
- // .google.protobuf.Int32Value limit = 5;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 5, _Internal::limit(this),
- _Internal::limit(this).GetCachedSize(), target, stream);
- }
- // int32 offset = 6;
- if (this->_internal_offset() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteInt32ToArrayWithField<6>(
- stream, this->_internal_offset(), target);
- }
- // .google.firestore.v1.Cursor start_at = 7;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 7, _Internal::start_at(this),
- _Internal::start_at(this).GetCachedSize(), target, stream);
- }
- // .google.firestore.v1.Cursor end_at = 8;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 8, _Internal::end_at(this),
- _Internal::end_at(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredQuery)
- return target;
- }
- ::size_t StructuredQuery::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredQuery)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
- total_size += 1UL * this->_internal_from_size();
- for (const auto& msg : this->_internal_from()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
- total_size += 1UL * this->_internal_order_by_size();
- for (const auto& msg : this->_internal_order_by()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x0000001fu) {
- // .google.firestore.v1.StructuredQuery.Projection select = 1;
- if (cached_has_bits & 0x00000001u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.select_);
- }
- // .google.firestore.v1.StructuredQuery.Filter where = 3;
- if (cached_has_bits & 0x00000002u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.where_);
- }
- // .google.protobuf.Int32Value limit = 5;
- if (cached_has_bits & 0x00000004u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.limit_);
- }
- // .google.firestore.v1.Cursor start_at = 7;
- if (cached_has_bits & 0x00000008u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.start_at_);
- }
- // .google.firestore.v1.Cursor end_at = 8;
- if (cached_has_bits & 0x00000010u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.end_at_);
- }
- }
- // int32 offset = 6;
- if (this->_internal_offset() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_offset());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredQuery::_class_data_ = {
- StructuredQuery::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredQuery::GetClassData() const {
- return &_class_data_;
- }
- void StructuredQuery::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredQuery*>(&to_msg);
- auto& from = static_cast<const StructuredQuery&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredQuery)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_from()->MergeFrom(
- from._internal_from());
- _this->_internal_mutable_order_by()->MergeFrom(
- from._internal_order_by());
- cached_has_bits = from._impl_._has_bits_[0];
- if (cached_has_bits & 0x0000001fu) {
- if (cached_has_bits & 0x00000001u) {
- _this->_internal_mutable_select()->::google::firestore::v1::StructuredQuery_Projection::MergeFrom(
- from._internal_select());
- }
- if (cached_has_bits & 0x00000002u) {
- _this->_internal_mutable_where()->::google::firestore::v1::StructuredQuery_Filter::MergeFrom(
- from._internal_where());
- }
- if (cached_has_bits & 0x00000004u) {
- _this->_internal_mutable_limit()->::google::protobuf::Int32Value::MergeFrom(
- from._internal_limit());
- }
- if (cached_has_bits & 0x00000008u) {
- _this->_internal_mutable_start_at()->::google::firestore::v1::Cursor::MergeFrom(
- from._internal_start_at());
- }
- if (cached_has_bits & 0x00000010u) {
- _this->_internal_mutable_end_at()->::google::firestore::v1::Cursor::MergeFrom(
- from._internal_end_at());
- }
- }
- if (from._internal_offset() != 0) {
- _this->_internal_set_offset(from._internal_offset());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredQuery::CopyFrom(const StructuredQuery& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredQuery)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredQuery::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredQuery::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredQuery::InternalSwap(StructuredQuery* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- _impl_.from_.InternalSwap(&other->_impl_.from_);
- _impl_.order_by_.InternalSwap(&other->_impl_.order_by_);
- ::google::protobuf::internal::memswap<
- PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.offset_)
- + sizeof(StructuredQuery::_impl_.offset_)
- - PROTOBUF_FIELD_OFFSET(StructuredQuery, _impl_.select_)>(
- reinterpret_cast<char*>(&_impl_.select_),
- reinterpret_cast<char*>(&other->_impl_.select_));
- }
- ::google::protobuf::Metadata StructuredQuery::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[8]);
- }
- // ===================================================================
- class StructuredAggregationQuery_Aggregation_Count::_Internal {
- public:
- using HasBits = decltype(std::declval<StructuredAggregationQuery_Aggregation_Count>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Count, _impl_._has_bits_);
- static const ::google::protobuf::Int64Value& up_to(const StructuredAggregationQuery_Aggregation_Count* msg);
- static void set_has_up_to(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- const ::google::protobuf::Int64Value& StructuredAggregationQuery_Aggregation_Count::_Internal::up_to(const StructuredAggregationQuery_Aggregation_Count* msg) {
- return *msg->_impl_.up_to_;
- }
- void StructuredAggregationQuery_Aggregation_Count::clear_up_to() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (_impl_.up_to_ != nullptr) _impl_.up_to_->Clear();
- _impl_._has_bits_[0] &= ~0x00000001u;
- }
- StructuredAggregationQuery_Aggregation_Count::StructuredAggregationQuery_Aggregation_Count(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Count::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : _has_bits_{from._has_bits_},
- _cached_size_{0} {}
- StructuredAggregationQuery_Aggregation_Count::StructuredAggregationQuery_Aggregation_Count(
- ::google::protobuf::Arena* arena,
- const StructuredAggregationQuery_Aggregation_Count& from)
- : ::google::protobuf::Message(arena) {
- StructuredAggregationQuery_Aggregation_Count* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- ::uint32_t cached_has_bits = _impl_._has_bits_[0];
- _impl_.up_to_ = (cached_has_bits & 0x00000001u)
- ? CreateMaybeMessage<::google::protobuf::Int64Value>(arena, *from._impl_.up_to_)
- : nullptr;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Count::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0} {}
- inline void StructuredAggregationQuery_Aggregation_Count::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- _impl_.up_to_ = {};
- }
- StructuredAggregationQuery_Aggregation_Count::~StructuredAggregationQuery_Aggregation_Count() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredAggregationQuery_Aggregation_Count::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- delete _impl_.up_to_;
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredAggregationQuery_Aggregation_Count::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.up_to_ != nullptr);
- _impl_.up_to_->Clear();
- }
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredAggregationQuery_Aggregation_Count::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StructuredAggregationQuery_Aggregation_Count::_table_ = {
- {
- PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Count, _impl_._has_bits_),
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredAggregationQuery_Aggregation_Count_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // .google.protobuf.Int64Value up_to = 1;
- {::_pbi::TcParser::FastMtS1,
- {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Count, _impl_.up_to_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.protobuf.Int64Value up_to = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Count, _impl_.up_to_), _Internal::kHasBitsOffset + 0, 0,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::protobuf::Int64Value>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredAggregationQuery_Aggregation_Count::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- // .google.protobuf.Int64Value up_to = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::up_to(this),
- _Internal::up_to(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- return target;
- }
- ::size_t StructuredAggregationQuery_Aggregation_Count::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // .google.protobuf.Int64Value up_to = 1;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.up_to_);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredAggregationQuery_Aggregation_Count::_class_data_ = {
- StructuredAggregationQuery_Aggregation_Count::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredAggregationQuery_Aggregation_Count::GetClassData() const {
- return &_class_data_;
- }
- void StructuredAggregationQuery_Aggregation_Count::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredAggregationQuery_Aggregation_Count*>(&to_msg);
- auto& from = static_cast<const StructuredAggregationQuery_Aggregation_Count&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_internal_mutable_up_to()->::google::protobuf::Int64Value::MergeFrom(
- from._internal_up_to());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredAggregationQuery_Aggregation_Count::CopyFrom(const StructuredAggregationQuery_Aggregation_Count& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredAggregationQuery_Aggregation_Count::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredAggregationQuery_Aggregation_Count::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredAggregationQuery_Aggregation_Count::InternalSwap(StructuredAggregationQuery_Aggregation_Count* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- swap(_impl_.up_to_, other->_impl_.up_to_);
- }
- ::google::protobuf::Metadata StructuredAggregationQuery_Aggregation_Count::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[9]);
- }
- // ===================================================================
- class StructuredAggregationQuery_Aggregation_Sum::_Internal {
- public:
- using HasBits = decltype(std::declval<StructuredAggregationQuery_Aggregation_Sum>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Sum, _impl_._has_bits_);
- static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredAggregationQuery_Aggregation_Sum* msg);
- static void set_has_field(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredAggregationQuery_Aggregation_Sum::_Internal::field(const StructuredAggregationQuery_Aggregation_Sum* msg) {
- return *msg->_impl_.field_;
- }
- StructuredAggregationQuery_Aggregation_Sum::StructuredAggregationQuery_Aggregation_Sum(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Sum::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : _has_bits_{from._has_bits_},
- _cached_size_{0} {}
- StructuredAggregationQuery_Aggregation_Sum::StructuredAggregationQuery_Aggregation_Sum(
- ::google::protobuf::Arena* arena,
- const StructuredAggregationQuery_Aggregation_Sum& from)
- : ::google::protobuf::Message(arena) {
- StructuredAggregationQuery_Aggregation_Sum* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- ::uint32_t cached_has_bits = _impl_._has_bits_[0];
- _impl_.field_ = (cached_has_bits & 0x00000001u)
- ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.field_)
- : nullptr;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Sum::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0} {}
- inline void StructuredAggregationQuery_Aggregation_Sum::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- _impl_.field_ = {};
- }
- StructuredAggregationQuery_Aggregation_Sum::~StructuredAggregationQuery_Aggregation_Sum() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredAggregationQuery_Aggregation_Sum::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- delete _impl_.field_;
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredAggregationQuery_Aggregation_Sum::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.field_ != nullptr);
- _impl_.field_->Clear();
- }
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredAggregationQuery_Aggregation_Sum::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StructuredAggregationQuery_Aggregation_Sum::_table_ = {
- {
- PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Sum, _impl_._has_bits_),
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredAggregationQuery_Aggregation_Sum_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- {::_pbi::TcParser::FastMtS1,
- {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Sum, _impl_.field_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Sum, _impl_.field_), _Internal::kHasBitsOffset + 0, 0,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredAggregationQuery_Aggregation_Sum::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::field(this),
- _Internal::field(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- return target;
- }
- ::size_t StructuredAggregationQuery_Aggregation_Sum::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredAggregationQuery_Aggregation_Sum::_class_data_ = {
- StructuredAggregationQuery_Aggregation_Sum::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredAggregationQuery_Aggregation_Sum::GetClassData() const {
- return &_class_data_;
- }
- void StructuredAggregationQuery_Aggregation_Sum::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredAggregationQuery_Aggregation_Sum*>(&to_msg);
- auto& from = static_cast<const StructuredAggregationQuery_Aggregation_Sum&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
- from._internal_field());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredAggregationQuery_Aggregation_Sum::CopyFrom(const StructuredAggregationQuery_Aggregation_Sum& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredAggregationQuery_Aggregation_Sum::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredAggregationQuery_Aggregation_Sum::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredAggregationQuery_Aggregation_Sum::InternalSwap(StructuredAggregationQuery_Aggregation_Sum* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- swap(_impl_.field_, other->_impl_.field_);
- }
- ::google::protobuf::Metadata StructuredAggregationQuery_Aggregation_Sum::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[10]);
- }
- // ===================================================================
- class StructuredAggregationQuery_Aggregation_Avg::_Internal {
- public:
- using HasBits = decltype(std::declval<StructuredAggregationQuery_Aggregation_Avg>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Avg, _impl_._has_bits_);
- static const ::google::firestore::v1::StructuredQuery_FieldReference& field(const StructuredAggregationQuery_Aggregation_Avg* msg);
- static void set_has_field(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredAggregationQuery_Aggregation_Avg::_Internal::field(const StructuredAggregationQuery_Aggregation_Avg* msg) {
- return *msg->_impl_.field_;
- }
- StructuredAggregationQuery_Aggregation_Avg::StructuredAggregationQuery_Aggregation_Avg(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Avg::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : _has_bits_{from._has_bits_},
- _cached_size_{0} {}
- StructuredAggregationQuery_Aggregation_Avg::StructuredAggregationQuery_Aggregation_Avg(
- ::google::protobuf::Arena* arena,
- const StructuredAggregationQuery_Aggregation_Avg& from)
- : ::google::protobuf::Message(arena) {
- StructuredAggregationQuery_Aggregation_Avg* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- ::uint32_t cached_has_bits = _impl_._has_bits_[0];
- _impl_.field_ = (cached_has_bits & 0x00000001u)
- ? CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(arena, *from._impl_.field_)
- : nullptr;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation_Avg::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0} {}
- inline void StructuredAggregationQuery_Aggregation_Avg::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- _impl_.field_ = {};
- }
- StructuredAggregationQuery_Aggregation_Avg::~StructuredAggregationQuery_Aggregation_Avg() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredAggregationQuery_Aggregation_Avg::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- delete _impl_.field_;
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void StructuredAggregationQuery_Aggregation_Avg::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.field_ != nullptr);
- _impl_.field_->Clear();
- }
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredAggregationQuery_Aggregation_Avg::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StructuredAggregationQuery_Aggregation_Avg::_table_ = {
- {
- PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Avg, _impl_._has_bits_),
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredAggregationQuery_Aggregation_Avg_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- {::_pbi::TcParser::FastMtS1,
- {10, 0, 0, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Avg, _impl_.field_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation_Avg, _impl_.field_), _Internal::kHasBitsOffset + 0, 0,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery_FieldReference>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredAggregationQuery_Aggregation_Avg::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::field(this),
- _Internal::field(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- return target;
- }
- ::size_t StructuredAggregationQuery_Aggregation_Avg::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredAggregationQuery_Aggregation_Avg::_class_data_ = {
- StructuredAggregationQuery_Aggregation_Avg::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredAggregationQuery_Aggregation_Avg::GetClassData() const {
- return &_class_data_;
- }
- void StructuredAggregationQuery_Aggregation_Avg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredAggregationQuery_Aggregation_Avg*>(&to_msg);
- auto& from = static_cast<const StructuredAggregationQuery_Aggregation_Avg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_internal_mutable_field()->::google::firestore::v1::StructuredQuery_FieldReference::MergeFrom(
- from._internal_field());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredAggregationQuery_Aggregation_Avg::CopyFrom(const StructuredAggregationQuery_Aggregation_Avg& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredAggregationQuery_Aggregation_Avg::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredAggregationQuery_Aggregation_Avg::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredAggregationQuery_Aggregation_Avg::InternalSwap(StructuredAggregationQuery_Aggregation_Avg* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- swap(_impl_.field_, other->_impl_.field_);
- }
- ::google::protobuf::Metadata StructuredAggregationQuery_Aggregation_Avg::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[11]);
- }
- // ===================================================================
- class StructuredAggregationQuery_Aggregation::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery_Aggregation, _impl_._oneof_case_);
- static const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count& count(const StructuredAggregationQuery_Aggregation* msg);
- static const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum& sum(const StructuredAggregationQuery_Aggregation* msg);
- static const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg& avg(const StructuredAggregationQuery_Aggregation* msg);
- };
- const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count& StructuredAggregationQuery_Aggregation::_Internal::count(const StructuredAggregationQuery_Aggregation* msg) {
- return *msg->_impl_.operator_.count_;
- }
- const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum& StructuredAggregationQuery_Aggregation::_Internal::sum(const StructuredAggregationQuery_Aggregation* msg) {
- return *msg->_impl_.operator_.sum_;
- }
- const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg& StructuredAggregationQuery_Aggregation::_Internal::avg(const StructuredAggregationQuery_Aggregation* msg) {
- return *msg->_impl_.operator_.avg_;
- }
- void StructuredAggregationQuery_Aggregation::set_allocated_count(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* count) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_operator();
- if (count) {
- ::google::protobuf::Arena* submessage_arena = count->GetArena();
- if (message_arena != submessage_arena) {
- count = ::google::protobuf::internal::GetOwnedMessage(message_arena, count, submessage_arena);
- }
- set_has_count();
- _impl_.operator_.count_ = count;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.count)
- }
- void StructuredAggregationQuery_Aggregation::set_allocated_sum(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* sum) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_operator();
- if (sum) {
- ::google::protobuf::Arena* submessage_arena = sum->GetArena();
- if (message_arena != submessage_arena) {
- sum = ::google::protobuf::internal::GetOwnedMessage(message_arena, sum, submessage_arena);
- }
- set_has_sum();
- _impl_.operator_.sum_ = sum;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.sum)
- }
- void StructuredAggregationQuery_Aggregation::set_allocated_avg(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* avg) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_operator();
- if (avg) {
- ::google::protobuf::Arena* submessage_arena = avg->GetArena();
- if (message_arena != submessage_arena) {
- avg = ::google::protobuf::internal::GetOwnedMessage(message_arena, avg, submessage_arena);
- }
- set_has_avg();
- _impl_.operator_.avg_ = avg;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.avg)
- }
- StructuredAggregationQuery_Aggregation::StructuredAggregationQuery_Aggregation(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : alias_(arena, from.alias_),
- operator_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- StructuredAggregationQuery_Aggregation::StructuredAggregationQuery_Aggregation(
- ::google::protobuf::Arena* arena,
- const StructuredAggregationQuery_Aggregation& from)
- : ::google::protobuf::Message(arena) {
- StructuredAggregationQuery_Aggregation* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- switch (operator_case()) {
- case OPERATOR_NOT_SET:
- break;
- case kCount:
- _impl_.operator_.count_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count>(arena, *from._impl_.operator_.count_);
- break;
- case kSum:
- _impl_.operator_.sum_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum>(arena, *from._impl_.operator_.sum_);
- break;
- case kAvg:
- _impl_.operator_.avg_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg>(arena, *from._impl_.operator_.avg_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery_Aggregation::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : alias_(arena),
- operator_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void StructuredAggregationQuery_Aggregation::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- StructuredAggregationQuery_Aggregation::~StructuredAggregationQuery_Aggregation() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredAggregationQuery_Aggregation::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.alias_.Destroy();
- if (has_operator()) {
- clear_operator();
- }
- _impl_.~Impl_();
- }
- void StructuredAggregationQuery_Aggregation::clear_operator() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (operator_case()) {
- case kCount: {
- if (GetArena() == nullptr) {
- delete _impl_.operator_.count_;
- }
- break;
- }
- case kSum: {
- if (GetArena() == nullptr) {
- delete _impl_.operator_.sum_;
- }
- break;
- }
- case kAvg: {
- if (GetArena() == nullptr) {
- delete _impl_.operator_.avg_;
- }
- break;
- }
- case OPERATOR_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = OPERATOR_NOT_SET;
- }
- PROTOBUF_NOINLINE void StructuredAggregationQuery_Aggregation::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.alias_.ClearToEmpty();
- clear_operator();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredAggregationQuery_Aggregation::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 4, 3, 72, 2> StructuredAggregationQuery_Aggregation::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 7, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967224, // skipmap
- offsetof(decltype(_table_), field_entries),
- 4, // num_field_entries
- 3, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredAggregationQuery_Aggregation_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // string alias = 7;
- {::_pbi::TcParser::FastUS1,
- {58, 63, 0, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.alias_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.operator_.count_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.operator_.sum_), _Internal::kOneofCaseOffset + 0, 1,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.operator_.avg_), _Internal::kOneofCaseOffset + 0, 2,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // string alias = 7;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery_Aggregation, _impl_.alias_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg>()},
- }}, {{
- "\72\0\0\0\5\0\0\0"
- "google.firestore.v1.StructuredAggregationQuery.Aggregation"
- "alias"
- }},
- };
- ::uint8_t* StructuredAggregationQuery_Aggregation::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- switch (operator_case()) {
- case kCount: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::count(this),
- _Internal::count(this).GetCachedSize(), target, stream);
- break;
- }
- case kSum: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 2, _Internal::sum(this),
- _Internal::sum(this).GetCachedSize(), target, stream);
- break;
- }
- case kAvg: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 3, _Internal::avg(this),
- _Internal::avg(this).GetCachedSize(), target, stream);
- break;
- }
- default:
- break;
- }
- // string alias = 7;
- if (!this->_internal_alias().empty()) {
- const std::string& _s = this->_internal_alias();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.StructuredAggregationQuery.Aggregation.alias");
- target = stream->WriteStringMaybeAliased(7, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- return target;
- }
- ::size_t StructuredAggregationQuery_Aggregation::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string alias = 7;
- if (!this->_internal_alias().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_alias());
- }
- switch (operator_case()) {
- // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1;
- case kCount: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operator_.count_);
- break;
- }
- // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2;
- case kSum: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operator_.sum_);
- break;
- }
- // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3;
- case kAvg: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operator_.avg_);
- break;
- }
- case OPERATOR_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredAggregationQuery_Aggregation::_class_data_ = {
- StructuredAggregationQuery_Aggregation::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredAggregationQuery_Aggregation::GetClassData() const {
- return &_class_data_;
- }
- void StructuredAggregationQuery_Aggregation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredAggregationQuery_Aggregation*>(&to_msg);
- auto& from = static_cast<const StructuredAggregationQuery_Aggregation&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_alias().empty()) {
- _this->_internal_set_alias(from._internal_alias());
- }
- switch (from.operator_case()) {
- case kCount: {
- _this->_internal_mutable_count()->::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count::MergeFrom(
- from._internal_count());
- break;
- }
- case kSum: {
- _this->_internal_mutable_sum()->::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum::MergeFrom(
- from._internal_sum());
- break;
- }
- case kAvg: {
- _this->_internal_mutable_avg()->::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg::MergeFrom(
- from._internal_avg());
- break;
- }
- case OPERATOR_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredAggregationQuery_Aggregation::CopyFrom(const StructuredAggregationQuery_Aggregation& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery.Aggregation)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredAggregationQuery_Aggregation::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredAggregationQuery_Aggregation::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredAggregationQuery_Aggregation::InternalSwap(StructuredAggregationQuery_Aggregation* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.alias_, &other->_impl_.alias_, arena);
- swap(_impl_.operator_, other->_impl_.operator_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata StructuredAggregationQuery_Aggregation::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[12]);
- }
- // ===================================================================
- class StructuredAggregationQuery::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::StructuredAggregationQuery, _impl_._oneof_case_);
- static const ::google::firestore::v1::StructuredQuery& structured_query(const StructuredAggregationQuery* msg);
- };
- const ::google::firestore::v1::StructuredQuery& StructuredAggregationQuery::_Internal::structured_query(const StructuredAggregationQuery* msg) {
- return *msg->_impl_.query_type_.structured_query_;
- }
- void StructuredAggregationQuery::set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_query_type();
- if (structured_query) {
- ::google::protobuf::Arena* submessage_arena = structured_query->GetArena();
- if (message_arena != submessage_arena) {
- structured_query = ::google::protobuf::internal::GetOwnedMessage(message_arena, structured_query, submessage_arena);
- }
- set_has_structured_query();
- _impl_.query_type_.structured_query_ = structured_query;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.structured_query)
- }
- StructuredAggregationQuery::StructuredAggregationQuery(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.StructuredAggregationQuery)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : aggregations_{visibility, arena, from.aggregations_},
- query_type_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- StructuredAggregationQuery::StructuredAggregationQuery(
- ::google::protobuf::Arena* arena,
- const StructuredAggregationQuery& from)
- : ::google::protobuf::Message(arena) {
- StructuredAggregationQuery* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- switch (query_type_case()) {
- case QUERY_TYPE_NOT_SET:
- break;
- case kStructuredQuery:
- _impl_.query_type_.structured_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery>(arena, *from._impl_.query_type_.structured_query_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.StructuredAggregationQuery)
- }
- inline PROTOBUF_NDEBUG_INLINE StructuredAggregationQuery::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : aggregations_{visibility, arena},
- query_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void StructuredAggregationQuery::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- StructuredAggregationQuery::~StructuredAggregationQuery() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.StructuredAggregationQuery)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void StructuredAggregationQuery::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- if (has_query_type()) {
- clear_query_type();
- }
- _impl_.~Impl_();
- }
- void StructuredAggregationQuery::clear_query_type() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.StructuredAggregationQuery)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (query_type_case()) {
- case kStructuredQuery: {
- if (GetArena() == nullptr) {
- delete _impl_.query_type_.structured_query_;
- }
- break;
- }
- case QUERY_TYPE_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
- }
- PROTOBUF_NOINLINE void StructuredAggregationQuery::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.StructuredAggregationQuery)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.aggregations_.Clear();
- clear_query_type();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* StructuredAggregationQuery::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 2, 2, 0, 2> StructuredAggregationQuery::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 3, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967290, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 2, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_StructuredAggregationQuery_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
- {::_pbi::TcParser::FastMtR1,
- {26, 63, 1, PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery, _impl_.aggregations_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.StructuredQuery structured_query = 1;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery, _impl_.query_type_.structured_query_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
- {PROTOBUF_FIELD_OFFSET(StructuredAggregationQuery, _impl_.aggregations_), 0, 1,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery_Aggregation>()},
- }}, {{
- }},
- };
- ::uint8_t* StructuredAggregationQuery::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.StructuredAggregationQuery)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // .google.firestore.v1.StructuredQuery structured_query = 1;
- if (query_type_case() == kStructuredQuery) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, _Internal::structured_query(this),
- _Internal::structured_query(this).GetCachedSize(), target, stream);
- }
- // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_aggregations_size()); i < n; i++) {
- const auto& repfield = this->_internal_aggregations().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.StructuredAggregationQuery)
- return target;
- }
- ::size_t StructuredAggregationQuery::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.StructuredAggregationQuery)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
- total_size += 1UL * this->_internal_aggregations_size();
- for (const auto& msg : this->_internal_aggregations()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- switch (query_type_case()) {
- // .google.firestore.v1.StructuredQuery structured_query = 1;
- case kStructuredQuery: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.query_type_.structured_query_);
- break;
- }
- case QUERY_TYPE_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData StructuredAggregationQuery::_class_data_ = {
- StructuredAggregationQuery::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* StructuredAggregationQuery::GetClassData() const {
- return &_class_data_;
- }
- void StructuredAggregationQuery::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<StructuredAggregationQuery*>(&to_msg);
- auto& from = static_cast<const StructuredAggregationQuery&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.StructuredAggregationQuery)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_aggregations()->MergeFrom(
- from._internal_aggregations());
- switch (from.query_type_case()) {
- case kStructuredQuery: {
- _this->_internal_mutable_structured_query()->::google::firestore::v1::StructuredQuery::MergeFrom(
- from._internal_structured_query());
- break;
- }
- case QUERY_TYPE_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void StructuredAggregationQuery::CopyFrom(const StructuredAggregationQuery& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.StructuredAggregationQuery)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool StructuredAggregationQuery::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* StructuredAggregationQuery::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void StructuredAggregationQuery::InternalSwap(StructuredAggregationQuery* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.aggregations_.InternalSwap(&other->_impl_.aggregations_);
- swap(_impl_.query_type_, other->_impl_.query_type_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata StructuredAggregationQuery::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[13]);
- }
- // ===================================================================
- class Cursor::_Internal {
- public:
- };
- void Cursor::clear_values() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_.values_.Clear();
- }
- Cursor::Cursor(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Cursor)
- }
- inline PROTOBUF_NDEBUG_INLINE Cursor::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : values_{visibility, arena, from.values_},
- _cached_size_{0} {}
- Cursor::Cursor(
- ::google::protobuf::Arena* arena,
- const Cursor& from)
- : ::google::protobuf::Message(arena) {
- Cursor* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- _impl_.before_ = from._impl_.before_;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Cursor)
- }
- inline PROTOBUF_NDEBUG_INLINE Cursor::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : values_{visibility, arena},
- _cached_size_{0} {}
- inline void Cursor::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- _impl_.before_ = {};
- }
- Cursor::~Cursor() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Cursor)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Cursor::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void Cursor::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Cursor)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.values_.Clear();
- _impl_.before_ = false;
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Cursor::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<1, 2, 1, 0, 2> Cursor::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 2, 8, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967292, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Cursor_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // bool before = 2;
- {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Cursor, _impl_.before_), 63>(),
- {16, 63, 0, PROTOBUF_FIELD_OFFSET(Cursor, _impl_.before_)}},
- // repeated .google.firestore.v1.Value values = 1;
- {::_pbi::TcParser::FastMtR1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(Cursor, _impl_.values_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // repeated .google.firestore.v1.Value values = 1;
- {PROTOBUF_FIELD_OFFSET(Cursor, _impl_.values_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- // bool before = 2;
- {PROTOBUF_FIELD_OFFSET(Cursor, _impl_.before_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kBool)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
- }}, {{
- }},
- };
- ::uint8_t* Cursor::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Cursor)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_values_size()); i < n; i++) {
- const auto& repfield = this->_internal_values().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
- }
- // bool before = 2;
- if (this->_internal_before() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 2, this->_internal_before(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Cursor)
- return target;
- }
- ::size_t Cursor::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Cursor)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- total_size += 1UL * this->_internal_values_size();
- for (const auto& msg : this->_internal_values()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- // bool before = 2;
- if (this->_internal_before() != 0) {
- total_size += 2;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Cursor::_class_data_ = {
- Cursor::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Cursor::GetClassData() const {
- return &_class_data_;
- }
- void Cursor::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Cursor*>(&to_msg);
- auto& from = static_cast<const Cursor&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Cursor)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_values()->MergeFrom(
- from._internal_values());
- if (from._internal_before() != 0) {
- _this->_internal_set_before(from._internal_before());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Cursor::CopyFrom(const Cursor& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Cursor)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Cursor::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Cursor::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Cursor::InternalSwap(Cursor* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.values_.InternalSwap(&other->_impl_.values_);
- swap(_impl_.before_, other->_impl_.before_);
- }
- ::google::protobuf::Metadata Cursor::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fquery_2eproto[14]);
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace v1
- } // namespace firestore
- } // namespace google
- namespace google {
- namespace protobuf {
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
|