firestore.pb.cc 420 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375
  1. /*
  2. * Copyright 2024 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/firestore.proto
  18. #include "google/firestore/v1/firestore.pb.h"
  19. #include <algorithm>
  20. #include "google/protobuf/io/coded_stream.h"
  21. #include "google/protobuf/extension_set.h"
  22. #include "google/protobuf/wire_format_lite.h"
  23. #include "google/protobuf/descriptor.h"
  24. #include "google/protobuf/generated_message_reflection.h"
  25. #include "google/protobuf/reflection_ops.h"
  26. #include "google/protobuf/wire_format.h"
  27. #include "google/protobuf/generated_message_tctable_impl.h"
  28. // @@protoc_insertion_point(includes)
  29. // Must be included last.
  30. #include "google/protobuf/port_def.inc"
  31. PROTOBUF_PRAGMA_INIT_SEG
  32. namespace _pb = ::google::protobuf;
  33. namespace _pbi = ::google::protobuf::internal;
  34. namespace _fl = ::google::protobuf::internal::field_layout;
  35. namespace google {
  36. namespace firestore {
  37. namespace v1 {
  38. template <typename>
  39. PROTOBUF_CONSTEXPR WriteRequest_LabelsEntry_DoNotUse::WriteRequest_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
  40. struct WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal {
  41. PROTOBUF_CONSTEXPR WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  42. ~WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal() {}
  43. union {
  44. WriteRequest_LabelsEntry_DoNotUse _instance;
  45. };
  46. };
  47. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  48. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal _WriteRequest_LabelsEntry_DoNotUse_default_instance_;
  49. inline constexpr Target_DocumentsTarget::Impl_::Impl_(
  50. ::_pbi::ConstantInitialized) noexcept
  51. : documents_{},
  52. _cached_size_{0} {}
  53. template <typename>
  54. PROTOBUF_CONSTEXPR Target_DocumentsTarget::Target_DocumentsTarget(::_pbi::ConstantInitialized)
  55. : _impl_(::_pbi::ConstantInitialized()) {}
  56. struct Target_DocumentsTargetDefaultTypeInternal {
  57. PROTOBUF_CONSTEXPR Target_DocumentsTargetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  58. ~Target_DocumentsTargetDefaultTypeInternal() {}
  59. union {
  60. Target_DocumentsTarget _instance;
  61. };
  62. };
  63. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  64. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Target_DocumentsTargetDefaultTypeInternal _Target_DocumentsTarget_default_instance_;
  65. inline constexpr RollbackRequest::Impl_::Impl_(
  66. ::_pbi::ConstantInitialized) noexcept
  67. : database_(
  68. &::google::protobuf::internal::fixed_address_empty_string,
  69. ::_pbi::ConstantInitialized()),
  70. transaction_(
  71. &::google::protobuf::internal::fixed_address_empty_string,
  72. ::_pbi::ConstantInitialized()),
  73. _cached_size_{0} {}
  74. template <typename>
  75. PROTOBUF_CONSTEXPR RollbackRequest::RollbackRequest(::_pbi::ConstantInitialized)
  76. : _impl_(::_pbi::ConstantInitialized()) {}
  77. struct RollbackRequestDefaultTypeInternal {
  78. PROTOBUF_CONSTEXPR RollbackRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  79. ~RollbackRequestDefaultTypeInternal() {}
  80. union {
  81. RollbackRequest _instance;
  82. };
  83. };
  84. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  85. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RollbackRequestDefaultTypeInternal _RollbackRequest_default_instance_;
  86. template <typename>
  87. PROTOBUF_CONSTEXPR ListenRequest_LabelsEntry_DoNotUse::ListenRequest_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
  88. struct ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal {
  89. PROTOBUF_CONSTEXPR ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  90. ~ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal() {}
  91. union {
  92. ListenRequest_LabelsEntry_DoNotUse _instance;
  93. };
  94. };
  95. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  96. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal _ListenRequest_LabelsEntry_DoNotUse_default_instance_;
  97. inline constexpr ListCollectionIdsResponse::Impl_::Impl_(
  98. ::_pbi::ConstantInitialized) noexcept
  99. : collection_ids_{},
  100. next_page_token_(
  101. &::google::protobuf::internal::fixed_address_empty_string,
  102. ::_pbi::ConstantInitialized()),
  103. _cached_size_{0} {}
  104. template <typename>
  105. PROTOBUF_CONSTEXPR ListCollectionIdsResponse::ListCollectionIdsResponse(::_pbi::ConstantInitialized)
  106. : _impl_(::_pbi::ConstantInitialized()) {}
  107. struct ListCollectionIdsResponseDefaultTypeInternal {
  108. PROTOBUF_CONSTEXPR ListCollectionIdsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  109. ~ListCollectionIdsResponseDefaultTypeInternal() {}
  110. union {
  111. ListCollectionIdsResponse _instance;
  112. };
  113. };
  114. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  115. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListCollectionIdsResponseDefaultTypeInternal _ListCollectionIdsResponse_default_instance_;
  116. inline constexpr ListCollectionIdsRequest::Impl_::Impl_(
  117. ::_pbi::ConstantInitialized) noexcept
  118. : parent_(
  119. &::google::protobuf::internal::fixed_address_empty_string,
  120. ::_pbi::ConstantInitialized()),
  121. page_token_(
  122. &::google::protobuf::internal::fixed_address_empty_string,
  123. ::_pbi::ConstantInitialized()),
  124. page_size_{0},
  125. _cached_size_{0} {}
  126. template <typename>
  127. PROTOBUF_CONSTEXPR ListCollectionIdsRequest::ListCollectionIdsRequest(::_pbi::ConstantInitialized)
  128. : _impl_(::_pbi::ConstantInitialized()) {}
  129. struct ListCollectionIdsRequestDefaultTypeInternal {
  130. PROTOBUF_CONSTEXPR ListCollectionIdsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  131. ~ListCollectionIdsRequestDefaultTypeInternal() {}
  132. union {
  133. ListCollectionIdsRequest _instance;
  134. };
  135. };
  136. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  137. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListCollectionIdsRequestDefaultTypeInternal _ListCollectionIdsRequest_default_instance_;
  138. inline constexpr BeginTransactionResponse::Impl_::Impl_(
  139. ::_pbi::ConstantInitialized) noexcept
  140. : transaction_(
  141. &::google::protobuf::internal::fixed_address_empty_string,
  142. ::_pbi::ConstantInitialized()),
  143. _cached_size_{0} {}
  144. template <typename>
  145. PROTOBUF_CONSTEXPR BeginTransactionResponse::BeginTransactionResponse(::_pbi::ConstantInitialized)
  146. : _impl_(::_pbi::ConstantInitialized()) {}
  147. struct BeginTransactionResponseDefaultTypeInternal {
  148. PROTOBUF_CONSTEXPR BeginTransactionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  149. ~BeginTransactionResponseDefaultTypeInternal() {}
  150. union {
  151. BeginTransactionResponse _instance;
  152. };
  153. };
  154. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  155. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BeginTransactionResponseDefaultTypeInternal _BeginTransactionResponse_default_instance_;
  156. inline constexpr ListDocumentsRequest::Impl_::Impl_(
  157. ::_pbi::ConstantInitialized) noexcept
  158. : _cached_size_{0},
  159. parent_(
  160. &::google::protobuf::internal::fixed_address_empty_string,
  161. ::_pbi::ConstantInitialized()),
  162. collection_id_(
  163. &::google::protobuf::internal::fixed_address_empty_string,
  164. ::_pbi::ConstantInitialized()),
  165. page_token_(
  166. &::google::protobuf::internal::fixed_address_empty_string,
  167. ::_pbi::ConstantInitialized()),
  168. order_by_(
  169. &::google::protobuf::internal::fixed_address_empty_string,
  170. ::_pbi::ConstantInitialized()),
  171. mask_{nullptr},
  172. page_size_{0},
  173. show_missing_{false},
  174. consistency_selector_{},
  175. _oneof_case_{} {}
  176. template <typename>
  177. PROTOBUF_CONSTEXPR ListDocumentsRequest::ListDocumentsRequest(::_pbi::ConstantInitialized)
  178. : _impl_(::_pbi::ConstantInitialized()) {}
  179. struct ListDocumentsRequestDefaultTypeInternal {
  180. PROTOBUF_CONSTEXPR ListDocumentsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  181. ~ListDocumentsRequestDefaultTypeInternal() {}
  182. union {
  183. ListDocumentsRequest _instance;
  184. };
  185. };
  186. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  187. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListDocumentsRequestDefaultTypeInternal _ListDocumentsRequest_default_instance_;
  188. inline constexpr GetDocumentRequest::Impl_::Impl_(
  189. ::_pbi::ConstantInitialized) noexcept
  190. : _cached_size_{0},
  191. name_(
  192. &::google::protobuf::internal::fixed_address_empty_string,
  193. ::_pbi::ConstantInitialized()),
  194. mask_{nullptr},
  195. consistency_selector_{},
  196. _oneof_case_{} {}
  197. template <typename>
  198. PROTOBUF_CONSTEXPR GetDocumentRequest::GetDocumentRequest(::_pbi::ConstantInitialized)
  199. : _impl_(::_pbi::ConstantInitialized()) {}
  200. struct GetDocumentRequestDefaultTypeInternal {
  201. PROTOBUF_CONSTEXPR GetDocumentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  202. ~GetDocumentRequestDefaultTypeInternal() {}
  203. union {
  204. GetDocumentRequest _instance;
  205. };
  206. };
  207. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  208. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDocumentRequestDefaultTypeInternal _GetDocumentRequest_default_instance_;
  209. inline constexpr TargetChange::Impl_::Impl_(
  210. ::_pbi::ConstantInitialized) noexcept
  211. : _cached_size_{0},
  212. target_ids_{},
  213. _target_ids_cached_byte_size_{0},
  214. resume_token_(
  215. &::google::protobuf::internal::fixed_address_empty_string,
  216. ::_pbi::ConstantInitialized()),
  217. cause_{nullptr},
  218. read_time_{nullptr},
  219. target_change_type_{static_cast< ::google::firestore::v1::TargetChange_TargetChangeType >(0)} {}
  220. template <typename>
  221. PROTOBUF_CONSTEXPR TargetChange::TargetChange(::_pbi::ConstantInitialized)
  222. : _impl_(::_pbi::ConstantInitialized()) {}
  223. struct TargetChangeDefaultTypeInternal {
  224. PROTOBUF_CONSTEXPR TargetChangeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  225. ~TargetChangeDefaultTypeInternal() {}
  226. union {
  227. TargetChange _instance;
  228. };
  229. };
  230. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  231. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TargetChangeDefaultTypeInternal _TargetChange_default_instance_;
  232. inline constexpr DeleteDocumentRequest::Impl_::Impl_(
  233. ::_pbi::ConstantInitialized) noexcept
  234. : _cached_size_{0},
  235. name_(
  236. &::google::protobuf::internal::fixed_address_empty_string,
  237. ::_pbi::ConstantInitialized()),
  238. current_document_{nullptr} {}
  239. template <typename>
  240. PROTOBUF_CONSTEXPR DeleteDocumentRequest::DeleteDocumentRequest(::_pbi::ConstantInitialized)
  241. : _impl_(::_pbi::ConstantInitialized()) {}
  242. struct DeleteDocumentRequestDefaultTypeInternal {
  243. PROTOBUF_CONSTEXPR DeleteDocumentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  244. ~DeleteDocumentRequestDefaultTypeInternal() {}
  245. union {
  246. DeleteDocumentRequest _instance;
  247. };
  248. };
  249. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  250. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteDocumentRequestDefaultTypeInternal _DeleteDocumentRequest_default_instance_;
  251. inline constexpr WriteResponse::Impl_::Impl_(
  252. ::_pbi::ConstantInitialized) noexcept
  253. : _cached_size_{0},
  254. write_results_{},
  255. stream_id_(
  256. &::google::protobuf::internal::fixed_address_empty_string,
  257. ::_pbi::ConstantInitialized()),
  258. stream_token_(
  259. &::google::protobuf::internal::fixed_address_empty_string,
  260. ::_pbi::ConstantInitialized()),
  261. commit_time_{nullptr} {}
  262. template <typename>
  263. PROTOBUF_CONSTEXPR WriteResponse::WriteResponse(::_pbi::ConstantInitialized)
  264. : _impl_(::_pbi::ConstantInitialized()) {}
  265. struct WriteResponseDefaultTypeInternal {
  266. PROTOBUF_CONSTEXPR WriteResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  267. ~WriteResponseDefaultTypeInternal() {}
  268. union {
  269. WriteResponse _instance;
  270. };
  271. };
  272. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  273. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WriteResponseDefaultTypeInternal _WriteResponse_default_instance_;
  274. inline constexpr CommitResponse::Impl_::Impl_(
  275. ::_pbi::ConstantInitialized) noexcept
  276. : _cached_size_{0},
  277. write_results_{},
  278. commit_time_{nullptr} {}
  279. template <typename>
  280. PROTOBUF_CONSTEXPR CommitResponse::CommitResponse(::_pbi::ConstantInitialized)
  281. : _impl_(::_pbi::ConstantInitialized()) {}
  282. struct CommitResponseDefaultTypeInternal {
  283. PROTOBUF_CONSTEXPR CommitResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  284. ~CommitResponseDefaultTypeInternal() {}
  285. union {
  286. CommitResponse _instance;
  287. };
  288. };
  289. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  290. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommitResponseDefaultTypeInternal _CommitResponse_default_instance_;
  291. inline constexpr BeginTransactionRequest::Impl_::Impl_(
  292. ::_pbi::ConstantInitialized) noexcept
  293. : _cached_size_{0},
  294. database_(
  295. &::google::protobuf::internal::fixed_address_empty_string,
  296. ::_pbi::ConstantInitialized()),
  297. options_{nullptr} {}
  298. template <typename>
  299. PROTOBUF_CONSTEXPR BeginTransactionRequest::BeginTransactionRequest(::_pbi::ConstantInitialized)
  300. : _impl_(::_pbi::ConstantInitialized()) {}
  301. struct BeginTransactionRequestDefaultTypeInternal {
  302. PROTOBUF_CONSTEXPR BeginTransactionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  303. ~BeginTransactionRequestDefaultTypeInternal() {}
  304. union {
  305. BeginTransactionRequest _instance;
  306. };
  307. };
  308. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  309. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BeginTransactionRequestDefaultTypeInternal _BeginTransactionRequest_default_instance_;
  310. inline constexpr BatchGetDocumentsRequest::Impl_::Impl_(
  311. ::_pbi::ConstantInitialized) noexcept
  312. : _cached_size_{0},
  313. documents_{},
  314. database_(
  315. &::google::protobuf::internal::fixed_address_empty_string,
  316. ::_pbi::ConstantInitialized()),
  317. mask_{nullptr},
  318. consistency_selector_{},
  319. _oneof_case_{} {}
  320. template <typename>
  321. PROTOBUF_CONSTEXPR BatchGetDocumentsRequest::BatchGetDocumentsRequest(::_pbi::ConstantInitialized)
  322. : _impl_(::_pbi::ConstantInitialized()) {}
  323. struct BatchGetDocumentsRequestDefaultTypeInternal {
  324. PROTOBUF_CONSTEXPR BatchGetDocumentsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  325. ~BatchGetDocumentsRequestDefaultTypeInternal() {}
  326. union {
  327. BatchGetDocumentsRequest _instance;
  328. };
  329. };
  330. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  331. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BatchGetDocumentsRequestDefaultTypeInternal _BatchGetDocumentsRequest_default_instance_;
  332. inline constexpr UpdateDocumentRequest::Impl_::Impl_(
  333. ::_pbi::ConstantInitialized) noexcept
  334. : _cached_size_{0},
  335. document_{nullptr},
  336. update_mask_{nullptr},
  337. mask_{nullptr},
  338. current_document_{nullptr} {}
  339. template <typename>
  340. PROTOBUF_CONSTEXPR UpdateDocumentRequest::UpdateDocumentRequest(::_pbi::ConstantInitialized)
  341. : _impl_(::_pbi::ConstantInitialized()) {}
  342. struct UpdateDocumentRequestDefaultTypeInternal {
  343. PROTOBUF_CONSTEXPR UpdateDocumentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  344. ~UpdateDocumentRequestDefaultTypeInternal() {}
  345. union {
  346. UpdateDocumentRequest _instance;
  347. };
  348. };
  349. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  350. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateDocumentRequestDefaultTypeInternal _UpdateDocumentRequest_default_instance_;
  351. inline constexpr RunQueryResponse::Impl_::Impl_(
  352. ::_pbi::ConstantInitialized) noexcept
  353. : _cached_size_{0},
  354. transaction_(
  355. &::google::protobuf::internal::fixed_address_empty_string,
  356. ::_pbi::ConstantInitialized()),
  357. document_{nullptr},
  358. read_time_{nullptr},
  359. skipped_results_{0} {}
  360. template <typename>
  361. PROTOBUF_CONSTEXPR RunQueryResponse::RunQueryResponse(::_pbi::ConstantInitialized)
  362. : _impl_(::_pbi::ConstantInitialized()) {}
  363. struct RunQueryResponseDefaultTypeInternal {
  364. PROTOBUF_CONSTEXPR RunQueryResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  365. ~RunQueryResponseDefaultTypeInternal() {}
  366. union {
  367. RunQueryResponse _instance;
  368. };
  369. };
  370. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  371. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RunQueryResponseDefaultTypeInternal _RunQueryResponse_default_instance_;
  372. inline constexpr RunAggregationQueryResponse::Impl_::Impl_(
  373. ::_pbi::ConstantInitialized) noexcept
  374. : _cached_size_{0},
  375. transaction_(
  376. &::google::protobuf::internal::fixed_address_empty_string,
  377. ::_pbi::ConstantInitialized()),
  378. result_{nullptr},
  379. read_time_{nullptr} {}
  380. template <typename>
  381. PROTOBUF_CONSTEXPR RunAggregationQueryResponse::RunAggregationQueryResponse(::_pbi::ConstantInitialized)
  382. : _impl_(::_pbi::ConstantInitialized()) {}
  383. struct RunAggregationQueryResponseDefaultTypeInternal {
  384. PROTOBUF_CONSTEXPR RunAggregationQueryResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  385. ~RunAggregationQueryResponseDefaultTypeInternal() {}
  386. union {
  387. RunAggregationQueryResponse _instance;
  388. };
  389. };
  390. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  391. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RunAggregationQueryResponseDefaultTypeInternal _RunAggregationQueryResponse_default_instance_;
  392. inline constexpr ListDocumentsResponse::Impl_::Impl_(
  393. ::_pbi::ConstantInitialized) noexcept
  394. : documents_{},
  395. next_page_token_(
  396. &::google::protobuf::internal::fixed_address_empty_string,
  397. ::_pbi::ConstantInitialized()),
  398. _cached_size_{0} {}
  399. template <typename>
  400. PROTOBUF_CONSTEXPR ListDocumentsResponse::ListDocumentsResponse(::_pbi::ConstantInitialized)
  401. : _impl_(::_pbi::ConstantInitialized()) {}
  402. struct ListDocumentsResponseDefaultTypeInternal {
  403. PROTOBUF_CONSTEXPR ListDocumentsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  404. ~ListDocumentsResponseDefaultTypeInternal() {}
  405. union {
  406. ListDocumentsResponse _instance;
  407. };
  408. };
  409. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  410. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListDocumentsResponseDefaultTypeInternal _ListDocumentsResponse_default_instance_;
  411. inline constexpr CreateDocumentRequest::Impl_::Impl_(
  412. ::_pbi::ConstantInitialized) noexcept
  413. : _cached_size_{0},
  414. parent_(
  415. &::google::protobuf::internal::fixed_address_empty_string,
  416. ::_pbi::ConstantInitialized()),
  417. collection_id_(
  418. &::google::protobuf::internal::fixed_address_empty_string,
  419. ::_pbi::ConstantInitialized()),
  420. document_id_(
  421. &::google::protobuf::internal::fixed_address_empty_string,
  422. ::_pbi::ConstantInitialized()),
  423. document_{nullptr},
  424. mask_{nullptr} {}
  425. template <typename>
  426. PROTOBUF_CONSTEXPR CreateDocumentRequest::CreateDocumentRequest(::_pbi::ConstantInitialized)
  427. : _impl_(::_pbi::ConstantInitialized()) {}
  428. struct CreateDocumentRequestDefaultTypeInternal {
  429. PROTOBUF_CONSTEXPR CreateDocumentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  430. ~CreateDocumentRequestDefaultTypeInternal() {}
  431. union {
  432. CreateDocumentRequest _instance;
  433. };
  434. };
  435. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  436. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateDocumentRequestDefaultTypeInternal _CreateDocumentRequest_default_instance_;
  437. inline constexpr BatchGetDocumentsResponse::Impl_::Impl_(
  438. ::_pbi::ConstantInitialized) noexcept
  439. : _cached_size_{0},
  440. transaction_(
  441. &::google::protobuf::internal::fixed_address_empty_string,
  442. ::_pbi::ConstantInitialized()),
  443. read_time_{nullptr},
  444. result_{},
  445. _oneof_case_{} {}
  446. template <typename>
  447. PROTOBUF_CONSTEXPR BatchGetDocumentsResponse::BatchGetDocumentsResponse(::_pbi::ConstantInitialized)
  448. : _impl_(::_pbi::ConstantInitialized()) {}
  449. struct BatchGetDocumentsResponseDefaultTypeInternal {
  450. PROTOBUF_CONSTEXPR BatchGetDocumentsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  451. ~BatchGetDocumentsResponseDefaultTypeInternal() {}
  452. union {
  453. BatchGetDocumentsResponse _instance;
  454. };
  455. };
  456. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  457. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BatchGetDocumentsResponseDefaultTypeInternal _BatchGetDocumentsResponse_default_instance_;
  458. inline constexpr WriteRequest::Impl_::Impl_(
  459. ::_pbi::ConstantInitialized) noexcept
  460. : writes_{},
  461. labels_{},
  462. database_(
  463. &::google::protobuf::internal::fixed_address_empty_string,
  464. ::_pbi::ConstantInitialized()),
  465. stream_id_(
  466. &::google::protobuf::internal::fixed_address_empty_string,
  467. ::_pbi::ConstantInitialized()),
  468. stream_token_(
  469. &::google::protobuf::internal::fixed_address_empty_string,
  470. ::_pbi::ConstantInitialized()),
  471. _cached_size_{0} {}
  472. template <typename>
  473. PROTOBUF_CONSTEXPR WriteRequest::WriteRequest(::_pbi::ConstantInitialized)
  474. : _impl_(::_pbi::ConstantInitialized()) {}
  475. struct WriteRequestDefaultTypeInternal {
  476. PROTOBUF_CONSTEXPR WriteRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  477. ~WriteRequestDefaultTypeInternal() {}
  478. union {
  479. WriteRequest _instance;
  480. };
  481. };
  482. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  483. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WriteRequestDefaultTypeInternal _WriteRequest_default_instance_;
  484. inline constexpr Target_QueryTarget::Impl_::Impl_(
  485. ::_pbi::ConstantInitialized) noexcept
  486. : parent_(
  487. &::google::protobuf::internal::fixed_address_empty_string,
  488. ::_pbi::ConstantInitialized()),
  489. query_type_{},
  490. _cached_size_{0},
  491. _oneof_case_{} {}
  492. template <typename>
  493. PROTOBUF_CONSTEXPR Target_QueryTarget::Target_QueryTarget(::_pbi::ConstantInitialized)
  494. : _impl_(::_pbi::ConstantInitialized()) {}
  495. struct Target_QueryTargetDefaultTypeInternal {
  496. PROTOBUF_CONSTEXPR Target_QueryTargetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  497. ~Target_QueryTargetDefaultTypeInternal() {}
  498. union {
  499. Target_QueryTarget _instance;
  500. };
  501. };
  502. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  503. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Target_QueryTargetDefaultTypeInternal _Target_QueryTarget_default_instance_;
  504. inline constexpr RunQueryRequest::Impl_::Impl_(
  505. ::_pbi::ConstantInitialized) noexcept
  506. : parent_(
  507. &::google::protobuf::internal::fixed_address_empty_string,
  508. ::_pbi::ConstantInitialized()),
  509. query_type_{},
  510. consistency_selector_{},
  511. _cached_size_{0},
  512. _oneof_case_{} {}
  513. template <typename>
  514. PROTOBUF_CONSTEXPR RunQueryRequest::RunQueryRequest(::_pbi::ConstantInitialized)
  515. : _impl_(::_pbi::ConstantInitialized()) {}
  516. struct RunQueryRequestDefaultTypeInternal {
  517. PROTOBUF_CONSTEXPR RunQueryRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  518. ~RunQueryRequestDefaultTypeInternal() {}
  519. union {
  520. RunQueryRequest _instance;
  521. };
  522. };
  523. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  524. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RunQueryRequestDefaultTypeInternal _RunQueryRequest_default_instance_;
  525. inline constexpr ListenResponse::Impl_::Impl_(
  526. ::_pbi::ConstantInitialized) noexcept
  527. : response_type_{},
  528. _cached_size_{0},
  529. _oneof_case_{} {}
  530. template <typename>
  531. PROTOBUF_CONSTEXPR ListenResponse::ListenResponse(::_pbi::ConstantInitialized)
  532. : _impl_(::_pbi::ConstantInitialized()) {}
  533. struct ListenResponseDefaultTypeInternal {
  534. PROTOBUF_CONSTEXPR ListenResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  535. ~ListenResponseDefaultTypeInternal() {}
  536. union {
  537. ListenResponse _instance;
  538. };
  539. };
  540. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  541. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListenResponseDefaultTypeInternal _ListenResponse_default_instance_;
  542. inline constexpr CommitRequest::Impl_::Impl_(
  543. ::_pbi::ConstantInitialized) noexcept
  544. : writes_{},
  545. database_(
  546. &::google::protobuf::internal::fixed_address_empty_string,
  547. ::_pbi::ConstantInitialized()),
  548. transaction_(
  549. &::google::protobuf::internal::fixed_address_empty_string,
  550. ::_pbi::ConstantInitialized()),
  551. _cached_size_{0} {}
  552. template <typename>
  553. PROTOBUF_CONSTEXPR CommitRequest::CommitRequest(::_pbi::ConstantInitialized)
  554. : _impl_(::_pbi::ConstantInitialized()) {}
  555. struct CommitRequestDefaultTypeInternal {
  556. PROTOBUF_CONSTEXPR CommitRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  557. ~CommitRequestDefaultTypeInternal() {}
  558. union {
  559. CommitRequest _instance;
  560. };
  561. };
  562. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  563. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommitRequestDefaultTypeInternal _CommitRequest_default_instance_;
  564. inline constexpr Target::Impl_::Impl_(
  565. ::_pbi::ConstantInitialized) noexcept
  566. : _cached_size_{0},
  567. expected_count_{nullptr},
  568. target_id_{0},
  569. once_{false},
  570. target_type_{},
  571. resume_type_{},
  572. _oneof_case_{} {}
  573. template <typename>
  574. PROTOBUF_CONSTEXPR Target::Target(::_pbi::ConstantInitialized)
  575. : _impl_(::_pbi::ConstantInitialized()) {}
  576. struct TargetDefaultTypeInternal {
  577. PROTOBUF_CONSTEXPR TargetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  578. ~TargetDefaultTypeInternal() {}
  579. union {
  580. Target _instance;
  581. };
  582. };
  583. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  584. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TargetDefaultTypeInternal _Target_default_instance_;
  585. inline constexpr RunAggregationQueryRequest::Impl_::Impl_(
  586. ::_pbi::ConstantInitialized) noexcept
  587. : parent_(
  588. &::google::protobuf::internal::fixed_address_empty_string,
  589. ::_pbi::ConstantInitialized()),
  590. query_type_{},
  591. consistency_selector_{},
  592. _cached_size_{0},
  593. _oneof_case_{} {}
  594. template <typename>
  595. PROTOBUF_CONSTEXPR RunAggregationQueryRequest::RunAggregationQueryRequest(::_pbi::ConstantInitialized)
  596. : _impl_(::_pbi::ConstantInitialized()) {}
  597. struct RunAggregationQueryRequestDefaultTypeInternal {
  598. PROTOBUF_CONSTEXPR RunAggregationQueryRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  599. ~RunAggregationQueryRequestDefaultTypeInternal() {}
  600. union {
  601. RunAggregationQueryRequest _instance;
  602. };
  603. };
  604. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  605. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RunAggregationQueryRequestDefaultTypeInternal _RunAggregationQueryRequest_default_instance_;
  606. inline constexpr ListenRequest::Impl_::Impl_(
  607. ::_pbi::ConstantInitialized) noexcept
  608. : labels_{},
  609. database_(
  610. &::google::protobuf::internal::fixed_address_empty_string,
  611. ::_pbi::ConstantInitialized()),
  612. target_change_{},
  613. _cached_size_{0},
  614. _oneof_case_{} {}
  615. template <typename>
  616. PROTOBUF_CONSTEXPR ListenRequest::ListenRequest(::_pbi::ConstantInitialized)
  617. : _impl_(::_pbi::ConstantInitialized()) {}
  618. struct ListenRequestDefaultTypeInternal {
  619. PROTOBUF_CONSTEXPR ListenRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  620. ~ListenRequestDefaultTypeInternal() {}
  621. union {
  622. ListenRequest _instance;
  623. };
  624. };
  625. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  626. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListenRequestDefaultTypeInternal _ListenRequest_default_instance_;
  627. } // namespace v1
  628. } // namespace firestore
  629. } // namespace google
  630. static ::_pb::Metadata file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[29];
  631. static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2ffirestore_2fv1_2ffirestore_2eproto[1];
  632. static constexpr const ::_pb::ServiceDescriptor**
  633. file_level_service_descriptors_google_2ffirestore_2fv1_2ffirestore_2eproto = nullptr;
  634. const ::uint32_t TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  635. protodesc_cold) = {
  636. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::GetDocumentRequest, _impl_._has_bits_),
  637. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::GetDocumentRequest, _internal_metadata_),
  638. ~0u, // no _extensions_
  639. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::GetDocumentRequest, _impl_._oneof_case_[0]),
  640. ~0u, // no _weak_field_map_
  641. ~0u, // no _inlined_string_donated_
  642. ~0u, // no _split_
  643. ~0u, // no sizeof(Split)
  644. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::GetDocumentRequest, _impl_.name_),
  645. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::GetDocumentRequest, _impl_.mask_),
  646. ::_pbi::kInvalidFieldOffsetTag,
  647. ::_pbi::kInvalidFieldOffsetTag,
  648. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::GetDocumentRequest, _impl_.consistency_selector_),
  649. ~0u,
  650. 0,
  651. ~0u,
  652. ~0u,
  653. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_._has_bits_),
  654. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _internal_metadata_),
  655. ~0u, // no _extensions_
  656. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_._oneof_case_[0]),
  657. ~0u, // no _weak_field_map_
  658. ~0u, // no _inlined_string_donated_
  659. ~0u, // no _split_
  660. ~0u, // no sizeof(Split)
  661. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_.parent_),
  662. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_.collection_id_),
  663. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_.page_size_),
  664. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_.page_token_),
  665. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_.order_by_),
  666. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_.mask_),
  667. ::_pbi::kInvalidFieldOffsetTag,
  668. ::_pbi::kInvalidFieldOffsetTag,
  669. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_.show_missing_),
  670. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_.consistency_selector_),
  671. ~0u,
  672. ~0u,
  673. ~0u,
  674. ~0u,
  675. ~0u,
  676. 0,
  677. ~0u,
  678. ~0u,
  679. ~0u,
  680. ~0u, // no _has_bits_
  681. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsResponse, _internal_metadata_),
  682. ~0u, // no _extensions_
  683. ~0u, // no _oneof_case_
  684. ~0u, // no _weak_field_map_
  685. ~0u, // no _inlined_string_donated_
  686. ~0u, // no _split_
  687. ~0u, // no sizeof(Split)
  688. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsResponse, _impl_.documents_),
  689. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsResponse, _impl_.next_page_token_),
  690. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CreateDocumentRequest, _impl_._has_bits_),
  691. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CreateDocumentRequest, _internal_metadata_),
  692. ~0u, // no _extensions_
  693. ~0u, // no _oneof_case_
  694. ~0u, // no _weak_field_map_
  695. ~0u, // no _inlined_string_donated_
  696. ~0u, // no _split_
  697. ~0u, // no sizeof(Split)
  698. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CreateDocumentRequest, _impl_.parent_),
  699. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CreateDocumentRequest, _impl_.collection_id_),
  700. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CreateDocumentRequest, _impl_.document_id_),
  701. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CreateDocumentRequest, _impl_.document_),
  702. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CreateDocumentRequest, _impl_.mask_),
  703. ~0u,
  704. ~0u,
  705. ~0u,
  706. 0,
  707. 1,
  708. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::UpdateDocumentRequest, _impl_._has_bits_),
  709. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::UpdateDocumentRequest, _internal_metadata_),
  710. ~0u, // no _extensions_
  711. ~0u, // no _oneof_case_
  712. ~0u, // no _weak_field_map_
  713. ~0u, // no _inlined_string_donated_
  714. ~0u, // no _split_
  715. ~0u, // no sizeof(Split)
  716. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::UpdateDocumentRequest, _impl_.document_),
  717. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::UpdateDocumentRequest, _impl_.update_mask_),
  718. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::UpdateDocumentRequest, _impl_.mask_),
  719. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::UpdateDocumentRequest, _impl_.current_document_),
  720. 0,
  721. 1,
  722. 2,
  723. 3,
  724. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::DeleteDocumentRequest, _impl_._has_bits_),
  725. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::DeleteDocumentRequest, _internal_metadata_),
  726. ~0u, // no _extensions_
  727. ~0u, // no _oneof_case_
  728. ~0u, // no _weak_field_map_
  729. ~0u, // no _inlined_string_donated_
  730. ~0u, // no _split_
  731. ~0u, // no sizeof(Split)
  732. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::DeleteDocumentRequest, _impl_.name_),
  733. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::DeleteDocumentRequest, _impl_.current_document_),
  734. ~0u,
  735. 0,
  736. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsRequest, _impl_._has_bits_),
  737. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsRequest, _internal_metadata_),
  738. ~0u, // no _extensions_
  739. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsRequest, _impl_._oneof_case_[0]),
  740. ~0u, // no _weak_field_map_
  741. ~0u, // no _inlined_string_donated_
  742. ~0u, // no _split_
  743. ~0u, // no sizeof(Split)
  744. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsRequest, _impl_.database_),
  745. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsRequest, _impl_.documents_),
  746. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsRequest, _impl_.mask_),
  747. ::_pbi::kInvalidFieldOffsetTag,
  748. ::_pbi::kInvalidFieldOffsetTag,
  749. ::_pbi::kInvalidFieldOffsetTag,
  750. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsRequest, _impl_.consistency_selector_),
  751. ~0u,
  752. ~0u,
  753. 0,
  754. ~0u,
  755. ~0u,
  756. ~0u,
  757. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsResponse, _impl_._has_bits_),
  758. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsResponse, _internal_metadata_),
  759. ~0u, // no _extensions_
  760. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsResponse, _impl_._oneof_case_[0]),
  761. ~0u, // no _weak_field_map_
  762. ~0u, // no _inlined_string_donated_
  763. ~0u, // no _split_
  764. ~0u, // no sizeof(Split)
  765. ::_pbi::kInvalidFieldOffsetTag,
  766. ::_pbi::kInvalidFieldOffsetTag,
  767. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsResponse, _impl_.transaction_),
  768. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsResponse, _impl_.read_time_),
  769. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsResponse, _impl_.result_),
  770. ~0u,
  771. ~0u,
  772. ~0u,
  773. 0,
  774. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BeginTransactionRequest, _impl_._has_bits_),
  775. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BeginTransactionRequest, _internal_metadata_),
  776. ~0u, // no _extensions_
  777. ~0u, // no _oneof_case_
  778. ~0u, // no _weak_field_map_
  779. ~0u, // no _inlined_string_donated_
  780. ~0u, // no _split_
  781. ~0u, // no sizeof(Split)
  782. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BeginTransactionRequest, _impl_.database_),
  783. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BeginTransactionRequest, _impl_.options_),
  784. ~0u,
  785. 0,
  786. ~0u, // no _has_bits_
  787. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BeginTransactionResponse, _internal_metadata_),
  788. ~0u, // no _extensions_
  789. ~0u, // no _oneof_case_
  790. ~0u, // no _weak_field_map_
  791. ~0u, // no _inlined_string_donated_
  792. ~0u, // no _split_
  793. ~0u, // no sizeof(Split)
  794. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BeginTransactionResponse, _impl_.transaction_),
  795. ~0u, // no _has_bits_
  796. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CommitRequest, _internal_metadata_),
  797. ~0u, // no _extensions_
  798. ~0u, // no _oneof_case_
  799. ~0u, // no _weak_field_map_
  800. ~0u, // no _inlined_string_donated_
  801. ~0u, // no _split_
  802. ~0u, // no sizeof(Split)
  803. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CommitRequest, _impl_.database_),
  804. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CommitRequest, _impl_.writes_),
  805. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CommitRequest, _impl_.transaction_),
  806. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CommitResponse, _impl_._has_bits_),
  807. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CommitResponse, _internal_metadata_),
  808. ~0u, // no _extensions_
  809. ~0u, // no _oneof_case_
  810. ~0u, // no _weak_field_map_
  811. ~0u, // no _inlined_string_donated_
  812. ~0u, // no _split_
  813. ~0u, // no sizeof(Split)
  814. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CommitResponse, _impl_.write_results_),
  815. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::CommitResponse, _impl_.commit_time_),
  816. ~0u,
  817. 0,
  818. ~0u, // no _has_bits_
  819. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RollbackRequest, _internal_metadata_),
  820. ~0u, // no _extensions_
  821. ~0u, // no _oneof_case_
  822. ~0u, // no _weak_field_map_
  823. ~0u, // no _inlined_string_donated_
  824. ~0u, // no _split_
  825. ~0u, // no sizeof(Split)
  826. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RollbackRequest, _impl_.database_),
  827. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RollbackRequest, _impl_.transaction_),
  828. ~0u, // no _has_bits_
  829. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryRequest, _internal_metadata_),
  830. ~0u, // no _extensions_
  831. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryRequest, _impl_._oneof_case_[0]),
  832. ~0u, // no _weak_field_map_
  833. ~0u, // no _inlined_string_donated_
  834. ~0u, // no _split_
  835. ~0u, // no sizeof(Split)
  836. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryRequest, _impl_.parent_),
  837. ::_pbi::kInvalidFieldOffsetTag,
  838. ::_pbi::kInvalidFieldOffsetTag,
  839. ::_pbi::kInvalidFieldOffsetTag,
  840. ::_pbi::kInvalidFieldOffsetTag,
  841. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryRequest, _impl_.query_type_),
  842. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryRequest, _impl_.consistency_selector_),
  843. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryResponse, _impl_._has_bits_),
  844. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryResponse, _internal_metadata_),
  845. ~0u, // no _extensions_
  846. ~0u, // no _oneof_case_
  847. ~0u, // no _weak_field_map_
  848. ~0u, // no _inlined_string_donated_
  849. ~0u, // no _split_
  850. ~0u, // no sizeof(Split)
  851. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryResponse, _impl_.transaction_),
  852. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryResponse, _impl_.document_),
  853. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryResponse, _impl_.read_time_),
  854. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryResponse, _impl_.skipped_results_),
  855. ~0u,
  856. 0,
  857. 1,
  858. ~0u,
  859. ~0u, // no _has_bits_
  860. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryRequest, _internal_metadata_),
  861. ~0u, // no _extensions_
  862. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryRequest, _impl_._oneof_case_[0]),
  863. ~0u, // no _weak_field_map_
  864. ~0u, // no _inlined_string_donated_
  865. ~0u, // no _split_
  866. ~0u, // no sizeof(Split)
  867. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryRequest, _impl_.parent_),
  868. ::_pbi::kInvalidFieldOffsetTag,
  869. ::_pbi::kInvalidFieldOffsetTag,
  870. ::_pbi::kInvalidFieldOffsetTag,
  871. ::_pbi::kInvalidFieldOffsetTag,
  872. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryRequest, _impl_.query_type_),
  873. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryRequest, _impl_.consistency_selector_),
  874. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryResponse, _impl_._has_bits_),
  875. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryResponse, _internal_metadata_),
  876. ~0u, // no _extensions_
  877. ~0u, // no _oneof_case_
  878. ~0u, // no _weak_field_map_
  879. ~0u, // no _inlined_string_donated_
  880. ~0u, // no _split_
  881. ~0u, // no sizeof(Split)
  882. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryResponse, _impl_.result_),
  883. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryResponse, _impl_.transaction_),
  884. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryResponse, _impl_.read_time_),
  885. 0,
  886. ~0u,
  887. 1,
  888. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse, _has_bits_),
  889. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse, _internal_metadata_),
  890. ~0u, // no _extensions_
  891. ~0u, // no _oneof_case_
  892. ~0u, // no _weak_field_map_
  893. ~0u, // no _inlined_string_donated_
  894. ~0u, // no _split_
  895. ~0u, // no sizeof(Split)
  896. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse, key_),
  897. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse, value_),
  898. 0,
  899. 1,
  900. ~0u, // no _has_bits_
  901. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest, _internal_metadata_),
  902. ~0u, // no _extensions_
  903. ~0u, // no _oneof_case_
  904. ~0u, // no _weak_field_map_
  905. ~0u, // no _inlined_string_donated_
  906. ~0u, // no _split_
  907. ~0u, // no sizeof(Split)
  908. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest, _impl_.database_),
  909. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest, _impl_.stream_id_),
  910. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest, _impl_.writes_),
  911. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest, _impl_.stream_token_),
  912. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteRequest, _impl_.labels_),
  913. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteResponse, _impl_._has_bits_),
  914. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteResponse, _internal_metadata_),
  915. ~0u, // no _extensions_
  916. ~0u, // no _oneof_case_
  917. ~0u, // no _weak_field_map_
  918. ~0u, // no _inlined_string_donated_
  919. ~0u, // no _split_
  920. ~0u, // no sizeof(Split)
  921. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteResponse, _impl_.stream_id_),
  922. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteResponse, _impl_.stream_token_),
  923. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteResponse, _impl_.write_results_),
  924. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::WriteResponse, _impl_.commit_time_),
  925. ~0u,
  926. ~0u,
  927. ~0u,
  928. 0,
  929. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse, _has_bits_),
  930. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse, _internal_metadata_),
  931. ~0u, // no _extensions_
  932. ~0u, // no _oneof_case_
  933. ~0u, // no _weak_field_map_
  934. ~0u, // no _inlined_string_donated_
  935. ~0u, // no _split_
  936. ~0u, // no sizeof(Split)
  937. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse, key_),
  938. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse, value_),
  939. 0,
  940. 1,
  941. ~0u, // no _has_bits_
  942. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest, _internal_metadata_),
  943. ~0u, // no _extensions_
  944. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest, _impl_._oneof_case_[0]),
  945. ~0u, // no _weak_field_map_
  946. ~0u, // no _inlined_string_donated_
  947. ~0u, // no _split_
  948. ~0u, // no sizeof(Split)
  949. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest, _impl_.database_),
  950. ::_pbi::kInvalidFieldOffsetTag,
  951. ::_pbi::kInvalidFieldOffsetTag,
  952. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest, _impl_.labels_),
  953. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest, _impl_.target_change_),
  954. ~0u, // no _has_bits_
  955. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenResponse, _internal_metadata_),
  956. ~0u, // no _extensions_
  957. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenResponse, _impl_._oneof_case_[0]),
  958. ~0u, // no _weak_field_map_
  959. ~0u, // no _inlined_string_donated_
  960. ~0u, // no _split_
  961. ~0u, // no sizeof(Split)
  962. ::_pbi::kInvalidFieldOffsetTag,
  963. ::_pbi::kInvalidFieldOffsetTag,
  964. ::_pbi::kInvalidFieldOffsetTag,
  965. ::_pbi::kInvalidFieldOffsetTag,
  966. ::_pbi::kInvalidFieldOffsetTag,
  967. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenResponse, _impl_.response_type_),
  968. ~0u, // no _has_bits_
  969. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target_DocumentsTarget, _internal_metadata_),
  970. ~0u, // no _extensions_
  971. ~0u, // no _oneof_case_
  972. ~0u, // no _weak_field_map_
  973. ~0u, // no _inlined_string_donated_
  974. ~0u, // no _split_
  975. ~0u, // no sizeof(Split)
  976. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target_DocumentsTarget, _impl_.documents_),
  977. ~0u, // no _has_bits_
  978. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target_QueryTarget, _internal_metadata_),
  979. ~0u, // no _extensions_
  980. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target_QueryTarget, _impl_._oneof_case_[0]),
  981. ~0u, // no _weak_field_map_
  982. ~0u, // no _inlined_string_donated_
  983. ~0u, // no _split_
  984. ~0u, // no sizeof(Split)
  985. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target_QueryTarget, _impl_.parent_),
  986. ::_pbi::kInvalidFieldOffsetTag,
  987. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target_QueryTarget, _impl_.query_type_),
  988. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _impl_._has_bits_),
  989. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _internal_metadata_),
  990. ~0u, // no _extensions_
  991. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _impl_._oneof_case_[0]),
  992. ~0u, // no _weak_field_map_
  993. ~0u, // no _inlined_string_donated_
  994. ~0u, // no _split_
  995. ~0u, // no sizeof(Split)
  996. ::_pbi::kInvalidFieldOffsetTag,
  997. ::_pbi::kInvalidFieldOffsetTag,
  998. ::_pbi::kInvalidFieldOffsetTag,
  999. ::_pbi::kInvalidFieldOffsetTag,
  1000. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _impl_.target_id_),
  1001. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _impl_.once_),
  1002. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _impl_.expected_count_),
  1003. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _impl_.target_type_),
  1004. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _impl_.resume_type_),
  1005. ~0u,
  1006. ~0u,
  1007. ~0u,
  1008. ~0u,
  1009. ~0u,
  1010. ~0u,
  1011. 0,
  1012. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TargetChange, _impl_._has_bits_),
  1013. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TargetChange, _internal_metadata_),
  1014. ~0u, // no _extensions_
  1015. ~0u, // no _oneof_case_
  1016. ~0u, // no _weak_field_map_
  1017. ~0u, // no _inlined_string_donated_
  1018. ~0u, // no _split_
  1019. ~0u, // no sizeof(Split)
  1020. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TargetChange, _impl_.target_change_type_),
  1021. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TargetChange, _impl_.target_ids_),
  1022. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TargetChange, _impl_.cause_),
  1023. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TargetChange, _impl_.resume_token_),
  1024. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TargetChange, _impl_.read_time_),
  1025. ~0u,
  1026. ~0u,
  1027. 0,
  1028. ~0u,
  1029. 1,
  1030. ~0u, // no _has_bits_
  1031. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListCollectionIdsRequest, _internal_metadata_),
  1032. ~0u, // no _extensions_
  1033. ~0u, // no _oneof_case_
  1034. ~0u, // no _weak_field_map_
  1035. ~0u, // no _inlined_string_donated_
  1036. ~0u, // no _split_
  1037. ~0u, // no sizeof(Split)
  1038. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListCollectionIdsRequest, _impl_.parent_),
  1039. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListCollectionIdsRequest, _impl_.page_size_),
  1040. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListCollectionIdsRequest, _impl_.page_token_),
  1041. ~0u, // no _has_bits_
  1042. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListCollectionIdsResponse, _internal_metadata_),
  1043. ~0u, // no _extensions_
  1044. ~0u, // no _oneof_case_
  1045. ~0u, // no _weak_field_map_
  1046. ~0u, // no _inlined_string_donated_
  1047. ~0u, // no _split_
  1048. ~0u, // no sizeof(Split)
  1049. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListCollectionIdsResponse, _impl_.collection_ids_),
  1050. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListCollectionIdsResponse, _impl_.next_page_token_),
  1051. };
  1052. static const ::_pbi::MigrationSchema
  1053. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  1054. {0, 13, -1, sizeof(::google::firestore::v1::GetDocumentRequest)},
  1055. {17, 35, -1, sizeof(::google::firestore::v1::ListDocumentsRequest)},
  1056. {44, -1, -1, sizeof(::google::firestore::v1::ListDocumentsResponse)},
  1057. {54, 67, -1, sizeof(::google::firestore::v1::CreateDocumentRequest)},
  1058. {72, 84, -1, sizeof(::google::firestore::v1::UpdateDocumentRequest)},
  1059. {88, 98, -1, sizeof(::google::firestore::v1::DeleteDocumentRequest)},
  1060. {100, 115, -1, sizeof(::google::firestore::v1::BatchGetDocumentsRequest)},
  1061. {121, 134, -1, sizeof(::google::firestore::v1::BatchGetDocumentsResponse)},
  1062. {138, 148, -1, sizeof(::google::firestore::v1::BeginTransactionRequest)},
  1063. {150, -1, -1, sizeof(::google::firestore::v1::BeginTransactionResponse)},
  1064. {159, -1, -1, sizeof(::google::firestore::v1::CommitRequest)},
  1065. {170, 180, -1, sizeof(::google::firestore::v1::CommitResponse)},
  1066. {182, -1, -1, sizeof(::google::firestore::v1::RollbackRequest)},
  1067. {192, -1, -1, sizeof(::google::firestore::v1::RunQueryRequest)},
  1068. {207, 219, -1, sizeof(::google::firestore::v1::RunQueryResponse)},
  1069. {223, -1, -1, sizeof(::google::firestore::v1::RunAggregationQueryRequest)},
  1070. {238, 249, -1, sizeof(::google::firestore::v1::RunAggregationQueryResponse)},
  1071. {252, 262, -1, sizeof(::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse)},
  1072. {264, -1, -1, sizeof(::google::firestore::v1::WriteRequest)},
  1073. {277, 289, -1, sizeof(::google::firestore::v1::WriteResponse)},
  1074. {293, 303, -1, sizeof(::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse)},
  1075. {305, -1, -1, sizeof(::google::firestore::v1::ListenRequest)},
  1076. {318, -1, -1, sizeof(::google::firestore::v1::ListenResponse)},
  1077. {332, -1, -1, sizeof(::google::firestore::v1::Target_DocumentsTarget)},
  1078. {341, -1, -1, sizeof(::google::firestore::v1::Target_QueryTarget)},
  1079. {352, 369, -1, sizeof(::google::firestore::v1::Target)},
  1080. {376, 389, -1, sizeof(::google::firestore::v1::TargetChange)},
  1081. {394, -1, -1, sizeof(::google::firestore::v1::ListCollectionIdsRequest)},
  1082. {405, -1, -1, sizeof(::google::firestore::v1::ListCollectionIdsResponse)},
  1083. };
  1084. static const ::_pb::Message* const file_default_instances[] = {
  1085. &::google::firestore::v1::_GetDocumentRequest_default_instance_._instance,
  1086. &::google::firestore::v1::_ListDocumentsRequest_default_instance_._instance,
  1087. &::google::firestore::v1::_ListDocumentsResponse_default_instance_._instance,
  1088. &::google::firestore::v1::_CreateDocumentRequest_default_instance_._instance,
  1089. &::google::firestore::v1::_UpdateDocumentRequest_default_instance_._instance,
  1090. &::google::firestore::v1::_DeleteDocumentRequest_default_instance_._instance,
  1091. &::google::firestore::v1::_BatchGetDocumentsRequest_default_instance_._instance,
  1092. &::google::firestore::v1::_BatchGetDocumentsResponse_default_instance_._instance,
  1093. &::google::firestore::v1::_BeginTransactionRequest_default_instance_._instance,
  1094. &::google::firestore::v1::_BeginTransactionResponse_default_instance_._instance,
  1095. &::google::firestore::v1::_CommitRequest_default_instance_._instance,
  1096. &::google::firestore::v1::_CommitResponse_default_instance_._instance,
  1097. &::google::firestore::v1::_RollbackRequest_default_instance_._instance,
  1098. &::google::firestore::v1::_RunQueryRequest_default_instance_._instance,
  1099. &::google::firestore::v1::_RunQueryResponse_default_instance_._instance,
  1100. &::google::firestore::v1::_RunAggregationQueryRequest_default_instance_._instance,
  1101. &::google::firestore::v1::_RunAggregationQueryResponse_default_instance_._instance,
  1102. &::google::firestore::v1::_WriteRequest_LabelsEntry_DoNotUse_default_instance_._instance,
  1103. &::google::firestore::v1::_WriteRequest_default_instance_._instance,
  1104. &::google::firestore::v1::_WriteResponse_default_instance_._instance,
  1105. &::google::firestore::v1::_ListenRequest_LabelsEntry_DoNotUse_default_instance_._instance,
  1106. &::google::firestore::v1::_ListenRequest_default_instance_._instance,
  1107. &::google::firestore::v1::_ListenResponse_default_instance_._instance,
  1108. &::google::firestore::v1::_Target_DocumentsTarget_default_instance_._instance,
  1109. &::google::firestore::v1::_Target_QueryTarget_default_instance_._instance,
  1110. &::google::firestore::v1::_Target_default_instance_._instance,
  1111. &::google::firestore::v1::_TargetChange_default_instance_._instance,
  1112. &::google::firestore::v1::_ListCollectionIdsRequest_default_instance_._instance,
  1113. &::google::firestore::v1::_ListCollectionIdsResponse_default_instance_._instance,
  1114. };
  1115. const char descriptor_table_protodef_google_2ffirestore_2fv1_2ffirestore_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  1116. "\n#google/firestore/v1/firestore.proto\022\023g"
  1117. "oogle.firestore.v1\032\034google/api/annotatio"
  1118. "ns.proto\032,google/firestore/v1/aggregatio"
  1119. "n_result.proto\032 google/firestore/v1/comm"
  1120. "on.proto\032\"google/firestore/v1/document.p"
  1121. "roto\032\037google/firestore/v1/query.proto\032\037g"
  1122. "oogle/firestore/v1/write.proto\032\033google/p"
  1123. "rotobuf/empty.proto\032\037google/protobuf/tim"
  1124. "estamp.proto\032\036google/protobuf/wrappers.p"
  1125. "roto\032\027google/rpc/status.proto\"\263\001\n\022GetDoc"
  1126. "umentRequest\022\014\n\004name\030\001 \001(\t\022/\n\004mask\030\002 \001(\013"
  1127. "2!.google.firestore.v1.DocumentMask\022\025\n\013t"
  1128. "ransaction\030\003 \001(\014H\000\022/\n\tread_time\030\005 \001(\0132\032."
  1129. "google.protobuf.TimestampH\000B\026\n\024consisten"
  1130. "cy_selector\"\235\002\n\024ListDocumentsRequest\022\016\n\006"
  1131. "parent\030\001 \001(\t\022\025\n\rcollection_id\030\002 \001(\t\022\021\n\tp"
  1132. "age_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\020\n\010or"
  1133. "der_by\030\006 \001(\t\022/\n\004mask\030\007 \001(\0132!.google.fire"
  1134. "store.v1.DocumentMask\022\025\n\013transaction\030\010 \001"
  1135. "(\014H\000\022/\n\tread_time\030\n \001(\0132\032.google.protobu"
  1136. "f.TimestampH\000\022\024\n\014show_missing\030\014 \001(\010B\026\n\024c"
  1137. "onsistency_selector\"b\n\025ListDocumentsResp"
  1138. "onse\0220\n\tdocuments\030\001 \003(\0132\035.google.firesto"
  1139. "re.v1.Document\022\027\n\017next_page_token\030\002 \001(\t\""
  1140. "\265\001\n\025CreateDocumentRequest\022\016\n\006parent\030\001 \001("
  1141. "\t\022\025\n\rcollection_id\030\002 \001(\t\022\023\n\013document_id\030"
  1142. "\003 \001(\t\022/\n\010document\030\004 \001(\0132\035.google.firesto"
  1143. "re.v1.Document\022/\n\004mask\030\005 \001(\0132!.google.fi"
  1144. "restore.v1.DocumentMask\"\356\001\n\025UpdateDocume"
  1145. "ntRequest\022/\n\010document\030\001 \001(\0132\035.google.fir"
  1146. "estore.v1.Document\0226\n\013update_mask\030\002 \001(\0132"
  1147. "!.google.firestore.v1.DocumentMask\022/\n\004ma"
  1148. "sk\030\003 \001(\0132!.google.firestore.v1.DocumentM"
  1149. "ask\022;\n\020current_document\030\004 \001(\0132!.google.f"
  1150. "irestore.v1.Precondition\"b\n\025DeleteDocume"
  1151. "ntRequest\022\014\n\004name\030\001 \001(\t\022;\n\020current_docum"
  1152. "ent\030\002 \001(\0132!.google.firestore.v1.Precondi"
  1153. "tion\"\224\002\n\030BatchGetDocumentsRequest\022\020\n\010dat"
  1154. "abase\030\001 \001(\t\022\021\n\tdocuments\030\002 \003(\t\022/\n\004mask\030\003"
  1155. " \001(\0132!.google.firestore.v1.DocumentMask\022"
  1156. "\025\n\013transaction\030\004 \001(\014H\000\022B\n\017new_transactio"
  1157. "n\030\005 \001(\0132\'.google.firestore.v1.Transactio"
  1158. "nOptionsH\000\022/\n\tread_time\030\007 \001(\0132\032.google.p"
  1159. "rotobuf.TimestampH\000B\026\n\024consistency_selec"
  1160. "tor\"\254\001\n\031BatchGetDocumentsResponse\022.\n\005fou"
  1161. "nd\030\001 \001(\0132\035.google.firestore.v1.DocumentH"
  1162. "\000\022\021\n\007missing\030\002 \001(\tH\000\022\023\n\013transaction\030\003 \001("
  1163. "\014\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf.T"
  1164. "imestampB\010\n\006result\"e\n\027BeginTransactionRe"
  1165. "quest\022\020\n\010database\030\001 \001(\t\0228\n\007options\030\002 \001(\013"
  1166. "2\'.google.firestore.v1.TransactionOption"
  1167. "s\"/\n\030BeginTransactionResponse\022\023\n\013transac"
  1168. "tion\030\001 \001(\014\"b\n\rCommitRequest\022\020\n\010database\030"
  1169. "\001 \001(\t\022*\n\006writes\030\002 \003(\0132\032.google.firestore"
  1170. ".v1.Write\022\023\n\013transaction\030\003 \001(\014\"z\n\016Commit"
  1171. "Response\0227\n\rwrite_results\030\001 \003(\0132 .google"
  1172. ".firestore.v1.WriteResult\022/\n\013commit_time"
  1173. "\030\002 \001(\0132\032.google.protobuf.Timestamp\"8\n\017Ro"
  1174. "llbackRequest\022\020\n\010database\030\001 \001(\t\022\023\n\013trans"
  1175. "action\030\002 \001(\014\"\225\002\n\017RunQueryRequest\022\016\n\006pare"
  1176. "nt\030\001 \001(\t\022@\n\020structured_query\030\002 \001(\0132$.goo"
  1177. "gle.firestore.v1.StructuredQueryH\000\022\025\n\013tr"
  1178. "ansaction\030\005 \001(\014H\001\022B\n\017new_transaction\030\006 \001"
  1179. "(\0132\'.google.firestore.v1.TransactionOpti"
  1180. "onsH\001\022/\n\tread_time\030\007 \001(\0132\032.google.protob"
  1181. "uf.TimestampH\001B\014\n\nquery_typeB\026\n\024consiste"
  1182. "ncy_selector\"\240\001\n\020RunQueryResponse\022\023\n\013tra"
  1183. "nsaction\030\002 \001(\014\022/\n\010document\030\001 \001(\0132\035.googl"
  1184. "e.firestore.v1.Document\022-\n\tread_time\030\003 \001"
  1185. "(\0132\032.google.protobuf.Timestamp\022\027\n\017skippe"
  1186. "d_results\030\004 \001(\005\"\267\002\n\032RunAggregationQueryR"
  1187. "equest\022\016\n\006parent\030\001 \001(\t\022W\n\034structured_agg"
  1188. "regation_query\030\002 \001(\0132/.google.firestore."
  1189. "v1.StructuredAggregationQueryH\000\022\025\n\013trans"
  1190. "action\030\004 \001(\014H\001\022B\n\017new_transaction\030\005 \001(\0132"
  1191. "\'.google.firestore.v1.TransactionOptions"
  1192. "H\001\022/\n\tread_time\030\006 \001(\0132\032.google.protobuf."
  1193. "TimestampH\001B\014\n\nquery_typeB\026\n\024consistency"
  1194. "_selector\"\231\001\n\033RunAggregationQueryRespons"
  1195. "e\0226\n\006result\030\001 \001(\0132&.google.firestore.v1."
  1196. "AggregationResult\022\023\n\013transaction\030\002 \001(\014\022-"
  1197. "\n\tread_time\030\003 \001(\0132\032.google.protobuf.Time"
  1198. "stamp\"\343\001\n\014WriteRequest\022\020\n\010database\030\001 \001(\t"
  1199. "\022\021\n\tstream_id\030\002 \001(\t\022*\n\006writes\030\003 \003(\0132\032.go"
  1200. "ogle.firestore.v1.Write\022\024\n\014stream_token\030"
  1201. "\004 \001(\014\022=\n\006labels\030\005 \003(\0132-.google.firestore"
  1202. ".v1.WriteRequest.LabelsEntry\032-\n\013LabelsEn"
  1203. "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\242\001\n\r"
  1204. "WriteResponse\022\021\n\tstream_id\030\001 \001(\t\022\024\n\014stre"
  1205. "am_token\030\002 \001(\014\0227\n\rwrite_results\030\003 \003(\0132 ."
  1206. "google.firestore.v1.WriteResult\022/\n\013commi"
  1207. "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp"
  1208. "\"\355\001\n\rListenRequest\022\020\n\010database\030\001 \001(\t\0221\n\n"
  1209. "add_target\030\002 \001(\0132\033.google.firestore.v1.T"
  1210. "argetH\000\022\027\n\rremove_target\030\003 \001(\005H\000\022>\n\006labe"
  1211. "ls\030\004 \003(\0132..google.firestore.v1.ListenReq"
  1212. "uest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001"
  1213. " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\017\n\rtarget_change"
  1214. "\"\325\002\n\016ListenResponse\022:\n\rtarget_change\030\002 \001"
  1215. "(\0132!.google.firestore.v1.TargetChangeH\000\022"
  1216. ">\n\017document_change\030\003 \001(\0132#.google.firest"
  1217. "ore.v1.DocumentChangeH\000\022>\n\017document_dele"
  1218. "te\030\004 \001(\0132#.google.firestore.v1.DocumentD"
  1219. "eleteH\000\022>\n\017document_remove\030\006 \001(\0132#.googl"
  1220. "e.firestore.v1.DocumentRemoveH\000\0226\n\006filte"
  1221. "r\030\005 \001(\0132$.google.firestore.v1.ExistenceF"
  1222. "ilterH\000B\017\n\rresponse_type\"\326\003\n\006Target\0228\n\005q"
  1223. "uery\030\002 \001(\0132\'.google.firestore.v1.Target."
  1224. "QueryTargetH\000\022@\n\tdocuments\030\003 \001(\0132+.googl"
  1225. "e.firestore.v1.Target.DocumentsTargetH\000\022"
  1226. "\026\n\014resume_token\030\004 \001(\014H\001\022/\n\tread_time\030\013 \001"
  1227. "(\0132\032.google.protobuf.TimestampH\001\022\021\n\ttarg"
  1228. "et_id\030\005 \001(\005\022\014\n\004once\030\006 \001(\010\0223\n\016expected_co"
  1229. "unt\030\014 \001(\0132\033.google.protobuf.Int32Value\032$"
  1230. "\n\017DocumentsTarget\022\021\n\tdocuments\030\002 \003(\t\032m\n\013"
  1231. "QueryTarget\022\016\n\006parent\030\001 \001(\t\022@\n\020structure"
  1232. "d_query\030\002 \001(\0132$.google.firestore.v1.Stru"
  1233. "cturedQueryH\000B\014\n\nquery_typeB\r\n\013target_ty"
  1234. "peB\r\n\013resume_type\"\252\002\n\014TargetChange\022N\n\022ta"
  1235. "rget_change_type\030\001 \001(\01622.google.firestor"
  1236. "e.v1.TargetChange.TargetChangeType\022\022\n\nta"
  1237. "rget_ids\030\002 \003(\005\022!\n\005cause\030\003 \001(\0132\022.google.r"
  1238. "pc.Status\022\024\n\014resume_token\030\004 \001(\014\022-\n\tread_"
  1239. "time\030\006 \001(\0132\032.google.protobuf.Timestamp\"N"
  1240. "\n\020TargetChangeType\022\r\n\tNO_CHANGE\020\000\022\007\n\003ADD"
  1241. "\020\001\022\n\n\006REMOVE\020\002\022\013\n\007CURRENT\020\003\022\t\n\005RESET\020\004\"Q"
  1242. "\n\030ListCollectionIdsRequest\022\016\n\006parent\030\001 \001"
  1243. "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001("
  1244. "\t\"L\n\031ListCollectionIdsResponse\022\026\n\016collec"
  1245. "tion_ids\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2"
  1246. "\236\024\n\tFirestore\022\217\001\n\013GetDocument\022\'.google.f"
  1247. "irestore.v1.GetDocumentRequest\032\035.google."
  1248. "firestore.v1.Document\"8\202\323\344\223\0022\0220/v1/{name"
  1249. "=projects/*/databases/*/documents/*/**}\022"
  1250. "\262\001\n\rListDocuments\022).google.firestore.v1."
  1251. "ListDocumentsRequest\032*.google.firestore."
  1252. "v1.ListDocumentsResponse\"J\202\323\344\223\002D\022B/v1/{p"
  1253. "arent=projects/*/databases/*/documents/*"
  1254. "/**}/{collection_id}\022\257\001\n\016CreateDocument\022"
  1255. "*.google.firestore.v1.CreateDocumentRequ"
  1256. "est\032\035.google.firestore.v1.Document\"R\202\323\344\223"
  1257. "\002L\"@/v1/{parent=projects/*/databases/*/d"
  1258. "ocuments/**}/{collection_id}:\010document\022\250"
  1259. "\001\n\016UpdateDocument\022*.google.firestore.v1."
  1260. "UpdateDocumentRequest\032\035.google.firestore"
  1261. ".v1.Document\"K\202\323\344\223\002E29/v1/{document.name"
  1262. "=projects/*/databases/*/documents/*/**}:"
  1263. "\010document\022\216\001\n\016DeleteDocument\022*.google.fi"
  1264. "restore.v1.DeleteDocumentRequest\032\026.googl"
  1265. "e.protobuf.Empty\"8\202\323\344\223\0022*0/v1/{name=proj"
  1266. "ects/*/databases/*/documents/*/**}\022\271\001\n\021B"
  1267. "atchGetDocuments\022-.google.firestore.v1.B"
  1268. "atchGetDocumentsRequest\032..google.firesto"
  1269. "re.v1.BatchGetDocumentsResponse\"C\202\323\344\223\002=\""
  1270. "8/v1/{database=projects/*/databases/*}/d"
  1271. "ocuments:batchGet:\001*0\001\022\274\001\n\020BeginTransact"
  1272. "ion\022,.google.firestore.v1.BeginTransacti"
  1273. "onRequest\032-.google.firestore.v1.BeginTra"
  1274. "nsactionResponse\"K\202\323\344\223\002E\"@/v1/{database="
  1275. "projects/*/databases/*}/documents:beginT"
  1276. "ransaction:\001*\022\224\001\n\006Commit\022\".google.firest"
  1277. "ore.v1.CommitRequest\032#.google.firestore."
  1278. "v1.CommitResponse\"A\202\323\344\223\002;\"6/v1/{database"
  1279. "=projects/*/databases/*}/documents:commi"
  1280. "t:\001*\022\215\001\n\010Rollback\022$.google.firestore.v1."
  1281. "RollbackRequest\032\026.google.protobuf.Empty\""
  1282. "C\202\323\344\223\002=\"8/v1/{database=projects/*/databa"
  1283. "ses/*}/documents:rollback:\001*\022\337\001\n\010RunQuer"
  1284. "y\022$.google.firestore.v1.RunQueryRequest\032"
  1285. "%.google.firestore.v1.RunQueryResponse\"\203"
  1286. "\001\202\323\344\223\002}\"6/v1/{parent=projects/*/database"
  1287. "s/*/documents}:runQuery:\001*Z@\";/v1/{paren"
  1288. "t=projects/*/databases/*/documents/*/**}"
  1289. ":runQuery:\001*0\001\022\227\002\n\023RunAggregationQuery\022/"
  1290. ".google.firestore.v1.RunAggregationQuery"
  1291. "Request\0320.google.firestore.v1.RunAggrega"
  1292. "tionQueryResponse\"\232\001\202\323\344\223\002\223\001\"A/v1/{parent"
  1293. "=projects/*/databases/*/documents}:runAg"
  1294. "gregationQuery:\001*ZK\"F/v1/{parent=project"
  1295. "s/*/databases/*/documents/*/**}:runAggre"
  1296. "gationQuery:\001*0\001\022\224\001\n\005Write\022!.google.fire"
  1297. "store.v1.WriteRequest\032\".google.firestore"
  1298. ".v1.WriteResponse\"@\202\323\344\223\002:\"5/v1/{database"
  1299. "=projects/*/databases/*}/documents:write"
  1300. ":\001*(\0010\001\022\230\001\n\006Listen\022\".google.firestore.v1"
  1301. ".ListenRequest\032#.google.firestore.v1.Lis"
  1302. "tenResponse\"A\202\323\344\223\002;\"6/v1/{database=proje"
  1303. "cts/*/databases/*}/documents:listen:\001*(\001"
  1304. "0\001\022\213\002\n\021ListCollectionIds\022-.google.firest"
  1305. "ore.v1.ListCollectionIdsRequest\032..google"
  1306. ".firestore.v1.ListCollectionIdsResponse\""
  1307. "\226\001\202\323\344\223\002\217\001\"\?/v1/{parent=projects/*/databa"
  1308. "ses/*/documents}:listCollectionIds:\001*ZI\""
  1309. "D/v1/{parent=projects/*/databases/*/docu"
  1310. "ments/*/**}:listCollectionIds:\001*B\262\001\n\027com"
  1311. ".google.firestore.v1B\016FirestoreProtoP\001Z<"
  1312. "google.golang.org/genproto/googleapis/fi"
  1313. "restore/v1;firestore\242\002\004GCFS\252\002\036Google.Clo"
  1314. "ud.Firestore.V1Beta1\312\002\036Google\\Cloud\\Fire"
  1315. "store\\V1beta1b\006proto3"
  1316. };
  1317. static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_deps[10] =
  1318. {
  1319. &::descriptor_table_google_2fapi_2fannotations_2eproto,
  1320. &::descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto,
  1321. &::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto,
  1322. &::descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto,
  1323. &::descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto,
  1324. &::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto,
  1325. &::descriptor_table_google_2fprotobuf_2fempty_2eproto,
  1326. &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
  1327. &::descriptor_table_google_2fprotobuf_2fwrappers_2eproto,
  1328. &::descriptor_table_google_2frpc_2fstatus_2eproto,
  1329. };
  1330. static ::absl::once_flag descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once;
  1331. const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto = {
  1332. false,
  1333. false,
  1334. 7981,
  1335. descriptor_table_protodef_google_2ffirestore_2fv1_2ffirestore_2eproto,
  1336. "google/firestore/v1/firestore.proto",
  1337. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  1338. descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_deps,
  1339. 10,
  1340. 29,
  1341. schemas,
  1342. file_default_instances,
  1343. TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto::offsets,
  1344. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto,
  1345. file_level_enum_descriptors_google_2ffirestore_2fv1_2ffirestore_2eproto,
  1346. file_level_service_descriptors_google_2ffirestore_2fv1_2ffirestore_2eproto,
  1347. };
  1348. // This function exists to be marked as weak.
  1349. // It can significantly speed up compilation by breaking up LLVM's SCC
  1350. // in the .pb.cc translation units. Large translation units see a
  1351. // reduction of more than 35% of walltime for optimized builds. Without
  1352. // the weak attribute all the messages in the file, including all the
  1353. // vtables and everything they use become part of the same SCC through
  1354. // a cycle like:
  1355. // GetMetadata -> descriptor table -> default instances ->
  1356. // vtables -> GetMetadata
  1357. // By adding a weak function here we break the connection from the
  1358. // individual vtables back into the descriptor table.
  1359. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter() {
  1360. return &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1361. }
  1362. // Force running AddDescriptors() at dynamic initialization time.
  1363. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  1364. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2ffirestore_2fv1_2ffirestore_2eproto(&descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1365. namespace google {
  1366. namespace firestore {
  1367. namespace v1 {
  1368. const ::google::protobuf::EnumDescriptor* TargetChange_TargetChangeType_descriptor() {
  1369. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1370. return file_level_enum_descriptors_google_2ffirestore_2fv1_2ffirestore_2eproto[0];
  1371. }
  1372. PROTOBUF_CONSTINIT const uint32_t TargetChange_TargetChangeType_internal_data_[] = {
  1373. 327680u, 0u, };
  1374. bool TargetChange_TargetChangeType_IsValid(int value) {
  1375. return 0 <= value && value <= 4;
  1376. }
  1377. #if (__cplusplus < 201703) && \
  1378. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  1379. constexpr TargetChange_TargetChangeType TargetChange::NO_CHANGE;
  1380. constexpr TargetChange_TargetChangeType TargetChange::ADD;
  1381. constexpr TargetChange_TargetChangeType TargetChange::REMOVE;
  1382. constexpr TargetChange_TargetChangeType TargetChange::CURRENT;
  1383. constexpr TargetChange_TargetChangeType TargetChange::RESET;
  1384. constexpr TargetChange_TargetChangeType TargetChange::TargetChangeType_MIN;
  1385. constexpr TargetChange_TargetChangeType TargetChange::TargetChangeType_MAX;
  1386. constexpr int TargetChange::TargetChangeType_ARRAYSIZE;
  1387. #endif // (__cplusplus < 201703) &&
  1388. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  1389. // ===================================================================
  1390. class GetDocumentRequest::_Internal {
  1391. public:
  1392. using HasBits = decltype(std::declval<GetDocumentRequest>()._impl_._has_bits_);
  1393. static constexpr ::int32_t kHasBitsOffset =
  1394. 8 * PROTOBUF_FIELD_OFFSET(GetDocumentRequest, _impl_._has_bits_);
  1395. static constexpr ::int32_t kOneofCaseOffset =
  1396. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::GetDocumentRequest, _impl_._oneof_case_);
  1397. static const ::google::firestore::v1::DocumentMask& mask(const GetDocumentRequest* msg);
  1398. static void set_has_mask(HasBits* has_bits) {
  1399. (*has_bits)[0] |= 1u;
  1400. }
  1401. static const ::google::protobuf::Timestamp& read_time(const GetDocumentRequest* msg);
  1402. };
  1403. const ::google::firestore::v1::DocumentMask& GetDocumentRequest::_Internal::mask(const GetDocumentRequest* msg) {
  1404. return *msg->_impl_.mask_;
  1405. }
  1406. const ::google::protobuf::Timestamp& GetDocumentRequest::_Internal::read_time(const GetDocumentRequest* msg) {
  1407. return *msg->_impl_.consistency_selector_.read_time_;
  1408. }
  1409. void GetDocumentRequest::clear_mask() {
  1410. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1411. if (_impl_.mask_ != nullptr) _impl_.mask_->Clear();
  1412. _impl_._has_bits_[0] &= ~0x00000001u;
  1413. }
  1414. void GetDocumentRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
  1415. ::google::protobuf::Arena* message_arena = GetArena();
  1416. clear_consistency_selector();
  1417. if (read_time) {
  1418. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(read_time)->GetArena();
  1419. if (message_arena != submessage_arena) {
  1420. read_time = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_time, submessage_arena);
  1421. }
  1422. set_has_read_time();
  1423. _impl_.consistency_selector_.read_time_ = read_time;
  1424. }
  1425. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.read_time)
  1426. }
  1427. void GetDocumentRequest::clear_read_time() {
  1428. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1429. if (consistency_selector_case() == kReadTime) {
  1430. if (GetArena() == nullptr) {
  1431. delete _impl_.consistency_selector_.read_time_;
  1432. }
  1433. clear_has_consistency_selector();
  1434. }
  1435. }
  1436. GetDocumentRequest::GetDocumentRequest(::google::protobuf::Arena* arena)
  1437. : ::google::protobuf::Message(arena) {
  1438. SharedCtor(arena);
  1439. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.GetDocumentRequest)
  1440. }
  1441. inline PROTOBUF_NDEBUG_INLINE GetDocumentRequest::Impl_::Impl_(
  1442. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1443. const Impl_& from)
  1444. : _has_bits_{from._has_bits_},
  1445. _cached_size_{0},
  1446. name_(arena, from.name_),
  1447. consistency_selector_{},
  1448. _oneof_case_{from._oneof_case_[0]} {}
  1449. GetDocumentRequest::GetDocumentRequest(
  1450. ::google::protobuf::Arena* arena,
  1451. const GetDocumentRequest& from)
  1452. : ::google::protobuf::Message(arena) {
  1453. GetDocumentRequest* const _this = this;
  1454. (void)_this;
  1455. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1456. from._internal_metadata_);
  1457. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1458. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  1459. _impl_.mask_ = (cached_has_bits & 0x00000001u)
  1460. ? CreateMaybeMessage<::google::firestore::v1::DocumentMask>(arena, *from._impl_.mask_)
  1461. : nullptr;
  1462. switch (consistency_selector_case()) {
  1463. case CONSISTENCY_SELECTOR_NOT_SET:
  1464. break;
  1465. case kTransaction:
  1466. new (&_impl_.consistency_selector_.transaction_) decltype(_impl_.consistency_selector_.transaction_){arena, from._impl_.consistency_selector_.transaction_};
  1467. break;
  1468. case kReadTime:
  1469. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.consistency_selector_.read_time_);
  1470. break;
  1471. }
  1472. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.GetDocumentRequest)
  1473. }
  1474. inline PROTOBUF_NDEBUG_INLINE GetDocumentRequest::Impl_::Impl_(
  1475. ::google::protobuf::internal::InternalVisibility visibility,
  1476. ::google::protobuf::Arena* arena)
  1477. : _cached_size_{0},
  1478. name_(arena),
  1479. consistency_selector_{},
  1480. _oneof_case_{} {}
  1481. inline void GetDocumentRequest::SharedCtor(::_pb::Arena* arena) {
  1482. new (&_impl_) Impl_(internal_visibility(), arena);
  1483. _impl_.mask_ = {};
  1484. }
  1485. GetDocumentRequest::~GetDocumentRequest() {
  1486. // @@protoc_insertion_point(destructor:google.firestore.v1.GetDocumentRequest)
  1487. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1488. SharedDtor();
  1489. }
  1490. inline void GetDocumentRequest::SharedDtor() {
  1491. ABSL_DCHECK(GetArena() == nullptr);
  1492. _impl_.name_.Destroy();
  1493. delete _impl_.mask_;
  1494. if (has_consistency_selector()) {
  1495. clear_consistency_selector();
  1496. }
  1497. _impl_.~Impl_();
  1498. }
  1499. void GetDocumentRequest::clear_consistency_selector() {
  1500. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.GetDocumentRequest)
  1501. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1502. switch (consistency_selector_case()) {
  1503. case kTransaction: {
  1504. _impl_.consistency_selector_.transaction_.Destroy();
  1505. break;
  1506. }
  1507. case kReadTime: {
  1508. if (GetArena() == nullptr) {
  1509. delete _impl_.consistency_selector_.read_time_;
  1510. }
  1511. break;
  1512. }
  1513. case CONSISTENCY_SELECTOR_NOT_SET: {
  1514. break;
  1515. }
  1516. }
  1517. _impl_._oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  1518. }
  1519. PROTOBUF_NOINLINE void GetDocumentRequest::Clear() {
  1520. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.GetDocumentRequest)
  1521. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1522. ::uint32_t cached_has_bits = 0;
  1523. // Prevent compiler warnings about cached_has_bits being unused
  1524. (void) cached_has_bits;
  1525. _impl_.name_.ClearToEmpty();
  1526. cached_has_bits = _impl_._has_bits_[0];
  1527. if (cached_has_bits & 0x00000001u) {
  1528. ABSL_DCHECK(_impl_.mask_ != nullptr);
  1529. _impl_.mask_->Clear();
  1530. }
  1531. clear_consistency_selector();
  1532. _impl_._has_bits_.Clear();
  1533. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1534. }
  1535. const char* GetDocumentRequest::_InternalParse(
  1536. const char* ptr, ::_pbi::ParseContext* ctx) {
  1537. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1538. return ptr;
  1539. }
  1540. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1541. const ::_pbi::TcParseTable<1, 4, 2, 51, 2> GetDocumentRequest::_table_ = {
  1542. {
  1543. PROTOBUF_FIELD_OFFSET(GetDocumentRequest, _impl_._has_bits_),
  1544. 0, // no _extensions_
  1545. 5, 8, // max_field_number, fast_idx_mask
  1546. offsetof(decltype(_table_), field_lookup_table),
  1547. 4294967272, // skipmap
  1548. offsetof(decltype(_table_), field_entries),
  1549. 4, // num_field_entries
  1550. 2, // num_aux_entries
  1551. offsetof(decltype(_table_), aux_entries),
  1552. &_GetDocumentRequest_default_instance_._instance,
  1553. ::_pbi::TcParser::GenericFallback, // fallback
  1554. }, {{
  1555. // .google.firestore.v1.DocumentMask mask = 2;
  1556. {::_pbi::TcParser::FastMtS1,
  1557. {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetDocumentRequest, _impl_.mask_)}},
  1558. // string name = 1;
  1559. {::_pbi::TcParser::FastUS1,
  1560. {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetDocumentRequest, _impl_.name_)}},
  1561. }}, {{
  1562. 65535, 65535
  1563. }}, {{
  1564. // string name = 1;
  1565. {PROTOBUF_FIELD_OFFSET(GetDocumentRequest, _impl_.name_), -1, 0,
  1566. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1567. // .google.firestore.v1.DocumentMask mask = 2;
  1568. {PROTOBUF_FIELD_OFFSET(GetDocumentRequest, _impl_.mask_), _Internal::kHasBitsOffset + 0, 0,
  1569. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  1570. // bytes transaction = 3;
  1571. {PROTOBUF_FIELD_OFFSET(GetDocumentRequest, _impl_.consistency_selector_.transaction_), _Internal::kOneofCaseOffset + 0, 0,
  1572. (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
  1573. // .google.protobuf.Timestamp read_time = 5;
  1574. {PROTOBUF_FIELD_OFFSET(GetDocumentRequest, _impl_.consistency_selector_.read_time_), _Internal::kOneofCaseOffset + 0, 1,
  1575. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1576. }}, {{
  1577. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentMask>()},
  1578. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  1579. }}, {{
  1580. "\46\4\0\0\0\0\0\0"
  1581. "google.firestore.v1.GetDocumentRequest"
  1582. "name"
  1583. }},
  1584. };
  1585. ::uint8_t* GetDocumentRequest::_InternalSerialize(
  1586. ::uint8_t* target,
  1587. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1588. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.GetDocumentRequest)
  1589. ::uint32_t cached_has_bits = 0;
  1590. (void)cached_has_bits;
  1591. // string name = 1;
  1592. if (!this->_internal_name().empty()) {
  1593. const std::string& _s = this->_internal_name();
  1594. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1595. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.GetDocumentRequest.name");
  1596. target = stream->WriteStringMaybeAliased(1, _s, target);
  1597. }
  1598. cached_has_bits = _impl_._has_bits_[0];
  1599. // .google.firestore.v1.DocumentMask mask = 2;
  1600. if (cached_has_bits & 0x00000001u) {
  1601. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1602. 2, _Internal::mask(this),
  1603. _Internal::mask(this).GetCachedSize(), target, stream);
  1604. }
  1605. switch (consistency_selector_case()) {
  1606. case kTransaction: {
  1607. const std::string& _s = this->_internal_transaction();
  1608. target = stream->WriteBytesMaybeAliased(3, _s, target);
  1609. break;
  1610. }
  1611. case kReadTime: {
  1612. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1613. 5, _Internal::read_time(this),
  1614. _Internal::read_time(this).GetCachedSize(), target, stream);
  1615. break;
  1616. }
  1617. default:
  1618. break;
  1619. }
  1620. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1621. target =
  1622. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1623. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1624. }
  1625. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.GetDocumentRequest)
  1626. return target;
  1627. }
  1628. ::size_t GetDocumentRequest::ByteSizeLong() const {
  1629. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.GetDocumentRequest)
  1630. ::size_t total_size = 0;
  1631. ::uint32_t cached_has_bits = 0;
  1632. // Prevent compiler warnings about cached_has_bits being unused
  1633. (void) cached_has_bits;
  1634. // string name = 1;
  1635. if (!this->_internal_name().empty()) {
  1636. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  1637. this->_internal_name());
  1638. }
  1639. // .google.firestore.v1.DocumentMask mask = 2;
  1640. cached_has_bits = _impl_._has_bits_[0];
  1641. if (cached_has_bits & 0x00000001u) {
  1642. total_size +=
  1643. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mask_);
  1644. }
  1645. switch (consistency_selector_case()) {
  1646. // bytes transaction = 3;
  1647. case kTransaction: {
  1648. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  1649. this->_internal_transaction());
  1650. break;
  1651. }
  1652. // .google.protobuf.Timestamp read_time = 5;
  1653. case kReadTime: {
  1654. total_size +=
  1655. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.read_time_);
  1656. break;
  1657. }
  1658. case CONSISTENCY_SELECTOR_NOT_SET: {
  1659. break;
  1660. }
  1661. }
  1662. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1663. }
  1664. const ::google::protobuf::Message::ClassData GetDocumentRequest::_class_data_ = {
  1665. GetDocumentRequest::MergeImpl,
  1666. nullptr, // OnDemandRegisterArenaDtor
  1667. };
  1668. const ::google::protobuf::Message::ClassData* GetDocumentRequest::GetClassData() const {
  1669. return &_class_data_;
  1670. }
  1671. void GetDocumentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  1672. auto* const _this = static_cast<GetDocumentRequest*>(&to_msg);
  1673. auto& from = static_cast<const GetDocumentRequest&>(from_msg);
  1674. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.GetDocumentRequest)
  1675. ABSL_DCHECK_NE(&from, _this);
  1676. ::uint32_t cached_has_bits = 0;
  1677. (void) cached_has_bits;
  1678. if (!from._internal_name().empty()) {
  1679. _this->_internal_set_name(from._internal_name());
  1680. }
  1681. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  1682. _this->_internal_mutable_mask()->::google::firestore::v1::DocumentMask::MergeFrom(
  1683. from._internal_mask());
  1684. }
  1685. switch (from.consistency_selector_case()) {
  1686. case kTransaction: {
  1687. _this->_internal_set_transaction(from._internal_transaction());
  1688. break;
  1689. }
  1690. case kReadTime: {
  1691. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  1692. from._internal_read_time());
  1693. break;
  1694. }
  1695. case CONSISTENCY_SELECTOR_NOT_SET: {
  1696. break;
  1697. }
  1698. }
  1699. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1700. }
  1701. void GetDocumentRequest::CopyFrom(const GetDocumentRequest& from) {
  1702. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.GetDocumentRequest)
  1703. if (&from == this) return;
  1704. Clear();
  1705. MergeFrom(from);
  1706. }
  1707. PROTOBUF_NOINLINE bool GetDocumentRequest::IsInitialized() const {
  1708. return true;
  1709. }
  1710. ::_pbi::CachedSize* GetDocumentRequest::AccessCachedSize() const {
  1711. return &_impl_._cached_size_;
  1712. }
  1713. void GetDocumentRequest::InternalSwap(GetDocumentRequest* PROTOBUF_RESTRICT other) {
  1714. using std::swap;
  1715. auto* arena = GetArena();
  1716. ABSL_DCHECK_EQ(arena, other->GetArena());
  1717. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1718. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  1719. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  1720. swap(_impl_.mask_, other->_impl_.mask_);
  1721. swap(_impl_.consistency_selector_, other->_impl_.consistency_selector_);
  1722. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  1723. }
  1724. ::google::protobuf::Metadata GetDocumentRequest::GetMetadata() const {
  1725. return ::_pbi::AssignDescriptors(
  1726. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  1727. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[0]);
  1728. }
  1729. // ===================================================================
  1730. class ListDocumentsRequest::_Internal {
  1731. public:
  1732. using HasBits = decltype(std::declval<ListDocumentsRequest>()._impl_._has_bits_);
  1733. static constexpr ::int32_t kHasBitsOffset =
  1734. 8 * PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_._has_bits_);
  1735. static constexpr ::int32_t kOneofCaseOffset =
  1736. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListDocumentsRequest, _impl_._oneof_case_);
  1737. static const ::google::firestore::v1::DocumentMask& mask(const ListDocumentsRequest* msg);
  1738. static void set_has_mask(HasBits* has_bits) {
  1739. (*has_bits)[0] |= 1u;
  1740. }
  1741. static const ::google::protobuf::Timestamp& read_time(const ListDocumentsRequest* msg);
  1742. };
  1743. const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::_Internal::mask(const ListDocumentsRequest* msg) {
  1744. return *msg->_impl_.mask_;
  1745. }
  1746. const ::google::protobuf::Timestamp& ListDocumentsRequest::_Internal::read_time(const ListDocumentsRequest* msg) {
  1747. return *msg->_impl_.consistency_selector_.read_time_;
  1748. }
  1749. void ListDocumentsRequest::clear_mask() {
  1750. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1751. if (_impl_.mask_ != nullptr) _impl_.mask_->Clear();
  1752. _impl_._has_bits_[0] &= ~0x00000001u;
  1753. }
  1754. void ListDocumentsRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
  1755. ::google::protobuf::Arena* message_arena = GetArena();
  1756. clear_consistency_selector();
  1757. if (read_time) {
  1758. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(read_time)->GetArena();
  1759. if (message_arena != submessage_arena) {
  1760. read_time = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_time, submessage_arena);
  1761. }
  1762. set_has_read_time();
  1763. _impl_.consistency_selector_.read_time_ = read_time;
  1764. }
  1765. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.read_time)
  1766. }
  1767. void ListDocumentsRequest::clear_read_time() {
  1768. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1769. if (consistency_selector_case() == kReadTime) {
  1770. if (GetArena() == nullptr) {
  1771. delete _impl_.consistency_selector_.read_time_;
  1772. }
  1773. clear_has_consistency_selector();
  1774. }
  1775. }
  1776. ListDocumentsRequest::ListDocumentsRequest(::google::protobuf::Arena* arena)
  1777. : ::google::protobuf::Message(arena) {
  1778. SharedCtor(arena);
  1779. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ListDocumentsRequest)
  1780. }
  1781. inline PROTOBUF_NDEBUG_INLINE ListDocumentsRequest::Impl_::Impl_(
  1782. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1783. const Impl_& from)
  1784. : _has_bits_{from._has_bits_},
  1785. _cached_size_{0},
  1786. parent_(arena, from.parent_),
  1787. collection_id_(arena, from.collection_id_),
  1788. page_token_(arena, from.page_token_),
  1789. order_by_(arena, from.order_by_),
  1790. consistency_selector_{},
  1791. _oneof_case_{from._oneof_case_[0]} {}
  1792. ListDocumentsRequest::ListDocumentsRequest(
  1793. ::google::protobuf::Arena* arena,
  1794. const ListDocumentsRequest& from)
  1795. : ::google::protobuf::Message(arena) {
  1796. ListDocumentsRequest* const _this = this;
  1797. (void)_this;
  1798. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1799. from._internal_metadata_);
  1800. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1801. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  1802. _impl_.mask_ = (cached_has_bits & 0x00000001u)
  1803. ? CreateMaybeMessage<::google::firestore::v1::DocumentMask>(arena, *from._impl_.mask_)
  1804. : nullptr;
  1805. ::memcpy(reinterpret_cast<char *>(&_impl_) +
  1806. offsetof(Impl_, page_size_),
  1807. reinterpret_cast<const char *>(&from._impl_) +
  1808. offsetof(Impl_, page_size_),
  1809. offsetof(Impl_, show_missing_) -
  1810. offsetof(Impl_, page_size_) +
  1811. sizeof(Impl_::show_missing_));
  1812. switch (consistency_selector_case()) {
  1813. case CONSISTENCY_SELECTOR_NOT_SET:
  1814. break;
  1815. case kTransaction:
  1816. new (&_impl_.consistency_selector_.transaction_) decltype(_impl_.consistency_selector_.transaction_){arena, from._impl_.consistency_selector_.transaction_};
  1817. break;
  1818. case kReadTime:
  1819. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.consistency_selector_.read_time_);
  1820. break;
  1821. }
  1822. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ListDocumentsRequest)
  1823. }
  1824. inline PROTOBUF_NDEBUG_INLINE ListDocumentsRequest::Impl_::Impl_(
  1825. ::google::protobuf::internal::InternalVisibility visibility,
  1826. ::google::protobuf::Arena* arena)
  1827. : _cached_size_{0},
  1828. parent_(arena),
  1829. collection_id_(arena),
  1830. page_token_(arena),
  1831. order_by_(arena),
  1832. consistency_selector_{},
  1833. _oneof_case_{} {}
  1834. inline void ListDocumentsRequest::SharedCtor(::_pb::Arena* arena) {
  1835. new (&_impl_) Impl_(internal_visibility(), arena);
  1836. ::memset(reinterpret_cast<char *>(&_impl_) +
  1837. offsetof(Impl_, mask_),
  1838. 0,
  1839. offsetof(Impl_, show_missing_) -
  1840. offsetof(Impl_, mask_) +
  1841. sizeof(Impl_::show_missing_));
  1842. }
  1843. ListDocumentsRequest::~ListDocumentsRequest() {
  1844. // @@protoc_insertion_point(destructor:google.firestore.v1.ListDocumentsRequest)
  1845. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1846. SharedDtor();
  1847. }
  1848. inline void ListDocumentsRequest::SharedDtor() {
  1849. ABSL_DCHECK(GetArena() == nullptr);
  1850. _impl_.parent_.Destroy();
  1851. _impl_.collection_id_.Destroy();
  1852. _impl_.page_token_.Destroy();
  1853. _impl_.order_by_.Destroy();
  1854. delete _impl_.mask_;
  1855. if (has_consistency_selector()) {
  1856. clear_consistency_selector();
  1857. }
  1858. _impl_.~Impl_();
  1859. }
  1860. void ListDocumentsRequest::clear_consistency_selector() {
  1861. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.ListDocumentsRequest)
  1862. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1863. switch (consistency_selector_case()) {
  1864. case kTransaction: {
  1865. _impl_.consistency_selector_.transaction_.Destroy();
  1866. break;
  1867. }
  1868. case kReadTime: {
  1869. if (GetArena() == nullptr) {
  1870. delete _impl_.consistency_selector_.read_time_;
  1871. }
  1872. break;
  1873. }
  1874. case CONSISTENCY_SELECTOR_NOT_SET: {
  1875. break;
  1876. }
  1877. }
  1878. _impl_._oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  1879. }
  1880. PROTOBUF_NOINLINE void ListDocumentsRequest::Clear() {
  1881. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ListDocumentsRequest)
  1882. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1883. ::uint32_t cached_has_bits = 0;
  1884. // Prevent compiler warnings about cached_has_bits being unused
  1885. (void) cached_has_bits;
  1886. _impl_.parent_.ClearToEmpty();
  1887. _impl_.collection_id_.ClearToEmpty();
  1888. _impl_.page_token_.ClearToEmpty();
  1889. _impl_.order_by_.ClearToEmpty();
  1890. cached_has_bits = _impl_._has_bits_[0];
  1891. if (cached_has_bits & 0x00000001u) {
  1892. ABSL_DCHECK(_impl_.mask_ != nullptr);
  1893. _impl_.mask_->Clear();
  1894. }
  1895. ::memset(&_impl_.page_size_, 0, static_cast<::size_t>(
  1896. reinterpret_cast<char*>(&_impl_.show_missing_) -
  1897. reinterpret_cast<char*>(&_impl_.page_size_)) + sizeof(_impl_.show_missing_));
  1898. clear_consistency_selector();
  1899. _impl_._has_bits_.Clear();
  1900. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1901. }
  1902. const char* ListDocumentsRequest::_InternalParse(
  1903. const char* ptr, ::_pbi::ParseContext* ctx) {
  1904. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1905. return ptr;
  1906. }
  1907. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1908. const ::_pbi::TcParseTable<4, 9, 2, 94, 2> ListDocumentsRequest::_table_ = {
  1909. {
  1910. PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_._has_bits_),
  1911. 0, // no _extensions_
  1912. 12, 120, // max_field_number, fast_idx_mask
  1913. offsetof(decltype(_table_), field_lookup_table),
  1914. 4294964496, // skipmap
  1915. offsetof(decltype(_table_), field_entries),
  1916. 9, // num_field_entries
  1917. 2, // num_aux_entries
  1918. offsetof(decltype(_table_), aux_entries),
  1919. &_ListDocumentsRequest_default_instance_._instance,
  1920. ::_pbi::TcParser::GenericFallback, // fallback
  1921. }, {{
  1922. {::_pbi::TcParser::MiniParse, {}},
  1923. // string parent = 1;
  1924. {::_pbi::TcParser::FastUS1,
  1925. {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.parent_)}},
  1926. // string collection_id = 2;
  1927. {::_pbi::TcParser::FastUS1,
  1928. {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.collection_id_)}},
  1929. // int32 page_size = 3;
  1930. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListDocumentsRequest, _impl_.page_size_), 63>(),
  1931. {24, 63, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.page_size_)}},
  1932. // string page_token = 4;
  1933. {::_pbi::TcParser::FastUS1,
  1934. {34, 63, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.page_token_)}},
  1935. {::_pbi::TcParser::MiniParse, {}},
  1936. // string order_by = 6;
  1937. {::_pbi::TcParser::FastUS1,
  1938. {50, 63, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.order_by_)}},
  1939. // .google.firestore.v1.DocumentMask mask = 7;
  1940. {::_pbi::TcParser::FastMtS1,
  1941. {58, 0, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.mask_)}},
  1942. {::_pbi::TcParser::MiniParse, {}},
  1943. {::_pbi::TcParser::MiniParse, {}},
  1944. {::_pbi::TcParser::MiniParse, {}},
  1945. {::_pbi::TcParser::MiniParse, {}},
  1946. // bool show_missing = 12;
  1947. {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ListDocumentsRequest, _impl_.show_missing_), 63>(),
  1948. {96, 63, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.show_missing_)}},
  1949. {::_pbi::TcParser::MiniParse, {}},
  1950. {::_pbi::TcParser::MiniParse, {}},
  1951. {::_pbi::TcParser::MiniParse, {}},
  1952. }}, {{
  1953. 65535, 65535
  1954. }}, {{
  1955. // string parent = 1;
  1956. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.parent_), -1, 0,
  1957. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1958. // string collection_id = 2;
  1959. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.collection_id_), -1, 0,
  1960. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1961. // int32 page_size = 3;
  1962. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.page_size_), -1, 0,
  1963. (0 | ::_fl::kFcSingular | ::_fl::kInt32)},
  1964. // string page_token = 4;
  1965. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.page_token_), -1, 0,
  1966. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1967. // string order_by = 6;
  1968. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.order_by_), -1, 0,
  1969. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1970. // .google.firestore.v1.DocumentMask mask = 7;
  1971. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.mask_), _Internal::kHasBitsOffset + 0, 0,
  1972. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  1973. // bytes transaction = 8;
  1974. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.consistency_selector_.transaction_), _Internal::kOneofCaseOffset + 0, 0,
  1975. (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
  1976. // .google.protobuf.Timestamp read_time = 10;
  1977. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.consistency_selector_.read_time_), _Internal::kOneofCaseOffset + 0, 1,
  1978. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1979. // bool show_missing = 12;
  1980. {PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.show_missing_), -1, 0,
  1981. (0 | ::_fl::kFcSingular | ::_fl::kBool)},
  1982. }}, {{
  1983. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentMask>()},
  1984. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  1985. }}, {{
  1986. "\50\6\15\0\12\10\0\0\0\0\0\0\0\0\0\0"
  1987. "google.firestore.v1.ListDocumentsRequest"
  1988. "parent"
  1989. "collection_id"
  1990. "page_token"
  1991. "order_by"
  1992. }},
  1993. };
  1994. ::uint8_t* ListDocumentsRequest::_InternalSerialize(
  1995. ::uint8_t* target,
  1996. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1997. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ListDocumentsRequest)
  1998. ::uint32_t cached_has_bits = 0;
  1999. (void)cached_has_bits;
  2000. // string parent = 1;
  2001. if (!this->_internal_parent().empty()) {
  2002. const std::string& _s = this->_internal_parent();
  2003. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2004. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListDocumentsRequest.parent");
  2005. target = stream->WriteStringMaybeAliased(1, _s, target);
  2006. }
  2007. // string collection_id = 2;
  2008. if (!this->_internal_collection_id().empty()) {
  2009. const std::string& _s = this->_internal_collection_id();
  2010. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2011. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListDocumentsRequest.collection_id");
  2012. target = stream->WriteStringMaybeAliased(2, _s, target);
  2013. }
  2014. // int32 page_size = 3;
  2015. if (this->_internal_page_size() != 0) {
  2016. target = ::google::protobuf::internal::WireFormatLite::
  2017. WriteInt32ToArrayWithField<3>(
  2018. stream, this->_internal_page_size(), target);
  2019. }
  2020. // string page_token = 4;
  2021. if (!this->_internal_page_token().empty()) {
  2022. const std::string& _s = this->_internal_page_token();
  2023. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2024. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListDocumentsRequest.page_token");
  2025. target = stream->WriteStringMaybeAliased(4, _s, target);
  2026. }
  2027. // string order_by = 6;
  2028. if (!this->_internal_order_by().empty()) {
  2029. const std::string& _s = this->_internal_order_by();
  2030. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2031. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListDocumentsRequest.order_by");
  2032. target = stream->WriteStringMaybeAliased(6, _s, target);
  2033. }
  2034. cached_has_bits = _impl_._has_bits_[0];
  2035. // .google.firestore.v1.DocumentMask mask = 7;
  2036. if (cached_has_bits & 0x00000001u) {
  2037. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2038. 7, _Internal::mask(this),
  2039. _Internal::mask(this).GetCachedSize(), target, stream);
  2040. }
  2041. switch (consistency_selector_case()) {
  2042. case kTransaction: {
  2043. const std::string& _s = this->_internal_transaction();
  2044. target = stream->WriteBytesMaybeAliased(8, _s, target);
  2045. break;
  2046. }
  2047. case kReadTime: {
  2048. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2049. 10, _Internal::read_time(this),
  2050. _Internal::read_time(this).GetCachedSize(), target, stream);
  2051. break;
  2052. }
  2053. default:
  2054. break;
  2055. }
  2056. // bool show_missing = 12;
  2057. if (this->_internal_show_missing() != 0) {
  2058. target = stream->EnsureSpace(target);
  2059. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  2060. 12, this->_internal_show_missing(), target);
  2061. }
  2062. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2063. target =
  2064. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2065. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2066. }
  2067. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ListDocumentsRequest)
  2068. return target;
  2069. }
  2070. ::size_t ListDocumentsRequest::ByteSizeLong() const {
  2071. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ListDocumentsRequest)
  2072. ::size_t total_size = 0;
  2073. ::uint32_t cached_has_bits = 0;
  2074. // Prevent compiler warnings about cached_has_bits being unused
  2075. (void) cached_has_bits;
  2076. // string parent = 1;
  2077. if (!this->_internal_parent().empty()) {
  2078. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2079. this->_internal_parent());
  2080. }
  2081. // string collection_id = 2;
  2082. if (!this->_internal_collection_id().empty()) {
  2083. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2084. this->_internal_collection_id());
  2085. }
  2086. // string page_token = 4;
  2087. if (!this->_internal_page_token().empty()) {
  2088. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2089. this->_internal_page_token());
  2090. }
  2091. // string order_by = 6;
  2092. if (!this->_internal_order_by().empty()) {
  2093. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2094. this->_internal_order_by());
  2095. }
  2096. // .google.firestore.v1.DocumentMask mask = 7;
  2097. cached_has_bits = _impl_._has_bits_[0];
  2098. if (cached_has_bits & 0x00000001u) {
  2099. total_size +=
  2100. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mask_);
  2101. }
  2102. // int32 page_size = 3;
  2103. if (this->_internal_page_size() != 0) {
  2104. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  2105. this->_internal_page_size());
  2106. }
  2107. // bool show_missing = 12;
  2108. if (this->_internal_show_missing() != 0) {
  2109. total_size += 2;
  2110. }
  2111. switch (consistency_selector_case()) {
  2112. // bytes transaction = 8;
  2113. case kTransaction: {
  2114. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  2115. this->_internal_transaction());
  2116. break;
  2117. }
  2118. // .google.protobuf.Timestamp read_time = 10;
  2119. case kReadTime: {
  2120. total_size +=
  2121. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.read_time_);
  2122. break;
  2123. }
  2124. case CONSISTENCY_SELECTOR_NOT_SET: {
  2125. break;
  2126. }
  2127. }
  2128. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2129. }
  2130. const ::google::protobuf::Message::ClassData ListDocumentsRequest::_class_data_ = {
  2131. ListDocumentsRequest::MergeImpl,
  2132. nullptr, // OnDemandRegisterArenaDtor
  2133. };
  2134. const ::google::protobuf::Message::ClassData* ListDocumentsRequest::GetClassData() const {
  2135. return &_class_data_;
  2136. }
  2137. void ListDocumentsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2138. auto* const _this = static_cast<ListDocumentsRequest*>(&to_msg);
  2139. auto& from = static_cast<const ListDocumentsRequest&>(from_msg);
  2140. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ListDocumentsRequest)
  2141. ABSL_DCHECK_NE(&from, _this);
  2142. ::uint32_t cached_has_bits = 0;
  2143. (void) cached_has_bits;
  2144. if (!from._internal_parent().empty()) {
  2145. _this->_internal_set_parent(from._internal_parent());
  2146. }
  2147. if (!from._internal_collection_id().empty()) {
  2148. _this->_internal_set_collection_id(from._internal_collection_id());
  2149. }
  2150. if (!from._internal_page_token().empty()) {
  2151. _this->_internal_set_page_token(from._internal_page_token());
  2152. }
  2153. if (!from._internal_order_by().empty()) {
  2154. _this->_internal_set_order_by(from._internal_order_by());
  2155. }
  2156. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  2157. _this->_internal_mutable_mask()->::google::firestore::v1::DocumentMask::MergeFrom(
  2158. from._internal_mask());
  2159. }
  2160. if (from._internal_page_size() != 0) {
  2161. _this->_internal_set_page_size(from._internal_page_size());
  2162. }
  2163. if (from._internal_show_missing() != 0) {
  2164. _this->_internal_set_show_missing(from._internal_show_missing());
  2165. }
  2166. switch (from.consistency_selector_case()) {
  2167. case kTransaction: {
  2168. _this->_internal_set_transaction(from._internal_transaction());
  2169. break;
  2170. }
  2171. case kReadTime: {
  2172. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  2173. from._internal_read_time());
  2174. break;
  2175. }
  2176. case CONSISTENCY_SELECTOR_NOT_SET: {
  2177. break;
  2178. }
  2179. }
  2180. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2181. }
  2182. void ListDocumentsRequest::CopyFrom(const ListDocumentsRequest& from) {
  2183. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ListDocumentsRequest)
  2184. if (&from == this) return;
  2185. Clear();
  2186. MergeFrom(from);
  2187. }
  2188. PROTOBUF_NOINLINE bool ListDocumentsRequest::IsInitialized() const {
  2189. return true;
  2190. }
  2191. ::_pbi::CachedSize* ListDocumentsRequest::AccessCachedSize() const {
  2192. return &_impl_._cached_size_;
  2193. }
  2194. void ListDocumentsRequest::InternalSwap(ListDocumentsRequest* PROTOBUF_RESTRICT other) {
  2195. using std::swap;
  2196. auto* arena = GetArena();
  2197. ABSL_DCHECK_EQ(arena, other->GetArena());
  2198. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2199. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  2200. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_, &other->_impl_.parent_, arena);
  2201. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.collection_id_, &other->_impl_.collection_id_, arena);
  2202. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.page_token_, &other->_impl_.page_token_, arena);
  2203. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.order_by_, &other->_impl_.order_by_, arena);
  2204. ::google::protobuf::internal::memswap<
  2205. PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.show_missing_)
  2206. + sizeof(ListDocumentsRequest::_impl_.show_missing_)
  2207. - PROTOBUF_FIELD_OFFSET(ListDocumentsRequest, _impl_.mask_)>(
  2208. reinterpret_cast<char*>(&_impl_.mask_),
  2209. reinterpret_cast<char*>(&other->_impl_.mask_));
  2210. swap(_impl_.consistency_selector_, other->_impl_.consistency_selector_);
  2211. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  2212. }
  2213. ::google::protobuf::Metadata ListDocumentsRequest::GetMetadata() const {
  2214. return ::_pbi::AssignDescriptors(
  2215. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  2216. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[1]);
  2217. }
  2218. // ===================================================================
  2219. class ListDocumentsResponse::_Internal {
  2220. public:
  2221. };
  2222. void ListDocumentsResponse::clear_documents() {
  2223. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2224. _impl_.documents_.Clear();
  2225. }
  2226. ListDocumentsResponse::ListDocumentsResponse(::google::protobuf::Arena* arena)
  2227. : ::google::protobuf::Message(arena) {
  2228. SharedCtor(arena);
  2229. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ListDocumentsResponse)
  2230. }
  2231. inline PROTOBUF_NDEBUG_INLINE ListDocumentsResponse::Impl_::Impl_(
  2232. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2233. const Impl_& from)
  2234. : documents_{visibility, arena, from.documents_},
  2235. next_page_token_(arena, from.next_page_token_),
  2236. _cached_size_{0} {}
  2237. ListDocumentsResponse::ListDocumentsResponse(
  2238. ::google::protobuf::Arena* arena,
  2239. const ListDocumentsResponse& from)
  2240. : ::google::protobuf::Message(arena) {
  2241. ListDocumentsResponse* const _this = this;
  2242. (void)_this;
  2243. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2244. from._internal_metadata_);
  2245. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2246. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ListDocumentsResponse)
  2247. }
  2248. inline PROTOBUF_NDEBUG_INLINE ListDocumentsResponse::Impl_::Impl_(
  2249. ::google::protobuf::internal::InternalVisibility visibility,
  2250. ::google::protobuf::Arena* arena)
  2251. : documents_{visibility, arena},
  2252. next_page_token_(arena),
  2253. _cached_size_{0} {}
  2254. inline void ListDocumentsResponse::SharedCtor(::_pb::Arena* arena) {
  2255. new (&_impl_) Impl_(internal_visibility(), arena);
  2256. }
  2257. ListDocumentsResponse::~ListDocumentsResponse() {
  2258. // @@protoc_insertion_point(destructor:google.firestore.v1.ListDocumentsResponse)
  2259. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2260. SharedDtor();
  2261. }
  2262. inline void ListDocumentsResponse::SharedDtor() {
  2263. ABSL_DCHECK(GetArena() == nullptr);
  2264. _impl_.next_page_token_.Destroy();
  2265. _impl_.~Impl_();
  2266. }
  2267. PROTOBUF_NOINLINE void ListDocumentsResponse::Clear() {
  2268. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ListDocumentsResponse)
  2269. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2270. ::uint32_t cached_has_bits = 0;
  2271. // Prevent compiler warnings about cached_has_bits being unused
  2272. (void) cached_has_bits;
  2273. _impl_.documents_.Clear();
  2274. _impl_.next_page_token_.ClearToEmpty();
  2275. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2276. }
  2277. const char* ListDocumentsResponse::_InternalParse(
  2278. const char* ptr, ::_pbi::ParseContext* ctx) {
  2279. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2280. return ptr;
  2281. }
  2282. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2283. const ::_pbi::TcParseTable<1, 2, 1, 65, 2> ListDocumentsResponse::_table_ = {
  2284. {
  2285. 0, // no _has_bits_
  2286. 0, // no _extensions_
  2287. 2, 8, // max_field_number, fast_idx_mask
  2288. offsetof(decltype(_table_), field_lookup_table),
  2289. 4294967292, // skipmap
  2290. offsetof(decltype(_table_), field_entries),
  2291. 2, // num_field_entries
  2292. 1, // num_aux_entries
  2293. offsetof(decltype(_table_), aux_entries),
  2294. &_ListDocumentsResponse_default_instance_._instance,
  2295. ::_pbi::TcParser::GenericFallback, // fallback
  2296. }, {{
  2297. // string next_page_token = 2;
  2298. {::_pbi::TcParser::FastUS1,
  2299. {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsResponse, _impl_.next_page_token_)}},
  2300. // repeated .google.firestore.v1.Document documents = 1;
  2301. {::_pbi::TcParser::FastMtR1,
  2302. {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListDocumentsResponse, _impl_.documents_)}},
  2303. }}, {{
  2304. 65535, 65535
  2305. }}, {{
  2306. // repeated .google.firestore.v1.Document documents = 1;
  2307. {PROTOBUF_FIELD_OFFSET(ListDocumentsResponse, _impl_.documents_), 0, 0,
  2308. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  2309. // string next_page_token = 2;
  2310. {PROTOBUF_FIELD_OFFSET(ListDocumentsResponse, _impl_.next_page_token_), 0, 0,
  2311. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  2312. }}, {{
  2313. {::_pbi::TcParser::GetTable<::google::firestore::v1::Document>()},
  2314. }}, {{
  2315. "\51\0\17\0\0\0\0\0"
  2316. "google.firestore.v1.ListDocumentsResponse"
  2317. "next_page_token"
  2318. }},
  2319. };
  2320. ::uint8_t* ListDocumentsResponse::_InternalSerialize(
  2321. ::uint8_t* target,
  2322. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2323. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ListDocumentsResponse)
  2324. ::uint32_t cached_has_bits = 0;
  2325. (void)cached_has_bits;
  2326. // repeated .google.firestore.v1.Document documents = 1;
  2327. for (unsigned i = 0,
  2328. n = static_cast<unsigned>(this->_internal_documents_size()); i < n; i++) {
  2329. const auto& repfield = this->_internal_documents().Get(i);
  2330. target = ::google::protobuf::internal::WireFormatLite::
  2331. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  2332. }
  2333. // string next_page_token = 2;
  2334. if (!this->_internal_next_page_token().empty()) {
  2335. const std::string& _s = this->_internal_next_page_token();
  2336. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2337. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListDocumentsResponse.next_page_token");
  2338. target = stream->WriteStringMaybeAliased(2, _s, target);
  2339. }
  2340. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2341. target =
  2342. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2343. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2344. }
  2345. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ListDocumentsResponse)
  2346. return target;
  2347. }
  2348. ::size_t ListDocumentsResponse::ByteSizeLong() const {
  2349. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ListDocumentsResponse)
  2350. ::size_t total_size = 0;
  2351. ::uint32_t cached_has_bits = 0;
  2352. // Prevent compiler warnings about cached_has_bits being unused
  2353. (void) cached_has_bits;
  2354. // repeated .google.firestore.v1.Document documents = 1;
  2355. total_size += 1UL * this->_internal_documents_size();
  2356. for (const auto& msg : this->_internal_documents()) {
  2357. total_size +=
  2358. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  2359. }
  2360. // string next_page_token = 2;
  2361. if (!this->_internal_next_page_token().empty()) {
  2362. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2363. this->_internal_next_page_token());
  2364. }
  2365. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2366. }
  2367. const ::google::protobuf::Message::ClassData ListDocumentsResponse::_class_data_ = {
  2368. ListDocumentsResponse::MergeImpl,
  2369. nullptr, // OnDemandRegisterArenaDtor
  2370. };
  2371. const ::google::protobuf::Message::ClassData* ListDocumentsResponse::GetClassData() const {
  2372. return &_class_data_;
  2373. }
  2374. void ListDocumentsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2375. auto* const _this = static_cast<ListDocumentsResponse*>(&to_msg);
  2376. auto& from = static_cast<const ListDocumentsResponse&>(from_msg);
  2377. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ListDocumentsResponse)
  2378. ABSL_DCHECK_NE(&from, _this);
  2379. ::uint32_t cached_has_bits = 0;
  2380. (void) cached_has_bits;
  2381. _this->_internal_mutable_documents()->MergeFrom(
  2382. from._internal_documents());
  2383. if (!from._internal_next_page_token().empty()) {
  2384. _this->_internal_set_next_page_token(from._internal_next_page_token());
  2385. }
  2386. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2387. }
  2388. void ListDocumentsResponse::CopyFrom(const ListDocumentsResponse& from) {
  2389. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ListDocumentsResponse)
  2390. if (&from == this) return;
  2391. Clear();
  2392. MergeFrom(from);
  2393. }
  2394. PROTOBUF_NOINLINE bool ListDocumentsResponse::IsInitialized() const {
  2395. return true;
  2396. }
  2397. ::_pbi::CachedSize* ListDocumentsResponse::AccessCachedSize() const {
  2398. return &_impl_._cached_size_;
  2399. }
  2400. void ListDocumentsResponse::InternalSwap(ListDocumentsResponse* PROTOBUF_RESTRICT other) {
  2401. using std::swap;
  2402. auto* arena = GetArena();
  2403. ABSL_DCHECK_EQ(arena, other->GetArena());
  2404. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2405. _impl_.documents_.InternalSwap(&other->_impl_.documents_);
  2406. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_page_token_, &other->_impl_.next_page_token_, arena);
  2407. }
  2408. ::google::protobuf::Metadata ListDocumentsResponse::GetMetadata() const {
  2409. return ::_pbi::AssignDescriptors(
  2410. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  2411. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[2]);
  2412. }
  2413. // ===================================================================
  2414. class CreateDocumentRequest::_Internal {
  2415. public:
  2416. using HasBits = decltype(std::declval<CreateDocumentRequest>()._impl_._has_bits_);
  2417. static constexpr ::int32_t kHasBitsOffset =
  2418. 8 * PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_._has_bits_);
  2419. static const ::google::firestore::v1::Document& document(const CreateDocumentRequest* msg);
  2420. static void set_has_document(HasBits* has_bits) {
  2421. (*has_bits)[0] |= 1u;
  2422. }
  2423. static const ::google::firestore::v1::DocumentMask& mask(const CreateDocumentRequest* msg);
  2424. static void set_has_mask(HasBits* has_bits) {
  2425. (*has_bits)[0] |= 2u;
  2426. }
  2427. };
  2428. const ::google::firestore::v1::Document& CreateDocumentRequest::_Internal::document(const CreateDocumentRequest* msg) {
  2429. return *msg->_impl_.document_;
  2430. }
  2431. const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::_Internal::mask(const CreateDocumentRequest* msg) {
  2432. return *msg->_impl_.mask_;
  2433. }
  2434. void CreateDocumentRequest::clear_document() {
  2435. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2436. if (_impl_.document_ != nullptr) _impl_.document_->Clear();
  2437. _impl_._has_bits_[0] &= ~0x00000001u;
  2438. }
  2439. void CreateDocumentRequest::clear_mask() {
  2440. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2441. if (_impl_.mask_ != nullptr) _impl_.mask_->Clear();
  2442. _impl_._has_bits_[0] &= ~0x00000002u;
  2443. }
  2444. CreateDocumentRequest::CreateDocumentRequest(::google::protobuf::Arena* arena)
  2445. : ::google::protobuf::Message(arena) {
  2446. SharedCtor(arena);
  2447. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.CreateDocumentRequest)
  2448. }
  2449. inline PROTOBUF_NDEBUG_INLINE CreateDocumentRequest::Impl_::Impl_(
  2450. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2451. const Impl_& from)
  2452. : _has_bits_{from._has_bits_},
  2453. _cached_size_{0},
  2454. parent_(arena, from.parent_),
  2455. collection_id_(arena, from.collection_id_),
  2456. document_id_(arena, from.document_id_) {}
  2457. CreateDocumentRequest::CreateDocumentRequest(
  2458. ::google::protobuf::Arena* arena,
  2459. const CreateDocumentRequest& from)
  2460. : ::google::protobuf::Message(arena) {
  2461. CreateDocumentRequest* const _this = this;
  2462. (void)_this;
  2463. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2464. from._internal_metadata_);
  2465. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2466. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  2467. _impl_.document_ = (cached_has_bits & 0x00000001u)
  2468. ? CreateMaybeMessage<::google::firestore::v1::Document>(arena, *from._impl_.document_)
  2469. : nullptr;
  2470. _impl_.mask_ = (cached_has_bits & 0x00000002u)
  2471. ? CreateMaybeMessage<::google::firestore::v1::DocumentMask>(arena, *from._impl_.mask_)
  2472. : nullptr;
  2473. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.CreateDocumentRequest)
  2474. }
  2475. inline PROTOBUF_NDEBUG_INLINE CreateDocumentRequest::Impl_::Impl_(
  2476. ::google::protobuf::internal::InternalVisibility visibility,
  2477. ::google::protobuf::Arena* arena)
  2478. : _cached_size_{0},
  2479. parent_(arena),
  2480. collection_id_(arena),
  2481. document_id_(arena) {}
  2482. inline void CreateDocumentRequest::SharedCtor(::_pb::Arena* arena) {
  2483. new (&_impl_) Impl_(internal_visibility(), arena);
  2484. ::memset(reinterpret_cast<char *>(&_impl_) +
  2485. offsetof(Impl_, document_),
  2486. 0,
  2487. offsetof(Impl_, mask_) -
  2488. offsetof(Impl_, document_) +
  2489. sizeof(Impl_::mask_));
  2490. }
  2491. CreateDocumentRequest::~CreateDocumentRequest() {
  2492. // @@protoc_insertion_point(destructor:google.firestore.v1.CreateDocumentRequest)
  2493. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2494. SharedDtor();
  2495. }
  2496. inline void CreateDocumentRequest::SharedDtor() {
  2497. ABSL_DCHECK(GetArena() == nullptr);
  2498. _impl_.parent_.Destroy();
  2499. _impl_.collection_id_.Destroy();
  2500. _impl_.document_id_.Destroy();
  2501. delete _impl_.document_;
  2502. delete _impl_.mask_;
  2503. _impl_.~Impl_();
  2504. }
  2505. PROTOBUF_NOINLINE void CreateDocumentRequest::Clear() {
  2506. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.CreateDocumentRequest)
  2507. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2508. ::uint32_t cached_has_bits = 0;
  2509. // Prevent compiler warnings about cached_has_bits being unused
  2510. (void) cached_has_bits;
  2511. _impl_.parent_.ClearToEmpty();
  2512. _impl_.collection_id_.ClearToEmpty();
  2513. _impl_.document_id_.ClearToEmpty();
  2514. cached_has_bits = _impl_._has_bits_[0];
  2515. if (cached_has_bits & 0x00000003u) {
  2516. if (cached_has_bits & 0x00000001u) {
  2517. ABSL_DCHECK(_impl_.document_ != nullptr);
  2518. _impl_.document_->Clear();
  2519. }
  2520. if (cached_has_bits & 0x00000002u) {
  2521. ABSL_DCHECK(_impl_.mask_ != nullptr);
  2522. _impl_.mask_->Clear();
  2523. }
  2524. }
  2525. _impl_._has_bits_.Clear();
  2526. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2527. }
  2528. const char* CreateDocumentRequest::_InternalParse(
  2529. const char* ptr, ::_pbi::ParseContext* ctx) {
  2530. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2531. return ptr;
  2532. }
  2533. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2534. const ::_pbi::TcParseTable<3, 5, 2, 80, 2> CreateDocumentRequest::_table_ = {
  2535. {
  2536. PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_._has_bits_),
  2537. 0, // no _extensions_
  2538. 5, 56, // max_field_number, fast_idx_mask
  2539. offsetof(decltype(_table_), field_lookup_table),
  2540. 4294967264, // skipmap
  2541. offsetof(decltype(_table_), field_entries),
  2542. 5, // num_field_entries
  2543. 2, // num_aux_entries
  2544. offsetof(decltype(_table_), aux_entries),
  2545. &_CreateDocumentRequest_default_instance_._instance,
  2546. ::_pbi::TcParser::GenericFallback, // fallback
  2547. }, {{
  2548. {::_pbi::TcParser::MiniParse, {}},
  2549. // string parent = 1;
  2550. {::_pbi::TcParser::FastUS1,
  2551. {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.parent_)}},
  2552. // string collection_id = 2;
  2553. {::_pbi::TcParser::FastUS1,
  2554. {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.collection_id_)}},
  2555. // string document_id = 3;
  2556. {::_pbi::TcParser::FastUS1,
  2557. {26, 63, 0, PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.document_id_)}},
  2558. // .google.firestore.v1.Document document = 4;
  2559. {::_pbi::TcParser::FastMtS1,
  2560. {34, 0, 0, PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.document_)}},
  2561. // .google.firestore.v1.DocumentMask mask = 5;
  2562. {::_pbi::TcParser::FastMtS1,
  2563. {42, 1, 1, PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.mask_)}},
  2564. {::_pbi::TcParser::MiniParse, {}},
  2565. {::_pbi::TcParser::MiniParse, {}},
  2566. }}, {{
  2567. 65535, 65535
  2568. }}, {{
  2569. // string parent = 1;
  2570. {PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.parent_), -1, 0,
  2571. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  2572. // string collection_id = 2;
  2573. {PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.collection_id_), -1, 0,
  2574. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  2575. // string document_id = 3;
  2576. {PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.document_id_), -1, 0,
  2577. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  2578. // .google.firestore.v1.Document document = 4;
  2579. {PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.document_), _Internal::kHasBitsOffset + 0, 0,
  2580. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2581. // .google.firestore.v1.DocumentMask mask = 5;
  2582. {PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.mask_), _Internal::kHasBitsOffset + 1, 1,
  2583. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2584. }}, {{
  2585. {::_pbi::TcParser::GetTable<::google::firestore::v1::Document>()},
  2586. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentMask>()},
  2587. }}, {{
  2588. "\51\6\15\13\0\0\0\0"
  2589. "google.firestore.v1.CreateDocumentRequest"
  2590. "parent"
  2591. "collection_id"
  2592. "document_id"
  2593. }},
  2594. };
  2595. ::uint8_t* CreateDocumentRequest::_InternalSerialize(
  2596. ::uint8_t* target,
  2597. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2598. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.CreateDocumentRequest)
  2599. ::uint32_t cached_has_bits = 0;
  2600. (void)cached_has_bits;
  2601. // string parent = 1;
  2602. if (!this->_internal_parent().empty()) {
  2603. const std::string& _s = this->_internal_parent();
  2604. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2605. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.CreateDocumentRequest.parent");
  2606. target = stream->WriteStringMaybeAliased(1, _s, target);
  2607. }
  2608. // string collection_id = 2;
  2609. if (!this->_internal_collection_id().empty()) {
  2610. const std::string& _s = this->_internal_collection_id();
  2611. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2612. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.CreateDocumentRequest.collection_id");
  2613. target = stream->WriteStringMaybeAliased(2, _s, target);
  2614. }
  2615. // string document_id = 3;
  2616. if (!this->_internal_document_id().empty()) {
  2617. const std::string& _s = this->_internal_document_id();
  2618. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2619. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.CreateDocumentRequest.document_id");
  2620. target = stream->WriteStringMaybeAliased(3, _s, target);
  2621. }
  2622. cached_has_bits = _impl_._has_bits_[0];
  2623. // .google.firestore.v1.Document document = 4;
  2624. if (cached_has_bits & 0x00000001u) {
  2625. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2626. 4, _Internal::document(this),
  2627. _Internal::document(this).GetCachedSize(), target, stream);
  2628. }
  2629. // .google.firestore.v1.DocumentMask mask = 5;
  2630. if (cached_has_bits & 0x00000002u) {
  2631. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2632. 5, _Internal::mask(this),
  2633. _Internal::mask(this).GetCachedSize(), target, stream);
  2634. }
  2635. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2636. target =
  2637. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2638. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2639. }
  2640. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.CreateDocumentRequest)
  2641. return target;
  2642. }
  2643. ::size_t CreateDocumentRequest::ByteSizeLong() const {
  2644. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.CreateDocumentRequest)
  2645. ::size_t total_size = 0;
  2646. ::uint32_t cached_has_bits = 0;
  2647. // Prevent compiler warnings about cached_has_bits being unused
  2648. (void) cached_has_bits;
  2649. // string parent = 1;
  2650. if (!this->_internal_parent().empty()) {
  2651. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2652. this->_internal_parent());
  2653. }
  2654. // string collection_id = 2;
  2655. if (!this->_internal_collection_id().empty()) {
  2656. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2657. this->_internal_collection_id());
  2658. }
  2659. // string document_id = 3;
  2660. if (!this->_internal_document_id().empty()) {
  2661. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2662. this->_internal_document_id());
  2663. }
  2664. cached_has_bits = _impl_._has_bits_[0];
  2665. if (cached_has_bits & 0x00000003u) {
  2666. // .google.firestore.v1.Document document = 4;
  2667. if (cached_has_bits & 0x00000001u) {
  2668. total_size +=
  2669. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.document_);
  2670. }
  2671. // .google.firestore.v1.DocumentMask mask = 5;
  2672. if (cached_has_bits & 0x00000002u) {
  2673. total_size +=
  2674. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mask_);
  2675. }
  2676. }
  2677. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2678. }
  2679. const ::google::protobuf::Message::ClassData CreateDocumentRequest::_class_data_ = {
  2680. CreateDocumentRequest::MergeImpl,
  2681. nullptr, // OnDemandRegisterArenaDtor
  2682. };
  2683. const ::google::protobuf::Message::ClassData* CreateDocumentRequest::GetClassData() const {
  2684. return &_class_data_;
  2685. }
  2686. void CreateDocumentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2687. auto* const _this = static_cast<CreateDocumentRequest*>(&to_msg);
  2688. auto& from = static_cast<const CreateDocumentRequest&>(from_msg);
  2689. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.CreateDocumentRequest)
  2690. ABSL_DCHECK_NE(&from, _this);
  2691. ::uint32_t cached_has_bits = 0;
  2692. (void) cached_has_bits;
  2693. if (!from._internal_parent().empty()) {
  2694. _this->_internal_set_parent(from._internal_parent());
  2695. }
  2696. if (!from._internal_collection_id().empty()) {
  2697. _this->_internal_set_collection_id(from._internal_collection_id());
  2698. }
  2699. if (!from._internal_document_id().empty()) {
  2700. _this->_internal_set_document_id(from._internal_document_id());
  2701. }
  2702. cached_has_bits = from._impl_._has_bits_[0];
  2703. if (cached_has_bits & 0x00000003u) {
  2704. if (cached_has_bits & 0x00000001u) {
  2705. _this->_internal_mutable_document()->::google::firestore::v1::Document::MergeFrom(
  2706. from._internal_document());
  2707. }
  2708. if (cached_has_bits & 0x00000002u) {
  2709. _this->_internal_mutable_mask()->::google::firestore::v1::DocumentMask::MergeFrom(
  2710. from._internal_mask());
  2711. }
  2712. }
  2713. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2714. }
  2715. void CreateDocumentRequest::CopyFrom(const CreateDocumentRequest& from) {
  2716. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.CreateDocumentRequest)
  2717. if (&from == this) return;
  2718. Clear();
  2719. MergeFrom(from);
  2720. }
  2721. PROTOBUF_NOINLINE bool CreateDocumentRequest::IsInitialized() const {
  2722. return true;
  2723. }
  2724. ::_pbi::CachedSize* CreateDocumentRequest::AccessCachedSize() const {
  2725. return &_impl_._cached_size_;
  2726. }
  2727. void CreateDocumentRequest::InternalSwap(CreateDocumentRequest* PROTOBUF_RESTRICT other) {
  2728. using std::swap;
  2729. auto* arena = GetArena();
  2730. ABSL_DCHECK_EQ(arena, other->GetArena());
  2731. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2732. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  2733. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_, &other->_impl_.parent_, arena);
  2734. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.collection_id_, &other->_impl_.collection_id_, arena);
  2735. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.document_id_, &other->_impl_.document_id_, arena);
  2736. ::google::protobuf::internal::memswap<
  2737. PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.mask_)
  2738. + sizeof(CreateDocumentRequest::_impl_.mask_)
  2739. - PROTOBUF_FIELD_OFFSET(CreateDocumentRequest, _impl_.document_)>(
  2740. reinterpret_cast<char*>(&_impl_.document_),
  2741. reinterpret_cast<char*>(&other->_impl_.document_));
  2742. }
  2743. ::google::protobuf::Metadata CreateDocumentRequest::GetMetadata() const {
  2744. return ::_pbi::AssignDescriptors(
  2745. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  2746. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[3]);
  2747. }
  2748. // ===================================================================
  2749. class UpdateDocumentRequest::_Internal {
  2750. public:
  2751. using HasBits = decltype(std::declval<UpdateDocumentRequest>()._impl_._has_bits_);
  2752. static constexpr ::int32_t kHasBitsOffset =
  2753. 8 * PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_._has_bits_);
  2754. static const ::google::firestore::v1::Document& document(const UpdateDocumentRequest* msg);
  2755. static void set_has_document(HasBits* has_bits) {
  2756. (*has_bits)[0] |= 1u;
  2757. }
  2758. static const ::google::firestore::v1::DocumentMask& update_mask(const UpdateDocumentRequest* msg);
  2759. static void set_has_update_mask(HasBits* has_bits) {
  2760. (*has_bits)[0] |= 2u;
  2761. }
  2762. static const ::google::firestore::v1::DocumentMask& mask(const UpdateDocumentRequest* msg);
  2763. static void set_has_mask(HasBits* has_bits) {
  2764. (*has_bits)[0] |= 4u;
  2765. }
  2766. static const ::google::firestore::v1::Precondition& current_document(const UpdateDocumentRequest* msg);
  2767. static void set_has_current_document(HasBits* has_bits) {
  2768. (*has_bits)[0] |= 8u;
  2769. }
  2770. };
  2771. const ::google::firestore::v1::Document& UpdateDocumentRequest::_Internal::document(const UpdateDocumentRequest* msg) {
  2772. return *msg->_impl_.document_;
  2773. }
  2774. const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_Internal::update_mask(const UpdateDocumentRequest* msg) {
  2775. return *msg->_impl_.update_mask_;
  2776. }
  2777. const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_Internal::mask(const UpdateDocumentRequest* msg) {
  2778. return *msg->_impl_.mask_;
  2779. }
  2780. const ::google::firestore::v1::Precondition& UpdateDocumentRequest::_Internal::current_document(const UpdateDocumentRequest* msg) {
  2781. return *msg->_impl_.current_document_;
  2782. }
  2783. void UpdateDocumentRequest::clear_document() {
  2784. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2785. if (_impl_.document_ != nullptr) _impl_.document_->Clear();
  2786. _impl_._has_bits_[0] &= ~0x00000001u;
  2787. }
  2788. void UpdateDocumentRequest::clear_update_mask() {
  2789. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2790. if (_impl_.update_mask_ != nullptr) _impl_.update_mask_->Clear();
  2791. _impl_._has_bits_[0] &= ~0x00000002u;
  2792. }
  2793. void UpdateDocumentRequest::clear_mask() {
  2794. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2795. if (_impl_.mask_ != nullptr) _impl_.mask_->Clear();
  2796. _impl_._has_bits_[0] &= ~0x00000004u;
  2797. }
  2798. void UpdateDocumentRequest::clear_current_document() {
  2799. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2800. if (_impl_.current_document_ != nullptr) _impl_.current_document_->Clear();
  2801. _impl_._has_bits_[0] &= ~0x00000008u;
  2802. }
  2803. UpdateDocumentRequest::UpdateDocumentRequest(::google::protobuf::Arena* arena)
  2804. : ::google::protobuf::Message(arena) {
  2805. SharedCtor(arena);
  2806. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.UpdateDocumentRequest)
  2807. }
  2808. inline PROTOBUF_NDEBUG_INLINE UpdateDocumentRequest::Impl_::Impl_(
  2809. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2810. const Impl_& from)
  2811. : _has_bits_{from._has_bits_},
  2812. _cached_size_{0} {}
  2813. UpdateDocumentRequest::UpdateDocumentRequest(
  2814. ::google::protobuf::Arena* arena,
  2815. const UpdateDocumentRequest& from)
  2816. : ::google::protobuf::Message(arena) {
  2817. UpdateDocumentRequest* const _this = this;
  2818. (void)_this;
  2819. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2820. from._internal_metadata_);
  2821. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2822. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  2823. _impl_.document_ = (cached_has_bits & 0x00000001u)
  2824. ? CreateMaybeMessage<::google::firestore::v1::Document>(arena, *from._impl_.document_)
  2825. : nullptr;
  2826. _impl_.update_mask_ = (cached_has_bits & 0x00000002u)
  2827. ? CreateMaybeMessage<::google::firestore::v1::DocumentMask>(arena, *from._impl_.update_mask_)
  2828. : nullptr;
  2829. _impl_.mask_ = (cached_has_bits & 0x00000004u)
  2830. ? CreateMaybeMessage<::google::firestore::v1::DocumentMask>(arena, *from._impl_.mask_)
  2831. : nullptr;
  2832. _impl_.current_document_ = (cached_has_bits & 0x00000008u)
  2833. ? CreateMaybeMessage<::google::firestore::v1::Precondition>(arena, *from._impl_.current_document_)
  2834. : nullptr;
  2835. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.UpdateDocumentRequest)
  2836. }
  2837. inline PROTOBUF_NDEBUG_INLINE UpdateDocumentRequest::Impl_::Impl_(
  2838. ::google::protobuf::internal::InternalVisibility visibility,
  2839. ::google::protobuf::Arena* arena)
  2840. : _cached_size_{0} {}
  2841. inline void UpdateDocumentRequest::SharedCtor(::_pb::Arena* arena) {
  2842. new (&_impl_) Impl_(internal_visibility(), arena);
  2843. ::memset(reinterpret_cast<char *>(&_impl_) +
  2844. offsetof(Impl_, document_),
  2845. 0,
  2846. offsetof(Impl_, current_document_) -
  2847. offsetof(Impl_, document_) +
  2848. sizeof(Impl_::current_document_));
  2849. }
  2850. UpdateDocumentRequest::~UpdateDocumentRequest() {
  2851. // @@protoc_insertion_point(destructor:google.firestore.v1.UpdateDocumentRequest)
  2852. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2853. SharedDtor();
  2854. }
  2855. inline void UpdateDocumentRequest::SharedDtor() {
  2856. ABSL_DCHECK(GetArena() == nullptr);
  2857. delete _impl_.document_;
  2858. delete _impl_.update_mask_;
  2859. delete _impl_.mask_;
  2860. delete _impl_.current_document_;
  2861. _impl_.~Impl_();
  2862. }
  2863. PROTOBUF_NOINLINE void UpdateDocumentRequest::Clear() {
  2864. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.UpdateDocumentRequest)
  2865. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2866. ::uint32_t cached_has_bits = 0;
  2867. // Prevent compiler warnings about cached_has_bits being unused
  2868. (void) cached_has_bits;
  2869. cached_has_bits = _impl_._has_bits_[0];
  2870. if (cached_has_bits & 0x0000000fu) {
  2871. if (cached_has_bits & 0x00000001u) {
  2872. ABSL_DCHECK(_impl_.document_ != nullptr);
  2873. _impl_.document_->Clear();
  2874. }
  2875. if (cached_has_bits & 0x00000002u) {
  2876. ABSL_DCHECK(_impl_.update_mask_ != nullptr);
  2877. _impl_.update_mask_->Clear();
  2878. }
  2879. if (cached_has_bits & 0x00000004u) {
  2880. ABSL_DCHECK(_impl_.mask_ != nullptr);
  2881. _impl_.mask_->Clear();
  2882. }
  2883. if (cached_has_bits & 0x00000008u) {
  2884. ABSL_DCHECK(_impl_.current_document_ != nullptr);
  2885. _impl_.current_document_->Clear();
  2886. }
  2887. }
  2888. _impl_._has_bits_.Clear();
  2889. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2890. }
  2891. const char* UpdateDocumentRequest::_InternalParse(
  2892. const char* ptr, ::_pbi::ParseContext* ctx) {
  2893. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2894. return ptr;
  2895. }
  2896. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2897. const ::_pbi::TcParseTable<2, 4, 4, 0, 2> UpdateDocumentRequest::_table_ = {
  2898. {
  2899. PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_._has_bits_),
  2900. 0, // no _extensions_
  2901. 4, 24, // max_field_number, fast_idx_mask
  2902. offsetof(decltype(_table_), field_lookup_table),
  2903. 4294967280, // skipmap
  2904. offsetof(decltype(_table_), field_entries),
  2905. 4, // num_field_entries
  2906. 4, // num_aux_entries
  2907. offsetof(decltype(_table_), aux_entries),
  2908. &_UpdateDocumentRequest_default_instance_._instance,
  2909. ::_pbi::TcParser::GenericFallback, // fallback
  2910. }, {{
  2911. // .google.firestore.v1.Precondition current_document = 4;
  2912. {::_pbi::TcParser::FastMtS1,
  2913. {34, 3, 3, PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.current_document_)}},
  2914. // .google.firestore.v1.Document document = 1;
  2915. {::_pbi::TcParser::FastMtS1,
  2916. {10, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.document_)}},
  2917. // .google.firestore.v1.DocumentMask update_mask = 2;
  2918. {::_pbi::TcParser::FastMtS1,
  2919. {18, 1, 1, PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.update_mask_)}},
  2920. // .google.firestore.v1.DocumentMask mask = 3;
  2921. {::_pbi::TcParser::FastMtS1,
  2922. {26, 2, 2, PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.mask_)}},
  2923. }}, {{
  2924. 65535, 65535
  2925. }}, {{
  2926. // .google.firestore.v1.Document document = 1;
  2927. {PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.document_), _Internal::kHasBitsOffset + 0, 0,
  2928. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2929. // .google.firestore.v1.DocumentMask update_mask = 2;
  2930. {PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.update_mask_), _Internal::kHasBitsOffset + 1, 1,
  2931. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2932. // .google.firestore.v1.DocumentMask mask = 3;
  2933. {PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.mask_), _Internal::kHasBitsOffset + 2, 2,
  2934. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2935. // .google.firestore.v1.Precondition current_document = 4;
  2936. {PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.current_document_), _Internal::kHasBitsOffset + 3, 3,
  2937. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  2938. }}, {{
  2939. {::_pbi::TcParser::GetTable<::google::firestore::v1::Document>()},
  2940. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentMask>()},
  2941. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentMask>()},
  2942. {::_pbi::TcParser::GetTable<::google::firestore::v1::Precondition>()},
  2943. }}, {{
  2944. }},
  2945. };
  2946. ::uint8_t* UpdateDocumentRequest::_InternalSerialize(
  2947. ::uint8_t* target,
  2948. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2949. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.UpdateDocumentRequest)
  2950. ::uint32_t cached_has_bits = 0;
  2951. (void)cached_has_bits;
  2952. cached_has_bits = _impl_._has_bits_[0];
  2953. // .google.firestore.v1.Document document = 1;
  2954. if (cached_has_bits & 0x00000001u) {
  2955. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2956. 1, _Internal::document(this),
  2957. _Internal::document(this).GetCachedSize(), target, stream);
  2958. }
  2959. // .google.firestore.v1.DocumentMask update_mask = 2;
  2960. if (cached_has_bits & 0x00000002u) {
  2961. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2962. 2, _Internal::update_mask(this),
  2963. _Internal::update_mask(this).GetCachedSize(), target, stream);
  2964. }
  2965. // .google.firestore.v1.DocumentMask mask = 3;
  2966. if (cached_has_bits & 0x00000004u) {
  2967. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2968. 3, _Internal::mask(this),
  2969. _Internal::mask(this).GetCachedSize(), target, stream);
  2970. }
  2971. // .google.firestore.v1.Precondition current_document = 4;
  2972. if (cached_has_bits & 0x00000008u) {
  2973. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  2974. 4, _Internal::current_document(this),
  2975. _Internal::current_document(this).GetCachedSize(), target, stream);
  2976. }
  2977. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2978. target =
  2979. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2980. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2981. }
  2982. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.UpdateDocumentRequest)
  2983. return target;
  2984. }
  2985. ::size_t UpdateDocumentRequest::ByteSizeLong() const {
  2986. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.UpdateDocumentRequest)
  2987. ::size_t total_size = 0;
  2988. ::uint32_t cached_has_bits = 0;
  2989. // Prevent compiler warnings about cached_has_bits being unused
  2990. (void) cached_has_bits;
  2991. cached_has_bits = _impl_._has_bits_[0];
  2992. if (cached_has_bits & 0x0000000fu) {
  2993. // .google.firestore.v1.Document document = 1;
  2994. if (cached_has_bits & 0x00000001u) {
  2995. total_size +=
  2996. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.document_);
  2997. }
  2998. // .google.firestore.v1.DocumentMask update_mask = 2;
  2999. if (cached_has_bits & 0x00000002u) {
  3000. total_size +=
  3001. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.update_mask_);
  3002. }
  3003. // .google.firestore.v1.DocumentMask mask = 3;
  3004. if (cached_has_bits & 0x00000004u) {
  3005. total_size +=
  3006. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mask_);
  3007. }
  3008. // .google.firestore.v1.Precondition current_document = 4;
  3009. if (cached_has_bits & 0x00000008u) {
  3010. total_size +=
  3011. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.current_document_);
  3012. }
  3013. }
  3014. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3015. }
  3016. const ::google::protobuf::Message::ClassData UpdateDocumentRequest::_class_data_ = {
  3017. UpdateDocumentRequest::MergeImpl,
  3018. nullptr, // OnDemandRegisterArenaDtor
  3019. };
  3020. const ::google::protobuf::Message::ClassData* UpdateDocumentRequest::GetClassData() const {
  3021. return &_class_data_;
  3022. }
  3023. void UpdateDocumentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  3024. auto* const _this = static_cast<UpdateDocumentRequest*>(&to_msg);
  3025. auto& from = static_cast<const UpdateDocumentRequest&>(from_msg);
  3026. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.UpdateDocumentRequest)
  3027. ABSL_DCHECK_NE(&from, _this);
  3028. ::uint32_t cached_has_bits = 0;
  3029. (void) cached_has_bits;
  3030. cached_has_bits = from._impl_._has_bits_[0];
  3031. if (cached_has_bits & 0x0000000fu) {
  3032. if (cached_has_bits & 0x00000001u) {
  3033. _this->_internal_mutable_document()->::google::firestore::v1::Document::MergeFrom(
  3034. from._internal_document());
  3035. }
  3036. if (cached_has_bits & 0x00000002u) {
  3037. _this->_internal_mutable_update_mask()->::google::firestore::v1::DocumentMask::MergeFrom(
  3038. from._internal_update_mask());
  3039. }
  3040. if (cached_has_bits & 0x00000004u) {
  3041. _this->_internal_mutable_mask()->::google::firestore::v1::DocumentMask::MergeFrom(
  3042. from._internal_mask());
  3043. }
  3044. if (cached_has_bits & 0x00000008u) {
  3045. _this->_internal_mutable_current_document()->::google::firestore::v1::Precondition::MergeFrom(
  3046. from._internal_current_document());
  3047. }
  3048. }
  3049. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  3050. }
  3051. void UpdateDocumentRequest::CopyFrom(const UpdateDocumentRequest& from) {
  3052. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.UpdateDocumentRequest)
  3053. if (&from == this) return;
  3054. Clear();
  3055. MergeFrom(from);
  3056. }
  3057. PROTOBUF_NOINLINE bool UpdateDocumentRequest::IsInitialized() const {
  3058. return true;
  3059. }
  3060. ::_pbi::CachedSize* UpdateDocumentRequest::AccessCachedSize() const {
  3061. return &_impl_._cached_size_;
  3062. }
  3063. void UpdateDocumentRequest::InternalSwap(UpdateDocumentRequest* PROTOBUF_RESTRICT other) {
  3064. using std::swap;
  3065. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3066. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  3067. ::google::protobuf::internal::memswap<
  3068. PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.current_document_)
  3069. + sizeof(UpdateDocumentRequest::_impl_.current_document_)
  3070. - PROTOBUF_FIELD_OFFSET(UpdateDocumentRequest, _impl_.document_)>(
  3071. reinterpret_cast<char*>(&_impl_.document_),
  3072. reinterpret_cast<char*>(&other->_impl_.document_));
  3073. }
  3074. ::google::protobuf::Metadata UpdateDocumentRequest::GetMetadata() const {
  3075. return ::_pbi::AssignDescriptors(
  3076. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  3077. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[4]);
  3078. }
  3079. // ===================================================================
  3080. class DeleteDocumentRequest::_Internal {
  3081. public:
  3082. using HasBits = decltype(std::declval<DeleteDocumentRequest>()._impl_._has_bits_);
  3083. static constexpr ::int32_t kHasBitsOffset =
  3084. 8 * PROTOBUF_FIELD_OFFSET(DeleteDocumentRequest, _impl_._has_bits_);
  3085. static const ::google::firestore::v1::Precondition& current_document(const DeleteDocumentRequest* msg);
  3086. static void set_has_current_document(HasBits* has_bits) {
  3087. (*has_bits)[0] |= 1u;
  3088. }
  3089. };
  3090. const ::google::firestore::v1::Precondition& DeleteDocumentRequest::_Internal::current_document(const DeleteDocumentRequest* msg) {
  3091. return *msg->_impl_.current_document_;
  3092. }
  3093. void DeleteDocumentRequest::clear_current_document() {
  3094. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3095. if (_impl_.current_document_ != nullptr) _impl_.current_document_->Clear();
  3096. _impl_._has_bits_[0] &= ~0x00000001u;
  3097. }
  3098. DeleteDocumentRequest::DeleteDocumentRequest(::google::protobuf::Arena* arena)
  3099. : ::google::protobuf::Message(arena) {
  3100. SharedCtor(arena);
  3101. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.DeleteDocumentRequest)
  3102. }
  3103. inline PROTOBUF_NDEBUG_INLINE DeleteDocumentRequest::Impl_::Impl_(
  3104. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  3105. const Impl_& from)
  3106. : _has_bits_{from._has_bits_},
  3107. _cached_size_{0},
  3108. name_(arena, from.name_) {}
  3109. DeleteDocumentRequest::DeleteDocumentRequest(
  3110. ::google::protobuf::Arena* arena,
  3111. const DeleteDocumentRequest& from)
  3112. : ::google::protobuf::Message(arena) {
  3113. DeleteDocumentRequest* const _this = this;
  3114. (void)_this;
  3115. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  3116. from._internal_metadata_);
  3117. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  3118. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  3119. _impl_.current_document_ = (cached_has_bits & 0x00000001u)
  3120. ? CreateMaybeMessage<::google::firestore::v1::Precondition>(arena, *from._impl_.current_document_)
  3121. : nullptr;
  3122. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.DeleteDocumentRequest)
  3123. }
  3124. inline PROTOBUF_NDEBUG_INLINE DeleteDocumentRequest::Impl_::Impl_(
  3125. ::google::protobuf::internal::InternalVisibility visibility,
  3126. ::google::protobuf::Arena* arena)
  3127. : _cached_size_{0},
  3128. name_(arena) {}
  3129. inline void DeleteDocumentRequest::SharedCtor(::_pb::Arena* arena) {
  3130. new (&_impl_) Impl_(internal_visibility(), arena);
  3131. _impl_.current_document_ = {};
  3132. }
  3133. DeleteDocumentRequest::~DeleteDocumentRequest() {
  3134. // @@protoc_insertion_point(destructor:google.firestore.v1.DeleteDocumentRequest)
  3135. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  3136. SharedDtor();
  3137. }
  3138. inline void DeleteDocumentRequest::SharedDtor() {
  3139. ABSL_DCHECK(GetArena() == nullptr);
  3140. _impl_.name_.Destroy();
  3141. delete _impl_.current_document_;
  3142. _impl_.~Impl_();
  3143. }
  3144. PROTOBUF_NOINLINE void DeleteDocumentRequest::Clear() {
  3145. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.DeleteDocumentRequest)
  3146. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3147. ::uint32_t cached_has_bits = 0;
  3148. // Prevent compiler warnings about cached_has_bits being unused
  3149. (void) cached_has_bits;
  3150. _impl_.name_.ClearToEmpty();
  3151. cached_has_bits = _impl_._has_bits_[0];
  3152. if (cached_has_bits & 0x00000001u) {
  3153. ABSL_DCHECK(_impl_.current_document_ != nullptr);
  3154. _impl_.current_document_->Clear();
  3155. }
  3156. _impl_._has_bits_.Clear();
  3157. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  3158. }
  3159. const char* DeleteDocumentRequest::_InternalParse(
  3160. const char* ptr, ::_pbi::ParseContext* ctx) {
  3161. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  3162. return ptr;
  3163. }
  3164. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  3165. const ::_pbi::TcParseTable<1, 2, 1, 54, 2> DeleteDocumentRequest::_table_ = {
  3166. {
  3167. PROTOBUF_FIELD_OFFSET(DeleteDocumentRequest, _impl_._has_bits_),
  3168. 0, // no _extensions_
  3169. 2, 8, // max_field_number, fast_idx_mask
  3170. offsetof(decltype(_table_), field_lookup_table),
  3171. 4294967292, // skipmap
  3172. offsetof(decltype(_table_), field_entries),
  3173. 2, // num_field_entries
  3174. 1, // num_aux_entries
  3175. offsetof(decltype(_table_), aux_entries),
  3176. &_DeleteDocumentRequest_default_instance_._instance,
  3177. ::_pbi::TcParser::GenericFallback, // fallback
  3178. }, {{
  3179. // .google.firestore.v1.Precondition current_document = 2;
  3180. {::_pbi::TcParser::FastMtS1,
  3181. {18, 0, 0, PROTOBUF_FIELD_OFFSET(DeleteDocumentRequest, _impl_.current_document_)}},
  3182. // string name = 1;
  3183. {::_pbi::TcParser::FastUS1,
  3184. {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteDocumentRequest, _impl_.name_)}},
  3185. }}, {{
  3186. 65535, 65535
  3187. }}, {{
  3188. // string name = 1;
  3189. {PROTOBUF_FIELD_OFFSET(DeleteDocumentRequest, _impl_.name_), -1, 0,
  3190. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  3191. // .google.firestore.v1.Precondition current_document = 2;
  3192. {PROTOBUF_FIELD_OFFSET(DeleteDocumentRequest, _impl_.current_document_), _Internal::kHasBitsOffset + 0, 0,
  3193. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  3194. }}, {{
  3195. {::_pbi::TcParser::GetTable<::google::firestore::v1::Precondition>()},
  3196. }}, {{
  3197. "\51\4\0\0\0\0\0\0"
  3198. "google.firestore.v1.DeleteDocumentRequest"
  3199. "name"
  3200. }},
  3201. };
  3202. ::uint8_t* DeleteDocumentRequest::_InternalSerialize(
  3203. ::uint8_t* target,
  3204. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  3205. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.DeleteDocumentRequest)
  3206. ::uint32_t cached_has_bits = 0;
  3207. (void)cached_has_bits;
  3208. // string name = 1;
  3209. if (!this->_internal_name().empty()) {
  3210. const std::string& _s = this->_internal_name();
  3211. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  3212. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.DeleteDocumentRequest.name");
  3213. target = stream->WriteStringMaybeAliased(1, _s, target);
  3214. }
  3215. cached_has_bits = _impl_._has_bits_[0];
  3216. // .google.firestore.v1.Precondition current_document = 2;
  3217. if (cached_has_bits & 0x00000001u) {
  3218. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3219. 2, _Internal::current_document(this),
  3220. _Internal::current_document(this).GetCachedSize(), target, stream);
  3221. }
  3222. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3223. target =
  3224. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3225. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  3226. }
  3227. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.DeleteDocumentRequest)
  3228. return target;
  3229. }
  3230. ::size_t DeleteDocumentRequest::ByteSizeLong() const {
  3231. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.DeleteDocumentRequest)
  3232. ::size_t total_size = 0;
  3233. ::uint32_t cached_has_bits = 0;
  3234. // Prevent compiler warnings about cached_has_bits being unused
  3235. (void) cached_has_bits;
  3236. // string name = 1;
  3237. if (!this->_internal_name().empty()) {
  3238. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  3239. this->_internal_name());
  3240. }
  3241. // .google.firestore.v1.Precondition current_document = 2;
  3242. cached_has_bits = _impl_._has_bits_[0];
  3243. if (cached_has_bits & 0x00000001u) {
  3244. total_size +=
  3245. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.current_document_);
  3246. }
  3247. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3248. }
  3249. const ::google::protobuf::Message::ClassData DeleteDocumentRequest::_class_data_ = {
  3250. DeleteDocumentRequest::MergeImpl,
  3251. nullptr, // OnDemandRegisterArenaDtor
  3252. };
  3253. const ::google::protobuf::Message::ClassData* DeleteDocumentRequest::GetClassData() const {
  3254. return &_class_data_;
  3255. }
  3256. void DeleteDocumentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  3257. auto* const _this = static_cast<DeleteDocumentRequest*>(&to_msg);
  3258. auto& from = static_cast<const DeleteDocumentRequest&>(from_msg);
  3259. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.DeleteDocumentRequest)
  3260. ABSL_DCHECK_NE(&from, _this);
  3261. ::uint32_t cached_has_bits = 0;
  3262. (void) cached_has_bits;
  3263. if (!from._internal_name().empty()) {
  3264. _this->_internal_set_name(from._internal_name());
  3265. }
  3266. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  3267. _this->_internal_mutable_current_document()->::google::firestore::v1::Precondition::MergeFrom(
  3268. from._internal_current_document());
  3269. }
  3270. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  3271. }
  3272. void DeleteDocumentRequest::CopyFrom(const DeleteDocumentRequest& from) {
  3273. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.DeleteDocumentRequest)
  3274. if (&from == this) return;
  3275. Clear();
  3276. MergeFrom(from);
  3277. }
  3278. PROTOBUF_NOINLINE bool DeleteDocumentRequest::IsInitialized() const {
  3279. return true;
  3280. }
  3281. ::_pbi::CachedSize* DeleteDocumentRequest::AccessCachedSize() const {
  3282. return &_impl_._cached_size_;
  3283. }
  3284. void DeleteDocumentRequest::InternalSwap(DeleteDocumentRequest* PROTOBUF_RESTRICT other) {
  3285. using std::swap;
  3286. auto* arena = GetArena();
  3287. ABSL_DCHECK_EQ(arena, other->GetArena());
  3288. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3289. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  3290. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  3291. swap(_impl_.current_document_, other->_impl_.current_document_);
  3292. }
  3293. ::google::protobuf::Metadata DeleteDocumentRequest::GetMetadata() const {
  3294. return ::_pbi::AssignDescriptors(
  3295. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  3296. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[5]);
  3297. }
  3298. // ===================================================================
  3299. class BatchGetDocumentsRequest::_Internal {
  3300. public:
  3301. using HasBits = decltype(std::declval<BatchGetDocumentsRequest>()._impl_._has_bits_);
  3302. static constexpr ::int32_t kHasBitsOffset =
  3303. 8 * PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_._has_bits_);
  3304. static constexpr ::int32_t kOneofCaseOffset =
  3305. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsRequest, _impl_._oneof_case_);
  3306. static const ::google::firestore::v1::DocumentMask& mask(const BatchGetDocumentsRequest* msg);
  3307. static void set_has_mask(HasBits* has_bits) {
  3308. (*has_bits)[0] |= 1u;
  3309. }
  3310. static const ::google::firestore::v1::TransactionOptions& new_transaction(const BatchGetDocumentsRequest* msg);
  3311. static const ::google::protobuf::Timestamp& read_time(const BatchGetDocumentsRequest* msg);
  3312. };
  3313. const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::_Internal::mask(const BatchGetDocumentsRequest* msg) {
  3314. return *msg->_impl_.mask_;
  3315. }
  3316. const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::_Internal::new_transaction(const BatchGetDocumentsRequest* msg) {
  3317. return *msg->_impl_.consistency_selector_.new_transaction_;
  3318. }
  3319. const ::google::protobuf::Timestamp& BatchGetDocumentsRequest::_Internal::read_time(const BatchGetDocumentsRequest* msg) {
  3320. return *msg->_impl_.consistency_selector_.read_time_;
  3321. }
  3322. void BatchGetDocumentsRequest::clear_mask() {
  3323. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3324. if (_impl_.mask_ != nullptr) _impl_.mask_->Clear();
  3325. _impl_._has_bits_[0] &= ~0x00000001u;
  3326. }
  3327. void BatchGetDocumentsRequest::set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction) {
  3328. ::google::protobuf::Arena* message_arena = GetArena();
  3329. clear_consistency_selector();
  3330. if (new_transaction) {
  3331. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(new_transaction)->GetArena();
  3332. if (message_arena != submessage_arena) {
  3333. new_transaction = ::google::protobuf::internal::GetOwnedMessage(message_arena, new_transaction, submessage_arena);
  3334. }
  3335. set_has_new_transaction();
  3336. _impl_.consistency_selector_.new_transaction_ = new_transaction;
  3337. }
  3338. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  3339. }
  3340. void BatchGetDocumentsRequest::clear_new_transaction() {
  3341. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3342. if (consistency_selector_case() == kNewTransaction) {
  3343. if (GetArena() == nullptr) {
  3344. delete _impl_.consistency_selector_.new_transaction_;
  3345. }
  3346. clear_has_consistency_selector();
  3347. }
  3348. }
  3349. void BatchGetDocumentsRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
  3350. ::google::protobuf::Arena* message_arena = GetArena();
  3351. clear_consistency_selector();
  3352. if (read_time) {
  3353. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(read_time)->GetArena();
  3354. if (message_arena != submessage_arena) {
  3355. read_time = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_time, submessage_arena);
  3356. }
  3357. set_has_read_time();
  3358. _impl_.consistency_selector_.read_time_ = read_time;
  3359. }
  3360. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  3361. }
  3362. void BatchGetDocumentsRequest::clear_read_time() {
  3363. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3364. if (consistency_selector_case() == kReadTime) {
  3365. if (GetArena() == nullptr) {
  3366. delete _impl_.consistency_selector_.read_time_;
  3367. }
  3368. clear_has_consistency_selector();
  3369. }
  3370. }
  3371. BatchGetDocumentsRequest::BatchGetDocumentsRequest(::google::protobuf::Arena* arena)
  3372. : ::google::protobuf::Message(arena) {
  3373. SharedCtor(arena);
  3374. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.BatchGetDocumentsRequest)
  3375. }
  3376. inline PROTOBUF_NDEBUG_INLINE BatchGetDocumentsRequest::Impl_::Impl_(
  3377. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  3378. const Impl_& from)
  3379. : _has_bits_{from._has_bits_},
  3380. _cached_size_{0},
  3381. documents_{visibility, arena, from.documents_},
  3382. database_(arena, from.database_),
  3383. consistency_selector_{},
  3384. _oneof_case_{from._oneof_case_[0]} {}
  3385. BatchGetDocumentsRequest::BatchGetDocumentsRequest(
  3386. ::google::protobuf::Arena* arena,
  3387. const BatchGetDocumentsRequest& from)
  3388. : ::google::protobuf::Message(arena) {
  3389. BatchGetDocumentsRequest* const _this = this;
  3390. (void)_this;
  3391. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  3392. from._internal_metadata_);
  3393. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  3394. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  3395. _impl_.mask_ = (cached_has_bits & 0x00000001u)
  3396. ? CreateMaybeMessage<::google::firestore::v1::DocumentMask>(arena, *from._impl_.mask_)
  3397. : nullptr;
  3398. switch (consistency_selector_case()) {
  3399. case CONSISTENCY_SELECTOR_NOT_SET:
  3400. break;
  3401. case kTransaction:
  3402. new (&_impl_.consistency_selector_.transaction_) decltype(_impl_.consistency_selector_.transaction_){arena, from._impl_.consistency_selector_.transaction_};
  3403. break;
  3404. case kNewTransaction:
  3405. _impl_.consistency_selector_.new_transaction_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(arena, *from._impl_.consistency_selector_.new_transaction_);
  3406. break;
  3407. case kReadTime:
  3408. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.consistency_selector_.read_time_);
  3409. break;
  3410. }
  3411. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.BatchGetDocumentsRequest)
  3412. }
  3413. inline PROTOBUF_NDEBUG_INLINE BatchGetDocumentsRequest::Impl_::Impl_(
  3414. ::google::protobuf::internal::InternalVisibility visibility,
  3415. ::google::protobuf::Arena* arena)
  3416. : _cached_size_{0},
  3417. documents_{visibility, arena},
  3418. database_(arena),
  3419. consistency_selector_{},
  3420. _oneof_case_{} {}
  3421. inline void BatchGetDocumentsRequest::SharedCtor(::_pb::Arena* arena) {
  3422. new (&_impl_) Impl_(internal_visibility(), arena);
  3423. _impl_.mask_ = {};
  3424. }
  3425. BatchGetDocumentsRequest::~BatchGetDocumentsRequest() {
  3426. // @@protoc_insertion_point(destructor:google.firestore.v1.BatchGetDocumentsRequest)
  3427. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  3428. SharedDtor();
  3429. }
  3430. inline void BatchGetDocumentsRequest::SharedDtor() {
  3431. ABSL_DCHECK(GetArena() == nullptr);
  3432. _impl_.database_.Destroy();
  3433. delete _impl_.mask_;
  3434. if (has_consistency_selector()) {
  3435. clear_consistency_selector();
  3436. }
  3437. _impl_.~Impl_();
  3438. }
  3439. void BatchGetDocumentsRequest::clear_consistency_selector() {
  3440. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.BatchGetDocumentsRequest)
  3441. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3442. switch (consistency_selector_case()) {
  3443. case kTransaction: {
  3444. _impl_.consistency_selector_.transaction_.Destroy();
  3445. break;
  3446. }
  3447. case kNewTransaction: {
  3448. if (GetArena() == nullptr) {
  3449. delete _impl_.consistency_selector_.new_transaction_;
  3450. }
  3451. break;
  3452. }
  3453. case kReadTime: {
  3454. if (GetArena() == nullptr) {
  3455. delete _impl_.consistency_selector_.read_time_;
  3456. }
  3457. break;
  3458. }
  3459. case CONSISTENCY_SELECTOR_NOT_SET: {
  3460. break;
  3461. }
  3462. }
  3463. _impl_._oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  3464. }
  3465. PROTOBUF_NOINLINE void BatchGetDocumentsRequest::Clear() {
  3466. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.BatchGetDocumentsRequest)
  3467. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3468. ::uint32_t cached_has_bits = 0;
  3469. // Prevent compiler warnings about cached_has_bits being unused
  3470. (void) cached_has_bits;
  3471. _impl_.documents_.Clear();
  3472. _impl_.database_.ClearToEmpty();
  3473. cached_has_bits = _impl_._has_bits_[0];
  3474. if (cached_has_bits & 0x00000001u) {
  3475. ABSL_DCHECK(_impl_.mask_ != nullptr);
  3476. _impl_.mask_->Clear();
  3477. }
  3478. clear_consistency_selector();
  3479. _impl_._has_bits_.Clear();
  3480. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  3481. }
  3482. const char* BatchGetDocumentsRequest::_InternalParse(
  3483. const char* ptr, ::_pbi::ParseContext* ctx) {
  3484. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  3485. return ptr;
  3486. }
  3487. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  3488. const ::_pbi::TcParseTable<2, 6, 3, 70, 2> BatchGetDocumentsRequest::_table_ = {
  3489. {
  3490. PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_._has_bits_),
  3491. 0, // no _extensions_
  3492. 7, 24, // max_field_number, fast_idx_mask
  3493. offsetof(decltype(_table_), field_lookup_table),
  3494. 4294967200, // skipmap
  3495. offsetof(decltype(_table_), field_entries),
  3496. 6, // num_field_entries
  3497. 3, // num_aux_entries
  3498. offsetof(decltype(_table_), aux_entries),
  3499. &_BatchGetDocumentsRequest_default_instance_._instance,
  3500. ::_pbi::TcParser::GenericFallback, // fallback
  3501. }, {{
  3502. {::_pbi::TcParser::MiniParse, {}},
  3503. // string database = 1;
  3504. {::_pbi::TcParser::FastUS1,
  3505. {10, 63, 0, PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.database_)}},
  3506. // repeated string documents = 2;
  3507. {::_pbi::TcParser::FastUR1,
  3508. {18, 63, 0, PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.documents_)}},
  3509. // .google.firestore.v1.DocumentMask mask = 3;
  3510. {::_pbi::TcParser::FastMtS1,
  3511. {26, 0, 0, PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.mask_)}},
  3512. }}, {{
  3513. 65535, 65535
  3514. }}, {{
  3515. // string database = 1;
  3516. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.database_), -1, 0,
  3517. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  3518. // repeated string documents = 2;
  3519. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.documents_), -1, 0,
  3520. (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
  3521. // .google.firestore.v1.DocumentMask mask = 3;
  3522. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.mask_), _Internal::kHasBitsOffset + 0, 0,
  3523. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  3524. // bytes transaction = 4;
  3525. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.consistency_selector_.transaction_), _Internal::kOneofCaseOffset + 0, 0,
  3526. (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
  3527. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  3528. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.consistency_selector_.new_transaction_), _Internal::kOneofCaseOffset + 0, 1,
  3529. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  3530. // .google.protobuf.Timestamp read_time = 7;
  3531. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsRequest, _impl_.consistency_selector_.read_time_), _Internal::kOneofCaseOffset + 0, 2,
  3532. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  3533. }}, {{
  3534. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentMask>()},
  3535. {::_pbi::TcParser::GetTable<::google::firestore::v1::TransactionOptions>()},
  3536. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  3537. }}, {{
  3538. "\54\10\11\0\0\0\0\0"
  3539. "google.firestore.v1.BatchGetDocumentsRequest"
  3540. "database"
  3541. "documents"
  3542. }},
  3543. };
  3544. ::uint8_t* BatchGetDocumentsRequest::_InternalSerialize(
  3545. ::uint8_t* target,
  3546. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  3547. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.BatchGetDocumentsRequest)
  3548. ::uint32_t cached_has_bits = 0;
  3549. (void)cached_has_bits;
  3550. // string database = 1;
  3551. if (!this->_internal_database().empty()) {
  3552. const std::string& _s = this->_internal_database();
  3553. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  3554. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.BatchGetDocumentsRequest.database");
  3555. target = stream->WriteStringMaybeAliased(1, _s, target);
  3556. }
  3557. // repeated string documents = 2;
  3558. for (int i = 0, n = this->_internal_documents_size(); i < n; ++i) {
  3559. const auto& s = this->_internal_documents().Get(i);
  3560. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  3561. s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.BatchGetDocumentsRequest.documents");
  3562. target = stream->WriteString(2, s, target);
  3563. }
  3564. cached_has_bits = _impl_._has_bits_[0];
  3565. // .google.firestore.v1.DocumentMask mask = 3;
  3566. if (cached_has_bits & 0x00000001u) {
  3567. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3568. 3, _Internal::mask(this),
  3569. _Internal::mask(this).GetCachedSize(), target, stream);
  3570. }
  3571. switch (consistency_selector_case()) {
  3572. case kTransaction: {
  3573. const std::string& _s = this->_internal_transaction();
  3574. target = stream->WriteBytesMaybeAliased(4, _s, target);
  3575. break;
  3576. }
  3577. case kNewTransaction: {
  3578. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3579. 5, _Internal::new_transaction(this),
  3580. _Internal::new_transaction(this).GetCachedSize(), target, stream);
  3581. break;
  3582. }
  3583. case kReadTime: {
  3584. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3585. 7, _Internal::read_time(this),
  3586. _Internal::read_time(this).GetCachedSize(), target, stream);
  3587. break;
  3588. }
  3589. default:
  3590. break;
  3591. }
  3592. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3593. target =
  3594. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3595. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  3596. }
  3597. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.BatchGetDocumentsRequest)
  3598. return target;
  3599. }
  3600. ::size_t BatchGetDocumentsRequest::ByteSizeLong() const {
  3601. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.BatchGetDocumentsRequest)
  3602. ::size_t total_size = 0;
  3603. ::uint32_t cached_has_bits = 0;
  3604. // Prevent compiler warnings about cached_has_bits being unused
  3605. (void) cached_has_bits;
  3606. // repeated string documents = 2;
  3607. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_documents().size());
  3608. for (int i = 0, n = _internal_documents().size(); i < n; ++i) {
  3609. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  3610. _internal_documents().Get(i));
  3611. }
  3612. // string database = 1;
  3613. if (!this->_internal_database().empty()) {
  3614. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  3615. this->_internal_database());
  3616. }
  3617. // .google.firestore.v1.DocumentMask mask = 3;
  3618. cached_has_bits = _impl_._has_bits_[0];
  3619. if (cached_has_bits & 0x00000001u) {
  3620. total_size +=
  3621. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mask_);
  3622. }
  3623. switch (consistency_selector_case()) {
  3624. // bytes transaction = 4;
  3625. case kTransaction: {
  3626. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  3627. this->_internal_transaction());
  3628. break;
  3629. }
  3630. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  3631. case kNewTransaction: {
  3632. total_size +=
  3633. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.new_transaction_);
  3634. break;
  3635. }
  3636. // .google.protobuf.Timestamp read_time = 7;
  3637. case kReadTime: {
  3638. total_size +=
  3639. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.read_time_);
  3640. break;
  3641. }
  3642. case CONSISTENCY_SELECTOR_NOT_SET: {
  3643. break;
  3644. }
  3645. }
  3646. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3647. }
  3648. const ::google::protobuf::Message::ClassData BatchGetDocumentsRequest::_class_data_ = {
  3649. BatchGetDocumentsRequest::MergeImpl,
  3650. nullptr, // OnDemandRegisterArenaDtor
  3651. };
  3652. const ::google::protobuf::Message::ClassData* BatchGetDocumentsRequest::GetClassData() const {
  3653. return &_class_data_;
  3654. }
  3655. void BatchGetDocumentsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  3656. auto* const _this = static_cast<BatchGetDocumentsRequest*>(&to_msg);
  3657. auto& from = static_cast<const BatchGetDocumentsRequest&>(from_msg);
  3658. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.BatchGetDocumentsRequest)
  3659. ABSL_DCHECK_NE(&from, _this);
  3660. ::uint32_t cached_has_bits = 0;
  3661. (void) cached_has_bits;
  3662. _this->_internal_mutable_documents()->MergeFrom(from._internal_documents());
  3663. if (!from._internal_database().empty()) {
  3664. _this->_internal_set_database(from._internal_database());
  3665. }
  3666. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  3667. _this->_internal_mutable_mask()->::google::firestore::v1::DocumentMask::MergeFrom(
  3668. from._internal_mask());
  3669. }
  3670. switch (from.consistency_selector_case()) {
  3671. case kTransaction: {
  3672. _this->_internal_set_transaction(from._internal_transaction());
  3673. break;
  3674. }
  3675. case kNewTransaction: {
  3676. _this->_internal_mutable_new_transaction()->::google::firestore::v1::TransactionOptions::MergeFrom(
  3677. from._internal_new_transaction());
  3678. break;
  3679. }
  3680. case kReadTime: {
  3681. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  3682. from._internal_read_time());
  3683. break;
  3684. }
  3685. case CONSISTENCY_SELECTOR_NOT_SET: {
  3686. break;
  3687. }
  3688. }
  3689. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  3690. }
  3691. void BatchGetDocumentsRequest::CopyFrom(const BatchGetDocumentsRequest& from) {
  3692. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.BatchGetDocumentsRequest)
  3693. if (&from == this) return;
  3694. Clear();
  3695. MergeFrom(from);
  3696. }
  3697. PROTOBUF_NOINLINE bool BatchGetDocumentsRequest::IsInitialized() const {
  3698. return true;
  3699. }
  3700. ::_pbi::CachedSize* BatchGetDocumentsRequest::AccessCachedSize() const {
  3701. return &_impl_._cached_size_;
  3702. }
  3703. void BatchGetDocumentsRequest::InternalSwap(BatchGetDocumentsRequest* PROTOBUF_RESTRICT other) {
  3704. using std::swap;
  3705. auto* arena = GetArena();
  3706. ABSL_DCHECK_EQ(arena, other->GetArena());
  3707. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3708. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  3709. _impl_.documents_.InternalSwap(&other->_impl_.documents_);
  3710. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.database_, &other->_impl_.database_, arena);
  3711. swap(_impl_.mask_, other->_impl_.mask_);
  3712. swap(_impl_.consistency_selector_, other->_impl_.consistency_selector_);
  3713. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  3714. }
  3715. ::google::protobuf::Metadata BatchGetDocumentsRequest::GetMetadata() const {
  3716. return ::_pbi::AssignDescriptors(
  3717. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  3718. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[6]);
  3719. }
  3720. // ===================================================================
  3721. class BatchGetDocumentsResponse::_Internal {
  3722. public:
  3723. using HasBits = decltype(std::declval<BatchGetDocumentsResponse>()._impl_._has_bits_);
  3724. static constexpr ::int32_t kHasBitsOffset =
  3725. 8 * PROTOBUF_FIELD_OFFSET(BatchGetDocumentsResponse, _impl_._has_bits_);
  3726. static constexpr ::int32_t kOneofCaseOffset =
  3727. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BatchGetDocumentsResponse, _impl_._oneof_case_);
  3728. static const ::google::firestore::v1::Document& found(const BatchGetDocumentsResponse* msg);
  3729. static const ::google::protobuf::Timestamp& read_time(const BatchGetDocumentsResponse* msg);
  3730. static void set_has_read_time(HasBits* has_bits) {
  3731. (*has_bits)[0] |= 1u;
  3732. }
  3733. };
  3734. const ::google::firestore::v1::Document& BatchGetDocumentsResponse::_Internal::found(const BatchGetDocumentsResponse* msg) {
  3735. return *msg->_impl_.result_.found_;
  3736. }
  3737. const ::google::protobuf::Timestamp& BatchGetDocumentsResponse::_Internal::read_time(const BatchGetDocumentsResponse* msg) {
  3738. return *msg->_impl_.read_time_;
  3739. }
  3740. void BatchGetDocumentsResponse::set_allocated_found(::google::firestore::v1::Document* found) {
  3741. ::google::protobuf::Arena* message_arena = GetArena();
  3742. clear_result();
  3743. if (found) {
  3744. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(found)->GetArena();
  3745. if (message_arena != submessage_arena) {
  3746. found = ::google::protobuf::internal::GetOwnedMessage(message_arena, found, submessage_arena);
  3747. }
  3748. set_has_found();
  3749. _impl_.result_.found_ = found;
  3750. }
  3751. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.found)
  3752. }
  3753. void BatchGetDocumentsResponse::clear_found() {
  3754. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3755. if (result_case() == kFound) {
  3756. if (GetArena() == nullptr) {
  3757. delete _impl_.result_.found_;
  3758. }
  3759. clear_has_result();
  3760. }
  3761. }
  3762. void BatchGetDocumentsResponse::clear_read_time() {
  3763. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3764. if (_impl_.read_time_ != nullptr) _impl_.read_time_->Clear();
  3765. _impl_._has_bits_[0] &= ~0x00000001u;
  3766. }
  3767. BatchGetDocumentsResponse::BatchGetDocumentsResponse(::google::protobuf::Arena* arena)
  3768. : ::google::protobuf::Message(arena) {
  3769. SharedCtor(arena);
  3770. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.BatchGetDocumentsResponse)
  3771. }
  3772. inline PROTOBUF_NDEBUG_INLINE BatchGetDocumentsResponse::Impl_::Impl_(
  3773. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  3774. const Impl_& from)
  3775. : _has_bits_{from._has_bits_},
  3776. _cached_size_{0},
  3777. transaction_(arena, from.transaction_),
  3778. result_{},
  3779. _oneof_case_{from._oneof_case_[0]} {}
  3780. BatchGetDocumentsResponse::BatchGetDocumentsResponse(
  3781. ::google::protobuf::Arena* arena,
  3782. const BatchGetDocumentsResponse& from)
  3783. : ::google::protobuf::Message(arena) {
  3784. BatchGetDocumentsResponse* const _this = this;
  3785. (void)_this;
  3786. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  3787. from._internal_metadata_);
  3788. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  3789. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  3790. _impl_.read_time_ = (cached_has_bits & 0x00000001u)
  3791. ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.read_time_)
  3792. : nullptr;
  3793. switch (result_case()) {
  3794. case RESULT_NOT_SET:
  3795. break;
  3796. case kFound:
  3797. _impl_.result_.found_ = CreateMaybeMessage<::google::firestore::v1::Document>(arena, *from._impl_.result_.found_);
  3798. break;
  3799. case kMissing:
  3800. new (&_impl_.result_.missing_) decltype(_impl_.result_.missing_){arena, from._impl_.result_.missing_};
  3801. break;
  3802. }
  3803. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.BatchGetDocumentsResponse)
  3804. }
  3805. inline PROTOBUF_NDEBUG_INLINE BatchGetDocumentsResponse::Impl_::Impl_(
  3806. ::google::protobuf::internal::InternalVisibility visibility,
  3807. ::google::protobuf::Arena* arena)
  3808. : _cached_size_{0},
  3809. transaction_(arena),
  3810. result_{},
  3811. _oneof_case_{} {}
  3812. inline void BatchGetDocumentsResponse::SharedCtor(::_pb::Arena* arena) {
  3813. new (&_impl_) Impl_(internal_visibility(), arena);
  3814. _impl_.read_time_ = {};
  3815. }
  3816. BatchGetDocumentsResponse::~BatchGetDocumentsResponse() {
  3817. // @@protoc_insertion_point(destructor:google.firestore.v1.BatchGetDocumentsResponse)
  3818. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  3819. SharedDtor();
  3820. }
  3821. inline void BatchGetDocumentsResponse::SharedDtor() {
  3822. ABSL_DCHECK(GetArena() == nullptr);
  3823. _impl_.transaction_.Destroy();
  3824. delete _impl_.read_time_;
  3825. if (has_result()) {
  3826. clear_result();
  3827. }
  3828. _impl_.~Impl_();
  3829. }
  3830. void BatchGetDocumentsResponse::clear_result() {
  3831. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.BatchGetDocumentsResponse)
  3832. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3833. switch (result_case()) {
  3834. case kFound: {
  3835. if (GetArena() == nullptr) {
  3836. delete _impl_.result_.found_;
  3837. }
  3838. break;
  3839. }
  3840. case kMissing: {
  3841. _impl_.result_.missing_.Destroy();
  3842. break;
  3843. }
  3844. case RESULT_NOT_SET: {
  3845. break;
  3846. }
  3847. }
  3848. _impl_._oneof_case_[0] = RESULT_NOT_SET;
  3849. }
  3850. PROTOBUF_NOINLINE void BatchGetDocumentsResponse::Clear() {
  3851. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.BatchGetDocumentsResponse)
  3852. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3853. ::uint32_t cached_has_bits = 0;
  3854. // Prevent compiler warnings about cached_has_bits being unused
  3855. (void) cached_has_bits;
  3856. _impl_.transaction_.ClearToEmpty();
  3857. cached_has_bits = _impl_._has_bits_[0];
  3858. if (cached_has_bits & 0x00000001u) {
  3859. ABSL_DCHECK(_impl_.read_time_ != nullptr);
  3860. _impl_.read_time_->Clear();
  3861. }
  3862. clear_result();
  3863. _impl_._has_bits_.Clear();
  3864. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  3865. }
  3866. const char* BatchGetDocumentsResponse::_InternalParse(
  3867. const char* ptr, ::_pbi::ParseContext* ctx) {
  3868. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  3869. return ptr;
  3870. }
  3871. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  3872. const ::_pbi::TcParseTable<1, 4, 2, 61, 2> BatchGetDocumentsResponse::_table_ = {
  3873. {
  3874. PROTOBUF_FIELD_OFFSET(BatchGetDocumentsResponse, _impl_._has_bits_),
  3875. 0, // no _extensions_
  3876. 4, 8, // max_field_number, fast_idx_mask
  3877. offsetof(decltype(_table_), field_lookup_table),
  3878. 4294967280, // skipmap
  3879. offsetof(decltype(_table_), field_entries),
  3880. 4, // num_field_entries
  3881. 2, // num_aux_entries
  3882. offsetof(decltype(_table_), aux_entries),
  3883. &_BatchGetDocumentsResponse_default_instance_._instance,
  3884. ::_pbi::TcParser::GenericFallback, // fallback
  3885. }, {{
  3886. // .google.protobuf.Timestamp read_time = 4;
  3887. {::_pbi::TcParser::FastMtS1,
  3888. {34, 0, 1, PROTOBUF_FIELD_OFFSET(BatchGetDocumentsResponse, _impl_.read_time_)}},
  3889. // bytes transaction = 3;
  3890. {::_pbi::TcParser::FastBS1,
  3891. {26, 63, 0, PROTOBUF_FIELD_OFFSET(BatchGetDocumentsResponse, _impl_.transaction_)}},
  3892. }}, {{
  3893. 65535, 65535
  3894. }}, {{
  3895. // .google.firestore.v1.Document found = 1;
  3896. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsResponse, _impl_.result_.found_), _Internal::kOneofCaseOffset + 0, 0,
  3897. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  3898. // string missing = 2;
  3899. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsResponse, _impl_.result_.missing_), _Internal::kOneofCaseOffset + 0, 0,
  3900. (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
  3901. // bytes transaction = 3;
  3902. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsResponse, _impl_.transaction_), -1, 0,
  3903. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  3904. // .google.protobuf.Timestamp read_time = 4;
  3905. {PROTOBUF_FIELD_OFFSET(BatchGetDocumentsResponse, _impl_.read_time_), _Internal::kHasBitsOffset + 0, 1,
  3906. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  3907. }}, {{
  3908. {::_pbi::TcParser::GetTable<::google::firestore::v1::Document>()},
  3909. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  3910. }}, {{
  3911. "\55\0\7\0\0\0\0\0"
  3912. "google.firestore.v1.BatchGetDocumentsResponse"
  3913. "missing"
  3914. }},
  3915. };
  3916. ::uint8_t* BatchGetDocumentsResponse::_InternalSerialize(
  3917. ::uint8_t* target,
  3918. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  3919. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.BatchGetDocumentsResponse)
  3920. ::uint32_t cached_has_bits = 0;
  3921. (void)cached_has_bits;
  3922. switch (result_case()) {
  3923. case kFound: {
  3924. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3925. 1, _Internal::found(this),
  3926. _Internal::found(this).GetCachedSize(), target, stream);
  3927. break;
  3928. }
  3929. case kMissing: {
  3930. const std::string& _s = this->_internal_missing();
  3931. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  3932. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.BatchGetDocumentsResponse.missing");
  3933. target = stream->WriteStringMaybeAliased(2, _s, target);
  3934. break;
  3935. }
  3936. default:
  3937. break;
  3938. }
  3939. // bytes transaction = 3;
  3940. if (!this->_internal_transaction().empty()) {
  3941. const std::string& _s = this->_internal_transaction();
  3942. target = stream->WriteBytesMaybeAliased(3, _s, target);
  3943. }
  3944. cached_has_bits = _impl_._has_bits_[0];
  3945. // .google.protobuf.Timestamp read_time = 4;
  3946. if (cached_has_bits & 0x00000001u) {
  3947. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  3948. 4, _Internal::read_time(this),
  3949. _Internal::read_time(this).GetCachedSize(), target, stream);
  3950. }
  3951. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3952. target =
  3953. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3954. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  3955. }
  3956. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.BatchGetDocumentsResponse)
  3957. return target;
  3958. }
  3959. ::size_t BatchGetDocumentsResponse::ByteSizeLong() const {
  3960. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.BatchGetDocumentsResponse)
  3961. ::size_t total_size = 0;
  3962. ::uint32_t cached_has_bits = 0;
  3963. // Prevent compiler warnings about cached_has_bits being unused
  3964. (void) cached_has_bits;
  3965. // bytes transaction = 3;
  3966. if (!this->_internal_transaction().empty()) {
  3967. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  3968. this->_internal_transaction());
  3969. }
  3970. // .google.protobuf.Timestamp read_time = 4;
  3971. cached_has_bits = _impl_._has_bits_[0];
  3972. if (cached_has_bits & 0x00000001u) {
  3973. total_size +=
  3974. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.read_time_);
  3975. }
  3976. switch (result_case()) {
  3977. // .google.firestore.v1.Document found = 1;
  3978. case kFound: {
  3979. total_size +=
  3980. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.result_.found_);
  3981. break;
  3982. }
  3983. // string missing = 2;
  3984. case kMissing: {
  3985. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  3986. this->_internal_missing());
  3987. break;
  3988. }
  3989. case RESULT_NOT_SET: {
  3990. break;
  3991. }
  3992. }
  3993. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3994. }
  3995. const ::google::protobuf::Message::ClassData BatchGetDocumentsResponse::_class_data_ = {
  3996. BatchGetDocumentsResponse::MergeImpl,
  3997. nullptr, // OnDemandRegisterArenaDtor
  3998. };
  3999. const ::google::protobuf::Message::ClassData* BatchGetDocumentsResponse::GetClassData() const {
  4000. return &_class_data_;
  4001. }
  4002. void BatchGetDocumentsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  4003. auto* const _this = static_cast<BatchGetDocumentsResponse*>(&to_msg);
  4004. auto& from = static_cast<const BatchGetDocumentsResponse&>(from_msg);
  4005. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.BatchGetDocumentsResponse)
  4006. ABSL_DCHECK_NE(&from, _this);
  4007. ::uint32_t cached_has_bits = 0;
  4008. (void) cached_has_bits;
  4009. if (!from._internal_transaction().empty()) {
  4010. _this->_internal_set_transaction(from._internal_transaction());
  4011. }
  4012. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  4013. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  4014. from._internal_read_time());
  4015. }
  4016. switch (from.result_case()) {
  4017. case kFound: {
  4018. _this->_internal_mutable_found()->::google::firestore::v1::Document::MergeFrom(
  4019. from._internal_found());
  4020. break;
  4021. }
  4022. case kMissing: {
  4023. _this->_internal_set_missing(from._internal_missing());
  4024. break;
  4025. }
  4026. case RESULT_NOT_SET: {
  4027. break;
  4028. }
  4029. }
  4030. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  4031. }
  4032. void BatchGetDocumentsResponse::CopyFrom(const BatchGetDocumentsResponse& from) {
  4033. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.BatchGetDocumentsResponse)
  4034. if (&from == this) return;
  4035. Clear();
  4036. MergeFrom(from);
  4037. }
  4038. PROTOBUF_NOINLINE bool BatchGetDocumentsResponse::IsInitialized() const {
  4039. return true;
  4040. }
  4041. ::_pbi::CachedSize* BatchGetDocumentsResponse::AccessCachedSize() const {
  4042. return &_impl_._cached_size_;
  4043. }
  4044. void BatchGetDocumentsResponse::InternalSwap(BatchGetDocumentsResponse* PROTOBUF_RESTRICT other) {
  4045. using std::swap;
  4046. auto* arena = GetArena();
  4047. ABSL_DCHECK_EQ(arena, other->GetArena());
  4048. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4049. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  4050. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.transaction_, &other->_impl_.transaction_, arena);
  4051. swap(_impl_.read_time_, other->_impl_.read_time_);
  4052. swap(_impl_.result_, other->_impl_.result_);
  4053. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  4054. }
  4055. ::google::protobuf::Metadata BatchGetDocumentsResponse::GetMetadata() const {
  4056. return ::_pbi::AssignDescriptors(
  4057. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  4058. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[7]);
  4059. }
  4060. // ===================================================================
  4061. class BeginTransactionRequest::_Internal {
  4062. public:
  4063. using HasBits = decltype(std::declval<BeginTransactionRequest>()._impl_._has_bits_);
  4064. static constexpr ::int32_t kHasBitsOffset =
  4065. 8 * PROTOBUF_FIELD_OFFSET(BeginTransactionRequest, _impl_._has_bits_);
  4066. static const ::google::firestore::v1::TransactionOptions& options(const BeginTransactionRequest* msg);
  4067. static void set_has_options(HasBits* has_bits) {
  4068. (*has_bits)[0] |= 1u;
  4069. }
  4070. };
  4071. const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::_Internal::options(const BeginTransactionRequest* msg) {
  4072. return *msg->_impl_.options_;
  4073. }
  4074. void BeginTransactionRequest::clear_options() {
  4075. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4076. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  4077. _impl_._has_bits_[0] &= ~0x00000001u;
  4078. }
  4079. BeginTransactionRequest::BeginTransactionRequest(::google::protobuf::Arena* arena)
  4080. : ::google::protobuf::Message(arena) {
  4081. SharedCtor(arena);
  4082. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.BeginTransactionRequest)
  4083. }
  4084. inline PROTOBUF_NDEBUG_INLINE BeginTransactionRequest::Impl_::Impl_(
  4085. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  4086. const Impl_& from)
  4087. : _has_bits_{from._has_bits_},
  4088. _cached_size_{0},
  4089. database_(arena, from.database_) {}
  4090. BeginTransactionRequest::BeginTransactionRequest(
  4091. ::google::protobuf::Arena* arena,
  4092. const BeginTransactionRequest& from)
  4093. : ::google::protobuf::Message(arena) {
  4094. BeginTransactionRequest* const _this = this;
  4095. (void)_this;
  4096. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  4097. from._internal_metadata_);
  4098. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  4099. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  4100. _impl_.options_ = (cached_has_bits & 0x00000001u)
  4101. ? CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(arena, *from._impl_.options_)
  4102. : nullptr;
  4103. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.BeginTransactionRequest)
  4104. }
  4105. inline PROTOBUF_NDEBUG_INLINE BeginTransactionRequest::Impl_::Impl_(
  4106. ::google::protobuf::internal::InternalVisibility visibility,
  4107. ::google::protobuf::Arena* arena)
  4108. : _cached_size_{0},
  4109. database_(arena) {}
  4110. inline void BeginTransactionRequest::SharedCtor(::_pb::Arena* arena) {
  4111. new (&_impl_) Impl_(internal_visibility(), arena);
  4112. _impl_.options_ = {};
  4113. }
  4114. BeginTransactionRequest::~BeginTransactionRequest() {
  4115. // @@protoc_insertion_point(destructor:google.firestore.v1.BeginTransactionRequest)
  4116. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  4117. SharedDtor();
  4118. }
  4119. inline void BeginTransactionRequest::SharedDtor() {
  4120. ABSL_DCHECK(GetArena() == nullptr);
  4121. _impl_.database_.Destroy();
  4122. delete _impl_.options_;
  4123. _impl_.~Impl_();
  4124. }
  4125. PROTOBUF_NOINLINE void BeginTransactionRequest::Clear() {
  4126. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.BeginTransactionRequest)
  4127. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4128. ::uint32_t cached_has_bits = 0;
  4129. // Prevent compiler warnings about cached_has_bits being unused
  4130. (void) cached_has_bits;
  4131. _impl_.database_.ClearToEmpty();
  4132. cached_has_bits = _impl_._has_bits_[0];
  4133. if (cached_has_bits & 0x00000001u) {
  4134. ABSL_DCHECK(_impl_.options_ != nullptr);
  4135. _impl_.options_->Clear();
  4136. }
  4137. _impl_._has_bits_.Clear();
  4138. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  4139. }
  4140. const char* BeginTransactionRequest::_InternalParse(
  4141. const char* ptr, ::_pbi::ParseContext* ctx) {
  4142. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  4143. return ptr;
  4144. }
  4145. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  4146. const ::_pbi::TcParseTable<1, 2, 1, 60, 2> BeginTransactionRequest::_table_ = {
  4147. {
  4148. PROTOBUF_FIELD_OFFSET(BeginTransactionRequest, _impl_._has_bits_),
  4149. 0, // no _extensions_
  4150. 2, 8, // max_field_number, fast_idx_mask
  4151. offsetof(decltype(_table_), field_lookup_table),
  4152. 4294967292, // skipmap
  4153. offsetof(decltype(_table_), field_entries),
  4154. 2, // num_field_entries
  4155. 1, // num_aux_entries
  4156. offsetof(decltype(_table_), aux_entries),
  4157. &_BeginTransactionRequest_default_instance_._instance,
  4158. ::_pbi::TcParser::GenericFallback, // fallback
  4159. }, {{
  4160. // .google.firestore.v1.TransactionOptions options = 2;
  4161. {::_pbi::TcParser::FastMtS1,
  4162. {18, 0, 0, PROTOBUF_FIELD_OFFSET(BeginTransactionRequest, _impl_.options_)}},
  4163. // string database = 1;
  4164. {::_pbi::TcParser::FastUS1,
  4165. {10, 63, 0, PROTOBUF_FIELD_OFFSET(BeginTransactionRequest, _impl_.database_)}},
  4166. }}, {{
  4167. 65535, 65535
  4168. }}, {{
  4169. // string database = 1;
  4170. {PROTOBUF_FIELD_OFFSET(BeginTransactionRequest, _impl_.database_), -1, 0,
  4171. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  4172. // .google.firestore.v1.TransactionOptions options = 2;
  4173. {PROTOBUF_FIELD_OFFSET(BeginTransactionRequest, _impl_.options_), _Internal::kHasBitsOffset + 0, 0,
  4174. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  4175. }}, {{
  4176. {::_pbi::TcParser::GetTable<::google::firestore::v1::TransactionOptions>()},
  4177. }}, {{
  4178. "\53\10\0\0\0\0\0\0"
  4179. "google.firestore.v1.BeginTransactionRequest"
  4180. "database"
  4181. }},
  4182. };
  4183. ::uint8_t* BeginTransactionRequest::_InternalSerialize(
  4184. ::uint8_t* target,
  4185. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  4186. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.BeginTransactionRequest)
  4187. ::uint32_t cached_has_bits = 0;
  4188. (void)cached_has_bits;
  4189. // string database = 1;
  4190. if (!this->_internal_database().empty()) {
  4191. const std::string& _s = this->_internal_database();
  4192. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  4193. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.BeginTransactionRequest.database");
  4194. target = stream->WriteStringMaybeAliased(1, _s, target);
  4195. }
  4196. cached_has_bits = _impl_._has_bits_[0];
  4197. // .google.firestore.v1.TransactionOptions options = 2;
  4198. if (cached_has_bits & 0x00000001u) {
  4199. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  4200. 2, _Internal::options(this),
  4201. _Internal::options(this).GetCachedSize(), target, stream);
  4202. }
  4203. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4204. target =
  4205. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4206. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  4207. }
  4208. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.BeginTransactionRequest)
  4209. return target;
  4210. }
  4211. ::size_t BeginTransactionRequest::ByteSizeLong() const {
  4212. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.BeginTransactionRequest)
  4213. ::size_t total_size = 0;
  4214. ::uint32_t cached_has_bits = 0;
  4215. // Prevent compiler warnings about cached_has_bits being unused
  4216. (void) cached_has_bits;
  4217. // string database = 1;
  4218. if (!this->_internal_database().empty()) {
  4219. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  4220. this->_internal_database());
  4221. }
  4222. // .google.firestore.v1.TransactionOptions options = 2;
  4223. cached_has_bits = _impl_._has_bits_[0];
  4224. if (cached_has_bits & 0x00000001u) {
  4225. total_size +=
  4226. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.options_);
  4227. }
  4228. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4229. }
  4230. const ::google::protobuf::Message::ClassData BeginTransactionRequest::_class_data_ = {
  4231. BeginTransactionRequest::MergeImpl,
  4232. nullptr, // OnDemandRegisterArenaDtor
  4233. };
  4234. const ::google::protobuf::Message::ClassData* BeginTransactionRequest::GetClassData() const {
  4235. return &_class_data_;
  4236. }
  4237. void BeginTransactionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  4238. auto* const _this = static_cast<BeginTransactionRequest*>(&to_msg);
  4239. auto& from = static_cast<const BeginTransactionRequest&>(from_msg);
  4240. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.BeginTransactionRequest)
  4241. ABSL_DCHECK_NE(&from, _this);
  4242. ::uint32_t cached_has_bits = 0;
  4243. (void) cached_has_bits;
  4244. if (!from._internal_database().empty()) {
  4245. _this->_internal_set_database(from._internal_database());
  4246. }
  4247. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  4248. _this->_internal_mutable_options()->::google::firestore::v1::TransactionOptions::MergeFrom(
  4249. from._internal_options());
  4250. }
  4251. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  4252. }
  4253. void BeginTransactionRequest::CopyFrom(const BeginTransactionRequest& from) {
  4254. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.BeginTransactionRequest)
  4255. if (&from == this) return;
  4256. Clear();
  4257. MergeFrom(from);
  4258. }
  4259. PROTOBUF_NOINLINE bool BeginTransactionRequest::IsInitialized() const {
  4260. return true;
  4261. }
  4262. ::_pbi::CachedSize* BeginTransactionRequest::AccessCachedSize() const {
  4263. return &_impl_._cached_size_;
  4264. }
  4265. void BeginTransactionRequest::InternalSwap(BeginTransactionRequest* PROTOBUF_RESTRICT other) {
  4266. using std::swap;
  4267. auto* arena = GetArena();
  4268. ABSL_DCHECK_EQ(arena, other->GetArena());
  4269. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4270. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  4271. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.database_, &other->_impl_.database_, arena);
  4272. swap(_impl_.options_, other->_impl_.options_);
  4273. }
  4274. ::google::protobuf::Metadata BeginTransactionRequest::GetMetadata() const {
  4275. return ::_pbi::AssignDescriptors(
  4276. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  4277. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[8]);
  4278. }
  4279. // ===================================================================
  4280. class BeginTransactionResponse::_Internal {
  4281. public:
  4282. };
  4283. BeginTransactionResponse::BeginTransactionResponse(::google::protobuf::Arena* arena)
  4284. : ::google::protobuf::Message(arena) {
  4285. SharedCtor(arena);
  4286. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.BeginTransactionResponse)
  4287. }
  4288. inline PROTOBUF_NDEBUG_INLINE BeginTransactionResponse::Impl_::Impl_(
  4289. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  4290. const Impl_& from)
  4291. : transaction_(arena, from.transaction_),
  4292. _cached_size_{0} {}
  4293. BeginTransactionResponse::BeginTransactionResponse(
  4294. ::google::protobuf::Arena* arena,
  4295. const BeginTransactionResponse& from)
  4296. : ::google::protobuf::Message(arena) {
  4297. BeginTransactionResponse* const _this = this;
  4298. (void)_this;
  4299. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  4300. from._internal_metadata_);
  4301. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  4302. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.BeginTransactionResponse)
  4303. }
  4304. inline PROTOBUF_NDEBUG_INLINE BeginTransactionResponse::Impl_::Impl_(
  4305. ::google::protobuf::internal::InternalVisibility visibility,
  4306. ::google::protobuf::Arena* arena)
  4307. : transaction_(arena),
  4308. _cached_size_{0} {}
  4309. inline void BeginTransactionResponse::SharedCtor(::_pb::Arena* arena) {
  4310. new (&_impl_) Impl_(internal_visibility(), arena);
  4311. }
  4312. BeginTransactionResponse::~BeginTransactionResponse() {
  4313. // @@protoc_insertion_point(destructor:google.firestore.v1.BeginTransactionResponse)
  4314. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  4315. SharedDtor();
  4316. }
  4317. inline void BeginTransactionResponse::SharedDtor() {
  4318. ABSL_DCHECK(GetArena() == nullptr);
  4319. _impl_.transaction_.Destroy();
  4320. _impl_.~Impl_();
  4321. }
  4322. PROTOBUF_NOINLINE void BeginTransactionResponse::Clear() {
  4323. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.BeginTransactionResponse)
  4324. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4325. ::uint32_t cached_has_bits = 0;
  4326. // Prevent compiler warnings about cached_has_bits being unused
  4327. (void) cached_has_bits;
  4328. _impl_.transaction_.ClearToEmpty();
  4329. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  4330. }
  4331. const char* BeginTransactionResponse::_InternalParse(
  4332. const char* ptr, ::_pbi::ParseContext* ctx) {
  4333. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  4334. return ptr;
  4335. }
  4336. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  4337. const ::_pbi::TcParseTable<0, 1, 0, 0, 2> BeginTransactionResponse::_table_ = {
  4338. {
  4339. 0, // no _has_bits_
  4340. 0, // no _extensions_
  4341. 1, 0, // max_field_number, fast_idx_mask
  4342. offsetof(decltype(_table_), field_lookup_table),
  4343. 4294967294, // skipmap
  4344. offsetof(decltype(_table_), field_entries),
  4345. 1, // num_field_entries
  4346. 0, // num_aux_entries
  4347. offsetof(decltype(_table_), field_names), // no aux_entries
  4348. &_BeginTransactionResponse_default_instance_._instance,
  4349. ::_pbi::TcParser::GenericFallback, // fallback
  4350. }, {{
  4351. // bytes transaction = 1;
  4352. {::_pbi::TcParser::FastBS1,
  4353. {10, 63, 0, PROTOBUF_FIELD_OFFSET(BeginTransactionResponse, _impl_.transaction_)}},
  4354. }}, {{
  4355. 65535, 65535
  4356. }}, {{
  4357. // bytes transaction = 1;
  4358. {PROTOBUF_FIELD_OFFSET(BeginTransactionResponse, _impl_.transaction_), 0, 0,
  4359. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  4360. }},
  4361. // no aux_entries
  4362. {{
  4363. }},
  4364. };
  4365. ::uint8_t* BeginTransactionResponse::_InternalSerialize(
  4366. ::uint8_t* target,
  4367. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  4368. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.BeginTransactionResponse)
  4369. ::uint32_t cached_has_bits = 0;
  4370. (void)cached_has_bits;
  4371. // bytes transaction = 1;
  4372. if (!this->_internal_transaction().empty()) {
  4373. const std::string& _s = this->_internal_transaction();
  4374. target = stream->WriteBytesMaybeAliased(1, _s, target);
  4375. }
  4376. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4377. target =
  4378. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4379. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  4380. }
  4381. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.BeginTransactionResponse)
  4382. return target;
  4383. }
  4384. ::size_t BeginTransactionResponse::ByteSizeLong() const {
  4385. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.BeginTransactionResponse)
  4386. ::size_t total_size = 0;
  4387. ::uint32_t cached_has_bits = 0;
  4388. // Prevent compiler warnings about cached_has_bits being unused
  4389. (void) cached_has_bits;
  4390. // bytes transaction = 1;
  4391. if (!this->_internal_transaction().empty()) {
  4392. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  4393. this->_internal_transaction());
  4394. }
  4395. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4396. }
  4397. const ::google::protobuf::Message::ClassData BeginTransactionResponse::_class_data_ = {
  4398. BeginTransactionResponse::MergeImpl,
  4399. nullptr, // OnDemandRegisterArenaDtor
  4400. };
  4401. const ::google::protobuf::Message::ClassData* BeginTransactionResponse::GetClassData() const {
  4402. return &_class_data_;
  4403. }
  4404. void BeginTransactionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  4405. auto* const _this = static_cast<BeginTransactionResponse*>(&to_msg);
  4406. auto& from = static_cast<const BeginTransactionResponse&>(from_msg);
  4407. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.BeginTransactionResponse)
  4408. ABSL_DCHECK_NE(&from, _this);
  4409. ::uint32_t cached_has_bits = 0;
  4410. (void) cached_has_bits;
  4411. if (!from._internal_transaction().empty()) {
  4412. _this->_internal_set_transaction(from._internal_transaction());
  4413. }
  4414. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  4415. }
  4416. void BeginTransactionResponse::CopyFrom(const BeginTransactionResponse& from) {
  4417. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.BeginTransactionResponse)
  4418. if (&from == this) return;
  4419. Clear();
  4420. MergeFrom(from);
  4421. }
  4422. PROTOBUF_NOINLINE bool BeginTransactionResponse::IsInitialized() const {
  4423. return true;
  4424. }
  4425. ::_pbi::CachedSize* BeginTransactionResponse::AccessCachedSize() const {
  4426. return &_impl_._cached_size_;
  4427. }
  4428. void BeginTransactionResponse::InternalSwap(BeginTransactionResponse* PROTOBUF_RESTRICT other) {
  4429. using std::swap;
  4430. auto* arena = GetArena();
  4431. ABSL_DCHECK_EQ(arena, other->GetArena());
  4432. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4433. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.transaction_, &other->_impl_.transaction_, arena);
  4434. }
  4435. ::google::protobuf::Metadata BeginTransactionResponse::GetMetadata() const {
  4436. return ::_pbi::AssignDescriptors(
  4437. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  4438. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[9]);
  4439. }
  4440. // ===================================================================
  4441. class CommitRequest::_Internal {
  4442. public:
  4443. };
  4444. void CommitRequest::clear_writes() {
  4445. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4446. _impl_.writes_.Clear();
  4447. }
  4448. CommitRequest::CommitRequest(::google::protobuf::Arena* arena)
  4449. : ::google::protobuf::Message(arena) {
  4450. SharedCtor(arena);
  4451. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.CommitRequest)
  4452. }
  4453. inline PROTOBUF_NDEBUG_INLINE CommitRequest::Impl_::Impl_(
  4454. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  4455. const Impl_& from)
  4456. : writes_{visibility, arena, from.writes_},
  4457. database_(arena, from.database_),
  4458. transaction_(arena, from.transaction_),
  4459. _cached_size_{0} {}
  4460. CommitRequest::CommitRequest(
  4461. ::google::protobuf::Arena* arena,
  4462. const CommitRequest& from)
  4463. : ::google::protobuf::Message(arena) {
  4464. CommitRequest* const _this = this;
  4465. (void)_this;
  4466. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  4467. from._internal_metadata_);
  4468. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  4469. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.CommitRequest)
  4470. }
  4471. inline PROTOBUF_NDEBUG_INLINE CommitRequest::Impl_::Impl_(
  4472. ::google::protobuf::internal::InternalVisibility visibility,
  4473. ::google::protobuf::Arena* arena)
  4474. : writes_{visibility, arena},
  4475. database_(arena),
  4476. transaction_(arena),
  4477. _cached_size_{0} {}
  4478. inline void CommitRequest::SharedCtor(::_pb::Arena* arena) {
  4479. new (&_impl_) Impl_(internal_visibility(), arena);
  4480. }
  4481. CommitRequest::~CommitRequest() {
  4482. // @@protoc_insertion_point(destructor:google.firestore.v1.CommitRequest)
  4483. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  4484. SharedDtor();
  4485. }
  4486. inline void CommitRequest::SharedDtor() {
  4487. ABSL_DCHECK(GetArena() == nullptr);
  4488. _impl_.database_.Destroy();
  4489. _impl_.transaction_.Destroy();
  4490. _impl_.~Impl_();
  4491. }
  4492. PROTOBUF_NOINLINE void CommitRequest::Clear() {
  4493. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.CommitRequest)
  4494. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4495. ::uint32_t cached_has_bits = 0;
  4496. // Prevent compiler warnings about cached_has_bits being unused
  4497. (void) cached_has_bits;
  4498. _impl_.writes_.Clear();
  4499. _impl_.database_.ClearToEmpty();
  4500. _impl_.transaction_.ClearToEmpty();
  4501. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  4502. }
  4503. const char* CommitRequest::_InternalParse(
  4504. const char* ptr, ::_pbi::ParseContext* ctx) {
  4505. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  4506. return ptr;
  4507. }
  4508. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  4509. const ::_pbi::TcParseTable<2, 3, 1, 50, 2> CommitRequest::_table_ = {
  4510. {
  4511. 0, // no _has_bits_
  4512. 0, // no _extensions_
  4513. 3, 24, // max_field_number, fast_idx_mask
  4514. offsetof(decltype(_table_), field_lookup_table),
  4515. 4294967288, // skipmap
  4516. offsetof(decltype(_table_), field_entries),
  4517. 3, // num_field_entries
  4518. 1, // num_aux_entries
  4519. offsetof(decltype(_table_), aux_entries),
  4520. &_CommitRequest_default_instance_._instance,
  4521. ::_pbi::TcParser::GenericFallback, // fallback
  4522. }, {{
  4523. {::_pbi::TcParser::MiniParse, {}},
  4524. // string database = 1;
  4525. {::_pbi::TcParser::FastUS1,
  4526. {10, 63, 0, PROTOBUF_FIELD_OFFSET(CommitRequest, _impl_.database_)}},
  4527. // repeated .google.firestore.v1.Write writes = 2;
  4528. {::_pbi::TcParser::FastMtR1,
  4529. {18, 63, 0, PROTOBUF_FIELD_OFFSET(CommitRequest, _impl_.writes_)}},
  4530. // bytes transaction = 3;
  4531. {::_pbi::TcParser::FastBS1,
  4532. {26, 63, 0, PROTOBUF_FIELD_OFFSET(CommitRequest, _impl_.transaction_)}},
  4533. }}, {{
  4534. 65535, 65535
  4535. }}, {{
  4536. // string database = 1;
  4537. {PROTOBUF_FIELD_OFFSET(CommitRequest, _impl_.database_), 0, 0,
  4538. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  4539. // repeated .google.firestore.v1.Write writes = 2;
  4540. {PROTOBUF_FIELD_OFFSET(CommitRequest, _impl_.writes_), 0, 0,
  4541. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  4542. // bytes transaction = 3;
  4543. {PROTOBUF_FIELD_OFFSET(CommitRequest, _impl_.transaction_), 0, 0,
  4544. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  4545. }}, {{
  4546. {::_pbi::TcParser::GetTable<::google::firestore::v1::Write>()},
  4547. }}, {{
  4548. "\41\10\0\0\0\0\0\0"
  4549. "google.firestore.v1.CommitRequest"
  4550. "database"
  4551. }},
  4552. };
  4553. ::uint8_t* CommitRequest::_InternalSerialize(
  4554. ::uint8_t* target,
  4555. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  4556. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.CommitRequest)
  4557. ::uint32_t cached_has_bits = 0;
  4558. (void)cached_has_bits;
  4559. // string database = 1;
  4560. if (!this->_internal_database().empty()) {
  4561. const std::string& _s = this->_internal_database();
  4562. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  4563. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.CommitRequest.database");
  4564. target = stream->WriteStringMaybeAliased(1, _s, target);
  4565. }
  4566. // repeated .google.firestore.v1.Write writes = 2;
  4567. for (unsigned i = 0,
  4568. n = static_cast<unsigned>(this->_internal_writes_size()); i < n; i++) {
  4569. const auto& repfield = this->_internal_writes().Get(i);
  4570. target = ::google::protobuf::internal::WireFormatLite::
  4571. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  4572. }
  4573. // bytes transaction = 3;
  4574. if (!this->_internal_transaction().empty()) {
  4575. const std::string& _s = this->_internal_transaction();
  4576. target = stream->WriteBytesMaybeAliased(3, _s, target);
  4577. }
  4578. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4579. target =
  4580. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4581. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  4582. }
  4583. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.CommitRequest)
  4584. return target;
  4585. }
  4586. ::size_t CommitRequest::ByteSizeLong() const {
  4587. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.CommitRequest)
  4588. ::size_t total_size = 0;
  4589. ::uint32_t cached_has_bits = 0;
  4590. // Prevent compiler warnings about cached_has_bits being unused
  4591. (void) cached_has_bits;
  4592. // repeated .google.firestore.v1.Write writes = 2;
  4593. total_size += 1UL * this->_internal_writes_size();
  4594. for (const auto& msg : this->_internal_writes()) {
  4595. total_size +=
  4596. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  4597. }
  4598. // string database = 1;
  4599. if (!this->_internal_database().empty()) {
  4600. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  4601. this->_internal_database());
  4602. }
  4603. // bytes transaction = 3;
  4604. if (!this->_internal_transaction().empty()) {
  4605. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  4606. this->_internal_transaction());
  4607. }
  4608. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4609. }
  4610. const ::google::protobuf::Message::ClassData CommitRequest::_class_data_ = {
  4611. CommitRequest::MergeImpl,
  4612. nullptr, // OnDemandRegisterArenaDtor
  4613. };
  4614. const ::google::protobuf::Message::ClassData* CommitRequest::GetClassData() const {
  4615. return &_class_data_;
  4616. }
  4617. void CommitRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  4618. auto* const _this = static_cast<CommitRequest*>(&to_msg);
  4619. auto& from = static_cast<const CommitRequest&>(from_msg);
  4620. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.CommitRequest)
  4621. ABSL_DCHECK_NE(&from, _this);
  4622. ::uint32_t cached_has_bits = 0;
  4623. (void) cached_has_bits;
  4624. _this->_internal_mutable_writes()->MergeFrom(
  4625. from._internal_writes());
  4626. if (!from._internal_database().empty()) {
  4627. _this->_internal_set_database(from._internal_database());
  4628. }
  4629. if (!from._internal_transaction().empty()) {
  4630. _this->_internal_set_transaction(from._internal_transaction());
  4631. }
  4632. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  4633. }
  4634. void CommitRequest::CopyFrom(const CommitRequest& from) {
  4635. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.CommitRequest)
  4636. if (&from == this) return;
  4637. Clear();
  4638. MergeFrom(from);
  4639. }
  4640. PROTOBUF_NOINLINE bool CommitRequest::IsInitialized() const {
  4641. return true;
  4642. }
  4643. ::_pbi::CachedSize* CommitRequest::AccessCachedSize() const {
  4644. return &_impl_._cached_size_;
  4645. }
  4646. void CommitRequest::InternalSwap(CommitRequest* PROTOBUF_RESTRICT other) {
  4647. using std::swap;
  4648. auto* arena = GetArena();
  4649. ABSL_DCHECK_EQ(arena, other->GetArena());
  4650. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4651. _impl_.writes_.InternalSwap(&other->_impl_.writes_);
  4652. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.database_, &other->_impl_.database_, arena);
  4653. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.transaction_, &other->_impl_.transaction_, arena);
  4654. }
  4655. ::google::protobuf::Metadata CommitRequest::GetMetadata() const {
  4656. return ::_pbi::AssignDescriptors(
  4657. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  4658. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[10]);
  4659. }
  4660. // ===================================================================
  4661. class CommitResponse::_Internal {
  4662. public:
  4663. using HasBits = decltype(std::declval<CommitResponse>()._impl_._has_bits_);
  4664. static constexpr ::int32_t kHasBitsOffset =
  4665. 8 * PROTOBUF_FIELD_OFFSET(CommitResponse, _impl_._has_bits_);
  4666. static const ::google::protobuf::Timestamp& commit_time(const CommitResponse* msg);
  4667. static void set_has_commit_time(HasBits* has_bits) {
  4668. (*has_bits)[0] |= 1u;
  4669. }
  4670. };
  4671. const ::google::protobuf::Timestamp& CommitResponse::_Internal::commit_time(const CommitResponse* msg) {
  4672. return *msg->_impl_.commit_time_;
  4673. }
  4674. void CommitResponse::clear_write_results() {
  4675. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4676. _impl_.write_results_.Clear();
  4677. }
  4678. void CommitResponse::clear_commit_time() {
  4679. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4680. if (_impl_.commit_time_ != nullptr) _impl_.commit_time_->Clear();
  4681. _impl_._has_bits_[0] &= ~0x00000001u;
  4682. }
  4683. CommitResponse::CommitResponse(::google::protobuf::Arena* arena)
  4684. : ::google::protobuf::Message(arena) {
  4685. SharedCtor(arena);
  4686. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.CommitResponse)
  4687. }
  4688. inline PROTOBUF_NDEBUG_INLINE CommitResponse::Impl_::Impl_(
  4689. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  4690. const Impl_& from)
  4691. : _has_bits_{from._has_bits_},
  4692. _cached_size_{0},
  4693. write_results_{visibility, arena, from.write_results_} {}
  4694. CommitResponse::CommitResponse(
  4695. ::google::protobuf::Arena* arena,
  4696. const CommitResponse& from)
  4697. : ::google::protobuf::Message(arena) {
  4698. CommitResponse* const _this = this;
  4699. (void)_this;
  4700. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  4701. from._internal_metadata_);
  4702. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  4703. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  4704. _impl_.commit_time_ = (cached_has_bits & 0x00000001u)
  4705. ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.commit_time_)
  4706. : nullptr;
  4707. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.CommitResponse)
  4708. }
  4709. inline PROTOBUF_NDEBUG_INLINE CommitResponse::Impl_::Impl_(
  4710. ::google::protobuf::internal::InternalVisibility visibility,
  4711. ::google::protobuf::Arena* arena)
  4712. : _cached_size_{0},
  4713. write_results_{visibility, arena} {}
  4714. inline void CommitResponse::SharedCtor(::_pb::Arena* arena) {
  4715. new (&_impl_) Impl_(internal_visibility(), arena);
  4716. _impl_.commit_time_ = {};
  4717. }
  4718. CommitResponse::~CommitResponse() {
  4719. // @@protoc_insertion_point(destructor:google.firestore.v1.CommitResponse)
  4720. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  4721. SharedDtor();
  4722. }
  4723. inline void CommitResponse::SharedDtor() {
  4724. ABSL_DCHECK(GetArena() == nullptr);
  4725. delete _impl_.commit_time_;
  4726. _impl_.~Impl_();
  4727. }
  4728. PROTOBUF_NOINLINE void CommitResponse::Clear() {
  4729. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.CommitResponse)
  4730. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4731. ::uint32_t cached_has_bits = 0;
  4732. // Prevent compiler warnings about cached_has_bits being unused
  4733. (void) cached_has_bits;
  4734. _impl_.write_results_.Clear();
  4735. cached_has_bits = _impl_._has_bits_[0];
  4736. if (cached_has_bits & 0x00000001u) {
  4737. ABSL_DCHECK(_impl_.commit_time_ != nullptr);
  4738. _impl_.commit_time_->Clear();
  4739. }
  4740. _impl_._has_bits_.Clear();
  4741. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  4742. }
  4743. const char* CommitResponse::_InternalParse(
  4744. const char* ptr, ::_pbi::ParseContext* ctx) {
  4745. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  4746. return ptr;
  4747. }
  4748. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  4749. const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CommitResponse::_table_ = {
  4750. {
  4751. PROTOBUF_FIELD_OFFSET(CommitResponse, _impl_._has_bits_),
  4752. 0, // no _extensions_
  4753. 2, 8, // max_field_number, fast_idx_mask
  4754. offsetof(decltype(_table_), field_lookup_table),
  4755. 4294967292, // skipmap
  4756. offsetof(decltype(_table_), field_entries),
  4757. 2, // num_field_entries
  4758. 2, // num_aux_entries
  4759. offsetof(decltype(_table_), aux_entries),
  4760. &_CommitResponse_default_instance_._instance,
  4761. ::_pbi::TcParser::GenericFallback, // fallback
  4762. }, {{
  4763. // .google.protobuf.Timestamp commit_time = 2;
  4764. {::_pbi::TcParser::FastMtS1,
  4765. {18, 0, 1, PROTOBUF_FIELD_OFFSET(CommitResponse, _impl_.commit_time_)}},
  4766. // repeated .google.firestore.v1.WriteResult write_results = 1;
  4767. {::_pbi::TcParser::FastMtR1,
  4768. {10, 63, 0, PROTOBUF_FIELD_OFFSET(CommitResponse, _impl_.write_results_)}},
  4769. }}, {{
  4770. 65535, 65535
  4771. }}, {{
  4772. // repeated .google.firestore.v1.WriteResult write_results = 1;
  4773. {PROTOBUF_FIELD_OFFSET(CommitResponse, _impl_.write_results_), -1, 0,
  4774. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  4775. // .google.protobuf.Timestamp commit_time = 2;
  4776. {PROTOBUF_FIELD_OFFSET(CommitResponse, _impl_.commit_time_), _Internal::kHasBitsOffset + 0, 1,
  4777. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  4778. }}, {{
  4779. {::_pbi::TcParser::GetTable<::google::firestore::v1::WriteResult>()},
  4780. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  4781. }}, {{
  4782. }},
  4783. };
  4784. ::uint8_t* CommitResponse::_InternalSerialize(
  4785. ::uint8_t* target,
  4786. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  4787. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.CommitResponse)
  4788. ::uint32_t cached_has_bits = 0;
  4789. (void)cached_has_bits;
  4790. // repeated .google.firestore.v1.WriteResult write_results = 1;
  4791. for (unsigned i = 0,
  4792. n = static_cast<unsigned>(this->_internal_write_results_size()); i < n; i++) {
  4793. const auto& repfield = this->_internal_write_results().Get(i);
  4794. target = ::google::protobuf::internal::WireFormatLite::
  4795. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  4796. }
  4797. cached_has_bits = _impl_._has_bits_[0];
  4798. // .google.protobuf.Timestamp commit_time = 2;
  4799. if (cached_has_bits & 0x00000001u) {
  4800. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  4801. 2, _Internal::commit_time(this),
  4802. _Internal::commit_time(this).GetCachedSize(), target, stream);
  4803. }
  4804. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4805. target =
  4806. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4807. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  4808. }
  4809. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.CommitResponse)
  4810. return target;
  4811. }
  4812. ::size_t CommitResponse::ByteSizeLong() const {
  4813. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.CommitResponse)
  4814. ::size_t total_size = 0;
  4815. ::uint32_t cached_has_bits = 0;
  4816. // Prevent compiler warnings about cached_has_bits being unused
  4817. (void) cached_has_bits;
  4818. // repeated .google.firestore.v1.WriteResult write_results = 1;
  4819. total_size += 1UL * this->_internal_write_results_size();
  4820. for (const auto& msg : this->_internal_write_results()) {
  4821. total_size +=
  4822. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  4823. }
  4824. // .google.protobuf.Timestamp commit_time = 2;
  4825. cached_has_bits = _impl_._has_bits_[0];
  4826. if (cached_has_bits & 0x00000001u) {
  4827. total_size +=
  4828. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.commit_time_);
  4829. }
  4830. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4831. }
  4832. const ::google::protobuf::Message::ClassData CommitResponse::_class_data_ = {
  4833. CommitResponse::MergeImpl,
  4834. nullptr, // OnDemandRegisterArenaDtor
  4835. };
  4836. const ::google::protobuf::Message::ClassData* CommitResponse::GetClassData() const {
  4837. return &_class_data_;
  4838. }
  4839. void CommitResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  4840. auto* const _this = static_cast<CommitResponse*>(&to_msg);
  4841. auto& from = static_cast<const CommitResponse&>(from_msg);
  4842. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.CommitResponse)
  4843. ABSL_DCHECK_NE(&from, _this);
  4844. ::uint32_t cached_has_bits = 0;
  4845. (void) cached_has_bits;
  4846. _this->_internal_mutable_write_results()->MergeFrom(
  4847. from._internal_write_results());
  4848. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  4849. _this->_internal_mutable_commit_time()->::google::protobuf::Timestamp::MergeFrom(
  4850. from._internal_commit_time());
  4851. }
  4852. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  4853. }
  4854. void CommitResponse::CopyFrom(const CommitResponse& from) {
  4855. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.CommitResponse)
  4856. if (&from == this) return;
  4857. Clear();
  4858. MergeFrom(from);
  4859. }
  4860. PROTOBUF_NOINLINE bool CommitResponse::IsInitialized() const {
  4861. return true;
  4862. }
  4863. ::_pbi::CachedSize* CommitResponse::AccessCachedSize() const {
  4864. return &_impl_._cached_size_;
  4865. }
  4866. void CommitResponse::InternalSwap(CommitResponse* PROTOBUF_RESTRICT other) {
  4867. using std::swap;
  4868. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4869. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  4870. _impl_.write_results_.InternalSwap(&other->_impl_.write_results_);
  4871. swap(_impl_.commit_time_, other->_impl_.commit_time_);
  4872. }
  4873. ::google::protobuf::Metadata CommitResponse::GetMetadata() const {
  4874. return ::_pbi::AssignDescriptors(
  4875. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  4876. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[11]);
  4877. }
  4878. // ===================================================================
  4879. class RollbackRequest::_Internal {
  4880. public:
  4881. };
  4882. RollbackRequest::RollbackRequest(::google::protobuf::Arena* arena)
  4883. : ::google::protobuf::Message(arena) {
  4884. SharedCtor(arena);
  4885. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.RollbackRequest)
  4886. }
  4887. inline PROTOBUF_NDEBUG_INLINE RollbackRequest::Impl_::Impl_(
  4888. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  4889. const Impl_& from)
  4890. : database_(arena, from.database_),
  4891. transaction_(arena, from.transaction_),
  4892. _cached_size_{0} {}
  4893. RollbackRequest::RollbackRequest(
  4894. ::google::protobuf::Arena* arena,
  4895. const RollbackRequest& from)
  4896. : ::google::protobuf::Message(arena) {
  4897. RollbackRequest* const _this = this;
  4898. (void)_this;
  4899. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  4900. from._internal_metadata_);
  4901. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  4902. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.RollbackRequest)
  4903. }
  4904. inline PROTOBUF_NDEBUG_INLINE RollbackRequest::Impl_::Impl_(
  4905. ::google::protobuf::internal::InternalVisibility visibility,
  4906. ::google::protobuf::Arena* arena)
  4907. : database_(arena),
  4908. transaction_(arena),
  4909. _cached_size_{0} {}
  4910. inline void RollbackRequest::SharedCtor(::_pb::Arena* arena) {
  4911. new (&_impl_) Impl_(internal_visibility(), arena);
  4912. }
  4913. RollbackRequest::~RollbackRequest() {
  4914. // @@protoc_insertion_point(destructor:google.firestore.v1.RollbackRequest)
  4915. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  4916. SharedDtor();
  4917. }
  4918. inline void RollbackRequest::SharedDtor() {
  4919. ABSL_DCHECK(GetArena() == nullptr);
  4920. _impl_.database_.Destroy();
  4921. _impl_.transaction_.Destroy();
  4922. _impl_.~Impl_();
  4923. }
  4924. PROTOBUF_NOINLINE void RollbackRequest::Clear() {
  4925. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.RollbackRequest)
  4926. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4927. ::uint32_t cached_has_bits = 0;
  4928. // Prevent compiler warnings about cached_has_bits being unused
  4929. (void) cached_has_bits;
  4930. _impl_.database_.ClearToEmpty();
  4931. _impl_.transaction_.ClearToEmpty();
  4932. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  4933. }
  4934. const char* RollbackRequest::_InternalParse(
  4935. const char* ptr, ::_pbi::ParseContext* ctx) {
  4936. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  4937. return ptr;
  4938. }
  4939. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  4940. const ::_pbi::TcParseTable<1, 2, 0, 52, 2> RollbackRequest::_table_ = {
  4941. {
  4942. 0, // no _has_bits_
  4943. 0, // no _extensions_
  4944. 2, 8, // max_field_number, fast_idx_mask
  4945. offsetof(decltype(_table_), field_lookup_table),
  4946. 4294967292, // skipmap
  4947. offsetof(decltype(_table_), field_entries),
  4948. 2, // num_field_entries
  4949. 0, // num_aux_entries
  4950. offsetof(decltype(_table_), field_names), // no aux_entries
  4951. &_RollbackRequest_default_instance_._instance,
  4952. ::_pbi::TcParser::GenericFallback, // fallback
  4953. }, {{
  4954. // bytes transaction = 2;
  4955. {::_pbi::TcParser::FastBS1,
  4956. {18, 63, 0, PROTOBUF_FIELD_OFFSET(RollbackRequest, _impl_.transaction_)}},
  4957. // string database = 1;
  4958. {::_pbi::TcParser::FastUS1,
  4959. {10, 63, 0, PROTOBUF_FIELD_OFFSET(RollbackRequest, _impl_.database_)}},
  4960. }}, {{
  4961. 65535, 65535
  4962. }}, {{
  4963. // string database = 1;
  4964. {PROTOBUF_FIELD_OFFSET(RollbackRequest, _impl_.database_), 0, 0,
  4965. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  4966. // bytes transaction = 2;
  4967. {PROTOBUF_FIELD_OFFSET(RollbackRequest, _impl_.transaction_), 0, 0,
  4968. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  4969. }},
  4970. // no aux_entries
  4971. {{
  4972. "\43\10\0\0\0\0\0\0"
  4973. "google.firestore.v1.RollbackRequest"
  4974. "database"
  4975. }},
  4976. };
  4977. ::uint8_t* RollbackRequest::_InternalSerialize(
  4978. ::uint8_t* target,
  4979. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  4980. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.RollbackRequest)
  4981. ::uint32_t cached_has_bits = 0;
  4982. (void)cached_has_bits;
  4983. // string database = 1;
  4984. if (!this->_internal_database().empty()) {
  4985. const std::string& _s = this->_internal_database();
  4986. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  4987. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.RollbackRequest.database");
  4988. target = stream->WriteStringMaybeAliased(1, _s, target);
  4989. }
  4990. // bytes transaction = 2;
  4991. if (!this->_internal_transaction().empty()) {
  4992. const std::string& _s = this->_internal_transaction();
  4993. target = stream->WriteBytesMaybeAliased(2, _s, target);
  4994. }
  4995. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4996. target =
  4997. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4998. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  4999. }
  5000. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.RollbackRequest)
  5001. return target;
  5002. }
  5003. ::size_t RollbackRequest::ByteSizeLong() const {
  5004. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.RollbackRequest)
  5005. ::size_t total_size = 0;
  5006. ::uint32_t cached_has_bits = 0;
  5007. // Prevent compiler warnings about cached_has_bits being unused
  5008. (void) cached_has_bits;
  5009. // string database = 1;
  5010. if (!this->_internal_database().empty()) {
  5011. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  5012. this->_internal_database());
  5013. }
  5014. // bytes transaction = 2;
  5015. if (!this->_internal_transaction().empty()) {
  5016. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  5017. this->_internal_transaction());
  5018. }
  5019. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  5020. }
  5021. const ::google::protobuf::Message::ClassData RollbackRequest::_class_data_ = {
  5022. RollbackRequest::MergeImpl,
  5023. nullptr, // OnDemandRegisterArenaDtor
  5024. };
  5025. const ::google::protobuf::Message::ClassData* RollbackRequest::GetClassData() const {
  5026. return &_class_data_;
  5027. }
  5028. void RollbackRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  5029. auto* const _this = static_cast<RollbackRequest*>(&to_msg);
  5030. auto& from = static_cast<const RollbackRequest&>(from_msg);
  5031. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.RollbackRequest)
  5032. ABSL_DCHECK_NE(&from, _this);
  5033. ::uint32_t cached_has_bits = 0;
  5034. (void) cached_has_bits;
  5035. if (!from._internal_database().empty()) {
  5036. _this->_internal_set_database(from._internal_database());
  5037. }
  5038. if (!from._internal_transaction().empty()) {
  5039. _this->_internal_set_transaction(from._internal_transaction());
  5040. }
  5041. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  5042. }
  5043. void RollbackRequest::CopyFrom(const RollbackRequest& from) {
  5044. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.RollbackRequest)
  5045. if (&from == this) return;
  5046. Clear();
  5047. MergeFrom(from);
  5048. }
  5049. PROTOBUF_NOINLINE bool RollbackRequest::IsInitialized() const {
  5050. return true;
  5051. }
  5052. ::_pbi::CachedSize* RollbackRequest::AccessCachedSize() const {
  5053. return &_impl_._cached_size_;
  5054. }
  5055. void RollbackRequest::InternalSwap(RollbackRequest* PROTOBUF_RESTRICT other) {
  5056. using std::swap;
  5057. auto* arena = GetArena();
  5058. ABSL_DCHECK_EQ(arena, other->GetArena());
  5059. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5060. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.database_, &other->_impl_.database_, arena);
  5061. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.transaction_, &other->_impl_.transaction_, arena);
  5062. }
  5063. ::google::protobuf::Metadata RollbackRequest::GetMetadata() const {
  5064. return ::_pbi::AssignDescriptors(
  5065. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  5066. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[12]);
  5067. }
  5068. // ===================================================================
  5069. class RunQueryRequest::_Internal {
  5070. public:
  5071. static constexpr ::int32_t kOneofCaseOffset =
  5072. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunQueryRequest, _impl_._oneof_case_);
  5073. static const ::google::firestore::v1::StructuredQuery& structured_query(const RunQueryRequest* msg);
  5074. static const ::google::firestore::v1::TransactionOptions& new_transaction(const RunQueryRequest* msg);
  5075. static const ::google::protobuf::Timestamp& read_time(const RunQueryRequest* msg);
  5076. };
  5077. const ::google::firestore::v1::StructuredQuery& RunQueryRequest::_Internal::structured_query(const RunQueryRequest* msg) {
  5078. return *msg->_impl_.query_type_.structured_query_;
  5079. }
  5080. const ::google::firestore::v1::TransactionOptions& RunQueryRequest::_Internal::new_transaction(const RunQueryRequest* msg) {
  5081. return *msg->_impl_.consistency_selector_.new_transaction_;
  5082. }
  5083. const ::google::protobuf::Timestamp& RunQueryRequest::_Internal::read_time(const RunQueryRequest* msg) {
  5084. return *msg->_impl_.consistency_selector_.read_time_;
  5085. }
  5086. void RunQueryRequest::set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query) {
  5087. ::google::protobuf::Arena* message_arena = GetArena();
  5088. clear_query_type();
  5089. if (structured_query) {
  5090. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(structured_query)->GetArena();
  5091. if (message_arena != submessage_arena) {
  5092. structured_query = ::google::protobuf::internal::GetOwnedMessage(message_arena, structured_query, submessage_arena);
  5093. }
  5094. set_has_structured_query();
  5095. _impl_.query_type_.structured_query_ = structured_query;
  5096. }
  5097. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.structured_query)
  5098. }
  5099. void RunQueryRequest::clear_structured_query() {
  5100. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5101. if (query_type_case() == kStructuredQuery) {
  5102. if (GetArena() == nullptr) {
  5103. delete _impl_.query_type_.structured_query_;
  5104. }
  5105. clear_has_query_type();
  5106. }
  5107. }
  5108. void RunQueryRequest::set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction) {
  5109. ::google::protobuf::Arena* message_arena = GetArena();
  5110. clear_consistency_selector();
  5111. if (new_transaction) {
  5112. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(new_transaction)->GetArena();
  5113. if (message_arena != submessage_arena) {
  5114. new_transaction = ::google::protobuf::internal::GetOwnedMessage(message_arena, new_transaction, submessage_arena);
  5115. }
  5116. set_has_new_transaction();
  5117. _impl_.consistency_selector_.new_transaction_ = new_transaction;
  5118. }
  5119. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.new_transaction)
  5120. }
  5121. void RunQueryRequest::clear_new_transaction() {
  5122. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5123. if (consistency_selector_case() == kNewTransaction) {
  5124. if (GetArena() == nullptr) {
  5125. delete _impl_.consistency_selector_.new_transaction_;
  5126. }
  5127. clear_has_consistency_selector();
  5128. }
  5129. }
  5130. void RunQueryRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
  5131. ::google::protobuf::Arena* message_arena = GetArena();
  5132. clear_consistency_selector();
  5133. if (read_time) {
  5134. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(read_time)->GetArena();
  5135. if (message_arena != submessage_arena) {
  5136. read_time = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_time, submessage_arena);
  5137. }
  5138. set_has_read_time();
  5139. _impl_.consistency_selector_.read_time_ = read_time;
  5140. }
  5141. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.read_time)
  5142. }
  5143. void RunQueryRequest::clear_read_time() {
  5144. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5145. if (consistency_selector_case() == kReadTime) {
  5146. if (GetArena() == nullptr) {
  5147. delete _impl_.consistency_selector_.read_time_;
  5148. }
  5149. clear_has_consistency_selector();
  5150. }
  5151. }
  5152. RunQueryRequest::RunQueryRequest(::google::protobuf::Arena* arena)
  5153. : ::google::protobuf::Message(arena) {
  5154. SharedCtor(arena);
  5155. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.RunQueryRequest)
  5156. }
  5157. inline PROTOBUF_NDEBUG_INLINE RunQueryRequest::Impl_::Impl_(
  5158. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  5159. const Impl_& from)
  5160. : parent_(arena, from.parent_),
  5161. query_type_{},
  5162. consistency_selector_{},
  5163. _cached_size_{0},
  5164. _oneof_case_{from._oneof_case_[0], from._oneof_case_[1]} {}
  5165. RunQueryRequest::RunQueryRequest(
  5166. ::google::protobuf::Arena* arena,
  5167. const RunQueryRequest& from)
  5168. : ::google::protobuf::Message(arena) {
  5169. RunQueryRequest* const _this = this;
  5170. (void)_this;
  5171. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  5172. from._internal_metadata_);
  5173. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  5174. switch (query_type_case()) {
  5175. case QUERY_TYPE_NOT_SET:
  5176. break;
  5177. case kStructuredQuery:
  5178. _impl_.query_type_.structured_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery>(arena, *from._impl_.query_type_.structured_query_);
  5179. break;
  5180. }
  5181. switch (consistency_selector_case()) {
  5182. case CONSISTENCY_SELECTOR_NOT_SET:
  5183. break;
  5184. case kTransaction:
  5185. new (&_impl_.consistency_selector_.transaction_) decltype(_impl_.consistency_selector_.transaction_){arena, from._impl_.consistency_selector_.transaction_};
  5186. break;
  5187. case kNewTransaction:
  5188. _impl_.consistency_selector_.new_transaction_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(arena, *from._impl_.consistency_selector_.new_transaction_);
  5189. break;
  5190. case kReadTime:
  5191. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.consistency_selector_.read_time_);
  5192. break;
  5193. }
  5194. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.RunQueryRequest)
  5195. }
  5196. inline PROTOBUF_NDEBUG_INLINE RunQueryRequest::Impl_::Impl_(
  5197. ::google::protobuf::internal::InternalVisibility visibility,
  5198. ::google::protobuf::Arena* arena)
  5199. : parent_(arena),
  5200. query_type_{},
  5201. consistency_selector_{},
  5202. _cached_size_{0},
  5203. _oneof_case_{} {}
  5204. inline void RunQueryRequest::SharedCtor(::_pb::Arena* arena) {
  5205. new (&_impl_) Impl_(internal_visibility(), arena);
  5206. }
  5207. RunQueryRequest::~RunQueryRequest() {
  5208. // @@protoc_insertion_point(destructor:google.firestore.v1.RunQueryRequest)
  5209. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  5210. SharedDtor();
  5211. }
  5212. inline void RunQueryRequest::SharedDtor() {
  5213. ABSL_DCHECK(GetArena() == nullptr);
  5214. _impl_.parent_.Destroy();
  5215. if (has_query_type()) {
  5216. clear_query_type();
  5217. }
  5218. if (has_consistency_selector()) {
  5219. clear_consistency_selector();
  5220. }
  5221. _impl_.~Impl_();
  5222. }
  5223. void RunQueryRequest::clear_query_type() {
  5224. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.RunQueryRequest)
  5225. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5226. switch (query_type_case()) {
  5227. case kStructuredQuery: {
  5228. if (GetArena() == nullptr) {
  5229. delete _impl_.query_type_.structured_query_;
  5230. }
  5231. break;
  5232. }
  5233. case QUERY_TYPE_NOT_SET: {
  5234. break;
  5235. }
  5236. }
  5237. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  5238. }
  5239. void RunQueryRequest::clear_consistency_selector() {
  5240. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.RunQueryRequest)
  5241. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5242. switch (consistency_selector_case()) {
  5243. case kTransaction: {
  5244. _impl_.consistency_selector_.transaction_.Destroy();
  5245. break;
  5246. }
  5247. case kNewTransaction: {
  5248. if (GetArena() == nullptr) {
  5249. delete _impl_.consistency_selector_.new_transaction_;
  5250. }
  5251. break;
  5252. }
  5253. case kReadTime: {
  5254. if (GetArena() == nullptr) {
  5255. delete _impl_.consistency_selector_.read_time_;
  5256. }
  5257. break;
  5258. }
  5259. case CONSISTENCY_SELECTOR_NOT_SET: {
  5260. break;
  5261. }
  5262. }
  5263. _impl_._oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  5264. }
  5265. PROTOBUF_NOINLINE void RunQueryRequest::Clear() {
  5266. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.RunQueryRequest)
  5267. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5268. ::uint32_t cached_has_bits = 0;
  5269. // Prevent compiler warnings about cached_has_bits being unused
  5270. (void) cached_has_bits;
  5271. _impl_.parent_.ClearToEmpty();
  5272. clear_query_type();
  5273. clear_consistency_selector();
  5274. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  5275. }
  5276. const char* RunQueryRequest::_InternalParse(
  5277. const char* ptr, ::_pbi::ParseContext* ctx) {
  5278. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  5279. return ptr;
  5280. }
  5281. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  5282. const ::_pbi::TcParseTable<0, 5, 3, 50, 2> RunQueryRequest::_table_ = {
  5283. {
  5284. 0, // no _has_bits_
  5285. 0, // no _extensions_
  5286. 7, 0, // max_field_number, fast_idx_mask
  5287. offsetof(decltype(_table_), field_lookup_table),
  5288. 4294967180, // skipmap
  5289. offsetof(decltype(_table_), field_entries),
  5290. 5, // num_field_entries
  5291. 3, // num_aux_entries
  5292. offsetof(decltype(_table_), aux_entries),
  5293. &_RunQueryRequest_default_instance_._instance,
  5294. ::_pbi::TcParser::GenericFallback, // fallback
  5295. }, {{
  5296. // string parent = 1;
  5297. {::_pbi::TcParser::FastUS1,
  5298. {10, 63, 0, PROTOBUF_FIELD_OFFSET(RunQueryRequest, _impl_.parent_)}},
  5299. }}, {{
  5300. 65535, 65535
  5301. }}, {{
  5302. // string parent = 1;
  5303. {PROTOBUF_FIELD_OFFSET(RunQueryRequest, _impl_.parent_), 0, 0,
  5304. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  5305. // .google.firestore.v1.StructuredQuery structured_query = 2;
  5306. {PROTOBUF_FIELD_OFFSET(RunQueryRequest, _impl_.query_type_.structured_query_), _Internal::kOneofCaseOffset + 0, 0,
  5307. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  5308. // bytes transaction = 5;
  5309. {PROTOBUF_FIELD_OFFSET(RunQueryRequest, _impl_.consistency_selector_.transaction_), _Internal::kOneofCaseOffset + 4, 0,
  5310. (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
  5311. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  5312. {PROTOBUF_FIELD_OFFSET(RunQueryRequest, _impl_.consistency_selector_.new_transaction_), _Internal::kOneofCaseOffset + 4, 1,
  5313. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  5314. // .google.protobuf.Timestamp read_time = 7;
  5315. {PROTOBUF_FIELD_OFFSET(RunQueryRequest, _impl_.consistency_selector_.read_time_), _Internal::kOneofCaseOffset + 4, 2,
  5316. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  5317. }}, {{
  5318. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery>()},
  5319. {::_pbi::TcParser::GetTable<::google::firestore::v1::TransactionOptions>()},
  5320. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  5321. }}, {{
  5322. "\43\6\0\0\0\0\0\0"
  5323. "google.firestore.v1.RunQueryRequest"
  5324. "parent"
  5325. }},
  5326. };
  5327. ::uint8_t* RunQueryRequest::_InternalSerialize(
  5328. ::uint8_t* target,
  5329. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  5330. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.RunQueryRequest)
  5331. ::uint32_t cached_has_bits = 0;
  5332. (void)cached_has_bits;
  5333. // string parent = 1;
  5334. if (!this->_internal_parent().empty()) {
  5335. const std::string& _s = this->_internal_parent();
  5336. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  5337. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.RunQueryRequest.parent");
  5338. target = stream->WriteStringMaybeAliased(1, _s, target);
  5339. }
  5340. // .google.firestore.v1.StructuredQuery structured_query = 2;
  5341. if (query_type_case() == kStructuredQuery) {
  5342. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  5343. 2, _Internal::structured_query(this),
  5344. _Internal::structured_query(this).GetCachedSize(), target, stream);
  5345. }
  5346. switch (consistency_selector_case()) {
  5347. case kTransaction: {
  5348. const std::string& _s = this->_internal_transaction();
  5349. target = stream->WriteBytesMaybeAliased(5, _s, target);
  5350. break;
  5351. }
  5352. case kNewTransaction: {
  5353. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  5354. 6, _Internal::new_transaction(this),
  5355. _Internal::new_transaction(this).GetCachedSize(), target, stream);
  5356. break;
  5357. }
  5358. case kReadTime: {
  5359. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  5360. 7, _Internal::read_time(this),
  5361. _Internal::read_time(this).GetCachedSize(), target, stream);
  5362. break;
  5363. }
  5364. default:
  5365. break;
  5366. }
  5367. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5368. target =
  5369. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  5370. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  5371. }
  5372. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.RunQueryRequest)
  5373. return target;
  5374. }
  5375. ::size_t RunQueryRequest::ByteSizeLong() const {
  5376. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.RunQueryRequest)
  5377. ::size_t total_size = 0;
  5378. ::uint32_t cached_has_bits = 0;
  5379. // Prevent compiler warnings about cached_has_bits being unused
  5380. (void) cached_has_bits;
  5381. // string parent = 1;
  5382. if (!this->_internal_parent().empty()) {
  5383. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  5384. this->_internal_parent());
  5385. }
  5386. switch (query_type_case()) {
  5387. // .google.firestore.v1.StructuredQuery structured_query = 2;
  5388. case kStructuredQuery: {
  5389. total_size +=
  5390. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.query_type_.structured_query_);
  5391. break;
  5392. }
  5393. case QUERY_TYPE_NOT_SET: {
  5394. break;
  5395. }
  5396. }
  5397. switch (consistency_selector_case()) {
  5398. // bytes transaction = 5;
  5399. case kTransaction: {
  5400. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  5401. this->_internal_transaction());
  5402. break;
  5403. }
  5404. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  5405. case kNewTransaction: {
  5406. total_size +=
  5407. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.new_transaction_);
  5408. break;
  5409. }
  5410. // .google.protobuf.Timestamp read_time = 7;
  5411. case kReadTime: {
  5412. total_size +=
  5413. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.read_time_);
  5414. break;
  5415. }
  5416. case CONSISTENCY_SELECTOR_NOT_SET: {
  5417. break;
  5418. }
  5419. }
  5420. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  5421. }
  5422. const ::google::protobuf::Message::ClassData RunQueryRequest::_class_data_ = {
  5423. RunQueryRequest::MergeImpl,
  5424. nullptr, // OnDemandRegisterArenaDtor
  5425. };
  5426. const ::google::protobuf::Message::ClassData* RunQueryRequest::GetClassData() const {
  5427. return &_class_data_;
  5428. }
  5429. void RunQueryRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  5430. auto* const _this = static_cast<RunQueryRequest*>(&to_msg);
  5431. auto& from = static_cast<const RunQueryRequest&>(from_msg);
  5432. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.RunQueryRequest)
  5433. ABSL_DCHECK_NE(&from, _this);
  5434. ::uint32_t cached_has_bits = 0;
  5435. (void) cached_has_bits;
  5436. if (!from._internal_parent().empty()) {
  5437. _this->_internal_set_parent(from._internal_parent());
  5438. }
  5439. switch (from.query_type_case()) {
  5440. case kStructuredQuery: {
  5441. _this->_internal_mutable_structured_query()->::google::firestore::v1::StructuredQuery::MergeFrom(
  5442. from._internal_structured_query());
  5443. break;
  5444. }
  5445. case QUERY_TYPE_NOT_SET: {
  5446. break;
  5447. }
  5448. }
  5449. switch (from.consistency_selector_case()) {
  5450. case kTransaction: {
  5451. _this->_internal_set_transaction(from._internal_transaction());
  5452. break;
  5453. }
  5454. case kNewTransaction: {
  5455. _this->_internal_mutable_new_transaction()->::google::firestore::v1::TransactionOptions::MergeFrom(
  5456. from._internal_new_transaction());
  5457. break;
  5458. }
  5459. case kReadTime: {
  5460. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  5461. from._internal_read_time());
  5462. break;
  5463. }
  5464. case CONSISTENCY_SELECTOR_NOT_SET: {
  5465. break;
  5466. }
  5467. }
  5468. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  5469. }
  5470. void RunQueryRequest::CopyFrom(const RunQueryRequest& from) {
  5471. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.RunQueryRequest)
  5472. if (&from == this) return;
  5473. Clear();
  5474. MergeFrom(from);
  5475. }
  5476. PROTOBUF_NOINLINE bool RunQueryRequest::IsInitialized() const {
  5477. return true;
  5478. }
  5479. ::_pbi::CachedSize* RunQueryRequest::AccessCachedSize() const {
  5480. return &_impl_._cached_size_;
  5481. }
  5482. void RunQueryRequest::InternalSwap(RunQueryRequest* PROTOBUF_RESTRICT other) {
  5483. using std::swap;
  5484. auto* arena = GetArena();
  5485. ABSL_DCHECK_EQ(arena, other->GetArena());
  5486. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5487. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_, &other->_impl_.parent_, arena);
  5488. swap(_impl_.query_type_, other->_impl_.query_type_);
  5489. swap(_impl_.consistency_selector_, other->_impl_.consistency_selector_);
  5490. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  5491. swap(_impl_._oneof_case_[1], other->_impl_._oneof_case_[1]);
  5492. }
  5493. ::google::protobuf::Metadata RunQueryRequest::GetMetadata() const {
  5494. return ::_pbi::AssignDescriptors(
  5495. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  5496. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[13]);
  5497. }
  5498. // ===================================================================
  5499. class RunQueryResponse::_Internal {
  5500. public:
  5501. using HasBits = decltype(std::declval<RunQueryResponse>()._impl_._has_bits_);
  5502. static constexpr ::int32_t kHasBitsOffset =
  5503. 8 * PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_._has_bits_);
  5504. static const ::google::firestore::v1::Document& document(const RunQueryResponse* msg);
  5505. static void set_has_document(HasBits* has_bits) {
  5506. (*has_bits)[0] |= 1u;
  5507. }
  5508. static const ::google::protobuf::Timestamp& read_time(const RunQueryResponse* msg);
  5509. static void set_has_read_time(HasBits* has_bits) {
  5510. (*has_bits)[0] |= 2u;
  5511. }
  5512. };
  5513. const ::google::firestore::v1::Document& RunQueryResponse::_Internal::document(const RunQueryResponse* msg) {
  5514. return *msg->_impl_.document_;
  5515. }
  5516. const ::google::protobuf::Timestamp& RunQueryResponse::_Internal::read_time(const RunQueryResponse* msg) {
  5517. return *msg->_impl_.read_time_;
  5518. }
  5519. void RunQueryResponse::clear_document() {
  5520. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5521. if (_impl_.document_ != nullptr) _impl_.document_->Clear();
  5522. _impl_._has_bits_[0] &= ~0x00000001u;
  5523. }
  5524. void RunQueryResponse::clear_read_time() {
  5525. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5526. if (_impl_.read_time_ != nullptr) _impl_.read_time_->Clear();
  5527. _impl_._has_bits_[0] &= ~0x00000002u;
  5528. }
  5529. RunQueryResponse::RunQueryResponse(::google::protobuf::Arena* arena)
  5530. : ::google::protobuf::Message(arena) {
  5531. SharedCtor(arena);
  5532. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.RunQueryResponse)
  5533. }
  5534. inline PROTOBUF_NDEBUG_INLINE RunQueryResponse::Impl_::Impl_(
  5535. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  5536. const Impl_& from)
  5537. : _has_bits_{from._has_bits_},
  5538. _cached_size_{0},
  5539. transaction_(arena, from.transaction_) {}
  5540. RunQueryResponse::RunQueryResponse(
  5541. ::google::protobuf::Arena* arena,
  5542. const RunQueryResponse& from)
  5543. : ::google::protobuf::Message(arena) {
  5544. RunQueryResponse* const _this = this;
  5545. (void)_this;
  5546. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  5547. from._internal_metadata_);
  5548. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  5549. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  5550. _impl_.document_ = (cached_has_bits & 0x00000001u)
  5551. ? CreateMaybeMessage<::google::firestore::v1::Document>(arena, *from._impl_.document_)
  5552. : nullptr;
  5553. _impl_.read_time_ = (cached_has_bits & 0x00000002u)
  5554. ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.read_time_)
  5555. : nullptr;
  5556. _impl_.skipped_results_ = from._impl_.skipped_results_;
  5557. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.RunQueryResponse)
  5558. }
  5559. inline PROTOBUF_NDEBUG_INLINE RunQueryResponse::Impl_::Impl_(
  5560. ::google::protobuf::internal::InternalVisibility visibility,
  5561. ::google::protobuf::Arena* arena)
  5562. : _cached_size_{0},
  5563. transaction_(arena) {}
  5564. inline void RunQueryResponse::SharedCtor(::_pb::Arena* arena) {
  5565. new (&_impl_) Impl_(internal_visibility(), arena);
  5566. ::memset(reinterpret_cast<char *>(&_impl_) +
  5567. offsetof(Impl_, document_),
  5568. 0,
  5569. offsetof(Impl_, skipped_results_) -
  5570. offsetof(Impl_, document_) +
  5571. sizeof(Impl_::skipped_results_));
  5572. }
  5573. RunQueryResponse::~RunQueryResponse() {
  5574. // @@protoc_insertion_point(destructor:google.firestore.v1.RunQueryResponse)
  5575. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  5576. SharedDtor();
  5577. }
  5578. inline void RunQueryResponse::SharedDtor() {
  5579. ABSL_DCHECK(GetArena() == nullptr);
  5580. _impl_.transaction_.Destroy();
  5581. delete _impl_.document_;
  5582. delete _impl_.read_time_;
  5583. _impl_.~Impl_();
  5584. }
  5585. PROTOBUF_NOINLINE void RunQueryResponse::Clear() {
  5586. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.RunQueryResponse)
  5587. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5588. ::uint32_t cached_has_bits = 0;
  5589. // Prevent compiler warnings about cached_has_bits being unused
  5590. (void) cached_has_bits;
  5591. _impl_.transaction_.ClearToEmpty();
  5592. cached_has_bits = _impl_._has_bits_[0];
  5593. if (cached_has_bits & 0x00000003u) {
  5594. if (cached_has_bits & 0x00000001u) {
  5595. ABSL_DCHECK(_impl_.document_ != nullptr);
  5596. _impl_.document_->Clear();
  5597. }
  5598. if (cached_has_bits & 0x00000002u) {
  5599. ABSL_DCHECK(_impl_.read_time_ != nullptr);
  5600. _impl_.read_time_->Clear();
  5601. }
  5602. }
  5603. _impl_.skipped_results_ = 0;
  5604. _impl_._has_bits_.Clear();
  5605. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  5606. }
  5607. const char* RunQueryResponse::_InternalParse(
  5608. const char* ptr, ::_pbi::ParseContext* ctx) {
  5609. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  5610. return ptr;
  5611. }
  5612. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  5613. const ::_pbi::TcParseTable<2, 4, 2, 0, 2> RunQueryResponse::_table_ = {
  5614. {
  5615. PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_._has_bits_),
  5616. 0, // no _extensions_
  5617. 4, 24, // max_field_number, fast_idx_mask
  5618. offsetof(decltype(_table_), field_lookup_table),
  5619. 4294967280, // skipmap
  5620. offsetof(decltype(_table_), field_entries),
  5621. 4, // num_field_entries
  5622. 2, // num_aux_entries
  5623. offsetof(decltype(_table_), aux_entries),
  5624. &_RunQueryResponse_default_instance_._instance,
  5625. ::_pbi::TcParser::GenericFallback, // fallback
  5626. }, {{
  5627. // int32 skipped_results = 4;
  5628. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RunQueryResponse, _impl_.skipped_results_), 63>(),
  5629. {32, 63, 0, PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.skipped_results_)}},
  5630. // .google.firestore.v1.Document document = 1;
  5631. {::_pbi::TcParser::FastMtS1,
  5632. {10, 0, 0, PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.document_)}},
  5633. // bytes transaction = 2;
  5634. {::_pbi::TcParser::FastBS1,
  5635. {18, 63, 0, PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.transaction_)}},
  5636. // .google.protobuf.Timestamp read_time = 3;
  5637. {::_pbi::TcParser::FastMtS1,
  5638. {26, 1, 1, PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.read_time_)}},
  5639. }}, {{
  5640. 65535, 65535
  5641. }}, {{
  5642. // .google.firestore.v1.Document document = 1;
  5643. {PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.document_), _Internal::kHasBitsOffset + 0, 0,
  5644. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  5645. // bytes transaction = 2;
  5646. {PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.transaction_), -1, 0,
  5647. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  5648. // .google.protobuf.Timestamp read_time = 3;
  5649. {PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.read_time_), _Internal::kHasBitsOffset + 1, 1,
  5650. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  5651. // int32 skipped_results = 4;
  5652. {PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.skipped_results_), -1, 0,
  5653. (0 | ::_fl::kFcSingular | ::_fl::kInt32)},
  5654. }}, {{
  5655. {::_pbi::TcParser::GetTable<::google::firestore::v1::Document>()},
  5656. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  5657. }}, {{
  5658. }},
  5659. };
  5660. ::uint8_t* RunQueryResponse::_InternalSerialize(
  5661. ::uint8_t* target,
  5662. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  5663. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.RunQueryResponse)
  5664. ::uint32_t cached_has_bits = 0;
  5665. (void)cached_has_bits;
  5666. cached_has_bits = _impl_._has_bits_[0];
  5667. // .google.firestore.v1.Document document = 1;
  5668. if (cached_has_bits & 0x00000001u) {
  5669. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  5670. 1, _Internal::document(this),
  5671. _Internal::document(this).GetCachedSize(), target, stream);
  5672. }
  5673. // bytes transaction = 2;
  5674. if (!this->_internal_transaction().empty()) {
  5675. const std::string& _s = this->_internal_transaction();
  5676. target = stream->WriteBytesMaybeAliased(2, _s, target);
  5677. }
  5678. // .google.protobuf.Timestamp read_time = 3;
  5679. if (cached_has_bits & 0x00000002u) {
  5680. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  5681. 3, _Internal::read_time(this),
  5682. _Internal::read_time(this).GetCachedSize(), target, stream);
  5683. }
  5684. // int32 skipped_results = 4;
  5685. if (this->_internal_skipped_results() != 0) {
  5686. target = ::google::protobuf::internal::WireFormatLite::
  5687. WriteInt32ToArrayWithField<4>(
  5688. stream, this->_internal_skipped_results(), target);
  5689. }
  5690. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5691. target =
  5692. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  5693. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  5694. }
  5695. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.RunQueryResponse)
  5696. return target;
  5697. }
  5698. ::size_t RunQueryResponse::ByteSizeLong() const {
  5699. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.RunQueryResponse)
  5700. ::size_t total_size = 0;
  5701. ::uint32_t cached_has_bits = 0;
  5702. // Prevent compiler warnings about cached_has_bits being unused
  5703. (void) cached_has_bits;
  5704. // bytes transaction = 2;
  5705. if (!this->_internal_transaction().empty()) {
  5706. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  5707. this->_internal_transaction());
  5708. }
  5709. cached_has_bits = _impl_._has_bits_[0];
  5710. if (cached_has_bits & 0x00000003u) {
  5711. // .google.firestore.v1.Document document = 1;
  5712. if (cached_has_bits & 0x00000001u) {
  5713. total_size +=
  5714. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.document_);
  5715. }
  5716. // .google.protobuf.Timestamp read_time = 3;
  5717. if (cached_has_bits & 0x00000002u) {
  5718. total_size +=
  5719. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.read_time_);
  5720. }
  5721. }
  5722. // int32 skipped_results = 4;
  5723. if (this->_internal_skipped_results() != 0) {
  5724. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  5725. this->_internal_skipped_results());
  5726. }
  5727. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  5728. }
  5729. const ::google::protobuf::Message::ClassData RunQueryResponse::_class_data_ = {
  5730. RunQueryResponse::MergeImpl,
  5731. nullptr, // OnDemandRegisterArenaDtor
  5732. };
  5733. const ::google::protobuf::Message::ClassData* RunQueryResponse::GetClassData() const {
  5734. return &_class_data_;
  5735. }
  5736. void RunQueryResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  5737. auto* const _this = static_cast<RunQueryResponse*>(&to_msg);
  5738. auto& from = static_cast<const RunQueryResponse&>(from_msg);
  5739. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.RunQueryResponse)
  5740. ABSL_DCHECK_NE(&from, _this);
  5741. ::uint32_t cached_has_bits = 0;
  5742. (void) cached_has_bits;
  5743. if (!from._internal_transaction().empty()) {
  5744. _this->_internal_set_transaction(from._internal_transaction());
  5745. }
  5746. cached_has_bits = from._impl_._has_bits_[0];
  5747. if (cached_has_bits & 0x00000003u) {
  5748. if (cached_has_bits & 0x00000001u) {
  5749. _this->_internal_mutable_document()->::google::firestore::v1::Document::MergeFrom(
  5750. from._internal_document());
  5751. }
  5752. if (cached_has_bits & 0x00000002u) {
  5753. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  5754. from._internal_read_time());
  5755. }
  5756. }
  5757. if (from._internal_skipped_results() != 0) {
  5758. _this->_internal_set_skipped_results(from._internal_skipped_results());
  5759. }
  5760. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  5761. }
  5762. void RunQueryResponse::CopyFrom(const RunQueryResponse& from) {
  5763. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.RunQueryResponse)
  5764. if (&from == this) return;
  5765. Clear();
  5766. MergeFrom(from);
  5767. }
  5768. PROTOBUF_NOINLINE bool RunQueryResponse::IsInitialized() const {
  5769. return true;
  5770. }
  5771. ::_pbi::CachedSize* RunQueryResponse::AccessCachedSize() const {
  5772. return &_impl_._cached_size_;
  5773. }
  5774. void RunQueryResponse::InternalSwap(RunQueryResponse* PROTOBUF_RESTRICT other) {
  5775. using std::swap;
  5776. auto* arena = GetArena();
  5777. ABSL_DCHECK_EQ(arena, other->GetArena());
  5778. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5779. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  5780. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.transaction_, &other->_impl_.transaction_, arena);
  5781. ::google::protobuf::internal::memswap<
  5782. PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.skipped_results_)
  5783. + sizeof(RunQueryResponse::_impl_.skipped_results_)
  5784. - PROTOBUF_FIELD_OFFSET(RunQueryResponse, _impl_.document_)>(
  5785. reinterpret_cast<char*>(&_impl_.document_),
  5786. reinterpret_cast<char*>(&other->_impl_.document_));
  5787. }
  5788. ::google::protobuf::Metadata RunQueryResponse::GetMetadata() const {
  5789. return ::_pbi::AssignDescriptors(
  5790. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  5791. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[14]);
  5792. }
  5793. // ===================================================================
  5794. class RunAggregationQueryRequest::_Internal {
  5795. public:
  5796. static constexpr ::int32_t kOneofCaseOffset =
  5797. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::RunAggregationQueryRequest, _impl_._oneof_case_);
  5798. static const ::google::firestore::v1::StructuredAggregationQuery& structured_aggregation_query(const RunAggregationQueryRequest* msg);
  5799. static const ::google::firestore::v1::TransactionOptions& new_transaction(const RunAggregationQueryRequest* msg);
  5800. static const ::google::protobuf::Timestamp& read_time(const RunAggregationQueryRequest* msg);
  5801. };
  5802. const ::google::firestore::v1::StructuredAggregationQuery& RunAggregationQueryRequest::_Internal::structured_aggregation_query(const RunAggregationQueryRequest* msg) {
  5803. return *msg->_impl_.query_type_.structured_aggregation_query_;
  5804. }
  5805. const ::google::firestore::v1::TransactionOptions& RunAggregationQueryRequest::_Internal::new_transaction(const RunAggregationQueryRequest* msg) {
  5806. return *msg->_impl_.consistency_selector_.new_transaction_;
  5807. }
  5808. const ::google::protobuf::Timestamp& RunAggregationQueryRequest::_Internal::read_time(const RunAggregationQueryRequest* msg) {
  5809. return *msg->_impl_.consistency_selector_.read_time_;
  5810. }
  5811. void RunAggregationQueryRequest::set_allocated_structured_aggregation_query(::google::firestore::v1::StructuredAggregationQuery* structured_aggregation_query) {
  5812. ::google::protobuf::Arena* message_arena = GetArena();
  5813. clear_query_type();
  5814. if (structured_aggregation_query) {
  5815. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(structured_aggregation_query)->GetArena();
  5816. if (message_arena != submessage_arena) {
  5817. structured_aggregation_query = ::google::protobuf::internal::GetOwnedMessage(message_arena, structured_aggregation_query, submessage_arena);
  5818. }
  5819. set_has_structured_aggregation_query();
  5820. _impl_.query_type_.structured_aggregation_query_ = structured_aggregation_query;
  5821. }
  5822. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  5823. }
  5824. void RunAggregationQueryRequest::clear_structured_aggregation_query() {
  5825. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5826. if (query_type_case() == kStructuredAggregationQuery) {
  5827. if (GetArena() == nullptr) {
  5828. delete _impl_.query_type_.structured_aggregation_query_;
  5829. }
  5830. clear_has_query_type();
  5831. }
  5832. }
  5833. void RunAggregationQueryRequest::set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction) {
  5834. ::google::protobuf::Arena* message_arena = GetArena();
  5835. clear_consistency_selector();
  5836. if (new_transaction) {
  5837. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(new_transaction)->GetArena();
  5838. if (message_arena != submessage_arena) {
  5839. new_transaction = ::google::protobuf::internal::GetOwnedMessage(message_arena, new_transaction, submessage_arena);
  5840. }
  5841. set_has_new_transaction();
  5842. _impl_.consistency_selector_.new_transaction_ = new_transaction;
  5843. }
  5844. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  5845. }
  5846. void RunAggregationQueryRequest::clear_new_transaction() {
  5847. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5848. if (consistency_selector_case() == kNewTransaction) {
  5849. if (GetArena() == nullptr) {
  5850. delete _impl_.consistency_selector_.new_transaction_;
  5851. }
  5852. clear_has_consistency_selector();
  5853. }
  5854. }
  5855. void RunAggregationQueryRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
  5856. ::google::protobuf::Arena* message_arena = GetArena();
  5857. clear_consistency_selector();
  5858. if (read_time) {
  5859. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(read_time)->GetArena();
  5860. if (message_arena != submessage_arena) {
  5861. read_time = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_time, submessage_arena);
  5862. }
  5863. set_has_read_time();
  5864. _impl_.consistency_selector_.read_time_ = read_time;
  5865. }
  5866. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.read_time)
  5867. }
  5868. void RunAggregationQueryRequest::clear_read_time() {
  5869. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5870. if (consistency_selector_case() == kReadTime) {
  5871. if (GetArena() == nullptr) {
  5872. delete _impl_.consistency_selector_.read_time_;
  5873. }
  5874. clear_has_consistency_selector();
  5875. }
  5876. }
  5877. RunAggregationQueryRequest::RunAggregationQueryRequest(::google::protobuf::Arena* arena)
  5878. : ::google::protobuf::Message(arena) {
  5879. SharedCtor(arena);
  5880. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.RunAggregationQueryRequest)
  5881. }
  5882. inline PROTOBUF_NDEBUG_INLINE RunAggregationQueryRequest::Impl_::Impl_(
  5883. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  5884. const Impl_& from)
  5885. : parent_(arena, from.parent_),
  5886. query_type_{},
  5887. consistency_selector_{},
  5888. _cached_size_{0},
  5889. _oneof_case_{from._oneof_case_[0], from._oneof_case_[1]} {}
  5890. RunAggregationQueryRequest::RunAggregationQueryRequest(
  5891. ::google::protobuf::Arena* arena,
  5892. const RunAggregationQueryRequest& from)
  5893. : ::google::protobuf::Message(arena) {
  5894. RunAggregationQueryRequest* const _this = this;
  5895. (void)_this;
  5896. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  5897. from._internal_metadata_);
  5898. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  5899. switch (query_type_case()) {
  5900. case QUERY_TYPE_NOT_SET:
  5901. break;
  5902. case kStructuredAggregationQuery:
  5903. _impl_.query_type_.structured_aggregation_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery>(arena, *from._impl_.query_type_.structured_aggregation_query_);
  5904. break;
  5905. }
  5906. switch (consistency_selector_case()) {
  5907. case CONSISTENCY_SELECTOR_NOT_SET:
  5908. break;
  5909. case kTransaction:
  5910. new (&_impl_.consistency_selector_.transaction_) decltype(_impl_.consistency_selector_.transaction_){arena, from._impl_.consistency_selector_.transaction_};
  5911. break;
  5912. case kNewTransaction:
  5913. _impl_.consistency_selector_.new_transaction_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(arena, *from._impl_.consistency_selector_.new_transaction_);
  5914. break;
  5915. case kReadTime:
  5916. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.consistency_selector_.read_time_);
  5917. break;
  5918. }
  5919. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.RunAggregationQueryRequest)
  5920. }
  5921. inline PROTOBUF_NDEBUG_INLINE RunAggregationQueryRequest::Impl_::Impl_(
  5922. ::google::protobuf::internal::InternalVisibility visibility,
  5923. ::google::protobuf::Arena* arena)
  5924. : parent_(arena),
  5925. query_type_{},
  5926. consistency_selector_{},
  5927. _cached_size_{0},
  5928. _oneof_case_{} {}
  5929. inline void RunAggregationQueryRequest::SharedCtor(::_pb::Arena* arena) {
  5930. new (&_impl_) Impl_(internal_visibility(), arena);
  5931. }
  5932. RunAggregationQueryRequest::~RunAggregationQueryRequest() {
  5933. // @@protoc_insertion_point(destructor:google.firestore.v1.RunAggregationQueryRequest)
  5934. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  5935. SharedDtor();
  5936. }
  5937. inline void RunAggregationQueryRequest::SharedDtor() {
  5938. ABSL_DCHECK(GetArena() == nullptr);
  5939. _impl_.parent_.Destroy();
  5940. if (has_query_type()) {
  5941. clear_query_type();
  5942. }
  5943. if (has_consistency_selector()) {
  5944. clear_consistency_selector();
  5945. }
  5946. _impl_.~Impl_();
  5947. }
  5948. void RunAggregationQueryRequest::clear_query_type() {
  5949. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.RunAggregationQueryRequest)
  5950. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5951. switch (query_type_case()) {
  5952. case kStructuredAggregationQuery: {
  5953. if (GetArena() == nullptr) {
  5954. delete _impl_.query_type_.structured_aggregation_query_;
  5955. }
  5956. break;
  5957. }
  5958. case QUERY_TYPE_NOT_SET: {
  5959. break;
  5960. }
  5961. }
  5962. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  5963. }
  5964. void RunAggregationQueryRequest::clear_consistency_selector() {
  5965. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.RunAggregationQueryRequest)
  5966. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5967. switch (consistency_selector_case()) {
  5968. case kTransaction: {
  5969. _impl_.consistency_selector_.transaction_.Destroy();
  5970. break;
  5971. }
  5972. case kNewTransaction: {
  5973. if (GetArena() == nullptr) {
  5974. delete _impl_.consistency_selector_.new_transaction_;
  5975. }
  5976. break;
  5977. }
  5978. case kReadTime: {
  5979. if (GetArena() == nullptr) {
  5980. delete _impl_.consistency_selector_.read_time_;
  5981. }
  5982. break;
  5983. }
  5984. case CONSISTENCY_SELECTOR_NOT_SET: {
  5985. break;
  5986. }
  5987. }
  5988. _impl_._oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  5989. }
  5990. PROTOBUF_NOINLINE void RunAggregationQueryRequest::Clear() {
  5991. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.RunAggregationQueryRequest)
  5992. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5993. ::uint32_t cached_has_bits = 0;
  5994. // Prevent compiler warnings about cached_has_bits being unused
  5995. (void) cached_has_bits;
  5996. _impl_.parent_.ClearToEmpty();
  5997. clear_query_type();
  5998. clear_consistency_selector();
  5999. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  6000. }
  6001. const char* RunAggregationQueryRequest::_InternalParse(
  6002. const char* ptr, ::_pbi::ParseContext* ctx) {
  6003. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  6004. return ptr;
  6005. }
  6006. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  6007. const ::_pbi::TcParseTable<0, 5, 3, 61, 2> RunAggregationQueryRequest::_table_ = {
  6008. {
  6009. 0, // no _has_bits_
  6010. 0, // no _extensions_
  6011. 6, 0, // max_field_number, fast_idx_mask
  6012. offsetof(decltype(_table_), field_lookup_table),
  6013. 4294967236, // skipmap
  6014. offsetof(decltype(_table_), field_entries),
  6015. 5, // num_field_entries
  6016. 3, // num_aux_entries
  6017. offsetof(decltype(_table_), aux_entries),
  6018. &_RunAggregationQueryRequest_default_instance_._instance,
  6019. ::_pbi::TcParser::GenericFallback, // fallback
  6020. }, {{
  6021. // string parent = 1;
  6022. {::_pbi::TcParser::FastUS1,
  6023. {10, 63, 0, PROTOBUF_FIELD_OFFSET(RunAggregationQueryRequest, _impl_.parent_)}},
  6024. }}, {{
  6025. 65535, 65535
  6026. }}, {{
  6027. // string parent = 1;
  6028. {PROTOBUF_FIELD_OFFSET(RunAggregationQueryRequest, _impl_.parent_), 0, 0,
  6029. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  6030. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  6031. {PROTOBUF_FIELD_OFFSET(RunAggregationQueryRequest, _impl_.query_type_.structured_aggregation_query_), _Internal::kOneofCaseOffset + 0, 0,
  6032. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  6033. // bytes transaction = 4;
  6034. {PROTOBUF_FIELD_OFFSET(RunAggregationQueryRequest, _impl_.consistency_selector_.transaction_), _Internal::kOneofCaseOffset + 4, 0,
  6035. (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
  6036. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  6037. {PROTOBUF_FIELD_OFFSET(RunAggregationQueryRequest, _impl_.consistency_selector_.new_transaction_), _Internal::kOneofCaseOffset + 4, 1,
  6038. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  6039. // .google.protobuf.Timestamp read_time = 6;
  6040. {PROTOBUF_FIELD_OFFSET(RunAggregationQueryRequest, _impl_.consistency_selector_.read_time_), _Internal::kOneofCaseOffset + 4, 2,
  6041. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  6042. }}, {{
  6043. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredAggregationQuery>()},
  6044. {::_pbi::TcParser::GetTable<::google::firestore::v1::TransactionOptions>()},
  6045. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  6046. }}, {{
  6047. "\56\6\0\0\0\0\0\0"
  6048. "google.firestore.v1.RunAggregationQueryRequest"
  6049. "parent"
  6050. }},
  6051. };
  6052. ::uint8_t* RunAggregationQueryRequest::_InternalSerialize(
  6053. ::uint8_t* target,
  6054. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  6055. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.RunAggregationQueryRequest)
  6056. ::uint32_t cached_has_bits = 0;
  6057. (void)cached_has_bits;
  6058. // string parent = 1;
  6059. if (!this->_internal_parent().empty()) {
  6060. const std::string& _s = this->_internal_parent();
  6061. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6062. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.RunAggregationQueryRequest.parent");
  6063. target = stream->WriteStringMaybeAliased(1, _s, target);
  6064. }
  6065. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  6066. if (query_type_case() == kStructuredAggregationQuery) {
  6067. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  6068. 2, _Internal::structured_aggregation_query(this),
  6069. _Internal::structured_aggregation_query(this).GetCachedSize(), target, stream);
  6070. }
  6071. switch (consistency_selector_case()) {
  6072. case kTransaction: {
  6073. const std::string& _s = this->_internal_transaction();
  6074. target = stream->WriteBytesMaybeAliased(4, _s, target);
  6075. break;
  6076. }
  6077. case kNewTransaction: {
  6078. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  6079. 5, _Internal::new_transaction(this),
  6080. _Internal::new_transaction(this).GetCachedSize(), target, stream);
  6081. break;
  6082. }
  6083. case kReadTime: {
  6084. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  6085. 6, _Internal::read_time(this),
  6086. _Internal::read_time(this).GetCachedSize(), target, stream);
  6087. break;
  6088. }
  6089. default:
  6090. break;
  6091. }
  6092. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6093. target =
  6094. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  6095. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  6096. }
  6097. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.RunAggregationQueryRequest)
  6098. return target;
  6099. }
  6100. ::size_t RunAggregationQueryRequest::ByteSizeLong() const {
  6101. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.RunAggregationQueryRequest)
  6102. ::size_t total_size = 0;
  6103. ::uint32_t cached_has_bits = 0;
  6104. // Prevent compiler warnings about cached_has_bits being unused
  6105. (void) cached_has_bits;
  6106. // string parent = 1;
  6107. if (!this->_internal_parent().empty()) {
  6108. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  6109. this->_internal_parent());
  6110. }
  6111. switch (query_type_case()) {
  6112. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  6113. case kStructuredAggregationQuery: {
  6114. total_size +=
  6115. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.query_type_.structured_aggregation_query_);
  6116. break;
  6117. }
  6118. case QUERY_TYPE_NOT_SET: {
  6119. break;
  6120. }
  6121. }
  6122. switch (consistency_selector_case()) {
  6123. // bytes transaction = 4;
  6124. case kTransaction: {
  6125. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  6126. this->_internal_transaction());
  6127. break;
  6128. }
  6129. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  6130. case kNewTransaction: {
  6131. total_size +=
  6132. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.new_transaction_);
  6133. break;
  6134. }
  6135. // .google.protobuf.Timestamp read_time = 6;
  6136. case kReadTime: {
  6137. total_size +=
  6138. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.read_time_);
  6139. break;
  6140. }
  6141. case CONSISTENCY_SELECTOR_NOT_SET: {
  6142. break;
  6143. }
  6144. }
  6145. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  6146. }
  6147. const ::google::protobuf::Message::ClassData RunAggregationQueryRequest::_class_data_ = {
  6148. RunAggregationQueryRequest::MergeImpl,
  6149. nullptr, // OnDemandRegisterArenaDtor
  6150. };
  6151. const ::google::protobuf::Message::ClassData* RunAggregationQueryRequest::GetClassData() const {
  6152. return &_class_data_;
  6153. }
  6154. void RunAggregationQueryRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  6155. auto* const _this = static_cast<RunAggregationQueryRequest*>(&to_msg);
  6156. auto& from = static_cast<const RunAggregationQueryRequest&>(from_msg);
  6157. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.RunAggregationQueryRequest)
  6158. ABSL_DCHECK_NE(&from, _this);
  6159. ::uint32_t cached_has_bits = 0;
  6160. (void) cached_has_bits;
  6161. if (!from._internal_parent().empty()) {
  6162. _this->_internal_set_parent(from._internal_parent());
  6163. }
  6164. switch (from.query_type_case()) {
  6165. case kStructuredAggregationQuery: {
  6166. _this->_internal_mutable_structured_aggregation_query()->::google::firestore::v1::StructuredAggregationQuery::MergeFrom(
  6167. from._internal_structured_aggregation_query());
  6168. break;
  6169. }
  6170. case QUERY_TYPE_NOT_SET: {
  6171. break;
  6172. }
  6173. }
  6174. switch (from.consistency_selector_case()) {
  6175. case kTransaction: {
  6176. _this->_internal_set_transaction(from._internal_transaction());
  6177. break;
  6178. }
  6179. case kNewTransaction: {
  6180. _this->_internal_mutable_new_transaction()->::google::firestore::v1::TransactionOptions::MergeFrom(
  6181. from._internal_new_transaction());
  6182. break;
  6183. }
  6184. case kReadTime: {
  6185. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  6186. from._internal_read_time());
  6187. break;
  6188. }
  6189. case CONSISTENCY_SELECTOR_NOT_SET: {
  6190. break;
  6191. }
  6192. }
  6193. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  6194. }
  6195. void RunAggregationQueryRequest::CopyFrom(const RunAggregationQueryRequest& from) {
  6196. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.RunAggregationQueryRequest)
  6197. if (&from == this) return;
  6198. Clear();
  6199. MergeFrom(from);
  6200. }
  6201. PROTOBUF_NOINLINE bool RunAggregationQueryRequest::IsInitialized() const {
  6202. return true;
  6203. }
  6204. ::_pbi::CachedSize* RunAggregationQueryRequest::AccessCachedSize() const {
  6205. return &_impl_._cached_size_;
  6206. }
  6207. void RunAggregationQueryRequest::InternalSwap(RunAggregationQueryRequest* PROTOBUF_RESTRICT other) {
  6208. using std::swap;
  6209. auto* arena = GetArena();
  6210. ABSL_DCHECK_EQ(arena, other->GetArena());
  6211. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6212. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_, &other->_impl_.parent_, arena);
  6213. swap(_impl_.query_type_, other->_impl_.query_type_);
  6214. swap(_impl_.consistency_selector_, other->_impl_.consistency_selector_);
  6215. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  6216. swap(_impl_._oneof_case_[1], other->_impl_._oneof_case_[1]);
  6217. }
  6218. ::google::protobuf::Metadata RunAggregationQueryRequest::GetMetadata() const {
  6219. return ::_pbi::AssignDescriptors(
  6220. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  6221. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[15]);
  6222. }
  6223. // ===================================================================
  6224. class RunAggregationQueryResponse::_Internal {
  6225. public:
  6226. using HasBits = decltype(std::declval<RunAggregationQueryResponse>()._impl_._has_bits_);
  6227. static constexpr ::int32_t kHasBitsOffset =
  6228. 8 * PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_._has_bits_);
  6229. static const ::google::firestore::v1::AggregationResult& result(const RunAggregationQueryResponse* msg);
  6230. static void set_has_result(HasBits* has_bits) {
  6231. (*has_bits)[0] |= 1u;
  6232. }
  6233. static const ::google::protobuf::Timestamp& read_time(const RunAggregationQueryResponse* msg);
  6234. static void set_has_read_time(HasBits* has_bits) {
  6235. (*has_bits)[0] |= 2u;
  6236. }
  6237. };
  6238. const ::google::firestore::v1::AggregationResult& RunAggregationQueryResponse::_Internal::result(const RunAggregationQueryResponse* msg) {
  6239. return *msg->_impl_.result_;
  6240. }
  6241. const ::google::protobuf::Timestamp& RunAggregationQueryResponse::_Internal::read_time(const RunAggregationQueryResponse* msg) {
  6242. return *msg->_impl_.read_time_;
  6243. }
  6244. void RunAggregationQueryResponse::clear_result() {
  6245. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6246. if (_impl_.result_ != nullptr) _impl_.result_->Clear();
  6247. _impl_._has_bits_[0] &= ~0x00000001u;
  6248. }
  6249. void RunAggregationQueryResponse::clear_read_time() {
  6250. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6251. if (_impl_.read_time_ != nullptr) _impl_.read_time_->Clear();
  6252. _impl_._has_bits_[0] &= ~0x00000002u;
  6253. }
  6254. RunAggregationQueryResponse::RunAggregationQueryResponse(::google::protobuf::Arena* arena)
  6255. : ::google::protobuf::Message(arena) {
  6256. SharedCtor(arena);
  6257. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.RunAggregationQueryResponse)
  6258. }
  6259. inline PROTOBUF_NDEBUG_INLINE RunAggregationQueryResponse::Impl_::Impl_(
  6260. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  6261. const Impl_& from)
  6262. : _has_bits_{from._has_bits_},
  6263. _cached_size_{0},
  6264. transaction_(arena, from.transaction_) {}
  6265. RunAggregationQueryResponse::RunAggregationQueryResponse(
  6266. ::google::protobuf::Arena* arena,
  6267. const RunAggregationQueryResponse& from)
  6268. : ::google::protobuf::Message(arena) {
  6269. RunAggregationQueryResponse* const _this = this;
  6270. (void)_this;
  6271. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  6272. from._internal_metadata_);
  6273. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  6274. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  6275. _impl_.result_ = (cached_has_bits & 0x00000001u)
  6276. ? CreateMaybeMessage<::google::firestore::v1::AggregationResult>(arena, *from._impl_.result_)
  6277. : nullptr;
  6278. _impl_.read_time_ = (cached_has_bits & 0x00000002u)
  6279. ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.read_time_)
  6280. : nullptr;
  6281. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.RunAggregationQueryResponse)
  6282. }
  6283. inline PROTOBUF_NDEBUG_INLINE RunAggregationQueryResponse::Impl_::Impl_(
  6284. ::google::protobuf::internal::InternalVisibility visibility,
  6285. ::google::protobuf::Arena* arena)
  6286. : _cached_size_{0},
  6287. transaction_(arena) {}
  6288. inline void RunAggregationQueryResponse::SharedCtor(::_pb::Arena* arena) {
  6289. new (&_impl_) Impl_(internal_visibility(), arena);
  6290. ::memset(reinterpret_cast<char *>(&_impl_) +
  6291. offsetof(Impl_, result_),
  6292. 0,
  6293. offsetof(Impl_, read_time_) -
  6294. offsetof(Impl_, result_) +
  6295. sizeof(Impl_::read_time_));
  6296. }
  6297. RunAggregationQueryResponse::~RunAggregationQueryResponse() {
  6298. // @@protoc_insertion_point(destructor:google.firestore.v1.RunAggregationQueryResponse)
  6299. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  6300. SharedDtor();
  6301. }
  6302. inline void RunAggregationQueryResponse::SharedDtor() {
  6303. ABSL_DCHECK(GetArena() == nullptr);
  6304. _impl_.transaction_.Destroy();
  6305. delete _impl_.result_;
  6306. delete _impl_.read_time_;
  6307. _impl_.~Impl_();
  6308. }
  6309. PROTOBUF_NOINLINE void RunAggregationQueryResponse::Clear() {
  6310. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.RunAggregationQueryResponse)
  6311. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6312. ::uint32_t cached_has_bits = 0;
  6313. // Prevent compiler warnings about cached_has_bits being unused
  6314. (void) cached_has_bits;
  6315. _impl_.transaction_.ClearToEmpty();
  6316. cached_has_bits = _impl_._has_bits_[0];
  6317. if (cached_has_bits & 0x00000003u) {
  6318. if (cached_has_bits & 0x00000001u) {
  6319. ABSL_DCHECK(_impl_.result_ != nullptr);
  6320. _impl_.result_->Clear();
  6321. }
  6322. if (cached_has_bits & 0x00000002u) {
  6323. ABSL_DCHECK(_impl_.read_time_ != nullptr);
  6324. _impl_.read_time_->Clear();
  6325. }
  6326. }
  6327. _impl_._has_bits_.Clear();
  6328. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  6329. }
  6330. const char* RunAggregationQueryResponse::_InternalParse(
  6331. const char* ptr, ::_pbi::ParseContext* ctx) {
  6332. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  6333. return ptr;
  6334. }
  6335. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  6336. const ::_pbi::TcParseTable<2, 3, 2, 0, 2> RunAggregationQueryResponse::_table_ = {
  6337. {
  6338. PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_._has_bits_),
  6339. 0, // no _extensions_
  6340. 3, 24, // max_field_number, fast_idx_mask
  6341. offsetof(decltype(_table_), field_lookup_table),
  6342. 4294967288, // skipmap
  6343. offsetof(decltype(_table_), field_entries),
  6344. 3, // num_field_entries
  6345. 2, // num_aux_entries
  6346. offsetof(decltype(_table_), aux_entries),
  6347. &_RunAggregationQueryResponse_default_instance_._instance,
  6348. ::_pbi::TcParser::GenericFallback, // fallback
  6349. }, {{
  6350. {::_pbi::TcParser::MiniParse, {}},
  6351. // .google.firestore.v1.AggregationResult result = 1;
  6352. {::_pbi::TcParser::FastMtS1,
  6353. {10, 0, 0, PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_.result_)}},
  6354. // bytes transaction = 2;
  6355. {::_pbi::TcParser::FastBS1,
  6356. {18, 63, 0, PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_.transaction_)}},
  6357. // .google.protobuf.Timestamp read_time = 3;
  6358. {::_pbi::TcParser::FastMtS1,
  6359. {26, 1, 1, PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_.read_time_)}},
  6360. }}, {{
  6361. 65535, 65535
  6362. }}, {{
  6363. // .google.firestore.v1.AggregationResult result = 1;
  6364. {PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_.result_), _Internal::kHasBitsOffset + 0, 0,
  6365. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  6366. // bytes transaction = 2;
  6367. {PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_.transaction_), -1, 0,
  6368. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  6369. // .google.protobuf.Timestamp read_time = 3;
  6370. {PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_.read_time_), _Internal::kHasBitsOffset + 1, 1,
  6371. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  6372. }}, {{
  6373. {::_pbi::TcParser::GetTable<::google::firestore::v1::AggregationResult>()},
  6374. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  6375. }}, {{
  6376. }},
  6377. };
  6378. ::uint8_t* RunAggregationQueryResponse::_InternalSerialize(
  6379. ::uint8_t* target,
  6380. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  6381. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.RunAggregationQueryResponse)
  6382. ::uint32_t cached_has_bits = 0;
  6383. (void)cached_has_bits;
  6384. cached_has_bits = _impl_._has_bits_[0];
  6385. // .google.firestore.v1.AggregationResult result = 1;
  6386. if (cached_has_bits & 0x00000001u) {
  6387. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  6388. 1, _Internal::result(this),
  6389. _Internal::result(this).GetCachedSize(), target, stream);
  6390. }
  6391. // bytes transaction = 2;
  6392. if (!this->_internal_transaction().empty()) {
  6393. const std::string& _s = this->_internal_transaction();
  6394. target = stream->WriteBytesMaybeAliased(2, _s, target);
  6395. }
  6396. // .google.protobuf.Timestamp read_time = 3;
  6397. if (cached_has_bits & 0x00000002u) {
  6398. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  6399. 3, _Internal::read_time(this),
  6400. _Internal::read_time(this).GetCachedSize(), target, stream);
  6401. }
  6402. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6403. target =
  6404. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  6405. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  6406. }
  6407. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.RunAggregationQueryResponse)
  6408. return target;
  6409. }
  6410. ::size_t RunAggregationQueryResponse::ByteSizeLong() const {
  6411. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.RunAggregationQueryResponse)
  6412. ::size_t total_size = 0;
  6413. ::uint32_t cached_has_bits = 0;
  6414. // Prevent compiler warnings about cached_has_bits being unused
  6415. (void) cached_has_bits;
  6416. // bytes transaction = 2;
  6417. if (!this->_internal_transaction().empty()) {
  6418. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  6419. this->_internal_transaction());
  6420. }
  6421. cached_has_bits = _impl_._has_bits_[0];
  6422. if (cached_has_bits & 0x00000003u) {
  6423. // .google.firestore.v1.AggregationResult result = 1;
  6424. if (cached_has_bits & 0x00000001u) {
  6425. total_size +=
  6426. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.result_);
  6427. }
  6428. // .google.protobuf.Timestamp read_time = 3;
  6429. if (cached_has_bits & 0x00000002u) {
  6430. total_size +=
  6431. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.read_time_);
  6432. }
  6433. }
  6434. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  6435. }
  6436. const ::google::protobuf::Message::ClassData RunAggregationQueryResponse::_class_data_ = {
  6437. RunAggregationQueryResponse::MergeImpl,
  6438. nullptr, // OnDemandRegisterArenaDtor
  6439. };
  6440. const ::google::protobuf::Message::ClassData* RunAggregationQueryResponse::GetClassData() const {
  6441. return &_class_data_;
  6442. }
  6443. void RunAggregationQueryResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  6444. auto* const _this = static_cast<RunAggregationQueryResponse*>(&to_msg);
  6445. auto& from = static_cast<const RunAggregationQueryResponse&>(from_msg);
  6446. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.RunAggregationQueryResponse)
  6447. ABSL_DCHECK_NE(&from, _this);
  6448. ::uint32_t cached_has_bits = 0;
  6449. (void) cached_has_bits;
  6450. if (!from._internal_transaction().empty()) {
  6451. _this->_internal_set_transaction(from._internal_transaction());
  6452. }
  6453. cached_has_bits = from._impl_._has_bits_[0];
  6454. if (cached_has_bits & 0x00000003u) {
  6455. if (cached_has_bits & 0x00000001u) {
  6456. _this->_internal_mutable_result()->::google::firestore::v1::AggregationResult::MergeFrom(
  6457. from._internal_result());
  6458. }
  6459. if (cached_has_bits & 0x00000002u) {
  6460. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  6461. from._internal_read_time());
  6462. }
  6463. }
  6464. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  6465. }
  6466. void RunAggregationQueryResponse::CopyFrom(const RunAggregationQueryResponse& from) {
  6467. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.RunAggregationQueryResponse)
  6468. if (&from == this) return;
  6469. Clear();
  6470. MergeFrom(from);
  6471. }
  6472. PROTOBUF_NOINLINE bool RunAggregationQueryResponse::IsInitialized() const {
  6473. return true;
  6474. }
  6475. ::_pbi::CachedSize* RunAggregationQueryResponse::AccessCachedSize() const {
  6476. return &_impl_._cached_size_;
  6477. }
  6478. void RunAggregationQueryResponse::InternalSwap(RunAggregationQueryResponse* PROTOBUF_RESTRICT other) {
  6479. using std::swap;
  6480. auto* arena = GetArena();
  6481. ABSL_DCHECK_EQ(arena, other->GetArena());
  6482. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6483. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  6484. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.transaction_, &other->_impl_.transaction_, arena);
  6485. ::google::protobuf::internal::memswap<
  6486. PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_.read_time_)
  6487. + sizeof(RunAggregationQueryResponse::_impl_.read_time_)
  6488. - PROTOBUF_FIELD_OFFSET(RunAggregationQueryResponse, _impl_.result_)>(
  6489. reinterpret_cast<char*>(&_impl_.result_),
  6490. reinterpret_cast<char*>(&other->_impl_.result_));
  6491. }
  6492. ::google::protobuf::Metadata RunAggregationQueryResponse::GetMetadata() const {
  6493. return ::_pbi::AssignDescriptors(
  6494. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  6495. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[16]);
  6496. }
  6497. // ===================================================================
  6498. WriteRequest_LabelsEntry_DoNotUse::WriteRequest_LabelsEntry_DoNotUse() {}
  6499. WriteRequest_LabelsEntry_DoNotUse::WriteRequest_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena)
  6500. : SuperType(arena) {}
  6501. ::google::protobuf::Metadata WriteRequest_LabelsEntry_DoNotUse::GetMetadata() const {
  6502. return ::_pbi::AssignDescriptors(
  6503. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  6504. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[17]);
  6505. }
  6506. // ===================================================================
  6507. class WriteRequest::_Internal {
  6508. public:
  6509. };
  6510. void WriteRequest::clear_writes() {
  6511. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6512. _impl_.writes_.Clear();
  6513. }
  6514. WriteRequest::WriteRequest(::google::protobuf::Arena* arena)
  6515. : ::google::protobuf::Message(arena) {
  6516. SharedCtor(arena);
  6517. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.WriteRequest)
  6518. }
  6519. inline PROTOBUF_NDEBUG_INLINE WriteRequest::Impl_::Impl_(
  6520. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  6521. const Impl_& from)
  6522. : writes_{visibility, arena, from.writes_},
  6523. labels_{visibility, arena, from.labels_},
  6524. database_(arena, from.database_),
  6525. stream_id_(arena, from.stream_id_),
  6526. stream_token_(arena, from.stream_token_),
  6527. _cached_size_{0} {}
  6528. WriteRequest::WriteRequest(
  6529. ::google::protobuf::Arena* arena,
  6530. const WriteRequest& from)
  6531. : ::google::protobuf::Message(arena) {
  6532. WriteRequest* const _this = this;
  6533. (void)_this;
  6534. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  6535. from._internal_metadata_);
  6536. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  6537. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.WriteRequest)
  6538. }
  6539. inline PROTOBUF_NDEBUG_INLINE WriteRequest::Impl_::Impl_(
  6540. ::google::protobuf::internal::InternalVisibility visibility,
  6541. ::google::protobuf::Arena* arena)
  6542. : writes_{visibility, arena},
  6543. labels_{visibility, arena},
  6544. database_(arena),
  6545. stream_id_(arena),
  6546. stream_token_(arena),
  6547. _cached_size_{0} {}
  6548. inline void WriteRequest::SharedCtor(::_pb::Arena* arena) {
  6549. new (&_impl_) Impl_(internal_visibility(), arena);
  6550. }
  6551. WriteRequest::~WriteRequest() {
  6552. // @@protoc_insertion_point(destructor:google.firestore.v1.WriteRequest)
  6553. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  6554. SharedDtor();
  6555. }
  6556. inline void WriteRequest::SharedDtor() {
  6557. ABSL_DCHECK(GetArena() == nullptr);
  6558. _impl_.database_.Destroy();
  6559. _impl_.stream_id_.Destroy();
  6560. _impl_.stream_token_.Destroy();
  6561. _impl_.~Impl_();
  6562. }
  6563. PROTOBUF_NOINLINE void WriteRequest::Clear() {
  6564. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.WriteRequest)
  6565. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6566. ::uint32_t cached_has_bits = 0;
  6567. // Prevent compiler warnings about cached_has_bits being unused
  6568. (void) cached_has_bits;
  6569. _impl_.writes_.Clear();
  6570. _impl_.labels_.Clear();
  6571. _impl_.database_.ClearToEmpty();
  6572. _impl_.stream_id_.ClearToEmpty();
  6573. _impl_.stream_token_.ClearToEmpty();
  6574. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  6575. }
  6576. const char* WriteRequest::_InternalParse(
  6577. const char* ptr, ::_pbi::ParseContext* ctx) {
  6578. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  6579. return ptr;
  6580. }
  6581. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  6582. const ::_pbi::TcParseTable<2, 5, 2, 64, 2> WriteRequest::_table_ = {
  6583. {
  6584. 0, // no _has_bits_
  6585. 0, // no _extensions_
  6586. 5, 24, // max_field_number, fast_idx_mask
  6587. offsetof(decltype(_table_), field_lookup_table),
  6588. 4294967264, // skipmap
  6589. offsetof(decltype(_table_), field_entries),
  6590. 5, // num_field_entries
  6591. 2, // num_aux_entries
  6592. offsetof(decltype(_table_), aux_entries),
  6593. &_WriteRequest_default_instance_._instance,
  6594. ::_pbi::TcParser::GenericFallback, // fallback
  6595. }, {{
  6596. // bytes stream_token = 4;
  6597. {::_pbi::TcParser::FastBS1,
  6598. {34, 63, 0, PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.stream_token_)}},
  6599. // string database = 1;
  6600. {::_pbi::TcParser::FastUS1,
  6601. {10, 63, 0, PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.database_)}},
  6602. // string stream_id = 2;
  6603. {::_pbi::TcParser::FastUS1,
  6604. {18, 63, 0, PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.stream_id_)}},
  6605. // repeated .google.firestore.v1.Write writes = 3;
  6606. {::_pbi::TcParser::FastMtR1,
  6607. {26, 63, 0, PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.writes_)}},
  6608. }}, {{
  6609. 65535, 65535
  6610. }}, {{
  6611. // string database = 1;
  6612. {PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.database_), 0, 0,
  6613. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  6614. // string stream_id = 2;
  6615. {PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.stream_id_), 0, 0,
  6616. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  6617. // repeated .google.firestore.v1.Write writes = 3;
  6618. {PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.writes_), 0, 0,
  6619. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  6620. // bytes stream_token = 4;
  6621. {PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.stream_token_), 0, 0,
  6622. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  6623. // map<string, string> labels = 5;
  6624. {PROTOBUF_FIELD_OFFSET(WriteRequest, _impl_.labels_), 0, 1,
  6625. (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
  6626. }}, {{
  6627. {::_pbi::TcParser::GetTable<::google::firestore::v1::Write>()},
  6628. {::_pbi::TcParser::GetMapAuxInfo<
  6629. decltype(WriteRequest()._impl_.labels_)>(
  6630. 1, 0, 0, 9,
  6631. 9)},
  6632. }}, {{
  6633. "\40\10\11\0\0\6\0\0"
  6634. "google.firestore.v1.WriteRequest"
  6635. "database"
  6636. "stream_id"
  6637. "labels"
  6638. }},
  6639. };
  6640. ::uint8_t* WriteRequest::_InternalSerialize(
  6641. ::uint8_t* target,
  6642. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  6643. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.WriteRequest)
  6644. ::uint32_t cached_has_bits = 0;
  6645. (void)cached_has_bits;
  6646. // string database = 1;
  6647. if (!this->_internal_database().empty()) {
  6648. const std::string& _s = this->_internal_database();
  6649. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6650. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.WriteRequest.database");
  6651. target = stream->WriteStringMaybeAliased(1, _s, target);
  6652. }
  6653. // string stream_id = 2;
  6654. if (!this->_internal_stream_id().empty()) {
  6655. const std::string& _s = this->_internal_stream_id();
  6656. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6657. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.WriteRequest.stream_id");
  6658. target = stream->WriteStringMaybeAliased(2, _s, target);
  6659. }
  6660. // repeated .google.firestore.v1.Write writes = 3;
  6661. for (unsigned i = 0,
  6662. n = static_cast<unsigned>(this->_internal_writes_size()); i < n; i++) {
  6663. const auto& repfield = this->_internal_writes().Get(i);
  6664. target = ::google::protobuf::internal::WireFormatLite::
  6665. InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  6666. }
  6667. // bytes stream_token = 4;
  6668. if (!this->_internal_stream_token().empty()) {
  6669. const std::string& _s = this->_internal_stream_token();
  6670. target = stream->WriteBytesMaybeAliased(4, _s, target);
  6671. }
  6672. // map<string, string> labels = 5;
  6673. if (!_internal_labels().empty()) {
  6674. using MapType = ::google::protobuf::Map<std::string, std::string>;
  6675. using WireHelper = _pbi::MapEntryFuncs<std::string, std::string,
  6676. _pbi::WireFormatLite::TYPE_STRING,
  6677. _pbi::WireFormatLite::TYPE_STRING>;
  6678. const auto& field = _internal_labels();
  6679. if (stream->IsSerializationDeterministic() && field.size() > 1) {
  6680. for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
  6681. target = WireHelper::InternalSerialize(
  6682. 5, entry.first, entry.second, target, stream);
  6683. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6684. entry.first.data(), static_cast<int>(entry.first.length()),
  6685. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.WriteRequest.labels");
  6686. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6687. entry.second.data(), static_cast<int>(entry.second.length()),
  6688. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.WriteRequest.labels");
  6689. }
  6690. } else {
  6691. for (const auto& entry : field) {
  6692. target = WireHelper::InternalSerialize(
  6693. 5, entry.first, entry.second, target, stream);
  6694. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6695. entry.first.data(), static_cast<int>(entry.first.length()),
  6696. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.WriteRequest.labels");
  6697. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6698. entry.second.data(), static_cast<int>(entry.second.length()),
  6699. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.WriteRequest.labels");
  6700. }
  6701. }
  6702. }
  6703. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6704. target =
  6705. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  6706. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  6707. }
  6708. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.WriteRequest)
  6709. return target;
  6710. }
  6711. ::size_t WriteRequest::ByteSizeLong() const {
  6712. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.WriteRequest)
  6713. ::size_t total_size = 0;
  6714. ::uint32_t cached_has_bits = 0;
  6715. // Prevent compiler warnings about cached_has_bits being unused
  6716. (void) cached_has_bits;
  6717. // repeated .google.firestore.v1.Write writes = 3;
  6718. total_size += 1UL * this->_internal_writes_size();
  6719. for (const auto& msg : this->_internal_writes()) {
  6720. total_size +=
  6721. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  6722. }
  6723. // map<string, string> labels = 5;
  6724. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_labels_size());
  6725. for (const auto& entry : _internal_labels()) {
  6726. total_size += _pbi::MapEntryFuncs<std::string, std::string,
  6727. _pbi::WireFormatLite::TYPE_STRING,
  6728. _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second);
  6729. }
  6730. // string database = 1;
  6731. if (!this->_internal_database().empty()) {
  6732. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  6733. this->_internal_database());
  6734. }
  6735. // string stream_id = 2;
  6736. if (!this->_internal_stream_id().empty()) {
  6737. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  6738. this->_internal_stream_id());
  6739. }
  6740. // bytes stream_token = 4;
  6741. if (!this->_internal_stream_token().empty()) {
  6742. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  6743. this->_internal_stream_token());
  6744. }
  6745. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  6746. }
  6747. const ::google::protobuf::Message::ClassData WriteRequest::_class_data_ = {
  6748. WriteRequest::MergeImpl,
  6749. nullptr, // OnDemandRegisterArenaDtor
  6750. };
  6751. const ::google::protobuf::Message::ClassData* WriteRequest::GetClassData() const {
  6752. return &_class_data_;
  6753. }
  6754. void WriteRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  6755. auto* const _this = static_cast<WriteRequest*>(&to_msg);
  6756. auto& from = static_cast<const WriteRequest&>(from_msg);
  6757. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.WriteRequest)
  6758. ABSL_DCHECK_NE(&from, _this);
  6759. ::uint32_t cached_has_bits = 0;
  6760. (void) cached_has_bits;
  6761. _this->_internal_mutable_writes()->MergeFrom(
  6762. from._internal_writes());
  6763. _this->_impl_.labels_.MergeFrom(from._impl_.labels_);
  6764. if (!from._internal_database().empty()) {
  6765. _this->_internal_set_database(from._internal_database());
  6766. }
  6767. if (!from._internal_stream_id().empty()) {
  6768. _this->_internal_set_stream_id(from._internal_stream_id());
  6769. }
  6770. if (!from._internal_stream_token().empty()) {
  6771. _this->_internal_set_stream_token(from._internal_stream_token());
  6772. }
  6773. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  6774. }
  6775. void WriteRequest::CopyFrom(const WriteRequest& from) {
  6776. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.WriteRequest)
  6777. if (&from == this) return;
  6778. Clear();
  6779. MergeFrom(from);
  6780. }
  6781. PROTOBUF_NOINLINE bool WriteRequest::IsInitialized() const {
  6782. return true;
  6783. }
  6784. ::_pbi::CachedSize* WriteRequest::AccessCachedSize() const {
  6785. return &_impl_._cached_size_;
  6786. }
  6787. void WriteRequest::InternalSwap(WriteRequest* PROTOBUF_RESTRICT other) {
  6788. using std::swap;
  6789. auto* arena = GetArena();
  6790. ABSL_DCHECK_EQ(arena, other->GetArena());
  6791. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6792. _impl_.writes_.InternalSwap(&other->_impl_.writes_);
  6793. _impl_.labels_.InternalSwap(&other->_impl_.labels_);
  6794. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.database_, &other->_impl_.database_, arena);
  6795. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stream_id_, &other->_impl_.stream_id_, arena);
  6796. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stream_token_, &other->_impl_.stream_token_, arena);
  6797. }
  6798. ::google::protobuf::Metadata WriteRequest::GetMetadata() const {
  6799. return ::_pbi::AssignDescriptors(
  6800. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  6801. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[18]);
  6802. }
  6803. // ===================================================================
  6804. class WriteResponse::_Internal {
  6805. public:
  6806. using HasBits = decltype(std::declval<WriteResponse>()._impl_._has_bits_);
  6807. static constexpr ::int32_t kHasBitsOffset =
  6808. 8 * PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_._has_bits_);
  6809. static const ::google::protobuf::Timestamp& commit_time(const WriteResponse* msg);
  6810. static void set_has_commit_time(HasBits* has_bits) {
  6811. (*has_bits)[0] |= 1u;
  6812. }
  6813. };
  6814. const ::google::protobuf::Timestamp& WriteResponse::_Internal::commit_time(const WriteResponse* msg) {
  6815. return *msg->_impl_.commit_time_;
  6816. }
  6817. void WriteResponse::clear_write_results() {
  6818. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6819. _impl_.write_results_.Clear();
  6820. }
  6821. void WriteResponse::clear_commit_time() {
  6822. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6823. if (_impl_.commit_time_ != nullptr) _impl_.commit_time_->Clear();
  6824. _impl_._has_bits_[0] &= ~0x00000001u;
  6825. }
  6826. WriteResponse::WriteResponse(::google::protobuf::Arena* arena)
  6827. : ::google::protobuf::Message(arena) {
  6828. SharedCtor(arena);
  6829. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.WriteResponse)
  6830. }
  6831. inline PROTOBUF_NDEBUG_INLINE WriteResponse::Impl_::Impl_(
  6832. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  6833. const Impl_& from)
  6834. : _has_bits_{from._has_bits_},
  6835. _cached_size_{0},
  6836. write_results_{visibility, arena, from.write_results_},
  6837. stream_id_(arena, from.stream_id_),
  6838. stream_token_(arena, from.stream_token_) {}
  6839. WriteResponse::WriteResponse(
  6840. ::google::protobuf::Arena* arena,
  6841. const WriteResponse& from)
  6842. : ::google::protobuf::Message(arena) {
  6843. WriteResponse* const _this = this;
  6844. (void)_this;
  6845. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  6846. from._internal_metadata_);
  6847. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  6848. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  6849. _impl_.commit_time_ = (cached_has_bits & 0x00000001u)
  6850. ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.commit_time_)
  6851. : nullptr;
  6852. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.WriteResponse)
  6853. }
  6854. inline PROTOBUF_NDEBUG_INLINE WriteResponse::Impl_::Impl_(
  6855. ::google::protobuf::internal::InternalVisibility visibility,
  6856. ::google::protobuf::Arena* arena)
  6857. : _cached_size_{0},
  6858. write_results_{visibility, arena},
  6859. stream_id_(arena),
  6860. stream_token_(arena) {}
  6861. inline void WriteResponse::SharedCtor(::_pb::Arena* arena) {
  6862. new (&_impl_) Impl_(internal_visibility(), arena);
  6863. _impl_.commit_time_ = {};
  6864. }
  6865. WriteResponse::~WriteResponse() {
  6866. // @@protoc_insertion_point(destructor:google.firestore.v1.WriteResponse)
  6867. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  6868. SharedDtor();
  6869. }
  6870. inline void WriteResponse::SharedDtor() {
  6871. ABSL_DCHECK(GetArena() == nullptr);
  6872. _impl_.stream_id_.Destroy();
  6873. _impl_.stream_token_.Destroy();
  6874. delete _impl_.commit_time_;
  6875. _impl_.~Impl_();
  6876. }
  6877. PROTOBUF_NOINLINE void WriteResponse::Clear() {
  6878. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.WriteResponse)
  6879. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6880. ::uint32_t cached_has_bits = 0;
  6881. // Prevent compiler warnings about cached_has_bits being unused
  6882. (void) cached_has_bits;
  6883. _impl_.write_results_.Clear();
  6884. _impl_.stream_id_.ClearToEmpty();
  6885. _impl_.stream_token_.ClearToEmpty();
  6886. cached_has_bits = _impl_._has_bits_[0];
  6887. if (cached_has_bits & 0x00000001u) {
  6888. ABSL_DCHECK(_impl_.commit_time_ != nullptr);
  6889. _impl_.commit_time_->Clear();
  6890. }
  6891. _impl_._has_bits_.Clear();
  6892. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  6893. }
  6894. const char* WriteResponse::_InternalParse(
  6895. const char* ptr, ::_pbi::ParseContext* ctx) {
  6896. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  6897. return ptr;
  6898. }
  6899. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  6900. const ::_pbi::TcParseTable<2, 4, 2, 51, 2> WriteResponse::_table_ = {
  6901. {
  6902. PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_._has_bits_),
  6903. 0, // no _extensions_
  6904. 4, 24, // max_field_number, fast_idx_mask
  6905. offsetof(decltype(_table_), field_lookup_table),
  6906. 4294967280, // skipmap
  6907. offsetof(decltype(_table_), field_entries),
  6908. 4, // num_field_entries
  6909. 2, // num_aux_entries
  6910. offsetof(decltype(_table_), aux_entries),
  6911. &_WriteResponse_default_instance_._instance,
  6912. ::_pbi::TcParser::GenericFallback, // fallback
  6913. }, {{
  6914. // .google.protobuf.Timestamp commit_time = 4;
  6915. {::_pbi::TcParser::FastMtS1,
  6916. {34, 0, 1, PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_.commit_time_)}},
  6917. // string stream_id = 1;
  6918. {::_pbi::TcParser::FastUS1,
  6919. {10, 63, 0, PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_.stream_id_)}},
  6920. // bytes stream_token = 2;
  6921. {::_pbi::TcParser::FastBS1,
  6922. {18, 63, 0, PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_.stream_token_)}},
  6923. // repeated .google.firestore.v1.WriteResult write_results = 3;
  6924. {::_pbi::TcParser::FastMtR1,
  6925. {26, 63, 0, PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_.write_results_)}},
  6926. }}, {{
  6927. 65535, 65535
  6928. }}, {{
  6929. // string stream_id = 1;
  6930. {PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_.stream_id_), -1, 0,
  6931. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  6932. // bytes stream_token = 2;
  6933. {PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_.stream_token_), -1, 0,
  6934. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  6935. // repeated .google.firestore.v1.WriteResult write_results = 3;
  6936. {PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_.write_results_), -1, 0,
  6937. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  6938. // .google.protobuf.Timestamp commit_time = 4;
  6939. {PROTOBUF_FIELD_OFFSET(WriteResponse, _impl_.commit_time_), _Internal::kHasBitsOffset + 0, 1,
  6940. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  6941. }}, {{
  6942. {::_pbi::TcParser::GetTable<::google::firestore::v1::WriteResult>()},
  6943. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  6944. }}, {{
  6945. "\41\11\0\0\0\0\0\0"
  6946. "google.firestore.v1.WriteResponse"
  6947. "stream_id"
  6948. }},
  6949. };
  6950. ::uint8_t* WriteResponse::_InternalSerialize(
  6951. ::uint8_t* target,
  6952. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  6953. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.WriteResponse)
  6954. ::uint32_t cached_has_bits = 0;
  6955. (void)cached_has_bits;
  6956. // string stream_id = 1;
  6957. if (!this->_internal_stream_id().empty()) {
  6958. const std::string& _s = this->_internal_stream_id();
  6959. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6960. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.WriteResponse.stream_id");
  6961. target = stream->WriteStringMaybeAliased(1, _s, target);
  6962. }
  6963. // bytes stream_token = 2;
  6964. if (!this->_internal_stream_token().empty()) {
  6965. const std::string& _s = this->_internal_stream_token();
  6966. target = stream->WriteBytesMaybeAliased(2, _s, target);
  6967. }
  6968. // repeated .google.firestore.v1.WriteResult write_results = 3;
  6969. for (unsigned i = 0,
  6970. n = static_cast<unsigned>(this->_internal_write_results_size()); i < n; i++) {
  6971. const auto& repfield = this->_internal_write_results().Get(i);
  6972. target = ::google::protobuf::internal::WireFormatLite::
  6973. InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  6974. }
  6975. cached_has_bits = _impl_._has_bits_[0];
  6976. // .google.protobuf.Timestamp commit_time = 4;
  6977. if (cached_has_bits & 0x00000001u) {
  6978. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  6979. 4, _Internal::commit_time(this),
  6980. _Internal::commit_time(this).GetCachedSize(), target, stream);
  6981. }
  6982. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6983. target =
  6984. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  6985. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  6986. }
  6987. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.WriteResponse)
  6988. return target;
  6989. }
  6990. ::size_t WriteResponse::ByteSizeLong() const {
  6991. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.WriteResponse)
  6992. ::size_t total_size = 0;
  6993. ::uint32_t cached_has_bits = 0;
  6994. // Prevent compiler warnings about cached_has_bits being unused
  6995. (void) cached_has_bits;
  6996. // repeated .google.firestore.v1.WriteResult write_results = 3;
  6997. total_size += 1UL * this->_internal_write_results_size();
  6998. for (const auto& msg : this->_internal_write_results()) {
  6999. total_size +=
  7000. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  7001. }
  7002. // string stream_id = 1;
  7003. if (!this->_internal_stream_id().empty()) {
  7004. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  7005. this->_internal_stream_id());
  7006. }
  7007. // bytes stream_token = 2;
  7008. if (!this->_internal_stream_token().empty()) {
  7009. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  7010. this->_internal_stream_token());
  7011. }
  7012. // .google.protobuf.Timestamp commit_time = 4;
  7013. cached_has_bits = _impl_._has_bits_[0];
  7014. if (cached_has_bits & 0x00000001u) {
  7015. total_size +=
  7016. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.commit_time_);
  7017. }
  7018. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  7019. }
  7020. const ::google::protobuf::Message::ClassData WriteResponse::_class_data_ = {
  7021. WriteResponse::MergeImpl,
  7022. nullptr, // OnDemandRegisterArenaDtor
  7023. };
  7024. const ::google::protobuf::Message::ClassData* WriteResponse::GetClassData() const {
  7025. return &_class_data_;
  7026. }
  7027. void WriteResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  7028. auto* const _this = static_cast<WriteResponse*>(&to_msg);
  7029. auto& from = static_cast<const WriteResponse&>(from_msg);
  7030. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.WriteResponse)
  7031. ABSL_DCHECK_NE(&from, _this);
  7032. ::uint32_t cached_has_bits = 0;
  7033. (void) cached_has_bits;
  7034. _this->_internal_mutable_write_results()->MergeFrom(
  7035. from._internal_write_results());
  7036. if (!from._internal_stream_id().empty()) {
  7037. _this->_internal_set_stream_id(from._internal_stream_id());
  7038. }
  7039. if (!from._internal_stream_token().empty()) {
  7040. _this->_internal_set_stream_token(from._internal_stream_token());
  7041. }
  7042. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  7043. _this->_internal_mutable_commit_time()->::google::protobuf::Timestamp::MergeFrom(
  7044. from._internal_commit_time());
  7045. }
  7046. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  7047. }
  7048. void WriteResponse::CopyFrom(const WriteResponse& from) {
  7049. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.WriteResponse)
  7050. if (&from == this) return;
  7051. Clear();
  7052. MergeFrom(from);
  7053. }
  7054. PROTOBUF_NOINLINE bool WriteResponse::IsInitialized() const {
  7055. return true;
  7056. }
  7057. ::_pbi::CachedSize* WriteResponse::AccessCachedSize() const {
  7058. return &_impl_._cached_size_;
  7059. }
  7060. void WriteResponse::InternalSwap(WriteResponse* PROTOBUF_RESTRICT other) {
  7061. using std::swap;
  7062. auto* arena = GetArena();
  7063. ABSL_DCHECK_EQ(arena, other->GetArena());
  7064. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7065. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  7066. _impl_.write_results_.InternalSwap(&other->_impl_.write_results_);
  7067. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stream_id_, &other->_impl_.stream_id_, arena);
  7068. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stream_token_, &other->_impl_.stream_token_, arena);
  7069. swap(_impl_.commit_time_, other->_impl_.commit_time_);
  7070. }
  7071. ::google::protobuf::Metadata WriteResponse::GetMetadata() const {
  7072. return ::_pbi::AssignDescriptors(
  7073. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  7074. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[19]);
  7075. }
  7076. // ===================================================================
  7077. ListenRequest_LabelsEntry_DoNotUse::ListenRequest_LabelsEntry_DoNotUse() {}
  7078. ListenRequest_LabelsEntry_DoNotUse::ListenRequest_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena)
  7079. : SuperType(arena) {}
  7080. ::google::protobuf::Metadata ListenRequest_LabelsEntry_DoNotUse::GetMetadata() const {
  7081. return ::_pbi::AssignDescriptors(
  7082. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  7083. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[20]);
  7084. }
  7085. // ===================================================================
  7086. class ListenRequest::_Internal {
  7087. public:
  7088. static constexpr ::int32_t kOneofCaseOffset =
  7089. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenRequest, _impl_._oneof_case_);
  7090. static const ::google::firestore::v1::Target& add_target(const ListenRequest* msg);
  7091. };
  7092. const ::google::firestore::v1::Target& ListenRequest::_Internal::add_target(const ListenRequest* msg) {
  7093. return *msg->_impl_.target_change_.add_target_;
  7094. }
  7095. void ListenRequest::set_allocated_add_target(::google::firestore::v1::Target* add_target) {
  7096. ::google::protobuf::Arena* message_arena = GetArena();
  7097. clear_target_change();
  7098. if (add_target) {
  7099. ::google::protobuf::Arena* submessage_arena = add_target->GetArena();
  7100. if (message_arena != submessage_arena) {
  7101. add_target = ::google::protobuf::internal::GetOwnedMessage(message_arena, add_target, submessage_arena);
  7102. }
  7103. set_has_add_target();
  7104. _impl_.target_change_.add_target_ = add_target;
  7105. }
  7106. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenRequest.add_target)
  7107. }
  7108. ListenRequest::ListenRequest(::google::protobuf::Arena* arena)
  7109. : ::google::protobuf::Message(arena) {
  7110. SharedCtor(arena);
  7111. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ListenRequest)
  7112. }
  7113. inline PROTOBUF_NDEBUG_INLINE ListenRequest::Impl_::Impl_(
  7114. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  7115. const Impl_& from)
  7116. : labels_{visibility, arena, from.labels_},
  7117. database_(arena, from.database_),
  7118. target_change_{},
  7119. _cached_size_{0},
  7120. _oneof_case_{from._oneof_case_[0]} {}
  7121. ListenRequest::ListenRequest(
  7122. ::google::protobuf::Arena* arena,
  7123. const ListenRequest& from)
  7124. : ::google::protobuf::Message(arena) {
  7125. ListenRequest* const _this = this;
  7126. (void)_this;
  7127. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  7128. from._internal_metadata_);
  7129. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  7130. switch (target_change_case()) {
  7131. case TARGET_CHANGE_NOT_SET:
  7132. break;
  7133. case kAddTarget:
  7134. _impl_.target_change_.add_target_ = CreateMaybeMessage<::google::firestore::v1::Target>(arena, *from._impl_.target_change_.add_target_);
  7135. break;
  7136. case kRemoveTarget:
  7137. _impl_.target_change_.remove_target_ = from._impl_.target_change_.remove_target_;
  7138. break;
  7139. }
  7140. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ListenRequest)
  7141. }
  7142. inline PROTOBUF_NDEBUG_INLINE ListenRequest::Impl_::Impl_(
  7143. ::google::protobuf::internal::InternalVisibility visibility,
  7144. ::google::protobuf::Arena* arena)
  7145. : labels_{visibility, arena},
  7146. database_(arena),
  7147. target_change_{},
  7148. _cached_size_{0},
  7149. _oneof_case_{} {}
  7150. inline void ListenRequest::SharedCtor(::_pb::Arena* arena) {
  7151. new (&_impl_) Impl_(internal_visibility(), arena);
  7152. }
  7153. ListenRequest::~ListenRequest() {
  7154. // @@protoc_insertion_point(destructor:google.firestore.v1.ListenRequest)
  7155. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  7156. SharedDtor();
  7157. }
  7158. inline void ListenRequest::SharedDtor() {
  7159. ABSL_DCHECK(GetArena() == nullptr);
  7160. _impl_.database_.Destroy();
  7161. if (has_target_change()) {
  7162. clear_target_change();
  7163. }
  7164. _impl_.~Impl_();
  7165. }
  7166. void ListenRequest::clear_target_change() {
  7167. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.ListenRequest)
  7168. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7169. switch (target_change_case()) {
  7170. case kAddTarget: {
  7171. if (GetArena() == nullptr) {
  7172. delete _impl_.target_change_.add_target_;
  7173. }
  7174. break;
  7175. }
  7176. case kRemoveTarget: {
  7177. // No need to clear
  7178. break;
  7179. }
  7180. case TARGET_CHANGE_NOT_SET: {
  7181. break;
  7182. }
  7183. }
  7184. _impl_._oneof_case_[0] = TARGET_CHANGE_NOT_SET;
  7185. }
  7186. PROTOBUF_NOINLINE void ListenRequest::Clear() {
  7187. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ListenRequest)
  7188. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7189. ::uint32_t cached_has_bits = 0;
  7190. // Prevent compiler warnings about cached_has_bits being unused
  7191. (void) cached_has_bits;
  7192. _impl_.labels_.Clear();
  7193. _impl_.database_.ClearToEmpty();
  7194. clear_target_change();
  7195. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  7196. }
  7197. const char* ListenRequest::_InternalParse(
  7198. const char* ptr, ::_pbi::ParseContext* ctx) {
  7199. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  7200. return ptr;
  7201. }
  7202. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  7203. const ::_pbi::TcParseTable<0, 4, 2, 56, 2> ListenRequest::_table_ = {
  7204. {
  7205. 0, // no _has_bits_
  7206. 0, // no _extensions_
  7207. 4, 0, // max_field_number, fast_idx_mask
  7208. offsetof(decltype(_table_), field_lookup_table),
  7209. 4294967280, // skipmap
  7210. offsetof(decltype(_table_), field_entries),
  7211. 4, // num_field_entries
  7212. 2, // num_aux_entries
  7213. offsetof(decltype(_table_), aux_entries),
  7214. &_ListenRequest_default_instance_._instance,
  7215. ::_pbi::TcParser::GenericFallback, // fallback
  7216. }, {{
  7217. // string database = 1;
  7218. {::_pbi::TcParser::FastUS1,
  7219. {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListenRequest, _impl_.database_)}},
  7220. }}, {{
  7221. 65535, 65535
  7222. }}, {{
  7223. // string database = 1;
  7224. {PROTOBUF_FIELD_OFFSET(ListenRequest, _impl_.database_), 0, 0,
  7225. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  7226. // .google.firestore.v1.Target add_target = 2;
  7227. {PROTOBUF_FIELD_OFFSET(ListenRequest, _impl_.target_change_.add_target_), _Internal::kOneofCaseOffset + 0, 0,
  7228. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  7229. // int32 remove_target = 3;
  7230. {PROTOBUF_FIELD_OFFSET(ListenRequest, _impl_.target_change_.remove_target_), _Internal::kOneofCaseOffset + 0, 0,
  7231. (0 | ::_fl::kFcOneof | ::_fl::kInt32)},
  7232. // map<string, string> labels = 4;
  7233. {PROTOBUF_FIELD_OFFSET(ListenRequest, _impl_.labels_), 0, 1,
  7234. (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
  7235. }}, {{
  7236. {::_pbi::TcParser::GetTable<::google::firestore::v1::Target>()},
  7237. {::_pbi::TcParser::GetMapAuxInfo<
  7238. decltype(ListenRequest()._impl_.labels_)>(
  7239. 1, 0, 0, 9,
  7240. 9)},
  7241. }}, {{
  7242. "\41\10\0\0\6\0\0\0"
  7243. "google.firestore.v1.ListenRequest"
  7244. "database"
  7245. "labels"
  7246. }},
  7247. };
  7248. ::uint8_t* ListenRequest::_InternalSerialize(
  7249. ::uint8_t* target,
  7250. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  7251. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ListenRequest)
  7252. ::uint32_t cached_has_bits = 0;
  7253. (void)cached_has_bits;
  7254. // string database = 1;
  7255. if (!this->_internal_database().empty()) {
  7256. const std::string& _s = this->_internal_database();
  7257. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  7258. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListenRequest.database");
  7259. target = stream->WriteStringMaybeAliased(1, _s, target);
  7260. }
  7261. switch (target_change_case()) {
  7262. case kAddTarget: {
  7263. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  7264. 2, _Internal::add_target(this),
  7265. _Internal::add_target(this).GetCachedSize(), target, stream);
  7266. break;
  7267. }
  7268. case kRemoveTarget: {
  7269. target = ::google::protobuf::internal::WireFormatLite::
  7270. WriteInt32ToArrayWithField<3>(
  7271. stream, this->_internal_remove_target(), target);
  7272. break;
  7273. }
  7274. default:
  7275. break;
  7276. }
  7277. // map<string, string> labels = 4;
  7278. if (!_internal_labels().empty()) {
  7279. using MapType = ::google::protobuf::Map<std::string, std::string>;
  7280. using WireHelper = _pbi::MapEntryFuncs<std::string, std::string,
  7281. _pbi::WireFormatLite::TYPE_STRING,
  7282. _pbi::WireFormatLite::TYPE_STRING>;
  7283. const auto& field = _internal_labels();
  7284. if (stream->IsSerializationDeterministic() && field.size() > 1) {
  7285. for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
  7286. target = WireHelper::InternalSerialize(
  7287. 4, entry.first, entry.second, target, stream);
  7288. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  7289. entry.first.data(), static_cast<int>(entry.first.length()),
  7290. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListenRequest.labels");
  7291. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  7292. entry.second.data(), static_cast<int>(entry.second.length()),
  7293. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListenRequest.labels");
  7294. }
  7295. } else {
  7296. for (const auto& entry : field) {
  7297. target = WireHelper::InternalSerialize(
  7298. 4, entry.first, entry.second, target, stream);
  7299. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  7300. entry.first.data(), static_cast<int>(entry.first.length()),
  7301. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListenRequest.labels");
  7302. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  7303. entry.second.data(), static_cast<int>(entry.second.length()),
  7304. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListenRequest.labels");
  7305. }
  7306. }
  7307. }
  7308. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7309. target =
  7310. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  7311. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  7312. }
  7313. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ListenRequest)
  7314. return target;
  7315. }
  7316. ::size_t ListenRequest::ByteSizeLong() const {
  7317. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ListenRequest)
  7318. ::size_t total_size = 0;
  7319. ::uint32_t cached_has_bits = 0;
  7320. // Prevent compiler warnings about cached_has_bits being unused
  7321. (void) cached_has_bits;
  7322. // map<string, string> labels = 4;
  7323. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_labels_size());
  7324. for (const auto& entry : _internal_labels()) {
  7325. total_size += _pbi::MapEntryFuncs<std::string, std::string,
  7326. _pbi::WireFormatLite::TYPE_STRING,
  7327. _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second);
  7328. }
  7329. // string database = 1;
  7330. if (!this->_internal_database().empty()) {
  7331. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  7332. this->_internal_database());
  7333. }
  7334. switch (target_change_case()) {
  7335. // .google.firestore.v1.Target add_target = 2;
  7336. case kAddTarget: {
  7337. total_size +=
  7338. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_change_.add_target_);
  7339. break;
  7340. }
  7341. // int32 remove_target = 3;
  7342. case kRemoveTarget: {
  7343. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  7344. this->_internal_remove_target());
  7345. break;
  7346. }
  7347. case TARGET_CHANGE_NOT_SET: {
  7348. break;
  7349. }
  7350. }
  7351. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  7352. }
  7353. const ::google::protobuf::Message::ClassData ListenRequest::_class_data_ = {
  7354. ListenRequest::MergeImpl,
  7355. nullptr, // OnDemandRegisterArenaDtor
  7356. };
  7357. const ::google::protobuf::Message::ClassData* ListenRequest::GetClassData() const {
  7358. return &_class_data_;
  7359. }
  7360. void ListenRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  7361. auto* const _this = static_cast<ListenRequest*>(&to_msg);
  7362. auto& from = static_cast<const ListenRequest&>(from_msg);
  7363. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ListenRequest)
  7364. ABSL_DCHECK_NE(&from, _this);
  7365. ::uint32_t cached_has_bits = 0;
  7366. (void) cached_has_bits;
  7367. _this->_impl_.labels_.MergeFrom(from._impl_.labels_);
  7368. if (!from._internal_database().empty()) {
  7369. _this->_internal_set_database(from._internal_database());
  7370. }
  7371. switch (from.target_change_case()) {
  7372. case kAddTarget: {
  7373. _this->_internal_mutable_add_target()->::google::firestore::v1::Target::MergeFrom(
  7374. from._internal_add_target());
  7375. break;
  7376. }
  7377. case kRemoveTarget: {
  7378. _this->_internal_set_remove_target(from._internal_remove_target());
  7379. break;
  7380. }
  7381. case TARGET_CHANGE_NOT_SET: {
  7382. break;
  7383. }
  7384. }
  7385. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  7386. }
  7387. void ListenRequest::CopyFrom(const ListenRequest& from) {
  7388. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ListenRequest)
  7389. if (&from == this) return;
  7390. Clear();
  7391. MergeFrom(from);
  7392. }
  7393. PROTOBUF_NOINLINE bool ListenRequest::IsInitialized() const {
  7394. return true;
  7395. }
  7396. ::_pbi::CachedSize* ListenRequest::AccessCachedSize() const {
  7397. return &_impl_._cached_size_;
  7398. }
  7399. void ListenRequest::InternalSwap(ListenRequest* PROTOBUF_RESTRICT other) {
  7400. using std::swap;
  7401. auto* arena = GetArena();
  7402. ABSL_DCHECK_EQ(arena, other->GetArena());
  7403. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7404. _impl_.labels_.InternalSwap(&other->_impl_.labels_);
  7405. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.database_, &other->_impl_.database_, arena);
  7406. swap(_impl_.target_change_, other->_impl_.target_change_);
  7407. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  7408. }
  7409. ::google::protobuf::Metadata ListenRequest::GetMetadata() const {
  7410. return ::_pbi::AssignDescriptors(
  7411. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  7412. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[21]);
  7413. }
  7414. // ===================================================================
  7415. class ListenResponse::_Internal {
  7416. public:
  7417. static constexpr ::int32_t kOneofCaseOffset =
  7418. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ListenResponse, _impl_._oneof_case_);
  7419. static const ::google::firestore::v1::TargetChange& target_change(const ListenResponse* msg);
  7420. static const ::google::firestore::v1::DocumentChange& document_change(const ListenResponse* msg);
  7421. static const ::google::firestore::v1::DocumentDelete& document_delete(const ListenResponse* msg);
  7422. static const ::google::firestore::v1::DocumentRemove& document_remove(const ListenResponse* msg);
  7423. static const ::google::firestore::v1::ExistenceFilter& filter(const ListenResponse* msg);
  7424. };
  7425. const ::google::firestore::v1::TargetChange& ListenResponse::_Internal::target_change(const ListenResponse* msg) {
  7426. return *msg->_impl_.response_type_.target_change_;
  7427. }
  7428. const ::google::firestore::v1::DocumentChange& ListenResponse::_Internal::document_change(const ListenResponse* msg) {
  7429. return *msg->_impl_.response_type_.document_change_;
  7430. }
  7431. const ::google::firestore::v1::DocumentDelete& ListenResponse::_Internal::document_delete(const ListenResponse* msg) {
  7432. return *msg->_impl_.response_type_.document_delete_;
  7433. }
  7434. const ::google::firestore::v1::DocumentRemove& ListenResponse::_Internal::document_remove(const ListenResponse* msg) {
  7435. return *msg->_impl_.response_type_.document_remove_;
  7436. }
  7437. const ::google::firestore::v1::ExistenceFilter& ListenResponse::_Internal::filter(const ListenResponse* msg) {
  7438. return *msg->_impl_.response_type_.filter_;
  7439. }
  7440. void ListenResponse::set_allocated_target_change(::google::firestore::v1::TargetChange* target_change) {
  7441. ::google::protobuf::Arena* message_arena = GetArena();
  7442. clear_response_type();
  7443. if (target_change) {
  7444. ::google::protobuf::Arena* submessage_arena = target_change->GetArena();
  7445. if (message_arena != submessage_arena) {
  7446. target_change = ::google::protobuf::internal::GetOwnedMessage(message_arena, target_change, submessage_arena);
  7447. }
  7448. set_has_target_change();
  7449. _impl_.response_type_.target_change_ = target_change;
  7450. }
  7451. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenResponse.target_change)
  7452. }
  7453. void ListenResponse::set_allocated_document_change(::google::firestore::v1::DocumentChange* document_change) {
  7454. ::google::protobuf::Arena* message_arena = GetArena();
  7455. clear_response_type();
  7456. if (document_change) {
  7457. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(document_change)->GetArena();
  7458. if (message_arena != submessage_arena) {
  7459. document_change = ::google::protobuf::internal::GetOwnedMessage(message_arena, document_change, submessage_arena);
  7460. }
  7461. set_has_document_change();
  7462. _impl_.response_type_.document_change_ = document_change;
  7463. }
  7464. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenResponse.document_change)
  7465. }
  7466. void ListenResponse::clear_document_change() {
  7467. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7468. if (response_type_case() == kDocumentChange) {
  7469. if (GetArena() == nullptr) {
  7470. delete _impl_.response_type_.document_change_;
  7471. }
  7472. clear_has_response_type();
  7473. }
  7474. }
  7475. void ListenResponse::set_allocated_document_delete(::google::firestore::v1::DocumentDelete* document_delete) {
  7476. ::google::protobuf::Arena* message_arena = GetArena();
  7477. clear_response_type();
  7478. if (document_delete) {
  7479. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(document_delete)->GetArena();
  7480. if (message_arena != submessage_arena) {
  7481. document_delete = ::google::protobuf::internal::GetOwnedMessage(message_arena, document_delete, submessage_arena);
  7482. }
  7483. set_has_document_delete();
  7484. _impl_.response_type_.document_delete_ = document_delete;
  7485. }
  7486. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenResponse.document_delete)
  7487. }
  7488. void ListenResponse::clear_document_delete() {
  7489. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7490. if (response_type_case() == kDocumentDelete) {
  7491. if (GetArena() == nullptr) {
  7492. delete _impl_.response_type_.document_delete_;
  7493. }
  7494. clear_has_response_type();
  7495. }
  7496. }
  7497. void ListenResponse::set_allocated_document_remove(::google::firestore::v1::DocumentRemove* document_remove) {
  7498. ::google::protobuf::Arena* message_arena = GetArena();
  7499. clear_response_type();
  7500. if (document_remove) {
  7501. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(document_remove)->GetArena();
  7502. if (message_arena != submessage_arena) {
  7503. document_remove = ::google::protobuf::internal::GetOwnedMessage(message_arena, document_remove, submessage_arena);
  7504. }
  7505. set_has_document_remove();
  7506. _impl_.response_type_.document_remove_ = document_remove;
  7507. }
  7508. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenResponse.document_remove)
  7509. }
  7510. void ListenResponse::clear_document_remove() {
  7511. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7512. if (response_type_case() == kDocumentRemove) {
  7513. if (GetArena() == nullptr) {
  7514. delete _impl_.response_type_.document_remove_;
  7515. }
  7516. clear_has_response_type();
  7517. }
  7518. }
  7519. void ListenResponse::set_allocated_filter(::google::firestore::v1::ExistenceFilter* filter) {
  7520. ::google::protobuf::Arena* message_arena = GetArena();
  7521. clear_response_type();
  7522. if (filter) {
  7523. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(filter)->GetArena();
  7524. if (message_arena != submessage_arena) {
  7525. filter = ::google::protobuf::internal::GetOwnedMessage(message_arena, filter, submessage_arena);
  7526. }
  7527. set_has_filter();
  7528. _impl_.response_type_.filter_ = filter;
  7529. }
  7530. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenResponse.filter)
  7531. }
  7532. void ListenResponse::clear_filter() {
  7533. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7534. if (response_type_case() == kFilter) {
  7535. if (GetArena() == nullptr) {
  7536. delete _impl_.response_type_.filter_;
  7537. }
  7538. clear_has_response_type();
  7539. }
  7540. }
  7541. ListenResponse::ListenResponse(::google::protobuf::Arena* arena)
  7542. : ::google::protobuf::Message(arena) {
  7543. SharedCtor(arena);
  7544. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ListenResponse)
  7545. }
  7546. inline PROTOBUF_NDEBUG_INLINE ListenResponse::Impl_::Impl_(
  7547. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  7548. const Impl_& from)
  7549. : response_type_{},
  7550. _cached_size_{0},
  7551. _oneof_case_{from._oneof_case_[0]} {}
  7552. ListenResponse::ListenResponse(
  7553. ::google::protobuf::Arena* arena,
  7554. const ListenResponse& from)
  7555. : ::google::protobuf::Message(arena) {
  7556. ListenResponse* const _this = this;
  7557. (void)_this;
  7558. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  7559. from._internal_metadata_);
  7560. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  7561. switch (response_type_case()) {
  7562. case RESPONSE_TYPE_NOT_SET:
  7563. break;
  7564. case kTargetChange:
  7565. _impl_.response_type_.target_change_ = CreateMaybeMessage<::google::firestore::v1::TargetChange>(arena, *from._impl_.response_type_.target_change_);
  7566. break;
  7567. case kDocumentChange:
  7568. _impl_.response_type_.document_change_ = CreateMaybeMessage<::google::firestore::v1::DocumentChange>(arena, *from._impl_.response_type_.document_change_);
  7569. break;
  7570. case kDocumentDelete:
  7571. _impl_.response_type_.document_delete_ = CreateMaybeMessage<::google::firestore::v1::DocumentDelete>(arena, *from._impl_.response_type_.document_delete_);
  7572. break;
  7573. case kDocumentRemove:
  7574. _impl_.response_type_.document_remove_ = CreateMaybeMessage<::google::firestore::v1::DocumentRemove>(arena, *from._impl_.response_type_.document_remove_);
  7575. break;
  7576. case kFilter:
  7577. _impl_.response_type_.filter_ = CreateMaybeMessage<::google::firestore::v1::ExistenceFilter>(arena, *from._impl_.response_type_.filter_);
  7578. break;
  7579. }
  7580. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ListenResponse)
  7581. }
  7582. inline PROTOBUF_NDEBUG_INLINE ListenResponse::Impl_::Impl_(
  7583. ::google::protobuf::internal::InternalVisibility visibility,
  7584. ::google::protobuf::Arena* arena)
  7585. : response_type_{},
  7586. _cached_size_{0},
  7587. _oneof_case_{} {}
  7588. inline void ListenResponse::SharedCtor(::_pb::Arena* arena) {
  7589. new (&_impl_) Impl_(internal_visibility(), arena);
  7590. }
  7591. ListenResponse::~ListenResponse() {
  7592. // @@protoc_insertion_point(destructor:google.firestore.v1.ListenResponse)
  7593. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  7594. SharedDtor();
  7595. }
  7596. inline void ListenResponse::SharedDtor() {
  7597. ABSL_DCHECK(GetArena() == nullptr);
  7598. if (has_response_type()) {
  7599. clear_response_type();
  7600. }
  7601. _impl_.~Impl_();
  7602. }
  7603. void ListenResponse::clear_response_type() {
  7604. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.ListenResponse)
  7605. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7606. switch (response_type_case()) {
  7607. case kTargetChange: {
  7608. if (GetArena() == nullptr) {
  7609. delete _impl_.response_type_.target_change_;
  7610. }
  7611. break;
  7612. }
  7613. case kDocumentChange: {
  7614. if (GetArena() == nullptr) {
  7615. delete _impl_.response_type_.document_change_;
  7616. }
  7617. break;
  7618. }
  7619. case kDocumentDelete: {
  7620. if (GetArena() == nullptr) {
  7621. delete _impl_.response_type_.document_delete_;
  7622. }
  7623. break;
  7624. }
  7625. case kDocumentRemove: {
  7626. if (GetArena() == nullptr) {
  7627. delete _impl_.response_type_.document_remove_;
  7628. }
  7629. break;
  7630. }
  7631. case kFilter: {
  7632. if (GetArena() == nullptr) {
  7633. delete _impl_.response_type_.filter_;
  7634. }
  7635. break;
  7636. }
  7637. case RESPONSE_TYPE_NOT_SET: {
  7638. break;
  7639. }
  7640. }
  7641. _impl_._oneof_case_[0] = RESPONSE_TYPE_NOT_SET;
  7642. }
  7643. PROTOBUF_NOINLINE void ListenResponse::Clear() {
  7644. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ListenResponse)
  7645. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7646. ::uint32_t cached_has_bits = 0;
  7647. // Prevent compiler warnings about cached_has_bits being unused
  7648. (void) cached_has_bits;
  7649. clear_response_type();
  7650. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  7651. }
  7652. const char* ListenResponse::_InternalParse(
  7653. const char* ptr, ::_pbi::ParseContext* ctx) {
  7654. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  7655. return ptr;
  7656. }
  7657. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  7658. const ::_pbi::TcParseTable<0, 5, 5, 0, 2> ListenResponse::_table_ = {
  7659. {
  7660. 0, // no _has_bits_
  7661. 0, // no _extensions_
  7662. 6, 0, // max_field_number, fast_idx_mask
  7663. offsetof(decltype(_table_), field_lookup_table),
  7664. 4294967233, // skipmap
  7665. offsetof(decltype(_table_), field_entries),
  7666. 5, // num_field_entries
  7667. 5, // num_aux_entries
  7668. offsetof(decltype(_table_), aux_entries),
  7669. &_ListenResponse_default_instance_._instance,
  7670. ::_pbi::TcParser::GenericFallback, // fallback
  7671. }, {{
  7672. {::_pbi::TcParser::MiniParse, {}},
  7673. }}, {{
  7674. 65535, 65535
  7675. }}, {{
  7676. // .google.firestore.v1.TargetChange target_change = 2;
  7677. {PROTOBUF_FIELD_OFFSET(ListenResponse, _impl_.response_type_.target_change_), _Internal::kOneofCaseOffset + 0, 0,
  7678. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  7679. // .google.firestore.v1.DocumentChange document_change = 3;
  7680. {PROTOBUF_FIELD_OFFSET(ListenResponse, _impl_.response_type_.document_change_), _Internal::kOneofCaseOffset + 0, 1,
  7681. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  7682. // .google.firestore.v1.DocumentDelete document_delete = 4;
  7683. {PROTOBUF_FIELD_OFFSET(ListenResponse, _impl_.response_type_.document_delete_), _Internal::kOneofCaseOffset + 0, 2,
  7684. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  7685. // .google.firestore.v1.ExistenceFilter filter = 5;
  7686. {PROTOBUF_FIELD_OFFSET(ListenResponse, _impl_.response_type_.filter_), _Internal::kOneofCaseOffset + 0, 3,
  7687. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  7688. // .google.firestore.v1.DocumentRemove document_remove = 6;
  7689. {PROTOBUF_FIELD_OFFSET(ListenResponse, _impl_.response_type_.document_remove_), _Internal::kOneofCaseOffset + 0, 4,
  7690. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  7691. }}, {{
  7692. {::_pbi::TcParser::GetTable<::google::firestore::v1::TargetChange>()},
  7693. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentChange>()},
  7694. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentDelete>()},
  7695. {::_pbi::TcParser::GetTable<::google::firestore::v1::ExistenceFilter>()},
  7696. {::_pbi::TcParser::GetTable<::google::firestore::v1::DocumentRemove>()},
  7697. }}, {{
  7698. }},
  7699. };
  7700. ::uint8_t* ListenResponse::_InternalSerialize(
  7701. ::uint8_t* target,
  7702. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  7703. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ListenResponse)
  7704. ::uint32_t cached_has_bits = 0;
  7705. (void)cached_has_bits;
  7706. switch (response_type_case()) {
  7707. case kTargetChange: {
  7708. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  7709. 2, _Internal::target_change(this),
  7710. _Internal::target_change(this).GetCachedSize(), target, stream);
  7711. break;
  7712. }
  7713. case kDocumentChange: {
  7714. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  7715. 3, _Internal::document_change(this),
  7716. _Internal::document_change(this).GetCachedSize(), target, stream);
  7717. break;
  7718. }
  7719. case kDocumentDelete: {
  7720. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  7721. 4, _Internal::document_delete(this),
  7722. _Internal::document_delete(this).GetCachedSize(), target, stream);
  7723. break;
  7724. }
  7725. case kFilter: {
  7726. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  7727. 5, _Internal::filter(this),
  7728. _Internal::filter(this).GetCachedSize(), target, stream);
  7729. break;
  7730. }
  7731. case kDocumentRemove: {
  7732. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  7733. 6, _Internal::document_remove(this),
  7734. _Internal::document_remove(this).GetCachedSize(), target, stream);
  7735. break;
  7736. }
  7737. default:
  7738. break;
  7739. }
  7740. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7741. target =
  7742. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  7743. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  7744. }
  7745. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ListenResponse)
  7746. return target;
  7747. }
  7748. ::size_t ListenResponse::ByteSizeLong() const {
  7749. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ListenResponse)
  7750. ::size_t total_size = 0;
  7751. ::uint32_t cached_has_bits = 0;
  7752. // Prevent compiler warnings about cached_has_bits being unused
  7753. (void) cached_has_bits;
  7754. switch (response_type_case()) {
  7755. // .google.firestore.v1.TargetChange target_change = 2;
  7756. case kTargetChange: {
  7757. total_size +=
  7758. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_type_.target_change_);
  7759. break;
  7760. }
  7761. // .google.firestore.v1.DocumentChange document_change = 3;
  7762. case kDocumentChange: {
  7763. total_size +=
  7764. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_type_.document_change_);
  7765. break;
  7766. }
  7767. // .google.firestore.v1.DocumentDelete document_delete = 4;
  7768. case kDocumentDelete: {
  7769. total_size +=
  7770. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_type_.document_delete_);
  7771. break;
  7772. }
  7773. // .google.firestore.v1.DocumentRemove document_remove = 6;
  7774. case kDocumentRemove: {
  7775. total_size +=
  7776. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_type_.document_remove_);
  7777. break;
  7778. }
  7779. // .google.firestore.v1.ExistenceFilter filter = 5;
  7780. case kFilter: {
  7781. total_size +=
  7782. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_type_.filter_);
  7783. break;
  7784. }
  7785. case RESPONSE_TYPE_NOT_SET: {
  7786. break;
  7787. }
  7788. }
  7789. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  7790. }
  7791. const ::google::protobuf::Message::ClassData ListenResponse::_class_data_ = {
  7792. ListenResponse::MergeImpl,
  7793. nullptr, // OnDemandRegisterArenaDtor
  7794. };
  7795. const ::google::protobuf::Message::ClassData* ListenResponse::GetClassData() const {
  7796. return &_class_data_;
  7797. }
  7798. void ListenResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  7799. auto* const _this = static_cast<ListenResponse*>(&to_msg);
  7800. auto& from = static_cast<const ListenResponse&>(from_msg);
  7801. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ListenResponse)
  7802. ABSL_DCHECK_NE(&from, _this);
  7803. ::uint32_t cached_has_bits = 0;
  7804. (void) cached_has_bits;
  7805. switch (from.response_type_case()) {
  7806. case kTargetChange: {
  7807. _this->_internal_mutable_target_change()->::google::firestore::v1::TargetChange::MergeFrom(
  7808. from._internal_target_change());
  7809. break;
  7810. }
  7811. case kDocumentChange: {
  7812. _this->_internal_mutable_document_change()->::google::firestore::v1::DocumentChange::MergeFrom(
  7813. from._internal_document_change());
  7814. break;
  7815. }
  7816. case kDocumentDelete: {
  7817. _this->_internal_mutable_document_delete()->::google::firestore::v1::DocumentDelete::MergeFrom(
  7818. from._internal_document_delete());
  7819. break;
  7820. }
  7821. case kDocumentRemove: {
  7822. _this->_internal_mutable_document_remove()->::google::firestore::v1::DocumentRemove::MergeFrom(
  7823. from._internal_document_remove());
  7824. break;
  7825. }
  7826. case kFilter: {
  7827. _this->_internal_mutable_filter()->::google::firestore::v1::ExistenceFilter::MergeFrom(
  7828. from._internal_filter());
  7829. break;
  7830. }
  7831. case RESPONSE_TYPE_NOT_SET: {
  7832. break;
  7833. }
  7834. }
  7835. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  7836. }
  7837. void ListenResponse::CopyFrom(const ListenResponse& from) {
  7838. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ListenResponse)
  7839. if (&from == this) return;
  7840. Clear();
  7841. MergeFrom(from);
  7842. }
  7843. PROTOBUF_NOINLINE bool ListenResponse::IsInitialized() const {
  7844. return true;
  7845. }
  7846. ::_pbi::CachedSize* ListenResponse::AccessCachedSize() const {
  7847. return &_impl_._cached_size_;
  7848. }
  7849. void ListenResponse::InternalSwap(ListenResponse* PROTOBUF_RESTRICT other) {
  7850. using std::swap;
  7851. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7852. swap(_impl_.response_type_, other->_impl_.response_type_);
  7853. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  7854. }
  7855. ::google::protobuf::Metadata ListenResponse::GetMetadata() const {
  7856. return ::_pbi::AssignDescriptors(
  7857. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  7858. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[22]);
  7859. }
  7860. // ===================================================================
  7861. class Target_DocumentsTarget::_Internal {
  7862. public:
  7863. };
  7864. Target_DocumentsTarget::Target_DocumentsTarget(::google::protobuf::Arena* arena)
  7865. : ::google::protobuf::Message(arena) {
  7866. SharedCtor(arena);
  7867. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Target.DocumentsTarget)
  7868. }
  7869. inline PROTOBUF_NDEBUG_INLINE Target_DocumentsTarget::Impl_::Impl_(
  7870. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  7871. const Impl_& from)
  7872. : documents_{visibility, arena, from.documents_},
  7873. _cached_size_{0} {}
  7874. Target_DocumentsTarget::Target_DocumentsTarget(
  7875. ::google::protobuf::Arena* arena,
  7876. const Target_DocumentsTarget& from)
  7877. : ::google::protobuf::Message(arena) {
  7878. Target_DocumentsTarget* const _this = this;
  7879. (void)_this;
  7880. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  7881. from._internal_metadata_);
  7882. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  7883. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Target.DocumentsTarget)
  7884. }
  7885. inline PROTOBUF_NDEBUG_INLINE Target_DocumentsTarget::Impl_::Impl_(
  7886. ::google::protobuf::internal::InternalVisibility visibility,
  7887. ::google::protobuf::Arena* arena)
  7888. : documents_{visibility, arena},
  7889. _cached_size_{0} {}
  7890. inline void Target_DocumentsTarget::SharedCtor(::_pb::Arena* arena) {
  7891. new (&_impl_) Impl_(internal_visibility(), arena);
  7892. }
  7893. Target_DocumentsTarget::~Target_DocumentsTarget() {
  7894. // @@protoc_insertion_point(destructor:google.firestore.v1.Target.DocumentsTarget)
  7895. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  7896. SharedDtor();
  7897. }
  7898. inline void Target_DocumentsTarget::SharedDtor() {
  7899. ABSL_DCHECK(GetArena() == nullptr);
  7900. _impl_.~Impl_();
  7901. }
  7902. PROTOBUF_NOINLINE void Target_DocumentsTarget::Clear() {
  7903. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Target.DocumentsTarget)
  7904. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7905. ::uint32_t cached_has_bits = 0;
  7906. // Prevent compiler warnings about cached_has_bits being unused
  7907. (void) cached_has_bits;
  7908. _impl_.documents_.Clear();
  7909. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  7910. }
  7911. const char* Target_DocumentsTarget::_InternalParse(
  7912. const char* ptr, ::_pbi::ParseContext* ctx) {
  7913. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  7914. return ptr;
  7915. }
  7916. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  7917. const ::_pbi::TcParseTable<0, 1, 0, 60, 2> Target_DocumentsTarget::_table_ = {
  7918. {
  7919. 0, // no _has_bits_
  7920. 0, // no _extensions_
  7921. 2, 0, // max_field_number, fast_idx_mask
  7922. offsetof(decltype(_table_), field_lookup_table),
  7923. 4294967293, // skipmap
  7924. offsetof(decltype(_table_), field_entries),
  7925. 1, // num_field_entries
  7926. 0, // num_aux_entries
  7927. offsetof(decltype(_table_), field_names), // no aux_entries
  7928. &_Target_DocumentsTarget_default_instance_._instance,
  7929. ::_pbi::TcParser::GenericFallback, // fallback
  7930. }, {{
  7931. // repeated string documents = 2;
  7932. {::_pbi::TcParser::FastUR1,
  7933. {18, 63, 0, PROTOBUF_FIELD_OFFSET(Target_DocumentsTarget, _impl_.documents_)}},
  7934. }}, {{
  7935. 65535, 65535
  7936. }}, {{
  7937. // repeated string documents = 2;
  7938. {PROTOBUF_FIELD_OFFSET(Target_DocumentsTarget, _impl_.documents_), 0, 0,
  7939. (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
  7940. }},
  7941. // no aux_entries
  7942. {{
  7943. "\52\11\0\0\0\0\0\0"
  7944. "google.firestore.v1.Target.DocumentsTarget"
  7945. "documents"
  7946. }},
  7947. };
  7948. ::uint8_t* Target_DocumentsTarget::_InternalSerialize(
  7949. ::uint8_t* target,
  7950. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  7951. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Target.DocumentsTarget)
  7952. ::uint32_t cached_has_bits = 0;
  7953. (void)cached_has_bits;
  7954. // repeated string documents = 2;
  7955. for (int i = 0, n = this->_internal_documents_size(); i < n; ++i) {
  7956. const auto& s = this->_internal_documents().Get(i);
  7957. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  7958. s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Target.DocumentsTarget.documents");
  7959. target = stream->WriteString(2, s, target);
  7960. }
  7961. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7962. target =
  7963. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  7964. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  7965. }
  7966. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Target.DocumentsTarget)
  7967. return target;
  7968. }
  7969. ::size_t Target_DocumentsTarget::ByteSizeLong() const {
  7970. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Target.DocumentsTarget)
  7971. ::size_t total_size = 0;
  7972. ::uint32_t cached_has_bits = 0;
  7973. // Prevent compiler warnings about cached_has_bits being unused
  7974. (void) cached_has_bits;
  7975. // repeated string documents = 2;
  7976. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_documents().size());
  7977. for (int i = 0, n = _internal_documents().size(); i < n; ++i) {
  7978. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  7979. _internal_documents().Get(i));
  7980. }
  7981. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  7982. }
  7983. const ::google::protobuf::Message::ClassData Target_DocumentsTarget::_class_data_ = {
  7984. Target_DocumentsTarget::MergeImpl,
  7985. nullptr, // OnDemandRegisterArenaDtor
  7986. };
  7987. const ::google::protobuf::Message::ClassData* Target_DocumentsTarget::GetClassData() const {
  7988. return &_class_data_;
  7989. }
  7990. void Target_DocumentsTarget::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  7991. auto* const _this = static_cast<Target_DocumentsTarget*>(&to_msg);
  7992. auto& from = static_cast<const Target_DocumentsTarget&>(from_msg);
  7993. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Target.DocumentsTarget)
  7994. ABSL_DCHECK_NE(&from, _this);
  7995. ::uint32_t cached_has_bits = 0;
  7996. (void) cached_has_bits;
  7997. _this->_internal_mutable_documents()->MergeFrom(from._internal_documents());
  7998. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  7999. }
  8000. void Target_DocumentsTarget::CopyFrom(const Target_DocumentsTarget& from) {
  8001. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Target.DocumentsTarget)
  8002. if (&from == this) return;
  8003. Clear();
  8004. MergeFrom(from);
  8005. }
  8006. PROTOBUF_NOINLINE bool Target_DocumentsTarget::IsInitialized() const {
  8007. return true;
  8008. }
  8009. ::_pbi::CachedSize* Target_DocumentsTarget::AccessCachedSize() const {
  8010. return &_impl_._cached_size_;
  8011. }
  8012. void Target_DocumentsTarget::InternalSwap(Target_DocumentsTarget* PROTOBUF_RESTRICT other) {
  8013. using std::swap;
  8014. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8015. _impl_.documents_.InternalSwap(&other->_impl_.documents_);
  8016. }
  8017. ::google::protobuf::Metadata Target_DocumentsTarget::GetMetadata() const {
  8018. return ::_pbi::AssignDescriptors(
  8019. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  8020. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[23]);
  8021. }
  8022. // ===================================================================
  8023. class Target_QueryTarget::_Internal {
  8024. public:
  8025. static constexpr ::int32_t kOneofCaseOffset =
  8026. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target_QueryTarget, _impl_._oneof_case_);
  8027. static const ::google::firestore::v1::StructuredQuery& structured_query(const Target_QueryTarget* msg);
  8028. };
  8029. const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::_Internal::structured_query(const Target_QueryTarget* msg) {
  8030. return *msg->_impl_.query_type_.structured_query_;
  8031. }
  8032. void Target_QueryTarget::set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query) {
  8033. ::google::protobuf::Arena* message_arena = GetArena();
  8034. clear_query_type();
  8035. if (structured_query) {
  8036. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(structured_query)->GetArena();
  8037. if (message_arena != submessage_arena) {
  8038. structured_query = ::google::protobuf::internal::GetOwnedMessage(message_arena, structured_query, submessage_arena);
  8039. }
  8040. set_has_structured_query();
  8041. _impl_.query_type_.structured_query_ = structured_query;
  8042. }
  8043. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.QueryTarget.structured_query)
  8044. }
  8045. void Target_QueryTarget::clear_structured_query() {
  8046. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8047. if (query_type_case() == kStructuredQuery) {
  8048. if (GetArena() == nullptr) {
  8049. delete _impl_.query_type_.structured_query_;
  8050. }
  8051. clear_has_query_type();
  8052. }
  8053. }
  8054. Target_QueryTarget::Target_QueryTarget(::google::protobuf::Arena* arena)
  8055. : ::google::protobuf::Message(arena) {
  8056. SharedCtor(arena);
  8057. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Target.QueryTarget)
  8058. }
  8059. inline PROTOBUF_NDEBUG_INLINE Target_QueryTarget::Impl_::Impl_(
  8060. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  8061. const Impl_& from)
  8062. : parent_(arena, from.parent_),
  8063. query_type_{},
  8064. _cached_size_{0},
  8065. _oneof_case_{from._oneof_case_[0]} {}
  8066. Target_QueryTarget::Target_QueryTarget(
  8067. ::google::protobuf::Arena* arena,
  8068. const Target_QueryTarget& from)
  8069. : ::google::protobuf::Message(arena) {
  8070. Target_QueryTarget* const _this = this;
  8071. (void)_this;
  8072. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  8073. from._internal_metadata_);
  8074. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  8075. switch (query_type_case()) {
  8076. case QUERY_TYPE_NOT_SET:
  8077. break;
  8078. case kStructuredQuery:
  8079. _impl_.query_type_.structured_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery>(arena, *from._impl_.query_type_.structured_query_);
  8080. break;
  8081. }
  8082. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Target.QueryTarget)
  8083. }
  8084. inline PROTOBUF_NDEBUG_INLINE Target_QueryTarget::Impl_::Impl_(
  8085. ::google::protobuf::internal::InternalVisibility visibility,
  8086. ::google::protobuf::Arena* arena)
  8087. : parent_(arena),
  8088. query_type_{},
  8089. _cached_size_{0},
  8090. _oneof_case_{} {}
  8091. inline void Target_QueryTarget::SharedCtor(::_pb::Arena* arena) {
  8092. new (&_impl_) Impl_(internal_visibility(), arena);
  8093. }
  8094. Target_QueryTarget::~Target_QueryTarget() {
  8095. // @@protoc_insertion_point(destructor:google.firestore.v1.Target.QueryTarget)
  8096. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  8097. SharedDtor();
  8098. }
  8099. inline void Target_QueryTarget::SharedDtor() {
  8100. ABSL_DCHECK(GetArena() == nullptr);
  8101. _impl_.parent_.Destroy();
  8102. if (has_query_type()) {
  8103. clear_query_type();
  8104. }
  8105. _impl_.~Impl_();
  8106. }
  8107. void Target_QueryTarget::clear_query_type() {
  8108. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.Target.QueryTarget)
  8109. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8110. switch (query_type_case()) {
  8111. case kStructuredQuery: {
  8112. if (GetArena() == nullptr) {
  8113. delete _impl_.query_type_.structured_query_;
  8114. }
  8115. break;
  8116. }
  8117. case QUERY_TYPE_NOT_SET: {
  8118. break;
  8119. }
  8120. }
  8121. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  8122. }
  8123. PROTOBUF_NOINLINE void Target_QueryTarget::Clear() {
  8124. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Target.QueryTarget)
  8125. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8126. ::uint32_t cached_has_bits = 0;
  8127. // Prevent compiler warnings about cached_has_bits being unused
  8128. (void) cached_has_bits;
  8129. _impl_.parent_.ClearToEmpty();
  8130. clear_query_type();
  8131. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  8132. }
  8133. const char* Target_QueryTarget::_InternalParse(
  8134. const char* ptr, ::_pbi::ParseContext* ctx) {
  8135. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  8136. return ptr;
  8137. }
  8138. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  8139. const ::_pbi::TcParseTable<0, 2, 1, 53, 2> Target_QueryTarget::_table_ = {
  8140. {
  8141. 0, // no _has_bits_
  8142. 0, // no _extensions_
  8143. 2, 0, // max_field_number, fast_idx_mask
  8144. offsetof(decltype(_table_), field_lookup_table),
  8145. 4294967292, // skipmap
  8146. offsetof(decltype(_table_), field_entries),
  8147. 2, // num_field_entries
  8148. 1, // num_aux_entries
  8149. offsetof(decltype(_table_), aux_entries),
  8150. &_Target_QueryTarget_default_instance_._instance,
  8151. ::_pbi::TcParser::GenericFallback, // fallback
  8152. }, {{
  8153. // string parent = 1;
  8154. {::_pbi::TcParser::FastUS1,
  8155. {10, 63, 0, PROTOBUF_FIELD_OFFSET(Target_QueryTarget, _impl_.parent_)}},
  8156. }}, {{
  8157. 65535, 65535
  8158. }}, {{
  8159. // string parent = 1;
  8160. {PROTOBUF_FIELD_OFFSET(Target_QueryTarget, _impl_.parent_), 0, 0,
  8161. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  8162. // .google.firestore.v1.StructuredQuery structured_query = 2;
  8163. {PROTOBUF_FIELD_OFFSET(Target_QueryTarget, _impl_.query_type_.structured_query_), _Internal::kOneofCaseOffset + 0, 0,
  8164. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  8165. }}, {{
  8166. {::_pbi::TcParser::GetTable<::google::firestore::v1::StructuredQuery>()},
  8167. }}, {{
  8168. "\46\6\0\0\0\0\0\0"
  8169. "google.firestore.v1.Target.QueryTarget"
  8170. "parent"
  8171. }},
  8172. };
  8173. ::uint8_t* Target_QueryTarget::_InternalSerialize(
  8174. ::uint8_t* target,
  8175. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  8176. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Target.QueryTarget)
  8177. ::uint32_t cached_has_bits = 0;
  8178. (void)cached_has_bits;
  8179. // string parent = 1;
  8180. if (!this->_internal_parent().empty()) {
  8181. const std::string& _s = this->_internal_parent();
  8182. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  8183. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Target.QueryTarget.parent");
  8184. target = stream->WriteStringMaybeAliased(1, _s, target);
  8185. }
  8186. // .google.firestore.v1.StructuredQuery structured_query = 2;
  8187. if (query_type_case() == kStructuredQuery) {
  8188. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  8189. 2, _Internal::structured_query(this),
  8190. _Internal::structured_query(this).GetCachedSize(), target, stream);
  8191. }
  8192. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8193. target =
  8194. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  8195. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  8196. }
  8197. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Target.QueryTarget)
  8198. return target;
  8199. }
  8200. ::size_t Target_QueryTarget::ByteSizeLong() const {
  8201. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Target.QueryTarget)
  8202. ::size_t total_size = 0;
  8203. ::uint32_t cached_has_bits = 0;
  8204. // Prevent compiler warnings about cached_has_bits being unused
  8205. (void) cached_has_bits;
  8206. // string parent = 1;
  8207. if (!this->_internal_parent().empty()) {
  8208. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  8209. this->_internal_parent());
  8210. }
  8211. switch (query_type_case()) {
  8212. // .google.firestore.v1.StructuredQuery structured_query = 2;
  8213. case kStructuredQuery: {
  8214. total_size +=
  8215. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.query_type_.structured_query_);
  8216. break;
  8217. }
  8218. case QUERY_TYPE_NOT_SET: {
  8219. break;
  8220. }
  8221. }
  8222. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  8223. }
  8224. const ::google::protobuf::Message::ClassData Target_QueryTarget::_class_data_ = {
  8225. Target_QueryTarget::MergeImpl,
  8226. nullptr, // OnDemandRegisterArenaDtor
  8227. };
  8228. const ::google::protobuf::Message::ClassData* Target_QueryTarget::GetClassData() const {
  8229. return &_class_data_;
  8230. }
  8231. void Target_QueryTarget::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  8232. auto* const _this = static_cast<Target_QueryTarget*>(&to_msg);
  8233. auto& from = static_cast<const Target_QueryTarget&>(from_msg);
  8234. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Target.QueryTarget)
  8235. ABSL_DCHECK_NE(&from, _this);
  8236. ::uint32_t cached_has_bits = 0;
  8237. (void) cached_has_bits;
  8238. if (!from._internal_parent().empty()) {
  8239. _this->_internal_set_parent(from._internal_parent());
  8240. }
  8241. switch (from.query_type_case()) {
  8242. case kStructuredQuery: {
  8243. _this->_internal_mutable_structured_query()->::google::firestore::v1::StructuredQuery::MergeFrom(
  8244. from._internal_structured_query());
  8245. break;
  8246. }
  8247. case QUERY_TYPE_NOT_SET: {
  8248. break;
  8249. }
  8250. }
  8251. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  8252. }
  8253. void Target_QueryTarget::CopyFrom(const Target_QueryTarget& from) {
  8254. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Target.QueryTarget)
  8255. if (&from == this) return;
  8256. Clear();
  8257. MergeFrom(from);
  8258. }
  8259. PROTOBUF_NOINLINE bool Target_QueryTarget::IsInitialized() const {
  8260. return true;
  8261. }
  8262. ::_pbi::CachedSize* Target_QueryTarget::AccessCachedSize() const {
  8263. return &_impl_._cached_size_;
  8264. }
  8265. void Target_QueryTarget::InternalSwap(Target_QueryTarget* PROTOBUF_RESTRICT other) {
  8266. using std::swap;
  8267. auto* arena = GetArena();
  8268. ABSL_DCHECK_EQ(arena, other->GetArena());
  8269. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8270. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_, &other->_impl_.parent_, arena);
  8271. swap(_impl_.query_type_, other->_impl_.query_type_);
  8272. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  8273. }
  8274. ::google::protobuf::Metadata Target_QueryTarget::GetMetadata() const {
  8275. return ::_pbi::AssignDescriptors(
  8276. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  8277. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[24]);
  8278. }
  8279. // ===================================================================
  8280. class Target::_Internal {
  8281. public:
  8282. using HasBits = decltype(std::declval<Target>()._impl_._has_bits_);
  8283. static constexpr ::int32_t kHasBitsOffset =
  8284. 8 * PROTOBUF_FIELD_OFFSET(Target, _impl_._has_bits_);
  8285. static constexpr ::int32_t kOneofCaseOffset =
  8286. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, _impl_._oneof_case_);
  8287. static const ::google::firestore::v1::Target_QueryTarget& query(const Target* msg);
  8288. static const ::google::firestore::v1::Target_DocumentsTarget& documents(const Target* msg);
  8289. static const ::google::protobuf::Timestamp& read_time(const Target* msg);
  8290. static const ::google::protobuf::Int32Value& expected_count(const Target* msg);
  8291. static void set_has_expected_count(HasBits* has_bits) {
  8292. (*has_bits)[0] |= 1u;
  8293. }
  8294. };
  8295. const ::google::firestore::v1::Target_QueryTarget& Target::_Internal::query(const Target* msg) {
  8296. return *msg->_impl_.target_type_.query_;
  8297. }
  8298. const ::google::firestore::v1::Target_DocumentsTarget& Target::_Internal::documents(const Target* msg) {
  8299. return *msg->_impl_.target_type_.documents_;
  8300. }
  8301. const ::google::protobuf::Timestamp& Target::_Internal::read_time(const Target* msg) {
  8302. return *msg->_impl_.resume_type_.read_time_;
  8303. }
  8304. const ::google::protobuf::Int32Value& Target::_Internal::expected_count(const Target* msg) {
  8305. return *msg->_impl_.expected_count_;
  8306. }
  8307. void Target::set_allocated_query(::google::firestore::v1::Target_QueryTarget* query) {
  8308. ::google::protobuf::Arena* message_arena = GetArena();
  8309. clear_target_type();
  8310. if (query) {
  8311. ::google::protobuf::Arena* submessage_arena = query->GetArena();
  8312. if (message_arena != submessage_arena) {
  8313. query = ::google::protobuf::internal::GetOwnedMessage(message_arena, query, submessage_arena);
  8314. }
  8315. set_has_query();
  8316. _impl_.target_type_.query_ = query;
  8317. }
  8318. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.query)
  8319. }
  8320. void Target::set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* documents) {
  8321. ::google::protobuf::Arena* message_arena = GetArena();
  8322. clear_target_type();
  8323. if (documents) {
  8324. ::google::protobuf::Arena* submessage_arena = documents->GetArena();
  8325. if (message_arena != submessage_arena) {
  8326. documents = ::google::protobuf::internal::GetOwnedMessage(message_arena, documents, submessage_arena);
  8327. }
  8328. set_has_documents();
  8329. _impl_.target_type_.documents_ = documents;
  8330. }
  8331. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.documents)
  8332. }
  8333. void Target::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
  8334. ::google::protobuf::Arena* message_arena = GetArena();
  8335. clear_resume_type();
  8336. if (read_time) {
  8337. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(read_time)->GetArena();
  8338. if (message_arena != submessage_arena) {
  8339. read_time = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_time, submessage_arena);
  8340. }
  8341. set_has_read_time();
  8342. _impl_.resume_type_.read_time_ = read_time;
  8343. }
  8344. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.read_time)
  8345. }
  8346. void Target::clear_read_time() {
  8347. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8348. if (resume_type_case() == kReadTime) {
  8349. if (GetArena() == nullptr) {
  8350. delete _impl_.resume_type_.read_time_;
  8351. }
  8352. clear_has_resume_type();
  8353. }
  8354. }
  8355. void Target::clear_expected_count() {
  8356. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8357. if (_impl_.expected_count_ != nullptr) _impl_.expected_count_->Clear();
  8358. _impl_._has_bits_[0] &= ~0x00000001u;
  8359. }
  8360. Target::Target(::google::protobuf::Arena* arena)
  8361. : ::google::protobuf::Message(arena) {
  8362. SharedCtor(arena);
  8363. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Target)
  8364. }
  8365. inline PROTOBUF_NDEBUG_INLINE Target::Impl_::Impl_(
  8366. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  8367. const Impl_& from)
  8368. : _has_bits_{from._has_bits_},
  8369. _cached_size_{0},
  8370. target_type_{},
  8371. resume_type_{},
  8372. _oneof_case_{from._oneof_case_[0], from._oneof_case_[1]} {}
  8373. Target::Target(
  8374. ::google::protobuf::Arena* arena,
  8375. const Target& from)
  8376. : ::google::protobuf::Message(arena) {
  8377. Target* const _this = this;
  8378. (void)_this;
  8379. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  8380. from._internal_metadata_);
  8381. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  8382. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  8383. _impl_.expected_count_ = (cached_has_bits & 0x00000001u)
  8384. ? CreateMaybeMessage<::google::protobuf::Int32Value>(arena, *from._impl_.expected_count_)
  8385. : nullptr;
  8386. ::memcpy(reinterpret_cast<char *>(&_impl_) +
  8387. offsetof(Impl_, target_id_),
  8388. reinterpret_cast<const char *>(&from._impl_) +
  8389. offsetof(Impl_, target_id_),
  8390. offsetof(Impl_, once_) -
  8391. offsetof(Impl_, target_id_) +
  8392. sizeof(Impl_::once_));
  8393. switch (target_type_case()) {
  8394. case TARGET_TYPE_NOT_SET:
  8395. break;
  8396. case kQuery:
  8397. _impl_.target_type_.query_ = CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(arena, *from._impl_.target_type_.query_);
  8398. break;
  8399. case kDocuments:
  8400. _impl_.target_type_.documents_ = CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(arena, *from._impl_.target_type_.documents_);
  8401. break;
  8402. }
  8403. switch (resume_type_case()) {
  8404. case RESUME_TYPE_NOT_SET:
  8405. break;
  8406. case kResumeToken:
  8407. new (&_impl_.resume_type_.resume_token_) decltype(_impl_.resume_type_.resume_token_){arena, from._impl_.resume_type_.resume_token_};
  8408. break;
  8409. case kReadTime:
  8410. _impl_.resume_type_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.resume_type_.read_time_);
  8411. break;
  8412. }
  8413. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Target)
  8414. }
  8415. inline PROTOBUF_NDEBUG_INLINE Target::Impl_::Impl_(
  8416. ::google::protobuf::internal::InternalVisibility visibility,
  8417. ::google::protobuf::Arena* arena)
  8418. : _cached_size_{0},
  8419. target_type_{},
  8420. resume_type_{},
  8421. _oneof_case_{} {}
  8422. inline void Target::SharedCtor(::_pb::Arena* arena) {
  8423. new (&_impl_) Impl_(internal_visibility(), arena);
  8424. ::memset(reinterpret_cast<char *>(&_impl_) +
  8425. offsetof(Impl_, expected_count_),
  8426. 0,
  8427. offsetof(Impl_, once_) -
  8428. offsetof(Impl_, expected_count_) +
  8429. sizeof(Impl_::once_));
  8430. }
  8431. Target::~Target() {
  8432. // @@protoc_insertion_point(destructor:google.firestore.v1.Target)
  8433. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  8434. SharedDtor();
  8435. }
  8436. inline void Target::SharedDtor() {
  8437. ABSL_DCHECK(GetArena() == nullptr);
  8438. delete _impl_.expected_count_;
  8439. if (has_target_type()) {
  8440. clear_target_type();
  8441. }
  8442. if (has_resume_type()) {
  8443. clear_resume_type();
  8444. }
  8445. _impl_.~Impl_();
  8446. }
  8447. void Target::clear_target_type() {
  8448. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.Target)
  8449. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8450. switch (target_type_case()) {
  8451. case kQuery: {
  8452. if (GetArena() == nullptr) {
  8453. delete _impl_.target_type_.query_;
  8454. }
  8455. break;
  8456. }
  8457. case kDocuments: {
  8458. if (GetArena() == nullptr) {
  8459. delete _impl_.target_type_.documents_;
  8460. }
  8461. break;
  8462. }
  8463. case TARGET_TYPE_NOT_SET: {
  8464. break;
  8465. }
  8466. }
  8467. _impl_._oneof_case_[0] = TARGET_TYPE_NOT_SET;
  8468. }
  8469. void Target::clear_resume_type() {
  8470. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.Target)
  8471. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8472. switch (resume_type_case()) {
  8473. case kResumeToken: {
  8474. _impl_.resume_type_.resume_token_.Destroy();
  8475. break;
  8476. }
  8477. case kReadTime: {
  8478. if (GetArena() == nullptr) {
  8479. delete _impl_.resume_type_.read_time_;
  8480. }
  8481. break;
  8482. }
  8483. case RESUME_TYPE_NOT_SET: {
  8484. break;
  8485. }
  8486. }
  8487. _impl_._oneof_case_[1] = RESUME_TYPE_NOT_SET;
  8488. }
  8489. PROTOBUF_NOINLINE void Target::Clear() {
  8490. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Target)
  8491. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8492. ::uint32_t cached_has_bits = 0;
  8493. // Prevent compiler warnings about cached_has_bits being unused
  8494. (void) cached_has_bits;
  8495. cached_has_bits = _impl_._has_bits_[0];
  8496. if (cached_has_bits & 0x00000001u) {
  8497. ABSL_DCHECK(_impl_.expected_count_ != nullptr);
  8498. _impl_.expected_count_->Clear();
  8499. }
  8500. ::memset(&_impl_.target_id_, 0, static_cast<::size_t>(
  8501. reinterpret_cast<char*>(&_impl_.once_) -
  8502. reinterpret_cast<char*>(&_impl_.target_id_)) + sizeof(_impl_.once_));
  8503. clear_target_type();
  8504. clear_resume_type();
  8505. _impl_._has_bits_.Clear();
  8506. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  8507. }
  8508. const char* Target::_InternalParse(
  8509. const char* ptr, ::_pbi::ParseContext* ctx) {
  8510. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  8511. return ptr;
  8512. }
  8513. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  8514. const ::_pbi::TcParseTable<2, 7, 4, 0, 2> Target::_table_ = {
  8515. {
  8516. PROTOBUF_FIELD_OFFSET(Target, _impl_._has_bits_),
  8517. 0, // no _extensions_
  8518. 12, 24, // max_field_number, fast_idx_mask
  8519. offsetof(decltype(_table_), field_lookup_table),
  8520. 4294964161, // skipmap
  8521. offsetof(decltype(_table_), field_entries),
  8522. 7, // num_field_entries
  8523. 4, // num_aux_entries
  8524. offsetof(decltype(_table_), aux_entries),
  8525. &_Target_default_instance_._instance,
  8526. ::_pbi::TcParser::GenericFallback, // fallback
  8527. }, {{
  8528. // .google.protobuf.Int32Value expected_count = 12;
  8529. {::_pbi::TcParser::FastMtS1,
  8530. {98, 0, 3, PROTOBUF_FIELD_OFFSET(Target, _impl_.expected_count_)}},
  8531. // int32 target_id = 5;
  8532. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Target, _impl_.target_id_), 63>(),
  8533. {40, 63, 0, PROTOBUF_FIELD_OFFSET(Target, _impl_.target_id_)}},
  8534. // bool once = 6;
  8535. {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Target, _impl_.once_), 63>(),
  8536. {48, 63, 0, PROTOBUF_FIELD_OFFSET(Target, _impl_.once_)}},
  8537. {::_pbi::TcParser::MiniParse, {}},
  8538. }}, {{
  8539. 65535, 65535
  8540. }}, {{
  8541. // .google.firestore.v1.Target.QueryTarget query = 2;
  8542. {PROTOBUF_FIELD_OFFSET(Target, _impl_.target_type_.query_), _Internal::kOneofCaseOffset + 0, 0,
  8543. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  8544. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  8545. {PROTOBUF_FIELD_OFFSET(Target, _impl_.target_type_.documents_), _Internal::kOneofCaseOffset + 0, 1,
  8546. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  8547. // bytes resume_token = 4;
  8548. {PROTOBUF_FIELD_OFFSET(Target, _impl_.resume_type_.resume_token_), _Internal::kOneofCaseOffset + 4, 0,
  8549. (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
  8550. // int32 target_id = 5;
  8551. {PROTOBUF_FIELD_OFFSET(Target, _impl_.target_id_), -1, 0,
  8552. (0 | ::_fl::kFcSingular | ::_fl::kInt32)},
  8553. // bool once = 6;
  8554. {PROTOBUF_FIELD_OFFSET(Target, _impl_.once_), -1, 0,
  8555. (0 | ::_fl::kFcSingular | ::_fl::kBool)},
  8556. // .google.protobuf.Timestamp read_time = 11;
  8557. {PROTOBUF_FIELD_OFFSET(Target, _impl_.resume_type_.read_time_), _Internal::kOneofCaseOffset + 4, 2,
  8558. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  8559. // .google.protobuf.Int32Value expected_count = 12;
  8560. {PROTOBUF_FIELD_OFFSET(Target, _impl_.expected_count_), _Internal::kHasBitsOffset + 0, 3,
  8561. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  8562. }}, {{
  8563. {::_pbi::TcParser::GetTable<::google::firestore::v1::Target_QueryTarget>()},
  8564. {::_pbi::TcParser::GetTable<::google::firestore::v1::Target_DocumentsTarget>()},
  8565. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  8566. {::_pbi::TcParser::GetTable<::google::protobuf::Int32Value>()},
  8567. }}, {{
  8568. }},
  8569. };
  8570. ::uint8_t* Target::_InternalSerialize(
  8571. ::uint8_t* target,
  8572. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  8573. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Target)
  8574. ::uint32_t cached_has_bits = 0;
  8575. (void)cached_has_bits;
  8576. switch (target_type_case()) {
  8577. case kQuery: {
  8578. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  8579. 2, _Internal::query(this),
  8580. _Internal::query(this).GetCachedSize(), target, stream);
  8581. break;
  8582. }
  8583. case kDocuments: {
  8584. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  8585. 3, _Internal::documents(this),
  8586. _Internal::documents(this).GetCachedSize(), target, stream);
  8587. break;
  8588. }
  8589. default:
  8590. break;
  8591. }
  8592. // bytes resume_token = 4;
  8593. if (resume_type_case() == kResumeToken) {
  8594. const std::string& _s = this->_internal_resume_token();
  8595. target = stream->WriteBytesMaybeAliased(4, _s, target);
  8596. }
  8597. // int32 target_id = 5;
  8598. if (this->_internal_target_id() != 0) {
  8599. target = ::google::protobuf::internal::WireFormatLite::
  8600. WriteInt32ToArrayWithField<5>(
  8601. stream, this->_internal_target_id(), target);
  8602. }
  8603. // bool once = 6;
  8604. if (this->_internal_once() != 0) {
  8605. target = stream->EnsureSpace(target);
  8606. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  8607. 6, this->_internal_once(), target);
  8608. }
  8609. // .google.protobuf.Timestamp read_time = 11;
  8610. if (resume_type_case() == kReadTime) {
  8611. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  8612. 11, _Internal::read_time(this),
  8613. _Internal::read_time(this).GetCachedSize(), target, stream);
  8614. }
  8615. cached_has_bits = _impl_._has_bits_[0];
  8616. // .google.protobuf.Int32Value expected_count = 12;
  8617. if (cached_has_bits & 0x00000001u) {
  8618. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  8619. 12, _Internal::expected_count(this),
  8620. _Internal::expected_count(this).GetCachedSize(), target, stream);
  8621. }
  8622. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8623. target =
  8624. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  8625. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  8626. }
  8627. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Target)
  8628. return target;
  8629. }
  8630. ::size_t Target::ByteSizeLong() const {
  8631. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Target)
  8632. ::size_t total_size = 0;
  8633. ::uint32_t cached_has_bits = 0;
  8634. // Prevent compiler warnings about cached_has_bits being unused
  8635. (void) cached_has_bits;
  8636. // .google.protobuf.Int32Value expected_count = 12;
  8637. cached_has_bits = _impl_._has_bits_[0];
  8638. if (cached_has_bits & 0x00000001u) {
  8639. total_size +=
  8640. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expected_count_);
  8641. }
  8642. // int32 target_id = 5;
  8643. if (this->_internal_target_id() != 0) {
  8644. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  8645. this->_internal_target_id());
  8646. }
  8647. // bool once = 6;
  8648. if (this->_internal_once() != 0) {
  8649. total_size += 2;
  8650. }
  8651. switch (target_type_case()) {
  8652. // .google.firestore.v1.Target.QueryTarget query = 2;
  8653. case kQuery: {
  8654. total_size +=
  8655. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_type_.query_);
  8656. break;
  8657. }
  8658. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  8659. case kDocuments: {
  8660. total_size +=
  8661. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_type_.documents_);
  8662. break;
  8663. }
  8664. case TARGET_TYPE_NOT_SET: {
  8665. break;
  8666. }
  8667. }
  8668. switch (resume_type_case()) {
  8669. // bytes resume_token = 4;
  8670. case kResumeToken: {
  8671. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  8672. this->_internal_resume_token());
  8673. break;
  8674. }
  8675. // .google.protobuf.Timestamp read_time = 11;
  8676. case kReadTime: {
  8677. total_size +=
  8678. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.resume_type_.read_time_);
  8679. break;
  8680. }
  8681. case RESUME_TYPE_NOT_SET: {
  8682. break;
  8683. }
  8684. }
  8685. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  8686. }
  8687. const ::google::protobuf::Message::ClassData Target::_class_data_ = {
  8688. Target::MergeImpl,
  8689. nullptr, // OnDemandRegisterArenaDtor
  8690. };
  8691. const ::google::protobuf::Message::ClassData* Target::GetClassData() const {
  8692. return &_class_data_;
  8693. }
  8694. void Target::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  8695. auto* const _this = static_cast<Target*>(&to_msg);
  8696. auto& from = static_cast<const Target&>(from_msg);
  8697. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Target)
  8698. ABSL_DCHECK_NE(&from, _this);
  8699. ::uint32_t cached_has_bits = 0;
  8700. (void) cached_has_bits;
  8701. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  8702. _this->_internal_mutable_expected_count()->::google::protobuf::Int32Value::MergeFrom(
  8703. from._internal_expected_count());
  8704. }
  8705. if (from._internal_target_id() != 0) {
  8706. _this->_internal_set_target_id(from._internal_target_id());
  8707. }
  8708. if (from._internal_once() != 0) {
  8709. _this->_internal_set_once(from._internal_once());
  8710. }
  8711. switch (from.target_type_case()) {
  8712. case kQuery: {
  8713. _this->_internal_mutable_query()->::google::firestore::v1::Target_QueryTarget::MergeFrom(
  8714. from._internal_query());
  8715. break;
  8716. }
  8717. case kDocuments: {
  8718. _this->_internal_mutable_documents()->::google::firestore::v1::Target_DocumentsTarget::MergeFrom(
  8719. from._internal_documents());
  8720. break;
  8721. }
  8722. case TARGET_TYPE_NOT_SET: {
  8723. break;
  8724. }
  8725. }
  8726. switch (from.resume_type_case()) {
  8727. case kResumeToken: {
  8728. _this->_internal_set_resume_token(from._internal_resume_token());
  8729. break;
  8730. }
  8731. case kReadTime: {
  8732. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  8733. from._internal_read_time());
  8734. break;
  8735. }
  8736. case RESUME_TYPE_NOT_SET: {
  8737. break;
  8738. }
  8739. }
  8740. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  8741. }
  8742. void Target::CopyFrom(const Target& from) {
  8743. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Target)
  8744. if (&from == this) return;
  8745. Clear();
  8746. MergeFrom(from);
  8747. }
  8748. PROTOBUF_NOINLINE bool Target::IsInitialized() const {
  8749. return true;
  8750. }
  8751. ::_pbi::CachedSize* Target::AccessCachedSize() const {
  8752. return &_impl_._cached_size_;
  8753. }
  8754. void Target::InternalSwap(Target* PROTOBUF_RESTRICT other) {
  8755. using std::swap;
  8756. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8757. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  8758. ::google::protobuf::internal::memswap<
  8759. PROTOBUF_FIELD_OFFSET(Target, _impl_.once_)
  8760. + sizeof(Target::_impl_.once_)
  8761. - PROTOBUF_FIELD_OFFSET(Target, _impl_.expected_count_)>(
  8762. reinterpret_cast<char*>(&_impl_.expected_count_),
  8763. reinterpret_cast<char*>(&other->_impl_.expected_count_));
  8764. swap(_impl_.target_type_, other->_impl_.target_type_);
  8765. swap(_impl_.resume_type_, other->_impl_.resume_type_);
  8766. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  8767. swap(_impl_._oneof_case_[1], other->_impl_._oneof_case_[1]);
  8768. }
  8769. ::google::protobuf::Metadata Target::GetMetadata() const {
  8770. return ::_pbi::AssignDescriptors(
  8771. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  8772. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[25]);
  8773. }
  8774. // ===================================================================
  8775. class TargetChange::_Internal {
  8776. public:
  8777. using HasBits = decltype(std::declval<TargetChange>()._impl_._has_bits_);
  8778. static constexpr ::int32_t kHasBitsOffset =
  8779. 8 * PROTOBUF_FIELD_OFFSET(TargetChange, _impl_._has_bits_);
  8780. static const ::google::rpc::Status& cause(const TargetChange* msg);
  8781. static void set_has_cause(HasBits* has_bits) {
  8782. (*has_bits)[0] |= 1u;
  8783. }
  8784. static const ::google::protobuf::Timestamp& read_time(const TargetChange* msg);
  8785. static void set_has_read_time(HasBits* has_bits) {
  8786. (*has_bits)[0] |= 2u;
  8787. }
  8788. };
  8789. const ::google::rpc::Status& TargetChange::_Internal::cause(const TargetChange* msg) {
  8790. return *msg->_impl_.cause_;
  8791. }
  8792. const ::google::protobuf::Timestamp& TargetChange::_Internal::read_time(const TargetChange* msg) {
  8793. return *msg->_impl_.read_time_;
  8794. }
  8795. void TargetChange::clear_cause() {
  8796. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8797. if (_impl_.cause_ != nullptr) _impl_.cause_->Clear();
  8798. _impl_._has_bits_[0] &= ~0x00000001u;
  8799. }
  8800. void TargetChange::clear_read_time() {
  8801. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8802. if (_impl_.read_time_ != nullptr) _impl_.read_time_->Clear();
  8803. _impl_._has_bits_[0] &= ~0x00000002u;
  8804. }
  8805. TargetChange::TargetChange(::google::protobuf::Arena* arena)
  8806. : ::google::protobuf::Message(arena) {
  8807. SharedCtor(arena);
  8808. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.TargetChange)
  8809. }
  8810. inline PROTOBUF_NDEBUG_INLINE TargetChange::Impl_::Impl_(
  8811. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  8812. const Impl_& from)
  8813. : _has_bits_{from._has_bits_},
  8814. _cached_size_{0},
  8815. target_ids_{visibility, arena, from.target_ids_},
  8816. _target_ids_cached_byte_size_{0},
  8817. resume_token_(arena, from.resume_token_) {}
  8818. TargetChange::TargetChange(
  8819. ::google::protobuf::Arena* arena,
  8820. const TargetChange& from)
  8821. : ::google::protobuf::Message(arena) {
  8822. TargetChange* const _this = this;
  8823. (void)_this;
  8824. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  8825. from._internal_metadata_);
  8826. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  8827. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  8828. _impl_.cause_ = (cached_has_bits & 0x00000001u)
  8829. ? CreateMaybeMessage<::google::rpc::Status>(arena, *from._impl_.cause_)
  8830. : nullptr;
  8831. _impl_.read_time_ = (cached_has_bits & 0x00000002u)
  8832. ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.read_time_)
  8833. : nullptr;
  8834. _impl_.target_change_type_ = from._impl_.target_change_type_;
  8835. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.TargetChange)
  8836. }
  8837. inline PROTOBUF_NDEBUG_INLINE TargetChange::Impl_::Impl_(
  8838. ::google::protobuf::internal::InternalVisibility visibility,
  8839. ::google::protobuf::Arena* arena)
  8840. : _cached_size_{0},
  8841. target_ids_{visibility, arena},
  8842. _target_ids_cached_byte_size_{0},
  8843. resume_token_(arena) {}
  8844. inline void TargetChange::SharedCtor(::_pb::Arena* arena) {
  8845. new (&_impl_) Impl_(internal_visibility(), arena);
  8846. ::memset(reinterpret_cast<char *>(&_impl_) +
  8847. offsetof(Impl_, cause_),
  8848. 0,
  8849. offsetof(Impl_, target_change_type_) -
  8850. offsetof(Impl_, cause_) +
  8851. sizeof(Impl_::target_change_type_));
  8852. }
  8853. TargetChange::~TargetChange() {
  8854. // @@protoc_insertion_point(destructor:google.firestore.v1.TargetChange)
  8855. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  8856. SharedDtor();
  8857. }
  8858. inline void TargetChange::SharedDtor() {
  8859. ABSL_DCHECK(GetArena() == nullptr);
  8860. _impl_.resume_token_.Destroy();
  8861. delete _impl_.cause_;
  8862. delete _impl_.read_time_;
  8863. _impl_.~Impl_();
  8864. }
  8865. PROTOBUF_NOINLINE void TargetChange::Clear() {
  8866. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.TargetChange)
  8867. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8868. ::uint32_t cached_has_bits = 0;
  8869. // Prevent compiler warnings about cached_has_bits being unused
  8870. (void) cached_has_bits;
  8871. _impl_.target_ids_.Clear();
  8872. _impl_.resume_token_.ClearToEmpty();
  8873. cached_has_bits = _impl_._has_bits_[0];
  8874. if (cached_has_bits & 0x00000003u) {
  8875. if (cached_has_bits & 0x00000001u) {
  8876. ABSL_DCHECK(_impl_.cause_ != nullptr);
  8877. _impl_.cause_->Clear();
  8878. }
  8879. if (cached_has_bits & 0x00000002u) {
  8880. ABSL_DCHECK(_impl_.read_time_ != nullptr);
  8881. _impl_.read_time_->Clear();
  8882. }
  8883. }
  8884. _impl_.target_change_type_ = 0;
  8885. _impl_._has_bits_.Clear();
  8886. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  8887. }
  8888. const char* TargetChange::_InternalParse(
  8889. const char* ptr, ::_pbi::ParseContext* ctx) {
  8890. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  8891. return ptr;
  8892. }
  8893. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  8894. const ::_pbi::TcParseTable<3, 5, 2, 0, 2> TargetChange::_table_ = {
  8895. {
  8896. PROTOBUF_FIELD_OFFSET(TargetChange, _impl_._has_bits_),
  8897. 0, // no _extensions_
  8898. 6, 56, // max_field_number, fast_idx_mask
  8899. offsetof(decltype(_table_), field_lookup_table),
  8900. 4294967248, // skipmap
  8901. offsetof(decltype(_table_), field_entries),
  8902. 5, // num_field_entries
  8903. 2, // num_aux_entries
  8904. offsetof(decltype(_table_), aux_entries),
  8905. &_TargetChange_default_instance_._instance,
  8906. ::_pbi::TcParser::GenericFallback, // fallback
  8907. }, {{
  8908. {::_pbi::TcParser::MiniParse, {}},
  8909. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  8910. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TargetChange, _impl_.target_change_type_), 63>(),
  8911. {8, 63, 0, PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.target_change_type_)}},
  8912. // repeated int32 target_ids = 2;
  8913. {::_pbi::TcParser::FastV32P1,
  8914. {18, 63, 0, PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.target_ids_)}},
  8915. // .google.rpc.Status cause = 3;
  8916. {::_pbi::TcParser::FastMtS1,
  8917. {26, 0, 0, PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.cause_)}},
  8918. // bytes resume_token = 4;
  8919. {::_pbi::TcParser::FastBS1,
  8920. {34, 63, 0, PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.resume_token_)}},
  8921. {::_pbi::TcParser::MiniParse, {}},
  8922. // .google.protobuf.Timestamp read_time = 6;
  8923. {::_pbi::TcParser::FastMtS1,
  8924. {50, 1, 1, PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.read_time_)}},
  8925. {::_pbi::TcParser::MiniParse, {}},
  8926. }}, {{
  8927. 65535, 65535
  8928. }}, {{
  8929. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  8930. {PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.target_change_type_), -1, 0,
  8931. (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
  8932. // repeated int32 target_ids = 2;
  8933. {PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.target_ids_), -1, 0,
  8934. (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
  8935. // .google.rpc.Status cause = 3;
  8936. {PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.cause_), _Internal::kHasBitsOffset + 0, 0,
  8937. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  8938. // bytes resume_token = 4;
  8939. {PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.resume_token_), -1, 0,
  8940. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  8941. // .google.protobuf.Timestamp read_time = 6;
  8942. {PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.read_time_), _Internal::kHasBitsOffset + 1, 1,
  8943. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  8944. }}, {{
  8945. {::_pbi::TcParser::GetTable<::google::rpc::Status>()},
  8946. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  8947. }}, {{
  8948. }},
  8949. };
  8950. ::uint8_t* TargetChange::_InternalSerialize(
  8951. ::uint8_t* target,
  8952. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  8953. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.TargetChange)
  8954. ::uint32_t cached_has_bits = 0;
  8955. (void)cached_has_bits;
  8956. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  8957. if (this->_internal_target_change_type() != 0) {
  8958. target = stream->EnsureSpace(target);
  8959. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  8960. 1, this->_internal_target_change_type(), target);
  8961. }
  8962. // repeated int32 target_ids = 2;
  8963. {
  8964. int byte_size = _impl_._target_ids_cached_byte_size_.Get();
  8965. if (byte_size > 0) {
  8966. target = stream->WriteInt32Packed(
  8967. 2, _internal_target_ids(), byte_size, target);
  8968. }
  8969. }
  8970. cached_has_bits = _impl_._has_bits_[0];
  8971. // .google.rpc.Status cause = 3;
  8972. if (cached_has_bits & 0x00000001u) {
  8973. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  8974. 3, _Internal::cause(this),
  8975. _Internal::cause(this).GetCachedSize(), target, stream);
  8976. }
  8977. // bytes resume_token = 4;
  8978. if (!this->_internal_resume_token().empty()) {
  8979. const std::string& _s = this->_internal_resume_token();
  8980. target = stream->WriteBytesMaybeAliased(4, _s, target);
  8981. }
  8982. // .google.protobuf.Timestamp read_time = 6;
  8983. if (cached_has_bits & 0x00000002u) {
  8984. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  8985. 6, _Internal::read_time(this),
  8986. _Internal::read_time(this).GetCachedSize(), target, stream);
  8987. }
  8988. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8989. target =
  8990. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  8991. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  8992. }
  8993. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.TargetChange)
  8994. return target;
  8995. }
  8996. ::size_t TargetChange::ByteSizeLong() const {
  8997. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.TargetChange)
  8998. ::size_t total_size = 0;
  8999. ::uint32_t cached_has_bits = 0;
  9000. // Prevent compiler warnings about cached_has_bits being unused
  9001. (void) cached_has_bits;
  9002. // repeated int32 target_ids = 2;
  9003. {
  9004. std::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
  9005. this->_internal_target_ids())
  9006. ;
  9007. _impl_._target_ids_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size));
  9008. std::size_t tag_size = data_size == 0
  9009. ? 0
  9010. : 1 + ::_pbi::WireFormatLite::Int32Size(
  9011. static_cast<int32_t>(data_size))
  9012. ;
  9013. total_size += tag_size + data_size;
  9014. }
  9015. // bytes resume_token = 4;
  9016. if (!this->_internal_resume_token().empty()) {
  9017. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  9018. this->_internal_resume_token());
  9019. }
  9020. cached_has_bits = _impl_._has_bits_[0];
  9021. if (cached_has_bits & 0x00000003u) {
  9022. // .google.rpc.Status cause = 3;
  9023. if (cached_has_bits & 0x00000001u) {
  9024. total_size +=
  9025. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cause_);
  9026. }
  9027. // .google.protobuf.Timestamp read_time = 6;
  9028. if (cached_has_bits & 0x00000002u) {
  9029. total_size +=
  9030. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.read_time_);
  9031. }
  9032. }
  9033. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  9034. if (this->_internal_target_change_type() != 0) {
  9035. total_size += 1 +
  9036. ::_pbi::WireFormatLite::EnumSize(this->_internal_target_change_type());
  9037. }
  9038. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  9039. }
  9040. const ::google::protobuf::Message::ClassData TargetChange::_class_data_ = {
  9041. TargetChange::MergeImpl,
  9042. nullptr, // OnDemandRegisterArenaDtor
  9043. };
  9044. const ::google::protobuf::Message::ClassData* TargetChange::GetClassData() const {
  9045. return &_class_data_;
  9046. }
  9047. void TargetChange::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  9048. auto* const _this = static_cast<TargetChange*>(&to_msg);
  9049. auto& from = static_cast<const TargetChange&>(from_msg);
  9050. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.TargetChange)
  9051. ABSL_DCHECK_NE(&from, _this);
  9052. ::uint32_t cached_has_bits = 0;
  9053. (void) cached_has_bits;
  9054. _this->_internal_mutable_target_ids()->MergeFrom(from._internal_target_ids());
  9055. if (!from._internal_resume_token().empty()) {
  9056. _this->_internal_set_resume_token(from._internal_resume_token());
  9057. }
  9058. cached_has_bits = from._impl_._has_bits_[0];
  9059. if (cached_has_bits & 0x00000003u) {
  9060. if (cached_has_bits & 0x00000001u) {
  9061. _this->_internal_mutable_cause()->::google::rpc::Status::MergeFrom(
  9062. from._internal_cause());
  9063. }
  9064. if (cached_has_bits & 0x00000002u) {
  9065. _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
  9066. from._internal_read_time());
  9067. }
  9068. }
  9069. if (from._internal_target_change_type() != 0) {
  9070. _this->_internal_set_target_change_type(from._internal_target_change_type());
  9071. }
  9072. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  9073. }
  9074. void TargetChange::CopyFrom(const TargetChange& from) {
  9075. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.TargetChange)
  9076. if (&from == this) return;
  9077. Clear();
  9078. MergeFrom(from);
  9079. }
  9080. PROTOBUF_NOINLINE bool TargetChange::IsInitialized() const {
  9081. return true;
  9082. }
  9083. ::_pbi::CachedSize* TargetChange::AccessCachedSize() const {
  9084. return &_impl_._cached_size_;
  9085. }
  9086. void TargetChange::InternalSwap(TargetChange* PROTOBUF_RESTRICT other) {
  9087. using std::swap;
  9088. auto* arena = GetArena();
  9089. ABSL_DCHECK_EQ(arena, other->GetArena());
  9090. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9091. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  9092. _impl_.target_ids_.InternalSwap(&other->_impl_.target_ids_);
  9093. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resume_token_, &other->_impl_.resume_token_, arena);
  9094. ::google::protobuf::internal::memswap<
  9095. PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.target_change_type_)
  9096. + sizeof(TargetChange::_impl_.target_change_type_)
  9097. - PROTOBUF_FIELD_OFFSET(TargetChange, _impl_.cause_)>(
  9098. reinterpret_cast<char*>(&_impl_.cause_),
  9099. reinterpret_cast<char*>(&other->_impl_.cause_));
  9100. }
  9101. ::google::protobuf::Metadata TargetChange::GetMetadata() const {
  9102. return ::_pbi::AssignDescriptors(
  9103. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  9104. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[26]);
  9105. }
  9106. // ===================================================================
  9107. class ListCollectionIdsRequest::_Internal {
  9108. public:
  9109. };
  9110. ListCollectionIdsRequest::ListCollectionIdsRequest(::google::protobuf::Arena* arena)
  9111. : ::google::protobuf::Message(arena) {
  9112. SharedCtor(arena);
  9113. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ListCollectionIdsRequest)
  9114. }
  9115. inline PROTOBUF_NDEBUG_INLINE ListCollectionIdsRequest::Impl_::Impl_(
  9116. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  9117. const Impl_& from)
  9118. : parent_(arena, from.parent_),
  9119. page_token_(arena, from.page_token_),
  9120. _cached_size_{0} {}
  9121. ListCollectionIdsRequest::ListCollectionIdsRequest(
  9122. ::google::protobuf::Arena* arena,
  9123. const ListCollectionIdsRequest& from)
  9124. : ::google::protobuf::Message(arena) {
  9125. ListCollectionIdsRequest* const _this = this;
  9126. (void)_this;
  9127. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  9128. from._internal_metadata_);
  9129. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  9130. _impl_.page_size_ = from._impl_.page_size_;
  9131. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ListCollectionIdsRequest)
  9132. }
  9133. inline PROTOBUF_NDEBUG_INLINE ListCollectionIdsRequest::Impl_::Impl_(
  9134. ::google::protobuf::internal::InternalVisibility visibility,
  9135. ::google::protobuf::Arena* arena)
  9136. : parent_(arena),
  9137. page_token_(arena),
  9138. _cached_size_{0} {}
  9139. inline void ListCollectionIdsRequest::SharedCtor(::_pb::Arena* arena) {
  9140. new (&_impl_) Impl_(internal_visibility(), arena);
  9141. _impl_.page_size_ = {};
  9142. }
  9143. ListCollectionIdsRequest::~ListCollectionIdsRequest() {
  9144. // @@protoc_insertion_point(destructor:google.firestore.v1.ListCollectionIdsRequest)
  9145. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  9146. SharedDtor();
  9147. }
  9148. inline void ListCollectionIdsRequest::SharedDtor() {
  9149. ABSL_DCHECK(GetArena() == nullptr);
  9150. _impl_.parent_.Destroy();
  9151. _impl_.page_token_.Destroy();
  9152. _impl_.~Impl_();
  9153. }
  9154. PROTOBUF_NOINLINE void ListCollectionIdsRequest::Clear() {
  9155. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ListCollectionIdsRequest)
  9156. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9157. ::uint32_t cached_has_bits = 0;
  9158. // Prevent compiler warnings about cached_has_bits being unused
  9159. (void) cached_has_bits;
  9160. _impl_.parent_.ClearToEmpty();
  9161. _impl_.page_token_.ClearToEmpty();
  9162. _impl_.page_size_ = 0;
  9163. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  9164. }
  9165. const char* ListCollectionIdsRequest::_InternalParse(
  9166. const char* ptr, ::_pbi::ParseContext* ctx) {
  9167. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  9168. return ptr;
  9169. }
  9170. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  9171. const ::_pbi::TcParseTable<2, 3, 0, 69, 2> ListCollectionIdsRequest::_table_ = {
  9172. {
  9173. 0, // no _has_bits_
  9174. 0, // no _extensions_
  9175. 3, 24, // max_field_number, fast_idx_mask
  9176. offsetof(decltype(_table_), field_lookup_table),
  9177. 4294967288, // skipmap
  9178. offsetof(decltype(_table_), field_entries),
  9179. 3, // num_field_entries
  9180. 0, // num_aux_entries
  9181. offsetof(decltype(_table_), field_names), // no aux_entries
  9182. &_ListCollectionIdsRequest_default_instance_._instance,
  9183. ::_pbi::TcParser::GenericFallback, // fallback
  9184. }, {{
  9185. {::_pbi::TcParser::MiniParse, {}},
  9186. // string parent = 1;
  9187. {::_pbi::TcParser::FastUS1,
  9188. {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListCollectionIdsRequest, _impl_.parent_)}},
  9189. // int32 page_size = 2;
  9190. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListCollectionIdsRequest, _impl_.page_size_), 63>(),
  9191. {16, 63, 0, PROTOBUF_FIELD_OFFSET(ListCollectionIdsRequest, _impl_.page_size_)}},
  9192. // string page_token = 3;
  9193. {::_pbi::TcParser::FastUS1,
  9194. {26, 63, 0, PROTOBUF_FIELD_OFFSET(ListCollectionIdsRequest, _impl_.page_token_)}},
  9195. }}, {{
  9196. 65535, 65535
  9197. }}, {{
  9198. // string parent = 1;
  9199. {PROTOBUF_FIELD_OFFSET(ListCollectionIdsRequest, _impl_.parent_), 0, 0,
  9200. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  9201. // int32 page_size = 2;
  9202. {PROTOBUF_FIELD_OFFSET(ListCollectionIdsRequest, _impl_.page_size_), 0, 0,
  9203. (0 | ::_fl::kFcSingular | ::_fl::kInt32)},
  9204. // string page_token = 3;
  9205. {PROTOBUF_FIELD_OFFSET(ListCollectionIdsRequest, _impl_.page_token_), 0, 0,
  9206. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  9207. }},
  9208. // no aux_entries
  9209. {{
  9210. "\54\6\0\12\0\0\0\0"
  9211. "google.firestore.v1.ListCollectionIdsRequest"
  9212. "parent"
  9213. "page_token"
  9214. }},
  9215. };
  9216. ::uint8_t* ListCollectionIdsRequest::_InternalSerialize(
  9217. ::uint8_t* target,
  9218. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  9219. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ListCollectionIdsRequest)
  9220. ::uint32_t cached_has_bits = 0;
  9221. (void)cached_has_bits;
  9222. // string parent = 1;
  9223. if (!this->_internal_parent().empty()) {
  9224. const std::string& _s = this->_internal_parent();
  9225. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9226. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListCollectionIdsRequest.parent");
  9227. target = stream->WriteStringMaybeAliased(1, _s, target);
  9228. }
  9229. // int32 page_size = 2;
  9230. if (this->_internal_page_size() != 0) {
  9231. target = ::google::protobuf::internal::WireFormatLite::
  9232. WriteInt32ToArrayWithField<2>(
  9233. stream, this->_internal_page_size(), target);
  9234. }
  9235. // string page_token = 3;
  9236. if (!this->_internal_page_token().empty()) {
  9237. const std::string& _s = this->_internal_page_token();
  9238. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9239. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListCollectionIdsRequest.page_token");
  9240. target = stream->WriteStringMaybeAliased(3, _s, target);
  9241. }
  9242. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9243. target =
  9244. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  9245. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  9246. }
  9247. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ListCollectionIdsRequest)
  9248. return target;
  9249. }
  9250. ::size_t ListCollectionIdsRequest::ByteSizeLong() const {
  9251. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ListCollectionIdsRequest)
  9252. ::size_t total_size = 0;
  9253. ::uint32_t cached_has_bits = 0;
  9254. // Prevent compiler warnings about cached_has_bits being unused
  9255. (void) cached_has_bits;
  9256. // string parent = 1;
  9257. if (!this->_internal_parent().empty()) {
  9258. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  9259. this->_internal_parent());
  9260. }
  9261. // string page_token = 3;
  9262. if (!this->_internal_page_token().empty()) {
  9263. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  9264. this->_internal_page_token());
  9265. }
  9266. // int32 page_size = 2;
  9267. if (this->_internal_page_size() != 0) {
  9268. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  9269. this->_internal_page_size());
  9270. }
  9271. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  9272. }
  9273. const ::google::protobuf::Message::ClassData ListCollectionIdsRequest::_class_data_ = {
  9274. ListCollectionIdsRequest::MergeImpl,
  9275. nullptr, // OnDemandRegisterArenaDtor
  9276. };
  9277. const ::google::protobuf::Message::ClassData* ListCollectionIdsRequest::GetClassData() const {
  9278. return &_class_data_;
  9279. }
  9280. void ListCollectionIdsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  9281. auto* const _this = static_cast<ListCollectionIdsRequest*>(&to_msg);
  9282. auto& from = static_cast<const ListCollectionIdsRequest&>(from_msg);
  9283. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ListCollectionIdsRequest)
  9284. ABSL_DCHECK_NE(&from, _this);
  9285. ::uint32_t cached_has_bits = 0;
  9286. (void) cached_has_bits;
  9287. if (!from._internal_parent().empty()) {
  9288. _this->_internal_set_parent(from._internal_parent());
  9289. }
  9290. if (!from._internal_page_token().empty()) {
  9291. _this->_internal_set_page_token(from._internal_page_token());
  9292. }
  9293. if (from._internal_page_size() != 0) {
  9294. _this->_internal_set_page_size(from._internal_page_size());
  9295. }
  9296. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  9297. }
  9298. void ListCollectionIdsRequest::CopyFrom(const ListCollectionIdsRequest& from) {
  9299. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ListCollectionIdsRequest)
  9300. if (&from == this) return;
  9301. Clear();
  9302. MergeFrom(from);
  9303. }
  9304. PROTOBUF_NOINLINE bool ListCollectionIdsRequest::IsInitialized() const {
  9305. return true;
  9306. }
  9307. ::_pbi::CachedSize* ListCollectionIdsRequest::AccessCachedSize() const {
  9308. return &_impl_._cached_size_;
  9309. }
  9310. void ListCollectionIdsRequest::InternalSwap(ListCollectionIdsRequest* PROTOBUF_RESTRICT other) {
  9311. using std::swap;
  9312. auto* arena = GetArena();
  9313. ABSL_DCHECK_EQ(arena, other->GetArena());
  9314. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9315. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_, &other->_impl_.parent_, arena);
  9316. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.page_token_, &other->_impl_.page_token_, arena);
  9317. swap(_impl_.page_size_, other->_impl_.page_size_);
  9318. }
  9319. ::google::protobuf::Metadata ListCollectionIdsRequest::GetMetadata() const {
  9320. return ::_pbi::AssignDescriptors(
  9321. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  9322. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[27]);
  9323. }
  9324. // ===================================================================
  9325. class ListCollectionIdsResponse::_Internal {
  9326. public:
  9327. };
  9328. ListCollectionIdsResponse::ListCollectionIdsResponse(::google::protobuf::Arena* arena)
  9329. : ::google::protobuf::Message(arena) {
  9330. SharedCtor(arena);
  9331. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ListCollectionIdsResponse)
  9332. }
  9333. inline PROTOBUF_NDEBUG_INLINE ListCollectionIdsResponse::Impl_::Impl_(
  9334. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  9335. const Impl_& from)
  9336. : collection_ids_{visibility, arena, from.collection_ids_},
  9337. next_page_token_(arena, from.next_page_token_),
  9338. _cached_size_{0} {}
  9339. ListCollectionIdsResponse::ListCollectionIdsResponse(
  9340. ::google::protobuf::Arena* arena,
  9341. const ListCollectionIdsResponse& from)
  9342. : ::google::protobuf::Message(arena) {
  9343. ListCollectionIdsResponse* const _this = this;
  9344. (void)_this;
  9345. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  9346. from._internal_metadata_);
  9347. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  9348. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ListCollectionIdsResponse)
  9349. }
  9350. inline PROTOBUF_NDEBUG_INLINE ListCollectionIdsResponse::Impl_::Impl_(
  9351. ::google::protobuf::internal::InternalVisibility visibility,
  9352. ::google::protobuf::Arena* arena)
  9353. : collection_ids_{visibility, arena},
  9354. next_page_token_(arena),
  9355. _cached_size_{0} {}
  9356. inline void ListCollectionIdsResponse::SharedCtor(::_pb::Arena* arena) {
  9357. new (&_impl_) Impl_(internal_visibility(), arena);
  9358. }
  9359. ListCollectionIdsResponse::~ListCollectionIdsResponse() {
  9360. // @@protoc_insertion_point(destructor:google.firestore.v1.ListCollectionIdsResponse)
  9361. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  9362. SharedDtor();
  9363. }
  9364. inline void ListCollectionIdsResponse::SharedDtor() {
  9365. ABSL_DCHECK(GetArena() == nullptr);
  9366. _impl_.next_page_token_.Destroy();
  9367. _impl_.~Impl_();
  9368. }
  9369. PROTOBUF_NOINLINE void ListCollectionIdsResponse::Clear() {
  9370. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ListCollectionIdsResponse)
  9371. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9372. ::uint32_t cached_has_bits = 0;
  9373. // Prevent compiler warnings about cached_has_bits being unused
  9374. (void) cached_has_bits;
  9375. _impl_.collection_ids_.Clear();
  9376. _impl_.next_page_token_.ClearToEmpty();
  9377. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  9378. }
  9379. const char* ListCollectionIdsResponse::_InternalParse(
  9380. const char* ptr, ::_pbi::ParseContext* ctx) {
  9381. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  9382. return ptr;
  9383. }
  9384. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  9385. const ::_pbi::TcParseTable<1, 2, 0, 83, 2> ListCollectionIdsResponse::_table_ = {
  9386. {
  9387. 0, // no _has_bits_
  9388. 0, // no _extensions_
  9389. 2, 8, // max_field_number, fast_idx_mask
  9390. offsetof(decltype(_table_), field_lookup_table),
  9391. 4294967292, // skipmap
  9392. offsetof(decltype(_table_), field_entries),
  9393. 2, // num_field_entries
  9394. 0, // num_aux_entries
  9395. offsetof(decltype(_table_), field_names), // no aux_entries
  9396. &_ListCollectionIdsResponse_default_instance_._instance,
  9397. ::_pbi::TcParser::GenericFallback, // fallback
  9398. }, {{
  9399. // string next_page_token = 2;
  9400. {::_pbi::TcParser::FastUS1,
  9401. {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListCollectionIdsResponse, _impl_.next_page_token_)}},
  9402. // repeated string collection_ids = 1;
  9403. {::_pbi::TcParser::FastUR1,
  9404. {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListCollectionIdsResponse, _impl_.collection_ids_)}},
  9405. }}, {{
  9406. 65535, 65535
  9407. }}, {{
  9408. // repeated string collection_ids = 1;
  9409. {PROTOBUF_FIELD_OFFSET(ListCollectionIdsResponse, _impl_.collection_ids_), 0, 0,
  9410. (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
  9411. // string next_page_token = 2;
  9412. {PROTOBUF_FIELD_OFFSET(ListCollectionIdsResponse, _impl_.next_page_token_), 0, 0,
  9413. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  9414. }},
  9415. // no aux_entries
  9416. {{
  9417. "\55\16\17\0\0\0\0\0"
  9418. "google.firestore.v1.ListCollectionIdsResponse"
  9419. "collection_ids"
  9420. "next_page_token"
  9421. }},
  9422. };
  9423. ::uint8_t* ListCollectionIdsResponse::_InternalSerialize(
  9424. ::uint8_t* target,
  9425. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  9426. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ListCollectionIdsResponse)
  9427. ::uint32_t cached_has_bits = 0;
  9428. (void)cached_has_bits;
  9429. // repeated string collection_ids = 1;
  9430. for (int i = 0, n = this->_internal_collection_ids_size(); i < n; ++i) {
  9431. const auto& s = this->_internal_collection_ids().Get(i);
  9432. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9433. s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListCollectionIdsResponse.collection_ids");
  9434. target = stream->WriteString(1, s, target);
  9435. }
  9436. // string next_page_token = 2;
  9437. if (!this->_internal_next_page_token().empty()) {
  9438. const std::string& _s = this->_internal_next_page_token();
  9439. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9440. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.ListCollectionIdsResponse.next_page_token");
  9441. target = stream->WriteStringMaybeAliased(2, _s, target);
  9442. }
  9443. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9444. target =
  9445. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  9446. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  9447. }
  9448. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ListCollectionIdsResponse)
  9449. return target;
  9450. }
  9451. ::size_t ListCollectionIdsResponse::ByteSizeLong() const {
  9452. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ListCollectionIdsResponse)
  9453. ::size_t total_size = 0;
  9454. ::uint32_t cached_has_bits = 0;
  9455. // Prevent compiler warnings about cached_has_bits being unused
  9456. (void) cached_has_bits;
  9457. // repeated string collection_ids = 1;
  9458. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_collection_ids().size());
  9459. for (int i = 0, n = _internal_collection_ids().size(); i < n; ++i) {
  9460. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  9461. _internal_collection_ids().Get(i));
  9462. }
  9463. // string next_page_token = 2;
  9464. if (!this->_internal_next_page_token().empty()) {
  9465. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  9466. this->_internal_next_page_token());
  9467. }
  9468. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  9469. }
  9470. const ::google::protobuf::Message::ClassData ListCollectionIdsResponse::_class_data_ = {
  9471. ListCollectionIdsResponse::MergeImpl,
  9472. nullptr, // OnDemandRegisterArenaDtor
  9473. };
  9474. const ::google::protobuf::Message::ClassData* ListCollectionIdsResponse::GetClassData() const {
  9475. return &_class_data_;
  9476. }
  9477. void ListCollectionIdsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  9478. auto* const _this = static_cast<ListCollectionIdsResponse*>(&to_msg);
  9479. auto& from = static_cast<const ListCollectionIdsResponse&>(from_msg);
  9480. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ListCollectionIdsResponse)
  9481. ABSL_DCHECK_NE(&from, _this);
  9482. ::uint32_t cached_has_bits = 0;
  9483. (void) cached_has_bits;
  9484. _this->_internal_mutable_collection_ids()->MergeFrom(from._internal_collection_ids());
  9485. if (!from._internal_next_page_token().empty()) {
  9486. _this->_internal_set_next_page_token(from._internal_next_page_token());
  9487. }
  9488. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  9489. }
  9490. void ListCollectionIdsResponse::CopyFrom(const ListCollectionIdsResponse& from) {
  9491. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ListCollectionIdsResponse)
  9492. if (&from == this) return;
  9493. Clear();
  9494. MergeFrom(from);
  9495. }
  9496. PROTOBUF_NOINLINE bool ListCollectionIdsResponse::IsInitialized() const {
  9497. return true;
  9498. }
  9499. ::_pbi::CachedSize* ListCollectionIdsResponse::AccessCachedSize() const {
  9500. return &_impl_._cached_size_;
  9501. }
  9502. void ListCollectionIdsResponse::InternalSwap(ListCollectionIdsResponse* PROTOBUF_RESTRICT other) {
  9503. using std::swap;
  9504. auto* arena = GetArena();
  9505. ABSL_DCHECK_EQ(arena, other->GetArena());
  9506. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9507. _impl_.collection_ids_.InternalSwap(&other->_impl_.collection_ids_);
  9508. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_page_token_, &other->_impl_.next_page_token_, arena);
  9509. }
  9510. ::google::protobuf::Metadata ListCollectionIdsResponse::GetMetadata() const {
  9511. return ::_pbi::AssignDescriptors(
  9512. &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once,
  9513. file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto[28]);
  9514. }
  9515. // @@protoc_insertion_point(namespace_scope)
  9516. } // namespace v1
  9517. } // namespace firestore
  9518. } // namespace google
  9519. namespace google {
  9520. namespace protobuf {
  9521. } // namespace protobuf
  9522. } // namespace google
  9523. // @@protoc_insertion_point(global_scope)
  9524. #include "google/protobuf/port_undef.inc"