firestore.pb.h 556 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644
  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. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/map.h" // IWYU pragma: export
  48. #include "google/protobuf/map_entry.h"
  49. #include "google/protobuf/map_field_inl.h"
  50. #include "google/protobuf/generated_enum_reflection.h"
  51. #include "google/protobuf/unknown_field_set.h"
  52. #include "google/api/annotations.pb.h"
  53. #include "google/firestore/v1/aggregation_result.pb.h"
  54. #include "google/firestore/v1/common.pb.h"
  55. #include "google/firestore/v1/document.pb.h"
  56. #include "google/firestore/v1/query.pb.h"
  57. #include "google/firestore/v1/write.pb.h"
  58. #include "google/protobuf/empty.pb.h"
  59. #include "google/protobuf/timestamp.pb.h"
  60. #include "google/protobuf/wrappers.pb.h"
  61. #include "google/rpc/status.pb.h"
  62. // @@protoc_insertion_point(includes)
  63. // Must be included last.
  64. #include "google/protobuf/port_def.inc"
  65. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto
  66. namespace google {
  67. namespace protobuf {
  68. namespace internal {
  69. class AnyMetadata;
  70. } // namespace internal
  71. } // namespace protobuf
  72. } // namespace google
  73. // Internal implementation detail -- do not use these members.
  74. struct TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto {
  75. static const ::uint32_t offsets[];
  76. };
  77. extern const ::google::protobuf::internal::DescriptorTable
  78. descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto;
  79. namespace google {
  80. namespace firestore {
  81. namespace v1 {
  82. class BatchGetDocumentsRequest;
  83. struct BatchGetDocumentsRequestDefaultTypeInternal;
  84. extern BatchGetDocumentsRequestDefaultTypeInternal _BatchGetDocumentsRequest_default_instance_;
  85. class BatchGetDocumentsResponse;
  86. struct BatchGetDocumentsResponseDefaultTypeInternal;
  87. extern BatchGetDocumentsResponseDefaultTypeInternal _BatchGetDocumentsResponse_default_instance_;
  88. class BeginTransactionRequest;
  89. struct BeginTransactionRequestDefaultTypeInternal;
  90. extern BeginTransactionRequestDefaultTypeInternal _BeginTransactionRequest_default_instance_;
  91. class BeginTransactionResponse;
  92. struct BeginTransactionResponseDefaultTypeInternal;
  93. extern BeginTransactionResponseDefaultTypeInternal _BeginTransactionResponse_default_instance_;
  94. class CommitRequest;
  95. struct CommitRequestDefaultTypeInternal;
  96. extern CommitRequestDefaultTypeInternal _CommitRequest_default_instance_;
  97. class CommitResponse;
  98. struct CommitResponseDefaultTypeInternal;
  99. extern CommitResponseDefaultTypeInternal _CommitResponse_default_instance_;
  100. class CreateDocumentRequest;
  101. struct CreateDocumentRequestDefaultTypeInternal;
  102. extern CreateDocumentRequestDefaultTypeInternal _CreateDocumentRequest_default_instance_;
  103. class DeleteDocumentRequest;
  104. struct DeleteDocumentRequestDefaultTypeInternal;
  105. extern DeleteDocumentRequestDefaultTypeInternal _DeleteDocumentRequest_default_instance_;
  106. class GetDocumentRequest;
  107. struct GetDocumentRequestDefaultTypeInternal;
  108. extern GetDocumentRequestDefaultTypeInternal _GetDocumentRequest_default_instance_;
  109. class ListCollectionIdsRequest;
  110. struct ListCollectionIdsRequestDefaultTypeInternal;
  111. extern ListCollectionIdsRequestDefaultTypeInternal _ListCollectionIdsRequest_default_instance_;
  112. class ListCollectionIdsResponse;
  113. struct ListCollectionIdsResponseDefaultTypeInternal;
  114. extern ListCollectionIdsResponseDefaultTypeInternal _ListCollectionIdsResponse_default_instance_;
  115. class ListDocumentsRequest;
  116. struct ListDocumentsRequestDefaultTypeInternal;
  117. extern ListDocumentsRequestDefaultTypeInternal _ListDocumentsRequest_default_instance_;
  118. class ListDocumentsResponse;
  119. struct ListDocumentsResponseDefaultTypeInternal;
  120. extern ListDocumentsResponseDefaultTypeInternal _ListDocumentsResponse_default_instance_;
  121. class ListenRequest;
  122. struct ListenRequestDefaultTypeInternal;
  123. extern ListenRequestDefaultTypeInternal _ListenRequest_default_instance_;
  124. class ListenRequest_LabelsEntry_DoNotUse;
  125. struct ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  126. extern ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal _ListenRequest_LabelsEntry_DoNotUse_default_instance_;
  127. class ListenResponse;
  128. struct ListenResponseDefaultTypeInternal;
  129. extern ListenResponseDefaultTypeInternal _ListenResponse_default_instance_;
  130. class RollbackRequest;
  131. struct RollbackRequestDefaultTypeInternal;
  132. extern RollbackRequestDefaultTypeInternal _RollbackRequest_default_instance_;
  133. class RunAggregationQueryRequest;
  134. struct RunAggregationQueryRequestDefaultTypeInternal;
  135. extern RunAggregationQueryRequestDefaultTypeInternal _RunAggregationQueryRequest_default_instance_;
  136. class RunAggregationQueryResponse;
  137. struct RunAggregationQueryResponseDefaultTypeInternal;
  138. extern RunAggregationQueryResponseDefaultTypeInternal _RunAggregationQueryResponse_default_instance_;
  139. class RunQueryRequest;
  140. struct RunQueryRequestDefaultTypeInternal;
  141. extern RunQueryRequestDefaultTypeInternal _RunQueryRequest_default_instance_;
  142. class RunQueryResponse;
  143. struct RunQueryResponseDefaultTypeInternal;
  144. extern RunQueryResponseDefaultTypeInternal _RunQueryResponse_default_instance_;
  145. class Target;
  146. struct TargetDefaultTypeInternal;
  147. extern TargetDefaultTypeInternal _Target_default_instance_;
  148. class TargetChange;
  149. struct TargetChangeDefaultTypeInternal;
  150. extern TargetChangeDefaultTypeInternal _TargetChange_default_instance_;
  151. class Target_DocumentsTarget;
  152. struct Target_DocumentsTargetDefaultTypeInternal;
  153. extern Target_DocumentsTargetDefaultTypeInternal _Target_DocumentsTarget_default_instance_;
  154. class Target_QueryTarget;
  155. struct Target_QueryTargetDefaultTypeInternal;
  156. extern Target_QueryTargetDefaultTypeInternal _Target_QueryTarget_default_instance_;
  157. class UpdateDocumentRequest;
  158. struct UpdateDocumentRequestDefaultTypeInternal;
  159. extern UpdateDocumentRequestDefaultTypeInternal _UpdateDocumentRequest_default_instance_;
  160. class WriteRequest;
  161. struct WriteRequestDefaultTypeInternal;
  162. extern WriteRequestDefaultTypeInternal _WriteRequest_default_instance_;
  163. class WriteRequest_LabelsEntry_DoNotUse;
  164. struct WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  165. extern WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal _WriteRequest_LabelsEntry_DoNotUse_default_instance_;
  166. class WriteResponse;
  167. struct WriteResponseDefaultTypeInternal;
  168. extern WriteResponseDefaultTypeInternal _WriteResponse_default_instance_;
  169. } // namespace v1
  170. } // namespace firestore
  171. namespace protobuf {
  172. } // namespace protobuf
  173. } // namespace google
  174. namespace google {
  175. namespace firestore {
  176. namespace v1 {
  177. enum TargetChange_TargetChangeType : int {
  178. TargetChange_TargetChangeType_NO_CHANGE = 0,
  179. TargetChange_TargetChangeType_ADD = 1,
  180. TargetChange_TargetChangeType_REMOVE = 2,
  181. TargetChange_TargetChangeType_CURRENT = 3,
  182. TargetChange_TargetChangeType_RESET = 4,
  183. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MIN_SENTINEL_DO_NOT_USE_ =
  184. std::numeric_limits<::int32_t>::min(),
  185. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MAX_SENTINEL_DO_NOT_USE_ =
  186. std::numeric_limits<::int32_t>::max(),
  187. };
  188. bool TargetChange_TargetChangeType_IsValid(int value);
  189. extern const uint32_t TargetChange_TargetChangeType_internal_data_[];
  190. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MIN = static_cast<TargetChange_TargetChangeType>(0);
  191. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MAX = static_cast<TargetChange_TargetChangeType>(4);
  192. constexpr int TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE = 4 + 1;
  193. const ::google::protobuf::EnumDescriptor*
  194. TargetChange_TargetChangeType_descriptor();
  195. template <typename T>
  196. const std::string& TargetChange_TargetChangeType_Name(T value) {
  197. static_assert(std::is_same<T, TargetChange_TargetChangeType>::value ||
  198. std::is_integral<T>::value,
  199. "Incorrect type passed to TargetChangeType_Name().");
  200. return TargetChange_TargetChangeType_Name(static_cast<TargetChange_TargetChangeType>(value));
  201. }
  202. template <>
  203. inline const std::string& TargetChange_TargetChangeType_Name(TargetChange_TargetChangeType value) {
  204. return ::google::protobuf::internal::NameOfDenseEnum<TargetChange_TargetChangeType_descriptor,
  205. 0, 4>(
  206. static_cast<int>(value));
  207. }
  208. inline bool TargetChange_TargetChangeType_Parse(absl::string_view name, TargetChange_TargetChangeType* value) {
  209. return ::google::protobuf::internal::ParseNamedEnum<TargetChange_TargetChangeType>(
  210. TargetChange_TargetChangeType_descriptor(), name, value);
  211. }
  212. // ===================================================================
  213. // -------------------------------------------------------------------
  214. class WriteRequest_LabelsEntry_DoNotUse final
  215. : public ::google::protobuf::internal::MapEntry<
  216. WriteRequest_LabelsEntry_DoNotUse, std::string, std::string,
  217. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  218. ::google::protobuf::internal::WireFormatLite::TYPE_STRING> {
  219. public:
  220. using SuperType = ::google::protobuf::internal::MapEntry<
  221. WriteRequest_LabelsEntry_DoNotUse, std::string, std::string,
  222. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  223. ::google::protobuf::internal::WireFormatLite::TYPE_STRING>;
  224. WriteRequest_LabelsEntry_DoNotUse();
  225. template <typename = void>
  226. explicit PROTOBUF_CONSTEXPR WriteRequest_LabelsEntry_DoNotUse(
  227. ::google::protobuf::internal::ConstantInitialized);
  228. explicit WriteRequest_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena);
  229. static const WriteRequest_LabelsEntry_DoNotUse* internal_default_instance() {
  230. return reinterpret_cast<const WriteRequest_LabelsEntry_DoNotUse*>(
  231. &_WriteRequest_LabelsEntry_DoNotUse_default_instance_);
  232. }
  233. static bool ValidateKey(std::string* s) {
  234. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.WriteRequest.LabelsEntry.key");
  235. }
  236. static bool ValidateValue(std::string* s) {
  237. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.WriteRequest.LabelsEntry.value");
  238. }
  239. ::google::protobuf::Metadata GetMetadata() const final;
  240. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  241. };
  242. // -------------------------------------------------------------------
  243. class Target_DocumentsTarget final :
  244. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.DocumentsTarget) */ {
  245. public:
  246. inline Target_DocumentsTarget() : Target_DocumentsTarget(nullptr) {}
  247. ~Target_DocumentsTarget() override;
  248. template<typename = void>
  249. explicit PROTOBUF_CONSTEXPR Target_DocumentsTarget(::google::protobuf::internal::ConstantInitialized);
  250. inline Target_DocumentsTarget(const Target_DocumentsTarget& from)
  251. : Target_DocumentsTarget(nullptr, from) {}
  252. Target_DocumentsTarget(Target_DocumentsTarget&& from) noexcept
  253. : Target_DocumentsTarget() {
  254. *this = ::std::move(from);
  255. }
  256. inline Target_DocumentsTarget& operator=(const Target_DocumentsTarget& from) {
  257. CopyFrom(from);
  258. return *this;
  259. }
  260. inline Target_DocumentsTarget& operator=(Target_DocumentsTarget&& from) noexcept {
  261. if (this == &from) return *this;
  262. if (GetArena() == from.GetArena()
  263. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  264. && GetArena() != nullptr
  265. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  266. ) {
  267. InternalSwap(&from);
  268. } else {
  269. CopyFrom(from);
  270. }
  271. return *this;
  272. }
  273. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  274. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  275. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  276. }
  277. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  278. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  279. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  280. }
  281. static const ::google::protobuf::Descriptor* descriptor() {
  282. return GetDescriptor();
  283. }
  284. static const ::google::protobuf::Descriptor* GetDescriptor() {
  285. return default_instance().GetMetadata().descriptor;
  286. }
  287. static const ::google::protobuf::Reflection* GetReflection() {
  288. return default_instance().GetMetadata().reflection;
  289. }
  290. static const Target_DocumentsTarget& default_instance() {
  291. return *internal_default_instance();
  292. }
  293. static inline const Target_DocumentsTarget* internal_default_instance() {
  294. return reinterpret_cast<const Target_DocumentsTarget*>(
  295. &_Target_DocumentsTarget_default_instance_);
  296. }
  297. static constexpr int kIndexInFileMessages =
  298. 23;
  299. friend void swap(Target_DocumentsTarget& a, Target_DocumentsTarget& b) {
  300. a.Swap(&b);
  301. }
  302. inline void Swap(Target_DocumentsTarget* other) {
  303. if (other == this) return;
  304. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  305. if (GetArena() != nullptr &&
  306. GetArena() == other->GetArena()) {
  307. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  308. if (GetArena() == other->GetArena()) {
  309. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  310. InternalSwap(other);
  311. } else {
  312. ::google::protobuf::internal::GenericSwap(this, other);
  313. }
  314. }
  315. void UnsafeArenaSwap(Target_DocumentsTarget* other) {
  316. if (other == this) return;
  317. ABSL_DCHECK(GetArena() == other->GetArena());
  318. InternalSwap(other);
  319. }
  320. // implements Message ----------------------------------------------
  321. Target_DocumentsTarget* New(::google::protobuf::Arena* arena = nullptr) const final {
  322. return CreateMaybeMessage<Target_DocumentsTarget>(arena);
  323. }
  324. using ::google::protobuf::Message::CopyFrom;
  325. void CopyFrom(const Target_DocumentsTarget& from);
  326. using ::google::protobuf::Message::MergeFrom;
  327. void MergeFrom( const Target_DocumentsTarget& from) {
  328. Target_DocumentsTarget::MergeImpl(*this, from);
  329. }
  330. private:
  331. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  332. public:
  333. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  334. bool IsInitialized() const final;
  335. ::size_t ByteSizeLong() const final;
  336. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  337. ::uint8_t* _InternalSerialize(
  338. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  339. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  340. private:
  341. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  342. void SharedCtor(::google::protobuf::Arena* arena);
  343. void SharedDtor();
  344. void InternalSwap(Target_DocumentsTarget* other);
  345. private:
  346. friend class ::google::protobuf::internal::AnyMetadata;
  347. static ::absl::string_view FullMessageName() {
  348. return "google.firestore.v1.Target.DocumentsTarget";
  349. }
  350. protected:
  351. explicit Target_DocumentsTarget(::google::protobuf::Arena* arena);
  352. Target_DocumentsTarget(::google::protobuf::Arena* arena, const Target_DocumentsTarget& from);
  353. public:
  354. static const ClassData _class_data_;
  355. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  356. ::google::protobuf::Metadata GetMetadata() const final;
  357. // nested types ----------------------------------------------------
  358. // accessors -------------------------------------------------------
  359. enum : int {
  360. kDocumentsFieldNumber = 2,
  361. };
  362. // repeated string documents = 2;
  363. int documents_size() const;
  364. private:
  365. int _internal_documents_size() const;
  366. public:
  367. void clear_documents() ;
  368. const std::string& documents(int index) const;
  369. std::string* mutable_documents(int index);
  370. void set_documents(int index, const std::string& value);
  371. void set_documents(int index, std::string&& value);
  372. void set_documents(int index, const char* value);
  373. void set_documents(int index, const char* value, std::size_t size);
  374. void set_documents(int index, absl::string_view value);
  375. std::string* add_documents();
  376. void add_documents(const std::string& value);
  377. void add_documents(std::string&& value);
  378. void add_documents(const char* value);
  379. void add_documents(const char* value, std::size_t size);
  380. void add_documents(absl::string_view value);
  381. const ::google::protobuf::RepeatedPtrField<std::string>& documents() const;
  382. ::google::protobuf::RepeatedPtrField<std::string>* mutable_documents();
  383. private:
  384. const ::google::protobuf::RepeatedPtrField<std::string>& _internal_documents() const;
  385. ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_documents();
  386. public:
  387. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.DocumentsTarget)
  388. private:
  389. class _Internal;
  390. friend class ::google::protobuf::internal::TcParser;
  391. static const ::google::protobuf::internal::TcParseTable<
  392. 0, 1, 0,
  393. 60, 2>
  394. _table_;
  395. friend class ::google::protobuf::MessageLite;
  396. friend class ::google::protobuf::Arena;
  397. template <typename T>
  398. friend class ::google::protobuf::Arena::InternalHelper;
  399. using InternalArenaConstructable_ = void;
  400. using DestructorSkippable_ = void;
  401. struct Impl_ {
  402. inline explicit constexpr Impl_(
  403. ::google::protobuf::internal::ConstantInitialized) noexcept;
  404. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  405. ::google::protobuf::Arena* arena);
  406. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  407. ::google::protobuf::Arena* arena, const Impl_& from);
  408. ::google::protobuf::RepeatedPtrField<std::string> documents_;
  409. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  410. PROTOBUF_TSAN_DECLARE_MEMBER
  411. };
  412. union { Impl_ _impl_; };
  413. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  414. };// -------------------------------------------------------------------
  415. class RollbackRequest final :
  416. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RollbackRequest) */ {
  417. public:
  418. inline RollbackRequest() : RollbackRequest(nullptr) {}
  419. ~RollbackRequest() override;
  420. template<typename = void>
  421. explicit PROTOBUF_CONSTEXPR RollbackRequest(::google::protobuf::internal::ConstantInitialized);
  422. inline RollbackRequest(const RollbackRequest& from)
  423. : RollbackRequest(nullptr, from) {}
  424. RollbackRequest(RollbackRequest&& from) noexcept
  425. : RollbackRequest() {
  426. *this = ::std::move(from);
  427. }
  428. inline RollbackRequest& operator=(const RollbackRequest& from) {
  429. CopyFrom(from);
  430. return *this;
  431. }
  432. inline RollbackRequest& operator=(RollbackRequest&& from) noexcept {
  433. if (this == &from) return *this;
  434. if (GetArena() == from.GetArena()
  435. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  436. && GetArena() != nullptr
  437. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  438. ) {
  439. InternalSwap(&from);
  440. } else {
  441. CopyFrom(from);
  442. }
  443. return *this;
  444. }
  445. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  446. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  447. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  448. }
  449. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  450. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  451. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  452. }
  453. static const ::google::protobuf::Descriptor* descriptor() {
  454. return GetDescriptor();
  455. }
  456. static const ::google::protobuf::Descriptor* GetDescriptor() {
  457. return default_instance().GetMetadata().descriptor;
  458. }
  459. static const ::google::protobuf::Reflection* GetReflection() {
  460. return default_instance().GetMetadata().reflection;
  461. }
  462. static const RollbackRequest& default_instance() {
  463. return *internal_default_instance();
  464. }
  465. static inline const RollbackRequest* internal_default_instance() {
  466. return reinterpret_cast<const RollbackRequest*>(
  467. &_RollbackRequest_default_instance_);
  468. }
  469. static constexpr int kIndexInFileMessages =
  470. 12;
  471. friend void swap(RollbackRequest& a, RollbackRequest& b) {
  472. a.Swap(&b);
  473. }
  474. inline void Swap(RollbackRequest* other) {
  475. if (other == this) return;
  476. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  477. if (GetArena() != nullptr &&
  478. GetArena() == other->GetArena()) {
  479. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  480. if (GetArena() == other->GetArena()) {
  481. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  482. InternalSwap(other);
  483. } else {
  484. ::google::protobuf::internal::GenericSwap(this, other);
  485. }
  486. }
  487. void UnsafeArenaSwap(RollbackRequest* other) {
  488. if (other == this) return;
  489. ABSL_DCHECK(GetArena() == other->GetArena());
  490. InternalSwap(other);
  491. }
  492. // implements Message ----------------------------------------------
  493. RollbackRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  494. return CreateMaybeMessage<RollbackRequest>(arena);
  495. }
  496. using ::google::protobuf::Message::CopyFrom;
  497. void CopyFrom(const RollbackRequest& from);
  498. using ::google::protobuf::Message::MergeFrom;
  499. void MergeFrom( const RollbackRequest& from) {
  500. RollbackRequest::MergeImpl(*this, from);
  501. }
  502. private:
  503. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  504. public:
  505. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  506. bool IsInitialized() const final;
  507. ::size_t ByteSizeLong() const final;
  508. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  509. ::uint8_t* _InternalSerialize(
  510. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  511. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  512. private:
  513. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  514. void SharedCtor(::google::protobuf::Arena* arena);
  515. void SharedDtor();
  516. void InternalSwap(RollbackRequest* other);
  517. private:
  518. friend class ::google::protobuf::internal::AnyMetadata;
  519. static ::absl::string_view FullMessageName() {
  520. return "google.firestore.v1.RollbackRequest";
  521. }
  522. protected:
  523. explicit RollbackRequest(::google::protobuf::Arena* arena);
  524. RollbackRequest(::google::protobuf::Arena* arena, const RollbackRequest& from);
  525. public:
  526. static const ClassData _class_data_;
  527. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  528. ::google::protobuf::Metadata GetMetadata() const final;
  529. // nested types ----------------------------------------------------
  530. // accessors -------------------------------------------------------
  531. enum : int {
  532. kDatabaseFieldNumber = 1,
  533. kTransactionFieldNumber = 2,
  534. };
  535. // string database = 1;
  536. void clear_database() ;
  537. const std::string& database() const;
  538. template <typename Arg_ = const std::string&, typename... Args_>
  539. void set_database(Arg_&& arg, Args_... args);
  540. std::string* mutable_database();
  541. PROTOBUF_NODISCARD std::string* release_database();
  542. void set_allocated_database(std::string* value);
  543. private:
  544. const std::string& _internal_database() const;
  545. inline PROTOBUF_ALWAYS_INLINE void _internal_set_database(
  546. const std::string& value);
  547. std::string* _internal_mutable_database();
  548. public:
  549. // bytes transaction = 2;
  550. void clear_transaction() ;
  551. const std::string& transaction() const;
  552. template <typename Arg_ = const std::string&, typename... Args_>
  553. void set_transaction(Arg_&& arg, Args_... args);
  554. std::string* mutable_transaction();
  555. PROTOBUF_NODISCARD std::string* release_transaction();
  556. void set_allocated_transaction(std::string* value);
  557. private:
  558. const std::string& _internal_transaction() const;
  559. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  560. const std::string& value);
  561. std::string* _internal_mutable_transaction();
  562. public:
  563. // @@protoc_insertion_point(class_scope:google.firestore.v1.RollbackRequest)
  564. private:
  565. class _Internal;
  566. friend class ::google::protobuf::internal::TcParser;
  567. static const ::google::protobuf::internal::TcParseTable<
  568. 1, 2, 0,
  569. 52, 2>
  570. _table_;
  571. friend class ::google::protobuf::MessageLite;
  572. friend class ::google::protobuf::Arena;
  573. template <typename T>
  574. friend class ::google::protobuf::Arena::InternalHelper;
  575. using InternalArenaConstructable_ = void;
  576. using DestructorSkippable_ = void;
  577. struct Impl_ {
  578. inline explicit constexpr Impl_(
  579. ::google::protobuf::internal::ConstantInitialized) noexcept;
  580. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  581. ::google::protobuf::Arena* arena);
  582. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  583. ::google::protobuf::Arena* arena, const Impl_& from);
  584. ::google::protobuf::internal::ArenaStringPtr database_;
  585. ::google::protobuf::internal::ArenaStringPtr transaction_;
  586. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  587. PROTOBUF_TSAN_DECLARE_MEMBER
  588. };
  589. union { Impl_ _impl_; };
  590. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  591. };// -------------------------------------------------------------------
  592. class ListenRequest_LabelsEntry_DoNotUse final
  593. : public ::google::protobuf::internal::MapEntry<
  594. ListenRequest_LabelsEntry_DoNotUse, std::string, std::string,
  595. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  596. ::google::protobuf::internal::WireFormatLite::TYPE_STRING> {
  597. public:
  598. using SuperType = ::google::protobuf::internal::MapEntry<
  599. ListenRequest_LabelsEntry_DoNotUse, std::string, std::string,
  600. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  601. ::google::protobuf::internal::WireFormatLite::TYPE_STRING>;
  602. ListenRequest_LabelsEntry_DoNotUse();
  603. template <typename = void>
  604. explicit PROTOBUF_CONSTEXPR ListenRequest_LabelsEntry_DoNotUse(
  605. ::google::protobuf::internal::ConstantInitialized);
  606. explicit ListenRequest_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena);
  607. static const ListenRequest_LabelsEntry_DoNotUse* internal_default_instance() {
  608. return reinterpret_cast<const ListenRequest_LabelsEntry_DoNotUse*>(
  609. &_ListenRequest_LabelsEntry_DoNotUse_default_instance_);
  610. }
  611. static bool ValidateKey(std::string* s) {
  612. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.ListenRequest.LabelsEntry.key");
  613. }
  614. static bool ValidateValue(std::string* s) {
  615. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.ListenRequest.LabelsEntry.value");
  616. }
  617. ::google::protobuf::Metadata GetMetadata() const final;
  618. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  619. };
  620. // -------------------------------------------------------------------
  621. class ListCollectionIdsResponse final :
  622. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsResponse) */ {
  623. public:
  624. inline ListCollectionIdsResponse() : ListCollectionIdsResponse(nullptr) {}
  625. ~ListCollectionIdsResponse() override;
  626. template<typename = void>
  627. explicit PROTOBUF_CONSTEXPR ListCollectionIdsResponse(::google::protobuf::internal::ConstantInitialized);
  628. inline ListCollectionIdsResponse(const ListCollectionIdsResponse& from)
  629. : ListCollectionIdsResponse(nullptr, from) {}
  630. ListCollectionIdsResponse(ListCollectionIdsResponse&& from) noexcept
  631. : ListCollectionIdsResponse() {
  632. *this = ::std::move(from);
  633. }
  634. inline ListCollectionIdsResponse& operator=(const ListCollectionIdsResponse& from) {
  635. CopyFrom(from);
  636. return *this;
  637. }
  638. inline ListCollectionIdsResponse& operator=(ListCollectionIdsResponse&& from) noexcept {
  639. if (this == &from) return *this;
  640. if (GetArena() == from.GetArena()
  641. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  642. && GetArena() != nullptr
  643. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  644. ) {
  645. InternalSwap(&from);
  646. } else {
  647. CopyFrom(from);
  648. }
  649. return *this;
  650. }
  651. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  652. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  653. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  654. }
  655. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  656. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  657. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  658. }
  659. static const ::google::protobuf::Descriptor* descriptor() {
  660. return GetDescriptor();
  661. }
  662. static const ::google::protobuf::Descriptor* GetDescriptor() {
  663. return default_instance().GetMetadata().descriptor;
  664. }
  665. static const ::google::protobuf::Reflection* GetReflection() {
  666. return default_instance().GetMetadata().reflection;
  667. }
  668. static const ListCollectionIdsResponse& default_instance() {
  669. return *internal_default_instance();
  670. }
  671. static inline const ListCollectionIdsResponse* internal_default_instance() {
  672. return reinterpret_cast<const ListCollectionIdsResponse*>(
  673. &_ListCollectionIdsResponse_default_instance_);
  674. }
  675. static constexpr int kIndexInFileMessages =
  676. 28;
  677. friend void swap(ListCollectionIdsResponse& a, ListCollectionIdsResponse& b) {
  678. a.Swap(&b);
  679. }
  680. inline void Swap(ListCollectionIdsResponse* other) {
  681. if (other == this) return;
  682. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  683. if (GetArena() != nullptr &&
  684. GetArena() == other->GetArena()) {
  685. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  686. if (GetArena() == other->GetArena()) {
  687. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  688. InternalSwap(other);
  689. } else {
  690. ::google::protobuf::internal::GenericSwap(this, other);
  691. }
  692. }
  693. void UnsafeArenaSwap(ListCollectionIdsResponse* other) {
  694. if (other == this) return;
  695. ABSL_DCHECK(GetArena() == other->GetArena());
  696. InternalSwap(other);
  697. }
  698. // implements Message ----------------------------------------------
  699. ListCollectionIdsResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  700. return CreateMaybeMessage<ListCollectionIdsResponse>(arena);
  701. }
  702. using ::google::protobuf::Message::CopyFrom;
  703. void CopyFrom(const ListCollectionIdsResponse& from);
  704. using ::google::protobuf::Message::MergeFrom;
  705. void MergeFrom( const ListCollectionIdsResponse& from) {
  706. ListCollectionIdsResponse::MergeImpl(*this, from);
  707. }
  708. private:
  709. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  710. public:
  711. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  712. bool IsInitialized() const final;
  713. ::size_t ByteSizeLong() const final;
  714. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  715. ::uint8_t* _InternalSerialize(
  716. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  717. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  718. private:
  719. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  720. void SharedCtor(::google::protobuf::Arena* arena);
  721. void SharedDtor();
  722. void InternalSwap(ListCollectionIdsResponse* other);
  723. private:
  724. friend class ::google::protobuf::internal::AnyMetadata;
  725. static ::absl::string_view FullMessageName() {
  726. return "google.firestore.v1.ListCollectionIdsResponse";
  727. }
  728. protected:
  729. explicit ListCollectionIdsResponse(::google::protobuf::Arena* arena);
  730. ListCollectionIdsResponse(::google::protobuf::Arena* arena, const ListCollectionIdsResponse& from);
  731. public:
  732. static const ClassData _class_data_;
  733. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  734. ::google::protobuf::Metadata GetMetadata() const final;
  735. // nested types ----------------------------------------------------
  736. // accessors -------------------------------------------------------
  737. enum : int {
  738. kCollectionIdsFieldNumber = 1,
  739. kNextPageTokenFieldNumber = 2,
  740. };
  741. // repeated string collection_ids = 1;
  742. int collection_ids_size() const;
  743. private:
  744. int _internal_collection_ids_size() const;
  745. public:
  746. void clear_collection_ids() ;
  747. const std::string& collection_ids(int index) const;
  748. std::string* mutable_collection_ids(int index);
  749. void set_collection_ids(int index, const std::string& value);
  750. void set_collection_ids(int index, std::string&& value);
  751. void set_collection_ids(int index, const char* value);
  752. void set_collection_ids(int index, const char* value, std::size_t size);
  753. void set_collection_ids(int index, absl::string_view value);
  754. std::string* add_collection_ids();
  755. void add_collection_ids(const std::string& value);
  756. void add_collection_ids(std::string&& value);
  757. void add_collection_ids(const char* value);
  758. void add_collection_ids(const char* value, std::size_t size);
  759. void add_collection_ids(absl::string_view value);
  760. const ::google::protobuf::RepeatedPtrField<std::string>& collection_ids() const;
  761. ::google::protobuf::RepeatedPtrField<std::string>* mutable_collection_ids();
  762. private:
  763. const ::google::protobuf::RepeatedPtrField<std::string>& _internal_collection_ids() const;
  764. ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_collection_ids();
  765. public:
  766. // string next_page_token = 2;
  767. void clear_next_page_token() ;
  768. const std::string& next_page_token() const;
  769. template <typename Arg_ = const std::string&, typename... Args_>
  770. void set_next_page_token(Arg_&& arg, Args_... args);
  771. std::string* mutable_next_page_token();
  772. PROTOBUF_NODISCARD std::string* release_next_page_token();
  773. void set_allocated_next_page_token(std::string* value);
  774. private:
  775. const std::string& _internal_next_page_token() const;
  776. inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(
  777. const std::string& value);
  778. std::string* _internal_mutable_next_page_token();
  779. public:
  780. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsResponse)
  781. private:
  782. class _Internal;
  783. friend class ::google::protobuf::internal::TcParser;
  784. static const ::google::protobuf::internal::TcParseTable<
  785. 1, 2, 0,
  786. 83, 2>
  787. _table_;
  788. friend class ::google::protobuf::MessageLite;
  789. friend class ::google::protobuf::Arena;
  790. template <typename T>
  791. friend class ::google::protobuf::Arena::InternalHelper;
  792. using InternalArenaConstructable_ = void;
  793. using DestructorSkippable_ = void;
  794. struct Impl_ {
  795. inline explicit constexpr Impl_(
  796. ::google::protobuf::internal::ConstantInitialized) noexcept;
  797. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  798. ::google::protobuf::Arena* arena);
  799. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  800. ::google::protobuf::Arena* arena, const Impl_& from);
  801. ::google::protobuf::RepeatedPtrField<std::string> collection_ids_;
  802. ::google::protobuf::internal::ArenaStringPtr next_page_token_;
  803. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  804. PROTOBUF_TSAN_DECLARE_MEMBER
  805. };
  806. union { Impl_ _impl_; };
  807. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  808. };// -------------------------------------------------------------------
  809. class ListCollectionIdsRequest final :
  810. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsRequest) */ {
  811. public:
  812. inline ListCollectionIdsRequest() : ListCollectionIdsRequest(nullptr) {}
  813. ~ListCollectionIdsRequest() override;
  814. template<typename = void>
  815. explicit PROTOBUF_CONSTEXPR ListCollectionIdsRequest(::google::protobuf::internal::ConstantInitialized);
  816. inline ListCollectionIdsRequest(const ListCollectionIdsRequest& from)
  817. : ListCollectionIdsRequest(nullptr, from) {}
  818. ListCollectionIdsRequest(ListCollectionIdsRequest&& from) noexcept
  819. : ListCollectionIdsRequest() {
  820. *this = ::std::move(from);
  821. }
  822. inline ListCollectionIdsRequest& operator=(const ListCollectionIdsRequest& from) {
  823. CopyFrom(from);
  824. return *this;
  825. }
  826. inline ListCollectionIdsRequest& operator=(ListCollectionIdsRequest&& from) noexcept {
  827. if (this == &from) return *this;
  828. if (GetArena() == from.GetArena()
  829. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  830. && GetArena() != nullptr
  831. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  832. ) {
  833. InternalSwap(&from);
  834. } else {
  835. CopyFrom(from);
  836. }
  837. return *this;
  838. }
  839. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  840. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  841. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  842. }
  843. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  844. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  845. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  846. }
  847. static const ::google::protobuf::Descriptor* descriptor() {
  848. return GetDescriptor();
  849. }
  850. static const ::google::protobuf::Descriptor* GetDescriptor() {
  851. return default_instance().GetMetadata().descriptor;
  852. }
  853. static const ::google::protobuf::Reflection* GetReflection() {
  854. return default_instance().GetMetadata().reflection;
  855. }
  856. static const ListCollectionIdsRequest& default_instance() {
  857. return *internal_default_instance();
  858. }
  859. static inline const ListCollectionIdsRequest* internal_default_instance() {
  860. return reinterpret_cast<const ListCollectionIdsRequest*>(
  861. &_ListCollectionIdsRequest_default_instance_);
  862. }
  863. static constexpr int kIndexInFileMessages =
  864. 27;
  865. friend void swap(ListCollectionIdsRequest& a, ListCollectionIdsRequest& b) {
  866. a.Swap(&b);
  867. }
  868. inline void Swap(ListCollectionIdsRequest* other) {
  869. if (other == this) return;
  870. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  871. if (GetArena() != nullptr &&
  872. GetArena() == other->GetArena()) {
  873. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  874. if (GetArena() == other->GetArena()) {
  875. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  876. InternalSwap(other);
  877. } else {
  878. ::google::protobuf::internal::GenericSwap(this, other);
  879. }
  880. }
  881. void UnsafeArenaSwap(ListCollectionIdsRequest* other) {
  882. if (other == this) return;
  883. ABSL_DCHECK(GetArena() == other->GetArena());
  884. InternalSwap(other);
  885. }
  886. // implements Message ----------------------------------------------
  887. ListCollectionIdsRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  888. return CreateMaybeMessage<ListCollectionIdsRequest>(arena);
  889. }
  890. using ::google::protobuf::Message::CopyFrom;
  891. void CopyFrom(const ListCollectionIdsRequest& from);
  892. using ::google::protobuf::Message::MergeFrom;
  893. void MergeFrom( const ListCollectionIdsRequest& from) {
  894. ListCollectionIdsRequest::MergeImpl(*this, from);
  895. }
  896. private:
  897. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  898. public:
  899. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  900. bool IsInitialized() const final;
  901. ::size_t ByteSizeLong() const final;
  902. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  903. ::uint8_t* _InternalSerialize(
  904. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  905. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  906. private:
  907. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  908. void SharedCtor(::google::protobuf::Arena* arena);
  909. void SharedDtor();
  910. void InternalSwap(ListCollectionIdsRequest* other);
  911. private:
  912. friend class ::google::protobuf::internal::AnyMetadata;
  913. static ::absl::string_view FullMessageName() {
  914. return "google.firestore.v1.ListCollectionIdsRequest";
  915. }
  916. protected:
  917. explicit ListCollectionIdsRequest(::google::protobuf::Arena* arena);
  918. ListCollectionIdsRequest(::google::protobuf::Arena* arena, const ListCollectionIdsRequest& from);
  919. public:
  920. static const ClassData _class_data_;
  921. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  922. ::google::protobuf::Metadata GetMetadata() const final;
  923. // nested types ----------------------------------------------------
  924. // accessors -------------------------------------------------------
  925. enum : int {
  926. kParentFieldNumber = 1,
  927. kPageTokenFieldNumber = 3,
  928. kPageSizeFieldNumber = 2,
  929. };
  930. // string parent = 1;
  931. void clear_parent() ;
  932. const std::string& parent() const;
  933. template <typename Arg_ = const std::string&, typename... Args_>
  934. void set_parent(Arg_&& arg, Args_... args);
  935. std::string* mutable_parent();
  936. PROTOBUF_NODISCARD std::string* release_parent();
  937. void set_allocated_parent(std::string* value);
  938. private:
  939. const std::string& _internal_parent() const;
  940. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(
  941. const std::string& value);
  942. std::string* _internal_mutable_parent();
  943. public:
  944. // string page_token = 3;
  945. void clear_page_token() ;
  946. const std::string& page_token() const;
  947. template <typename Arg_ = const std::string&, typename... Args_>
  948. void set_page_token(Arg_&& arg, Args_... args);
  949. std::string* mutable_page_token();
  950. PROTOBUF_NODISCARD std::string* release_page_token();
  951. void set_allocated_page_token(std::string* value);
  952. private:
  953. const std::string& _internal_page_token() const;
  954. inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(
  955. const std::string& value);
  956. std::string* _internal_mutable_page_token();
  957. public:
  958. // int32 page_size = 2;
  959. void clear_page_size() ;
  960. ::int32_t page_size() const;
  961. void set_page_size(::int32_t value);
  962. private:
  963. ::int32_t _internal_page_size() const;
  964. void _internal_set_page_size(::int32_t value);
  965. public:
  966. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsRequest)
  967. private:
  968. class _Internal;
  969. friend class ::google::protobuf::internal::TcParser;
  970. static const ::google::protobuf::internal::TcParseTable<
  971. 2, 3, 0,
  972. 69, 2>
  973. _table_;
  974. friend class ::google::protobuf::MessageLite;
  975. friend class ::google::protobuf::Arena;
  976. template <typename T>
  977. friend class ::google::protobuf::Arena::InternalHelper;
  978. using InternalArenaConstructable_ = void;
  979. using DestructorSkippable_ = void;
  980. struct Impl_ {
  981. inline explicit constexpr Impl_(
  982. ::google::protobuf::internal::ConstantInitialized) noexcept;
  983. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  984. ::google::protobuf::Arena* arena);
  985. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  986. ::google::protobuf::Arena* arena, const Impl_& from);
  987. ::google::protobuf::internal::ArenaStringPtr parent_;
  988. ::google::protobuf::internal::ArenaStringPtr page_token_;
  989. ::int32_t page_size_;
  990. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  991. PROTOBUF_TSAN_DECLARE_MEMBER
  992. };
  993. union { Impl_ _impl_; };
  994. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  995. };// -------------------------------------------------------------------
  996. class BeginTransactionResponse final :
  997. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionResponse) */ {
  998. public:
  999. inline BeginTransactionResponse() : BeginTransactionResponse(nullptr) {}
  1000. ~BeginTransactionResponse() override;
  1001. template<typename = void>
  1002. explicit PROTOBUF_CONSTEXPR BeginTransactionResponse(::google::protobuf::internal::ConstantInitialized);
  1003. inline BeginTransactionResponse(const BeginTransactionResponse& from)
  1004. : BeginTransactionResponse(nullptr, from) {}
  1005. BeginTransactionResponse(BeginTransactionResponse&& from) noexcept
  1006. : BeginTransactionResponse() {
  1007. *this = ::std::move(from);
  1008. }
  1009. inline BeginTransactionResponse& operator=(const BeginTransactionResponse& from) {
  1010. CopyFrom(from);
  1011. return *this;
  1012. }
  1013. inline BeginTransactionResponse& operator=(BeginTransactionResponse&& from) noexcept {
  1014. if (this == &from) return *this;
  1015. if (GetArena() == from.GetArena()
  1016. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1017. && GetArena() != nullptr
  1018. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1019. ) {
  1020. InternalSwap(&from);
  1021. } else {
  1022. CopyFrom(from);
  1023. }
  1024. return *this;
  1025. }
  1026. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1027. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1028. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1029. }
  1030. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1031. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1032. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1033. }
  1034. static const ::google::protobuf::Descriptor* descriptor() {
  1035. return GetDescriptor();
  1036. }
  1037. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1038. return default_instance().GetMetadata().descriptor;
  1039. }
  1040. static const ::google::protobuf::Reflection* GetReflection() {
  1041. return default_instance().GetMetadata().reflection;
  1042. }
  1043. static const BeginTransactionResponse& default_instance() {
  1044. return *internal_default_instance();
  1045. }
  1046. static inline const BeginTransactionResponse* internal_default_instance() {
  1047. return reinterpret_cast<const BeginTransactionResponse*>(
  1048. &_BeginTransactionResponse_default_instance_);
  1049. }
  1050. static constexpr int kIndexInFileMessages =
  1051. 9;
  1052. friend void swap(BeginTransactionResponse& a, BeginTransactionResponse& b) {
  1053. a.Swap(&b);
  1054. }
  1055. inline void Swap(BeginTransactionResponse* other) {
  1056. if (other == this) return;
  1057. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1058. if (GetArena() != nullptr &&
  1059. GetArena() == other->GetArena()) {
  1060. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1061. if (GetArena() == other->GetArena()) {
  1062. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1063. InternalSwap(other);
  1064. } else {
  1065. ::google::protobuf::internal::GenericSwap(this, other);
  1066. }
  1067. }
  1068. void UnsafeArenaSwap(BeginTransactionResponse* other) {
  1069. if (other == this) return;
  1070. ABSL_DCHECK(GetArena() == other->GetArena());
  1071. InternalSwap(other);
  1072. }
  1073. // implements Message ----------------------------------------------
  1074. BeginTransactionResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  1075. return CreateMaybeMessage<BeginTransactionResponse>(arena);
  1076. }
  1077. using ::google::protobuf::Message::CopyFrom;
  1078. void CopyFrom(const BeginTransactionResponse& from);
  1079. using ::google::protobuf::Message::MergeFrom;
  1080. void MergeFrom( const BeginTransactionResponse& from) {
  1081. BeginTransactionResponse::MergeImpl(*this, from);
  1082. }
  1083. private:
  1084. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1085. public:
  1086. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1087. bool IsInitialized() const final;
  1088. ::size_t ByteSizeLong() const final;
  1089. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1090. ::uint8_t* _InternalSerialize(
  1091. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1092. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1093. private:
  1094. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1095. void SharedCtor(::google::protobuf::Arena* arena);
  1096. void SharedDtor();
  1097. void InternalSwap(BeginTransactionResponse* other);
  1098. private:
  1099. friend class ::google::protobuf::internal::AnyMetadata;
  1100. static ::absl::string_view FullMessageName() {
  1101. return "google.firestore.v1.BeginTransactionResponse";
  1102. }
  1103. protected:
  1104. explicit BeginTransactionResponse(::google::protobuf::Arena* arena);
  1105. BeginTransactionResponse(::google::protobuf::Arena* arena, const BeginTransactionResponse& from);
  1106. public:
  1107. static const ClassData _class_data_;
  1108. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1109. ::google::protobuf::Metadata GetMetadata() const final;
  1110. // nested types ----------------------------------------------------
  1111. // accessors -------------------------------------------------------
  1112. enum : int {
  1113. kTransactionFieldNumber = 1,
  1114. };
  1115. // bytes transaction = 1;
  1116. void clear_transaction() ;
  1117. const std::string& transaction() const;
  1118. template <typename Arg_ = const std::string&, typename... Args_>
  1119. void set_transaction(Arg_&& arg, Args_... args);
  1120. std::string* mutable_transaction();
  1121. PROTOBUF_NODISCARD std::string* release_transaction();
  1122. void set_allocated_transaction(std::string* value);
  1123. private:
  1124. const std::string& _internal_transaction() const;
  1125. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  1126. const std::string& value);
  1127. std::string* _internal_mutable_transaction();
  1128. public:
  1129. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionResponse)
  1130. private:
  1131. class _Internal;
  1132. friend class ::google::protobuf::internal::TcParser;
  1133. static const ::google::protobuf::internal::TcParseTable<
  1134. 0, 1, 0,
  1135. 0, 2>
  1136. _table_;
  1137. friend class ::google::protobuf::MessageLite;
  1138. friend class ::google::protobuf::Arena;
  1139. template <typename T>
  1140. friend class ::google::protobuf::Arena::InternalHelper;
  1141. using InternalArenaConstructable_ = void;
  1142. using DestructorSkippable_ = void;
  1143. struct Impl_ {
  1144. inline explicit constexpr Impl_(
  1145. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1146. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1147. ::google::protobuf::Arena* arena);
  1148. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1149. ::google::protobuf::Arena* arena, const Impl_& from);
  1150. ::google::protobuf::internal::ArenaStringPtr transaction_;
  1151. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1152. PROTOBUF_TSAN_DECLARE_MEMBER
  1153. };
  1154. union { Impl_ _impl_; };
  1155. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1156. };// -------------------------------------------------------------------
  1157. class ListDocumentsRequest final :
  1158. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsRequest) */ {
  1159. public:
  1160. inline ListDocumentsRequest() : ListDocumentsRequest(nullptr) {}
  1161. ~ListDocumentsRequest() override;
  1162. template<typename = void>
  1163. explicit PROTOBUF_CONSTEXPR ListDocumentsRequest(::google::protobuf::internal::ConstantInitialized);
  1164. inline ListDocumentsRequest(const ListDocumentsRequest& from)
  1165. : ListDocumentsRequest(nullptr, from) {}
  1166. ListDocumentsRequest(ListDocumentsRequest&& from) noexcept
  1167. : ListDocumentsRequest() {
  1168. *this = ::std::move(from);
  1169. }
  1170. inline ListDocumentsRequest& operator=(const ListDocumentsRequest& from) {
  1171. CopyFrom(from);
  1172. return *this;
  1173. }
  1174. inline ListDocumentsRequest& operator=(ListDocumentsRequest&& from) noexcept {
  1175. if (this == &from) return *this;
  1176. if (GetArena() == from.GetArena()
  1177. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1178. && GetArena() != nullptr
  1179. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1180. ) {
  1181. InternalSwap(&from);
  1182. } else {
  1183. CopyFrom(from);
  1184. }
  1185. return *this;
  1186. }
  1187. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1188. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1189. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1190. }
  1191. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1192. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1193. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1194. }
  1195. static const ::google::protobuf::Descriptor* descriptor() {
  1196. return GetDescriptor();
  1197. }
  1198. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1199. return default_instance().GetMetadata().descriptor;
  1200. }
  1201. static const ::google::protobuf::Reflection* GetReflection() {
  1202. return default_instance().GetMetadata().reflection;
  1203. }
  1204. static const ListDocumentsRequest& default_instance() {
  1205. return *internal_default_instance();
  1206. }
  1207. enum ConsistencySelectorCase {
  1208. kTransaction = 8,
  1209. kReadTime = 10,
  1210. CONSISTENCY_SELECTOR_NOT_SET = 0,
  1211. };
  1212. static inline const ListDocumentsRequest* internal_default_instance() {
  1213. return reinterpret_cast<const ListDocumentsRequest*>(
  1214. &_ListDocumentsRequest_default_instance_);
  1215. }
  1216. static constexpr int kIndexInFileMessages =
  1217. 1;
  1218. friend void swap(ListDocumentsRequest& a, ListDocumentsRequest& b) {
  1219. a.Swap(&b);
  1220. }
  1221. inline void Swap(ListDocumentsRequest* other) {
  1222. if (other == this) return;
  1223. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1224. if (GetArena() != nullptr &&
  1225. GetArena() == other->GetArena()) {
  1226. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1227. if (GetArena() == other->GetArena()) {
  1228. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1229. InternalSwap(other);
  1230. } else {
  1231. ::google::protobuf::internal::GenericSwap(this, other);
  1232. }
  1233. }
  1234. void UnsafeArenaSwap(ListDocumentsRequest* other) {
  1235. if (other == this) return;
  1236. ABSL_DCHECK(GetArena() == other->GetArena());
  1237. InternalSwap(other);
  1238. }
  1239. // implements Message ----------------------------------------------
  1240. ListDocumentsRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  1241. return CreateMaybeMessage<ListDocumentsRequest>(arena);
  1242. }
  1243. using ::google::protobuf::Message::CopyFrom;
  1244. void CopyFrom(const ListDocumentsRequest& from);
  1245. using ::google::protobuf::Message::MergeFrom;
  1246. void MergeFrom( const ListDocumentsRequest& from) {
  1247. ListDocumentsRequest::MergeImpl(*this, from);
  1248. }
  1249. private:
  1250. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1251. public:
  1252. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1253. bool IsInitialized() const final;
  1254. ::size_t ByteSizeLong() const final;
  1255. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1256. ::uint8_t* _InternalSerialize(
  1257. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1258. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1259. private:
  1260. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1261. void SharedCtor(::google::protobuf::Arena* arena);
  1262. void SharedDtor();
  1263. void InternalSwap(ListDocumentsRequest* other);
  1264. private:
  1265. friend class ::google::protobuf::internal::AnyMetadata;
  1266. static ::absl::string_view FullMessageName() {
  1267. return "google.firestore.v1.ListDocumentsRequest";
  1268. }
  1269. protected:
  1270. explicit ListDocumentsRequest(::google::protobuf::Arena* arena);
  1271. ListDocumentsRequest(::google::protobuf::Arena* arena, const ListDocumentsRequest& from);
  1272. public:
  1273. static const ClassData _class_data_;
  1274. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1275. ::google::protobuf::Metadata GetMetadata() const final;
  1276. // nested types ----------------------------------------------------
  1277. // accessors -------------------------------------------------------
  1278. enum : int {
  1279. kParentFieldNumber = 1,
  1280. kCollectionIdFieldNumber = 2,
  1281. kPageTokenFieldNumber = 4,
  1282. kOrderByFieldNumber = 6,
  1283. kMaskFieldNumber = 7,
  1284. kPageSizeFieldNumber = 3,
  1285. kShowMissingFieldNumber = 12,
  1286. kTransactionFieldNumber = 8,
  1287. kReadTimeFieldNumber = 10,
  1288. };
  1289. // string parent = 1;
  1290. void clear_parent() ;
  1291. const std::string& parent() const;
  1292. template <typename Arg_ = const std::string&, typename... Args_>
  1293. void set_parent(Arg_&& arg, Args_... args);
  1294. std::string* mutable_parent();
  1295. PROTOBUF_NODISCARD std::string* release_parent();
  1296. void set_allocated_parent(std::string* value);
  1297. private:
  1298. const std::string& _internal_parent() const;
  1299. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(
  1300. const std::string& value);
  1301. std::string* _internal_mutable_parent();
  1302. public:
  1303. // string collection_id = 2;
  1304. void clear_collection_id() ;
  1305. const std::string& collection_id() const;
  1306. template <typename Arg_ = const std::string&, typename... Args_>
  1307. void set_collection_id(Arg_&& arg, Args_... args);
  1308. std::string* mutable_collection_id();
  1309. PROTOBUF_NODISCARD std::string* release_collection_id();
  1310. void set_allocated_collection_id(std::string* value);
  1311. private:
  1312. const std::string& _internal_collection_id() const;
  1313. inline PROTOBUF_ALWAYS_INLINE void _internal_set_collection_id(
  1314. const std::string& value);
  1315. std::string* _internal_mutable_collection_id();
  1316. public:
  1317. // string page_token = 4;
  1318. void clear_page_token() ;
  1319. const std::string& page_token() const;
  1320. template <typename Arg_ = const std::string&, typename... Args_>
  1321. void set_page_token(Arg_&& arg, Args_... args);
  1322. std::string* mutable_page_token();
  1323. PROTOBUF_NODISCARD std::string* release_page_token();
  1324. void set_allocated_page_token(std::string* value);
  1325. private:
  1326. const std::string& _internal_page_token() const;
  1327. inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(
  1328. const std::string& value);
  1329. std::string* _internal_mutable_page_token();
  1330. public:
  1331. // string order_by = 6;
  1332. void clear_order_by() ;
  1333. const std::string& order_by() const;
  1334. template <typename Arg_ = const std::string&, typename... Args_>
  1335. void set_order_by(Arg_&& arg, Args_... args);
  1336. std::string* mutable_order_by();
  1337. PROTOBUF_NODISCARD std::string* release_order_by();
  1338. void set_allocated_order_by(std::string* value);
  1339. private:
  1340. const std::string& _internal_order_by() const;
  1341. inline PROTOBUF_ALWAYS_INLINE void _internal_set_order_by(
  1342. const std::string& value);
  1343. std::string* _internal_mutable_order_by();
  1344. public:
  1345. // .google.firestore.v1.DocumentMask mask = 7;
  1346. bool has_mask() const;
  1347. void clear_mask() ;
  1348. const ::google::firestore::v1::DocumentMask& mask() const;
  1349. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentMask* release_mask();
  1350. ::google::firestore::v1::DocumentMask* mutable_mask();
  1351. void set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  1352. void unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  1353. ::google::firestore::v1::DocumentMask* unsafe_arena_release_mask();
  1354. private:
  1355. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  1356. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  1357. public:
  1358. // int32 page_size = 3;
  1359. void clear_page_size() ;
  1360. ::int32_t page_size() const;
  1361. void set_page_size(::int32_t value);
  1362. private:
  1363. ::int32_t _internal_page_size() const;
  1364. void _internal_set_page_size(::int32_t value);
  1365. public:
  1366. // bool show_missing = 12;
  1367. void clear_show_missing() ;
  1368. bool show_missing() const;
  1369. void set_show_missing(bool value);
  1370. private:
  1371. bool _internal_show_missing() const;
  1372. void _internal_set_show_missing(bool value);
  1373. public:
  1374. // bytes transaction = 8;
  1375. bool has_transaction() const;
  1376. void clear_transaction() ;
  1377. const std::string& transaction() const;
  1378. template <typename Arg_ = const std::string&, typename... Args_>
  1379. void set_transaction(Arg_&& arg, Args_... args);
  1380. std::string* mutable_transaction();
  1381. PROTOBUF_NODISCARD std::string* release_transaction();
  1382. void set_allocated_transaction(std::string* value);
  1383. private:
  1384. const std::string& _internal_transaction() const;
  1385. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  1386. const std::string& value);
  1387. std::string* _internal_mutable_transaction();
  1388. public:
  1389. // .google.protobuf.Timestamp read_time = 10;
  1390. bool has_read_time() const;
  1391. private:
  1392. bool _internal_has_read_time() const;
  1393. public:
  1394. void clear_read_time() ;
  1395. const ::google::protobuf::Timestamp& read_time() const;
  1396. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  1397. ::google::protobuf::Timestamp* mutable_read_time();
  1398. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  1399. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  1400. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  1401. private:
  1402. const ::google::protobuf::Timestamp& _internal_read_time() const;
  1403. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  1404. public:
  1405. void clear_consistency_selector();
  1406. ConsistencySelectorCase consistency_selector_case() const;
  1407. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsRequest)
  1408. private:
  1409. class _Internal;
  1410. void set_has_transaction();
  1411. void set_has_read_time();
  1412. inline bool has_consistency_selector() const;
  1413. inline void clear_has_consistency_selector();
  1414. friend class ::google::protobuf::internal::TcParser;
  1415. static const ::google::protobuf::internal::TcParseTable<
  1416. 4, 9, 2,
  1417. 94, 2>
  1418. _table_;
  1419. friend class ::google::protobuf::MessageLite;
  1420. friend class ::google::protobuf::Arena;
  1421. template <typename T>
  1422. friend class ::google::protobuf::Arena::InternalHelper;
  1423. using InternalArenaConstructable_ = void;
  1424. using DestructorSkippable_ = void;
  1425. struct Impl_ {
  1426. inline explicit constexpr Impl_(
  1427. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1428. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1429. ::google::protobuf::Arena* arena);
  1430. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1431. ::google::protobuf::Arena* arena, const Impl_& from);
  1432. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1433. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1434. ::google::protobuf::internal::ArenaStringPtr parent_;
  1435. ::google::protobuf::internal::ArenaStringPtr collection_id_;
  1436. ::google::protobuf::internal::ArenaStringPtr page_token_;
  1437. ::google::protobuf::internal::ArenaStringPtr order_by_;
  1438. ::google::firestore::v1::DocumentMask* mask_;
  1439. ::int32_t page_size_;
  1440. bool show_missing_;
  1441. union ConsistencySelectorUnion {
  1442. constexpr ConsistencySelectorUnion() : _constinit_{} {}
  1443. ::google::protobuf::internal::ConstantInitialized _constinit_;
  1444. ::google::protobuf::internal::ArenaStringPtr transaction_;
  1445. ::google::protobuf::Timestamp* read_time_;
  1446. } consistency_selector_;
  1447. ::uint32_t _oneof_case_[1];
  1448. PROTOBUF_TSAN_DECLARE_MEMBER
  1449. };
  1450. union { Impl_ _impl_; };
  1451. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1452. };// -------------------------------------------------------------------
  1453. class GetDocumentRequest final :
  1454. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.GetDocumentRequest) */ {
  1455. public:
  1456. inline GetDocumentRequest() : GetDocumentRequest(nullptr) {}
  1457. ~GetDocumentRequest() override;
  1458. template<typename = void>
  1459. explicit PROTOBUF_CONSTEXPR GetDocumentRequest(::google::protobuf::internal::ConstantInitialized);
  1460. inline GetDocumentRequest(const GetDocumentRequest& from)
  1461. : GetDocumentRequest(nullptr, from) {}
  1462. GetDocumentRequest(GetDocumentRequest&& from) noexcept
  1463. : GetDocumentRequest() {
  1464. *this = ::std::move(from);
  1465. }
  1466. inline GetDocumentRequest& operator=(const GetDocumentRequest& from) {
  1467. CopyFrom(from);
  1468. return *this;
  1469. }
  1470. inline GetDocumentRequest& operator=(GetDocumentRequest&& from) noexcept {
  1471. if (this == &from) return *this;
  1472. if (GetArena() == from.GetArena()
  1473. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1474. && GetArena() != nullptr
  1475. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1476. ) {
  1477. InternalSwap(&from);
  1478. } else {
  1479. CopyFrom(from);
  1480. }
  1481. return *this;
  1482. }
  1483. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1484. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1485. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1486. }
  1487. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1488. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1489. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1490. }
  1491. static const ::google::protobuf::Descriptor* descriptor() {
  1492. return GetDescriptor();
  1493. }
  1494. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1495. return default_instance().GetMetadata().descriptor;
  1496. }
  1497. static const ::google::protobuf::Reflection* GetReflection() {
  1498. return default_instance().GetMetadata().reflection;
  1499. }
  1500. static const GetDocumentRequest& default_instance() {
  1501. return *internal_default_instance();
  1502. }
  1503. enum ConsistencySelectorCase {
  1504. kTransaction = 3,
  1505. kReadTime = 5,
  1506. CONSISTENCY_SELECTOR_NOT_SET = 0,
  1507. };
  1508. static inline const GetDocumentRequest* internal_default_instance() {
  1509. return reinterpret_cast<const GetDocumentRequest*>(
  1510. &_GetDocumentRequest_default_instance_);
  1511. }
  1512. static constexpr int kIndexInFileMessages =
  1513. 0;
  1514. friend void swap(GetDocumentRequest& a, GetDocumentRequest& b) {
  1515. a.Swap(&b);
  1516. }
  1517. inline void Swap(GetDocumentRequest* other) {
  1518. if (other == this) return;
  1519. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1520. if (GetArena() != nullptr &&
  1521. GetArena() == other->GetArena()) {
  1522. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1523. if (GetArena() == other->GetArena()) {
  1524. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1525. InternalSwap(other);
  1526. } else {
  1527. ::google::protobuf::internal::GenericSwap(this, other);
  1528. }
  1529. }
  1530. void UnsafeArenaSwap(GetDocumentRequest* other) {
  1531. if (other == this) return;
  1532. ABSL_DCHECK(GetArena() == other->GetArena());
  1533. InternalSwap(other);
  1534. }
  1535. // implements Message ----------------------------------------------
  1536. GetDocumentRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  1537. return CreateMaybeMessage<GetDocumentRequest>(arena);
  1538. }
  1539. using ::google::protobuf::Message::CopyFrom;
  1540. void CopyFrom(const GetDocumentRequest& from);
  1541. using ::google::protobuf::Message::MergeFrom;
  1542. void MergeFrom( const GetDocumentRequest& from) {
  1543. GetDocumentRequest::MergeImpl(*this, from);
  1544. }
  1545. private:
  1546. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1547. public:
  1548. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1549. bool IsInitialized() const final;
  1550. ::size_t ByteSizeLong() const final;
  1551. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1552. ::uint8_t* _InternalSerialize(
  1553. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1554. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1555. private:
  1556. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1557. void SharedCtor(::google::protobuf::Arena* arena);
  1558. void SharedDtor();
  1559. void InternalSwap(GetDocumentRequest* other);
  1560. private:
  1561. friend class ::google::protobuf::internal::AnyMetadata;
  1562. static ::absl::string_view FullMessageName() {
  1563. return "google.firestore.v1.GetDocumentRequest";
  1564. }
  1565. protected:
  1566. explicit GetDocumentRequest(::google::protobuf::Arena* arena);
  1567. GetDocumentRequest(::google::protobuf::Arena* arena, const GetDocumentRequest& from);
  1568. public:
  1569. static const ClassData _class_data_;
  1570. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1571. ::google::protobuf::Metadata GetMetadata() const final;
  1572. // nested types ----------------------------------------------------
  1573. // accessors -------------------------------------------------------
  1574. enum : int {
  1575. kNameFieldNumber = 1,
  1576. kMaskFieldNumber = 2,
  1577. kTransactionFieldNumber = 3,
  1578. kReadTimeFieldNumber = 5,
  1579. };
  1580. // string name = 1;
  1581. void clear_name() ;
  1582. const std::string& name() const;
  1583. template <typename Arg_ = const std::string&, typename... Args_>
  1584. void set_name(Arg_&& arg, Args_... args);
  1585. std::string* mutable_name();
  1586. PROTOBUF_NODISCARD std::string* release_name();
  1587. void set_allocated_name(std::string* value);
  1588. private:
  1589. const std::string& _internal_name() const;
  1590. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  1591. const std::string& value);
  1592. std::string* _internal_mutable_name();
  1593. public:
  1594. // .google.firestore.v1.DocumentMask mask = 2;
  1595. bool has_mask() const;
  1596. void clear_mask() ;
  1597. const ::google::firestore::v1::DocumentMask& mask() const;
  1598. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentMask* release_mask();
  1599. ::google::firestore::v1::DocumentMask* mutable_mask();
  1600. void set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  1601. void unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  1602. ::google::firestore::v1::DocumentMask* unsafe_arena_release_mask();
  1603. private:
  1604. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  1605. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  1606. public:
  1607. // bytes transaction = 3;
  1608. bool has_transaction() const;
  1609. void clear_transaction() ;
  1610. const std::string& transaction() const;
  1611. template <typename Arg_ = const std::string&, typename... Args_>
  1612. void set_transaction(Arg_&& arg, Args_... args);
  1613. std::string* mutable_transaction();
  1614. PROTOBUF_NODISCARD std::string* release_transaction();
  1615. void set_allocated_transaction(std::string* value);
  1616. private:
  1617. const std::string& _internal_transaction() const;
  1618. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  1619. const std::string& value);
  1620. std::string* _internal_mutable_transaction();
  1621. public:
  1622. // .google.protobuf.Timestamp read_time = 5;
  1623. bool has_read_time() const;
  1624. private:
  1625. bool _internal_has_read_time() const;
  1626. public:
  1627. void clear_read_time() ;
  1628. const ::google::protobuf::Timestamp& read_time() const;
  1629. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  1630. ::google::protobuf::Timestamp* mutable_read_time();
  1631. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  1632. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  1633. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  1634. private:
  1635. const ::google::protobuf::Timestamp& _internal_read_time() const;
  1636. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  1637. public:
  1638. void clear_consistency_selector();
  1639. ConsistencySelectorCase consistency_selector_case() const;
  1640. // @@protoc_insertion_point(class_scope:google.firestore.v1.GetDocumentRequest)
  1641. private:
  1642. class _Internal;
  1643. void set_has_transaction();
  1644. void set_has_read_time();
  1645. inline bool has_consistency_selector() const;
  1646. inline void clear_has_consistency_selector();
  1647. friend class ::google::protobuf::internal::TcParser;
  1648. static const ::google::protobuf::internal::TcParseTable<
  1649. 1, 4, 2,
  1650. 51, 2>
  1651. _table_;
  1652. friend class ::google::protobuf::MessageLite;
  1653. friend class ::google::protobuf::Arena;
  1654. template <typename T>
  1655. friend class ::google::protobuf::Arena::InternalHelper;
  1656. using InternalArenaConstructable_ = void;
  1657. using DestructorSkippable_ = void;
  1658. struct Impl_ {
  1659. inline explicit constexpr Impl_(
  1660. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1661. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1662. ::google::protobuf::Arena* arena);
  1663. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1664. ::google::protobuf::Arena* arena, const Impl_& from);
  1665. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1666. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1667. ::google::protobuf::internal::ArenaStringPtr name_;
  1668. ::google::firestore::v1::DocumentMask* mask_;
  1669. union ConsistencySelectorUnion {
  1670. constexpr ConsistencySelectorUnion() : _constinit_{} {}
  1671. ::google::protobuf::internal::ConstantInitialized _constinit_;
  1672. ::google::protobuf::internal::ArenaStringPtr transaction_;
  1673. ::google::protobuf::Timestamp* read_time_;
  1674. } consistency_selector_;
  1675. ::uint32_t _oneof_case_[1];
  1676. PROTOBUF_TSAN_DECLARE_MEMBER
  1677. };
  1678. union { Impl_ _impl_; };
  1679. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1680. };// -------------------------------------------------------------------
  1681. class TargetChange final :
  1682. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TargetChange) */ {
  1683. public:
  1684. inline TargetChange() : TargetChange(nullptr) {}
  1685. ~TargetChange() override;
  1686. template<typename = void>
  1687. explicit PROTOBUF_CONSTEXPR TargetChange(::google::protobuf::internal::ConstantInitialized);
  1688. inline TargetChange(const TargetChange& from)
  1689. : TargetChange(nullptr, from) {}
  1690. TargetChange(TargetChange&& from) noexcept
  1691. : TargetChange() {
  1692. *this = ::std::move(from);
  1693. }
  1694. inline TargetChange& operator=(const TargetChange& from) {
  1695. CopyFrom(from);
  1696. return *this;
  1697. }
  1698. inline TargetChange& operator=(TargetChange&& from) noexcept {
  1699. if (this == &from) return *this;
  1700. if (GetArena() == from.GetArena()
  1701. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1702. && GetArena() != nullptr
  1703. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1704. ) {
  1705. InternalSwap(&from);
  1706. } else {
  1707. CopyFrom(from);
  1708. }
  1709. return *this;
  1710. }
  1711. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1712. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1713. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1714. }
  1715. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1716. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1717. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1718. }
  1719. static const ::google::protobuf::Descriptor* descriptor() {
  1720. return GetDescriptor();
  1721. }
  1722. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1723. return default_instance().GetMetadata().descriptor;
  1724. }
  1725. static const ::google::protobuf::Reflection* GetReflection() {
  1726. return default_instance().GetMetadata().reflection;
  1727. }
  1728. static const TargetChange& default_instance() {
  1729. return *internal_default_instance();
  1730. }
  1731. static inline const TargetChange* internal_default_instance() {
  1732. return reinterpret_cast<const TargetChange*>(
  1733. &_TargetChange_default_instance_);
  1734. }
  1735. static constexpr int kIndexInFileMessages =
  1736. 26;
  1737. friend void swap(TargetChange& a, TargetChange& b) {
  1738. a.Swap(&b);
  1739. }
  1740. inline void Swap(TargetChange* other) {
  1741. if (other == this) return;
  1742. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1743. if (GetArena() != nullptr &&
  1744. GetArena() == other->GetArena()) {
  1745. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1746. if (GetArena() == other->GetArena()) {
  1747. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1748. InternalSwap(other);
  1749. } else {
  1750. ::google::protobuf::internal::GenericSwap(this, other);
  1751. }
  1752. }
  1753. void UnsafeArenaSwap(TargetChange* other) {
  1754. if (other == this) return;
  1755. ABSL_DCHECK(GetArena() == other->GetArena());
  1756. InternalSwap(other);
  1757. }
  1758. // implements Message ----------------------------------------------
  1759. TargetChange* New(::google::protobuf::Arena* arena = nullptr) const final {
  1760. return CreateMaybeMessage<TargetChange>(arena);
  1761. }
  1762. using ::google::protobuf::Message::CopyFrom;
  1763. void CopyFrom(const TargetChange& from);
  1764. using ::google::protobuf::Message::MergeFrom;
  1765. void MergeFrom( const TargetChange& from) {
  1766. TargetChange::MergeImpl(*this, from);
  1767. }
  1768. private:
  1769. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1770. public:
  1771. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1772. bool IsInitialized() const final;
  1773. ::size_t ByteSizeLong() const final;
  1774. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1775. ::uint8_t* _InternalSerialize(
  1776. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1777. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1778. private:
  1779. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1780. void SharedCtor(::google::protobuf::Arena* arena);
  1781. void SharedDtor();
  1782. void InternalSwap(TargetChange* other);
  1783. private:
  1784. friend class ::google::protobuf::internal::AnyMetadata;
  1785. static ::absl::string_view FullMessageName() {
  1786. return "google.firestore.v1.TargetChange";
  1787. }
  1788. protected:
  1789. explicit TargetChange(::google::protobuf::Arena* arena);
  1790. TargetChange(::google::protobuf::Arena* arena, const TargetChange& from);
  1791. public:
  1792. static const ClassData _class_data_;
  1793. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1794. ::google::protobuf::Metadata GetMetadata() const final;
  1795. // nested types ----------------------------------------------------
  1796. using TargetChangeType = TargetChange_TargetChangeType;
  1797. static constexpr TargetChangeType NO_CHANGE = TargetChange_TargetChangeType_NO_CHANGE;
  1798. static constexpr TargetChangeType ADD = TargetChange_TargetChangeType_ADD;
  1799. static constexpr TargetChangeType REMOVE = TargetChange_TargetChangeType_REMOVE;
  1800. static constexpr TargetChangeType CURRENT = TargetChange_TargetChangeType_CURRENT;
  1801. static constexpr TargetChangeType RESET = TargetChange_TargetChangeType_RESET;
  1802. static inline bool TargetChangeType_IsValid(int value) {
  1803. return TargetChange_TargetChangeType_IsValid(value);
  1804. }
  1805. static constexpr TargetChangeType TargetChangeType_MIN = TargetChange_TargetChangeType_TargetChangeType_MIN;
  1806. static constexpr TargetChangeType TargetChangeType_MAX = TargetChange_TargetChangeType_TargetChangeType_MAX;
  1807. static constexpr int TargetChangeType_ARRAYSIZE = TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE;
  1808. static inline const ::google::protobuf::EnumDescriptor* TargetChangeType_descriptor() {
  1809. return TargetChange_TargetChangeType_descriptor();
  1810. }
  1811. template <typename T>
  1812. static inline const std::string& TargetChangeType_Name(T value) {
  1813. return TargetChange_TargetChangeType_Name(value);
  1814. }
  1815. static inline bool TargetChangeType_Parse(absl::string_view name, TargetChangeType* value) {
  1816. return TargetChange_TargetChangeType_Parse(name, value);
  1817. }
  1818. // accessors -------------------------------------------------------
  1819. enum : int {
  1820. kTargetIdsFieldNumber = 2,
  1821. kResumeTokenFieldNumber = 4,
  1822. kCauseFieldNumber = 3,
  1823. kReadTimeFieldNumber = 6,
  1824. kTargetChangeTypeFieldNumber = 1,
  1825. };
  1826. // repeated int32 target_ids = 2;
  1827. int target_ids_size() const;
  1828. private:
  1829. int _internal_target_ids_size() const;
  1830. public:
  1831. void clear_target_ids() ;
  1832. ::int32_t target_ids(int index) const;
  1833. void set_target_ids(int index, ::int32_t value);
  1834. void add_target_ids(::int32_t value);
  1835. const ::google::protobuf::RepeatedField<::int32_t>& target_ids() const;
  1836. ::google::protobuf::RepeatedField<::int32_t>* mutable_target_ids();
  1837. private:
  1838. const ::google::protobuf::RepeatedField<::int32_t>& _internal_target_ids() const;
  1839. ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_target_ids();
  1840. public:
  1841. // bytes resume_token = 4;
  1842. void clear_resume_token() ;
  1843. const std::string& resume_token() const;
  1844. template <typename Arg_ = const std::string&, typename... Args_>
  1845. void set_resume_token(Arg_&& arg, Args_... args);
  1846. std::string* mutable_resume_token();
  1847. PROTOBUF_NODISCARD std::string* release_resume_token();
  1848. void set_allocated_resume_token(std::string* value);
  1849. private:
  1850. const std::string& _internal_resume_token() const;
  1851. inline PROTOBUF_ALWAYS_INLINE void _internal_set_resume_token(
  1852. const std::string& value);
  1853. std::string* _internal_mutable_resume_token();
  1854. public:
  1855. // .google.rpc.Status cause = 3;
  1856. bool has_cause() const;
  1857. void clear_cause() ;
  1858. const ::google::rpc::Status& cause() const;
  1859. PROTOBUF_NODISCARD ::google::rpc::Status* release_cause();
  1860. ::google::rpc::Status* mutable_cause();
  1861. void set_allocated_cause(::google::rpc::Status* value);
  1862. void unsafe_arena_set_allocated_cause(::google::rpc::Status* value);
  1863. ::google::rpc::Status* unsafe_arena_release_cause();
  1864. private:
  1865. const ::google::rpc::Status& _internal_cause() const;
  1866. ::google::rpc::Status* _internal_mutable_cause();
  1867. public:
  1868. // .google.protobuf.Timestamp read_time = 6;
  1869. bool has_read_time() const;
  1870. void clear_read_time() ;
  1871. const ::google::protobuf::Timestamp& read_time() const;
  1872. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  1873. ::google::protobuf::Timestamp* mutable_read_time();
  1874. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  1875. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  1876. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  1877. private:
  1878. const ::google::protobuf::Timestamp& _internal_read_time() const;
  1879. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  1880. public:
  1881. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  1882. void clear_target_change_type() ;
  1883. ::google::firestore::v1::TargetChange_TargetChangeType target_change_type() const;
  1884. void set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  1885. private:
  1886. ::google::firestore::v1::TargetChange_TargetChangeType _internal_target_change_type() const;
  1887. void _internal_set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  1888. public:
  1889. // @@protoc_insertion_point(class_scope:google.firestore.v1.TargetChange)
  1890. private:
  1891. class _Internal;
  1892. friend class ::google::protobuf::internal::TcParser;
  1893. static const ::google::protobuf::internal::TcParseTable<
  1894. 3, 5, 2,
  1895. 0, 2>
  1896. _table_;
  1897. friend class ::google::protobuf::MessageLite;
  1898. friend class ::google::protobuf::Arena;
  1899. template <typename T>
  1900. friend class ::google::protobuf::Arena::InternalHelper;
  1901. using InternalArenaConstructable_ = void;
  1902. using DestructorSkippable_ = void;
  1903. struct Impl_ {
  1904. inline explicit constexpr Impl_(
  1905. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1906. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1907. ::google::protobuf::Arena* arena);
  1908. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1909. ::google::protobuf::Arena* arena, const Impl_& from);
  1910. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1911. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1912. ::google::protobuf::RepeatedField<::int32_t> target_ids_;
  1913. mutable ::google::protobuf::internal::CachedSize _target_ids_cached_byte_size_;
  1914. ::google::protobuf::internal::ArenaStringPtr resume_token_;
  1915. ::google::rpc::Status* cause_;
  1916. ::google::protobuf::Timestamp* read_time_;
  1917. int target_change_type_;
  1918. PROTOBUF_TSAN_DECLARE_MEMBER
  1919. };
  1920. union { Impl_ _impl_; };
  1921. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1922. };// -------------------------------------------------------------------
  1923. class DeleteDocumentRequest final :
  1924. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DeleteDocumentRequest) */ {
  1925. public:
  1926. inline DeleteDocumentRequest() : DeleteDocumentRequest(nullptr) {}
  1927. ~DeleteDocumentRequest() override;
  1928. template<typename = void>
  1929. explicit PROTOBUF_CONSTEXPR DeleteDocumentRequest(::google::protobuf::internal::ConstantInitialized);
  1930. inline DeleteDocumentRequest(const DeleteDocumentRequest& from)
  1931. : DeleteDocumentRequest(nullptr, from) {}
  1932. DeleteDocumentRequest(DeleteDocumentRequest&& from) noexcept
  1933. : DeleteDocumentRequest() {
  1934. *this = ::std::move(from);
  1935. }
  1936. inline DeleteDocumentRequest& operator=(const DeleteDocumentRequest& from) {
  1937. CopyFrom(from);
  1938. return *this;
  1939. }
  1940. inline DeleteDocumentRequest& operator=(DeleteDocumentRequest&& from) noexcept {
  1941. if (this == &from) return *this;
  1942. if (GetArena() == from.GetArena()
  1943. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1944. && GetArena() != nullptr
  1945. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1946. ) {
  1947. InternalSwap(&from);
  1948. } else {
  1949. CopyFrom(from);
  1950. }
  1951. return *this;
  1952. }
  1953. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1954. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1955. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1956. }
  1957. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1958. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1959. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1960. }
  1961. static const ::google::protobuf::Descriptor* descriptor() {
  1962. return GetDescriptor();
  1963. }
  1964. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1965. return default_instance().GetMetadata().descriptor;
  1966. }
  1967. static const ::google::protobuf::Reflection* GetReflection() {
  1968. return default_instance().GetMetadata().reflection;
  1969. }
  1970. static const DeleteDocumentRequest& default_instance() {
  1971. return *internal_default_instance();
  1972. }
  1973. static inline const DeleteDocumentRequest* internal_default_instance() {
  1974. return reinterpret_cast<const DeleteDocumentRequest*>(
  1975. &_DeleteDocumentRequest_default_instance_);
  1976. }
  1977. static constexpr int kIndexInFileMessages =
  1978. 5;
  1979. friend void swap(DeleteDocumentRequest& a, DeleteDocumentRequest& b) {
  1980. a.Swap(&b);
  1981. }
  1982. inline void Swap(DeleteDocumentRequest* other) {
  1983. if (other == this) return;
  1984. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1985. if (GetArena() != nullptr &&
  1986. GetArena() == other->GetArena()) {
  1987. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1988. if (GetArena() == other->GetArena()) {
  1989. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1990. InternalSwap(other);
  1991. } else {
  1992. ::google::protobuf::internal::GenericSwap(this, other);
  1993. }
  1994. }
  1995. void UnsafeArenaSwap(DeleteDocumentRequest* other) {
  1996. if (other == this) return;
  1997. ABSL_DCHECK(GetArena() == other->GetArena());
  1998. InternalSwap(other);
  1999. }
  2000. // implements Message ----------------------------------------------
  2001. DeleteDocumentRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  2002. return CreateMaybeMessage<DeleteDocumentRequest>(arena);
  2003. }
  2004. using ::google::protobuf::Message::CopyFrom;
  2005. void CopyFrom(const DeleteDocumentRequest& from);
  2006. using ::google::protobuf::Message::MergeFrom;
  2007. void MergeFrom( const DeleteDocumentRequest& from) {
  2008. DeleteDocumentRequest::MergeImpl(*this, from);
  2009. }
  2010. private:
  2011. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2012. public:
  2013. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2014. bool IsInitialized() const final;
  2015. ::size_t ByteSizeLong() const final;
  2016. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2017. ::uint8_t* _InternalSerialize(
  2018. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2019. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2020. private:
  2021. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2022. void SharedCtor(::google::protobuf::Arena* arena);
  2023. void SharedDtor();
  2024. void InternalSwap(DeleteDocumentRequest* other);
  2025. private:
  2026. friend class ::google::protobuf::internal::AnyMetadata;
  2027. static ::absl::string_view FullMessageName() {
  2028. return "google.firestore.v1.DeleteDocumentRequest";
  2029. }
  2030. protected:
  2031. explicit DeleteDocumentRequest(::google::protobuf::Arena* arena);
  2032. DeleteDocumentRequest(::google::protobuf::Arena* arena, const DeleteDocumentRequest& from);
  2033. public:
  2034. static const ClassData _class_data_;
  2035. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2036. ::google::protobuf::Metadata GetMetadata() const final;
  2037. // nested types ----------------------------------------------------
  2038. // accessors -------------------------------------------------------
  2039. enum : int {
  2040. kNameFieldNumber = 1,
  2041. kCurrentDocumentFieldNumber = 2,
  2042. };
  2043. // string name = 1;
  2044. void clear_name() ;
  2045. const std::string& name() const;
  2046. template <typename Arg_ = const std::string&, typename... Args_>
  2047. void set_name(Arg_&& arg, Args_... args);
  2048. std::string* mutable_name();
  2049. PROTOBUF_NODISCARD std::string* release_name();
  2050. void set_allocated_name(std::string* value);
  2051. private:
  2052. const std::string& _internal_name() const;
  2053. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  2054. const std::string& value);
  2055. std::string* _internal_mutable_name();
  2056. public:
  2057. // .google.firestore.v1.Precondition current_document = 2;
  2058. bool has_current_document() const;
  2059. void clear_current_document() ;
  2060. const ::google::firestore::v1::Precondition& current_document() const;
  2061. PROTOBUF_NODISCARD ::google::firestore::v1::Precondition* release_current_document();
  2062. ::google::firestore::v1::Precondition* mutable_current_document();
  2063. void set_allocated_current_document(::google::firestore::v1::Precondition* value);
  2064. void unsafe_arena_set_allocated_current_document(::google::firestore::v1::Precondition* value);
  2065. ::google::firestore::v1::Precondition* unsafe_arena_release_current_document();
  2066. private:
  2067. const ::google::firestore::v1::Precondition& _internal_current_document() const;
  2068. ::google::firestore::v1::Precondition* _internal_mutable_current_document();
  2069. public:
  2070. // @@protoc_insertion_point(class_scope:google.firestore.v1.DeleteDocumentRequest)
  2071. private:
  2072. class _Internal;
  2073. friend class ::google::protobuf::internal::TcParser;
  2074. static const ::google::protobuf::internal::TcParseTable<
  2075. 1, 2, 1,
  2076. 54, 2>
  2077. _table_;
  2078. friend class ::google::protobuf::MessageLite;
  2079. friend class ::google::protobuf::Arena;
  2080. template <typename T>
  2081. friend class ::google::protobuf::Arena::InternalHelper;
  2082. using InternalArenaConstructable_ = void;
  2083. using DestructorSkippable_ = void;
  2084. struct Impl_ {
  2085. inline explicit constexpr Impl_(
  2086. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2087. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2088. ::google::protobuf::Arena* arena);
  2089. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2090. ::google::protobuf::Arena* arena, const Impl_& from);
  2091. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2092. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2093. ::google::protobuf::internal::ArenaStringPtr name_;
  2094. ::google::firestore::v1::Precondition* current_document_;
  2095. PROTOBUF_TSAN_DECLARE_MEMBER
  2096. };
  2097. union { Impl_ _impl_; };
  2098. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2099. };// -------------------------------------------------------------------
  2100. class WriteResponse final :
  2101. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteResponse) */ {
  2102. public:
  2103. inline WriteResponse() : WriteResponse(nullptr) {}
  2104. ~WriteResponse() override;
  2105. template<typename = void>
  2106. explicit PROTOBUF_CONSTEXPR WriteResponse(::google::protobuf::internal::ConstantInitialized);
  2107. inline WriteResponse(const WriteResponse& from)
  2108. : WriteResponse(nullptr, from) {}
  2109. WriteResponse(WriteResponse&& from) noexcept
  2110. : WriteResponse() {
  2111. *this = ::std::move(from);
  2112. }
  2113. inline WriteResponse& operator=(const WriteResponse& from) {
  2114. CopyFrom(from);
  2115. return *this;
  2116. }
  2117. inline WriteResponse& operator=(WriteResponse&& from) noexcept {
  2118. if (this == &from) return *this;
  2119. if (GetArena() == from.GetArena()
  2120. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2121. && GetArena() != nullptr
  2122. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2123. ) {
  2124. InternalSwap(&from);
  2125. } else {
  2126. CopyFrom(from);
  2127. }
  2128. return *this;
  2129. }
  2130. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2131. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2132. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2133. }
  2134. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2135. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2136. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2137. }
  2138. static const ::google::protobuf::Descriptor* descriptor() {
  2139. return GetDescriptor();
  2140. }
  2141. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2142. return default_instance().GetMetadata().descriptor;
  2143. }
  2144. static const ::google::protobuf::Reflection* GetReflection() {
  2145. return default_instance().GetMetadata().reflection;
  2146. }
  2147. static const WriteResponse& default_instance() {
  2148. return *internal_default_instance();
  2149. }
  2150. static inline const WriteResponse* internal_default_instance() {
  2151. return reinterpret_cast<const WriteResponse*>(
  2152. &_WriteResponse_default_instance_);
  2153. }
  2154. static constexpr int kIndexInFileMessages =
  2155. 19;
  2156. friend void swap(WriteResponse& a, WriteResponse& b) {
  2157. a.Swap(&b);
  2158. }
  2159. inline void Swap(WriteResponse* other) {
  2160. if (other == this) return;
  2161. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2162. if (GetArena() != nullptr &&
  2163. GetArena() == other->GetArena()) {
  2164. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2165. if (GetArena() == other->GetArena()) {
  2166. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2167. InternalSwap(other);
  2168. } else {
  2169. ::google::protobuf::internal::GenericSwap(this, other);
  2170. }
  2171. }
  2172. void UnsafeArenaSwap(WriteResponse* other) {
  2173. if (other == this) return;
  2174. ABSL_DCHECK(GetArena() == other->GetArena());
  2175. InternalSwap(other);
  2176. }
  2177. // implements Message ----------------------------------------------
  2178. WriteResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  2179. return CreateMaybeMessage<WriteResponse>(arena);
  2180. }
  2181. using ::google::protobuf::Message::CopyFrom;
  2182. void CopyFrom(const WriteResponse& from);
  2183. using ::google::protobuf::Message::MergeFrom;
  2184. void MergeFrom( const WriteResponse& from) {
  2185. WriteResponse::MergeImpl(*this, from);
  2186. }
  2187. private:
  2188. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2189. public:
  2190. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2191. bool IsInitialized() const final;
  2192. ::size_t ByteSizeLong() const final;
  2193. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2194. ::uint8_t* _InternalSerialize(
  2195. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2196. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2197. private:
  2198. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2199. void SharedCtor(::google::protobuf::Arena* arena);
  2200. void SharedDtor();
  2201. void InternalSwap(WriteResponse* other);
  2202. private:
  2203. friend class ::google::protobuf::internal::AnyMetadata;
  2204. static ::absl::string_view FullMessageName() {
  2205. return "google.firestore.v1.WriteResponse";
  2206. }
  2207. protected:
  2208. explicit WriteResponse(::google::protobuf::Arena* arena);
  2209. WriteResponse(::google::protobuf::Arena* arena, const WriteResponse& from);
  2210. public:
  2211. static const ClassData _class_data_;
  2212. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2213. ::google::protobuf::Metadata GetMetadata() const final;
  2214. // nested types ----------------------------------------------------
  2215. // accessors -------------------------------------------------------
  2216. enum : int {
  2217. kWriteResultsFieldNumber = 3,
  2218. kStreamIdFieldNumber = 1,
  2219. kStreamTokenFieldNumber = 2,
  2220. kCommitTimeFieldNumber = 4,
  2221. };
  2222. // repeated .google.firestore.v1.WriteResult write_results = 3;
  2223. int write_results_size() const;
  2224. private:
  2225. int _internal_write_results_size() const;
  2226. public:
  2227. void clear_write_results() ;
  2228. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  2229. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  2230. mutable_write_results();
  2231. private:
  2232. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>& _internal_write_results() const;
  2233. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>* _internal_mutable_write_results();
  2234. public:
  2235. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  2236. ::google::firestore::v1::WriteResult* add_write_results();
  2237. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  2238. write_results() const;
  2239. // string stream_id = 1;
  2240. void clear_stream_id() ;
  2241. const std::string& stream_id() const;
  2242. template <typename Arg_ = const std::string&, typename... Args_>
  2243. void set_stream_id(Arg_&& arg, Args_... args);
  2244. std::string* mutable_stream_id();
  2245. PROTOBUF_NODISCARD std::string* release_stream_id();
  2246. void set_allocated_stream_id(std::string* value);
  2247. private:
  2248. const std::string& _internal_stream_id() const;
  2249. inline PROTOBUF_ALWAYS_INLINE void _internal_set_stream_id(
  2250. const std::string& value);
  2251. std::string* _internal_mutable_stream_id();
  2252. public:
  2253. // bytes stream_token = 2;
  2254. void clear_stream_token() ;
  2255. const std::string& stream_token() const;
  2256. template <typename Arg_ = const std::string&, typename... Args_>
  2257. void set_stream_token(Arg_&& arg, Args_... args);
  2258. std::string* mutable_stream_token();
  2259. PROTOBUF_NODISCARD std::string* release_stream_token();
  2260. void set_allocated_stream_token(std::string* value);
  2261. private:
  2262. const std::string& _internal_stream_token() const;
  2263. inline PROTOBUF_ALWAYS_INLINE void _internal_set_stream_token(
  2264. const std::string& value);
  2265. std::string* _internal_mutable_stream_token();
  2266. public:
  2267. // .google.protobuf.Timestamp commit_time = 4;
  2268. bool has_commit_time() const;
  2269. void clear_commit_time() ;
  2270. const ::google::protobuf::Timestamp& commit_time() const;
  2271. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_commit_time();
  2272. ::google::protobuf::Timestamp* mutable_commit_time();
  2273. void set_allocated_commit_time(::google::protobuf::Timestamp* value);
  2274. void unsafe_arena_set_allocated_commit_time(::google::protobuf::Timestamp* value);
  2275. ::google::protobuf::Timestamp* unsafe_arena_release_commit_time();
  2276. private:
  2277. const ::google::protobuf::Timestamp& _internal_commit_time() const;
  2278. ::google::protobuf::Timestamp* _internal_mutable_commit_time();
  2279. public:
  2280. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteResponse)
  2281. private:
  2282. class _Internal;
  2283. friend class ::google::protobuf::internal::TcParser;
  2284. static const ::google::protobuf::internal::TcParseTable<
  2285. 2, 4, 2,
  2286. 51, 2>
  2287. _table_;
  2288. friend class ::google::protobuf::MessageLite;
  2289. friend class ::google::protobuf::Arena;
  2290. template <typename T>
  2291. friend class ::google::protobuf::Arena::InternalHelper;
  2292. using InternalArenaConstructable_ = void;
  2293. using DestructorSkippable_ = void;
  2294. struct Impl_ {
  2295. inline explicit constexpr Impl_(
  2296. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2297. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2298. ::google::protobuf::Arena* arena);
  2299. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2300. ::google::protobuf::Arena* arena, const Impl_& from);
  2301. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2302. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2303. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  2304. ::google::protobuf::internal::ArenaStringPtr stream_id_;
  2305. ::google::protobuf::internal::ArenaStringPtr stream_token_;
  2306. ::google::protobuf::Timestamp* commit_time_;
  2307. PROTOBUF_TSAN_DECLARE_MEMBER
  2308. };
  2309. union { Impl_ _impl_; };
  2310. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2311. };// -------------------------------------------------------------------
  2312. class CommitResponse final :
  2313. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitResponse) */ {
  2314. public:
  2315. inline CommitResponse() : CommitResponse(nullptr) {}
  2316. ~CommitResponse() override;
  2317. template<typename = void>
  2318. explicit PROTOBUF_CONSTEXPR CommitResponse(::google::protobuf::internal::ConstantInitialized);
  2319. inline CommitResponse(const CommitResponse& from)
  2320. : CommitResponse(nullptr, from) {}
  2321. CommitResponse(CommitResponse&& from) noexcept
  2322. : CommitResponse() {
  2323. *this = ::std::move(from);
  2324. }
  2325. inline CommitResponse& operator=(const CommitResponse& from) {
  2326. CopyFrom(from);
  2327. return *this;
  2328. }
  2329. inline CommitResponse& operator=(CommitResponse&& from) noexcept {
  2330. if (this == &from) return *this;
  2331. if (GetArena() == from.GetArena()
  2332. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2333. && GetArena() != nullptr
  2334. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2335. ) {
  2336. InternalSwap(&from);
  2337. } else {
  2338. CopyFrom(from);
  2339. }
  2340. return *this;
  2341. }
  2342. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2343. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2344. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2345. }
  2346. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2347. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2348. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2349. }
  2350. static const ::google::protobuf::Descriptor* descriptor() {
  2351. return GetDescriptor();
  2352. }
  2353. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2354. return default_instance().GetMetadata().descriptor;
  2355. }
  2356. static const ::google::protobuf::Reflection* GetReflection() {
  2357. return default_instance().GetMetadata().reflection;
  2358. }
  2359. static const CommitResponse& default_instance() {
  2360. return *internal_default_instance();
  2361. }
  2362. static inline const CommitResponse* internal_default_instance() {
  2363. return reinterpret_cast<const CommitResponse*>(
  2364. &_CommitResponse_default_instance_);
  2365. }
  2366. static constexpr int kIndexInFileMessages =
  2367. 11;
  2368. friend void swap(CommitResponse& a, CommitResponse& b) {
  2369. a.Swap(&b);
  2370. }
  2371. inline void Swap(CommitResponse* other) {
  2372. if (other == this) return;
  2373. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2374. if (GetArena() != nullptr &&
  2375. GetArena() == other->GetArena()) {
  2376. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2377. if (GetArena() == other->GetArena()) {
  2378. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2379. InternalSwap(other);
  2380. } else {
  2381. ::google::protobuf::internal::GenericSwap(this, other);
  2382. }
  2383. }
  2384. void UnsafeArenaSwap(CommitResponse* other) {
  2385. if (other == this) return;
  2386. ABSL_DCHECK(GetArena() == other->GetArena());
  2387. InternalSwap(other);
  2388. }
  2389. // implements Message ----------------------------------------------
  2390. CommitResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  2391. return CreateMaybeMessage<CommitResponse>(arena);
  2392. }
  2393. using ::google::protobuf::Message::CopyFrom;
  2394. void CopyFrom(const CommitResponse& from);
  2395. using ::google::protobuf::Message::MergeFrom;
  2396. void MergeFrom( const CommitResponse& from) {
  2397. CommitResponse::MergeImpl(*this, from);
  2398. }
  2399. private:
  2400. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2401. public:
  2402. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2403. bool IsInitialized() const final;
  2404. ::size_t ByteSizeLong() const final;
  2405. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2406. ::uint8_t* _InternalSerialize(
  2407. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2408. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2409. private:
  2410. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2411. void SharedCtor(::google::protobuf::Arena* arena);
  2412. void SharedDtor();
  2413. void InternalSwap(CommitResponse* other);
  2414. private:
  2415. friend class ::google::protobuf::internal::AnyMetadata;
  2416. static ::absl::string_view FullMessageName() {
  2417. return "google.firestore.v1.CommitResponse";
  2418. }
  2419. protected:
  2420. explicit CommitResponse(::google::protobuf::Arena* arena);
  2421. CommitResponse(::google::protobuf::Arena* arena, const CommitResponse& from);
  2422. public:
  2423. static const ClassData _class_data_;
  2424. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2425. ::google::protobuf::Metadata GetMetadata() const final;
  2426. // nested types ----------------------------------------------------
  2427. // accessors -------------------------------------------------------
  2428. enum : int {
  2429. kWriteResultsFieldNumber = 1,
  2430. kCommitTimeFieldNumber = 2,
  2431. };
  2432. // repeated .google.firestore.v1.WriteResult write_results = 1;
  2433. int write_results_size() const;
  2434. private:
  2435. int _internal_write_results_size() const;
  2436. public:
  2437. void clear_write_results() ;
  2438. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  2439. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  2440. mutable_write_results();
  2441. private:
  2442. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>& _internal_write_results() const;
  2443. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>* _internal_mutable_write_results();
  2444. public:
  2445. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  2446. ::google::firestore::v1::WriteResult* add_write_results();
  2447. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  2448. write_results() const;
  2449. // .google.protobuf.Timestamp commit_time = 2;
  2450. bool has_commit_time() const;
  2451. void clear_commit_time() ;
  2452. const ::google::protobuf::Timestamp& commit_time() const;
  2453. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_commit_time();
  2454. ::google::protobuf::Timestamp* mutable_commit_time();
  2455. void set_allocated_commit_time(::google::protobuf::Timestamp* value);
  2456. void unsafe_arena_set_allocated_commit_time(::google::protobuf::Timestamp* value);
  2457. ::google::protobuf::Timestamp* unsafe_arena_release_commit_time();
  2458. private:
  2459. const ::google::protobuf::Timestamp& _internal_commit_time() const;
  2460. ::google::protobuf::Timestamp* _internal_mutable_commit_time();
  2461. public:
  2462. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitResponse)
  2463. private:
  2464. class _Internal;
  2465. friend class ::google::protobuf::internal::TcParser;
  2466. static const ::google::protobuf::internal::TcParseTable<
  2467. 1, 2, 2,
  2468. 0, 2>
  2469. _table_;
  2470. friend class ::google::protobuf::MessageLite;
  2471. friend class ::google::protobuf::Arena;
  2472. template <typename T>
  2473. friend class ::google::protobuf::Arena::InternalHelper;
  2474. using InternalArenaConstructable_ = void;
  2475. using DestructorSkippable_ = void;
  2476. struct Impl_ {
  2477. inline explicit constexpr Impl_(
  2478. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2479. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2480. ::google::protobuf::Arena* arena);
  2481. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2482. ::google::protobuf::Arena* arena, const Impl_& from);
  2483. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2484. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2485. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  2486. ::google::protobuf::Timestamp* commit_time_;
  2487. PROTOBUF_TSAN_DECLARE_MEMBER
  2488. };
  2489. union { Impl_ _impl_; };
  2490. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2491. };// -------------------------------------------------------------------
  2492. class BeginTransactionRequest final :
  2493. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionRequest) */ {
  2494. public:
  2495. inline BeginTransactionRequest() : BeginTransactionRequest(nullptr) {}
  2496. ~BeginTransactionRequest() override;
  2497. template<typename = void>
  2498. explicit PROTOBUF_CONSTEXPR BeginTransactionRequest(::google::protobuf::internal::ConstantInitialized);
  2499. inline BeginTransactionRequest(const BeginTransactionRequest& from)
  2500. : BeginTransactionRequest(nullptr, from) {}
  2501. BeginTransactionRequest(BeginTransactionRequest&& from) noexcept
  2502. : BeginTransactionRequest() {
  2503. *this = ::std::move(from);
  2504. }
  2505. inline BeginTransactionRequest& operator=(const BeginTransactionRequest& from) {
  2506. CopyFrom(from);
  2507. return *this;
  2508. }
  2509. inline BeginTransactionRequest& operator=(BeginTransactionRequest&& from) noexcept {
  2510. if (this == &from) return *this;
  2511. if (GetArena() == from.GetArena()
  2512. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2513. && GetArena() != nullptr
  2514. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2515. ) {
  2516. InternalSwap(&from);
  2517. } else {
  2518. CopyFrom(from);
  2519. }
  2520. return *this;
  2521. }
  2522. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2523. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2524. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2525. }
  2526. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2527. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2528. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2529. }
  2530. static const ::google::protobuf::Descriptor* descriptor() {
  2531. return GetDescriptor();
  2532. }
  2533. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2534. return default_instance().GetMetadata().descriptor;
  2535. }
  2536. static const ::google::protobuf::Reflection* GetReflection() {
  2537. return default_instance().GetMetadata().reflection;
  2538. }
  2539. static const BeginTransactionRequest& default_instance() {
  2540. return *internal_default_instance();
  2541. }
  2542. static inline const BeginTransactionRequest* internal_default_instance() {
  2543. return reinterpret_cast<const BeginTransactionRequest*>(
  2544. &_BeginTransactionRequest_default_instance_);
  2545. }
  2546. static constexpr int kIndexInFileMessages =
  2547. 8;
  2548. friend void swap(BeginTransactionRequest& a, BeginTransactionRequest& b) {
  2549. a.Swap(&b);
  2550. }
  2551. inline void Swap(BeginTransactionRequest* other) {
  2552. if (other == this) return;
  2553. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2554. if (GetArena() != nullptr &&
  2555. GetArena() == other->GetArena()) {
  2556. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2557. if (GetArena() == other->GetArena()) {
  2558. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2559. InternalSwap(other);
  2560. } else {
  2561. ::google::protobuf::internal::GenericSwap(this, other);
  2562. }
  2563. }
  2564. void UnsafeArenaSwap(BeginTransactionRequest* other) {
  2565. if (other == this) return;
  2566. ABSL_DCHECK(GetArena() == other->GetArena());
  2567. InternalSwap(other);
  2568. }
  2569. // implements Message ----------------------------------------------
  2570. BeginTransactionRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  2571. return CreateMaybeMessage<BeginTransactionRequest>(arena);
  2572. }
  2573. using ::google::protobuf::Message::CopyFrom;
  2574. void CopyFrom(const BeginTransactionRequest& from);
  2575. using ::google::protobuf::Message::MergeFrom;
  2576. void MergeFrom( const BeginTransactionRequest& from) {
  2577. BeginTransactionRequest::MergeImpl(*this, from);
  2578. }
  2579. private:
  2580. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2581. public:
  2582. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2583. bool IsInitialized() const final;
  2584. ::size_t ByteSizeLong() const final;
  2585. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2586. ::uint8_t* _InternalSerialize(
  2587. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2588. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2589. private:
  2590. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2591. void SharedCtor(::google::protobuf::Arena* arena);
  2592. void SharedDtor();
  2593. void InternalSwap(BeginTransactionRequest* other);
  2594. private:
  2595. friend class ::google::protobuf::internal::AnyMetadata;
  2596. static ::absl::string_view FullMessageName() {
  2597. return "google.firestore.v1.BeginTransactionRequest";
  2598. }
  2599. protected:
  2600. explicit BeginTransactionRequest(::google::protobuf::Arena* arena);
  2601. BeginTransactionRequest(::google::protobuf::Arena* arena, const BeginTransactionRequest& from);
  2602. public:
  2603. static const ClassData _class_data_;
  2604. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2605. ::google::protobuf::Metadata GetMetadata() const final;
  2606. // nested types ----------------------------------------------------
  2607. // accessors -------------------------------------------------------
  2608. enum : int {
  2609. kDatabaseFieldNumber = 1,
  2610. kOptionsFieldNumber = 2,
  2611. };
  2612. // string database = 1;
  2613. void clear_database() ;
  2614. const std::string& database() const;
  2615. template <typename Arg_ = const std::string&, typename... Args_>
  2616. void set_database(Arg_&& arg, Args_... args);
  2617. std::string* mutable_database();
  2618. PROTOBUF_NODISCARD std::string* release_database();
  2619. void set_allocated_database(std::string* value);
  2620. private:
  2621. const std::string& _internal_database() const;
  2622. inline PROTOBUF_ALWAYS_INLINE void _internal_set_database(
  2623. const std::string& value);
  2624. std::string* _internal_mutable_database();
  2625. public:
  2626. // .google.firestore.v1.TransactionOptions options = 2;
  2627. bool has_options() const;
  2628. void clear_options() ;
  2629. const ::google::firestore::v1::TransactionOptions& options() const;
  2630. PROTOBUF_NODISCARD ::google::firestore::v1::TransactionOptions* release_options();
  2631. ::google::firestore::v1::TransactionOptions* mutable_options();
  2632. void set_allocated_options(::google::firestore::v1::TransactionOptions* value);
  2633. void unsafe_arena_set_allocated_options(::google::firestore::v1::TransactionOptions* value);
  2634. ::google::firestore::v1::TransactionOptions* unsafe_arena_release_options();
  2635. private:
  2636. const ::google::firestore::v1::TransactionOptions& _internal_options() const;
  2637. ::google::firestore::v1::TransactionOptions* _internal_mutable_options();
  2638. public:
  2639. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionRequest)
  2640. private:
  2641. class _Internal;
  2642. friend class ::google::protobuf::internal::TcParser;
  2643. static const ::google::protobuf::internal::TcParseTable<
  2644. 1, 2, 1,
  2645. 60, 2>
  2646. _table_;
  2647. friend class ::google::protobuf::MessageLite;
  2648. friend class ::google::protobuf::Arena;
  2649. template <typename T>
  2650. friend class ::google::protobuf::Arena::InternalHelper;
  2651. using InternalArenaConstructable_ = void;
  2652. using DestructorSkippable_ = void;
  2653. struct Impl_ {
  2654. inline explicit constexpr Impl_(
  2655. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2656. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2657. ::google::protobuf::Arena* arena);
  2658. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2659. ::google::protobuf::Arena* arena, const Impl_& from);
  2660. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2661. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2662. ::google::protobuf::internal::ArenaStringPtr database_;
  2663. ::google::firestore::v1::TransactionOptions* options_;
  2664. PROTOBUF_TSAN_DECLARE_MEMBER
  2665. };
  2666. union { Impl_ _impl_; };
  2667. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2668. };// -------------------------------------------------------------------
  2669. class BatchGetDocumentsRequest final :
  2670. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsRequest) */ {
  2671. public:
  2672. inline BatchGetDocumentsRequest() : BatchGetDocumentsRequest(nullptr) {}
  2673. ~BatchGetDocumentsRequest() override;
  2674. template<typename = void>
  2675. explicit PROTOBUF_CONSTEXPR BatchGetDocumentsRequest(::google::protobuf::internal::ConstantInitialized);
  2676. inline BatchGetDocumentsRequest(const BatchGetDocumentsRequest& from)
  2677. : BatchGetDocumentsRequest(nullptr, from) {}
  2678. BatchGetDocumentsRequest(BatchGetDocumentsRequest&& from) noexcept
  2679. : BatchGetDocumentsRequest() {
  2680. *this = ::std::move(from);
  2681. }
  2682. inline BatchGetDocumentsRequest& operator=(const BatchGetDocumentsRequest& from) {
  2683. CopyFrom(from);
  2684. return *this;
  2685. }
  2686. inline BatchGetDocumentsRequest& operator=(BatchGetDocumentsRequest&& from) noexcept {
  2687. if (this == &from) return *this;
  2688. if (GetArena() == from.GetArena()
  2689. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2690. && GetArena() != nullptr
  2691. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2692. ) {
  2693. InternalSwap(&from);
  2694. } else {
  2695. CopyFrom(from);
  2696. }
  2697. return *this;
  2698. }
  2699. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2700. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2701. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2702. }
  2703. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2704. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2705. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2706. }
  2707. static const ::google::protobuf::Descriptor* descriptor() {
  2708. return GetDescriptor();
  2709. }
  2710. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2711. return default_instance().GetMetadata().descriptor;
  2712. }
  2713. static const ::google::protobuf::Reflection* GetReflection() {
  2714. return default_instance().GetMetadata().reflection;
  2715. }
  2716. static const BatchGetDocumentsRequest& default_instance() {
  2717. return *internal_default_instance();
  2718. }
  2719. enum ConsistencySelectorCase {
  2720. kTransaction = 4,
  2721. kNewTransaction = 5,
  2722. kReadTime = 7,
  2723. CONSISTENCY_SELECTOR_NOT_SET = 0,
  2724. };
  2725. static inline const BatchGetDocumentsRequest* internal_default_instance() {
  2726. return reinterpret_cast<const BatchGetDocumentsRequest*>(
  2727. &_BatchGetDocumentsRequest_default_instance_);
  2728. }
  2729. static constexpr int kIndexInFileMessages =
  2730. 6;
  2731. friend void swap(BatchGetDocumentsRequest& a, BatchGetDocumentsRequest& b) {
  2732. a.Swap(&b);
  2733. }
  2734. inline void Swap(BatchGetDocumentsRequest* other) {
  2735. if (other == this) return;
  2736. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2737. if (GetArena() != nullptr &&
  2738. GetArena() == other->GetArena()) {
  2739. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2740. if (GetArena() == other->GetArena()) {
  2741. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2742. InternalSwap(other);
  2743. } else {
  2744. ::google::protobuf::internal::GenericSwap(this, other);
  2745. }
  2746. }
  2747. void UnsafeArenaSwap(BatchGetDocumentsRequest* other) {
  2748. if (other == this) return;
  2749. ABSL_DCHECK(GetArena() == other->GetArena());
  2750. InternalSwap(other);
  2751. }
  2752. // implements Message ----------------------------------------------
  2753. BatchGetDocumentsRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  2754. return CreateMaybeMessage<BatchGetDocumentsRequest>(arena);
  2755. }
  2756. using ::google::protobuf::Message::CopyFrom;
  2757. void CopyFrom(const BatchGetDocumentsRequest& from);
  2758. using ::google::protobuf::Message::MergeFrom;
  2759. void MergeFrom( const BatchGetDocumentsRequest& from) {
  2760. BatchGetDocumentsRequest::MergeImpl(*this, from);
  2761. }
  2762. private:
  2763. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2764. public:
  2765. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2766. bool IsInitialized() const final;
  2767. ::size_t ByteSizeLong() const final;
  2768. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2769. ::uint8_t* _InternalSerialize(
  2770. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2771. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2772. private:
  2773. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2774. void SharedCtor(::google::protobuf::Arena* arena);
  2775. void SharedDtor();
  2776. void InternalSwap(BatchGetDocumentsRequest* other);
  2777. private:
  2778. friend class ::google::protobuf::internal::AnyMetadata;
  2779. static ::absl::string_view FullMessageName() {
  2780. return "google.firestore.v1.BatchGetDocumentsRequest";
  2781. }
  2782. protected:
  2783. explicit BatchGetDocumentsRequest(::google::protobuf::Arena* arena);
  2784. BatchGetDocumentsRequest(::google::protobuf::Arena* arena, const BatchGetDocumentsRequest& from);
  2785. public:
  2786. static const ClassData _class_data_;
  2787. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2788. ::google::protobuf::Metadata GetMetadata() const final;
  2789. // nested types ----------------------------------------------------
  2790. // accessors -------------------------------------------------------
  2791. enum : int {
  2792. kDocumentsFieldNumber = 2,
  2793. kDatabaseFieldNumber = 1,
  2794. kMaskFieldNumber = 3,
  2795. kTransactionFieldNumber = 4,
  2796. kNewTransactionFieldNumber = 5,
  2797. kReadTimeFieldNumber = 7,
  2798. };
  2799. // repeated string documents = 2;
  2800. int documents_size() const;
  2801. private:
  2802. int _internal_documents_size() const;
  2803. public:
  2804. void clear_documents() ;
  2805. const std::string& documents(int index) const;
  2806. std::string* mutable_documents(int index);
  2807. void set_documents(int index, const std::string& value);
  2808. void set_documents(int index, std::string&& value);
  2809. void set_documents(int index, const char* value);
  2810. void set_documents(int index, const char* value, std::size_t size);
  2811. void set_documents(int index, absl::string_view value);
  2812. std::string* add_documents();
  2813. void add_documents(const std::string& value);
  2814. void add_documents(std::string&& value);
  2815. void add_documents(const char* value);
  2816. void add_documents(const char* value, std::size_t size);
  2817. void add_documents(absl::string_view value);
  2818. const ::google::protobuf::RepeatedPtrField<std::string>& documents() const;
  2819. ::google::protobuf::RepeatedPtrField<std::string>* mutable_documents();
  2820. private:
  2821. const ::google::protobuf::RepeatedPtrField<std::string>& _internal_documents() const;
  2822. ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_documents();
  2823. public:
  2824. // string database = 1;
  2825. void clear_database() ;
  2826. const std::string& database() const;
  2827. template <typename Arg_ = const std::string&, typename... Args_>
  2828. void set_database(Arg_&& arg, Args_... args);
  2829. std::string* mutable_database();
  2830. PROTOBUF_NODISCARD std::string* release_database();
  2831. void set_allocated_database(std::string* value);
  2832. private:
  2833. const std::string& _internal_database() const;
  2834. inline PROTOBUF_ALWAYS_INLINE void _internal_set_database(
  2835. const std::string& value);
  2836. std::string* _internal_mutable_database();
  2837. public:
  2838. // .google.firestore.v1.DocumentMask mask = 3;
  2839. bool has_mask() const;
  2840. void clear_mask() ;
  2841. const ::google::firestore::v1::DocumentMask& mask() const;
  2842. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentMask* release_mask();
  2843. ::google::firestore::v1::DocumentMask* mutable_mask();
  2844. void set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  2845. void unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  2846. ::google::firestore::v1::DocumentMask* unsafe_arena_release_mask();
  2847. private:
  2848. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  2849. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  2850. public:
  2851. // bytes transaction = 4;
  2852. bool has_transaction() const;
  2853. void clear_transaction() ;
  2854. const std::string& transaction() const;
  2855. template <typename Arg_ = const std::string&, typename... Args_>
  2856. void set_transaction(Arg_&& arg, Args_... args);
  2857. std::string* mutable_transaction();
  2858. PROTOBUF_NODISCARD std::string* release_transaction();
  2859. void set_allocated_transaction(std::string* value);
  2860. private:
  2861. const std::string& _internal_transaction() const;
  2862. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  2863. const std::string& value);
  2864. std::string* _internal_mutable_transaction();
  2865. public:
  2866. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  2867. bool has_new_transaction() const;
  2868. private:
  2869. bool _internal_has_new_transaction() const;
  2870. public:
  2871. void clear_new_transaction() ;
  2872. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  2873. PROTOBUF_NODISCARD ::google::firestore::v1::TransactionOptions* release_new_transaction();
  2874. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  2875. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value);
  2876. void unsafe_arena_set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value);
  2877. ::google::firestore::v1::TransactionOptions* unsafe_arena_release_new_transaction();
  2878. private:
  2879. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  2880. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  2881. public:
  2882. // .google.protobuf.Timestamp read_time = 7;
  2883. bool has_read_time() const;
  2884. private:
  2885. bool _internal_has_read_time() const;
  2886. public:
  2887. void clear_read_time() ;
  2888. const ::google::protobuf::Timestamp& read_time() const;
  2889. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  2890. ::google::protobuf::Timestamp* mutable_read_time();
  2891. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  2892. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  2893. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  2894. private:
  2895. const ::google::protobuf::Timestamp& _internal_read_time() const;
  2896. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  2897. public:
  2898. void clear_consistency_selector();
  2899. ConsistencySelectorCase consistency_selector_case() const;
  2900. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsRequest)
  2901. private:
  2902. class _Internal;
  2903. void set_has_transaction();
  2904. void set_has_new_transaction();
  2905. void set_has_read_time();
  2906. inline bool has_consistency_selector() const;
  2907. inline void clear_has_consistency_selector();
  2908. friend class ::google::protobuf::internal::TcParser;
  2909. static const ::google::protobuf::internal::TcParseTable<
  2910. 2, 6, 3,
  2911. 70, 2>
  2912. _table_;
  2913. friend class ::google::protobuf::MessageLite;
  2914. friend class ::google::protobuf::Arena;
  2915. template <typename T>
  2916. friend class ::google::protobuf::Arena::InternalHelper;
  2917. using InternalArenaConstructable_ = void;
  2918. using DestructorSkippable_ = void;
  2919. struct Impl_ {
  2920. inline explicit constexpr Impl_(
  2921. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2922. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2923. ::google::protobuf::Arena* arena);
  2924. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2925. ::google::protobuf::Arena* arena, const Impl_& from);
  2926. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2927. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2928. ::google::protobuf::RepeatedPtrField<std::string> documents_;
  2929. ::google::protobuf::internal::ArenaStringPtr database_;
  2930. ::google::firestore::v1::DocumentMask* mask_;
  2931. union ConsistencySelectorUnion {
  2932. constexpr ConsistencySelectorUnion() : _constinit_{} {}
  2933. ::google::protobuf::internal::ConstantInitialized _constinit_;
  2934. ::google::protobuf::internal::ArenaStringPtr transaction_;
  2935. ::google::firestore::v1::TransactionOptions* new_transaction_;
  2936. ::google::protobuf::Timestamp* read_time_;
  2937. } consistency_selector_;
  2938. ::uint32_t _oneof_case_[1];
  2939. PROTOBUF_TSAN_DECLARE_MEMBER
  2940. };
  2941. union { Impl_ _impl_; };
  2942. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2943. };// -------------------------------------------------------------------
  2944. class UpdateDocumentRequest final :
  2945. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.UpdateDocumentRequest) */ {
  2946. public:
  2947. inline UpdateDocumentRequest() : UpdateDocumentRequest(nullptr) {}
  2948. ~UpdateDocumentRequest() override;
  2949. template<typename = void>
  2950. explicit PROTOBUF_CONSTEXPR UpdateDocumentRequest(::google::protobuf::internal::ConstantInitialized);
  2951. inline UpdateDocumentRequest(const UpdateDocumentRequest& from)
  2952. : UpdateDocumentRequest(nullptr, from) {}
  2953. UpdateDocumentRequest(UpdateDocumentRequest&& from) noexcept
  2954. : UpdateDocumentRequest() {
  2955. *this = ::std::move(from);
  2956. }
  2957. inline UpdateDocumentRequest& operator=(const UpdateDocumentRequest& from) {
  2958. CopyFrom(from);
  2959. return *this;
  2960. }
  2961. inline UpdateDocumentRequest& operator=(UpdateDocumentRequest&& from) noexcept {
  2962. if (this == &from) return *this;
  2963. if (GetArena() == from.GetArena()
  2964. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2965. && GetArena() != nullptr
  2966. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2967. ) {
  2968. InternalSwap(&from);
  2969. } else {
  2970. CopyFrom(from);
  2971. }
  2972. return *this;
  2973. }
  2974. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2975. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2976. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2977. }
  2978. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2979. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2980. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2981. }
  2982. static const ::google::protobuf::Descriptor* descriptor() {
  2983. return GetDescriptor();
  2984. }
  2985. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2986. return default_instance().GetMetadata().descriptor;
  2987. }
  2988. static const ::google::protobuf::Reflection* GetReflection() {
  2989. return default_instance().GetMetadata().reflection;
  2990. }
  2991. static const UpdateDocumentRequest& default_instance() {
  2992. return *internal_default_instance();
  2993. }
  2994. static inline const UpdateDocumentRequest* internal_default_instance() {
  2995. return reinterpret_cast<const UpdateDocumentRequest*>(
  2996. &_UpdateDocumentRequest_default_instance_);
  2997. }
  2998. static constexpr int kIndexInFileMessages =
  2999. 4;
  3000. friend void swap(UpdateDocumentRequest& a, UpdateDocumentRequest& b) {
  3001. a.Swap(&b);
  3002. }
  3003. inline void Swap(UpdateDocumentRequest* other) {
  3004. if (other == this) return;
  3005. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3006. if (GetArena() != nullptr &&
  3007. GetArena() == other->GetArena()) {
  3008. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3009. if (GetArena() == other->GetArena()) {
  3010. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3011. InternalSwap(other);
  3012. } else {
  3013. ::google::protobuf::internal::GenericSwap(this, other);
  3014. }
  3015. }
  3016. void UnsafeArenaSwap(UpdateDocumentRequest* other) {
  3017. if (other == this) return;
  3018. ABSL_DCHECK(GetArena() == other->GetArena());
  3019. InternalSwap(other);
  3020. }
  3021. // implements Message ----------------------------------------------
  3022. UpdateDocumentRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  3023. return CreateMaybeMessage<UpdateDocumentRequest>(arena);
  3024. }
  3025. using ::google::protobuf::Message::CopyFrom;
  3026. void CopyFrom(const UpdateDocumentRequest& from);
  3027. using ::google::protobuf::Message::MergeFrom;
  3028. void MergeFrom( const UpdateDocumentRequest& from) {
  3029. UpdateDocumentRequest::MergeImpl(*this, from);
  3030. }
  3031. private:
  3032. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  3033. public:
  3034. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3035. bool IsInitialized() const final;
  3036. ::size_t ByteSizeLong() const final;
  3037. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  3038. ::uint8_t* _InternalSerialize(
  3039. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  3040. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  3041. private:
  3042. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  3043. void SharedCtor(::google::protobuf::Arena* arena);
  3044. void SharedDtor();
  3045. void InternalSwap(UpdateDocumentRequest* other);
  3046. private:
  3047. friend class ::google::protobuf::internal::AnyMetadata;
  3048. static ::absl::string_view FullMessageName() {
  3049. return "google.firestore.v1.UpdateDocumentRequest";
  3050. }
  3051. protected:
  3052. explicit UpdateDocumentRequest(::google::protobuf::Arena* arena);
  3053. UpdateDocumentRequest(::google::protobuf::Arena* arena, const UpdateDocumentRequest& from);
  3054. public:
  3055. static const ClassData _class_data_;
  3056. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  3057. ::google::protobuf::Metadata GetMetadata() const final;
  3058. // nested types ----------------------------------------------------
  3059. // accessors -------------------------------------------------------
  3060. enum : int {
  3061. kDocumentFieldNumber = 1,
  3062. kUpdateMaskFieldNumber = 2,
  3063. kMaskFieldNumber = 3,
  3064. kCurrentDocumentFieldNumber = 4,
  3065. };
  3066. // .google.firestore.v1.Document document = 1;
  3067. bool has_document() const;
  3068. void clear_document() ;
  3069. const ::google::firestore::v1::Document& document() const;
  3070. PROTOBUF_NODISCARD ::google::firestore::v1::Document* release_document();
  3071. ::google::firestore::v1::Document* mutable_document();
  3072. void set_allocated_document(::google::firestore::v1::Document* value);
  3073. void unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value);
  3074. ::google::firestore::v1::Document* unsafe_arena_release_document();
  3075. private:
  3076. const ::google::firestore::v1::Document& _internal_document() const;
  3077. ::google::firestore::v1::Document* _internal_mutable_document();
  3078. public:
  3079. // .google.firestore.v1.DocumentMask update_mask = 2;
  3080. bool has_update_mask() const;
  3081. void clear_update_mask() ;
  3082. const ::google::firestore::v1::DocumentMask& update_mask() const;
  3083. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentMask* release_update_mask();
  3084. ::google::firestore::v1::DocumentMask* mutable_update_mask();
  3085. void set_allocated_update_mask(::google::firestore::v1::DocumentMask* value);
  3086. void unsafe_arena_set_allocated_update_mask(::google::firestore::v1::DocumentMask* value);
  3087. ::google::firestore::v1::DocumentMask* unsafe_arena_release_update_mask();
  3088. private:
  3089. const ::google::firestore::v1::DocumentMask& _internal_update_mask() const;
  3090. ::google::firestore::v1::DocumentMask* _internal_mutable_update_mask();
  3091. public:
  3092. // .google.firestore.v1.DocumentMask mask = 3;
  3093. bool has_mask() const;
  3094. void clear_mask() ;
  3095. const ::google::firestore::v1::DocumentMask& mask() const;
  3096. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentMask* release_mask();
  3097. ::google::firestore::v1::DocumentMask* mutable_mask();
  3098. void set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  3099. void unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  3100. ::google::firestore::v1::DocumentMask* unsafe_arena_release_mask();
  3101. private:
  3102. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  3103. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  3104. public:
  3105. // .google.firestore.v1.Precondition current_document = 4;
  3106. bool has_current_document() const;
  3107. void clear_current_document() ;
  3108. const ::google::firestore::v1::Precondition& current_document() const;
  3109. PROTOBUF_NODISCARD ::google::firestore::v1::Precondition* release_current_document();
  3110. ::google::firestore::v1::Precondition* mutable_current_document();
  3111. void set_allocated_current_document(::google::firestore::v1::Precondition* value);
  3112. void unsafe_arena_set_allocated_current_document(::google::firestore::v1::Precondition* value);
  3113. ::google::firestore::v1::Precondition* unsafe_arena_release_current_document();
  3114. private:
  3115. const ::google::firestore::v1::Precondition& _internal_current_document() const;
  3116. ::google::firestore::v1::Precondition* _internal_mutable_current_document();
  3117. public:
  3118. // @@protoc_insertion_point(class_scope:google.firestore.v1.UpdateDocumentRequest)
  3119. private:
  3120. class _Internal;
  3121. friend class ::google::protobuf::internal::TcParser;
  3122. static const ::google::protobuf::internal::TcParseTable<
  3123. 2, 4, 4,
  3124. 0, 2>
  3125. _table_;
  3126. friend class ::google::protobuf::MessageLite;
  3127. friend class ::google::protobuf::Arena;
  3128. template <typename T>
  3129. friend class ::google::protobuf::Arena::InternalHelper;
  3130. using InternalArenaConstructable_ = void;
  3131. using DestructorSkippable_ = void;
  3132. struct Impl_ {
  3133. inline explicit constexpr Impl_(
  3134. ::google::protobuf::internal::ConstantInitialized) noexcept;
  3135. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3136. ::google::protobuf::Arena* arena);
  3137. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3138. ::google::protobuf::Arena* arena, const Impl_& from);
  3139. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3140. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3141. ::google::firestore::v1::Document* document_;
  3142. ::google::firestore::v1::DocumentMask* update_mask_;
  3143. ::google::firestore::v1::DocumentMask* mask_;
  3144. ::google::firestore::v1::Precondition* current_document_;
  3145. PROTOBUF_TSAN_DECLARE_MEMBER
  3146. };
  3147. union { Impl_ _impl_; };
  3148. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3149. };// -------------------------------------------------------------------
  3150. class RunQueryResponse final :
  3151. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryResponse) */ {
  3152. public:
  3153. inline RunQueryResponse() : RunQueryResponse(nullptr) {}
  3154. ~RunQueryResponse() override;
  3155. template<typename = void>
  3156. explicit PROTOBUF_CONSTEXPR RunQueryResponse(::google::protobuf::internal::ConstantInitialized);
  3157. inline RunQueryResponse(const RunQueryResponse& from)
  3158. : RunQueryResponse(nullptr, from) {}
  3159. RunQueryResponse(RunQueryResponse&& from) noexcept
  3160. : RunQueryResponse() {
  3161. *this = ::std::move(from);
  3162. }
  3163. inline RunQueryResponse& operator=(const RunQueryResponse& from) {
  3164. CopyFrom(from);
  3165. return *this;
  3166. }
  3167. inline RunQueryResponse& operator=(RunQueryResponse&& from) noexcept {
  3168. if (this == &from) return *this;
  3169. if (GetArena() == from.GetArena()
  3170. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3171. && GetArena() != nullptr
  3172. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3173. ) {
  3174. InternalSwap(&from);
  3175. } else {
  3176. CopyFrom(from);
  3177. }
  3178. return *this;
  3179. }
  3180. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  3181. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3182. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  3183. }
  3184. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  3185. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3186. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  3187. }
  3188. static const ::google::protobuf::Descriptor* descriptor() {
  3189. return GetDescriptor();
  3190. }
  3191. static const ::google::protobuf::Descriptor* GetDescriptor() {
  3192. return default_instance().GetMetadata().descriptor;
  3193. }
  3194. static const ::google::protobuf::Reflection* GetReflection() {
  3195. return default_instance().GetMetadata().reflection;
  3196. }
  3197. static const RunQueryResponse& default_instance() {
  3198. return *internal_default_instance();
  3199. }
  3200. static inline const RunQueryResponse* internal_default_instance() {
  3201. return reinterpret_cast<const RunQueryResponse*>(
  3202. &_RunQueryResponse_default_instance_);
  3203. }
  3204. static constexpr int kIndexInFileMessages =
  3205. 14;
  3206. friend void swap(RunQueryResponse& a, RunQueryResponse& b) {
  3207. a.Swap(&b);
  3208. }
  3209. inline void Swap(RunQueryResponse* other) {
  3210. if (other == this) return;
  3211. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3212. if (GetArena() != nullptr &&
  3213. GetArena() == other->GetArena()) {
  3214. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3215. if (GetArena() == other->GetArena()) {
  3216. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3217. InternalSwap(other);
  3218. } else {
  3219. ::google::protobuf::internal::GenericSwap(this, other);
  3220. }
  3221. }
  3222. void UnsafeArenaSwap(RunQueryResponse* other) {
  3223. if (other == this) return;
  3224. ABSL_DCHECK(GetArena() == other->GetArena());
  3225. InternalSwap(other);
  3226. }
  3227. // implements Message ----------------------------------------------
  3228. RunQueryResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  3229. return CreateMaybeMessage<RunQueryResponse>(arena);
  3230. }
  3231. using ::google::protobuf::Message::CopyFrom;
  3232. void CopyFrom(const RunQueryResponse& from);
  3233. using ::google::protobuf::Message::MergeFrom;
  3234. void MergeFrom( const RunQueryResponse& from) {
  3235. RunQueryResponse::MergeImpl(*this, from);
  3236. }
  3237. private:
  3238. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  3239. public:
  3240. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3241. bool IsInitialized() const final;
  3242. ::size_t ByteSizeLong() const final;
  3243. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  3244. ::uint8_t* _InternalSerialize(
  3245. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  3246. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  3247. private:
  3248. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  3249. void SharedCtor(::google::protobuf::Arena* arena);
  3250. void SharedDtor();
  3251. void InternalSwap(RunQueryResponse* other);
  3252. private:
  3253. friend class ::google::protobuf::internal::AnyMetadata;
  3254. static ::absl::string_view FullMessageName() {
  3255. return "google.firestore.v1.RunQueryResponse";
  3256. }
  3257. protected:
  3258. explicit RunQueryResponse(::google::protobuf::Arena* arena);
  3259. RunQueryResponse(::google::protobuf::Arena* arena, const RunQueryResponse& from);
  3260. public:
  3261. static const ClassData _class_data_;
  3262. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  3263. ::google::protobuf::Metadata GetMetadata() const final;
  3264. // nested types ----------------------------------------------------
  3265. // accessors -------------------------------------------------------
  3266. enum : int {
  3267. kTransactionFieldNumber = 2,
  3268. kDocumentFieldNumber = 1,
  3269. kReadTimeFieldNumber = 3,
  3270. kSkippedResultsFieldNumber = 4,
  3271. };
  3272. // bytes transaction = 2;
  3273. void clear_transaction() ;
  3274. const std::string& transaction() const;
  3275. template <typename Arg_ = const std::string&, typename... Args_>
  3276. void set_transaction(Arg_&& arg, Args_... args);
  3277. std::string* mutable_transaction();
  3278. PROTOBUF_NODISCARD std::string* release_transaction();
  3279. void set_allocated_transaction(std::string* value);
  3280. private:
  3281. const std::string& _internal_transaction() const;
  3282. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  3283. const std::string& value);
  3284. std::string* _internal_mutable_transaction();
  3285. public:
  3286. // .google.firestore.v1.Document document = 1;
  3287. bool has_document() const;
  3288. void clear_document() ;
  3289. const ::google::firestore::v1::Document& document() const;
  3290. PROTOBUF_NODISCARD ::google::firestore::v1::Document* release_document();
  3291. ::google::firestore::v1::Document* mutable_document();
  3292. void set_allocated_document(::google::firestore::v1::Document* value);
  3293. void unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value);
  3294. ::google::firestore::v1::Document* unsafe_arena_release_document();
  3295. private:
  3296. const ::google::firestore::v1::Document& _internal_document() const;
  3297. ::google::firestore::v1::Document* _internal_mutable_document();
  3298. public:
  3299. // .google.protobuf.Timestamp read_time = 3;
  3300. bool has_read_time() const;
  3301. void clear_read_time() ;
  3302. const ::google::protobuf::Timestamp& read_time() const;
  3303. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  3304. ::google::protobuf::Timestamp* mutable_read_time();
  3305. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  3306. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  3307. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  3308. private:
  3309. const ::google::protobuf::Timestamp& _internal_read_time() const;
  3310. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  3311. public:
  3312. // int32 skipped_results = 4;
  3313. void clear_skipped_results() ;
  3314. ::int32_t skipped_results() const;
  3315. void set_skipped_results(::int32_t value);
  3316. private:
  3317. ::int32_t _internal_skipped_results() const;
  3318. void _internal_set_skipped_results(::int32_t value);
  3319. public:
  3320. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryResponse)
  3321. private:
  3322. class _Internal;
  3323. friend class ::google::protobuf::internal::TcParser;
  3324. static const ::google::protobuf::internal::TcParseTable<
  3325. 2, 4, 2,
  3326. 0, 2>
  3327. _table_;
  3328. friend class ::google::protobuf::MessageLite;
  3329. friend class ::google::protobuf::Arena;
  3330. template <typename T>
  3331. friend class ::google::protobuf::Arena::InternalHelper;
  3332. using InternalArenaConstructable_ = void;
  3333. using DestructorSkippable_ = void;
  3334. struct Impl_ {
  3335. inline explicit constexpr Impl_(
  3336. ::google::protobuf::internal::ConstantInitialized) noexcept;
  3337. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3338. ::google::protobuf::Arena* arena);
  3339. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3340. ::google::protobuf::Arena* arena, const Impl_& from);
  3341. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3342. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3343. ::google::protobuf::internal::ArenaStringPtr transaction_;
  3344. ::google::firestore::v1::Document* document_;
  3345. ::google::protobuf::Timestamp* read_time_;
  3346. ::int32_t skipped_results_;
  3347. PROTOBUF_TSAN_DECLARE_MEMBER
  3348. };
  3349. union { Impl_ _impl_; };
  3350. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3351. };// -------------------------------------------------------------------
  3352. class RunAggregationQueryResponse final :
  3353. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunAggregationQueryResponse) */ {
  3354. public:
  3355. inline RunAggregationQueryResponse() : RunAggregationQueryResponse(nullptr) {}
  3356. ~RunAggregationQueryResponse() override;
  3357. template<typename = void>
  3358. explicit PROTOBUF_CONSTEXPR RunAggregationQueryResponse(::google::protobuf::internal::ConstantInitialized);
  3359. inline RunAggregationQueryResponse(const RunAggregationQueryResponse& from)
  3360. : RunAggregationQueryResponse(nullptr, from) {}
  3361. RunAggregationQueryResponse(RunAggregationQueryResponse&& from) noexcept
  3362. : RunAggregationQueryResponse() {
  3363. *this = ::std::move(from);
  3364. }
  3365. inline RunAggregationQueryResponse& operator=(const RunAggregationQueryResponse& from) {
  3366. CopyFrom(from);
  3367. return *this;
  3368. }
  3369. inline RunAggregationQueryResponse& operator=(RunAggregationQueryResponse&& from) noexcept {
  3370. if (this == &from) return *this;
  3371. if (GetArena() == from.GetArena()
  3372. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3373. && GetArena() != nullptr
  3374. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3375. ) {
  3376. InternalSwap(&from);
  3377. } else {
  3378. CopyFrom(from);
  3379. }
  3380. return *this;
  3381. }
  3382. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  3383. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3384. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  3385. }
  3386. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  3387. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3388. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  3389. }
  3390. static const ::google::protobuf::Descriptor* descriptor() {
  3391. return GetDescriptor();
  3392. }
  3393. static const ::google::protobuf::Descriptor* GetDescriptor() {
  3394. return default_instance().GetMetadata().descriptor;
  3395. }
  3396. static const ::google::protobuf::Reflection* GetReflection() {
  3397. return default_instance().GetMetadata().reflection;
  3398. }
  3399. static const RunAggregationQueryResponse& default_instance() {
  3400. return *internal_default_instance();
  3401. }
  3402. static inline const RunAggregationQueryResponse* internal_default_instance() {
  3403. return reinterpret_cast<const RunAggregationQueryResponse*>(
  3404. &_RunAggregationQueryResponse_default_instance_);
  3405. }
  3406. static constexpr int kIndexInFileMessages =
  3407. 16;
  3408. friend void swap(RunAggregationQueryResponse& a, RunAggregationQueryResponse& b) {
  3409. a.Swap(&b);
  3410. }
  3411. inline void Swap(RunAggregationQueryResponse* other) {
  3412. if (other == this) return;
  3413. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3414. if (GetArena() != nullptr &&
  3415. GetArena() == other->GetArena()) {
  3416. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3417. if (GetArena() == other->GetArena()) {
  3418. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3419. InternalSwap(other);
  3420. } else {
  3421. ::google::protobuf::internal::GenericSwap(this, other);
  3422. }
  3423. }
  3424. void UnsafeArenaSwap(RunAggregationQueryResponse* other) {
  3425. if (other == this) return;
  3426. ABSL_DCHECK(GetArena() == other->GetArena());
  3427. InternalSwap(other);
  3428. }
  3429. // implements Message ----------------------------------------------
  3430. RunAggregationQueryResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  3431. return CreateMaybeMessage<RunAggregationQueryResponse>(arena);
  3432. }
  3433. using ::google::protobuf::Message::CopyFrom;
  3434. void CopyFrom(const RunAggregationQueryResponse& from);
  3435. using ::google::protobuf::Message::MergeFrom;
  3436. void MergeFrom( const RunAggregationQueryResponse& from) {
  3437. RunAggregationQueryResponse::MergeImpl(*this, from);
  3438. }
  3439. private:
  3440. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  3441. public:
  3442. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3443. bool IsInitialized() const final;
  3444. ::size_t ByteSizeLong() const final;
  3445. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  3446. ::uint8_t* _InternalSerialize(
  3447. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  3448. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  3449. private:
  3450. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  3451. void SharedCtor(::google::protobuf::Arena* arena);
  3452. void SharedDtor();
  3453. void InternalSwap(RunAggregationQueryResponse* other);
  3454. private:
  3455. friend class ::google::protobuf::internal::AnyMetadata;
  3456. static ::absl::string_view FullMessageName() {
  3457. return "google.firestore.v1.RunAggregationQueryResponse";
  3458. }
  3459. protected:
  3460. explicit RunAggregationQueryResponse(::google::protobuf::Arena* arena);
  3461. RunAggregationQueryResponse(::google::protobuf::Arena* arena, const RunAggregationQueryResponse& from);
  3462. public:
  3463. static const ClassData _class_data_;
  3464. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  3465. ::google::protobuf::Metadata GetMetadata() const final;
  3466. // nested types ----------------------------------------------------
  3467. // accessors -------------------------------------------------------
  3468. enum : int {
  3469. kTransactionFieldNumber = 2,
  3470. kResultFieldNumber = 1,
  3471. kReadTimeFieldNumber = 3,
  3472. };
  3473. // bytes transaction = 2;
  3474. void clear_transaction() ;
  3475. const std::string& transaction() const;
  3476. template <typename Arg_ = const std::string&, typename... Args_>
  3477. void set_transaction(Arg_&& arg, Args_... args);
  3478. std::string* mutable_transaction();
  3479. PROTOBUF_NODISCARD std::string* release_transaction();
  3480. void set_allocated_transaction(std::string* value);
  3481. private:
  3482. const std::string& _internal_transaction() const;
  3483. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  3484. const std::string& value);
  3485. std::string* _internal_mutable_transaction();
  3486. public:
  3487. // .google.firestore.v1.AggregationResult result = 1;
  3488. bool has_result() const;
  3489. void clear_result() ;
  3490. const ::google::firestore::v1::AggregationResult& result() const;
  3491. PROTOBUF_NODISCARD ::google::firestore::v1::AggregationResult* release_result();
  3492. ::google::firestore::v1::AggregationResult* mutable_result();
  3493. void set_allocated_result(::google::firestore::v1::AggregationResult* value);
  3494. void unsafe_arena_set_allocated_result(::google::firestore::v1::AggregationResult* value);
  3495. ::google::firestore::v1::AggregationResult* unsafe_arena_release_result();
  3496. private:
  3497. const ::google::firestore::v1::AggregationResult& _internal_result() const;
  3498. ::google::firestore::v1::AggregationResult* _internal_mutable_result();
  3499. public:
  3500. // .google.protobuf.Timestamp read_time = 3;
  3501. bool has_read_time() const;
  3502. void clear_read_time() ;
  3503. const ::google::protobuf::Timestamp& read_time() const;
  3504. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  3505. ::google::protobuf::Timestamp* mutable_read_time();
  3506. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  3507. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  3508. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  3509. private:
  3510. const ::google::protobuf::Timestamp& _internal_read_time() const;
  3511. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  3512. public:
  3513. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunAggregationQueryResponse)
  3514. private:
  3515. class _Internal;
  3516. friend class ::google::protobuf::internal::TcParser;
  3517. static const ::google::protobuf::internal::TcParseTable<
  3518. 2, 3, 2,
  3519. 0, 2>
  3520. _table_;
  3521. friend class ::google::protobuf::MessageLite;
  3522. friend class ::google::protobuf::Arena;
  3523. template <typename T>
  3524. friend class ::google::protobuf::Arena::InternalHelper;
  3525. using InternalArenaConstructable_ = void;
  3526. using DestructorSkippable_ = void;
  3527. struct Impl_ {
  3528. inline explicit constexpr Impl_(
  3529. ::google::protobuf::internal::ConstantInitialized) noexcept;
  3530. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3531. ::google::protobuf::Arena* arena);
  3532. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3533. ::google::protobuf::Arena* arena, const Impl_& from);
  3534. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3535. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3536. ::google::protobuf::internal::ArenaStringPtr transaction_;
  3537. ::google::firestore::v1::AggregationResult* result_;
  3538. ::google::protobuf::Timestamp* read_time_;
  3539. PROTOBUF_TSAN_DECLARE_MEMBER
  3540. };
  3541. union { Impl_ _impl_; };
  3542. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3543. };// -------------------------------------------------------------------
  3544. class ListDocumentsResponse final :
  3545. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsResponse) */ {
  3546. public:
  3547. inline ListDocumentsResponse() : ListDocumentsResponse(nullptr) {}
  3548. ~ListDocumentsResponse() override;
  3549. template<typename = void>
  3550. explicit PROTOBUF_CONSTEXPR ListDocumentsResponse(::google::protobuf::internal::ConstantInitialized);
  3551. inline ListDocumentsResponse(const ListDocumentsResponse& from)
  3552. : ListDocumentsResponse(nullptr, from) {}
  3553. ListDocumentsResponse(ListDocumentsResponse&& from) noexcept
  3554. : ListDocumentsResponse() {
  3555. *this = ::std::move(from);
  3556. }
  3557. inline ListDocumentsResponse& operator=(const ListDocumentsResponse& from) {
  3558. CopyFrom(from);
  3559. return *this;
  3560. }
  3561. inline ListDocumentsResponse& operator=(ListDocumentsResponse&& from) noexcept {
  3562. if (this == &from) return *this;
  3563. if (GetArena() == from.GetArena()
  3564. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3565. && GetArena() != nullptr
  3566. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3567. ) {
  3568. InternalSwap(&from);
  3569. } else {
  3570. CopyFrom(from);
  3571. }
  3572. return *this;
  3573. }
  3574. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  3575. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3576. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  3577. }
  3578. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  3579. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3580. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  3581. }
  3582. static const ::google::protobuf::Descriptor* descriptor() {
  3583. return GetDescriptor();
  3584. }
  3585. static const ::google::protobuf::Descriptor* GetDescriptor() {
  3586. return default_instance().GetMetadata().descriptor;
  3587. }
  3588. static const ::google::protobuf::Reflection* GetReflection() {
  3589. return default_instance().GetMetadata().reflection;
  3590. }
  3591. static const ListDocumentsResponse& default_instance() {
  3592. return *internal_default_instance();
  3593. }
  3594. static inline const ListDocumentsResponse* internal_default_instance() {
  3595. return reinterpret_cast<const ListDocumentsResponse*>(
  3596. &_ListDocumentsResponse_default_instance_);
  3597. }
  3598. static constexpr int kIndexInFileMessages =
  3599. 2;
  3600. friend void swap(ListDocumentsResponse& a, ListDocumentsResponse& b) {
  3601. a.Swap(&b);
  3602. }
  3603. inline void Swap(ListDocumentsResponse* other) {
  3604. if (other == this) return;
  3605. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3606. if (GetArena() != nullptr &&
  3607. GetArena() == other->GetArena()) {
  3608. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3609. if (GetArena() == other->GetArena()) {
  3610. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3611. InternalSwap(other);
  3612. } else {
  3613. ::google::protobuf::internal::GenericSwap(this, other);
  3614. }
  3615. }
  3616. void UnsafeArenaSwap(ListDocumentsResponse* other) {
  3617. if (other == this) return;
  3618. ABSL_DCHECK(GetArena() == other->GetArena());
  3619. InternalSwap(other);
  3620. }
  3621. // implements Message ----------------------------------------------
  3622. ListDocumentsResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  3623. return CreateMaybeMessage<ListDocumentsResponse>(arena);
  3624. }
  3625. using ::google::protobuf::Message::CopyFrom;
  3626. void CopyFrom(const ListDocumentsResponse& from);
  3627. using ::google::protobuf::Message::MergeFrom;
  3628. void MergeFrom( const ListDocumentsResponse& from) {
  3629. ListDocumentsResponse::MergeImpl(*this, from);
  3630. }
  3631. private:
  3632. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  3633. public:
  3634. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3635. bool IsInitialized() const final;
  3636. ::size_t ByteSizeLong() const final;
  3637. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  3638. ::uint8_t* _InternalSerialize(
  3639. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  3640. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  3641. private:
  3642. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  3643. void SharedCtor(::google::protobuf::Arena* arena);
  3644. void SharedDtor();
  3645. void InternalSwap(ListDocumentsResponse* other);
  3646. private:
  3647. friend class ::google::protobuf::internal::AnyMetadata;
  3648. static ::absl::string_view FullMessageName() {
  3649. return "google.firestore.v1.ListDocumentsResponse";
  3650. }
  3651. protected:
  3652. explicit ListDocumentsResponse(::google::protobuf::Arena* arena);
  3653. ListDocumentsResponse(::google::protobuf::Arena* arena, const ListDocumentsResponse& from);
  3654. public:
  3655. static const ClassData _class_data_;
  3656. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  3657. ::google::protobuf::Metadata GetMetadata() const final;
  3658. // nested types ----------------------------------------------------
  3659. // accessors -------------------------------------------------------
  3660. enum : int {
  3661. kDocumentsFieldNumber = 1,
  3662. kNextPageTokenFieldNumber = 2,
  3663. };
  3664. // repeated .google.firestore.v1.Document documents = 1;
  3665. int documents_size() const;
  3666. private:
  3667. int _internal_documents_size() const;
  3668. public:
  3669. void clear_documents() ;
  3670. ::google::firestore::v1::Document* mutable_documents(int index);
  3671. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Document >*
  3672. mutable_documents();
  3673. private:
  3674. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Document>& _internal_documents() const;
  3675. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Document>* _internal_mutable_documents();
  3676. public:
  3677. const ::google::firestore::v1::Document& documents(int index) const;
  3678. ::google::firestore::v1::Document* add_documents();
  3679. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Document >&
  3680. documents() const;
  3681. // string next_page_token = 2;
  3682. void clear_next_page_token() ;
  3683. const std::string& next_page_token() const;
  3684. template <typename Arg_ = const std::string&, typename... Args_>
  3685. void set_next_page_token(Arg_&& arg, Args_... args);
  3686. std::string* mutable_next_page_token();
  3687. PROTOBUF_NODISCARD std::string* release_next_page_token();
  3688. void set_allocated_next_page_token(std::string* value);
  3689. private:
  3690. const std::string& _internal_next_page_token() const;
  3691. inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(
  3692. const std::string& value);
  3693. std::string* _internal_mutable_next_page_token();
  3694. public:
  3695. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsResponse)
  3696. private:
  3697. class _Internal;
  3698. friend class ::google::protobuf::internal::TcParser;
  3699. static const ::google::protobuf::internal::TcParseTable<
  3700. 1, 2, 1,
  3701. 65, 2>
  3702. _table_;
  3703. friend class ::google::protobuf::MessageLite;
  3704. friend class ::google::protobuf::Arena;
  3705. template <typename T>
  3706. friend class ::google::protobuf::Arena::InternalHelper;
  3707. using InternalArenaConstructable_ = void;
  3708. using DestructorSkippable_ = void;
  3709. struct Impl_ {
  3710. inline explicit constexpr Impl_(
  3711. ::google::protobuf::internal::ConstantInitialized) noexcept;
  3712. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3713. ::google::protobuf::Arena* arena);
  3714. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3715. ::google::protobuf::Arena* arena, const Impl_& from);
  3716. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Document > documents_;
  3717. ::google::protobuf::internal::ArenaStringPtr next_page_token_;
  3718. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3719. PROTOBUF_TSAN_DECLARE_MEMBER
  3720. };
  3721. union { Impl_ _impl_; };
  3722. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3723. };// -------------------------------------------------------------------
  3724. class CreateDocumentRequest final :
  3725. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CreateDocumentRequest) */ {
  3726. public:
  3727. inline CreateDocumentRequest() : CreateDocumentRequest(nullptr) {}
  3728. ~CreateDocumentRequest() override;
  3729. template<typename = void>
  3730. explicit PROTOBUF_CONSTEXPR CreateDocumentRequest(::google::protobuf::internal::ConstantInitialized);
  3731. inline CreateDocumentRequest(const CreateDocumentRequest& from)
  3732. : CreateDocumentRequest(nullptr, from) {}
  3733. CreateDocumentRequest(CreateDocumentRequest&& from) noexcept
  3734. : CreateDocumentRequest() {
  3735. *this = ::std::move(from);
  3736. }
  3737. inline CreateDocumentRequest& operator=(const CreateDocumentRequest& from) {
  3738. CopyFrom(from);
  3739. return *this;
  3740. }
  3741. inline CreateDocumentRequest& operator=(CreateDocumentRequest&& from) noexcept {
  3742. if (this == &from) return *this;
  3743. if (GetArena() == from.GetArena()
  3744. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3745. && GetArena() != nullptr
  3746. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3747. ) {
  3748. InternalSwap(&from);
  3749. } else {
  3750. CopyFrom(from);
  3751. }
  3752. return *this;
  3753. }
  3754. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  3755. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3756. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  3757. }
  3758. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  3759. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3760. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  3761. }
  3762. static const ::google::protobuf::Descriptor* descriptor() {
  3763. return GetDescriptor();
  3764. }
  3765. static const ::google::protobuf::Descriptor* GetDescriptor() {
  3766. return default_instance().GetMetadata().descriptor;
  3767. }
  3768. static const ::google::protobuf::Reflection* GetReflection() {
  3769. return default_instance().GetMetadata().reflection;
  3770. }
  3771. static const CreateDocumentRequest& default_instance() {
  3772. return *internal_default_instance();
  3773. }
  3774. static inline const CreateDocumentRequest* internal_default_instance() {
  3775. return reinterpret_cast<const CreateDocumentRequest*>(
  3776. &_CreateDocumentRequest_default_instance_);
  3777. }
  3778. static constexpr int kIndexInFileMessages =
  3779. 3;
  3780. friend void swap(CreateDocumentRequest& a, CreateDocumentRequest& b) {
  3781. a.Swap(&b);
  3782. }
  3783. inline void Swap(CreateDocumentRequest* other) {
  3784. if (other == this) return;
  3785. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3786. if (GetArena() != nullptr &&
  3787. GetArena() == other->GetArena()) {
  3788. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3789. if (GetArena() == other->GetArena()) {
  3790. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3791. InternalSwap(other);
  3792. } else {
  3793. ::google::protobuf::internal::GenericSwap(this, other);
  3794. }
  3795. }
  3796. void UnsafeArenaSwap(CreateDocumentRequest* other) {
  3797. if (other == this) return;
  3798. ABSL_DCHECK(GetArena() == other->GetArena());
  3799. InternalSwap(other);
  3800. }
  3801. // implements Message ----------------------------------------------
  3802. CreateDocumentRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  3803. return CreateMaybeMessage<CreateDocumentRequest>(arena);
  3804. }
  3805. using ::google::protobuf::Message::CopyFrom;
  3806. void CopyFrom(const CreateDocumentRequest& from);
  3807. using ::google::protobuf::Message::MergeFrom;
  3808. void MergeFrom( const CreateDocumentRequest& from) {
  3809. CreateDocumentRequest::MergeImpl(*this, from);
  3810. }
  3811. private:
  3812. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  3813. public:
  3814. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3815. bool IsInitialized() const final;
  3816. ::size_t ByteSizeLong() const final;
  3817. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  3818. ::uint8_t* _InternalSerialize(
  3819. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  3820. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  3821. private:
  3822. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  3823. void SharedCtor(::google::protobuf::Arena* arena);
  3824. void SharedDtor();
  3825. void InternalSwap(CreateDocumentRequest* other);
  3826. private:
  3827. friend class ::google::protobuf::internal::AnyMetadata;
  3828. static ::absl::string_view FullMessageName() {
  3829. return "google.firestore.v1.CreateDocumentRequest";
  3830. }
  3831. protected:
  3832. explicit CreateDocumentRequest(::google::protobuf::Arena* arena);
  3833. CreateDocumentRequest(::google::protobuf::Arena* arena, const CreateDocumentRequest& from);
  3834. public:
  3835. static const ClassData _class_data_;
  3836. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  3837. ::google::protobuf::Metadata GetMetadata() const final;
  3838. // nested types ----------------------------------------------------
  3839. // accessors -------------------------------------------------------
  3840. enum : int {
  3841. kParentFieldNumber = 1,
  3842. kCollectionIdFieldNumber = 2,
  3843. kDocumentIdFieldNumber = 3,
  3844. kDocumentFieldNumber = 4,
  3845. kMaskFieldNumber = 5,
  3846. };
  3847. // string parent = 1;
  3848. void clear_parent() ;
  3849. const std::string& parent() const;
  3850. template <typename Arg_ = const std::string&, typename... Args_>
  3851. void set_parent(Arg_&& arg, Args_... args);
  3852. std::string* mutable_parent();
  3853. PROTOBUF_NODISCARD std::string* release_parent();
  3854. void set_allocated_parent(std::string* value);
  3855. private:
  3856. const std::string& _internal_parent() const;
  3857. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(
  3858. const std::string& value);
  3859. std::string* _internal_mutable_parent();
  3860. public:
  3861. // string collection_id = 2;
  3862. void clear_collection_id() ;
  3863. const std::string& collection_id() const;
  3864. template <typename Arg_ = const std::string&, typename... Args_>
  3865. void set_collection_id(Arg_&& arg, Args_... args);
  3866. std::string* mutable_collection_id();
  3867. PROTOBUF_NODISCARD std::string* release_collection_id();
  3868. void set_allocated_collection_id(std::string* value);
  3869. private:
  3870. const std::string& _internal_collection_id() const;
  3871. inline PROTOBUF_ALWAYS_INLINE void _internal_set_collection_id(
  3872. const std::string& value);
  3873. std::string* _internal_mutable_collection_id();
  3874. public:
  3875. // string document_id = 3;
  3876. void clear_document_id() ;
  3877. const std::string& document_id() const;
  3878. template <typename Arg_ = const std::string&, typename... Args_>
  3879. void set_document_id(Arg_&& arg, Args_... args);
  3880. std::string* mutable_document_id();
  3881. PROTOBUF_NODISCARD std::string* release_document_id();
  3882. void set_allocated_document_id(std::string* value);
  3883. private:
  3884. const std::string& _internal_document_id() const;
  3885. inline PROTOBUF_ALWAYS_INLINE void _internal_set_document_id(
  3886. const std::string& value);
  3887. std::string* _internal_mutable_document_id();
  3888. public:
  3889. // .google.firestore.v1.Document document = 4;
  3890. bool has_document() const;
  3891. void clear_document() ;
  3892. const ::google::firestore::v1::Document& document() const;
  3893. PROTOBUF_NODISCARD ::google::firestore::v1::Document* release_document();
  3894. ::google::firestore::v1::Document* mutable_document();
  3895. void set_allocated_document(::google::firestore::v1::Document* value);
  3896. void unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value);
  3897. ::google::firestore::v1::Document* unsafe_arena_release_document();
  3898. private:
  3899. const ::google::firestore::v1::Document& _internal_document() const;
  3900. ::google::firestore::v1::Document* _internal_mutable_document();
  3901. public:
  3902. // .google.firestore.v1.DocumentMask mask = 5;
  3903. bool has_mask() const;
  3904. void clear_mask() ;
  3905. const ::google::firestore::v1::DocumentMask& mask() const;
  3906. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentMask* release_mask();
  3907. ::google::firestore::v1::DocumentMask* mutable_mask();
  3908. void set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  3909. void unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value);
  3910. ::google::firestore::v1::DocumentMask* unsafe_arena_release_mask();
  3911. private:
  3912. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  3913. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  3914. public:
  3915. // @@protoc_insertion_point(class_scope:google.firestore.v1.CreateDocumentRequest)
  3916. private:
  3917. class _Internal;
  3918. friend class ::google::protobuf::internal::TcParser;
  3919. static const ::google::protobuf::internal::TcParseTable<
  3920. 3, 5, 2,
  3921. 80, 2>
  3922. _table_;
  3923. friend class ::google::protobuf::MessageLite;
  3924. friend class ::google::protobuf::Arena;
  3925. template <typename T>
  3926. friend class ::google::protobuf::Arena::InternalHelper;
  3927. using InternalArenaConstructable_ = void;
  3928. using DestructorSkippable_ = void;
  3929. struct Impl_ {
  3930. inline explicit constexpr Impl_(
  3931. ::google::protobuf::internal::ConstantInitialized) noexcept;
  3932. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3933. ::google::protobuf::Arena* arena);
  3934. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3935. ::google::protobuf::Arena* arena, const Impl_& from);
  3936. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3937. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3938. ::google::protobuf::internal::ArenaStringPtr parent_;
  3939. ::google::protobuf::internal::ArenaStringPtr collection_id_;
  3940. ::google::protobuf::internal::ArenaStringPtr document_id_;
  3941. ::google::firestore::v1::Document* document_;
  3942. ::google::firestore::v1::DocumentMask* mask_;
  3943. PROTOBUF_TSAN_DECLARE_MEMBER
  3944. };
  3945. union { Impl_ _impl_; };
  3946. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3947. };// -------------------------------------------------------------------
  3948. class BatchGetDocumentsResponse final :
  3949. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsResponse) */ {
  3950. public:
  3951. inline BatchGetDocumentsResponse() : BatchGetDocumentsResponse(nullptr) {}
  3952. ~BatchGetDocumentsResponse() override;
  3953. template<typename = void>
  3954. explicit PROTOBUF_CONSTEXPR BatchGetDocumentsResponse(::google::protobuf::internal::ConstantInitialized);
  3955. inline BatchGetDocumentsResponse(const BatchGetDocumentsResponse& from)
  3956. : BatchGetDocumentsResponse(nullptr, from) {}
  3957. BatchGetDocumentsResponse(BatchGetDocumentsResponse&& from) noexcept
  3958. : BatchGetDocumentsResponse() {
  3959. *this = ::std::move(from);
  3960. }
  3961. inline BatchGetDocumentsResponse& operator=(const BatchGetDocumentsResponse& from) {
  3962. CopyFrom(from);
  3963. return *this;
  3964. }
  3965. inline BatchGetDocumentsResponse& operator=(BatchGetDocumentsResponse&& from) noexcept {
  3966. if (this == &from) return *this;
  3967. if (GetArena() == from.GetArena()
  3968. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3969. && GetArena() != nullptr
  3970. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3971. ) {
  3972. InternalSwap(&from);
  3973. } else {
  3974. CopyFrom(from);
  3975. }
  3976. return *this;
  3977. }
  3978. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  3979. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3980. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  3981. }
  3982. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  3983. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3984. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  3985. }
  3986. static const ::google::protobuf::Descriptor* descriptor() {
  3987. return GetDescriptor();
  3988. }
  3989. static const ::google::protobuf::Descriptor* GetDescriptor() {
  3990. return default_instance().GetMetadata().descriptor;
  3991. }
  3992. static const ::google::protobuf::Reflection* GetReflection() {
  3993. return default_instance().GetMetadata().reflection;
  3994. }
  3995. static const BatchGetDocumentsResponse& default_instance() {
  3996. return *internal_default_instance();
  3997. }
  3998. enum ResultCase {
  3999. kFound = 1,
  4000. kMissing = 2,
  4001. RESULT_NOT_SET = 0,
  4002. };
  4003. static inline const BatchGetDocumentsResponse* internal_default_instance() {
  4004. return reinterpret_cast<const BatchGetDocumentsResponse*>(
  4005. &_BatchGetDocumentsResponse_default_instance_);
  4006. }
  4007. static constexpr int kIndexInFileMessages =
  4008. 7;
  4009. friend void swap(BatchGetDocumentsResponse& a, BatchGetDocumentsResponse& b) {
  4010. a.Swap(&b);
  4011. }
  4012. inline void Swap(BatchGetDocumentsResponse* other) {
  4013. if (other == this) return;
  4014. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4015. if (GetArena() != nullptr &&
  4016. GetArena() == other->GetArena()) {
  4017. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4018. if (GetArena() == other->GetArena()) {
  4019. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4020. InternalSwap(other);
  4021. } else {
  4022. ::google::protobuf::internal::GenericSwap(this, other);
  4023. }
  4024. }
  4025. void UnsafeArenaSwap(BatchGetDocumentsResponse* other) {
  4026. if (other == this) return;
  4027. ABSL_DCHECK(GetArena() == other->GetArena());
  4028. InternalSwap(other);
  4029. }
  4030. // implements Message ----------------------------------------------
  4031. BatchGetDocumentsResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  4032. return CreateMaybeMessage<BatchGetDocumentsResponse>(arena);
  4033. }
  4034. using ::google::protobuf::Message::CopyFrom;
  4035. void CopyFrom(const BatchGetDocumentsResponse& from);
  4036. using ::google::protobuf::Message::MergeFrom;
  4037. void MergeFrom( const BatchGetDocumentsResponse& from) {
  4038. BatchGetDocumentsResponse::MergeImpl(*this, from);
  4039. }
  4040. private:
  4041. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  4042. public:
  4043. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4044. bool IsInitialized() const final;
  4045. ::size_t ByteSizeLong() const final;
  4046. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  4047. ::uint8_t* _InternalSerialize(
  4048. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  4049. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  4050. private:
  4051. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  4052. void SharedCtor(::google::protobuf::Arena* arena);
  4053. void SharedDtor();
  4054. void InternalSwap(BatchGetDocumentsResponse* other);
  4055. private:
  4056. friend class ::google::protobuf::internal::AnyMetadata;
  4057. static ::absl::string_view FullMessageName() {
  4058. return "google.firestore.v1.BatchGetDocumentsResponse";
  4059. }
  4060. protected:
  4061. explicit BatchGetDocumentsResponse(::google::protobuf::Arena* arena);
  4062. BatchGetDocumentsResponse(::google::protobuf::Arena* arena, const BatchGetDocumentsResponse& from);
  4063. public:
  4064. static const ClassData _class_data_;
  4065. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  4066. ::google::protobuf::Metadata GetMetadata() const final;
  4067. // nested types ----------------------------------------------------
  4068. // accessors -------------------------------------------------------
  4069. enum : int {
  4070. kTransactionFieldNumber = 3,
  4071. kReadTimeFieldNumber = 4,
  4072. kFoundFieldNumber = 1,
  4073. kMissingFieldNumber = 2,
  4074. };
  4075. // bytes transaction = 3;
  4076. void clear_transaction() ;
  4077. const std::string& transaction() const;
  4078. template <typename Arg_ = const std::string&, typename... Args_>
  4079. void set_transaction(Arg_&& arg, Args_... args);
  4080. std::string* mutable_transaction();
  4081. PROTOBUF_NODISCARD std::string* release_transaction();
  4082. void set_allocated_transaction(std::string* value);
  4083. private:
  4084. const std::string& _internal_transaction() const;
  4085. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  4086. const std::string& value);
  4087. std::string* _internal_mutable_transaction();
  4088. public:
  4089. // .google.protobuf.Timestamp read_time = 4;
  4090. bool has_read_time() const;
  4091. void clear_read_time() ;
  4092. const ::google::protobuf::Timestamp& read_time() const;
  4093. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  4094. ::google::protobuf::Timestamp* mutable_read_time();
  4095. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  4096. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  4097. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  4098. private:
  4099. const ::google::protobuf::Timestamp& _internal_read_time() const;
  4100. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  4101. public:
  4102. // .google.firestore.v1.Document found = 1;
  4103. bool has_found() const;
  4104. private:
  4105. bool _internal_has_found() const;
  4106. public:
  4107. void clear_found() ;
  4108. const ::google::firestore::v1::Document& found() const;
  4109. PROTOBUF_NODISCARD ::google::firestore::v1::Document* release_found();
  4110. ::google::firestore::v1::Document* mutable_found();
  4111. void set_allocated_found(::google::firestore::v1::Document* value);
  4112. void unsafe_arena_set_allocated_found(::google::firestore::v1::Document* value);
  4113. ::google::firestore::v1::Document* unsafe_arena_release_found();
  4114. private:
  4115. const ::google::firestore::v1::Document& _internal_found() const;
  4116. ::google::firestore::v1::Document* _internal_mutable_found();
  4117. public:
  4118. // string missing = 2;
  4119. bool has_missing() const;
  4120. void clear_missing() ;
  4121. const std::string& missing() const;
  4122. template <typename Arg_ = const std::string&, typename... Args_>
  4123. void set_missing(Arg_&& arg, Args_... args);
  4124. std::string* mutable_missing();
  4125. PROTOBUF_NODISCARD std::string* release_missing();
  4126. void set_allocated_missing(std::string* value);
  4127. private:
  4128. const std::string& _internal_missing() const;
  4129. inline PROTOBUF_ALWAYS_INLINE void _internal_set_missing(
  4130. const std::string& value);
  4131. std::string* _internal_mutable_missing();
  4132. public:
  4133. void clear_result();
  4134. ResultCase result_case() const;
  4135. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsResponse)
  4136. private:
  4137. class _Internal;
  4138. void set_has_found();
  4139. void set_has_missing();
  4140. inline bool has_result() const;
  4141. inline void clear_has_result();
  4142. friend class ::google::protobuf::internal::TcParser;
  4143. static const ::google::protobuf::internal::TcParseTable<
  4144. 1, 4, 2,
  4145. 61, 2>
  4146. _table_;
  4147. friend class ::google::protobuf::MessageLite;
  4148. friend class ::google::protobuf::Arena;
  4149. template <typename T>
  4150. friend class ::google::protobuf::Arena::InternalHelper;
  4151. using InternalArenaConstructable_ = void;
  4152. using DestructorSkippable_ = void;
  4153. struct Impl_ {
  4154. inline explicit constexpr Impl_(
  4155. ::google::protobuf::internal::ConstantInitialized) noexcept;
  4156. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  4157. ::google::protobuf::Arena* arena);
  4158. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  4159. ::google::protobuf::Arena* arena, const Impl_& from);
  4160. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4161. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4162. ::google::protobuf::internal::ArenaStringPtr transaction_;
  4163. ::google::protobuf::Timestamp* read_time_;
  4164. union ResultUnion {
  4165. constexpr ResultUnion() : _constinit_{} {}
  4166. ::google::protobuf::internal::ConstantInitialized _constinit_;
  4167. ::google::firestore::v1::Document* found_;
  4168. ::google::protobuf::internal::ArenaStringPtr missing_;
  4169. } result_;
  4170. ::uint32_t _oneof_case_[1];
  4171. PROTOBUF_TSAN_DECLARE_MEMBER
  4172. };
  4173. union { Impl_ _impl_; };
  4174. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4175. };// -------------------------------------------------------------------
  4176. class WriteRequest final :
  4177. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteRequest) */ {
  4178. public:
  4179. inline WriteRequest() : WriteRequest(nullptr) {}
  4180. ~WriteRequest() override;
  4181. template<typename = void>
  4182. explicit PROTOBUF_CONSTEXPR WriteRequest(::google::protobuf::internal::ConstantInitialized);
  4183. inline WriteRequest(const WriteRequest& from)
  4184. : WriteRequest(nullptr, from) {}
  4185. WriteRequest(WriteRequest&& from) noexcept
  4186. : WriteRequest() {
  4187. *this = ::std::move(from);
  4188. }
  4189. inline WriteRequest& operator=(const WriteRequest& from) {
  4190. CopyFrom(from);
  4191. return *this;
  4192. }
  4193. inline WriteRequest& operator=(WriteRequest&& from) noexcept {
  4194. if (this == &from) return *this;
  4195. if (GetArena() == from.GetArena()
  4196. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4197. && GetArena() != nullptr
  4198. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4199. ) {
  4200. InternalSwap(&from);
  4201. } else {
  4202. CopyFrom(from);
  4203. }
  4204. return *this;
  4205. }
  4206. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  4207. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4208. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  4209. }
  4210. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  4211. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4212. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  4213. }
  4214. static const ::google::protobuf::Descriptor* descriptor() {
  4215. return GetDescriptor();
  4216. }
  4217. static const ::google::protobuf::Descriptor* GetDescriptor() {
  4218. return default_instance().GetMetadata().descriptor;
  4219. }
  4220. static const ::google::protobuf::Reflection* GetReflection() {
  4221. return default_instance().GetMetadata().reflection;
  4222. }
  4223. static const WriteRequest& default_instance() {
  4224. return *internal_default_instance();
  4225. }
  4226. static inline const WriteRequest* internal_default_instance() {
  4227. return reinterpret_cast<const WriteRequest*>(
  4228. &_WriteRequest_default_instance_);
  4229. }
  4230. static constexpr int kIndexInFileMessages =
  4231. 18;
  4232. friend void swap(WriteRequest& a, WriteRequest& b) {
  4233. a.Swap(&b);
  4234. }
  4235. inline void Swap(WriteRequest* other) {
  4236. if (other == this) return;
  4237. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4238. if (GetArena() != nullptr &&
  4239. GetArena() == other->GetArena()) {
  4240. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4241. if (GetArena() == other->GetArena()) {
  4242. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4243. InternalSwap(other);
  4244. } else {
  4245. ::google::protobuf::internal::GenericSwap(this, other);
  4246. }
  4247. }
  4248. void UnsafeArenaSwap(WriteRequest* other) {
  4249. if (other == this) return;
  4250. ABSL_DCHECK(GetArena() == other->GetArena());
  4251. InternalSwap(other);
  4252. }
  4253. // implements Message ----------------------------------------------
  4254. WriteRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  4255. return CreateMaybeMessage<WriteRequest>(arena);
  4256. }
  4257. using ::google::protobuf::Message::CopyFrom;
  4258. void CopyFrom(const WriteRequest& from);
  4259. using ::google::protobuf::Message::MergeFrom;
  4260. void MergeFrom( const WriteRequest& from) {
  4261. WriteRequest::MergeImpl(*this, from);
  4262. }
  4263. private:
  4264. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  4265. public:
  4266. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4267. bool IsInitialized() const final;
  4268. ::size_t ByteSizeLong() const final;
  4269. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  4270. ::uint8_t* _InternalSerialize(
  4271. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  4272. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  4273. private:
  4274. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  4275. void SharedCtor(::google::protobuf::Arena* arena);
  4276. void SharedDtor();
  4277. void InternalSwap(WriteRequest* other);
  4278. private:
  4279. friend class ::google::protobuf::internal::AnyMetadata;
  4280. static ::absl::string_view FullMessageName() {
  4281. return "google.firestore.v1.WriteRequest";
  4282. }
  4283. protected:
  4284. explicit WriteRequest(::google::protobuf::Arena* arena);
  4285. WriteRequest(::google::protobuf::Arena* arena, const WriteRequest& from);
  4286. public:
  4287. static const ClassData _class_data_;
  4288. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  4289. ::google::protobuf::Metadata GetMetadata() const final;
  4290. // nested types ----------------------------------------------------
  4291. // accessors -------------------------------------------------------
  4292. enum : int {
  4293. kWritesFieldNumber = 3,
  4294. kLabelsFieldNumber = 5,
  4295. kDatabaseFieldNumber = 1,
  4296. kStreamIdFieldNumber = 2,
  4297. kStreamTokenFieldNumber = 4,
  4298. };
  4299. // repeated .google.firestore.v1.Write writes = 3;
  4300. int writes_size() const;
  4301. private:
  4302. int _internal_writes_size() const;
  4303. public:
  4304. void clear_writes() ;
  4305. ::google::firestore::v1::Write* mutable_writes(int index);
  4306. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write >*
  4307. mutable_writes();
  4308. private:
  4309. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>& _internal_writes() const;
  4310. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>* _internal_mutable_writes();
  4311. public:
  4312. const ::google::firestore::v1::Write& writes(int index) const;
  4313. ::google::firestore::v1::Write* add_writes();
  4314. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write >&
  4315. writes() const;
  4316. // map<string, string> labels = 5;
  4317. int labels_size() const;
  4318. private:
  4319. int _internal_labels_size() const;
  4320. public:
  4321. void clear_labels() ;
  4322. const ::google::protobuf::Map<std::string, std::string>& labels() const;
  4323. ::google::protobuf::Map<std::string, std::string>* mutable_labels();
  4324. private:
  4325. const ::google::protobuf::Map<std::string, std::string>& _internal_labels() const;
  4326. ::google::protobuf::Map<std::string, std::string>* _internal_mutable_labels();
  4327. public:
  4328. // string database = 1;
  4329. void clear_database() ;
  4330. const std::string& database() const;
  4331. template <typename Arg_ = const std::string&, typename... Args_>
  4332. void set_database(Arg_&& arg, Args_... args);
  4333. std::string* mutable_database();
  4334. PROTOBUF_NODISCARD std::string* release_database();
  4335. void set_allocated_database(std::string* value);
  4336. private:
  4337. const std::string& _internal_database() const;
  4338. inline PROTOBUF_ALWAYS_INLINE void _internal_set_database(
  4339. const std::string& value);
  4340. std::string* _internal_mutable_database();
  4341. public:
  4342. // string stream_id = 2;
  4343. void clear_stream_id() ;
  4344. const std::string& stream_id() const;
  4345. template <typename Arg_ = const std::string&, typename... Args_>
  4346. void set_stream_id(Arg_&& arg, Args_... args);
  4347. std::string* mutable_stream_id();
  4348. PROTOBUF_NODISCARD std::string* release_stream_id();
  4349. void set_allocated_stream_id(std::string* value);
  4350. private:
  4351. const std::string& _internal_stream_id() const;
  4352. inline PROTOBUF_ALWAYS_INLINE void _internal_set_stream_id(
  4353. const std::string& value);
  4354. std::string* _internal_mutable_stream_id();
  4355. public:
  4356. // bytes stream_token = 4;
  4357. void clear_stream_token() ;
  4358. const std::string& stream_token() const;
  4359. template <typename Arg_ = const std::string&, typename... Args_>
  4360. void set_stream_token(Arg_&& arg, Args_... args);
  4361. std::string* mutable_stream_token();
  4362. PROTOBUF_NODISCARD std::string* release_stream_token();
  4363. void set_allocated_stream_token(std::string* value);
  4364. private:
  4365. const std::string& _internal_stream_token() const;
  4366. inline PROTOBUF_ALWAYS_INLINE void _internal_set_stream_token(
  4367. const std::string& value);
  4368. std::string* _internal_mutable_stream_token();
  4369. public:
  4370. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteRequest)
  4371. private:
  4372. class _Internal;
  4373. friend class ::google::protobuf::internal::TcParser;
  4374. static const ::google::protobuf::internal::TcParseTable<
  4375. 2, 5, 2,
  4376. 64, 2>
  4377. _table_;
  4378. friend class ::google::protobuf::MessageLite;
  4379. friend class ::google::protobuf::Arena;
  4380. template <typename T>
  4381. friend class ::google::protobuf::Arena::InternalHelper;
  4382. using InternalArenaConstructable_ = void;
  4383. using DestructorSkippable_ = void;
  4384. struct Impl_ {
  4385. inline explicit constexpr Impl_(
  4386. ::google::protobuf::internal::ConstantInitialized) noexcept;
  4387. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  4388. ::google::protobuf::Arena* arena);
  4389. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  4390. ::google::protobuf::Arena* arena, const Impl_& from);
  4391. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  4392. ::google::protobuf::internal::MapField<WriteRequest_LabelsEntry_DoNotUse, std::string, std::string,
  4393. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  4394. ::google::protobuf::internal::WireFormatLite::TYPE_STRING>
  4395. labels_;
  4396. ::google::protobuf::internal::ArenaStringPtr database_;
  4397. ::google::protobuf::internal::ArenaStringPtr stream_id_;
  4398. ::google::protobuf::internal::ArenaStringPtr stream_token_;
  4399. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4400. PROTOBUF_TSAN_DECLARE_MEMBER
  4401. };
  4402. union { Impl_ _impl_; };
  4403. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4404. };// -------------------------------------------------------------------
  4405. class Target_QueryTarget final :
  4406. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.QueryTarget) */ {
  4407. public:
  4408. inline Target_QueryTarget() : Target_QueryTarget(nullptr) {}
  4409. ~Target_QueryTarget() override;
  4410. template<typename = void>
  4411. explicit PROTOBUF_CONSTEXPR Target_QueryTarget(::google::protobuf::internal::ConstantInitialized);
  4412. inline Target_QueryTarget(const Target_QueryTarget& from)
  4413. : Target_QueryTarget(nullptr, from) {}
  4414. Target_QueryTarget(Target_QueryTarget&& from) noexcept
  4415. : Target_QueryTarget() {
  4416. *this = ::std::move(from);
  4417. }
  4418. inline Target_QueryTarget& operator=(const Target_QueryTarget& from) {
  4419. CopyFrom(from);
  4420. return *this;
  4421. }
  4422. inline Target_QueryTarget& operator=(Target_QueryTarget&& from) noexcept {
  4423. if (this == &from) return *this;
  4424. if (GetArena() == from.GetArena()
  4425. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4426. && GetArena() != nullptr
  4427. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4428. ) {
  4429. InternalSwap(&from);
  4430. } else {
  4431. CopyFrom(from);
  4432. }
  4433. return *this;
  4434. }
  4435. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  4436. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4437. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  4438. }
  4439. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  4440. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4441. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  4442. }
  4443. static const ::google::protobuf::Descriptor* descriptor() {
  4444. return GetDescriptor();
  4445. }
  4446. static const ::google::protobuf::Descriptor* GetDescriptor() {
  4447. return default_instance().GetMetadata().descriptor;
  4448. }
  4449. static const ::google::protobuf::Reflection* GetReflection() {
  4450. return default_instance().GetMetadata().reflection;
  4451. }
  4452. static const Target_QueryTarget& default_instance() {
  4453. return *internal_default_instance();
  4454. }
  4455. enum QueryTypeCase {
  4456. kStructuredQuery = 2,
  4457. QUERY_TYPE_NOT_SET = 0,
  4458. };
  4459. static inline const Target_QueryTarget* internal_default_instance() {
  4460. return reinterpret_cast<const Target_QueryTarget*>(
  4461. &_Target_QueryTarget_default_instance_);
  4462. }
  4463. static constexpr int kIndexInFileMessages =
  4464. 24;
  4465. friend void swap(Target_QueryTarget& a, Target_QueryTarget& b) {
  4466. a.Swap(&b);
  4467. }
  4468. inline void Swap(Target_QueryTarget* other) {
  4469. if (other == this) return;
  4470. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4471. if (GetArena() != nullptr &&
  4472. GetArena() == other->GetArena()) {
  4473. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4474. if (GetArena() == other->GetArena()) {
  4475. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4476. InternalSwap(other);
  4477. } else {
  4478. ::google::protobuf::internal::GenericSwap(this, other);
  4479. }
  4480. }
  4481. void UnsafeArenaSwap(Target_QueryTarget* other) {
  4482. if (other == this) return;
  4483. ABSL_DCHECK(GetArena() == other->GetArena());
  4484. InternalSwap(other);
  4485. }
  4486. // implements Message ----------------------------------------------
  4487. Target_QueryTarget* New(::google::protobuf::Arena* arena = nullptr) const final {
  4488. return CreateMaybeMessage<Target_QueryTarget>(arena);
  4489. }
  4490. using ::google::protobuf::Message::CopyFrom;
  4491. void CopyFrom(const Target_QueryTarget& from);
  4492. using ::google::protobuf::Message::MergeFrom;
  4493. void MergeFrom( const Target_QueryTarget& from) {
  4494. Target_QueryTarget::MergeImpl(*this, from);
  4495. }
  4496. private:
  4497. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  4498. public:
  4499. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4500. bool IsInitialized() const final;
  4501. ::size_t ByteSizeLong() const final;
  4502. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  4503. ::uint8_t* _InternalSerialize(
  4504. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  4505. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  4506. private:
  4507. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  4508. void SharedCtor(::google::protobuf::Arena* arena);
  4509. void SharedDtor();
  4510. void InternalSwap(Target_QueryTarget* other);
  4511. private:
  4512. friend class ::google::protobuf::internal::AnyMetadata;
  4513. static ::absl::string_view FullMessageName() {
  4514. return "google.firestore.v1.Target.QueryTarget";
  4515. }
  4516. protected:
  4517. explicit Target_QueryTarget(::google::protobuf::Arena* arena);
  4518. Target_QueryTarget(::google::protobuf::Arena* arena, const Target_QueryTarget& from);
  4519. public:
  4520. static const ClassData _class_data_;
  4521. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  4522. ::google::protobuf::Metadata GetMetadata() const final;
  4523. // nested types ----------------------------------------------------
  4524. // accessors -------------------------------------------------------
  4525. enum : int {
  4526. kParentFieldNumber = 1,
  4527. kStructuredQueryFieldNumber = 2,
  4528. };
  4529. // string parent = 1;
  4530. void clear_parent() ;
  4531. const std::string& parent() const;
  4532. template <typename Arg_ = const std::string&, typename... Args_>
  4533. void set_parent(Arg_&& arg, Args_... args);
  4534. std::string* mutable_parent();
  4535. PROTOBUF_NODISCARD std::string* release_parent();
  4536. void set_allocated_parent(std::string* value);
  4537. private:
  4538. const std::string& _internal_parent() const;
  4539. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(
  4540. const std::string& value);
  4541. std::string* _internal_mutable_parent();
  4542. public:
  4543. // .google.firestore.v1.StructuredQuery structured_query = 2;
  4544. bool has_structured_query() const;
  4545. private:
  4546. bool _internal_has_structured_query() const;
  4547. public:
  4548. void clear_structured_query() ;
  4549. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  4550. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery* release_structured_query();
  4551. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  4552. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value);
  4553. void unsafe_arena_set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value);
  4554. ::google::firestore::v1::StructuredQuery* unsafe_arena_release_structured_query();
  4555. private:
  4556. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  4557. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  4558. public:
  4559. void clear_query_type();
  4560. QueryTypeCase query_type_case() const;
  4561. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.QueryTarget)
  4562. private:
  4563. class _Internal;
  4564. void set_has_structured_query();
  4565. inline bool has_query_type() const;
  4566. inline void clear_has_query_type();
  4567. friend class ::google::protobuf::internal::TcParser;
  4568. static const ::google::protobuf::internal::TcParseTable<
  4569. 0, 2, 1,
  4570. 53, 2>
  4571. _table_;
  4572. friend class ::google::protobuf::MessageLite;
  4573. friend class ::google::protobuf::Arena;
  4574. template <typename T>
  4575. friend class ::google::protobuf::Arena::InternalHelper;
  4576. using InternalArenaConstructable_ = void;
  4577. using DestructorSkippable_ = void;
  4578. struct Impl_ {
  4579. inline explicit constexpr Impl_(
  4580. ::google::protobuf::internal::ConstantInitialized) noexcept;
  4581. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  4582. ::google::protobuf::Arena* arena);
  4583. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  4584. ::google::protobuf::Arena* arena, const Impl_& from);
  4585. ::google::protobuf::internal::ArenaStringPtr parent_;
  4586. union QueryTypeUnion {
  4587. constexpr QueryTypeUnion() : _constinit_{} {}
  4588. ::google::protobuf::internal::ConstantInitialized _constinit_;
  4589. ::google::firestore::v1::StructuredQuery* structured_query_;
  4590. } query_type_;
  4591. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4592. ::uint32_t _oneof_case_[1];
  4593. PROTOBUF_TSAN_DECLARE_MEMBER
  4594. };
  4595. union { Impl_ _impl_; };
  4596. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4597. };// -------------------------------------------------------------------
  4598. class RunQueryRequest final :
  4599. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryRequest) */ {
  4600. public:
  4601. inline RunQueryRequest() : RunQueryRequest(nullptr) {}
  4602. ~RunQueryRequest() override;
  4603. template<typename = void>
  4604. explicit PROTOBUF_CONSTEXPR RunQueryRequest(::google::protobuf::internal::ConstantInitialized);
  4605. inline RunQueryRequest(const RunQueryRequest& from)
  4606. : RunQueryRequest(nullptr, from) {}
  4607. RunQueryRequest(RunQueryRequest&& from) noexcept
  4608. : RunQueryRequest() {
  4609. *this = ::std::move(from);
  4610. }
  4611. inline RunQueryRequest& operator=(const RunQueryRequest& from) {
  4612. CopyFrom(from);
  4613. return *this;
  4614. }
  4615. inline RunQueryRequest& operator=(RunQueryRequest&& from) noexcept {
  4616. if (this == &from) return *this;
  4617. if (GetArena() == from.GetArena()
  4618. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4619. && GetArena() != nullptr
  4620. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4621. ) {
  4622. InternalSwap(&from);
  4623. } else {
  4624. CopyFrom(from);
  4625. }
  4626. return *this;
  4627. }
  4628. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  4629. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4630. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  4631. }
  4632. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  4633. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4634. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  4635. }
  4636. static const ::google::protobuf::Descriptor* descriptor() {
  4637. return GetDescriptor();
  4638. }
  4639. static const ::google::protobuf::Descriptor* GetDescriptor() {
  4640. return default_instance().GetMetadata().descriptor;
  4641. }
  4642. static const ::google::protobuf::Reflection* GetReflection() {
  4643. return default_instance().GetMetadata().reflection;
  4644. }
  4645. static const RunQueryRequest& default_instance() {
  4646. return *internal_default_instance();
  4647. }
  4648. enum QueryTypeCase {
  4649. kStructuredQuery = 2,
  4650. QUERY_TYPE_NOT_SET = 0,
  4651. };
  4652. enum ConsistencySelectorCase {
  4653. kTransaction = 5,
  4654. kNewTransaction = 6,
  4655. kReadTime = 7,
  4656. CONSISTENCY_SELECTOR_NOT_SET = 0,
  4657. };
  4658. static inline const RunQueryRequest* internal_default_instance() {
  4659. return reinterpret_cast<const RunQueryRequest*>(
  4660. &_RunQueryRequest_default_instance_);
  4661. }
  4662. static constexpr int kIndexInFileMessages =
  4663. 13;
  4664. friend void swap(RunQueryRequest& a, RunQueryRequest& b) {
  4665. a.Swap(&b);
  4666. }
  4667. inline void Swap(RunQueryRequest* other) {
  4668. if (other == this) return;
  4669. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4670. if (GetArena() != nullptr &&
  4671. GetArena() == other->GetArena()) {
  4672. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4673. if (GetArena() == other->GetArena()) {
  4674. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4675. InternalSwap(other);
  4676. } else {
  4677. ::google::protobuf::internal::GenericSwap(this, other);
  4678. }
  4679. }
  4680. void UnsafeArenaSwap(RunQueryRequest* other) {
  4681. if (other == this) return;
  4682. ABSL_DCHECK(GetArena() == other->GetArena());
  4683. InternalSwap(other);
  4684. }
  4685. // implements Message ----------------------------------------------
  4686. RunQueryRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  4687. return CreateMaybeMessage<RunQueryRequest>(arena);
  4688. }
  4689. using ::google::protobuf::Message::CopyFrom;
  4690. void CopyFrom(const RunQueryRequest& from);
  4691. using ::google::protobuf::Message::MergeFrom;
  4692. void MergeFrom( const RunQueryRequest& from) {
  4693. RunQueryRequest::MergeImpl(*this, from);
  4694. }
  4695. private:
  4696. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  4697. public:
  4698. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4699. bool IsInitialized() const final;
  4700. ::size_t ByteSizeLong() const final;
  4701. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  4702. ::uint8_t* _InternalSerialize(
  4703. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  4704. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  4705. private:
  4706. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  4707. void SharedCtor(::google::protobuf::Arena* arena);
  4708. void SharedDtor();
  4709. void InternalSwap(RunQueryRequest* other);
  4710. private:
  4711. friend class ::google::protobuf::internal::AnyMetadata;
  4712. static ::absl::string_view FullMessageName() {
  4713. return "google.firestore.v1.RunQueryRequest";
  4714. }
  4715. protected:
  4716. explicit RunQueryRequest(::google::protobuf::Arena* arena);
  4717. RunQueryRequest(::google::protobuf::Arena* arena, const RunQueryRequest& from);
  4718. public:
  4719. static const ClassData _class_data_;
  4720. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  4721. ::google::protobuf::Metadata GetMetadata() const final;
  4722. // nested types ----------------------------------------------------
  4723. // accessors -------------------------------------------------------
  4724. enum : int {
  4725. kParentFieldNumber = 1,
  4726. kStructuredQueryFieldNumber = 2,
  4727. kTransactionFieldNumber = 5,
  4728. kNewTransactionFieldNumber = 6,
  4729. kReadTimeFieldNumber = 7,
  4730. };
  4731. // string parent = 1;
  4732. void clear_parent() ;
  4733. const std::string& parent() const;
  4734. template <typename Arg_ = const std::string&, typename... Args_>
  4735. void set_parent(Arg_&& arg, Args_... args);
  4736. std::string* mutable_parent();
  4737. PROTOBUF_NODISCARD std::string* release_parent();
  4738. void set_allocated_parent(std::string* value);
  4739. private:
  4740. const std::string& _internal_parent() const;
  4741. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(
  4742. const std::string& value);
  4743. std::string* _internal_mutable_parent();
  4744. public:
  4745. // .google.firestore.v1.StructuredQuery structured_query = 2;
  4746. bool has_structured_query() const;
  4747. private:
  4748. bool _internal_has_structured_query() const;
  4749. public:
  4750. void clear_structured_query() ;
  4751. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  4752. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery* release_structured_query();
  4753. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  4754. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value);
  4755. void unsafe_arena_set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value);
  4756. ::google::firestore::v1::StructuredQuery* unsafe_arena_release_structured_query();
  4757. private:
  4758. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  4759. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  4760. public:
  4761. // bytes transaction = 5;
  4762. bool has_transaction() const;
  4763. void clear_transaction() ;
  4764. const std::string& transaction() const;
  4765. template <typename Arg_ = const std::string&, typename... Args_>
  4766. void set_transaction(Arg_&& arg, Args_... args);
  4767. std::string* mutable_transaction();
  4768. PROTOBUF_NODISCARD std::string* release_transaction();
  4769. void set_allocated_transaction(std::string* value);
  4770. private:
  4771. const std::string& _internal_transaction() const;
  4772. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  4773. const std::string& value);
  4774. std::string* _internal_mutable_transaction();
  4775. public:
  4776. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  4777. bool has_new_transaction() const;
  4778. private:
  4779. bool _internal_has_new_transaction() const;
  4780. public:
  4781. void clear_new_transaction() ;
  4782. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  4783. PROTOBUF_NODISCARD ::google::firestore::v1::TransactionOptions* release_new_transaction();
  4784. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  4785. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value);
  4786. void unsafe_arena_set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value);
  4787. ::google::firestore::v1::TransactionOptions* unsafe_arena_release_new_transaction();
  4788. private:
  4789. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  4790. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  4791. public:
  4792. // .google.protobuf.Timestamp read_time = 7;
  4793. bool has_read_time() const;
  4794. private:
  4795. bool _internal_has_read_time() const;
  4796. public:
  4797. void clear_read_time() ;
  4798. const ::google::protobuf::Timestamp& read_time() const;
  4799. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  4800. ::google::protobuf::Timestamp* mutable_read_time();
  4801. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  4802. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  4803. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  4804. private:
  4805. const ::google::protobuf::Timestamp& _internal_read_time() const;
  4806. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  4807. public:
  4808. void clear_query_type();
  4809. QueryTypeCase query_type_case() const;
  4810. void clear_consistency_selector();
  4811. ConsistencySelectorCase consistency_selector_case() const;
  4812. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryRequest)
  4813. private:
  4814. class _Internal;
  4815. void set_has_structured_query();
  4816. void set_has_transaction();
  4817. void set_has_new_transaction();
  4818. void set_has_read_time();
  4819. inline bool has_query_type() const;
  4820. inline void clear_has_query_type();
  4821. inline bool has_consistency_selector() const;
  4822. inline void clear_has_consistency_selector();
  4823. friend class ::google::protobuf::internal::TcParser;
  4824. static const ::google::protobuf::internal::TcParseTable<
  4825. 0, 5, 3,
  4826. 50, 2>
  4827. _table_;
  4828. friend class ::google::protobuf::MessageLite;
  4829. friend class ::google::protobuf::Arena;
  4830. template <typename T>
  4831. friend class ::google::protobuf::Arena::InternalHelper;
  4832. using InternalArenaConstructable_ = void;
  4833. using DestructorSkippable_ = void;
  4834. struct Impl_ {
  4835. inline explicit constexpr Impl_(
  4836. ::google::protobuf::internal::ConstantInitialized) noexcept;
  4837. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  4838. ::google::protobuf::Arena* arena);
  4839. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  4840. ::google::protobuf::Arena* arena, const Impl_& from);
  4841. ::google::protobuf::internal::ArenaStringPtr parent_;
  4842. union QueryTypeUnion {
  4843. constexpr QueryTypeUnion() : _constinit_{} {}
  4844. ::google::protobuf::internal::ConstantInitialized _constinit_;
  4845. ::google::firestore::v1::StructuredQuery* structured_query_;
  4846. } query_type_;
  4847. union ConsistencySelectorUnion {
  4848. constexpr ConsistencySelectorUnion() : _constinit_{} {}
  4849. ::google::protobuf::internal::ConstantInitialized _constinit_;
  4850. ::google::protobuf::internal::ArenaStringPtr transaction_;
  4851. ::google::firestore::v1::TransactionOptions* new_transaction_;
  4852. ::google::protobuf::Timestamp* read_time_;
  4853. } consistency_selector_;
  4854. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4855. ::uint32_t _oneof_case_[2];
  4856. PROTOBUF_TSAN_DECLARE_MEMBER
  4857. };
  4858. union { Impl_ _impl_; };
  4859. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4860. };// -------------------------------------------------------------------
  4861. class ListenResponse final :
  4862. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenResponse) */ {
  4863. public:
  4864. inline ListenResponse() : ListenResponse(nullptr) {}
  4865. ~ListenResponse() override;
  4866. template<typename = void>
  4867. explicit PROTOBUF_CONSTEXPR ListenResponse(::google::protobuf::internal::ConstantInitialized);
  4868. inline ListenResponse(const ListenResponse& from)
  4869. : ListenResponse(nullptr, from) {}
  4870. ListenResponse(ListenResponse&& from) noexcept
  4871. : ListenResponse() {
  4872. *this = ::std::move(from);
  4873. }
  4874. inline ListenResponse& operator=(const ListenResponse& from) {
  4875. CopyFrom(from);
  4876. return *this;
  4877. }
  4878. inline ListenResponse& operator=(ListenResponse&& from) noexcept {
  4879. if (this == &from) return *this;
  4880. if (GetArena() == from.GetArena()
  4881. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4882. && GetArena() != nullptr
  4883. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4884. ) {
  4885. InternalSwap(&from);
  4886. } else {
  4887. CopyFrom(from);
  4888. }
  4889. return *this;
  4890. }
  4891. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  4892. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4893. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  4894. }
  4895. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  4896. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4897. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  4898. }
  4899. static const ::google::protobuf::Descriptor* descriptor() {
  4900. return GetDescriptor();
  4901. }
  4902. static const ::google::protobuf::Descriptor* GetDescriptor() {
  4903. return default_instance().GetMetadata().descriptor;
  4904. }
  4905. static const ::google::protobuf::Reflection* GetReflection() {
  4906. return default_instance().GetMetadata().reflection;
  4907. }
  4908. static const ListenResponse& default_instance() {
  4909. return *internal_default_instance();
  4910. }
  4911. enum ResponseTypeCase {
  4912. kTargetChange = 2,
  4913. kDocumentChange = 3,
  4914. kDocumentDelete = 4,
  4915. kDocumentRemove = 6,
  4916. kFilter = 5,
  4917. RESPONSE_TYPE_NOT_SET = 0,
  4918. };
  4919. static inline const ListenResponse* internal_default_instance() {
  4920. return reinterpret_cast<const ListenResponse*>(
  4921. &_ListenResponse_default_instance_);
  4922. }
  4923. static constexpr int kIndexInFileMessages =
  4924. 22;
  4925. friend void swap(ListenResponse& a, ListenResponse& b) {
  4926. a.Swap(&b);
  4927. }
  4928. inline void Swap(ListenResponse* other) {
  4929. if (other == this) return;
  4930. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4931. if (GetArena() != nullptr &&
  4932. GetArena() == other->GetArena()) {
  4933. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4934. if (GetArena() == other->GetArena()) {
  4935. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4936. InternalSwap(other);
  4937. } else {
  4938. ::google::protobuf::internal::GenericSwap(this, other);
  4939. }
  4940. }
  4941. void UnsafeArenaSwap(ListenResponse* other) {
  4942. if (other == this) return;
  4943. ABSL_DCHECK(GetArena() == other->GetArena());
  4944. InternalSwap(other);
  4945. }
  4946. // implements Message ----------------------------------------------
  4947. ListenResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  4948. return CreateMaybeMessage<ListenResponse>(arena);
  4949. }
  4950. using ::google::protobuf::Message::CopyFrom;
  4951. void CopyFrom(const ListenResponse& from);
  4952. using ::google::protobuf::Message::MergeFrom;
  4953. void MergeFrom( const ListenResponse& from) {
  4954. ListenResponse::MergeImpl(*this, from);
  4955. }
  4956. private:
  4957. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  4958. public:
  4959. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4960. bool IsInitialized() const final;
  4961. ::size_t ByteSizeLong() const final;
  4962. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  4963. ::uint8_t* _InternalSerialize(
  4964. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  4965. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  4966. private:
  4967. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  4968. void SharedCtor(::google::protobuf::Arena* arena);
  4969. void SharedDtor();
  4970. void InternalSwap(ListenResponse* other);
  4971. private:
  4972. friend class ::google::protobuf::internal::AnyMetadata;
  4973. static ::absl::string_view FullMessageName() {
  4974. return "google.firestore.v1.ListenResponse";
  4975. }
  4976. protected:
  4977. explicit ListenResponse(::google::protobuf::Arena* arena);
  4978. ListenResponse(::google::protobuf::Arena* arena, const ListenResponse& from);
  4979. public:
  4980. static const ClassData _class_data_;
  4981. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  4982. ::google::protobuf::Metadata GetMetadata() const final;
  4983. // nested types ----------------------------------------------------
  4984. // accessors -------------------------------------------------------
  4985. enum : int {
  4986. kTargetChangeFieldNumber = 2,
  4987. kDocumentChangeFieldNumber = 3,
  4988. kDocumentDeleteFieldNumber = 4,
  4989. kDocumentRemoveFieldNumber = 6,
  4990. kFilterFieldNumber = 5,
  4991. };
  4992. // .google.firestore.v1.TargetChange target_change = 2;
  4993. bool has_target_change() const;
  4994. private:
  4995. bool _internal_has_target_change() const;
  4996. public:
  4997. void clear_target_change() ;
  4998. const ::google::firestore::v1::TargetChange& target_change() const;
  4999. PROTOBUF_NODISCARD ::google::firestore::v1::TargetChange* release_target_change();
  5000. ::google::firestore::v1::TargetChange* mutable_target_change();
  5001. void set_allocated_target_change(::google::firestore::v1::TargetChange* value);
  5002. void unsafe_arena_set_allocated_target_change(::google::firestore::v1::TargetChange* value);
  5003. ::google::firestore::v1::TargetChange* unsafe_arena_release_target_change();
  5004. private:
  5005. const ::google::firestore::v1::TargetChange& _internal_target_change() const;
  5006. ::google::firestore::v1::TargetChange* _internal_mutable_target_change();
  5007. public:
  5008. // .google.firestore.v1.DocumentChange document_change = 3;
  5009. bool has_document_change() const;
  5010. private:
  5011. bool _internal_has_document_change() const;
  5012. public:
  5013. void clear_document_change() ;
  5014. const ::google::firestore::v1::DocumentChange& document_change() const;
  5015. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentChange* release_document_change();
  5016. ::google::firestore::v1::DocumentChange* mutable_document_change();
  5017. void set_allocated_document_change(::google::firestore::v1::DocumentChange* value);
  5018. void unsafe_arena_set_allocated_document_change(::google::firestore::v1::DocumentChange* value);
  5019. ::google::firestore::v1::DocumentChange* unsafe_arena_release_document_change();
  5020. private:
  5021. const ::google::firestore::v1::DocumentChange& _internal_document_change() const;
  5022. ::google::firestore::v1::DocumentChange* _internal_mutable_document_change();
  5023. public:
  5024. // .google.firestore.v1.DocumentDelete document_delete = 4;
  5025. bool has_document_delete() const;
  5026. private:
  5027. bool _internal_has_document_delete() const;
  5028. public:
  5029. void clear_document_delete() ;
  5030. const ::google::firestore::v1::DocumentDelete& document_delete() const;
  5031. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentDelete* release_document_delete();
  5032. ::google::firestore::v1::DocumentDelete* mutable_document_delete();
  5033. void set_allocated_document_delete(::google::firestore::v1::DocumentDelete* value);
  5034. void unsafe_arena_set_allocated_document_delete(::google::firestore::v1::DocumentDelete* value);
  5035. ::google::firestore::v1::DocumentDelete* unsafe_arena_release_document_delete();
  5036. private:
  5037. const ::google::firestore::v1::DocumentDelete& _internal_document_delete() const;
  5038. ::google::firestore::v1::DocumentDelete* _internal_mutable_document_delete();
  5039. public:
  5040. // .google.firestore.v1.DocumentRemove document_remove = 6;
  5041. bool has_document_remove() const;
  5042. private:
  5043. bool _internal_has_document_remove() const;
  5044. public:
  5045. void clear_document_remove() ;
  5046. const ::google::firestore::v1::DocumentRemove& document_remove() const;
  5047. PROTOBUF_NODISCARD ::google::firestore::v1::DocumentRemove* release_document_remove();
  5048. ::google::firestore::v1::DocumentRemove* mutable_document_remove();
  5049. void set_allocated_document_remove(::google::firestore::v1::DocumentRemove* value);
  5050. void unsafe_arena_set_allocated_document_remove(::google::firestore::v1::DocumentRemove* value);
  5051. ::google::firestore::v1::DocumentRemove* unsafe_arena_release_document_remove();
  5052. private:
  5053. const ::google::firestore::v1::DocumentRemove& _internal_document_remove() const;
  5054. ::google::firestore::v1::DocumentRemove* _internal_mutable_document_remove();
  5055. public:
  5056. // .google.firestore.v1.ExistenceFilter filter = 5;
  5057. bool has_filter() const;
  5058. private:
  5059. bool _internal_has_filter() const;
  5060. public:
  5061. void clear_filter() ;
  5062. const ::google::firestore::v1::ExistenceFilter& filter() const;
  5063. PROTOBUF_NODISCARD ::google::firestore::v1::ExistenceFilter* release_filter();
  5064. ::google::firestore::v1::ExistenceFilter* mutable_filter();
  5065. void set_allocated_filter(::google::firestore::v1::ExistenceFilter* value);
  5066. void unsafe_arena_set_allocated_filter(::google::firestore::v1::ExistenceFilter* value);
  5067. ::google::firestore::v1::ExistenceFilter* unsafe_arena_release_filter();
  5068. private:
  5069. const ::google::firestore::v1::ExistenceFilter& _internal_filter() const;
  5070. ::google::firestore::v1::ExistenceFilter* _internal_mutable_filter();
  5071. public:
  5072. void clear_response_type();
  5073. ResponseTypeCase response_type_case() const;
  5074. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenResponse)
  5075. private:
  5076. class _Internal;
  5077. void set_has_target_change();
  5078. void set_has_document_change();
  5079. void set_has_document_delete();
  5080. void set_has_document_remove();
  5081. void set_has_filter();
  5082. inline bool has_response_type() const;
  5083. inline void clear_has_response_type();
  5084. friend class ::google::protobuf::internal::TcParser;
  5085. static const ::google::protobuf::internal::TcParseTable<
  5086. 0, 5, 5,
  5087. 0, 2>
  5088. _table_;
  5089. friend class ::google::protobuf::MessageLite;
  5090. friend class ::google::protobuf::Arena;
  5091. template <typename T>
  5092. friend class ::google::protobuf::Arena::InternalHelper;
  5093. using InternalArenaConstructable_ = void;
  5094. using DestructorSkippable_ = void;
  5095. struct Impl_ {
  5096. inline explicit constexpr Impl_(
  5097. ::google::protobuf::internal::ConstantInitialized) noexcept;
  5098. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  5099. ::google::protobuf::Arena* arena);
  5100. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  5101. ::google::protobuf::Arena* arena, const Impl_& from);
  5102. union ResponseTypeUnion {
  5103. constexpr ResponseTypeUnion() : _constinit_{} {}
  5104. ::google::protobuf::internal::ConstantInitialized _constinit_;
  5105. ::google::firestore::v1::TargetChange* target_change_;
  5106. ::google::firestore::v1::DocumentChange* document_change_;
  5107. ::google::firestore::v1::DocumentDelete* document_delete_;
  5108. ::google::firestore::v1::DocumentRemove* document_remove_;
  5109. ::google::firestore::v1::ExistenceFilter* filter_;
  5110. } response_type_;
  5111. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5112. ::uint32_t _oneof_case_[1];
  5113. PROTOBUF_TSAN_DECLARE_MEMBER
  5114. };
  5115. union { Impl_ _impl_; };
  5116. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  5117. };// -------------------------------------------------------------------
  5118. class CommitRequest final :
  5119. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitRequest) */ {
  5120. public:
  5121. inline CommitRequest() : CommitRequest(nullptr) {}
  5122. ~CommitRequest() override;
  5123. template<typename = void>
  5124. explicit PROTOBUF_CONSTEXPR CommitRequest(::google::protobuf::internal::ConstantInitialized);
  5125. inline CommitRequest(const CommitRequest& from)
  5126. : CommitRequest(nullptr, from) {}
  5127. CommitRequest(CommitRequest&& from) noexcept
  5128. : CommitRequest() {
  5129. *this = ::std::move(from);
  5130. }
  5131. inline CommitRequest& operator=(const CommitRequest& from) {
  5132. CopyFrom(from);
  5133. return *this;
  5134. }
  5135. inline CommitRequest& operator=(CommitRequest&& from) noexcept {
  5136. if (this == &from) return *this;
  5137. if (GetArena() == from.GetArena()
  5138. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5139. && GetArena() != nullptr
  5140. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5141. ) {
  5142. InternalSwap(&from);
  5143. } else {
  5144. CopyFrom(from);
  5145. }
  5146. return *this;
  5147. }
  5148. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  5149. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5150. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  5151. }
  5152. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  5153. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5154. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  5155. }
  5156. static const ::google::protobuf::Descriptor* descriptor() {
  5157. return GetDescriptor();
  5158. }
  5159. static const ::google::protobuf::Descriptor* GetDescriptor() {
  5160. return default_instance().GetMetadata().descriptor;
  5161. }
  5162. static const ::google::protobuf::Reflection* GetReflection() {
  5163. return default_instance().GetMetadata().reflection;
  5164. }
  5165. static const CommitRequest& default_instance() {
  5166. return *internal_default_instance();
  5167. }
  5168. static inline const CommitRequest* internal_default_instance() {
  5169. return reinterpret_cast<const CommitRequest*>(
  5170. &_CommitRequest_default_instance_);
  5171. }
  5172. static constexpr int kIndexInFileMessages =
  5173. 10;
  5174. friend void swap(CommitRequest& a, CommitRequest& b) {
  5175. a.Swap(&b);
  5176. }
  5177. inline void Swap(CommitRequest* other) {
  5178. if (other == this) return;
  5179. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5180. if (GetArena() != nullptr &&
  5181. GetArena() == other->GetArena()) {
  5182. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5183. if (GetArena() == other->GetArena()) {
  5184. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5185. InternalSwap(other);
  5186. } else {
  5187. ::google::protobuf::internal::GenericSwap(this, other);
  5188. }
  5189. }
  5190. void UnsafeArenaSwap(CommitRequest* other) {
  5191. if (other == this) return;
  5192. ABSL_DCHECK(GetArena() == other->GetArena());
  5193. InternalSwap(other);
  5194. }
  5195. // implements Message ----------------------------------------------
  5196. CommitRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  5197. return CreateMaybeMessage<CommitRequest>(arena);
  5198. }
  5199. using ::google::protobuf::Message::CopyFrom;
  5200. void CopyFrom(const CommitRequest& from);
  5201. using ::google::protobuf::Message::MergeFrom;
  5202. void MergeFrom( const CommitRequest& from) {
  5203. CommitRequest::MergeImpl(*this, from);
  5204. }
  5205. private:
  5206. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  5207. public:
  5208. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5209. bool IsInitialized() const final;
  5210. ::size_t ByteSizeLong() const final;
  5211. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  5212. ::uint8_t* _InternalSerialize(
  5213. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  5214. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  5215. private:
  5216. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  5217. void SharedCtor(::google::protobuf::Arena* arena);
  5218. void SharedDtor();
  5219. void InternalSwap(CommitRequest* other);
  5220. private:
  5221. friend class ::google::protobuf::internal::AnyMetadata;
  5222. static ::absl::string_view FullMessageName() {
  5223. return "google.firestore.v1.CommitRequest";
  5224. }
  5225. protected:
  5226. explicit CommitRequest(::google::protobuf::Arena* arena);
  5227. CommitRequest(::google::protobuf::Arena* arena, const CommitRequest& from);
  5228. public:
  5229. static const ClassData _class_data_;
  5230. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  5231. ::google::protobuf::Metadata GetMetadata() const final;
  5232. // nested types ----------------------------------------------------
  5233. // accessors -------------------------------------------------------
  5234. enum : int {
  5235. kWritesFieldNumber = 2,
  5236. kDatabaseFieldNumber = 1,
  5237. kTransactionFieldNumber = 3,
  5238. };
  5239. // repeated .google.firestore.v1.Write writes = 2;
  5240. int writes_size() const;
  5241. private:
  5242. int _internal_writes_size() const;
  5243. public:
  5244. void clear_writes() ;
  5245. ::google::firestore::v1::Write* mutable_writes(int index);
  5246. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write >*
  5247. mutable_writes();
  5248. private:
  5249. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>& _internal_writes() const;
  5250. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>* _internal_mutable_writes();
  5251. public:
  5252. const ::google::firestore::v1::Write& writes(int index) const;
  5253. ::google::firestore::v1::Write* add_writes();
  5254. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write >&
  5255. writes() const;
  5256. // string database = 1;
  5257. void clear_database() ;
  5258. const std::string& database() const;
  5259. template <typename Arg_ = const std::string&, typename... Args_>
  5260. void set_database(Arg_&& arg, Args_... args);
  5261. std::string* mutable_database();
  5262. PROTOBUF_NODISCARD std::string* release_database();
  5263. void set_allocated_database(std::string* value);
  5264. private:
  5265. const std::string& _internal_database() const;
  5266. inline PROTOBUF_ALWAYS_INLINE void _internal_set_database(
  5267. const std::string& value);
  5268. std::string* _internal_mutable_database();
  5269. public:
  5270. // bytes transaction = 3;
  5271. void clear_transaction() ;
  5272. const std::string& transaction() const;
  5273. template <typename Arg_ = const std::string&, typename... Args_>
  5274. void set_transaction(Arg_&& arg, Args_... args);
  5275. std::string* mutable_transaction();
  5276. PROTOBUF_NODISCARD std::string* release_transaction();
  5277. void set_allocated_transaction(std::string* value);
  5278. private:
  5279. const std::string& _internal_transaction() const;
  5280. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  5281. const std::string& value);
  5282. std::string* _internal_mutable_transaction();
  5283. public:
  5284. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitRequest)
  5285. private:
  5286. class _Internal;
  5287. friend class ::google::protobuf::internal::TcParser;
  5288. static const ::google::protobuf::internal::TcParseTable<
  5289. 2, 3, 1,
  5290. 50, 2>
  5291. _table_;
  5292. friend class ::google::protobuf::MessageLite;
  5293. friend class ::google::protobuf::Arena;
  5294. template <typename T>
  5295. friend class ::google::protobuf::Arena::InternalHelper;
  5296. using InternalArenaConstructable_ = void;
  5297. using DestructorSkippable_ = void;
  5298. struct Impl_ {
  5299. inline explicit constexpr Impl_(
  5300. ::google::protobuf::internal::ConstantInitialized) noexcept;
  5301. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  5302. ::google::protobuf::Arena* arena);
  5303. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  5304. ::google::protobuf::Arena* arena, const Impl_& from);
  5305. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  5306. ::google::protobuf::internal::ArenaStringPtr database_;
  5307. ::google::protobuf::internal::ArenaStringPtr transaction_;
  5308. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5309. PROTOBUF_TSAN_DECLARE_MEMBER
  5310. };
  5311. union { Impl_ _impl_; };
  5312. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  5313. };// -------------------------------------------------------------------
  5314. class Target final :
  5315. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target) */ {
  5316. public:
  5317. inline Target() : Target(nullptr) {}
  5318. ~Target() override;
  5319. template<typename = void>
  5320. explicit PROTOBUF_CONSTEXPR Target(::google::protobuf::internal::ConstantInitialized);
  5321. inline Target(const Target& from)
  5322. : Target(nullptr, from) {}
  5323. Target(Target&& from) noexcept
  5324. : Target() {
  5325. *this = ::std::move(from);
  5326. }
  5327. inline Target& operator=(const Target& from) {
  5328. CopyFrom(from);
  5329. return *this;
  5330. }
  5331. inline Target& operator=(Target&& from) noexcept {
  5332. if (this == &from) return *this;
  5333. if (GetArena() == from.GetArena()
  5334. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5335. && GetArena() != nullptr
  5336. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5337. ) {
  5338. InternalSwap(&from);
  5339. } else {
  5340. CopyFrom(from);
  5341. }
  5342. return *this;
  5343. }
  5344. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  5345. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5346. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  5347. }
  5348. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  5349. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5350. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  5351. }
  5352. static const ::google::protobuf::Descriptor* descriptor() {
  5353. return GetDescriptor();
  5354. }
  5355. static const ::google::protobuf::Descriptor* GetDescriptor() {
  5356. return default_instance().GetMetadata().descriptor;
  5357. }
  5358. static const ::google::protobuf::Reflection* GetReflection() {
  5359. return default_instance().GetMetadata().reflection;
  5360. }
  5361. static const Target& default_instance() {
  5362. return *internal_default_instance();
  5363. }
  5364. enum TargetTypeCase {
  5365. kQuery = 2,
  5366. kDocuments = 3,
  5367. TARGET_TYPE_NOT_SET = 0,
  5368. };
  5369. enum ResumeTypeCase {
  5370. kResumeToken = 4,
  5371. kReadTime = 11,
  5372. RESUME_TYPE_NOT_SET = 0,
  5373. };
  5374. static inline const Target* internal_default_instance() {
  5375. return reinterpret_cast<const Target*>(
  5376. &_Target_default_instance_);
  5377. }
  5378. static constexpr int kIndexInFileMessages =
  5379. 25;
  5380. friend void swap(Target& a, Target& b) {
  5381. a.Swap(&b);
  5382. }
  5383. inline void Swap(Target* other) {
  5384. if (other == this) return;
  5385. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5386. if (GetArena() != nullptr &&
  5387. GetArena() == other->GetArena()) {
  5388. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5389. if (GetArena() == other->GetArena()) {
  5390. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5391. InternalSwap(other);
  5392. } else {
  5393. ::google::protobuf::internal::GenericSwap(this, other);
  5394. }
  5395. }
  5396. void UnsafeArenaSwap(Target* other) {
  5397. if (other == this) return;
  5398. ABSL_DCHECK(GetArena() == other->GetArena());
  5399. InternalSwap(other);
  5400. }
  5401. // implements Message ----------------------------------------------
  5402. Target* New(::google::protobuf::Arena* arena = nullptr) const final {
  5403. return CreateMaybeMessage<Target>(arena);
  5404. }
  5405. using ::google::protobuf::Message::CopyFrom;
  5406. void CopyFrom(const Target& from);
  5407. using ::google::protobuf::Message::MergeFrom;
  5408. void MergeFrom( const Target& from) {
  5409. Target::MergeImpl(*this, from);
  5410. }
  5411. private:
  5412. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  5413. public:
  5414. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5415. bool IsInitialized() const final;
  5416. ::size_t ByteSizeLong() const final;
  5417. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  5418. ::uint8_t* _InternalSerialize(
  5419. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  5420. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  5421. private:
  5422. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  5423. void SharedCtor(::google::protobuf::Arena* arena);
  5424. void SharedDtor();
  5425. void InternalSwap(Target* other);
  5426. private:
  5427. friend class ::google::protobuf::internal::AnyMetadata;
  5428. static ::absl::string_view FullMessageName() {
  5429. return "google.firestore.v1.Target";
  5430. }
  5431. protected:
  5432. explicit Target(::google::protobuf::Arena* arena);
  5433. Target(::google::protobuf::Arena* arena, const Target& from);
  5434. public:
  5435. static const ClassData _class_data_;
  5436. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  5437. ::google::protobuf::Metadata GetMetadata() const final;
  5438. // nested types ----------------------------------------------------
  5439. using DocumentsTarget = Target_DocumentsTarget;
  5440. using QueryTarget = Target_QueryTarget;
  5441. // accessors -------------------------------------------------------
  5442. enum : int {
  5443. kExpectedCountFieldNumber = 12,
  5444. kTargetIdFieldNumber = 5,
  5445. kOnceFieldNumber = 6,
  5446. kQueryFieldNumber = 2,
  5447. kDocumentsFieldNumber = 3,
  5448. kResumeTokenFieldNumber = 4,
  5449. kReadTimeFieldNumber = 11,
  5450. };
  5451. // .google.protobuf.Int32Value expected_count = 12;
  5452. bool has_expected_count() const;
  5453. void clear_expected_count() ;
  5454. const ::google::protobuf::Int32Value& expected_count() const;
  5455. PROTOBUF_NODISCARD ::google::protobuf::Int32Value* release_expected_count();
  5456. ::google::protobuf::Int32Value* mutable_expected_count();
  5457. void set_allocated_expected_count(::google::protobuf::Int32Value* value);
  5458. void unsafe_arena_set_allocated_expected_count(::google::protobuf::Int32Value* value);
  5459. ::google::protobuf::Int32Value* unsafe_arena_release_expected_count();
  5460. private:
  5461. const ::google::protobuf::Int32Value& _internal_expected_count() const;
  5462. ::google::protobuf::Int32Value* _internal_mutable_expected_count();
  5463. public:
  5464. // int32 target_id = 5;
  5465. void clear_target_id() ;
  5466. ::int32_t target_id() const;
  5467. void set_target_id(::int32_t value);
  5468. private:
  5469. ::int32_t _internal_target_id() const;
  5470. void _internal_set_target_id(::int32_t value);
  5471. public:
  5472. // bool once = 6;
  5473. void clear_once() ;
  5474. bool once() const;
  5475. void set_once(bool value);
  5476. private:
  5477. bool _internal_once() const;
  5478. void _internal_set_once(bool value);
  5479. public:
  5480. // .google.firestore.v1.Target.QueryTarget query = 2;
  5481. bool has_query() const;
  5482. private:
  5483. bool _internal_has_query() const;
  5484. public:
  5485. void clear_query() ;
  5486. const ::google::firestore::v1::Target_QueryTarget& query() const;
  5487. PROTOBUF_NODISCARD ::google::firestore::v1::Target_QueryTarget* release_query();
  5488. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  5489. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* value);
  5490. void unsafe_arena_set_allocated_query(::google::firestore::v1::Target_QueryTarget* value);
  5491. ::google::firestore::v1::Target_QueryTarget* unsafe_arena_release_query();
  5492. private:
  5493. const ::google::firestore::v1::Target_QueryTarget& _internal_query() const;
  5494. ::google::firestore::v1::Target_QueryTarget* _internal_mutable_query();
  5495. public:
  5496. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  5497. bool has_documents() const;
  5498. private:
  5499. bool _internal_has_documents() const;
  5500. public:
  5501. void clear_documents() ;
  5502. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  5503. PROTOBUF_NODISCARD ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  5504. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  5505. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value);
  5506. void unsafe_arena_set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value);
  5507. ::google::firestore::v1::Target_DocumentsTarget* unsafe_arena_release_documents();
  5508. private:
  5509. const ::google::firestore::v1::Target_DocumentsTarget& _internal_documents() const;
  5510. ::google::firestore::v1::Target_DocumentsTarget* _internal_mutable_documents();
  5511. public:
  5512. // bytes resume_token = 4;
  5513. bool has_resume_token() const;
  5514. void clear_resume_token() ;
  5515. const std::string& resume_token() const;
  5516. template <typename Arg_ = const std::string&, typename... Args_>
  5517. void set_resume_token(Arg_&& arg, Args_... args);
  5518. std::string* mutable_resume_token();
  5519. PROTOBUF_NODISCARD std::string* release_resume_token();
  5520. void set_allocated_resume_token(std::string* value);
  5521. private:
  5522. const std::string& _internal_resume_token() const;
  5523. inline PROTOBUF_ALWAYS_INLINE void _internal_set_resume_token(
  5524. const std::string& value);
  5525. std::string* _internal_mutable_resume_token();
  5526. public:
  5527. // .google.protobuf.Timestamp read_time = 11;
  5528. bool has_read_time() const;
  5529. private:
  5530. bool _internal_has_read_time() const;
  5531. public:
  5532. void clear_read_time() ;
  5533. const ::google::protobuf::Timestamp& read_time() const;
  5534. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  5535. ::google::protobuf::Timestamp* mutable_read_time();
  5536. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  5537. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  5538. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  5539. private:
  5540. const ::google::protobuf::Timestamp& _internal_read_time() const;
  5541. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  5542. public:
  5543. void clear_target_type();
  5544. TargetTypeCase target_type_case() const;
  5545. void clear_resume_type();
  5546. ResumeTypeCase resume_type_case() const;
  5547. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target)
  5548. private:
  5549. class _Internal;
  5550. void set_has_query();
  5551. void set_has_documents();
  5552. void set_has_resume_token();
  5553. void set_has_read_time();
  5554. inline bool has_target_type() const;
  5555. inline void clear_has_target_type();
  5556. inline bool has_resume_type() const;
  5557. inline void clear_has_resume_type();
  5558. friend class ::google::protobuf::internal::TcParser;
  5559. static const ::google::protobuf::internal::TcParseTable<
  5560. 2, 7, 4,
  5561. 0, 2>
  5562. _table_;
  5563. friend class ::google::protobuf::MessageLite;
  5564. friend class ::google::protobuf::Arena;
  5565. template <typename T>
  5566. friend class ::google::protobuf::Arena::InternalHelper;
  5567. using InternalArenaConstructable_ = void;
  5568. using DestructorSkippable_ = void;
  5569. struct Impl_ {
  5570. inline explicit constexpr Impl_(
  5571. ::google::protobuf::internal::ConstantInitialized) noexcept;
  5572. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  5573. ::google::protobuf::Arena* arena);
  5574. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  5575. ::google::protobuf::Arena* arena, const Impl_& from);
  5576. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5577. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5578. ::google::protobuf::Int32Value* expected_count_;
  5579. ::int32_t target_id_;
  5580. bool once_;
  5581. union TargetTypeUnion {
  5582. constexpr TargetTypeUnion() : _constinit_{} {}
  5583. ::google::protobuf::internal::ConstantInitialized _constinit_;
  5584. ::google::firestore::v1::Target_QueryTarget* query_;
  5585. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  5586. } target_type_;
  5587. union ResumeTypeUnion {
  5588. constexpr ResumeTypeUnion() : _constinit_{} {}
  5589. ::google::protobuf::internal::ConstantInitialized _constinit_;
  5590. ::google::protobuf::internal::ArenaStringPtr resume_token_;
  5591. ::google::protobuf::Timestamp* read_time_;
  5592. } resume_type_;
  5593. ::uint32_t _oneof_case_[2];
  5594. PROTOBUF_TSAN_DECLARE_MEMBER
  5595. };
  5596. union { Impl_ _impl_; };
  5597. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  5598. };// -------------------------------------------------------------------
  5599. class RunAggregationQueryRequest final :
  5600. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunAggregationQueryRequest) */ {
  5601. public:
  5602. inline RunAggregationQueryRequest() : RunAggregationQueryRequest(nullptr) {}
  5603. ~RunAggregationQueryRequest() override;
  5604. template<typename = void>
  5605. explicit PROTOBUF_CONSTEXPR RunAggregationQueryRequest(::google::protobuf::internal::ConstantInitialized);
  5606. inline RunAggregationQueryRequest(const RunAggregationQueryRequest& from)
  5607. : RunAggregationQueryRequest(nullptr, from) {}
  5608. RunAggregationQueryRequest(RunAggregationQueryRequest&& from) noexcept
  5609. : RunAggregationQueryRequest() {
  5610. *this = ::std::move(from);
  5611. }
  5612. inline RunAggregationQueryRequest& operator=(const RunAggregationQueryRequest& from) {
  5613. CopyFrom(from);
  5614. return *this;
  5615. }
  5616. inline RunAggregationQueryRequest& operator=(RunAggregationQueryRequest&& from) noexcept {
  5617. if (this == &from) return *this;
  5618. if (GetArena() == from.GetArena()
  5619. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5620. && GetArena() != nullptr
  5621. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5622. ) {
  5623. InternalSwap(&from);
  5624. } else {
  5625. CopyFrom(from);
  5626. }
  5627. return *this;
  5628. }
  5629. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  5630. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5631. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  5632. }
  5633. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  5634. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5635. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  5636. }
  5637. static const ::google::protobuf::Descriptor* descriptor() {
  5638. return GetDescriptor();
  5639. }
  5640. static const ::google::protobuf::Descriptor* GetDescriptor() {
  5641. return default_instance().GetMetadata().descriptor;
  5642. }
  5643. static const ::google::protobuf::Reflection* GetReflection() {
  5644. return default_instance().GetMetadata().reflection;
  5645. }
  5646. static const RunAggregationQueryRequest& default_instance() {
  5647. return *internal_default_instance();
  5648. }
  5649. enum QueryTypeCase {
  5650. kStructuredAggregationQuery = 2,
  5651. QUERY_TYPE_NOT_SET = 0,
  5652. };
  5653. enum ConsistencySelectorCase {
  5654. kTransaction = 4,
  5655. kNewTransaction = 5,
  5656. kReadTime = 6,
  5657. CONSISTENCY_SELECTOR_NOT_SET = 0,
  5658. };
  5659. static inline const RunAggregationQueryRequest* internal_default_instance() {
  5660. return reinterpret_cast<const RunAggregationQueryRequest*>(
  5661. &_RunAggregationQueryRequest_default_instance_);
  5662. }
  5663. static constexpr int kIndexInFileMessages =
  5664. 15;
  5665. friend void swap(RunAggregationQueryRequest& a, RunAggregationQueryRequest& b) {
  5666. a.Swap(&b);
  5667. }
  5668. inline void Swap(RunAggregationQueryRequest* other) {
  5669. if (other == this) return;
  5670. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5671. if (GetArena() != nullptr &&
  5672. GetArena() == other->GetArena()) {
  5673. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5674. if (GetArena() == other->GetArena()) {
  5675. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5676. InternalSwap(other);
  5677. } else {
  5678. ::google::protobuf::internal::GenericSwap(this, other);
  5679. }
  5680. }
  5681. void UnsafeArenaSwap(RunAggregationQueryRequest* other) {
  5682. if (other == this) return;
  5683. ABSL_DCHECK(GetArena() == other->GetArena());
  5684. InternalSwap(other);
  5685. }
  5686. // implements Message ----------------------------------------------
  5687. RunAggregationQueryRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  5688. return CreateMaybeMessage<RunAggregationQueryRequest>(arena);
  5689. }
  5690. using ::google::protobuf::Message::CopyFrom;
  5691. void CopyFrom(const RunAggregationQueryRequest& from);
  5692. using ::google::protobuf::Message::MergeFrom;
  5693. void MergeFrom( const RunAggregationQueryRequest& from) {
  5694. RunAggregationQueryRequest::MergeImpl(*this, from);
  5695. }
  5696. private:
  5697. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  5698. public:
  5699. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5700. bool IsInitialized() const final;
  5701. ::size_t ByteSizeLong() const final;
  5702. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  5703. ::uint8_t* _InternalSerialize(
  5704. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  5705. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  5706. private:
  5707. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  5708. void SharedCtor(::google::protobuf::Arena* arena);
  5709. void SharedDtor();
  5710. void InternalSwap(RunAggregationQueryRequest* other);
  5711. private:
  5712. friend class ::google::protobuf::internal::AnyMetadata;
  5713. static ::absl::string_view FullMessageName() {
  5714. return "google.firestore.v1.RunAggregationQueryRequest";
  5715. }
  5716. protected:
  5717. explicit RunAggregationQueryRequest(::google::protobuf::Arena* arena);
  5718. RunAggregationQueryRequest(::google::protobuf::Arena* arena, const RunAggregationQueryRequest& from);
  5719. public:
  5720. static const ClassData _class_data_;
  5721. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  5722. ::google::protobuf::Metadata GetMetadata() const final;
  5723. // nested types ----------------------------------------------------
  5724. // accessors -------------------------------------------------------
  5725. enum : int {
  5726. kParentFieldNumber = 1,
  5727. kStructuredAggregationQueryFieldNumber = 2,
  5728. kTransactionFieldNumber = 4,
  5729. kNewTransactionFieldNumber = 5,
  5730. kReadTimeFieldNumber = 6,
  5731. };
  5732. // string parent = 1;
  5733. void clear_parent() ;
  5734. const std::string& parent() const;
  5735. template <typename Arg_ = const std::string&, typename... Args_>
  5736. void set_parent(Arg_&& arg, Args_... args);
  5737. std::string* mutable_parent();
  5738. PROTOBUF_NODISCARD std::string* release_parent();
  5739. void set_allocated_parent(std::string* value);
  5740. private:
  5741. const std::string& _internal_parent() const;
  5742. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(
  5743. const std::string& value);
  5744. std::string* _internal_mutable_parent();
  5745. public:
  5746. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  5747. bool has_structured_aggregation_query() const;
  5748. private:
  5749. bool _internal_has_structured_aggregation_query() const;
  5750. public:
  5751. void clear_structured_aggregation_query() ;
  5752. const ::google::firestore::v1::StructuredAggregationQuery& structured_aggregation_query() const;
  5753. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredAggregationQuery* release_structured_aggregation_query();
  5754. ::google::firestore::v1::StructuredAggregationQuery* mutable_structured_aggregation_query();
  5755. void set_allocated_structured_aggregation_query(::google::firestore::v1::StructuredAggregationQuery* value);
  5756. void unsafe_arena_set_allocated_structured_aggregation_query(::google::firestore::v1::StructuredAggregationQuery* value);
  5757. ::google::firestore::v1::StructuredAggregationQuery* unsafe_arena_release_structured_aggregation_query();
  5758. private:
  5759. const ::google::firestore::v1::StructuredAggregationQuery& _internal_structured_aggregation_query() const;
  5760. ::google::firestore::v1::StructuredAggregationQuery* _internal_mutable_structured_aggregation_query();
  5761. public:
  5762. // bytes transaction = 4;
  5763. bool has_transaction() const;
  5764. void clear_transaction() ;
  5765. const std::string& transaction() const;
  5766. template <typename Arg_ = const std::string&, typename... Args_>
  5767. void set_transaction(Arg_&& arg, Args_... args);
  5768. std::string* mutable_transaction();
  5769. PROTOBUF_NODISCARD std::string* release_transaction();
  5770. void set_allocated_transaction(std::string* value);
  5771. private:
  5772. const std::string& _internal_transaction() const;
  5773. inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction(
  5774. const std::string& value);
  5775. std::string* _internal_mutable_transaction();
  5776. public:
  5777. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  5778. bool has_new_transaction() const;
  5779. private:
  5780. bool _internal_has_new_transaction() const;
  5781. public:
  5782. void clear_new_transaction() ;
  5783. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  5784. PROTOBUF_NODISCARD ::google::firestore::v1::TransactionOptions* release_new_transaction();
  5785. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  5786. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value);
  5787. void unsafe_arena_set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value);
  5788. ::google::firestore::v1::TransactionOptions* unsafe_arena_release_new_transaction();
  5789. private:
  5790. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  5791. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  5792. public:
  5793. // .google.protobuf.Timestamp read_time = 6;
  5794. bool has_read_time() const;
  5795. private:
  5796. bool _internal_has_read_time() const;
  5797. public:
  5798. void clear_read_time() ;
  5799. const ::google::protobuf::Timestamp& read_time() const;
  5800. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  5801. ::google::protobuf::Timestamp* mutable_read_time();
  5802. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  5803. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  5804. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  5805. private:
  5806. const ::google::protobuf::Timestamp& _internal_read_time() const;
  5807. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  5808. public:
  5809. void clear_query_type();
  5810. QueryTypeCase query_type_case() const;
  5811. void clear_consistency_selector();
  5812. ConsistencySelectorCase consistency_selector_case() const;
  5813. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunAggregationQueryRequest)
  5814. private:
  5815. class _Internal;
  5816. void set_has_structured_aggregation_query();
  5817. void set_has_transaction();
  5818. void set_has_new_transaction();
  5819. void set_has_read_time();
  5820. inline bool has_query_type() const;
  5821. inline void clear_has_query_type();
  5822. inline bool has_consistency_selector() const;
  5823. inline void clear_has_consistency_selector();
  5824. friend class ::google::protobuf::internal::TcParser;
  5825. static const ::google::protobuf::internal::TcParseTable<
  5826. 0, 5, 3,
  5827. 61, 2>
  5828. _table_;
  5829. friend class ::google::protobuf::MessageLite;
  5830. friend class ::google::protobuf::Arena;
  5831. template <typename T>
  5832. friend class ::google::protobuf::Arena::InternalHelper;
  5833. using InternalArenaConstructable_ = void;
  5834. using DestructorSkippable_ = void;
  5835. struct Impl_ {
  5836. inline explicit constexpr Impl_(
  5837. ::google::protobuf::internal::ConstantInitialized) noexcept;
  5838. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  5839. ::google::protobuf::Arena* arena);
  5840. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  5841. ::google::protobuf::Arena* arena, const Impl_& from);
  5842. ::google::protobuf::internal::ArenaStringPtr parent_;
  5843. union QueryTypeUnion {
  5844. constexpr QueryTypeUnion() : _constinit_{} {}
  5845. ::google::protobuf::internal::ConstantInitialized _constinit_;
  5846. ::google::firestore::v1::StructuredAggregationQuery* structured_aggregation_query_;
  5847. } query_type_;
  5848. union ConsistencySelectorUnion {
  5849. constexpr ConsistencySelectorUnion() : _constinit_{} {}
  5850. ::google::protobuf::internal::ConstantInitialized _constinit_;
  5851. ::google::protobuf::internal::ArenaStringPtr transaction_;
  5852. ::google::firestore::v1::TransactionOptions* new_transaction_;
  5853. ::google::protobuf::Timestamp* read_time_;
  5854. } consistency_selector_;
  5855. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5856. ::uint32_t _oneof_case_[2];
  5857. PROTOBUF_TSAN_DECLARE_MEMBER
  5858. };
  5859. union { Impl_ _impl_; };
  5860. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  5861. };// -------------------------------------------------------------------
  5862. class ListenRequest final :
  5863. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenRequest) */ {
  5864. public:
  5865. inline ListenRequest() : ListenRequest(nullptr) {}
  5866. ~ListenRequest() override;
  5867. template<typename = void>
  5868. explicit PROTOBUF_CONSTEXPR ListenRequest(::google::protobuf::internal::ConstantInitialized);
  5869. inline ListenRequest(const ListenRequest& from)
  5870. : ListenRequest(nullptr, from) {}
  5871. ListenRequest(ListenRequest&& from) noexcept
  5872. : ListenRequest() {
  5873. *this = ::std::move(from);
  5874. }
  5875. inline ListenRequest& operator=(const ListenRequest& from) {
  5876. CopyFrom(from);
  5877. return *this;
  5878. }
  5879. inline ListenRequest& operator=(ListenRequest&& from) noexcept {
  5880. if (this == &from) return *this;
  5881. if (GetArena() == from.GetArena()
  5882. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5883. && GetArena() != nullptr
  5884. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5885. ) {
  5886. InternalSwap(&from);
  5887. } else {
  5888. CopyFrom(from);
  5889. }
  5890. return *this;
  5891. }
  5892. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  5893. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5894. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  5895. }
  5896. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  5897. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5898. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  5899. }
  5900. static const ::google::protobuf::Descriptor* descriptor() {
  5901. return GetDescriptor();
  5902. }
  5903. static const ::google::protobuf::Descriptor* GetDescriptor() {
  5904. return default_instance().GetMetadata().descriptor;
  5905. }
  5906. static const ::google::protobuf::Reflection* GetReflection() {
  5907. return default_instance().GetMetadata().reflection;
  5908. }
  5909. static const ListenRequest& default_instance() {
  5910. return *internal_default_instance();
  5911. }
  5912. enum TargetChangeCase {
  5913. kAddTarget = 2,
  5914. kRemoveTarget = 3,
  5915. TARGET_CHANGE_NOT_SET = 0,
  5916. };
  5917. static inline const ListenRequest* internal_default_instance() {
  5918. return reinterpret_cast<const ListenRequest*>(
  5919. &_ListenRequest_default_instance_);
  5920. }
  5921. static constexpr int kIndexInFileMessages =
  5922. 21;
  5923. friend void swap(ListenRequest& a, ListenRequest& b) {
  5924. a.Swap(&b);
  5925. }
  5926. inline void Swap(ListenRequest* other) {
  5927. if (other == this) return;
  5928. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5929. if (GetArena() != nullptr &&
  5930. GetArena() == other->GetArena()) {
  5931. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5932. if (GetArena() == other->GetArena()) {
  5933. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5934. InternalSwap(other);
  5935. } else {
  5936. ::google::protobuf::internal::GenericSwap(this, other);
  5937. }
  5938. }
  5939. void UnsafeArenaSwap(ListenRequest* other) {
  5940. if (other == this) return;
  5941. ABSL_DCHECK(GetArena() == other->GetArena());
  5942. InternalSwap(other);
  5943. }
  5944. // implements Message ----------------------------------------------
  5945. ListenRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  5946. return CreateMaybeMessage<ListenRequest>(arena);
  5947. }
  5948. using ::google::protobuf::Message::CopyFrom;
  5949. void CopyFrom(const ListenRequest& from);
  5950. using ::google::protobuf::Message::MergeFrom;
  5951. void MergeFrom( const ListenRequest& from) {
  5952. ListenRequest::MergeImpl(*this, from);
  5953. }
  5954. private:
  5955. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  5956. public:
  5957. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5958. bool IsInitialized() const final;
  5959. ::size_t ByteSizeLong() const final;
  5960. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  5961. ::uint8_t* _InternalSerialize(
  5962. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  5963. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  5964. private:
  5965. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  5966. void SharedCtor(::google::protobuf::Arena* arena);
  5967. void SharedDtor();
  5968. void InternalSwap(ListenRequest* other);
  5969. private:
  5970. friend class ::google::protobuf::internal::AnyMetadata;
  5971. static ::absl::string_view FullMessageName() {
  5972. return "google.firestore.v1.ListenRequest";
  5973. }
  5974. protected:
  5975. explicit ListenRequest(::google::protobuf::Arena* arena);
  5976. ListenRequest(::google::protobuf::Arena* arena, const ListenRequest& from);
  5977. public:
  5978. static const ClassData _class_data_;
  5979. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  5980. ::google::protobuf::Metadata GetMetadata() const final;
  5981. // nested types ----------------------------------------------------
  5982. // accessors -------------------------------------------------------
  5983. enum : int {
  5984. kLabelsFieldNumber = 4,
  5985. kDatabaseFieldNumber = 1,
  5986. kAddTargetFieldNumber = 2,
  5987. kRemoveTargetFieldNumber = 3,
  5988. };
  5989. // map<string, string> labels = 4;
  5990. int labels_size() const;
  5991. private:
  5992. int _internal_labels_size() const;
  5993. public:
  5994. void clear_labels() ;
  5995. const ::google::protobuf::Map<std::string, std::string>& labels() const;
  5996. ::google::protobuf::Map<std::string, std::string>* mutable_labels();
  5997. private:
  5998. const ::google::protobuf::Map<std::string, std::string>& _internal_labels() const;
  5999. ::google::protobuf::Map<std::string, std::string>* _internal_mutable_labels();
  6000. public:
  6001. // string database = 1;
  6002. void clear_database() ;
  6003. const std::string& database() const;
  6004. template <typename Arg_ = const std::string&, typename... Args_>
  6005. void set_database(Arg_&& arg, Args_... args);
  6006. std::string* mutable_database();
  6007. PROTOBUF_NODISCARD std::string* release_database();
  6008. void set_allocated_database(std::string* value);
  6009. private:
  6010. const std::string& _internal_database() const;
  6011. inline PROTOBUF_ALWAYS_INLINE void _internal_set_database(
  6012. const std::string& value);
  6013. std::string* _internal_mutable_database();
  6014. public:
  6015. // .google.firestore.v1.Target add_target = 2;
  6016. bool has_add_target() const;
  6017. private:
  6018. bool _internal_has_add_target() const;
  6019. public:
  6020. void clear_add_target() ;
  6021. const ::google::firestore::v1::Target& add_target() const;
  6022. PROTOBUF_NODISCARD ::google::firestore::v1::Target* release_add_target();
  6023. ::google::firestore::v1::Target* mutable_add_target();
  6024. void set_allocated_add_target(::google::firestore::v1::Target* value);
  6025. void unsafe_arena_set_allocated_add_target(::google::firestore::v1::Target* value);
  6026. ::google::firestore::v1::Target* unsafe_arena_release_add_target();
  6027. private:
  6028. const ::google::firestore::v1::Target& _internal_add_target() const;
  6029. ::google::firestore::v1::Target* _internal_mutable_add_target();
  6030. public:
  6031. // int32 remove_target = 3;
  6032. bool has_remove_target() const;
  6033. void clear_remove_target() ;
  6034. ::int32_t remove_target() const;
  6035. void set_remove_target(::int32_t value);
  6036. private:
  6037. ::int32_t _internal_remove_target() const;
  6038. void _internal_set_remove_target(::int32_t value);
  6039. public:
  6040. void clear_target_change();
  6041. TargetChangeCase target_change_case() const;
  6042. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenRequest)
  6043. private:
  6044. class _Internal;
  6045. void set_has_add_target();
  6046. void set_has_remove_target();
  6047. inline bool has_target_change() const;
  6048. inline void clear_has_target_change();
  6049. friend class ::google::protobuf::internal::TcParser;
  6050. static const ::google::protobuf::internal::TcParseTable<
  6051. 0, 4, 2,
  6052. 56, 2>
  6053. _table_;
  6054. friend class ::google::protobuf::MessageLite;
  6055. friend class ::google::protobuf::Arena;
  6056. template <typename T>
  6057. friend class ::google::protobuf::Arena::InternalHelper;
  6058. using InternalArenaConstructable_ = void;
  6059. using DestructorSkippable_ = void;
  6060. struct Impl_ {
  6061. inline explicit constexpr Impl_(
  6062. ::google::protobuf::internal::ConstantInitialized) noexcept;
  6063. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  6064. ::google::protobuf::Arena* arena);
  6065. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  6066. ::google::protobuf::Arena* arena, const Impl_& from);
  6067. ::google::protobuf::internal::MapField<ListenRequest_LabelsEntry_DoNotUse, std::string, std::string,
  6068. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  6069. ::google::protobuf::internal::WireFormatLite::TYPE_STRING>
  6070. labels_;
  6071. ::google::protobuf::internal::ArenaStringPtr database_;
  6072. union TargetChangeUnion {
  6073. constexpr TargetChangeUnion() : _constinit_{} {}
  6074. ::google::protobuf::internal::ConstantInitialized _constinit_;
  6075. ::google::firestore::v1::Target* add_target_;
  6076. ::int32_t remove_target_;
  6077. } target_change_;
  6078. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  6079. ::uint32_t _oneof_case_[1];
  6080. PROTOBUF_TSAN_DECLARE_MEMBER
  6081. };
  6082. union { Impl_ _impl_; };
  6083. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  6084. };
  6085. // ===================================================================
  6086. // ===================================================================
  6087. #ifdef __GNUC__
  6088. #pragma GCC diagnostic push
  6089. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  6090. #endif // __GNUC__
  6091. // -------------------------------------------------------------------
  6092. // GetDocumentRequest
  6093. // string name = 1;
  6094. inline void GetDocumentRequest::clear_name() {
  6095. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6096. _impl_.name_.ClearToEmpty();
  6097. }
  6098. inline const std::string& GetDocumentRequest::name() const
  6099. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6100. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.name)
  6101. return _internal_name();
  6102. }
  6103. template <typename Arg_, typename... Args_>
  6104. inline PROTOBUF_ALWAYS_INLINE void GetDocumentRequest::set_name(Arg_&& arg,
  6105. Args_... args) {
  6106. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6107. ;
  6108. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  6109. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.name)
  6110. }
  6111. inline std::string* GetDocumentRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6112. std::string* _s = _internal_mutable_name();
  6113. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.name)
  6114. return _s;
  6115. }
  6116. inline const std::string& GetDocumentRequest::_internal_name() const {
  6117. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6118. return _impl_.name_.Get();
  6119. }
  6120. inline void GetDocumentRequest::_internal_set_name(const std::string& value) {
  6121. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6122. ;
  6123. _impl_.name_.Set(value, GetArena());
  6124. }
  6125. inline std::string* GetDocumentRequest::_internal_mutable_name() {
  6126. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6127. ;
  6128. return _impl_.name_.Mutable( GetArena());
  6129. }
  6130. inline std::string* GetDocumentRequest::release_name() {
  6131. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6132. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.name)
  6133. return _impl_.name_.Release();
  6134. }
  6135. inline void GetDocumentRequest::set_allocated_name(std::string* value) {
  6136. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6137. _impl_.name_.SetAllocated(value, GetArena());
  6138. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6139. if (_impl_.name_.IsDefault()) {
  6140. _impl_.name_.Set("", GetArena());
  6141. }
  6142. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6143. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.name)
  6144. }
  6145. // .google.firestore.v1.DocumentMask mask = 2;
  6146. inline bool GetDocumentRequest::has_mask() const {
  6147. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  6148. PROTOBUF_ASSUME(!value || _impl_.mask_ != nullptr);
  6149. return value;
  6150. }
  6151. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::_internal_mask() const {
  6152. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6153. const ::google::firestore::v1::DocumentMask* p = _impl_.mask_;
  6154. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::DocumentMask&>(::google::firestore::v1::_DocumentMask_default_instance_);
  6155. }
  6156. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::mask() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6157. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.mask)
  6158. return _internal_mask();
  6159. }
  6160. inline void GetDocumentRequest::unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  6161. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6162. if (GetArena() == nullptr) {
  6163. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  6164. }
  6165. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  6166. if (value != nullptr) {
  6167. _impl_._has_bits_[0] |= 0x00000001u;
  6168. } else {
  6169. _impl_._has_bits_[0] &= ~0x00000001u;
  6170. }
  6171. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.GetDocumentRequest.mask)
  6172. }
  6173. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::release_mask() {
  6174. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6175. _impl_._has_bits_[0] &= ~0x00000001u;
  6176. ::google::firestore::v1::DocumentMask* released = _impl_.mask_;
  6177. _impl_.mask_ = nullptr;
  6178. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  6179. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  6180. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  6181. if (GetArena() == nullptr) {
  6182. delete old;
  6183. }
  6184. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  6185. if (GetArena() != nullptr) {
  6186. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  6187. }
  6188. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  6189. return released;
  6190. }
  6191. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::unsafe_arena_release_mask() {
  6192. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6193. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.mask)
  6194. _impl_._has_bits_[0] &= ~0x00000001u;
  6195. ::google::firestore::v1::DocumentMask* temp = _impl_.mask_;
  6196. _impl_.mask_ = nullptr;
  6197. return temp;
  6198. }
  6199. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::_internal_mutable_mask() {
  6200. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6201. _impl_._has_bits_[0] |= 0x00000001u;
  6202. if (_impl_.mask_ == nullptr) {
  6203. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArena());
  6204. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(p);
  6205. }
  6206. return _impl_.mask_;
  6207. }
  6208. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::mutable_mask() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6209. ::google::firestore::v1::DocumentMask* _msg = _internal_mutable_mask();
  6210. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.mask)
  6211. return _msg;
  6212. }
  6213. inline void GetDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  6214. ::google::protobuf::Arena* message_arena = GetArena();
  6215. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6216. if (message_arena == nullptr) {
  6217. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  6218. }
  6219. if (value != nullptr) {
  6220. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  6221. if (message_arena != submessage_arena) {
  6222. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  6223. }
  6224. _impl_._has_bits_[0] |= 0x00000001u;
  6225. } else {
  6226. _impl_._has_bits_[0] &= ~0x00000001u;
  6227. }
  6228. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  6229. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.mask)
  6230. }
  6231. // bytes transaction = 3;
  6232. inline bool GetDocumentRequest::has_transaction() const {
  6233. return consistency_selector_case() == kTransaction;
  6234. }
  6235. inline void GetDocumentRequest::set_has_transaction() {
  6236. _impl_._oneof_case_[0] = kTransaction;
  6237. }
  6238. inline void GetDocumentRequest::clear_transaction() {
  6239. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6240. if (consistency_selector_case() == kTransaction) {
  6241. _impl_.consistency_selector_.transaction_.Destroy();
  6242. clear_has_consistency_selector();
  6243. }
  6244. }
  6245. inline const std::string& GetDocumentRequest::transaction() const
  6246. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6247. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.transaction)
  6248. return _internal_transaction();
  6249. }
  6250. template <typename Arg_, typename... Args_>
  6251. inline PROTOBUF_ALWAYS_INLINE void GetDocumentRequest::set_transaction(Arg_&& arg,
  6252. Args_... args) {
  6253. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6254. if (consistency_selector_case() != kTransaction) {
  6255. clear_consistency_selector();
  6256. set_has_transaction();
  6257. _impl_.consistency_selector_.transaction_.InitDefault();
  6258. }
  6259. _impl_.consistency_selector_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  6260. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  6261. }
  6262. inline std::string* GetDocumentRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6263. std::string* _s = _internal_mutable_transaction();
  6264. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.transaction)
  6265. return _s;
  6266. }
  6267. inline const std::string& GetDocumentRequest::_internal_transaction() const {
  6268. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6269. if (consistency_selector_case() != kTransaction) {
  6270. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  6271. }
  6272. return _impl_.consistency_selector_.transaction_.Get();
  6273. }
  6274. inline void GetDocumentRequest::_internal_set_transaction(const std::string& value) {
  6275. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6276. if (consistency_selector_case() != kTransaction) {
  6277. clear_consistency_selector();
  6278. set_has_transaction();
  6279. _impl_.consistency_selector_.transaction_.InitDefault();
  6280. }
  6281. _impl_.consistency_selector_.transaction_.Set(value, GetArena());
  6282. }
  6283. inline std::string* GetDocumentRequest::_internal_mutable_transaction() {
  6284. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6285. if (consistency_selector_case() != kTransaction) {
  6286. clear_consistency_selector();
  6287. set_has_transaction();
  6288. _impl_.consistency_selector_.transaction_.InitDefault();
  6289. }
  6290. return _impl_.consistency_selector_.transaction_.Mutable( GetArena());
  6291. }
  6292. inline std::string* GetDocumentRequest::release_transaction() {
  6293. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6294. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.transaction)
  6295. if (consistency_selector_case() != kTransaction) {
  6296. return nullptr;
  6297. }
  6298. clear_has_consistency_selector();
  6299. return _impl_.consistency_selector_.transaction_.Release();
  6300. }
  6301. inline void GetDocumentRequest::set_allocated_transaction(std::string* value) {
  6302. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6303. if (has_consistency_selector()) {
  6304. clear_consistency_selector();
  6305. }
  6306. if (value != nullptr) {
  6307. set_has_transaction();
  6308. _impl_.consistency_selector_.transaction_.InitAllocated(value, GetArena());
  6309. }
  6310. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.transaction)
  6311. }
  6312. // .google.protobuf.Timestamp read_time = 5;
  6313. inline bool GetDocumentRequest::has_read_time() const {
  6314. return consistency_selector_case() == kReadTime;
  6315. }
  6316. inline bool GetDocumentRequest::_internal_has_read_time() const {
  6317. return consistency_selector_case() == kReadTime;
  6318. }
  6319. inline void GetDocumentRequest::set_has_read_time() {
  6320. _impl_._oneof_case_[0] = kReadTime;
  6321. }
  6322. inline ::google::protobuf::Timestamp* GetDocumentRequest::release_read_time() {
  6323. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.read_time)
  6324. if (consistency_selector_case() == kReadTime) {
  6325. clear_has_consistency_selector();
  6326. auto* temp = _impl_.consistency_selector_.read_time_;
  6327. if (GetArena() != nullptr) {
  6328. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  6329. }
  6330. _impl_.consistency_selector_.read_time_ = nullptr;
  6331. return temp;
  6332. } else {
  6333. return nullptr;
  6334. }
  6335. }
  6336. inline const ::google::protobuf::Timestamp& GetDocumentRequest::_internal_read_time() const {
  6337. return consistency_selector_case() == kReadTime ? *_impl_.consistency_selector_.read_time_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  6338. }
  6339. inline const ::google::protobuf::Timestamp& GetDocumentRequest::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6340. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.read_time)
  6341. return _internal_read_time();
  6342. }
  6343. inline ::google::protobuf::Timestamp* GetDocumentRequest::unsafe_arena_release_read_time() {
  6344. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.GetDocumentRequest.read_time)
  6345. if (consistency_selector_case() == kReadTime) {
  6346. clear_has_consistency_selector();
  6347. auto* temp = _impl_.consistency_selector_.read_time_;
  6348. _impl_.consistency_selector_.read_time_ = nullptr;
  6349. return temp;
  6350. } else {
  6351. return nullptr;
  6352. }
  6353. }
  6354. inline void GetDocumentRequest::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  6355. // We rely on the oneof clear method to free the earlier contents
  6356. // of this oneof. We can directly use the pointer we're given to
  6357. // set the new value.
  6358. clear_consistency_selector();
  6359. if (value) {
  6360. set_has_read_time();
  6361. _impl_.consistency_selector_.read_time_ = value;
  6362. }
  6363. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.GetDocumentRequest.read_time)
  6364. }
  6365. inline ::google::protobuf::Timestamp* GetDocumentRequest::_internal_mutable_read_time() {
  6366. if (consistency_selector_case() != kReadTime) {
  6367. clear_consistency_selector();
  6368. set_has_read_time();
  6369. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  6370. }
  6371. return _impl_.consistency_selector_.read_time_;
  6372. }
  6373. inline ::google::protobuf::Timestamp* GetDocumentRequest::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6374. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  6375. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.read_time)
  6376. return _msg;
  6377. }
  6378. inline bool GetDocumentRequest::has_consistency_selector() const {
  6379. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  6380. }
  6381. inline void GetDocumentRequest::clear_has_consistency_selector() {
  6382. _impl_._oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  6383. }
  6384. inline GetDocumentRequest::ConsistencySelectorCase GetDocumentRequest::consistency_selector_case() const {
  6385. return GetDocumentRequest::ConsistencySelectorCase(_impl_._oneof_case_[0]);
  6386. }
  6387. // -------------------------------------------------------------------
  6388. // ListDocumentsRequest
  6389. // string parent = 1;
  6390. inline void ListDocumentsRequest::clear_parent() {
  6391. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6392. _impl_.parent_.ClearToEmpty();
  6393. }
  6394. inline const std::string& ListDocumentsRequest::parent() const
  6395. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6396. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.parent)
  6397. return _internal_parent();
  6398. }
  6399. template <typename Arg_, typename... Args_>
  6400. inline PROTOBUF_ALWAYS_INLINE void ListDocumentsRequest::set_parent(Arg_&& arg,
  6401. Args_... args) {
  6402. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6403. ;
  6404. _impl_.parent_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  6405. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.parent)
  6406. }
  6407. inline std::string* ListDocumentsRequest::mutable_parent() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6408. std::string* _s = _internal_mutable_parent();
  6409. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.parent)
  6410. return _s;
  6411. }
  6412. inline const std::string& ListDocumentsRequest::_internal_parent() const {
  6413. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6414. return _impl_.parent_.Get();
  6415. }
  6416. inline void ListDocumentsRequest::_internal_set_parent(const std::string& value) {
  6417. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6418. ;
  6419. _impl_.parent_.Set(value, GetArena());
  6420. }
  6421. inline std::string* ListDocumentsRequest::_internal_mutable_parent() {
  6422. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6423. ;
  6424. return _impl_.parent_.Mutable( GetArena());
  6425. }
  6426. inline std::string* ListDocumentsRequest::release_parent() {
  6427. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6428. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.parent)
  6429. return _impl_.parent_.Release();
  6430. }
  6431. inline void ListDocumentsRequest::set_allocated_parent(std::string* value) {
  6432. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6433. _impl_.parent_.SetAllocated(value, GetArena());
  6434. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6435. if (_impl_.parent_.IsDefault()) {
  6436. _impl_.parent_.Set("", GetArena());
  6437. }
  6438. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6439. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.parent)
  6440. }
  6441. // string collection_id = 2;
  6442. inline void ListDocumentsRequest::clear_collection_id() {
  6443. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6444. _impl_.collection_id_.ClearToEmpty();
  6445. }
  6446. inline const std::string& ListDocumentsRequest::collection_id() const
  6447. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6448. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.collection_id)
  6449. return _internal_collection_id();
  6450. }
  6451. template <typename Arg_, typename... Args_>
  6452. inline PROTOBUF_ALWAYS_INLINE void ListDocumentsRequest::set_collection_id(Arg_&& arg,
  6453. Args_... args) {
  6454. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6455. ;
  6456. _impl_.collection_id_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  6457. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.collection_id)
  6458. }
  6459. inline std::string* ListDocumentsRequest::mutable_collection_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6460. std::string* _s = _internal_mutable_collection_id();
  6461. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.collection_id)
  6462. return _s;
  6463. }
  6464. inline const std::string& ListDocumentsRequest::_internal_collection_id() const {
  6465. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6466. return _impl_.collection_id_.Get();
  6467. }
  6468. inline void ListDocumentsRequest::_internal_set_collection_id(const std::string& value) {
  6469. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6470. ;
  6471. _impl_.collection_id_.Set(value, GetArena());
  6472. }
  6473. inline std::string* ListDocumentsRequest::_internal_mutable_collection_id() {
  6474. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6475. ;
  6476. return _impl_.collection_id_.Mutable( GetArena());
  6477. }
  6478. inline std::string* ListDocumentsRequest::release_collection_id() {
  6479. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6480. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.collection_id)
  6481. return _impl_.collection_id_.Release();
  6482. }
  6483. inline void ListDocumentsRequest::set_allocated_collection_id(std::string* value) {
  6484. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6485. _impl_.collection_id_.SetAllocated(value, GetArena());
  6486. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6487. if (_impl_.collection_id_.IsDefault()) {
  6488. _impl_.collection_id_.Set("", GetArena());
  6489. }
  6490. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6491. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.collection_id)
  6492. }
  6493. // int32 page_size = 3;
  6494. inline void ListDocumentsRequest::clear_page_size() {
  6495. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6496. _impl_.page_size_ = 0;
  6497. }
  6498. inline ::int32_t ListDocumentsRequest::page_size() const {
  6499. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_size)
  6500. return _internal_page_size();
  6501. }
  6502. inline void ListDocumentsRequest::set_page_size(::int32_t value) {
  6503. _internal_set_page_size(value);
  6504. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_size)
  6505. }
  6506. inline ::int32_t ListDocumentsRequest::_internal_page_size() const {
  6507. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6508. return _impl_.page_size_;
  6509. }
  6510. inline void ListDocumentsRequest::_internal_set_page_size(::int32_t value) {
  6511. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6512. ;
  6513. _impl_.page_size_ = value;
  6514. }
  6515. // string page_token = 4;
  6516. inline void ListDocumentsRequest::clear_page_token() {
  6517. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6518. _impl_.page_token_.ClearToEmpty();
  6519. }
  6520. inline const std::string& ListDocumentsRequest::page_token() const
  6521. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6522. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_token)
  6523. return _internal_page_token();
  6524. }
  6525. template <typename Arg_, typename... Args_>
  6526. inline PROTOBUF_ALWAYS_INLINE void ListDocumentsRequest::set_page_token(Arg_&& arg,
  6527. Args_... args) {
  6528. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6529. ;
  6530. _impl_.page_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  6531. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_token)
  6532. }
  6533. inline std::string* ListDocumentsRequest::mutable_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6534. std::string* _s = _internal_mutable_page_token();
  6535. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.page_token)
  6536. return _s;
  6537. }
  6538. inline const std::string& ListDocumentsRequest::_internal_page_token() const {
  6539. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6540. return _impl_.page_token_.Get();
  6541. }
  6542. inline void ListDocumentsRequest::_internal_set_page_token(const std::string& value) {
  6543. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6544. ;
  6545. _impl_.page_token_.Set(value, GetArena());
  6546. }
  6547. inline std::string* ListDocumentsRequest::_internal_mutable_page_token() {
  6548. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6549. ;
  6550. return _impl_.page_token_.Mutable( GetArena());
  6551. }
  6552. inline std::string* ListDocumentsRequest::release_page_token() {
  6553. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6554. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.page_token)
  6555. return _impl_.page_token_.Release();
  6556. }
  6557. inline void ListDocumentsRequest::set_allocated_page_token(std::string* value) {
  6558. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6559. _impl_.page_token_.SetAllocated(value, GetArena());
  6560. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6561. if (_impl_.page_token_.IsDefault()) {
  6562. _impl_.page_token_.Set("", GetArena());
  6563. }
  6564. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6565. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.page_token)
  6566. }
  6567. // string order_by = 6;
  6568. inline void ListDocumentsRequest::clear_order_by() {
  6569. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6570. _impl_.order_by_.ClearToEmpty();
  6571. }
  6572. inline const std::string& ListDocumentsRequest::order_by() const
  6573. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6574. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.order_by)
  6575. return _internal_order_by();
  6576. }
  6577. template <typename Arg_, typename... Args_>
  6578. inline PROTOBUF_ALWAYS_INLINE void ListDocumentsRequest::set_order_by(Arg_&& arg,
  6579. Args_... args) {
  6580. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6581. ;
  6582. _impl_.order_by_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  6583. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.order_by)
  6584. }
  6585. inline std::string* ListDocumentsRequest::mutable_order_by() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6586. std::string* _s = _internal_mutable_order_by();
  6587. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.order_by)
  6588. return _s;
  6589. }
  6590. inline const std::string& ListDocumentsRequest::_internal_order_by() const {
  6591. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6592. return _impl_.order_by_.Get();
  6593. }
  6594. inline void ListDocumentsRequest::_internal_set_order_by(const std::string& value) {
  6595. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6596. ;
  6597. _impl_.order_by_.Set(value, GetArena());
  6598. }
  6599. inline std::string* ListDocumentsRequest::_internal_mutable_order_by() {
  6600. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6601. ;
  6602. return _impl_.order_by_.Mutable( GetArena());
  6603. }
  6604. inline std::string* ListDocumentsRequest::release_order_by() {
  6605. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6606. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.order_by)
  6607. return _impl_.order_by_.Release();
  6608. }
  6609. inline void ListDocumentsRequest::set_allocated_order_by(std::string* value) {
  6610. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6611. _impl_.order_by_.SetAllocated(value, GetArena());
  6612. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6613. if (_impl_.order_by_.IsDefault()) {
  6614. _impl_.order_by_.Set("", GetArena());
  6615. }
  6616. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6617. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.order_by)
  6618. }
  6619. // .google.firestore.v1.DocumentMask mask = 7;
  6620. inline bool ListDocumentsRequest::has_mask() const {
  6621. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  6622. PROTOBUF_ASSUME(!value || _impl_.mask_ != nullptr);
  6623. return value;
  6624. }
  6625. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::_internal_mask() const {
  6626. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6627. const ::google::firestore::v1::DocumentMask* p = _impl_.mask_;
  6628. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::DocumentMask&>(::google::firestore::v1::_DocumentMask_default_instance_);
  6629. }
  6630. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::mask() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6631. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.mask)
  6632. return _internal_mask();
  6633. }
  6634. inline void ListDocumentsRequest::unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  6635. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6636. if (GetArena() == nullptr) {
  6637. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  6638. }
  6639. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  6640. if (value != nullptr) {
  6641. _impl_._has_bits_[0] |= 0x00000001u;
  6642. } else {
  6643. _impl_._has_bits_[0] &= ~0x00000001u;
  6644. }
  6645. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.ListDocumentsRequest.mask)
  6646. }
  6647. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::release_mask() {
  6648. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6649. _impl_._has_bits_[0] &= ~0x00000001u;
  6650. ::google::firestore::v1::DocumentMask* released = _impl_.mask_;
  6651. _impl_.mask_ = nullptr;
  6652. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  6653. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  6654. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  6655. if (GetArena() == nullptr) {
  6656. delete old;
  6657. }
  6658. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  6659. if (GetArena() != nullptr) {
  6660. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  6661. }
  6662. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  6663. return released;
  6664. }
  6665. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::unsafe_arena_release_mask() {
  6666. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6667. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.mask)
  6668. _impl_._has_bits_[0] &= ~0x00000001u;
  6669. ::google::firestore::v1::DocumentMask* temp = _impl_.mask_;
  6670. _impl_.mask_ = nullptr;
  6671. return temp;
  6672. }
  6673. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::_internal_mutable_mask() {
  6674. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6675. _impl_._has_bits_[0] |= 0x00000001u;
  6676. if (_impl_.mask_ == nullptr) {
  6677. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArena());
  6678. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(p);
  6679. }
  6680. return _impl_.mask_;
  6681. }
  6682. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::mutable_mask() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6683. ::google::firestore::v1::DocumentMask* _msg = _internal_mutable_mask();
  6684. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.mask)
  6685. return _msg;
  6686. }
  6687. inline void ListDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  6688. ::google::protobuf::Arena* message_arena = GetArena();
  6689. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6690. if (message_arena == nullptr) {
  6691. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  6692. }
  6693. if (value != nullptr) {
  6694. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  6695. if (message_arena != submessage_arena) {
  6696. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  6697. }
  6698. _impl_._has_bits_[0] |= 0x00000001u;
  6699. } else {
  6700. _impl_._has_bits_[0] &= ~0x00000001u;
  6701. }
  6702. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  6703. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.mask)
  6704. }
  6705. // bytes transaction = 8;
  6706. inline bool ListDocumentsRequest::has_transaction() const {
  6707. return consistency_selector_case() == kTransaction;
  6708. }
  6709. inline void ListDocumentsRequest::set_has_transaction() {
  6710. _impl_._oneof_case_[0] = kTransaction;
  6711. }
  6712. inline void ListDocumentsRequest::clear_transaction() {
  6713. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6714. if (consistency_selector_case() == kTransaction) {
  6715. _impl_.consistency_selector_.transaction_.Destroy();
  6716. clear_has_consistency_selector();
  6717. }
  6718. }
  6719. inline const std::string& ListDocumentsRequest::transaction() const
  6720. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6721. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.transaction)
  6722. return _internal_transaction();
  6723. }
  6724. template <typename Arg_, typename... Args_>
  6725. inline PROTOBUF_ALWAYS_INLINE void ListDocumentsRequest::set_transaction(Arg_&& arg,
  6726. Args_... args) {
  6727. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6728. if (consistency_selector_case() != kTransaction) {
  6729. clear_consistency_selector();
  6730. set_has_transaction();
  6731. _impl_.consistency_selector_.transaction_.InitDefault();
  6732. }
  6733. _impl_.consistency_selector_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  6734. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  6735. }
  6736. inline std::string* ListDocumentsRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6737. std::string* _s = _internal_mutable_transaction();
  6738. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.transaction)
  6739. return _s;
  6740. }
  6741. inline const std::string& ListDocumentsRequest::_internal_transaction() const {
  6742. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6743. if (consistency_selector_case() != kTransaction) {
  6744. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  6745. }
  6746. return _impl_.consistency_selector_.transaction_.Get();
  6747. }
  6748. inline void ListDocumentsRequest::_internal_set_transaction(const std::string& value) {
  6749. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6750. if (consistency_selector_case() != kTransaction) {
  6751. clear_consistency_selector();
  6752. set_has_transaction();
  6753. _impl_.consistency_selector_.transaction_.InitDefault();
  6754. }
  6755. _impl_.consistency_selector_.transaction_.Set(value, GetArena());
  6756. }
  6757. inline std::string* ListDocumentsRequest::_internal_mutable_transaction() {
  6758. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6759. if (consistency_selector_case() != kTransaction) {
  6760. clear_consistency_selector();
  6761. set_has_transaction();
  6762. _impl_.consistency_selector_.transaction_.InitDefault();
  6763. }
  6764. return _impl_.consistency_selector_.transaction_.Mutable( GetArena());
  6765. }
  6766. inline std::string* ListDocumentsRequest::release_transaction() {
  6767. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6768. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.transaction)
  6769. if (consistency_selector_case() != kTransaction) {
  6770. return nullptr;
  6771. }
  6772. clear_has_consistency_selector();
  6773. return _impl_.consistency_selector_.transaction_.Release();
  6774. }
  6775. inline void ListDocumentsRequest::set_allocated_transaction(std::string* value) {
  6776. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6777. if (has_consistency_selector()) {
  6778. clear_consistency_selector();
  6779. }
  6780. if (value != nullptr) {
  6781. set_has_transaction();
  6782. _impl_.consistency_selector_.transaction_.InitAllocated(value, GetArena());
  6783. }
  6784. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.transaction)
  6785. }
  6786. // .google.protobuf.Timestamp read_time = 10;
  6787. inline bool ListDocumentsRequest::has_read_time() const {
  6788. return consistency_selector_case() == kReadTime;
  6789. }
  6790. inline bool ListDocumentsRequest::_internal_has_read_time() const {
  6791. return consistency_selector_case() == kReadTime;
  6792. }
  6793. inline void ListDocumentsRequest::set_has_read_time() {
  6794. _impl_._oneof_case_[0] = kReadTime;
  6795. }
  6796. inline ::google::protobuf::Timestamp* ListDocumentsRequest::release_read_time() {
  6797. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.read_time)
  6798. if (consistency_selector_case() == kReadTime) {
  6799. clear_has_consistency_selector();
  6800. auto* temp = _impl_.consistency_selector_.read_time_;
  6801. if (GetArena() != nullptr) {
  6802. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  6803. }
  6804. _impl_.consistency_selector_.read_time_ = nullptr;
  6805. return temp;
  6806. } else {
  6807. return nullptr;
  6808. }
  6809. }
  6810. inline const ::google::protobuf::Timestamp& ListDocumentsRequest::_internal_read_time() const {
  6811. return consistency_selector_case() == kReadTime ? *_impl_.consistency_selector_.read_time_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  6812. }
  6813. inline const ::google::protobuf::Timestamp& ListDocumentsRequest::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6814. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.read_time)
  6815. return _internal_read_time();
  6816. }
  6817. inline ::google::protobuf::Timestamp* ListDocumentsRequest::unsafe_arena_release_read_time() {
  6818. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.ListDocumentsRequest.read_time)
  6819. if (consistency_selector_case() == kReadTime) {
  6820. clear_has_consistency_selector();
  6821. auto* temp = _impl_.consistency_selector_.read_time_;
  6822. _impl_.consistency_selector_.read_time_ = nullptr;
  6823. return temp;
  6824. } else {
  6825. return nullptr;
  6826. }
  6827. }
  6828. inline void ListDocumentsRequest::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  6829. // We rely on the oneof clear method to free the earlier contents
  6830. // of this oneof. We can directly use the pointer we're given to
  6831. // set the new value.
  6832. clear_consistency_selector();
  6833. if (value) {
  6834. set_has_read_time();
  6835. _impl_.consistency_selector_.read_time_ = value;
  6836. }
  6837. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.ListDocumentsRequest.read_time)
  6838. }
  6839. inline ::google::protobuf::Timestamp* ListDocumentsRequest::_internal_mutable_read_time() {
  6840. if (consistency_selector_case() != kReadTime) {
  6841. clear_consistency_selector();
  6842. set_has_read_time();
  6843. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  6844. }
  6845. return _impl_.consistency_selector_.read_time_;
  6846. }
  6847. inline ::google::protobuf::Timestamp* ListDocumentsRequest::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6848. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  6849. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.read_time)
  6850. return _msg;
  6851. }
  6852. // bool show_missing = 12;
  6853. inline void ListDocumentsRequest::clear_show_missing() {
  6854. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6855. _impl_.show_missing_ = false;
  6856. }
  6857. inline bool ListDocumentsRequest::show_missing() const {
  6858. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.show_missing)
  6859. return _internal_show_missing();
  6860. }
  6861. inline void ListDocumentsRequest::set_show_missing(bool value) {
  6862. _internal_set_show_missing(value);
  6863. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.show_missing)
  6864. }
  6865. inline bool ListDocumentsRequest::_internal_show_missing() const {
  6866. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6867. return _impl_.show_missing_;
  6868. }
  6869. inline void ListDocumentsRequest::_internal_set_show_missing(bool value) {
  6870. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6871. ;
  6872. _impl_.show_missing_ = value;
  6873. }
  6874. inline bool ListDocumentsRequest::has_consistency_selector() const {
  6875. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  6876. }
  6877. inline void ListDocumentsRequest::clear_has_consistency_selector() {
  6878. _impl_._oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  6879. }
  6880. inline ListDocumentsRequest::ConsistencySelectorCase ListDocumentsRequest::consistency_selector_case() const {
  6881. return ListDocumentsRequest::ConsistencySelectorCase(_impl_._oneof_case_[0]);
  6882. }
  6883. // -------------------------------------------------------------------
  6884. // ListDocumentsResponse
  6885. // repeated .google.firestore.v1.Document documents = 1;
  6886. inline int ListDocumentsResponse::_internal_documents_size() const {
  6887. return _internal_documents().size();
  6888. }
  6889. inline int ListDocumentsResponse::documents_size() const {
  6890. return _internal_documents_size();
  6891. }
  6892. inline ::google::firestore::v1::Document* ListDocumentsResponse::mutable_documents(int index)
  6893. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6894. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.documents)
  6895. return _internal_mutable_documents()->Mutable(index);
  6896. }
  6897. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Document>* ListDocumentsResponse::mutable_documents()
  6898. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6899. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListDocumentsResponse.documents)
  6900. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6901. return _internal_mutable_documents();
  6902. }
  6903. inline const ::google::firestore::v1::Document& ListDocumentsResponse::documents(int index) const
  6904. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6905. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.documents)
  6906. return _internal_documents().Get(index);
  6907. }
  6908. inline ::google::firestore::v1::Document* ListDocumentsResponse::add_documents() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6909. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6910. ::google::firestore::v1::Document* _add = _internal_mutable_documents()->Add();
  6911. // @@protoc_insertion_point(field_add:google.firestore.v1.ListDocumentsResponse.documents)
  6912. return _add;
  6913. }
  6914. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Document>& ListDocumentsResponse::documents() const
  6915. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6916. // @@protoc_insertion_point(field_list:google.firestore.v1.ListDocumentsResponse.documents)
  6917. return _internal_documents();
  6918. }
  6919. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Document>&
  6920. ListDocumentsResponse::_internal_documents() const {
  6921. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6922. return _impl_.documents_;
  6923. }
  6924. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Document>*
  6925. ListDocumentsResponse::_internal_mutable_documents() {
  6926. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6927. return &_impl_.documents_;
  6928. }
  6929. // string next_page_token = 2;
  6930. inline void ListDocumentsResponse::clear_next_page_token() {
  6931. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6932. _impl_.next_page_token_.ClearToEmpty();
  6933. }
  6934. inline const std::string& ListDocumentsResponse::next_page_token() const
  6935. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6936. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.next_page_token)
  6937. return _internal_next_page_token();
  6938. }
  6939. template <typename Arg_, typename... Args_>
  6940. inline PROTOBUF_ALWAYS_INLINE void ListDocumentsResponse::set_next_page_token(Arg_&& arg,
  6941. Args_... args) {
  6942. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6943. ;
  6944. _impl_.next_page_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  6945. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsResponse.next_page_token)
  6946. }
  6947. inline std::string* ListDocumentsResponse::mutable_next_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6948. std::string* _s = _internal_mutable_next_page_token();
  6949. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.next_page_token)
  6950. return _s;
  6951. }
  6952. inline const std::string& ListDocumentsResponse::_internal_next_page_token() const {
  6953. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  6954. return _impl_.next_page_token_.Get();
  6955. }
  6956. inline void ListDocumentsResponse::_internal_set_next_page_token(const std::string& value) {
  6957. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6958. ;
  6959. _impl_.next_page_token_.Set(value, GetArena());
  6960. }
  6961. inline std::string* ListDocumentsResponse::_internal_mutable_next_page_token() {
  6962. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6963. ;
  6964. return _impl_.next_page_token_.Mutable( GetArena());
  6965. }
  6966. inline std::string* ListDocumentsResponse::release_next_page_token() {
  6967. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6968. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsResponse.next_page_token)
  6969. return _impl_.next_page_token_.Release();
  6970. }
  6971. inline void ListDocumentsResponse::set_allocated_next_page_token(std::string* value) {
  6972. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6973. _impl_.next_page_token_.SetAllocated(value, GetArena());
  6974. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6975. if (_impl_.next_page_token_.IsDefault()) {
  6976. _impl_.next_page_token_.Set("", GetArena());
  6977. }
  6978. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6979. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsResponse.next_page_token)
  6980. }
  6981. // -------------------------------------------------------------------
  6982. // CreateDocumentRequest
  6983. // string parent = 1;
  6984. inline void CreateDocumentRequest::clear_parent() {
  6985. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6986. _impl_.parent_.ClearToEmpty();
  6987. }
  6988. inline const std::string& CreateDocumentRequest::parent() const
  6989. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  6990. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.parent)
  6991. return _internal_parent();
  6992. }
  6993. template <typename Arg_, typename... Args_>
  6994. inline PROTOBUF_ALWAYS_INLINE void CreateDocumentRequest::set_parent(Arg_&& arg,
  6995. Args_... args) {
  6996. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  6997. ;
  6998. _impl_.parent_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  6999. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.parent)
  7000. }
  7001. inline std::string* CreateDocumentRequest::mutable_parent() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7002. std::string* _s = _internal_mutable_parent();
  7003. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.parent)
  7004. return _s;
  7005. }
  7006. inline const std::string& CreateDocumentRequest::_internal_parent() const {
  7007. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7008. return _impl_.parent_.Get();
  7009. }
  7010. inline void CreateDocumentRequest::_internal_set_parent(const std::string& value) {
  7011. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7012. ;
  7013. _impl_.parent_.Set(value, GetArena());
  7014. }
  7015. inline std::string* CreateDocumentRequest::_internal_mutable_parent() {
  7016. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7017. ;
  7018. return _impl_.parent_.Mutable( GetArena());
  7019. }
  7020. inline std::string* CreateDocumentRequest::release_parent() {
  7021. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7022. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.parent)
  7023. return _impl_.parent_.Release();
  7024. }
  7025. inline void CreateDocumentRequest::set_allocated_parent(std::string* value) {
  7026. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7027. _impl_.parent_.SetAllocated(value, GetArena());
  7028. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7029. if (_impl_.parent_.IsDefault()) {
  7030. _impl_.parent_.Set("", GetArena());
  7031. }
  7032. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7033. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.parent)
  7034. }
  7035. // string collection_id = 2;
  7036. inline void CreateDocumentRequest::clear_collection_id() {
  7037. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7038. _impl_.collection_id_.ClearToEmpty();
  7039. }
  7040. inline const std::string& CreateDocumentRequest::collection_id() const
  7041. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7042. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.collection_id)
  7043. return _internal_collection_id();
  7044. }
  7045. template <typename Arg_, typename... Args_>
  7046. inline PROTOBUF_ALWAYS_INLINE void CreateDocumentRequest::set_collection_id(Arg_&& arg,
  7047. Args_... args) {
  7048. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7049. ;
  7050. _impl_.collection_id_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  7051. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.collection_id)
  7052. }
  7053. inline std::string* CreateDocumentRequest::mutable_collection_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7054. std::string* _s = _internal_mutable_collection_id();
  7055. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.collection_id)
  7056. return _s;
  7057. }
  7058. inline const std::string& CreateDocumentRequest::_internal_collection_id() const {
  7059. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7060. return _impl_.collection_id_.Get();
  7061. }
  7062. inline void CreateDocumentRequest::_internal_set_collection_id(const std::string& value) {
  7063. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7064. ;
  7065. _impl_.collection_id_.Set(value, GetArena());
  7066. }
  7067. inline std::string* CreateDocumentRequest::_internal_mutable_collection_id() {
  7068. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7069. ;
  7070. return _impl_.collection_id_.Mutable( GetArena());
  7071. }
  7072. inline std::string* CreateDocumentRequest::release_collection_id() {
  7073. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7074. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.collection_id)
  7075. return _impl_.collection_id_.Release();
  7076. }
  7077. inline void CreateDocumentRequest::set_allocated_collection_id(std::string* value) {
  7078. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7079. _impl_.collection_id_.SetAllocated(value, GetArena());
  7080. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7081. if (_impl_.collection_id_.IsDefault()) {
  7082. _impl_.collection_id_.Set("", GetArena());
  7083. }
  7084. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7085. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.collection_id)
  7086. }
  7087. // string document_id = 3;
  7088. inline void CreateDocumentRequest::clear_document_id() {
  7089. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7090. _impl_.document_id_.ClearToEmpty();
  7091. }
  7092. inline const std::string& CreateDocumentRequest::document_id() const
  7093. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7094. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document_id)
  7095. return _internal_document_id();
  7096. }
  7097. template <typename Arg_, typename... Args_>
  7098. inline PROTOBUF_ALWAYS_INLINE void CreateDocumentRequest::set_document_id(Arg_&& arg,
  7099. Args_... args) {
  7100. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7101. ;
  7102. _impl_.document_id_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  7103. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.document_id)
  7104. }
  7105. inline std::string* CreateDocumentRequest::mutable_document_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7106. std::string* _s = _internal_mutable_document_id();
  7107. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document_id)
  7108. return _s;
  7109. }
  7110. inline const std::string& CreateDocumentRequest::_internal_document_id() const {
  7111. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7112. return _impl_.document_id_.Get();
  7113. }
  7114. inline void CreateDocumentRequest::_internal_set_document_id(const std::string& value) {
  7115. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7116. ;
  7117. _impl_.document_id_.Set(value, GetArena());
  7118. }
  7119. inline std::string* CreateDocumentRequest::_internal_mutable_document_id() {
  7120. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7121. ;
  7122. return _impl_.document_id_.Mutable( GetArena());
  7123. }
  7124. inline std::string* CreateDocumentRequest::release_document_id() {
  7125. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7126. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document_id)
  7127. return _impl_.document_id_.Release();
  7128. }
  7129. inline void CreateDocumentRequest::set_allocated_document_id(std::string* value) {
  7130. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7131. _impl_.document_id_.SetAllocated(value, GetArena());
  7132. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7133. if (_impl_.document_id_.IsDefault()) {
  7134. _impl_.document_id_.Set("", GetArena());
  7135. }
  7136. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7137. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document_id)
  7138. }
  7139. // .google.firestore.v1.Document document = 4;
  7140. inline bool CreateDocumentRequest::has_document() const {
  7141. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  7142. PROTOBUF_ASSUME(!value || _impl_.document_ != nullptr);
  7143. return value;
  7144. }
  7145. inline const ::google::firestore::v1::Document& CreateDocumentRequest::_internal_document() const {
  7146. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7147. const ::google::firestore::v1::Document* p = _impl_.document_;
  7148. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::Document&>(::google::firestore::v1::_Document_default_instance_);
  7149. }
  7150. inline const ::google::firestore::v1::Document& CreateDocumentRequest::document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7151. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document)
  7152. return _internal_document();
  7153. }
  7154. inline void CreateDocumentRequest::unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value) {
  7155. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7156. if (GetArena() == nullptr) {
  7157. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.document_);
  7158. }
  7159. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(value);
  7160. if (value != nullptr) {
  7161. _impl_._has_bits_[0] |= 0x00000001u;
  7162. } else {
  7163. _impl_._has_bits_[0] &= ~0x00000001u;
  7164. }
  7165. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.CreateDocumentRequest.document)
  7166. }
  7167. inline ::google::firestore::v1::Document* CreateDocumentRequest::release_document() {
  7168. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7169. _impl_._has_bits_[0] &= ~0x00000001u;
  7170. ::google::firestore::v1::Document* released = _impl_.document_;
  7171. _impl_.document_ = nullptr;
  7172. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  7173. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  7174. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7175. if (GetArena() == nullptr) {
  7176. delete old;
  7177. }
  7178. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  7179. if (GetArena() != nullptr) {
  7180. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7181. }
  7182. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  7183. return released;
  7184. }
  7185. inline ::google::firestore::v1::Document* CreateDocumentRequest::unsafe_arena_release_document() {
  7186. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7187. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document)
  7188. _impl_._has_bits_[0] &= ~0x00000001u;
  7189. ::google::firestore::v1::Document* temp = _impl_.document_;
  7190. _impl_.document_ = nullptr;
  7191. return temp;
  7192. }
  7193. inline ::google::firestore::v1::Document* CreateDocumentRequest::_internal_mutable_document() {
  7194. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7195. _impl_._has_bits_[0] |= 0x00000001u;
  7196. if (_impl_.document_ == nullptr) {
  7197. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArena());
  7198. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(p);
  7199. }
  7200. return _impl_.document_;
  7201. }
  7202. inline ::google::firestore::v1::Document* CreateDocumentRequest::mutable_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7203. ::google::firestore::v1::Document* _msg = _internal_mutable_document();
  7204. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document)
  7205. return _msg;
  7206. }
  7207. inline void CreateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* value) {
  7208. ::google::protobuf::Arena* message_arena = GetArena();
  7209. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7210. if (message_arena == nullptr) {
  7211. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.document_);
  7212. }
  7213. if (value != nullptr) {
  7214. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  7215. if (message_arena != submessage_arena) {
  7216. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  7217. }
  7218. _impl_._has_bits_[0] |= 0x00000001u;
  7219. } else {
  7220. _impl_._has_bits_[0] &= ~0x00000001u;
  7221. }
  7222. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(value);
  7223. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document)
  7224. }
  7225. // .google.firestore.v1.DocumentMask mask = 5;
  7226. inline bool CreateDocumentRequest::has_mask() const {
  7227. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  7228. PROTOBUF_ASSUME(!value || _impl_.mask_ != nullptr);
  7229. return value;
  7230. }
  7231. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::_internal_mask() const {
  7232. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7233. const ::google::firestore::v1::DocumentMask* p = _impl_.mask_;
  7234. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::DocumentMask&>(::google::firestore::v1::_DocumentMask_default_instance_);
  7235. }
  7236. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::mask() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7237. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.mask)
  7238. return _internal_mask();
  7239. }
  7240. inline void CreateDocumentRequest::unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  7241. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7242. if (GetArena() == nullptr) {
  7243. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  7244. }
  7245. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  7246. if (value != nullptr) {
  7247. _impl_._has_bits_[0] |= 0x00000002u;
  7248. } else {
  7249. _impl_._has_bits_[0] &= ~0x00000002u;
  7250. }
  7251. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.CreateDocumentRequest.mask)
  7252. }
  7253. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::release_mask() {
  7254. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7255. _impl_._has_bits_[0] &= ~0x00000002u;
  7256. ::google::firestore::v1::DocumentMask* released = _impl_.mask_;
  7257. _impl_.mask_ = nullptr;
  7258. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  7259. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  7260. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7261. if (GetArena() == nullptr) {
  7262. delete old;
  7263. }
  7264. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  7265. if (GetArena() != nullptr) {
  7266. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7267. }
  7268. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  7269. return released;
  7270. }
  7271. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::unsafe_arena_release_mask() {
  7272. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7273. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.mask)
  7274. _impl_._has_bits_[0] &= ~0x00000002u;
  7275. ::google::firestore::v1::DocumentMask* temp = _impl_.mask_;
  7276. _impl_.mask_ = nullptr;
  7277. return temp;
  7278. }
  7279. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::_internal_mutable_mask() {
  7280. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7281. _impl_._has_bits_[0] |= 0x00000002u;
  7282. if (_impl_.mask_ == nullptr) {
  7283. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArena());
  7284. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(p);
  7285. }
  7286. return _impl_.mask_;
  7287. }
  7288. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::mutable_mask() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7289. ::google::firestore::v1::DocumentMask* _msg = _internal_mutable_mask();
  7290. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.mask)
  7291. return _msg;
  7292. }
  7293. inline void CreateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  7294. ::google::protobuf::Arena* message_arena = GetArena();
  7295. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7296. if (message_arena == nullptr) {
  7297. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  7298. }
  7299. if (value != nullptr) {
  7300. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  7301. if (message_arena != submessage_arena) {
  7302. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  7303. }
  7304. _impl_._has_bits_[0] |= 0x00000002u;
  7305. } else {
  7306. _impl_._has_bits_[0] &= ~0x00000002u;
  7307. }
  7308. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  7309. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.mask)
  7310. }
  7311. // -------------------------------------------------------------------
  7312. // UpdateDocumentRequest
  7313. // .google.firestore.v1.Document document = 1;
  7314. inline bool UpdateDocumentRequest::has_document() const {
  7315. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  7316. PROTOBUF_ASSUME(!value || _impl_.document_ != nullptr);
  7317. return value;
  7318. }
  7319. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::_internal_document() const {
  7320. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7321. const ::google::firestore::v1::Document* p = _impl_.document_;
  7322. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::Document&>(::google::firestore::v1::_Document_default_instance_);
  7323. }
  7324. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7325. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.document)
  7326. return _internal_document();
  7327. }
  7328. inline void UpdateDocumentRequest::unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value) {
  7329. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7330. if (GetArena() == nullptr) {
  7331. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.document_);
  7332. }
  7333. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(value);
  7334. if (value != nullptr) {
  7335. _impl_._has_bits_[0] |= 0x00000001u;
  7336. } else {
  7337. _impl_._has_bits_[0] &= ~0x00000001u;
  7338. }
  7339. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.UpdateDocumentRequest.document)
  7340. }
  7341. inline ::google::firestore::v1::Document* UpdateDocumentRequest::release_document() {
  7342. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7343. _impl_._has_bits_[0] &= ~0x00000001u;
  7344. ::google::firestore::v1::Document* released = _impl_.document_;
  7345. _impl_.document_ = nullptr;
  7346. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  7347. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  7348. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7349. if (GetArena() == nullptr) {
  7350. delete old;
  7351. }
  7352. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  7353. if (GetArena() != nullptr) {
  7354. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7355. }
  7356. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  7357. return released;
  7358. }
  7359. inline ::google::firestore::v1::Document* UpdateDocumentRequest::unsafe_arena_release_document() {
  7360. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7361. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.document)
  7362. _impl_._has_bits_[0] &= ~0x00000001u;
  7363. ::google::firestore::v1::Document* temp = _impl_.document_;
  7364. _impl_.document_ = nullptr;
  7365. return temp;
  7366. }
  7367. inline ::google::firestore::v1::Document* UpdateDocumentRequest::_internal_mutable_document() {
  7368. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7369. _impl_._has_bits_[0] |= 0x00000001u;
  7370. if (_impl_.document_ == nullptr) {
  7371. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArena());
  7372. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(p);
  7373. }
  7374. return _impl_.document_;
  7375. }
  7376. inline ::google::firestore::v1::Document* UpdateDocumentRequest::mutable_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7377. ::google::firestore::v1::Document* _msg = _internal_mutable_document();
  7378. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.document)
  7379. return _msg;
  7380. }
  7381. inline void UpdateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* value) {
  7382. ::google::protobuf::Arena* message_arena = GetArena();
  7383. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7384. if (message_arena == nullptr) {
  7385. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.document_);
  7386. }
  7387. if (value != nullptr) {
  7388. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  7389. if (message_arena != submessage_arena) {
  7390. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  7391. }
  7392. _impl_._has_bits_[0] |= 0x00000001u;
  7393. } else {
  7394. _impl_._has_bits_[0] &= ~0x00000001u;
  7395. }
  7396. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(value);
  7397. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.document)
  7398. }
  7399. // .google.firestore.v1.DocumentMask update_mask = 2;
  7400. inline bool UpdateDocumentRequest::has_update_mask() const {
  7401. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  7402. PROTOBUF_ASSUME(!value || _impl_.update_mask_ != nullptr);
  7403. return value;
  7404. }
  7405. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_internal_update_mask() const {
  7406. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7407. const ::google::firestore::v1::DocumentMask* p = _impl_.update_mask_;
  7408. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::DocumentMask&>(::google::firestore::v1::_DocumentMask_default_instance_);
  7409. }
  7410. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::update_mask() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7411. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.update_mask)
  7412. return _internal_update_mask();
  7413. }
  7414. inline void UpdateDocumentRequest::unsafe_arena_set_allocated_update_mask(::google::firestore::v1::DocumentMask* value) {
  7415. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7416. if (GetArena() == nullptr) {
  7417. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.update_mask_);
  7418. }
  7419. _impl_.update_mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  7420. if (value != nullptr) {
  7421. _impl_._has_bits_[0] |= 0x00000002u;
  7422. } else {
  7423. _impl_._has_bits_[0] &= ~0x00000002u;
  7424. }
  7425. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.UpdateDocumentRequest.update_mask)
  7426. }
  7427. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_update_mask() {
  7428. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7429. _impl_._has_bits_[0] &= ~0x00000002u;
  7430. ::google::firestore::v1::DocumentMask* released = _impl_.update_mask_;
  7431. _impl_.update_mask_ = nullptr;
  7432. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  7433. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  7434. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7435. if (GetArena() == nullptr) {
  7436. delete old;
  7437. }
  7438. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  7439. if (GetArena() != nullptr) {
  7440. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7441. }
  7442. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  7443. return released;
  7444. }
  7445. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::unsafe_arena_release_update_mask() {
  7446. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7447. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.update_mask)
  7448. _impl_._has_bits_[0] &= ~0x00000002u;
  7449. ::google::firestore::v1::DocumentMask* temp = _impl_.update_mask_;
  7450. _impl_.update_mask_ = nullptr;
  7451. return temp;
  7452. }
  7453. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::_internal_mutable_update_mask() {
  7454. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7455. _impl_._has_bits_[0] |= 0x00000002u;
  7456. if (_impl_.update_mask_ == nullptr) {
  7457. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArena());
  7458. _impl_.update_mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(p);
  7459. }
  7460. return _impl_.update_mask_;
  7461. }
  7462. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_update_mask() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7463. ::google::firestore::v1::DocumentMask* _msg = _internal_mutable_update_mask();
  7464. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.update_mask)
  7465. return _msg;
  7466. }
  7467. inline void UpdateDocumentRequest::set_allocated_update_mask(::google::firestore::v1::DocumentMask* value) {
  7468. ::google::protobuf::Arena* message_arena = GetArena();
  7469. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7470. if (message_arena == nullptr) {
  7471. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.update_mask_);
  7472. }
  7473. if (value != nullptr) {
  7474. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  7475. if (message_arena != submessage_arena) {
  7476. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  7477. }
  7478. _impl_._has_bits_[0] |= 0x00000002u;
  7479. } else {
  7480. _impl_._has_bits_[0] &= ~0x00000002u;
  7481. }
  7482. _impl_.update_mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  7483. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.update_mask)
  7484. }
  7485. // .google.firestore.v1.DocumentMask mask = 3;
  7486. inline bool UpdateDocumentRequest::has_mask() const {
  7487. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  7488. PROTOBUF_ASSUME(!value || _impl_.mask_ != nullptr);
  7489. return value;
  7490. }
  7491. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_internal_mask() const {
  7492. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7493. const ::google::firestore::v1::DocumentMask* p = _impl_.mask_;
  7494. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::DocumentMask&>(::google::firestore::v1::_DocumentMask_default_instance_);
  7495. }
  7496. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::mask() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7497. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.mask)
  7498. return _internal_mask();
  7499. }
  7500. inline void UpdateDocumentRequest::unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  7501. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7502. if (GetArena() == nullptr) {
  7503. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  7504. }
  7505. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  7506. if (value != nullptr) {
  7507. _impl_._has_bits_[0] |= 0x00000004u;
  7508. } else {
  7509. _impl_._has_bits_[0] &= ~0x00000004u;
  7510. }
  7511. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.UpdateDocumentRequest.mask)
  7512. }
  7513. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_mask() {
  7514. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7515. _impl_._has_bits_[0] &= ~0x00000004u;
  7516. ::google::firestore::v1::DocumentMask* released = _impl_.mask_;
  7517. _impl_.mask_ = nullptr;
  7518. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  7519. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  7520. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7521. if (GetArena() == nullptr) {
  7522. delete old;
  7523. }
  7524. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  7525. if (GetArena() != nullptr) {
  7526. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7527. }
  7528. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  7529. return released;
  7530. }
  7531. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::unsafe_arena_release_mask() {
  7532. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7533. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.mask)
  7534. _impl_._has_bits_[0] &= ~0x00000004u;
  7535. ::google::firestore::v1::DocumentMask* temp = _impl_.mask_;
  7536. _impl_.mask_ = nullptr;
  7537. return temp;
  7538. }
  7539. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::_internal_mutable_mask() {
  7540. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7541. _impl_._has_bits_[0] |= 0x00000004u;
  7542. if (_impl_.mask_ == nullptr) {
  7543. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArena());
  7544. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(p);
  7545. }
  7546. return _impl_.mask_;
  7547. }
  7548. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_mask() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7549. ::google::firestore::v1::DocumentMask* _msg = _internal_mutable_mask();
  7550. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.mask)
  7551. return _msg;
  7552. }
  7553. inline void UpdateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  7554. ::google::protobuf::Arena* message_arena = GetArena();
  7555. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7556. if (message_arena == nullptr) {
  7557. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  7558. }
  7559. if (value != nullptr) {
  7560. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  7561. if (message_arena != submessage_arena) {
  7562. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  7563. }
  7564. _impl_._has_bits_[0] |= 0x00000004u;
  7565. } else {
  7566. _impl_._has_bits_[0] &= ~0x00000004u;
  7567. }
  7568. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  7569. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.mask)
  7570. }
  7571. // .google.firestore.v1.Precondition current_document = 4;
  7572. inline bool UpdateDocumentRequest::has_current_document() const {
  7573. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  7574. PROTOBUF_ASSUME(!value || _impl_.current_document_ != nullptr);
  7575. return value;
  7576. }
  7577. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::_internal_current_document() const {
  7578. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7579. const ::google::firestore::v1::Precondition* p = _impl_.current_document_;
  7580. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::Precondition&>(::google::firestore::v1::_Precondition_default_instance_);
  7581. }
  7582. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::current_document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7583. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.current_document)
  7584. return _internal_current_document();
  7585. }
  7586. inline void UpdateDocumentRequest::unsafe_arena_set_allocated_current_document(::google::firestore::v1::Precondition* value) {
  7587. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7588. if (GetArena() == nullptr) {
  7589. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.current_document_);
  7590. }
  7591. _impl_.current_document_ = reinterpret_cast<::google::firestore::v1::Precondition*>(value);
  7592. if (value != nullptr) {
  7593. _impl_._has_bits_[0] |= 0x00000008u;
  7594. } else {
  7595. _impl_._has_bits_[0] &= ~0x00000008u;
  7596. }
  7597. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.UpdateDocumentRequest.current_document)
  7598. }
  7599. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::release_current_document() {
  7600. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7601. _impl_._has_bits_[0] &= ~0x00000008u;
  7602. ::google::firestore::v1::Precondition* released = _impl_.current_document_;
  7603. _impl_.current_document_ = nullptr;
  7604. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  7605. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  7606. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7607. if (GetArena() == nullptr) {
  7608. delete old;
  7609. }
  7610. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  7611. if (GetArena() != nullptr) {
  7612. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7613. }
  7614. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  7615. return released;
  7616. }
  7617. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::unsafe_arena_release_current_document() {
  7618. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7619. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.current_document)
  7620. _impl_._has_bits_[0] &= ~0x00000008u;
  7621. ::google::firestore::v1::Precondition* temp = _impl_.current_document_;
  7622. _impl_.current_document_ = nullptr;
  7623. return temp;
  7624. }
  7625. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::_internal_mutable_current_document() {
  7626. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7627. _impl_._has_bits_[0] |= 0x00000008u;
  7628. if (_impl_.current_document_ == nullptr) {
  7629. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArena());
  7630. _impl_.current_document_ = reinterpret_cast<::google::firestore::v1::Precondition*>(p);
  7631. }
  7632. return _impl_.current_document_;
  7633. }
  7634. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::mutable_current_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7635. ::google::firestore::v1::Precondition* _msg = _internal_mutable_current_document();
  7636. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.current_document)
  7637. return _msg;
  7638. }
  7639. inline void UpdateDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* value) {
  7640. ::google::protobuf::Arena* message_arena = GetArena();
  7641. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7642. if (message_arena == nullptr) {
  7643. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.current_document_);
  7644. }
  7645. if (value != nullptr) {
  7646. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  7647. if (message_arena != submessage_arena) {
  7648. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  7649. }
  7650. _impl_._has_bits_[0] |= 0x00000008u;
  7651. } else {
  7652. _impl_._has_bits_[0] &= ~0x00000008u;
  7653. }
  7654. _impl_.current_document_ = reinterpret_cast<::google::firestore::v1::Precondition*>(value);
  7655. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.current_document)
  7656. }
  7657. // -------------------------------------------------------------------
  7658. // DeleteDocumentRequest
  7659. // string name = 1;
  7660. inline void DeleteDocumentRequest::clear_name() {
  7661. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7662. _impl_.name_.ClearToEmpty();
  7663. }
  7664. inline const std::string& DeleteDocumentRequest::name() const
  7665. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7666. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.name)
  7667. return _internal_name();
  7668. }
  7669. template <typename Arg_, typename... Args_>
  7670. inline PROTOBUF_ALWAYS_INLINE void DeleteDocumentRequest::set_name(Arg_&& arg,
  7671. Args_... args) {
  7672. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7673. ;
  7674. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  7675. // @@protoc_insertion_point(field_set:google.firestore.v1.DeleteDocumentRequest.name)
  7676. }
  7677. inline std::string* DeleteDocumentRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7678. std::string* _s = _internal_mutable_name();
  7679. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.name)
  7680. return _s;
  7681. }
  7682. inline const std::string& DeleteDocumentRequest::_internal_name() const {
  7683. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7684. return _impl_.name_.Get();
  7685. }
  7686. inline void DeleteDocumentRequest::_internal_set_name(const std::string& value) {
  7687. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7688. ;
  7689. _impl_.name_.Set(value, GetArena());
  7690. }
  7691. inline std::string* DeleteDocumentRequest::_internal_mutable_name() {
  7692. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7693. ;
  7694. return _impl_.name_.Mutable( GetArena());
  7695. }
  7696. inline std::string* DeleteDocumentRequest::release_name() {
  7697. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7698. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.name)
  7699. return _impl_.name_.Release();
  7700. }
  7701. inline void DeleteDocumentRequest::set_allocated_name(std::string* value) {
  7702. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7703. _impl_.name_.SetAllocated(value, GetArena());
  7704. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7705. if (_impl_.name_.IsDefault()) {
  7706. _impl_.name_.Set("", GetArena());
  7707. }
  7708. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7709. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.name)
  7710. }
  7711. // .google.firestore.v1.Precondition current_document = 2;
  7712. inline bool DeleteDocumentRequest::has_current_document() const {
  7713. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  7714. PROTOBUF_ASSUME(!value || _impl_.current_document_ != nullptr);
  7715. return value;
  7716. }
  7717. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::_internal_current_document() const {
  7718. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7719. const ::google::firestore::v1::Precondition* p = _impl_.current_document_;
  7720. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::Precondition&>(::google::firestore::v1::_Precondition_default_instance_);
  7721. }
  7722. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::current_document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7723. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.current_document)
  7724. return _internal_current_document();
  7725. }
  7726. inline void DeleteDocumentRequest::unsafe_arena_set_allocated_current_document(::google::firestore::v1::Precondition* value) {
  7727. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7728. if (GetArena() == nullptr) {
  7729. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.current_document_);
  7730. }
  7731. _impl_.current_document_ = reinterpret_cast<::google::firestore::v1::Precondition*>(value);
  7732. if (value != nullptr) {
  7733. _impl_._has_bits_[0] |= 0x00000001u;
  7734. } else {
  7735. _impl_._has_bits_[0] &= ~0x00000001u;
  7736. }
  7737. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.DeleteDocumentRequest.current_document)
  7738. }
  7739. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::release_current_document() {
  7740. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7741. _impl_._has_bits_[0] &= ~0x00000001u;
  7742. ::google::firestore::v1::Precondition* released = _impl_.current_document_;
  7743. _impl_.current_document_ = nullptr;
  7744. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  7745. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  7746. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7747. if (GetArena() == nullptr) {
  7748. delete old;
  7749. }
  7750. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  7751. if (GetArena() != nullptr) {
  7752. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7753. }
  7754. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  7755. return released;
  7756. }
  7757. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::unsafe_arena_release_current_document() {
  7758. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7759. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.current_document)
  7760. _impl_._has_bits_[0] &= ~0x00000001u;
  7761. ::google::firestore::v1::Precondition* temp = _impl_.current_document_;
  7762. _impl_.current_document_ = nullptr;
  7763. return temp;
  7764. }
  7765. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::_internal_mutable_current_document() {
  7766. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7767. _impl_._has_bits_[0] |= 0x00000001u;
  7768. if (_impl_.current_document_ == nullptr) {
  7769. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArena());
  7770. _impl_.current_document_ = reinterpret_cast<::google::firestore::v1::Precondition*>(p);
  7771. }
  7772. return _impl_.current_document_;
  7773. }
  7774. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::mutable_current_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7775. ::google::firestore::v1::Precondition* _msg = _internal_mutable_current_document();
  7776. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.current_document)
  7777. return _msg;
  7778. }
  7779. inline void DeleteDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* value) {
  7780. ::google::protobuf::Arena* message_arena = GetArena();
  7781. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7782. if (message_arena == nullptr) {
  7783. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.current_document_);
  7784. }
  7785. if (value != nullptr) {
  7786. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  7787. if (message_arena != submessage_arena) {
  7788. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  7789. }
  7790. _impl_._has_bits_[0] |= 0x00000001u;
  7791. } else {
  7792. _impl_._has_bits_[0] &= ~0x00000001u;
  7793. }
  7794. _impl_.current_document_ = reinterpret_cast<::google::firestore::v1::Precondition*>(value);
  7795. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.current_document)
  7796. }
  7797. // -------------------------------------------------------------------
  7798. // BatchGetDocumentsRequest
  7799. // string database = 1;
  7800. inline void BatchGetDocumentsRequest::clear_database() {
  7801. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7802. _impl_.database_.ClearToEmpty();
  7803. }
  7804. inline const std::string& BatchGetDocumentsRequest::database() const
  7805. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7806. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.database)
  7807. return _internal_database();
  7808. }
  7809. template <typename Arg_, typename... Args_>
  7810. inline PROTOBUF_ALWAYS_INLINE void BatchGetDocumentsRequest::set_database(Arg_&& arg,
  7811. Args_... args) {
  7812. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7813. ;
  7814. _impl_.database_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  7815. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.database)
  7816. }
  7817. inline std::string* BatchGetDocumentsRequest::mutable_database() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7818. std::string* _s = _internal_mutable_database();
  7819. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.database)
  7820. return _s;
  7821. }
  7822. inline const std::string& BatchGetDocumentsRequest::_internal_database() const {
  7823. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7824. return _impl_.database_.Get();
  7825. }
  7826. inline void BatchGetDocumentsRequest::_internal_set_database(const std::string& value) {
  7827. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7828. ;
  7829. _impl_.database_.Set(value, GetArena());
  7830. }
  7831. inline std::string* BatchGetDocumentsRequest::_internal_mutable_database() {
  7832. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7833. ;
  7834. return _impl_.database_.Mutable( GetArena());
  7835. }
  7836. inline std::string* BatchGetDocumentsRequest::release_database() {
  7837. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7838. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.database)
  7839. return _impl_.database_.Release();
  7840. }
  7841. inline void BatchGetDocumentsRequest::set_allocated_database(std::string* value) {
  7842. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7843. _impl_.database_.SetAllocated(value, GetArena());
  7844. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7845. if (_impl_.database_.IsDefault()) {
  7846. _impl_.database_.Set("", GetArena());
  7847. }
  7848. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7849. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.database)
  7850. }
  7851. // repeated string documents = 2;
  7852. inline int BatchGetDocumentsRequest::_internal_documents_size() const {
  7853. return _internal_documents().size();
  7854. }
  7855. inline int BatchGetDocumentsRequest::documents_size() const {
  7856. return _internal_documents_size();
  7857. }
  7858. inline void BatchGetDocumentsRequest::clear_documents() {
  7859. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7860. _impl_.documents_.Clear();
  7861. }
  7862. inline std::string* BatchGetDocumentsRequest::add_documents()
  7863. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7864. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7865. std::string* _s = _internal_mutable_documents()->Add();
  7866. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7867. return _s;
  7868. }
  7869. inline const std::string& BatchGetDocumentsRequest::documents(int index) const
  7870. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7871. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7872. return _internal_documents().Get(index);
  7873. }
  7874. inline std::string* BatchGetDocumentsRequest::mutable_documents(int index)
  7875. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7876. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7877. return _internal_mutable_documents()->Mutable(index);
  7878. }
  7879. inline void BatchGetDocumentsRequest::set_documents(int index, const std::string& value) {
  7880. _internal_mutable_documents()->Mutable(index)->assign(value);
  7881. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7882. }
  7883. inline void BatchGetDocumentsRequest::set_documents(int index, std::string&& value) {
  7884. _internal_mutable_documents()->Mutable(index)->assign(std::move(value));
  7885. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7886. }
  7887. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value) {
  7888. ABSL_DCHECK(value != nullptr);
  7889. _internal_mutable_documents()->Mutable(index)->assign(value);
  7890. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7891. }
  7892. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value,
  7893. std::size_t size) {
  7894. _internal_mutable_documents()->Mutable(index)->assign(
  7895. reinterpret_cast<const char*>(value), size);
  7896. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7897. }
  7898. inline void BatchGetDocumentsRequest::set_documents(int index, absl::string_view value) {
  7899. _internal_mutable_documents()->Mutable(index)->assign(value.data(),
  7900. value.size());
  7901. // @@protoc_insertion_point(field_set_string_piece:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7902. }
  7903. inline void BatchGetDocumentsRequest::add_documents(const std::string& value) {
  7904. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7905. _internal_mutable_documents()->Add()->assign(value);
  7906. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7907. }
  7908. inline void BatchGetDocumentsRequest::add_documents(std::string&& value) {
  7909. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7910. _internal_mutable_documents()->Add(std::move(value));
  7911. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7912. }
  7913. inline void BatchGetDocumentsRequest::add_documents(const char* value) {
  7914. ABSL_DCHECK(value != nullptr);
  7915. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7916. _internal_mutable_documents()->Add()->assign(value);
  7917. // @@protoc_insertion_point(field_add_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7918. }
  7919. inline void BatchGetDocumentsRequest::add_documents(const char* value, std::size_t size) {
  7920. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7921. _internal_mutable_documents()->Add()->assign(
  7922. reinterpret_cast<const char*>(value), size);
  7923. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7924. }
  7925. inline void BatchGetDocumentsRequest::add_documents(absl::string_view value) {
  7926. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7927. _internal_mutable_documents()->Add()->assign(value.data(), value.size());
  7928. // @@protoc_insertion_point(field_add_string_piece:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7929. }
  7930. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  7931. BatchGetDocumentsRequest::documents() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7932. // @@protoc_insertion_point(field_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7933. return _internal_documents();
  7934. }
  7935. inline ::google::protobuf::RepeatedPtrField<std::string>*
  7936. BatchGetDocumentsRequest::mutable_documents() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7937. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  7938. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7939. return _internal_mutable_documents();
  7940. }
  7941. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  7942. BatchGetDocumentsRequest::_internal_documents() const {
  7943. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7944. return _impl_.documents_;
  7945. }
  7946. inline ::google::protobuf::RepeatedPtrField<std::string>*
  7947. BatchGetDocumentsRequest::_internal_mutable_documents() {
  7948. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7949. return &_impl_.documents_;
  7950. }
  7951. // .google.firestore.v1.DocumentMask mask = 3;
  7952. inline bool BatchGetDocumentsRequest::has_mask() const {
  7953. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  7954. PROTOBUF_ASSUME(!value || _impl_.mask_ != nullptr);
  7955. return value;
  7956. }
  7957. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::_internal_mask() const {
  7958. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  7959. const ::google::firestore::v1::DocumentMask* p = _impl_.mask_;
  7960. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::DocumentMask&>(::google::firestore::v1::_DocumentMask_default_instance_);
  7961. }
  7962. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::mask() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  7963. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.mask)
  7964. return _internal_mask();
  7965. }
  7966. inline void BatchGetDocumentsRequest::unsafe_arena_set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  7967. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7968. if (GetArena() == nullptr) {
  7969. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  7970. }
  7971. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  7972. if (value != nullptr) {
  7973. _impl_._has_bits_[0] |= 0x00000001u;
  7974. } else {
  7975. _impl_._has_bits_[0] &= ~0x00000001u;
  7976. }
  7977. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.mask)
  7978. }
  7979. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::release_mask() {
  7980. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7981. _impl_._has_bits_[0] &= ~0x00000001u;
  7982. ::google::firestore::v1::DocumentMask* released = _impl_.mask_;
  7983. _impl_.mask_ = nullptr;
  7984. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  7985. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  7986. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7987. if (GetArena() == nullptr) {
  7988. delete old;
  7989. }
  7990. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  7991. if (GetArena() != nullptr) {
  7992. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  7993. }
  7994. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  7995. return released;
  7996. }
  7997. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::unsafe_arena_release_mask() {
  7998. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  7999. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.mask)
  8000. _impl_._has_bits_[0] &= ~0x00000001u;
  8001. ::google::firestore::v1::DocumentMask* temp = _impl_.mask_;
  8002. _impl_.mask_ = nullptr;
  8003. return temp;
  8004. }
  8005. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::_internal_mutable_mask() {
  8006. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8007. _impl_._has_bits_[0] |= 0x00000001u;
  8008. if (_impl_.mask_ == nullptr) {
  8009. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArena());
  8010. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(p);
  8011. }
  8012. return _impl_.mask_;
  8013. }
  8014. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::mutable_mask() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8015. ::google::firestore::v1::DocumentMask* _msg = _internal_mutable_mask();
  8016. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.mask)
  8017. return _msg;
  8018. }
  8019. inline void BatchGetDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* value) {
  8020. ::google::protobuf::Arena* message_arena = GetArena();
  8021. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8022. if (message_arena == nullptr) {
  8023. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mask_);
  8024. }
  8025. if (value != nullptr) {
  8026. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  8027. if (message_arena != submessage_arena) {
  8028. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  8029. }
  8030. _impl_._has_bits_[0] |= 0x00000001u;
  8031. } else {
  8032. _impl_._has_bits_[0] &= ~0x00000001u;
  8033. }
  8034. _impl_.mask_ = reinterpret_cast<::google::firestore::v1::DocumentMask*>(value);
  8035. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.mask)
  8036. }
  8037. // bytes transaction = 4;
  8038. inline bool BatchGetDocumentsRequest::has_transaction() const {
  8039. return consistency_selector_case() == kTransaction;
  8040. }
  8041. inline void BatchGetDocumentsRequest::set_has_transaction() {
  8042. _impl_._oneof_case_[0] = kTransaction;
  8043. }
  8044. inline void BatchGetDocumentsRequest::clear_transaction() {
  8045. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8046. if (consistency_selector_case() == kTransaction) {
  8047. _impl_.consistency_selector_.transaction_.Destroy();
  8048. clear_has_consistency_selector();
  8049. }
  8050. }
  8051. inline const std::string& BatchGetDocumentsRequest::transaction() const
  8052. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8053. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  8054. return _internal_transaction();
  8055. }
  8056. template <typename Arg_, typename... Args_>
  8057. inline PROTOBUF_ALWAYS_INLINE void BatchGetDocumentsRequest::set_transaction(Arg_&& arg,
  8058. Args_... args) {
  8059. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8060. if (consistency_selector_case() != kTransaction) {
  8061. clear_consistency_selector();
  8062. set_has_transaction();
  8063. _impl_.consistency_selector_.transaction_.InitDefault();
  8064. }
  8065. _impl_.consistency_selector_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  8066. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  8067. }
  8068. inline std::string* BatchGetDocumentsRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8069. std::string* _s = _internal_mutable_transaction();
  8070. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  8071. return _s;
  8072. }
  8073. inline const std::string& BatchGetDocumentsRequest::_internal_transaction() const {
  8074. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8075. if (consistency_selector_case() != kTransaction) {
  8076. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  8077. }
  8078. return _impl_.consistency_selector_.transaction_.Get();
  8079. }
  8080. inline void BatchGetDocumentsRequest::_internal_set_transaction(const std::string& value) {
  8081. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8082. if (consistency_selector_case() != kTransaction) {
  8083. clear_consistency_selector();
  8084. set_has_transaction();
  8085. _impl_.consistency_selector_.transaction_.InitDefault();
  8086. }
  8087. _impl_.consistency_selector_.transaction_.Set(value, GetArena());
  8088. }
  8089. inline std::string* BatchGetDocumentsRequest::_internal_mutable_transaction() {
  8090. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8091. if (consistency_selector_case() != kTransaction) {
  8092. clear_consistency_selector();
  8093. set_has_transaction();
  8094. _impl_.consistency_selector_.transaction_.InitDefault();
  8095. }
  8096. return _impl_.consistency_selector_.transaction_.Mutable( GetArena());
  8097. }
  8098. inline std::string* BatchGetDocumentsRequest::release_transaction() {
  8099. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8100. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  8101. if (consistency_selector_case() != kTransaction) {
  8102. return nullptr;
  8103. }
  8104. clear_has_consistency_selector();
  8105. return _impl_.consistency_selector_.transaction_.Release();
  8106. }
  8107. inline void BatchGetDocumentsRequest::set_allocated_transaction(std::string* value) {
  8108. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8109. if (has_consistency_selector()) {
  8110. clear_consistency_selector();
  8111. }
  8112. if (value != nullptr) {
  8113. set_has_transaction();
  8114. _impl_.consistency_selector_.transaction_.InitAllocated(value, GetArena());
  8115. }
  8116. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  8117. }
  8118. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  8119. inline bool BatchGetDocumentsRequest::has_new_transaction() const {
  8120. return consistency_selector_case() == kNewTransaction;
  8121. }
  8122. inline bool BatchGetDocumentsRequest::_internal_has_new_transaction() const {
  8123. return consistency_selector_case() == kNewTransaction;
  8124. }
  8125. inline void BatchGetDocumentsRequest::set_has_new_transaction() {
  8126. _impl_._oneof_case_[0] = kNewTransaction;
  8127. }
  8128. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::release_new_transaction() {
  8129. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  8130. if (consistency_selector_case() == kNewTransaction) {
  8131. clear_has_consistency_selector();
  8132. auto* temp = _impl_.consistency_selector_.new_transaction_;
  8133. if (GetArena() != nullptr) {
  8134. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  8135. }
  8136. _impl_.consistency_selector_.new_transaction_ = nullptr;
  8137. return temp;
  8138. } else {
  8139. return nullptr;
  8140. }
  8141. }
  8142. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::_internal_new_transaction() const {
  8143. return consistency_selector_case() == kNewTransaction ? *_impl_.consistency_selector_.new_transaction_ : reinterpret_cast<::google::firestore::v1::TransactionOptions&>(::google::firestore::v1::_TransactionOptions_default_instance_);
  8144. }
  8145. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::new_transaction() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8146. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  8147. return _internal_new_transaction();
  8148. }
  8149. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::unsafe_arena_release_new_transaction() {
  8150. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  8151. if (consistency_selector_case() == kNewTransaction) {
  8152. clear_has_consistency_selector();
  8153. auto* temp = _impl_.consistency_selector_.new_transaction_;
  8154. _impl_.consistency_selector_.new_transaction_ = nullptr;
  8155. return temp;
  8156. } else {
  8157. return nullptr;
  8158. }
  8159. }
  8160. inline void BatchGetDocumentsRequest::unsafe_arena_set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value) {
  8161. // We rely on the oneof clear method to free the earlier contents
  8162. // of this oneof. We can directly use the pointer we're given to
  8163. // set the new value.
  8164. clear_consistency_selector();
  8165. if (value) {
  8166. set_has_new_transaction();
  8167. _impl_.consistency_selector_.new_transaction_ = value;
  8168. }
  8169. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  8170. }
  8171. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::_internal_mutable_new_transaction() {
  8172. if (consistency_selector_case() != kNewTransaction) {
  8173. clear_consistency_selector();
  8174. set_has_new_transaction();
  8175. _impl_.consistency_selector_.new_transaction_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(GetArena());
  8176. }
  8177. return _impl_.consistency_selector_.new_transaction_;
  8178. }
  8179. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::mutable_new_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8180. ::google::firestore::v1::TransactionOptions* _msg = _internal_mutable_new_transaction();
  8181. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  8182. return _msg;
  8183. }
  8184. // .google.protobuf.Timestamp read_time = 7;
  8185. inline bool BatchGetDocumentsRequest::has_read_time() const {
  8186. return consistency_selector_case() == kReadTime;
  8187. }
  8188. inline bool BatchGetDocumentsRequest::_internal_has_read_time() const {
  8189. return consistency_selector_case() == kReadTime;
  8190. }
  8191. inline void BatchGetDocumentsRequest::set_has_read_time() {
  8192. _impl_._oneof_case_[0] = kReadTime;
  8193. }
  8194. inline ::google::protobuf::Timestamp* BatchGetDocumentsRequest::release_read_time() {
  8195. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  8196. if (consistency_selector_case() == kReadTime) {
  8197. clear_has_consistency_selector();
  8198. auto* temp = _impl_.consistency_selector_.read_time_;
  8199. if (GetArena() != nullptr) {
  8200. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  8201. }
  8202. _impl_.consistency_selector_.read_time_ = nullptr;
  8203. return temp;
  8204. } else {
  8205. return nullptr;
  8206. }
  8207. }
  8208. inline const ::google::protobuf::Timestamp& BatchGetDocumentsRequest::_internal_read_time() const {
  8209. return consistency_selector_case() == kReadTime ? *_impl_.consistency_selector_.read_time_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  8210. }
  8211. inline const ::google::protobuf::Timestamp& BatchGetDocumentsRequest::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8212. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  8213. return _internal_read_time();
  8214. }
  8215. inline ::google::protobuf::Timestamp* BatchGetDocumentsRequest::unsafe_arena_release_read_time() {
  8216. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  8217. if (consistency_selector_case() == kReadTime) {
  8218. clear_has_consistency_selector();
  8219. auto* temp = _impl_.consistency_selector_.read_time_;
  8220. _impl_.consistency_selector_.read_time_ = nullptr;
  8221. return temp;
  8222. } else {
  8223. return nullptr;
  8224. }
  8225. }
  8226. inline void BatchGetDocumentsRequest::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  8227. // We rely on the oneof clear method to free the earlier contents
  8228. // of this oneof. We can directly use the pointer we're given to
  8229. // set the new value.
  8230. clear_consistency_selector();
  8231. if (value) {
  8232. set_has_read_time();
  8233. _impl_.consistency_selector_.read_time_ = value;
  8234. }
  8235. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  8236. }
  8237. inline ::google::protobuf::Timestamp* BatchGetDocumentsRequest::_internal_mutable_read_time() {
  8238. if (consistency_selector_case() != kReadTime) {
  8239. clear_consistency_selector();
  8240. set_has_read_time();
  8241. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  8242. }
  8243. return _impl_.consistency_selector_.read_time_;
  8244. }
  8245. inline ::google::protobuf::Timestamp* BatchGetDocumentsRequest::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8246. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  8247. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  8248. return _msg;
  8249. }
  8250. inline bool BatchGetDocumentsRequest::has_consistency_selector() const {
  8251. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  8252. }
  8253. inline void BatchGetDocumentsRequest::clear_has_consistency_selector() {
  8254. _impl_._oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  8255. }
  8256. inline BatchGetDocumentsRequest::ConsistencySelectorCase BatchGetDocumentsRequest::consistency_selector_case() const {
  8257. return BatchGetDocumentsRequest::ConsistencySelectorCase(_impl_._oneof_case_[0]);
  8258. }
  8259. // -------------------------------------------------------------------
  8260. // BatchGetDocumentsResponse
  8261. // .google.firestore.v1.Document found = 1;
  8262. inline bool BatchGetDocumentsResponse::has_found() const {
  8263. return result_case() == kFound;
  8264. }
  8265. inline bool BatchGetDocumentsResponse::_internal_has_found() const {
  8266. return result_case() == kFound;
  8267. }
  8268. inline void BatchGetDocumentsResponse::set_has_found() {
  8269. _impl_._oneof_case_[0] = kFound;
  8270. }
  8271. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::release_found() {
  8272. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.found)
  8273. if (result_case() == kFound) {
  8274. clear_has_result();
  8275. auto* temp = _impl_.result_.found_;
  8276. if (GetArena() != nullptr) {
  8277. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  8278. }
  8279. _impl_.result_.found_ = nullptr;
  8280. return temp;
  8281. } else {
  8282. return nullptr;
  8283. }
  8284. }
  8285. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::_internal_found() const {
  8286. return result_case() == kFound ? *_impl_.result_.found_ : reinterpret_cast<::google::firestore::v1::Document&>(::google::firestore::v1::_Document_default_instance_);
  8287. }
  8288. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::found() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8289. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.found)
  8290. return _internal_found();
  8291. }
  8292. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::unsafe_arena_release_found() {
  8293. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.BatchGetDocumentsResponse.found)
  8294. if (result_case() == kFound) {
  8295. clear_has_result();
  8296. auto* temp = _impl_.result_.found_;
  8297. _impl_.result_.found_ = nullptr;
  8298. return temp;
  8299. } else {
  8300. return nullptr;
  8301. }
  8302. }
  8303. inline void BatchGetDocumentsResponse::unsafe_arena_set_allocated_found(::google::firestore::v1::Document* value) {
  8304. // We rely on the oneof clear method to free the earlier contents
  8305. // of this oneof. We can directly use the pointer we're given to
  8306. // set the new value.
  8307. clear_result();
  8308. if (value) {
  8309. set_has_found();
  8310. _impl_.result_.found_ = value;
  8311. }
  8312. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.found)
  8313. }
  8314. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::_internal_mutable_found() {
  8315. if (result_case() != kFound) {
  8316. clear_result();
  8317. set_has_found();
  8318. _impl_.result_.found_ = CreateMaybeMessage<::google::firestore::v1::Document>(GetArena());
  8319. }
  8320. return _impl_.result_.found_;
  8321. }
  8322. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::mutable_found() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8323. ::google::firestore::v1::Document* _msg = _internal_mutable_found();
  8324. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.found)
  8325. return _msg;
  8326. }
  8327. // string missing = 2;
  8328. inline bool BatchGetDocumentsResponse::has_missing() const {
  8329. return result_case() == kMissing;
  8330. }
  8331. inline void BatchGetDocumentsResponse::set_has_missing() {
  8332. _impl_._oneof_case_[0] = kMissing;
  8333. }
  8334. inline void BatchGetDocumentsResponse::clear_missing() {
  8335. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8336. if (result_case() == kMissing) {
  8337. _impl_.result_.missing_.Destroy();
  8338. clear_has_result();
  8339. }
  8340. }
  8341. inline const std::string& BatchGetDocumentsResponse::missing() const
  8342. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8343. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.missing)
  8344. return _internal_missing();
  8345. }
  8346. template <typename Arg_, typename... Args_>
  8347. inline PROTOBUF_ALWAYS_INLINE void BatchGetDocumentsResponse::set_missing(Arg_&& arg,
  8348. Args_... args) {
  8349. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8350. if (result_case() != kMissing) {
  8351. clear_result();
  8352. set_has_missing();
  8353. _impl_.result_.missing_.InitDefault();
  8354. }
  8355. _impl_.result_.missing_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  8356. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  8357. }
  8358. inline std::string* BatchGetDocumentsResponse::mutable_missing() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8359. std::string* _s = _internal_mutable_missing();
  8360. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.missing)
  8361. return _s;
  8362. }
  8363. inline const std::string& BatchGetDocumentsResponse::_internal_missing() const {
  8364. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8365. if (result_case() != kMissing) {
  8366. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  8367. }
  8368. return _impl_.result_.missing_.Get();
  8369. }
  8370. inline void BatchGetDocumentsResponse::_internal_set_missing(const std::string& value) {
  8371. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8372. if (result_case() != kMissing) {
  8373. clear_result();
  8374. set_has_missing();
  8375. _impl_.result_.missing_.InitDefault();
  8376. }
  8377. _impl_.result_.missing_.Set(value, GetArena());
  8378. }
  8379. inline std::string* BatchGetDocumentsResponse::_internal_mutable_missing() {
  8380. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8381. if (result_case() != kMissing) {
  8382. clear_result();
  8383. set_has_missing();
  8384. _impl_.result_.missing_.InitDefault();
  8385. }
  8386. return _impl_.result_.missing_.Mutable( GetArena());
  8387. }
  8388. inline std::string* BatchGetDocumentsResponse::release_missing() {
  8389. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8390. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.missing)
  8391. if (result_case() != kMissing) {
  8392. return nullptr;
  8393. }
  8394. clear_has_result();
  8395. return _impl_.result_.missing_.Release();
  8396. }
  8397. inline void BatchGetDocumentsResponse::set_allocated_missing(std::string* value) {
  8398. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8399. if (has_result()) {
  8400. clear_result();
  8401. }
  8402. if (value != nullptr) {
  8403. set_has_missing();
  8404. _impl_.result_.missing_.InitAllocated(value, GetArena());
  8405. }
  8406. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.missing)
  8407. }
  8408. // bytes transaction = 3;
  8409. inline void BatchGetDocumentsResponse::clear_transaction() {
  8410. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8411. _impl_.transaction_.ClearToEmpty();
  8412. }
  8413. inline const std::string& BatchGetDocumentsResponse::transaction() const
  8414. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8415. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  8416. return _internal_transaction();
  8417. }
  8418. template <typename Arg_, typename... Args_>
  8419. inline PROTOBUF_ALWAYS_INLINE void BatchGetDocumentsResponse::set_transaction(Arg_&& arg,
  8420. Args_... args) {
  8421. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8422. ;
  8423. _impl_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  8424. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  8425. }
  8426. inline std::string* BatchGetDocumentsResponse::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8427. std::string* _s = _internal_mutable_transaction();
  8428. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  8429. return _s;
  8430. }
  8431. inline const std::string& BatchGetDocumentsResponse::_internal_transaction() const {
  8432. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8433. return _impl_.transaction_.Get();
  8434. }
  8435. inline void BatchGetDocumentsResponse::_internal_set_transaction(const std::string& value) {
  8436. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8437. ;
  8438. _impl_.transaction_.Set(value, GetArena());
  8439. }
  8440. inline std::string* BatchGetDocumentsResponse::_internal_mutable_transaction() {
  8441. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8442. ;
  8443. return _impl_.transaction_.Mutable( GetArena());
  8444. }
  8445. inline std::string* BatchGetDocumentsResponse::release_transaction() {
  8446. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8447. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  8448. return _impl_.transaction_.Release();
  8449. }
  8450. inline void BatchGetDocumentsResponse::set_allocated_transaction(std::string* value) {
  8451. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8452. _impl_.transaction_.SetAllocated(value, GetArena());
  8453. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8454. if (_impl_.transaction_.IsDefault()) {
  8455. _impl_.transaction_.Set("", GetArena());
  8456. }
  8457. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8458. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  8459. }
  8460. // .google.protobuf.Timestamp read_time = 4;
  8461. inline bool BatchGetDocumentsResponse::has_read_time() const {
  8462. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  8463. PROTOBUF_ASSUME(!value || _impl_.read_time_ != nullptr);
  8464. return value;
  8465. }
  8466. inline const ::google::protobuf::Timestamp& BatchGetDocumentsResponse::_internal_read_time() const {
  8467. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8468. const ::google::protobuf::Timestamp* p = _impl_.read_time_;
  8469. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  8470. }
  8471. inline const ::google::protobuf::Timestamp& BatchGetDocumentsResponse::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8472. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  8473. return _internal_read_time();
  8474. }
  8475. inline void BatchGetDocumentsResponse::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  8476. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8477. if (GetArena() == nullptr) {
  8478. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  8479. }
  8480. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  8481. if (value != nullptr) {
  8482. _impl_._has_bits_[0] |= 0x00000001u;
  8483. } else {
  8484. _impl_._has_bits_[0] &= ~0x00000001u;
  8485. }
  8486. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  8487. }
  8488. inline ::google::protobuf::Timestamp* BatchGetDocumentsResponse::release_read_time() {
  8489. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8490. _impl_._has_bits_[0] &= ~0x00000001u;
  8491. ::google::protobuf::Timestamp* released = _impl_.read_time_;
  8492. _impl_.read_time_ = nullptr;
  8493. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8494. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  8495. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  8496. if (GetArena() == nullptr) {
  8497. delete old;
  8498. }
  8499. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8500. if (GetArena() != nullptr) {
  8501. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  8502. }
  8503. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8504. return released;
  8505. }
  8506. inline ::google::protobuf::Timestamp* BatchGetDocumentsResponse::unsafe_arena_release_read_time() {
  8507. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8508. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  8509. _impl_._has_bits_[0] &= ~0x00000001u;
  8510. ::google::protobuf::Timestamp* temp = _impl_.read_time_;
  8511. _impl_.read_time_ = nullptr;
  8512. return temp;
  8513. }
  8514. inline ::google::protobuf::Timestamp* BatchGetDocumentsResponse::_internal_mutable_read_time() {
  8515. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8516. _impl_._has_bits_[0] |= 0x00000001u;
  8517. if (_impl_.read_time_ == nullptr) {
  8518. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  8519. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  8520. }
  8521. return _impl_.read_time_;
  8522. }
  8523. inline ::google::protobuf::Timestamp* BatchGetDocumentsResponse::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8524. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  8525. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  8526. return _msg;
  8527. }
  8528. inline void BatchGetDocumentsResponse::set_allocated_read_time(::google::protobuf::Timestamp* value) {
  8529. ::google::protobuf::Arena* message_arena = GetArena();
  8530. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8531. if (message_arena == nullptr) {
  8532. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  8533. }
  8534. if (value != nullptr) {
  8535. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  8536. if (message_arena != submessage_arena) {
  8537. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  8538. }
  8539. _impl_._has_bits_[0] |= 0x00000001u;
  8540. } else {
  8541. _impl_._has_bits_[0] &= ~0x00000001u;
  8542. }
  8543. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  8544. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  8545. }
  8546. inline bool BatchGetDocumentsResponse::has_result() const {
  8547. return result_case() != RESULT_NOT_SET;
  8548. }
  8549. inline void BatchGetDocumentsResponse::clear_has_result() {
  8550. _impl_._oneof_case_[0] = RESULT_NOT_SET;
  8551. }
  8552. inline BatchGetDocumentsResponse::ResultCase BatchGetDocumentsResponse::result_case() const {
  8553. return BatchGetDocumentsResponse::ResultCase(_impl_._oneof_case_[0]);
  8554. }
  8555. // -------------------------------------------------------------------
  8556. // BeginTransactionRequest
  8557. // string database = 1;
  8558. inline void BeginTransactionRequest::clear_database() {
  8559. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8560. _impl_.database_.ClearToEmpty();
  8561. }
  8562. inline const std::string& BeginTransactionRequest::database() const
  8563. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8564. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.database)
  8565. return _internal_database();
  8566. }
  8567. template <typename Arg_, typename... Args_>
  8568. inline PROTOBUF_ALWAYS_INLINE void BeginTransactionRequest::set_database(Arg_&& arg,
  8569. Args_... args) {
  8570. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8571. ;
  8572. _impl_.database_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  8573. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionRequest.database)
  8574. }
  8575. inline std::string* BeginTransactionRequest::mutable_database() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8576. std::string* _s = _internal_mutable_database();
  8577. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.database)
  8578. return _s;
  8579. }
  8580. inline const std::string& BeginTransactionRequest::_internal_database() const {
  8581. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8582. return _impl_.database_.Get();
  8583. }
  8584. inline void BeginTransactionRequest::_internal_set_database(const std::string& value) {
  8585. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8586. ;
  8587. _impl_.database_.Set(value, GetArena());
  8588. }
  8589. inline std::string* BeginTransactionRequest::_internal_mutable_database() {
  8590. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8591. ;
  8592. return _impl_.database_.Mutable( GetArena());
  8593. }
  8594. inline std::string* BeginTransactionRequest::release_database() {
  8595. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8596. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.database)
  8597. return _impl_.database_.Release();
  8598. }
  8599. inline void BeginTransactionRequest::set_allocated_database(std::string* value) {
  8600. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8601. _impl_.database_.SetAllocated(value, GetArena());
  8602. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8603. if (_impl_.database_.IsDefault()) {
  8604. _impl_.database_.Set("", GetArena());
  8605. }
  8606. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8607. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.database)
  8608. }
  8609. // .google.firestore.v1.TransactionOptions options = 2;
  8610. inline bool BeginTransactionRequest::has_options() const {
  8611. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  8612. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  8613. return value;
  8614. }
  8615. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::_internal_options() const {
  8616. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8617. const ::google::firestore::v1::TransactionOptions* p = _impl_.options_;
  8618. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::TransactionOptions&>(::google::firestore::v1::_TransactionOptions_default_instance_);
  8619. }
  8620. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8621. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.options)
  8622. return _internal_options();
  8623. }
  8624. inline void BeginTransactionRequest::unsafe_arena_set_allocated_options(::google::firestore::v1::TransactionOptions* value) {
  8625. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8626. if (GetArena() == nullptr) {
  8627. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.options_);
  8628. }
  8629. _impl_.options_ = reinterpret_cast<::google::firestore::v1::TransactionOptions*>(value);
  8630. if (value != nullptr) {
  8631. _impl_._has_bits_[0] |= 0x00000001u;
  8632. } else {
  8633. _impl_._has_bits_[0] &= ~0x00000001u;
  8634. }
  8635. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.BeginTransactionRequest.options)
  8636. }
  8637. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::release_options() {
  8638. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8639. _impl_._has_bits_[0] &= ~0x00000001u;
  8640. ::google::firestore::v1::TransactionOptions* released = _impl_.options_;
  8641. _impl_.options_ = nullptr;
  8642. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8643. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  8644. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  8645. if (GetArena() == nullptr) {
  8646. delete old;
  8647. }
  8648. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8649. if (GetArena() != nullptr) {
  8650. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  8651. }
  8652. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8653. return released;
  8654. }
  8655. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::unsafe_arena_release_options() {
  8656. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8657. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.options)
  8658. _impl_._has_bits_[0] &= ~0x00000001u;
  8659. ::google::firestore::v1::TransactionOptions* temp = _impl_.options_;
  8660. _impl_.options_ = nullptr;
  8661. return temp;
  8662. }
  8663. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::_internal_mutable_options() {
  8664. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8665. _impl_._has_bits_[0] |= 0x00000001u;
  8666. if (_impl_.options_ == nullptr) {
  8667. auto* p = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(GetArena());
  8668. _impl_.options_ = reinterpret_cast<::google::firestore::v1::TransactionOptions*>(p);
  8669. }
  8670. return _impl_.options_;
  8671. }
  8672. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8673. ::google::firestore::v1::TransactionOptions* _msg = _internal_mutable_options();
  8674. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.options)
  8675. return _msg;
  8676. }
  8677. inline void BeginTransactionRequest::set_allocated_options(::google::firestore::v1::TransactionOptions* value) {
  8678. ::google::protobuf::Arena* message_arena = GetArena();
  8679. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8680. if (message_arena == nullptr) {
  8681. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.options_);
  8682. }
  8683. if (value != nullptr) {
  8684. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  8685. if (message_arena != submessage_arena) {
  8686. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  8687. }
  8688. _impl_._has_bits_[0] |= 0x00000001u;
  8689. } else {
  8690. _impl_._has_bits_[0] &= ~0x00000001u;
  8691. }
  8692. _impl_.options_ = reinterpret_cast<::google::firestore::v1::TransactionOptions*>(value);
  8693. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.options)
  8694. }
  8695. // -------------------------------------------------------------------
  8696. // BeginTransactionResponse
  8697. // bytes transaction = 1;
  8698. inline void BeginTransactionResponse::clear_transaction() {
  8699. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8700. _impl_.transaction_.ClearToEmpty();
  8701. }
  8702. inline const std::string& BeginTransactionResponse::transaction() const
  8703. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8704. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionResponse.transaction)
  8705. return _internal_transaction();
  8706. }
  8707. template <typename Arg_, typename... Args_>
  8708. inline PROTOBUF_ALWAYS_INLINE void BeginTransactionResponse::set_transaction(Arg_&& arg,
  8709. Args_... args) {
  8710. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8711. ;
  8712. _impl_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  8713. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionResponse.transaction)
  8714. }
  8715. inline std::string* BeginTransactionResponse::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8716. std::string* _s = _internal_mutable_transaction();
  8717. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionResponse.transaction)
  8718. return _s;
  8719. }
  8720. inline const std::string& BeginTransactionResponse::_internal_transaction() const {
  8721. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8722. return _impl_.transaction_.Get();
  8723. }
  8724. inline void BeginTransactionResponse::_internal_set_transaction(const std::string& value) {
  8725. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8726. ;
  8727. _impl_.transaction_.Set(value, GetArena());
  8728. }
  8729. inline std::string* BeginTransactionResponse::_internal_mutable_transaction() {
  8730. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8731. ;
  8732. return _impl_.transaction_.Mutable( GetArena());
  8733. }
  8734. inline std::string* BeginTransactionResponse::release_transaction() {
  8735. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8736. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionResponse.transaction)
  8737. return _impl_.transaction_.Release();
  8738. }
  8739. inline void BeginTransactionResponse::set_allocated_transaction(std::string* value) {
  8740. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8741. _impl_.transaction_.SetAllocated(value, GetArena());
  8742. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8743. if (_impl_.transaction_.IsDefault()) {
  8744. _impl_.transaction_.Set("", GetArena());
  8745. }
  8746. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8747. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionResponse.transaction)
  8748. }
  8749. // -------------------------------------------------------------------
  8750. // CommitRequest
  8751. // string database = 1;
  8752. inline void CommitRequest::clear_database() {
  8753. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8754. _impl_.database_.ClearToEmpty();
  8755. }
  8756. inline const std::string& CommitRequest::database() const
  8757. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8758. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.database)
  8759. return _internal_database();
  8760. }
  8761. template <typename Arg_, typename... Args_>
  8762. inline PROTOBUF_ALWAYS_INLINE void CommitRequest::set_database(Arg_&& arg,
  8763. Args_... args) {
  8764. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8765. ;
  8766. _impl_.database_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  8767. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.database)
  8768. }
  8769. inline std::string* CommitRequest::mutable_database() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8770. std::string* _s = _internal_mutable_database();
  8771. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.database)
  8772. return _s;
  8773. }
  8774. inline const std::string& CommitRequest::_internal_database() const {
  8775. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8776. return _impl_.database_.Get();
  8777. }
  8778. inline void CommitRequest::_internal_set_database(const std::string& value) {
  8779. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8780. ;
  8781. _impl_.database_.Set(value, GetArena());
  8782. }
  8783. inline std::string* CommitRequest::_internal_mutable_database() {
  8784. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8785. ;
  8786. return _impl_.database_.Mutable( GetArena());
  8787. }
  8788. inline std::string* CommitRequest::release_database() {
  8789. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8790. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.database)
  8791. return _impl_.database_.Release();
  8792. }
  8793. inline void CommitRequest::set_allocated_database(std::string* value) {
  8794. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8795. _impl_.database_.SetAllocated(value, GetArena());
  8796. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8797. if (_impl_.database_.IsDefault()) {
  8798. _impl_.database_.Set("", GetArena());
  8799. }
  8800. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8801. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.database)
  8802. }
  8803. // repeated .google.firestore.v1.Write writes = 2;
  8804. inline int CommitRequest::_internal_writes_size() const {
  8805. return _internal_writes().size();
  8806. }
  8807. inline int CommitRequest::writes_size() const {
  8808. return _internal_writes_size();
  8809. }
  8810. inline ::google::firestore::v1::Write* CommitRequest::mutable_writes(int index)
  8811. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8812. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.writes)
  8813. return _internal_mutable_writes()->Mutable(index);
  8814. }
  8815. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>* CommitRequest::mutable_writes()
  8816. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8817. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitRequest.writes)
  8818. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8819. return _internal_mutable_writes();
  8820. }
  8821. inline const ::google::firestore::v1::Write& CommitRequest::writes(int index) const
  8822. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8823. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.writes)
  8824. return _internal_writes().Get(index);
  8825. }
  8826. inline ::google::firestore::v1::Write* CommitRequest::add_writes() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8827. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8828. ::google::firestore::v1::Write* _add = _internal_mutable_writes()->Add();
  8829. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitRequest.writes)
  8830. return _add;
  8831. }
  8832. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>& CommitRequest::writes() const
  8833. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8834. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitRequest.writes)
  8835. return _internal_writes();
  8836. }
  8837. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>&
  8838. CommitRequest::_internal_writes() const {
  8839. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8840. return _impl_.writes_;
  8841. }
  8842. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>*
  8843. CommitRequest::_internal_mutable_writes() {
  8844. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8845. return &_impl_.writes_;
  8846. }
  8847. // bytes transaction = 3;
  8848. inline void CommitRequest::clear_transaction() {
  8849. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8850. _impl_.transaction_.ClearToEmpty();
  8851. }
  8852. inline const std::string& CommitRequest::transaction() const
  8853. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8854. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.transaction)
  8855. return _internal_transaction();
  8856. }
  8857. template <typename Arg_, typename... Args_>
  8858. inline PROTOBUF_ALWAYS_INLINE void CommitRequest::set_transaction(Arg_&& arg,
  8859. Args_... args) {
  8860. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8861. ;
  8862. _impl_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  8863. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.transaction)
  8864. }
  8865. inline std::string* CommitRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8866. std::string* _s = _internal_mutable_transaction();
  8867. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.transaction)
  8868. return _s;
  8869. }
  8870. inline const std::string& CommitRequest::_internal_transaction() const {
  8871. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8872. return _impl_.transaction_.Get();
  8873. }
  8874. inline void CommitRequest::_internal_set_transaction(const std::string& value) {
  8875. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8876. ;
  8877. _impl_.transaction_.Set(value, GetArena());
  8878. }
  8879. inline std::string* CommitRequest::_internal_mutable_transaction() {
  8880. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8881. ;
  8882. return _impl_.transaction_.Mutable( GetArena());
  8883. }
  8884. inline std::string* CommitRequest::release_transaction() {
  8885. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8886. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.transaction)
  8887. return _impl_.transaction_.Release();
  8888. }
  8889. inline void CommitRequest::set_allocated_transaction(std::string* value) {
  8890. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8891. _impl_.transaction_.SetAllocated(value, GetArena());
  8892. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8893. if (_impl_.transaction_.IsDefault()) {
  8894. _impl_.transaction_.Set("", GetArena());
  8895. }
  8896. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8897. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.transaction)
  8898. }
  8899. // -------------------------------------------------------------------
  8900. // CommitResponse
  8901. // repeated .google.firestore.v1.WriteResult write_results = 1;
  8902. inline int CommitResponse::_internal_write_results_size() const {
  8903. return _internal_write_results().size();
  8904. }
  8905. inline int CommitResponse::write_results_size() const {
  8906. return _internal_write_results_size();
  8907. }
  8908. inline ::google::firestore::v1::WriteResult* CommitResponse::mutable_write_results(int index)
  8909. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8910. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.write_results)
  8911. return _internal_mutable_write_results()->Mutable(index);
  8912. }
  8913. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>* CommitResponse::mutable_write_results()
  8914. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8915. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitResponse.write_results)
  8916. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8917. return _internal_mutable_write_results();
  8918. }
  8919. inline const ::google::firestore::v1::WriteResult& CommitResponse::write_results(int index) const
  8920. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8921. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.write_results)
  8922. return _internal_write_results().Get(index);
  8923. }
  8924. inline ::google::firestore::v1::WriteResult* CommitResponse::add_write_results() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8925. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8926. ::google::firestore::v1::WriteResult* _add = _internal_mutable_write_results()->Add();
  8927. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitResponse.write_results)
  8928. return _add;
  8929. }
  8930. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>& CommitResponse::write_results() const
  8931. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8932. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitResponse.write_results)
  8933. return _internal_write_results();
  8934. }
  8935. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>&
  8936. CommitResponse::_internal_write_results() const {
  8937. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8938. return _impl_.write_results_;
  8939. }
  8940. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>*
  8941. CommitResponse::_internal_mutable_write_results() {
  8942. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8943. return &_impl_.write_results_;
  8944. }
  8945. // .google.protobuf.Timestamp commit_time = 2;
  8946. inline bool CommitResponse::has_commit_time() const {
  8947. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  8948. PROTOBUF_ASSUME(!value || _impl_.commit_time_ != nullptr);
  8949. return value;
  8950. }
  8951. inline const ::google::protobuf::Timestamp& CommitResponse::_internal_commit_time() const {
  8952. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  8953. const ::google::protobuf::Timestamp* p = _impl_.commit_time_;
  8954. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  8955. }
  8956. inline const ::google::protobuf::Timestamp& CommitResponse::commit_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  8957. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.commit_time)
  8958. return _internal_commit_time();
  8959. }
  8960. inline void CommitResponse::unsafe_arena_set_allocated_commit_time(::google::protobuf::Timestamp* value) {
  8961. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8962. if (GetArena() == nullptr) {
  8963. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.commit_time_);
  8964. }
  8965. _impl_.commit_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  8966. if (value != nullptr) {
  8967. _impl_._has_bits_[0] |= 0x00000001u;
  8968. } else {
  8969. _impl_._has_bits_[0] &= ~0x00000001u;
  8970. }
  8971. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.CommitResponse.commit_time)
  8972. }
  8973. inline ::google::protobuf::Timestamp* CommitResponse::release_commit_time() {
  8974. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8975. _impl_._has_bits_[0] &= ~0x00000001u;
  8976. ::google::protobuf::Timestamp* released = _impl_.commit_time_;
  8977. _impl_.commit_time_ = nullptr;
  8978. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8979. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  8980. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  8981. if (GetArena() == nullptr) {
  8982. delete old;
  8983. }
  8984. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8985. if (GetArena() != nullptr) {
  8986. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  8987. }
  8988. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8989. return released;
  8990. }
  8991. inline ::google::protobuf::Timestamp* CommitResponse::unsafe_arena_release_commit_time() {
  8992. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  8993. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitResponse.commit_time)
  8994. _impl_._has_bits_[0] &= ~0x00000001u;
  8995. ::google::protobuf::Timestamp* temp = _impl_.commit_time_;
  8996. _impl_.commit_time_ = nullptr;
  8997. return temp;
  8998. }
  8999. inline ::google::protobuf::Timestamp* CommitResponse::_internal_mutable_commit_time() {
  9000. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9001. _impl_._has_bits_[0] |= 0x00000001u;
  9002. if (_impl_.commit_time_ == nullptr) {
  9003. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  9004. _impl_.commit_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  9005. }
  9006. return _impl_.commit_time_;
  9007. }
  9008. inline ::google::protobuf::Timestamp* CommitResponse::mutable_commit_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9009. ::google::protobuf::Timestamp* _msg = _internal_mutable_commit_time();
  9010. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.commit_time)
  9011. return _msg;
  9012. }
  9013. inline void CommitResponse::set_allocated_commit_time(::google::protobuf::Timestamp* value) {
  9014. ::google::protobuf::Arena* message_arena = GetArena();
  9015. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9016. if (message_arena == nullptr) {
  9017. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.commit_time_);
  9018. }
  9019. if (value != nullptr) {
  9020. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  9021. if (message_arena != submessage_arena) {
  9022. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  9023. }
  9024. _impl_._has_bits_[0] |= 0x00000001u;
  9025. } else {
  9026. _impl_._has_bits_[0] &= ~0x00000001u;
  9027. }
  9028. _impl_.commit_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  9029. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitResponse.commit_time)
  9030. }
  9031. // -------------------------------------------------------------------
  9032. // RollbackRequest
  9033. // string database = 1;
  9034. inline void RollbackRequest::clear_database() {
  9035. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9036. _impl_.database_.ClearToEmpty();
  9037. }
  9038. inline const std::string& RollbackRequest::database() const
  9039. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9040. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.database)
  9041. return _internal_database();
  9042. }
  9043. template <typename Arg_, typename... Args_>
  9044. inline PROTOBUF_ALWAYS_INLINE void RollbackRequest::set_database(Arg_&& arg,
  9045. Args_... args) {
  9046. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9047. ;
  9048. _impl_.database_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  9049. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.database)
  9050. }
  9051. inline std::string* RollbackRequest::mutable_database() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9052. std::string* _s = _internal_mutable_database();
  9053. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.database)
  9054. return _s;
  9055. }
  9056. inline const std::string& RollbackRequest::_internal_database() const {
  9057. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9058. return _impl_.database_.Get();
  9059. }
  9060. inline void RollbackRequest::_internal_set_database(const std::string& value) {
  9061. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9062. ;
  9063. _impl_.database_.Set(value, GetArena());
  9064. }
  9065. inline std::string* RollbackRequest::_internal_mutable_database() {
  9066. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9067. ;
  9068. return _impl_.database_.Mutable( GetArena());
  9069. }
  9070. inline std::string* RollbackRequest::release_database() {
  9071. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9072. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.database)
  9073. return _impl_.database_.Release();
  9074. }
  9075. inline void RollbackRequest::set_allocated_database(std::string* value) {
  9076. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9077. _impl_.database_.SetAllocated(value, GetArena());
  9078. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9079. if (_impl_.database_.IsDefault()) {
  9080. _impl_.database_.Set("", GetArena());
  9081. }
  9082. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9083. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.database)
  9084. }
  9085. // bytes transaction = 2;
  9086. inline void RollbackRequest::clear_transaction() {
  9087. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9088. _impl_.transaction_.ClearToEmpty();
  9089. }
  9090. inline const std::string& RollbackRequest::transaction() const
  9091. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9092. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.transaction)
  9093. return _internal_transaction();
  9094. }
  9095. template <typename Arg_, typename... Args_>
  9096. inline PROTOBUF_ALWAYS_INLINE void RollbackRequest::set_transaction(Arg_&& arg,
  9097. Args_... args) {
  9098. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9099. ;
  9100. _impl_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  9101. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.transaction)
  9102. }
  9103. inline std::string* RollbackRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9104. std::string* _s = _internal_mutable_transaction();
  9105. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.transaction)
  9106. return _s;
  9107. }
  9108. inline const std::string& RollbackRequest::_internal_transaction() const {
  9109. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9110. return _impl_.transaction_.Get();
  9111. }
  9112. inline void RollbackRequest::_internal_set_transaction(const std::string& value) {
  9113. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9114. ;
  9115. _impl_.transaction_.Set(value, GetArena());
  9116. }
  9117. inline std::string* RollbackRequest::_internal_mutable_transaction() {
  9118. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9119. ;
  9120. return _impl_.transaction_.Mutable( GetArena());
  9121. }
  9122. inline std::string* RollbackRequest::release_transaction() {
  9123. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9124. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.transaction)
  9125. return _impl_.transaction_.Release();
  9126. }
  9127. inline void RollbackRequest::set_allocated_transaction(std::string* value) {
  9128. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9129. _impl_.transaction_.SetAllocated(value, GetArena());
  9130. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9131. if (_impl_.transaction_.IsDefault()) {
  9132. _impl_.transaction_.Set("", GetArena());
  9133. }
  9134. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9135. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.transaction)
  9136. }
  9137. // -------------------------------------------------------------------
  9138. // RunQueryRequest
  9139. // string parent = 1;
  9140. inline void RunQueryRequest::clear_parent() {
  9141. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9142. _impl_.parent_.ClearToEmpty();
  9143. }
  9144. inline const std::string& RunQueryRequest::parent() const
  9145. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9146. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.parent)
  9147. return _internal_parent();
  9148. }
  9149. template <typename Arg_, typename... Args_>
  9150. inline PROTOBUF_ALWAYS_INLINE void RunQueryRequest::set_parent(Arg_&& arg,
  9151. Args_... args) {
  9152. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9153. ;
  9154. _impl_.parent_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  9155. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.parent)
  9156. }
  9157. inline std::string* RunQueryRequest::mutable_parent() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9158. std::string* _s = _internal_mutable_parent();
  9159. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.parent)
  9160. return _s;
  9161. }
  9162. inline const std::string& RunQueryRequest::_internal_parent() const {
  9163. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9164. return _impl_.parent_.Get();
  9165. }
  9166. inline void RunQueryRequest::_internal_set_parent(const std::string& value) {
  9167. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9168. ;
  9169. _impl_.parent_.Set(value, GetArena());
  9170. }
  9171. inline std::string* RunQueryRequest::_internal_mutable_parent() {
  9172. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9173. ;
  9174. return _impl_.parent_.Mutable( GetArena());
  9175. }
  9176. inline std::string* RunQueryRequest::release_parent() {
  9177. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9178. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.parent)
  9179. return _impl_.parent_.Release();
  9180. }
  9181. inline void RunQueryRequest::set_allocated_parent(std::string* value) {
  9182. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9183. _impl_.parent_.SetAllocated(value, GetArena());
  9184. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9185. if (_impl_.parent_.IsDefault()) {
  9186. _impl_.parent_.Set("", GetArena());
  9187. }
  9188. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9189. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.parent)
  9190. }
  9191. // .google.firestore.v1.StructuredQuery structured_query = 2;
  9192. inline bool RunQueryRequest::has_structured_query() const {
  9193. return query_type_case() == kStructuredQuery;
  9194. }
  9195. inline bool RunQueryRequest::_internal_has_structured_query() const {
  9196. return query_type_case() == kStructuredQuery;
  9197. }
  9198. inline void RunQueryRequest::set_has_structured_query() {
  9199. _impl_._oneof_case_[0] = kStructuredQuery;
  9200. }
  9201. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::release_structured_query() {
  9202. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.structured_query)
  9203. if (query_type_case() == kStructuredQuery) {
  9204. clear_has_query_type();
  9205. auto* temp = _impl_.query_type_.structured_query_;
  9206. if (GetArena() != nullptr) {
  9207. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  9208. }
  9209. _impl_.query_type_.structured_query_ = nullptr;
  9210. return temp;
  9211. } else {
  9212. return nullptr;
  9213. }
  9214. }
  9215. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::_internal_structured_query() const {
  9216. return query_type_case() == kStructuredQuery ? *_impl_.query_type_.structured_query_ : reinterpret_cast<::google::firestore::v1::StructuredQuery&>(::google::firestore::v1::_StructuredQuery_default_instance_);
  9217. }
  9218. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::structured_query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9219. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.structured_query)
  9220. return _internal_structured_query();
  9221. }
  9222. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::unsafe_arena_release_structured_query() {
  9223. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.RunQueryRequest.structured_query)
  9224. if (query_type_case() == kStructuredQuery) {
  9225. clear_has_query_type();
  9226. auto* temp = _impl_.query_type_.structured_query_;
  9227. _impl_.query_type_.structured_query_ = nullptr;
  9228. return temp;
  9229. } else {
  9230. return nullptr;
  9231. }
  9232. }
  9233. inline void RunQueryRequest::unsafe_arena_set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value) {
  9234. // We rely on the oneof clear method to free the earlier contents
  9235. // of this oneof. We can directly use the pointer we're given to
  9236. // set the new value.
  9237. clear_query_type();
  9238. if (value) {
  9239. set_has_structured_query();
  9240. _impl_.query_type_.structured_query_ = value;
  9241. }
  9242. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunQueryRequest.structured_query)
  9243. }
  9244. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::_internal_mutable_structured_query() {
  9245. if (query_type_case() != kStructuredQuery) {
  9246. clear_query_type();
  9247. set_has_structured_query();
  9248. _impl_.query_type_.structured_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery>(GetArena());
  9249. }
  9250. return _impl_.query_type_.structured_query_;
  9251. }
  9252. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::mutable_structured_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9253. ::google::firestore::v1::StructuredQuery* _msg = _internal_mutable_structured_query();
  9254. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.structured_query)
  9255. return _msg;
  9256. }
  9257. // bytes transaction = 5;
  9258. inline bool RunQueryRequest::has_transaction() const {
  9259. return consistency_selector_case() == kTransaction;
  9260. }
  9261. inline void RunQueryRequest::set_has_transaction() {
  9262. _impl_._oneof_case_[1] = kTransaction;
  9263. }
  9264. inline void RunQueryRequest::clear_transaction() {
  9265. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9266. if (consistency_selector_case() == kTransaction) {
  9267. _impl_.consistency_selector_.transaction_.Destroy();
  9268. clear_has_consistency_selector();
  9269. }
  9270. }
  9271. inline const std::string& RunQueryRequest::transaction() const
  9272. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9273. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.transaction)
  9274. return _internal_transaction();
  9275. }
  9276. template <typename Arg_, typename... Args_>
  9277. inline PROTOBUF_ALWAYS_INLINE void RunQueryRequest::set_transaction(Arg_&& arg,
  9278. Args_... args) {
  9279. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9280. if (consistency_selector_case() != kTransaction) {
  9281. clear_consistency_selector();
  9282. set_has_transaction();
  9283. _impl_.consistency_selector_.transaction_.InitDefault();
  9284. }
  9285. _impl_.consistency_selector_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  9286. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  9287. }
  9288. inline std::string* RunQueryRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9289. std::string* _s = _internal_mutable_transaction();
  9290. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.transaction)
  9291. return _s;
  9292. }
  9293. inline const std::string& RunQueryRequest::_internal_transaction() const {
  9294. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9295. if (consistency_selector_case() != kTransaction) {
  9296. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  9297. }
  9298. return _impl_.consistency_selector_.transaction_.Get();
  9299. }
  9300. inline void RunQueryRequest::_internal_set_transaction(const std::string& value) {
  9301. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9302. if (consistency_selector_case() != kTransaction) {
  9303. clear_consistency_selector();
  9304. set_has_transaction();
  9305. _impl_.consistency_selector_.transaction_.InitDefault();
  9306. }
  9307. _impl_.consistency_selector_.transaction_.Set(value, GetArena());
  9308. }
  9309. inline std::string* RunQueryRequest::_internal_mutable_transaction() {
  9310. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9311. if (consistency_selector_case() != kTransaction) {
  9312. clear_consistency_selector();
  9313. set_has_transaction();
  9314. _impl_.consistency_selector_.transaction_.InitDefault();
  9315. }
  9316. return _impl_.consistency_selector_.transaction_.Mutable( GetArena());
  9317. }
  9318. inline std::string* RunQueryRequest::release_transaction() {
  9319. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9320. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.transaction)
  9321. if (consistency_selector_case() != kTransaction) {
  9322. return nullptr;
  9323. }
  9324. clear_has_consistency_selector();
  9325. return _impl_.consistency_selector_.transaction_.Release();
  9326. }
  9327. inline void RunQueryRequest::set_allocated_transaction(std::string* value) {
  9328. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9329. if (has_consistency_selector()) {
  9330. clear_consistency_selector();
  9331. }
  9332. if (value != nullptr) {
  9333. set_has_transaction();
  9334. _impl_.consistency_selector_.transaction_.InitAllocated(value, GetArena());
  9335. }
  9336. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.transaction)
  9337. }
  9338. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  9339. inline bool RunQueryRequest::has_new_transaction() const {
  9340. return consistency_selector_case() == kNewTransaction;
  9341. }
  9342. inline bool RunQueryRequest::_internal_has_new_transaction() const {
  9343. return consistency_selector_case() == kNewTransaction;
  9344. }
  9345. inline void RunQueryRequest::set_has_new_transaction() {
  9346. _impl_._oneof_case_[1] = kNewTransaction;
  9347. }
  9348. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::release_new_transaction() {
  9349. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.new_transaction)
  9350. if (consistency_selector_case() == kNewTransaction) {
  9351. clear_has_consistency_selector();
  9352. auto* temp = _impl_.consistency_selector_.new_transaction_;
  9353. if (GetArena() != nullptr) {
  9354. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  9355. }
  9356. _impl_.consistency_selector_.new_transaction_ = nullptr;
  9357. return temp;
  9358. } else {
  9359. return nullptr;
  9360. }
  9361. }
  9362. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::_internal_new_transaction() const {
  9363. return consistency_selector_case() == kNewTransaction ? *_impl_.consistency_selector_.new_transaction_ : reinterpret_cast<::google::firestore::v1::TransactionOptions&>(::google::firestore::v1::_TransactionOptions_default_instance_);
  9364. }
  9365. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::new_transaction() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9366. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.new_transaction)
  9367. return _internal_new_transaction();
  9368. }
  9369. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::unsafe_arena_release_new_transaction() {
  9370. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.RunQueryRequest.new_transaction)
  9371. if (consistency_selector_case() == kNewTransaction) {
  9372. clear_has_consistency_selector();
  9373. auto* temp = _impl_.consistency_selector_.new_transaction_;
  9374. _impl_.consistency_selector_.new_transaction_ = nullptr;
  9375. return temp;
  9376. } else {
  9377. return nullptr;
  9378. }
  9379. }
  9380. inline void RunQueryRequest::unsafe_arena_set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value) {
  9381. // We rely on the oneof clear method to free the earlier contents
  9382. // of this oneof. We can directly use the pointer we're given to
  9383. // set the new value.
  9384. clear_consistency_selector();
  9385. if (value) {
  9386. set_has_new_transaction();
  9387. _impl_.consistency_selector_.new_transaction_ = value;
  9388. }
  9389. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunQueryRequest.new_transaction)
  9390. }
  9391. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::_internal_mutable_new_transaction() {
  9392. if (consistency_selector_case() != kNewTransaction) {
  9393. clear_consistency_selector();
  9394. set_has_new_transaction();
  9395. _impl_.consistency_selector_.new_transaction_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(GetArena());
  9396. }
  9397. return _impl_.consistency_selector_.new_transaction_;
  9398. }
  9399. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::mutable_new_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9400. ::google::firestore::v1::TransactionOptions* _msg = _internal_mutable_new_transaction();
  9401. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.new_transaction)
  9402. return _msg;
  9403. }
  9404. // .google.protobuf.Timestamp read_time = 7;
  9405. inline bool RunQueryRequest::has_read_time() const {
  9406. return consistency_selector_case() == kReadTime;
  9407. }
  9408. inline bool RunQueryRequest::_internal_has_read_time() const {
  9409. return consistency_selector_case() == kReadTime;
  9410. }
  9411. inline void RunQueryRequest::set_has_read_time() {
  9412. _impl_._oneof_case_[1] = kReadTime;
  9413. }
  9414. inline ::google::protobuf::Timestamp* RunQueryRequest::release_read_time() {
  9415. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.read_time)
  9416. if (consistency_selector_case() == kReadTime) {
  9417. clear_has_consistency_selector();
  9418. auto* temp = _impl_.consistency_selector_.read_time_;
  9419. if (GetArena() != nullptr) {
  9420. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  9421. }
  9422. _impl_.consistency_selector_.read_time_ = nullptr;
  9423. return temp;
  9424. } else {
  9425. return nullptr;
  9426. }
  9427. }
  9428. inline const ::google::protobuf::Timestamp& RunQueryRequest::_internal_read_time() const {
  9429. return consistency_selector_case() == kReadTime ? *_impl_.consistency_selector_.read_time_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  9430. }
  9431. inline const ::google::protobuf::Timestamp& RunQueryRequest::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9432. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.read_time)
  9433. return _internal_read_time();
  9434. }
  9435. inline ::google::protobuf::Timestamp* RunQueryRequest::unsafe_arena_release_read_time() {
  9436. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.RunQueryRequest.read_time)
  9437. if (consistency_selector_case() == kReadTime) {
  9438. clear_has_consistency_selector();
  9439. auto* temp = _impl_.consistency_selector_.read_time_;
  9440. _impl_.consistency_selector_.read_time_ = nullptr;
  9441. return temp;
  9442. } else {
  9443. return nullptr;
  9444. }
  9445. }
  9446. inline void RunQueryRequest::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  9447. // We rely on the oneof clear method to free the earlier contents
  9448. // of this oneof. We can directly use the pointer we're given to
  9449. // set the new value.
  9450. clear_consistency_selector();
  9451. if (value) {
  9452. set_has_read_time();
  9453. _impl_.consistency_selector_.read_time_ = value;
  9454. }
  9455. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunQueryRequest.read_time)
  9456. }
  9457. inline ::google::protobuf::Timestamp* RunQueryRequest::_internal_mutable_read_time() {
  9458. if (consistency_selector_case() != kReadTime) {
  9459. clear_consistency_selector();
  9460. set_has_read_time();
  9461. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  9462. }
  9463. return _impl_.consistency_selector_.read_time_;
  9464. }
  9465. inline ::google::protobuf::Timestamp* RunQueryRequest::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9466. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  9467. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.read_time)
  9468. return _msg;
  9469. }
  9470. inline bool RunQueryRequest::has_query_type() const {
  9471. return query_type_case() != QUERY_TYPE_NOT_SET;
  9472. }
  9473. inline void RunQueryRequest::clear_has_query_type() {
  9474. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  9475. }
  9476. inline bool RunQueryRequest::has_consistency_selector() const {
  9477. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  9478. }
  9479. inline void RunQueryRequest::clear_has_consistency_selector() {
  9480. _impl_._oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  9481. }
  9482. inline RunQueryRequest::QueryTypeCase RunQueryRequest::query_type_case() const {
  9483. return RunQueryRequest::QueryTypeCase(_impl_._oneof_case_[0]);
  9484. }
  9485. inline RunQueryRequest::ConsistencySelectorCase RunQueryRequest::consistency_selector_case() const {
  9486. return RunQueryRequest::ConsistencySelectorCase(_impl_._oneof_case_[1]);
  9487. }
  9488. // -------------------------------------------------------------------
  9489. // RunQueryResponse
  9490. // bytes transaction = 2;
  9491. inline void RunQueryResponse::clear_transaction() {
  9492. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9493. _impl_.transaction_.ClearToEmpty();
  9494. }
  9495. inline const std::string& RunQueryResponse::transaction() const
  9496. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9497. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.transaction)
  9498. return _internal_transaction();
  9499. }
  9500. template <typename Arg_, typename... Args_>
  9501. inline PROTOBUF_ALWAYS_INLINE void RunQueryResponse::set_transaction(Arg_&& arg,
  9502. Args_... args) {
  9503. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9504. ;
  9505. _impl_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  9506. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.transaction)
  9507. }
  9508. inline std::string* RunQueryResponse::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9509. std::string* _s = _internal_mutable_transaction();
  9510. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.transaction)
  9511. return _s;
  9512. }
  9513. inline const std::string& RunQueryResponse::_internal_transaction() const {
  9514. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9515. return _impl_.transaction_.Get();
  9516. }
  9517. inline void RunQueryResponse::_internal_set_transaction(const std::string& value) {
  9518. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9519. ;
  9520. _impl_.transaction_.Set(value, GetArena());
  9521. }
  9522. inline std::string* RunQueryResponse::_internal_mutable_transaction() {
  9523. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9524. ;
  9525. return _impl_.transaction_.Mutable( GetArena());
  9526. }
  9527. inline std::string* RunQueryResponse::release_transaction() {
  9528. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9529. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.transaction)
  9530. return _impl_.transaction_.Release();
  9531. }
  9532. inline void RunQueryResponse::set_allocated_transaction(std::string* value) {
  9533. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9534. _impl_.transaction_.SetAllocated(value, GetArena());
  9535. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9536. if (_impl_.transaction_.IsDefault()) {
  9537. _impl_.transaction_.Set("", GetArena());
  9538. }
  9539. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9540. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.transaction)
  9541. }
  9542. // .google.firestore.v1.Document document = 1;
  9543. inline bool RunQueryResponse::has_document() const {
  9544. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  9545. PROTOBUF_ASSUME(!value || _impl_.document_ != nullptr);
  9546. return value;
  9547. }
  9548. inline const ::google::firestore::v1::Document& RunQueryResponse::_internal_document() const {
  9549. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9550. const ::google::firestore::v1::Document* p = _impl_.document_;
  9551. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::Document&>(::google::firestore::v1::_Document_default_instance_);
  9552. }
  9553. inline const ::google::firestore::v1::Document& RunQueryResponse::document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9554. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.document)
  9555. return _internal_document();
  9556. }
  9557. inline void RunQueryResponse::unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value) {
  9558. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9559. if (GetArena() == nullptr) {
  9560. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.document_);
  9561. }
  9562. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(value);
  9563. if (value != nullptr) {
  9564. _impl_._has_bits_[0] |= 0x00000001u;
  9565. } else {
  9566. _impl_._has_bits_[0] &= ~0x00000001u;
  9567. }
  9568. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunQueryResponse.document)
  9569. }
  9570. inline ::google::firestore::v1::Document* RunQueryResponse::release_document() {
  9571. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9572. _impl_._has_bits_[0] &= ~0x00000001u;
  9573. ::google::firestore::v1::Document* released = _impl_.document_;
  9574. _impl_.document_ = nullptr;
  9575. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9576. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  9577. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  9578. if (GetArena() == nullptr) {
  9579. delete old;
  9580. }
  9581. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9582. if (GetArena() != nullptr) {
  9583. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  9584. }
  9585. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9586. return released;
  9587. }
  9588. inline ::google::firestore::v1::Document* RunQueryResponse::unsafe_arena_release_document() {
  9589. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9590. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.document)
  9591. _impl_._has_bits_[0] &= ~0x00000001u;
  9592. ::google::firestore::v1::Document* temp = _impl_.document_;
  9593. _impl_.document_ = nullptr;
  9594. return temp;
  9595. }
  9596. inline ::google::firestore::v1::Document* RunQueryResponse::_internal_mutable_document() {
  9597. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9598. _impl_._has_bits_[0] |= 0x00000001u;
  9599. if (_impl_.document_ == nullptr) {
  9600. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArena());
  9601. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(p);
  9602. }
  9603. return _impl_.document_;
  9604. }
  9605. inline ::google::firestore::v1::Document* RunQueryResponse::mutable_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9606. ::google::firestore::v1::Document* _msg = _internal_mutable_document();
  9607. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.document)
  9608. return _msg;
  9609. }
  9610. inline void RunQueryResponse::set_allocated_document(::google::firestore::v1::Document* value) {
  9611. ::google::protobuf::Arena* message_arena = GetArena();
  9612. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9613. if (message_arena == nullptr) {
  9614. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.document_);
  9615. }
  9616. if (value != nullptr) {
  9617. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  9618. if (message_arena != submessage_arena) {
  9619. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  9620. }
  9621. _impl_._has_bits_[0] |= 0x00000001u;
  9622. } else {
  9623. _impl_._has_bits_[0] &= ~0x00000001u;
  9624. }
  9625. _impl_.document_ = reinterpret_cast<::google::firestore::v1::Document*>(value);
  9626. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.document)
  9627. }
  9628. // .google.protobuf.Timestamp read_time = 3;
  9629. inline bool RunQueryResponse::has_read_time() const {
  9630. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  9631. PROTOBUF_ASSUME(!value || _impl_.read_time_ != nullptr);
  9632. return value;
  9633. }
  9634. inline const ::google::protobuf::Timestamp& RunQueryResponse::_internal_read_time() const {
  9635. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9636. const ::google::protobuf::Timestamp* p = _impl_.read_time_;
  9637. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  9638. }
  9639. inline const ::google::protobuf::Timestamp& RunQueryResponse::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9640. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.read_time)
  9641. return _internal_read_time();
  9642. }
  9643. inline void RunQueryResponse::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  9644. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9645. if (GetArena() == nullptr) {
  9646. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  9647. }
  9648. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  9649. if (value != nullptr) {
  9650. _impl_._has_bits_[0] |= 0x00000002u;
  9651. } else {
  9652. _impl_._has_bits_[0] &= ~0x00000002u;
  9653. }
  9654. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunQueryResponse.read_time)
  9655. }
  9656. inline ::google::protobuf::Timestamp* RunQueryResponse::release_read_time() {
  9657. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9658. _impl_._has_bits_[0] &= ~0x00000002u;
  9659. ::google::protobuf::Timestamp* released = _impl_.read_time_;
  9660. _impl_.read_time_ = nullptr;
  9661. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9662. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  9663. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  9664. if (GetArena() == nullptr) {
  9665. delete old;
  9666. }
  9667. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9668. if (GetArena() != nullptr) {
  9669. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  9670. }
  9671. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9672. return released;
  9673. }
  9674. inline ::google::protobuf::Timestamp* RunQueryResponse::unsafe_arena_release_read_time() {
  9675. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9676. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.read_time)
  9677. _impl_._has_bits_[0] &= ~0x00000002u;
  9678. ::google::protobuf::Timestamp* temp = _impl_.read_time_;
  9679. _impl_.read_time_ = nullptr;
  9680. return temp;
  9681. }
  9682. inline ::google::protobuf::Timestamp* RunQueryResponse::_internal_mutable_read_time() {
  9683. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9684. _impl_._has_bits_[0] |= 0x00000002u;
  9685. if (_impl_.read_time_ == nullptr) {
  9686. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  9687. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  9688. }
  9689. return _impl_.read_time_;
  9690. }
  9691. inline ::google::protobuf::Timestamp* RunQueryResponse::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9692. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  9693. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.read_time)
  9694. return _msg;
  9695. }
  9696. inline void RunQueryResponse::set_allocated_read_time(::google::protobuf::Timestamp* value) {
  9697. ::google::protobuf::Arena* message_arena = GetArena();
  9698. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9699. if (message_arena == nullptr) {
  9700. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  9701. }
  9702. if (value != nullptr) {
  9703. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  9704. if (message_arena != submessage_arena) {
  9705. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  9706. }
  9707. _impl_._has_bits_[0] |= 0x00000002u;
  9708. } else {
  9709. _impl_._has_bits_[0] &= ~0x00000002u;
  9710. }
  9711. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  9712. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.read_time)
  9713. }
  9714. // int32 skipped_results = 4;
  9715. inline void RunQueryResponse::clear_skipped_results() {
  9716. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9717. _impl_.skipped_results_ = 0;
  9718. }
  9719. inline ::int32_t RunQueryResponse::skipped_results() const {
  9720. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.skipped_results)
  9721. return _internal_skipped_results();
  9722. }
  9723. inline void RunQueryResponse::set_skipped_results(::int32_t value) {
  9724. _internal_set_skipped_results(value);
  9725. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.skipped_results)
  9726. }
  9727. inline ::int32_t RunQueryResponse::_internal_skipped_results() const {
  9728. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9729. return _impl_.skipped_results_;
  9730. }
  9731. inline void RunQueryResponse::_internal_set_skipped_results(::int32_t value) {
  9732. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9733. ;
  9734. _impl_.skipped_results_ = value;
  9735. }
  9736. // -------------------------------------------------------------------
  9737. // RunAggregationQueryRequest
  9738. // string parent = 1;
  9739. inline void RunAggregationQueryRequest::clear_parent() {
  9740. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9741. _impl_.parent_.ClearToEmpty();
  9742. }
  9743. inline const std::string& RunAggregationQueryRequest::parent() const
  9744. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9745. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.parent)
  9746. return _internal_parent();
  9747. }
  9748. template <typename Arg_, typename... Args_>
  9749. inline PROTOBUF_ALWAYS_INLINE void RunAggregationQueryRequest::set_parent(Arg_&& arg,
  9750. Args_... args) {
  9751. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9752. ;
  9753. _impl_.parent_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  9754. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryRequest.parent)
  9755. }
  9756. inline std::string* RunAggregationQueryRequest::mutable_parent() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9757. std::string* _s = _internal_mutable_parent();
  9758. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.parent)
  9759. return _s;
  9760. }
  9761. inline const std::string& RunAggregationQueryRequest::_internal_parent() const {
  9762. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9763. return _impl_.parent_.Get();
  9764. }
  9765. inline void RunAggregationQueryRequest::_internal_set_parent(const std::string& value) {
  9766. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9767. ;
  9768. _impl_.parent_.Set(value, GetArena());
  9769. }
  9770. inline std::string* RunAggregationQueryRequest::_internal_mutable_parent() {
  9771. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9772. ;
  9773. return _impl_.parent_.Mutable( GetArena());
  9774. }
  9775. inline std::string* RunAggregationQueryRequest::release_parent() {
  9776. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9777. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.parent)
  9778. return _impl_.parent_.Release();
  9779. }
  9780. inline void RunAggregationQueryRequest::set_allocated_parent(std::string* value) {
  9781. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9782. _impl_.parent_.SetAllocated(value, GetArena());
  9783. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9784. if (_impl_.parent_.IsDefault()) {
  9785. _impl_.parent_.Set("", GetArena());
  9786. }
  9787. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9788. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.parent)
  9789. }
  9790. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  9791. inline bool RunAggregationQueryRequest::has_structured_aggregation_query() const {
  9792. return query_type_case() == kStructuredAggregationQuery;
  9793. }
  9794. inline bool RunAggregationQueryRequest::_internal_has_structured_aggregation_query() const {
  9795. return query_type_case() == kStructuredAggregationQuery;
  9796. }
  9797. inline void RunAggregationQueryRequest::set_has_structured_aggregation_query() {
  9798. _impl_._oneof_case_[0] = kStructuredAggregationQuery;
  9799. }
  9800. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::release_structured_aggregation_query() {
  9801. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  9802. if (query_type_case() == kStructuredAggregationQuery) {
  9803. clear_has_query_type();
  9804. auto* temp = _impl_.query_type_.structured_aggregation_query_;
  9805. if (GetArena() != nullptr) {
  9806. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  9807. }
  9808. _impl_.query_type_.structured_aggregation_query_ = nullptr;
  9809. return temp;
  9810. } else {
  9811. return nullptr;
  9812. }
  9813. }
  9814. inline const ::google::firestore::v1::StructuredAggregationQuery& RunAggregationQueryRequest::_internal_structured_aggregation_query() const {
  9815. return query_type_case() == kStructuredAggregationQuery ? *_impl_.query_type_.structured_aggregation_query_ : reinterpret_cast<::google::firestore::v1::StructuredAggregationQuery&>(::google::firestore::v1::_StructuredAggregationQuery_default_instance_);
  9816. }
  9817. inline const ::google::firestore::v1::StructuredAggregationQuery& RunAggregationQueryRequest::structured_aggregation_query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9818. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  9819. return _internal_structured_aggregation_query();
  9820. }
  9821. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::unsafe_arena_release_structured_aggregation_query() {
  9822. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  9823. if (query_type_case() == kStructuredAggregationQuery) {
  9824. clear_has_query_type();
  9825. auto* temp = _impl_.query_type_.structured_aggregation_query_;
  9826. _impl_.query_type_.structured_aggregation_query_ = nullptr;
  9827. return temp;
  9828. } else {
  9829. return nullptr;
  9830. }
  9831. }
  9832. inline void RunAggregationQueryRequest::unsafe_arena_set_allocated_structured_aggregation_query(::google::firestore::v1::StructuredAggregationQuery* value) {
  9833. // We rely on the oneof clear method to free the earlier contents
  9834. // of this oneof. We can directly use the pointer we're given to
  9835. // set the new value.
  9836. clear_query_type();
  9837. if (value) {
  9838. set_has_structured_aggregation_query();
  9839. _impl_.query_type_.structured_aggregation_query_ = value;
  9840. }
  9841. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  9842. }
  9843. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::_internal_mutable_structured_aggregation_query() {
  9844. if (query_type_case() != kStructuredAggregationQuery) {
  9845. clear_query_type();
  9846. set_has_structured_aggregation_query();
  9847. _impl_.query_type_.structured_aggregation_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery>(GetArena());
  9848. }
  9849. return _impl_.query_type_.structured_aggregation_query_;
  9850. }
  9851. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::mutable_structured_aggregation_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9852. ::google::firestore::v1::StructuredAggregationQuery* _msg = _internal_mutable_structured_aggregation_query();
  9853. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  9854. return _msg;
  9855. }
  9856. // bytes transaction = 4;
  9857. inline bool RunAggregationQueryRequest::has_transaction() const {
  9858. return consistency_selector_case() == kTransaction;
  9859. }
  9860. inline void RunAggregationQueryRequest::set_has_transaction() {
  9861. _impl_._oneof_case_[1] = kTransaction;
  9862. }
  9863. inline void RunAggregationQueryRequest::clear_transaction() {
  9864. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9865. if (consistency_selector_case() == kTransaction) {
  9866. _impl_.consistency_selector_.transaction_.Destroy();
  9867. clear_has_consistency_selector();
  9868. }
  9869. }
  9870. inline const std::string& RunAggregationQueryRequest::transaction() const
  9871. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9872. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.transaction)
  9873. return _internal_transaction();
  9874. }
  9875. template <typename Arg_, typename... Args_>
  9876. inline PROTOBUF_ALWAYS_INLINE void RunAggregationQueryRequest::set_transaction(Arg_&& arg,
  9877. Args_... args) {
  9878. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9879. if (consistency_selector_case() != kTransaction) {
  9880. clear_consistency_selector();
  9881. set_has_transaction();
  9882. _impl_.consistency_selector_.transaction_.InitDefault();
  9883. }
  9884. _impl_.consistency_selector_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  9885. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryRequest.transaction)
  9886. }
  9887. inline std::string* RunAggregationQueryRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9888. std::string* _s = _internal_mutable_transaction();
  9889. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.transaction)
  9890. return _s;
  9891. }
  9892. inline const std::string& RunAggregationQueryRequest::_internal_transaction() const {
  9893. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  9894. if (consistency_selector_case() != kTransaction) {
  9895. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  9896. }
  9897. return _impl_.consistency_selector_.transaction_.Get();
  9898. }
  9899. inline void RunAggregationQueryRequest::_internal_set_transaction(const std::string& value) {
  9900. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9901. if (consistency_selector_case() != kTransaction) {
  9902. clear_consistency_selector();
  9903. set_has_transaction();
  9904. _impl_.consistency_selector_.transaction_.InitDefault();
  9905. }
  9906. _impl_.consistency_selector_.transaction_.Set(value, GetArena());
  9907. }
  9908. inline std::string* RunAggregationQueryRequest::_internal_mutable_transaction() {
  9909. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9910. if (consistency_selector_case() != kTransaction) {
  9911. clear_consistency_selector();
  9912. set_has_transaction();
  9913. _impl_.consistency_selector_.transaction_.InitDefault();
  9914. }
  9915. return _impl_.consistency_selector_.transaction_.Mutable( GetArena());
  9916. }
  9917. inline std::string* RunAggregationQueryRequest::release_transaction() {
  9918. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9919. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.transaction)
  9920. if (consistency_selector_case() != kTransaction) {
  9921. return nullptr;
  9922. }
  9923. clear_has_consistency_selector();
  9924. return _impl_.consistency_selector_.transaction_.Release();
  9925. }
  9926. inline void RunAggregationQueryRequest::set_allocated_transaction(std::string* value) {
  9927. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  9928. if (has_consistency_selector()) {
  9929. clear_consistency_selector();
  9930. }
  9931. if (value != nullptr) {
  9932. set_has_transaction();
  9933. _impl_.consistency_selector_.transaction_.InitAllocated(value, GetArena());
  9934. }
  9935. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.transaction)
  9936. }
  9937. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  9938. inline bool RunAggregationQueryRequest::has_new_transaction() const {
  9939. return consistency_selector_case() == kNewTransaction;
  9940. }
  9941. inline bool RunAggregationQueryRequest::_internal_has_new_transaction() const {
  9942. return consistency_selector_case() == kNewTransaction;
  9943. }
  9944. inline void RunAggregationQueryRequest::set_has_new_transaction() {
  9945. _impl_._oneof_case_[1] = kNewTransaction;
  9946. }
  9947. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::release_new_transaction() {
  9948. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  9949. if (consistency_selector_case() == kNewTransaction) {
  9950. clear_has_consistency_selector();
  9951. auto* temp = _impl_.consistency_selector_.new_transaction_;
  9952. if (GetArena() != nullptr) {
  9953. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  9954. }
  9955. _impl_.consistency_selector_.new_transaction_ = nullptr;
  9956. return temp;
  9957. } else {
  9958. return nullptr;
  9959. }
  9960. }
  9961. inline const ::google::firestore::v1::TransactionOptions& RunAggregationQueryRequest::_internal_new_transaction() const {
  9962. return consistency_selector_case() == kNewTransaction ? *_impl_.consistency_selector_.new_transaction_ : reinterpret_cast<::google::firestore::v1::TransactionOptions&>(::google::firestore::v1::_TransactionOptions_default_instance_);
  9963. }
  9964. inline const ::google::firestore::v1::TransactionOptions& RunAggregationQueryRequest::new_transaction() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9965. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  9966. return _internal_new_transaction();
  9967. }
  9968. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::unsafe_arena_release_new_transaction() {
  9969. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  9970. if (consistency_selector_case() == kNewTransaction) {
  9971. clear_has_consistency_selector();
  9972. auto* temp = _impl_.consistency_selector_.new_transaction_;
  9973. _impl_.consistency_selector_.new_transaction_ = nullptr;
  9974. return temp;
  9975. } else {
  9976. return nullptr;
  9977. }
  9978. }
  9979. inline void RunAggregationQueryRequest::unsafe_arena_set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* value) {
  9980. // We rely on the oneof clear method to free the earlier contents
  9981. // of this oneof. We can directly use the pointer we're given to
  9982. // set the new value.
  9983. clear_consistency_selector();
  9984. if (value) {
  9985. set_has_new_transaction();
  9986. _impl_.consistency_selector_.new_transaction_ = value;
  9987. }
  9988. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  9989. }
  9990. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::_internal_mutable_new_transaction() {
  9991. if (consistency_selector_case() != kNewTransaction) {
  9992. clear_consistency_selector();
  9993. set_has_new_transaction();
  9994. _impl_.consistency_selector_.new_transaction_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(GetArena());
  9995. }
  9996. return _impl_.consistency_selector_.new_transaction_;
  9997. }
  9998. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::mutable_new_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  9999. ::google::firestore::v1::TransactionOptions* _msg = _internal_mutable_new_transaction();
  10000. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  10001. return _msg;
  10002. }
  10003. // .google.protobuf.Timestamp read_time = 6;
  10004. inline bool RunAggregationQueryRequest::has_read_time() const {
  10005. return consistency_selector_case() == kReadTime;
  10006. }
  10007. inline bool RunAggregationQueryRequest::_internal_has_read_time() const {
  10008. return consistency_selector_case() == kReadTime;
  10009. }
  10010. inline void RunAggregationQueryRequest::set_has_read_time() {
  10011. _impl_._oneof_case_[1] = kReadTime;
  10012. }
  10013. inline ::google::protobuf::Timestamp* RunAggregationQueryRequest::release_read_time() {
  10014. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.read_time)
  10015. if (consistency_selector_case() == kReadTime) {
  10016. clear_has_consistency_selector();
  10017. auto* temp = _impl_.consistency_selector_.read_time_;
  10018. if (GetArena() != nullptr) {
  10019. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  10020. }
  10021. _impl_.consistency_selector_.read_time_ = nullptr;
  10022. return temp;
  10023. } else {
  10024. return nullptr;
  10025. }
  10026. }
  10027. inline const ::google::protobuf::Timestamp& RunAggregationQueryRequest::_internal_read_time() const {
  10028. return consistency_selector_case() == kReadTime ? *_impl_.consistency_selector_.read_time_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  10029. }
  10030. inline const ::google::protobuf::Timestamp& RunAggregationQueryRequest::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10031. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.read_time)
  10032. return _internal_read_time();
  10033. }
  10034. inline ::google::protobuf::Timestamp* RunAggregationQueryRequest::unsafe_arena_release_read_time() {
  10035. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.RunAggregationQueryRequest.read_time)
  10036. if (consistency_selector_case() == kReadTime) {
  10037. clear_has_consistency_selector();
  10038. auto* temp = _impl_.consistency_selector_.read_time_;
  10039. _impl_.consistency_selector_.read_time_ = nullptr;
  10040. return temp;
  10041. } else {
  10042. return nullptr;
  10043. }
  10044. }
  10045. inline void RunAggregationQueryRequest::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  10046. // We rely on the oneof clear method to free the earlier contents
  10047. // of this oneof. We can directly use the pointer we're given to
  10048. // set the new value.
  10049. clear_consistency_selector();
  10050. if (value) {
  10051. set_has_read_time();
  10052. _impl_.consistency_selector_.read_time_ = value;
  10053. }
  10054. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunAggregationQueryRequest.read_time)
  10055. }
  10056. inline ::google::protobuf::Timestamp* RunAggregationQueryRequest::_internal_mutable_read_time() {
  10057. if (consistency_selector_case() != kReadTime) {
  10058. clear_consistency_selector();
  10059. set_has_read_time();
  10060. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  10061. }
  10062. return _impl_.consistency_selector_.read_time_;
  10063. }
  10064. inline ::google::protobuf::Timestamp* RunAggregationQueryRequest::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10065. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  10066. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.read_time)
  10067. return _msg;
  10068. }
  10069. inline bool RunAggregationQueryRequest::has_query_type() const {
  10070. return query_type_case() != QUERY_TYPE_NOT_SET;
  10071. }
  10072. inline void RunAggregationQueryRequest::clear_has_query_type() {
  10073. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  10074. }
  10075. inline bool RunAggregationQueryRequest::has_consistency_selector() const {
  10076. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  10077. }
  10078. inline void RunAggregationQueryRequest::clear_has_consistency_selector() {
  10079. _impl_._oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  10080. }
  10081. inline RunAggregationQueryRequest::QueryTypeCase RunAggregationQueryRequest::query_type_case() const {
  10082. return RunAggregationQueryRequest::QueryTypeCase(_impl_._oneof_case_[0]);
  10083. }
  10084. inline RunAggregationQueryRequest::ConsistencySelectorCase RunAggregationQueryRequest::consistency_selector_case() const {
  10085. return RunAggregationQueryRequest::ConsistencySelectorCase(_impl_._oneof_case_[1]);
  10086. }
  10087. // -------------------------------------------------------------------
  10088. // RunAggregationQueryResponse
  10089. // .google.firestore.v1.AggregationResult result = 1;
  10090. inline bool RunAggregationQueryResponse::has_result() const {
  10091. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10092. PROTOBUF_ASSUME(!value || _impl_.result_ != nullptr);
  10093. return value;
  10094. }
  10095. inline const ::google::firestore::v1::AggregationResult& RunAggregationQueryResponse::_internal_result() const {
  10096. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10097. const ::google::firestore::v1::AggregationResult* p = _impl_.result_;
  10098. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::AggregationResult&>(::google::firestore::v1::_AggregationResult_default_instance_);
  10099. }
  10100. inline const ::google::firestore::v1::AggregationResult& RunAggregationQueryResponse::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10101. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.result)
  10102. return _internal_result();
  10103. }
  10104. inline void RunAggregationQueryResponse::unsafe_arena_set_allocated_result(::google::firestore::v1::AggregationResult* value) {
  10105. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10106. if (GetArena() == nullptr) {
  10107. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_);
  10108. }
  10109. _impl_.result_ = reinterpret_cast<::google::firestore::v1::AggregationResult*>(value);
  10110. if (value != nullptr) {
  10111. _impl_._has_bits_[0] |= 0x00000001u;
  10112. } else {
  10113. _impl_._has_bits_[0] &= ~0x00000001u;
  10114. }
  10115. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunAggregationQueryResponse.result)
  10116. }
  10117. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::release_result() {
  10118. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10119. _impl_._has_bits_[0] &= ~0x00000001u;
  10120. ::google::firestore::v1::AggregationResult* released = _impl_.result_;
  10121. _impl_.result_ = nullptr;
  10122. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10123. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  10124. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  10125. if (GetArena() == nullptr) {
  10126. delete old;
  10127. }
  10128. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10129. if (GetArena() != nullptr) {
  10130. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  10131. }
  10132. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10133. return released;
  10134. }
  10135. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::unsafe_arena_release_result() {
  10136. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10137. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.result)
  10138. _impl_._has_bits_[0] &= ~0x00000001u;
  10139. ::google::firestore::v1::AggregationResult* temp = _impl_.result_;
  10140. _impl_.result_ = nullptr;
  10141. return temp;
  10142. }
  10143. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::_internal_mutable_result() {
  10144. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10145. _impl_._has_bits_[0] |= 0x00000001u;
  10146. if (_impl_.result_ == nullptr) {
  10147. auto* p = CreateMaybeMessage<::google::firestore::v1::AggregationResult>(GetArena());
  10148. _impl_.result_ = reinterpret_cast<::google::firestore::v1::AggregationResult*>(p);
  10149. }
  10150. return _impl_.result_;
  10151. }
  10152. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::mutable_result() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10153. ::google::firestore::v1::AggregationResult* _msg = _internal_mutable_result();
  10154. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.result)
  10155. return _msg;
  10156. }
  10157. inline void RunAggregationQueryResponse::set_allocated_result(::google::firestore::v1::AggregationResult* value) {
  10158. ::google::protobuf::Arena* message_arena = GetArena();
  10159. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10160. if (message_arena == nullptr) {
  10161. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_);
  10162. }
  10163. if (value != nullptr) {
  10164. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  10165. if (message_arena != submessage_arena) {
  10166. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  10167. }
  10168. _impl_._has_bits_[0] |= 0x00000001u;
  10169. } else {
  10170. _impl_._has_bits_[0] &= ~0x00000001u;
  10171. }
  10172. _impl_.result_ = reinterpret_cast<::google::firestore::v1::AggregationResult*>(value);
  10173. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.result)
  10174. }
  10175. // bytes transaction = 2;
  10176. inline void RunAggregationQueryResponse::clear_transaction() {
  10177. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10178. _impl_.transaction_.ClearToEmpty();
  10179. }
  10180. inline const std::string& RunAggregationQueryResponse::transaction() const
  10181. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10182. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.transaction)
  10183. return _internal_transaction();
  10184. }
  10185. template <typename Arg_, typename... Args_>
  10186. inline PROTOBUF_ALWAYS_INLINE void RunAggregationQueryResponse::set_transaction(Arg_&& arg,
  10187. Args_... args) {
  10188. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10189. ;
  10190. _impl_.transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  10191. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryResponse.transaction)
  10192. }
  10193. inline std::string* RunAggregationQueryResponse::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10194. std::string* _s = _internal_mutable_transaction();
  10195. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.transaction)
  10196. return _s;
  10197. }
  10198. inline const std::string& RunAggregationQueryResponse::_internal_transaction() const {
  10199. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10200. return _impl_.transaction_.Get();
  10201. }
  10202. inline void RunAggregationQueryResponse::_internal_set_transaction(const std::string& value) {
  10203. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10204. ;
  10205. _impl_.transaction_.Set(value, GetArena());
  10206. }
  10207. inline std::string* RunAggregationQueryResponse::_internal_mutable_transaction() {
  10208. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10209. ;
  10210. return _impl_.transaction_.Mutable( GetArena());
  10211. }
  10212. inline std::string* RunAggregationQueryResponse::release_transaction() {
  10213. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10214. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.transaction)
  10215. return _impl_.transaction_.Release();
  10216. }
  10217. inline void RunAggregationQueryResponse::set_allocated_transaction(std::string* value) {
  10218. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10219. _impl_.transaction_.SetAllocated(value, GetArena());
  10220. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10221. if (_impl_.transaction_.IsDefault()) {
  10222. _impl_.transaction_.Set("", GetArena());
  10223. }
  10224. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10225. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.transaction)
  10226. }
  10227. // .google.protobuf.Timestamp read_time = 3;
  10228. inline bool RunAggregationQueryResponse::has_read_time() const {
  10229. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  10230. PROTOBUF_ASSUME(!value || _impl_.read_time_ != nullptr);
  10231. return value;
  10232. }
  10233. inline const ::google::protobuf::Timestamp& RunAggregationQueryResponse::_internal_read_time() const {
  10234. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10235. const ::google::protobuf::Timestamp* p = _impl_.read_time_;
  10236. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  10237. }
  10238. inline const ::google::protobuf::Timestamp& RunAggregationQueryResponse::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10239. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.read_time)
  10240. return _internal_read_time();
  10241. }
  10242. inline void RunAggregationQueryResponse::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  10243. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10244. if (GetArena() == nullptr) {
  10245. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  10246. }
  10247. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  10248. if (value != nullptr) {
  10249. _impl_._has_bits_[0] |= 0x00000002u;
  10250. } else {
  10251. _impl_._has_bits_[0] &= ~0x00000002u;
  10252. }
  10253. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.RunAggregationQueryResponse.read_time)
  10254. }
  10255. inline ::google::protobuf::Timestamp* RunAggregationQueryResponse::release_read_time() {
  10256. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10257. _impl_._has_bits_[0] &= ~0x00000002u;
  10258. ::google::protobuf::Timestamp* released = _impl_.read_time_;
  10259. _impl_.read_time_ = nullptr;
  10260. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10261. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  10262. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  10263. if (GetArena() == nullptr) {
  10264. delete old;
  10265. }
  10266. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10267. if (GetArena() != nullptr) {
  10268. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  10269. }
  10270. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10271. return released;
  10272. }
  10273. inline ::google::protobuf::Timestamp* RunAggregationQueryResponse::unsafe_arena_release_read_time() {
  10274. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10275. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.read_time)
  10276. _impl_._has_bits_[0] &= ~0x00000002u;
  10277. ::google::protobuf::Timestamp* temp = _impl_.read_time_;
  10278. _impl_.read_time_ = nullptr;
  10279. return temp;
  10280. }
  10281. inline ::google::protobuf::Timestamp* RunAggregationQueryResponse::_internal_mutable_read_time() {
  10282. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10283. _impl_._has_bits_[0] |= 0x00000002u;
  10284. if (_impl_.read_time_ == nullptr) {
  10285. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  10286. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  10287. }
  10288. return _impl_.read_time_;
  10289. }
  10290. inline ::google::protobuf::Timestamp* RunAggregationQueryResponse::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10291. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  10292. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.read_time)
  10293. return _msg;
  10294. }
  10295. inline void RunAggregationQueryResponse::set_allocated_read_time(::google::protobuf::Timestamp* value) {
  10296. ::google::protobuf::Arena* message_arena = GetArena();
  10297. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10298. if (message_arena == nullptr) {
  10299. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  10300. }
  10301. if (value != nullptr) {
  10302. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  10303. if (message_arena != submessage_arena) {
  10304. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  10305. }
  10306. _impl_._has_bits_[0] |= 0x00000002u;
  10307. } else {
  10308. _impl_._has_bits_[0] &= ~0x00000002u;
  10309. }
  10310. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  10311. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.read_time)
  10312. }
  10313. // -------------------------------------------------------------------
  10314. // -------------------------------------------------------------------
  10315. // WriteRequest
  10316. // string database = 1;
  10317. inline void WriteRequest::clear_database() {
  10318. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10319. _impl_.database_.ClearToEmpty();
  10320. }
  10321. inline const std::string& WriteRequest::database() const
  10322. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10323. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.database)
  10324. return _internal_database();
  10325. }
  10326. template <typename Arg_, typename... Args_>
  10327. inline PROTOBUF_ALWAYS_INLINE void WriteRequest::set_database(Arg_&& arg,
  10328. Args_... args) {
  10329. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10330. ;
  10331. _impl_.database_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  10332. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.database)
  10333. }
  10334. inline std::string* WriteRequest::mutable_database() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10335. std::string* _s = _internal_mutable_database();
  10336. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.database)
  10337. return _s;
  10338. }
  10339. inline const std::string& WriteRequest::_internal_database() const {
  10340. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10341. return _impl_.database_.Get();
  10342. }
  10343. inline void WriteRequest::_internal_set_database(const std::string& value) {
  10344. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10345. ;
  10346. _impl_.database_.Set(value, GetArena());
  10347. }
  10348. inline std::string* WriteRequest::_internal_mutable_database() {
  10349. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10350. ;
  10351. return _impl_.database_.Mutable( GetArena());
  10352. }
  10353. inline std::string* WriteRequest::release_database() {
  10354. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10355. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.database)
  10356. return _impl_.database_.Release();
  10357. }
  10358. inline void WriteRequest::set_allocated_database(std::string* value) {
  10359. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10360. _impl_.database_.SetAllocated(value, GetArena());
  10361. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10362. if (_impl_.database_.IsDefault()) {
  10363. _impl_.database_.Set("", GetArena());
  10364. }
  10365. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10366. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.database)
  10367. }
  10368. // string stream_id = 2;
  10369. inline void WriteRequest::clear_stream_id() {
  10370. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10371. _impl_.stream_id_.ClearToEmpty();
  10372. }
  10373. inline const std::string& WriteRequest::stream_id() const
  10374. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10375. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_id)
  10376. return _internal_stream_id();
  10377. }
  10378. template <typename Arg_, typename... Args_>
  10379. inline PROTOBUF_ALWAYS_INLINE void WriteRequest::set_stream_id(Arg_&& arg,
  10380. Args_... args) {
  10381. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10382. ;
  10383. _impl_.stream_id_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  10384. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_id)
  10385. }
  10386. inline std::string* WriteRequest::mutable_stream_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10387. std::string* _s = _internal_mutable_stream_id();
  10388. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_id)
  10389. return _s;
  10390. }
  10391. inline const std::string& WriteRequest::_internal_stream_id() const {
  10392. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10393. return _impl_.stream_id_.Get();
  10394. }
  10395. inline void WriteRequest::_internal_set_stream_id(const std::string& value) {
  10396. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10397. ;
  10398. _impl_.stream_id_.Set(value, GetArena());
  10399. }
  10400. inline std::string* WriteRequest::_internal_mutable_stream_id() {
  10401. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10402. ;
  10403. return _impl_.stream_id_.Mutable( GetArena());
  10404. }
  10405. inline std::string* WriteRequest::release_stream_id() {
  10406. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10407. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_id)
  10408. return _impl_.stream_id_.Release();
  10409. }
  10410. inline void WriteRequest::set_allocated_stream_id(std::string* value) {
  10411. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10412. _impl_.stream_id_.SetAllocated(value, GetArena());
  10413. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10414. if (_impl_.stream_id_.IsDefault()) {
  10415. _impl_.stream_id_.Set("", GetArena());
  10416. }
  10417. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10418. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_id)
  10419. }
  10420. // repeated .google.firestore.v1.Write writes = 3;
  10421. inline int WriteRequest::_internal_writes_size() const {
  10422. return _internal_writes().size();
  10423. }
  10424. inline int WriteRequest::writes_size() const {
  10425. return _internal_writes_size();
  10426. }
  10427. inline ::google::firestore::v1::Write* WriteRequest::mutable_writes(int index)
  10428. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10429. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.writes)
  10430. return _internal_mutable_writes()->Mutable(index);
  10431. }
  10432. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>* WriteRequest::mutable_writes()
  10433. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10434. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteRequest.writes)
  10435. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10436. return _internal_mutable_writes();
  10437. }
  10438. inline const ::google::firestore::v1::Write& WriteRequest::writes(int index) const
  10439. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10440. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.writes)
  10441. return _internal_writes().Get(index);
  10442. }
  10443. inline ::google::firestore::v1::Write* WriteRequest::add_writes() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10444. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10445. ::google::firestore::v1::Write* _add = _internal_mutable_writes()->Add();
  10446. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteRequest.writes)
  10447. return _add;
  10448. }
  10449. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>& WriteRequest::writes() const
  10450. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10451. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteRequest.writes)
  10452. return _internal_writes();
  10453. }
  10454. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>&
  10455. WriteRequest::_internal_writes() const {
  10456. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10457. return _impl_.writes_;
  10458. }
  10459. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>*
  10460. WriteRequest::_internal_mutable_writes() {
  10461. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10462. return &_impl_.writes_;
  10463. }
  10464. // bytes stream_token = 4;
  10465. inline void WriteRequest::clear_stream_token() {
  10466. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10467. _impl_.stream_token_.ClearToEmpty();
  10468. }
  10469. inline const std::string& WriteRequest::stream_token() const
  10470. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10471. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_token)
  10472. return _internal_stream_token();
  10473. }
  10474. template <typename Arg_, typename... Args_>
  10475. inline PROTOBUF_ALWAYS_INLINE void WriteRequest::set_stream_token(Arg_&& arg,
  10476. Args_... args) {
  10477. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10478. ;
  10479. _impl_.stream_token_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  10480. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_token)
  10481. }
  10482. inline std::string* WriteRequest::mutable_stream_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10483. std::string* _s = _internal_mutable_stream_token();
  10484. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_token)
  10485. return _s;
  10486. }
  10487. inline const std::string& WriteRequest::_internal_stream_token() const {
  10488. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10489. return _impl_.stream_token_.Get();
  10490. }
  10491. inline void WriteRequest::_internal_set_stream_token(const std::string& value) {
  10492. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10493. ;
  10494. _impl_.stream_token_.Set(value, GetArena());
  10495. }
  10496. inline std::string* WriteRequest::_internal_mutable_stream_token() {
  10497. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10498. ;
  10499. return _impl_.stream_token_.Mutable( GetArena());
  10500. }
  10501. inline std::string* WriteRequest::release_stream_token() {
  10502. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10503. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_token)
  10504. return _impl_.stream_token_.Release();
  10505. }
  10506. inline void WriteRequest::set_allocated_stream_token(std::string* value) {
  10507. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10508. _impl_.stream_token_.SetAllocated(value, GetArena());
  10509. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10510. if (_impl_.stream_token_.IsDefault()) {
  10511. _impl_.stream_token_.Set("", GetArena());
  10512. }
  10513. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10514. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_token)
  10515. }
  10516. // map<string, string> labels = 5;
  10517. inline int WriteRequest::_internal_labels_size() const {
  10518. return _internal_labels().size();
  10519. }
  10520. inline int WriteRequest::labels_size() const {
  10521. return _internal_labels_size();
  10522. }
  10523. inline void WriteRequest::clear_labels() {
  10524. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10525. _impl_.labels_.Clear();
  10526. }
  10527. inline const ::google::protobuf::Map<std::string, std::string>& WriteRequest::_internal_labels() const {
  10528. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10529. return _impl_.labels_.GetMap();
  10530. }
  10531. inline const ::google::protobuf::Map<std::string, std::string>& WriteRequest::labels() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10532. // @@protoc_insertion_point(field_map:google.firestore.v1.WriteRequest.labels)
  10533. return _internal_labels();
  10534. }
  10535. inline ::google::protobuf::Map<std::string, std::string>* WriteRequest::_internal_mutable_labels() {
  10536. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10537. return _impl_.labels_.MutableMap();
  10538. }
  10539. inline ::google::protobuf::Map<std::string, std::string>* WriteRequest::mutable_labels() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10540. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.WriteRequest.labels)
  10541. return _internal_mutable_labels();
  10542. }
  10543. // -------------------------------------------------------------------
  10544. // WriteResponse
  10545. // string stream_id = 1;
  10546. inline void WriteResponse::clear_stream_id() {
  10547. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10548. _impl_.stream_id_.ClearToEmpty();
  10549. }
  10550. inline const std::string& WriteResponse::stream_id() const
  10551. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10552. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_id)
  10553. return _internal_stream_id();
  10554. }
  10555. template <typename Arg_, typename... Args_>
  10556. inline PROTOBUF_ALWAYS_INLINE void WriteResponse::set_stream_id(Arg_&& arg,
  10557. Args_... args) {
  10558. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10559. ;
  10560. _impl_.stream_id_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  10561. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_id)
  10562. }
  10563. inline std::string* WriteResponse::mutable_stream_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10564. std::string* _s = _internal_mutable_stream_id();
  10565. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_id)
  10566. return _s;
  10567. }
  10568. inline const std::string& WriteResponse::_internal_stream_id() const {
  10569. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10570. return _impl_.stream_id_.Get();
  10571. }
  10572. inline void WriteResponse::_internal_set_stream_id(const std::string& value) {
  10573. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10574. ;
  10575. _impl_.stream_id_.Set(value, GetArena());
  10576. }
  10577. inline std::string* WriteResponse::_internal_mutable_stream_id() {
  10578. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10579. ;
  10580. return _impl_.stream_id_.Mutable( GetArena());
  10581. }
  10582. inline std::string* WriteResponse::release_stream_id() {
  10583. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10584. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_id)
  10585. return _impl_.stream_id_.Release();
  10586. }
  10587. inline void WriteResponse::set_allocated_stream_id(std::string* value) {
  10588. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10589. _impl_.stream_id_.SetAllocated(value, GetArena());
  10590. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10591. if (_impl_.stream_id_.IsDefault()) {
  10592. _impl_.stream_id_.Set("", GetArena());
  10593. }
  10594. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10595. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_id)
  10596. }
  10597. // bytes stream_token = 2;
  10598. inline void WriteResponse::clear_stream_token() {
  10599. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10600. _impl_.stream_token_.ClearToEmpty();
  10601. }
  10602. inline const std::string& WriteResponse::stream_token() const
  10603. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10604. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_token)
  10605. return _internal_stream_token();
  10606. }
  10607. template <typename Arg_, typename... Args_>
  10608. inline PROTOBUF_ALWAYS_INLINE void WriteResponse::set_stream_token(Arg_&& arg,
  10609. Args_... args) {
  10610. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10611. ;
  10612. _impl_.stream_token_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  10613. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_token)
  10614. }
  10615. inline std::string* WriteResponse::mutable_stream_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10616. std::string* _s = _internal_mutable_stream_token();
  10617. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_token)
  10618. return _s;
  10619. }
  10620. inline const std::string& WriteResponse::_internal_stream_token() const {
  10621. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10622. return _impl_.stream_token_.Get();
  10623. }
  10624. inline void WriteResponse::_internal_set_stream_token(const std::string& value) {
  10625. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10626. ;
  10627. _impl_.stream_token_.Set(value, GetArena());
  10628. }
  10629. inline std::string* WriteResponse::_internal_mutable_stream_token() {
  10630. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10631. ;
  10632. return _impl_.stream_token_.Mutable( GetArena());
  10633. }
  10634. inline std::string* WriteResponse::release_stream_token() {
  10635. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10636. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_token)
  10637. return _impl_.stream_token_.Release();
  10638. }
  10639. inline void WriteResponse::set_allocated_stream_token(std::string* value) {
  10640. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10641. _impl_.stream_token_.SetAllocated(value, GetArena());
  10642. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10643. if (_impl_.stream_token_.IsDefault()) {
  10644. _impl_.stream_token_.Set("", GetArena());
  10645. }
  10646. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10647. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_token)
  10648. }
  10649. // repeated .google.firestore.v1.WriteResult write_results = 3;
  10650. inline int WriteResponse::_internal_write_results_size() const {
  10651. return _internal_write_results().size();
  10652. }
  10653. inline int WriteResponse::write_results_size() const {
  10654. return _internal_write_results_size();
  10655. }
  10656. inline ::google::firestore::v1::WriteResult* WriteResponse::mutable_write_results(int index)
  10657. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10658. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.write_results)
  10659. return _internal_mutable_write_results()->Mutable(index);
  10660. }
  10661. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>* WriteResponse::mutable_write_results()
  10662. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10663. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteResponse.write_results)
  10664. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10665. return _internal_mutable_write_results();
  10666. }
  10667. inline const ::google::firestore::v1::WriteResult& WriteResponse::write_results(int index) const
  10668. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10669. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.write_results)
  10670. return _internal_write_results().Get(index);
  10671. }
  10672. inline ::google::firestore::v1::WriteResult* WriteResponse::add_write_results() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10673. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10674. ::google::firestore::v1::WriteResult* _add = _internal_mutable_write_results()->Add();
  10675. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteResponse.write_results)
  10676. return _add;
  10677. }
  10678. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>& WriteResponse::write_results() const
  10679. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10680. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteResponse.write_results)
  10681. return _internal_write_results();
  10682. }
  10683. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>&
  10684. WriteResponse::_internal_write_results() const {
  10685. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10686. return _impl_.write_results_;
  10687. }
  10688. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::WriteResult>*
  10689. WriteResponse::_internal_mutable_write_results() {
  10690. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10691. return &_impl_.write_results_;
  10692. }
  10693. // .google.protobuf.Timestamp commit_time = 4;
  10694. inline bool WriteResponse::has_commit_time() const {
  10695. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10696. PROTOBUF_ASSUME(!value || _impl_.commit_time_ != nullptr);
  10697. return value;
  10698. }
  10699. inline const ::google::protobuf::Timestamp& WriteResponse::_internal_commit_time() const {
  10700. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10701. const ::google::protobuf::Timestamp* p = _impl_.commit_time_;
  10702. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  10703. }
  10704. inline const ::google::protobuf::Timestamp& WriteResponse::commit_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10705. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.commit_time)
  10706. return _internal_commit_time();
  10707. }
  10708. inline void WriteResponse::unsafe_arena_set_allocated_commit_time(::google::protobuf::Timestamp* value) {
  10709. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10710. if (GetArena() == nullptr) {
  10711. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.commit_time_);
  10712. }
  10713. _impl_.commit_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  10714. if (value != nullptr) {
  10715. _impl_._has_bits_[0] |= 0x00000001u;
  10716. } else {
  10717. _impl_._has_bits_[0] &= ~0x00000001u;
  10718. }
  10719. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.WriteResponse.commit_time)
  10720. }
  10721. inline ::google::protobuf::Timestamp* WriteResponse::release_commit_time() {
  10722. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10723. _impl_._has_bits_[0] &= ~0x00000001u;
  10724. ::google::protobuf::Timestamp* released = _impl_.commit_time_;
  10725. _impl_.commit_time_ = nullptr;
  10726. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10727. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  10728. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  10729. if (GetArena() == nullptr) {
  10730. delete old;
  10731. }
  10732. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10733. if (GetArena() != nullptr) {
  10734. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  10735. }
  10736. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10737. return released;
  10738. }
  10739. inline ::google::protobuf::Timestamp* WriteResponse::unsafe_arena_release_commit_time() {
  10740. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10741. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.commit_time)
  10742. _impl_._has_bits_[0] &= ~0x00000001u;
  10743. ::google::protobuf::Timestamp* temp = _impl_.commit_time_;
  10744. _impl_.commit_time_ = nullptr;
  10745. return temp;
  10746. }
  10747. inline ::google::protobuf::Timestamp* WriteResponse::_internal_mutable_commit_time() {
  10748. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10749. _impl_._has_bits_[0] |= 0x00000001u;
  10750. if (_impl_.commit_time_ == nullptr) {
  10751. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  10752. _impl_.commit_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  10753. }
  10754. return _impl_.commit_time_;
  10755. }
  10756. inline ::google::protobuf::Timestamp* WriteResponse::mutable_commit_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10757. ::google::protobuf::Timestamp* _msg = _internal_mutable_commit_time();
  10758. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.commit_time)
  10759. return _msg;
  10760. }
  10761. inline void WriteResponse::set_allocated_commit_time(::google::protobuf::Timestamp* value) {
  10762. ::google::protobuf::Arena* message_arena = GetArena();
  10763. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10764. if (message_arena == nullptr) {
  10765. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.commit_time_);
  10766. }
  10767. if (value != nullptr) {
  10768. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  10769. if (message_arena != submessage_arena) {
  10770. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  10771. }
  10772. _impl_._has_bits_[0] |= 0x00000001u;
  10773. } else {
  10774. _impl_._has_bits_[0] &= ~0x00000001u;
  10775. }
  10776. _impl_.commit_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  10777. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.commit_time)
  10778. }
  10779. // -------------------------------------------------------------------
  10780. // -------------------------------------------------------------------
  10781. // ListenRequest
  10782. // string database = 1;
  10783. inline void ListenRequest::clear_database() {
  10784. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10785. _impl_.database_.ClearToEmpty();
  10786. }
  10787. inline const std::string& ListenRequest::database() const
  10788. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10789. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.database)
  10790. return _internal_database();
  10791. }
  10792. template <typename Arg_, typename... Args_>
  10793. inline PROTOBUF_ALWAYS_INLINE void ListenRequest::set_database(Arg_&& arg,
  10794. Args_... args) {
  10795. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10796. ;
  10797. _impl_.database_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  10798. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.database)
  10799. }
  10800. inline std::string* ListenRequest::mutable_database() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10801. std::string* _s = _internal_mutable_database();
  10802. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.database)
  10803. return _s;
  10804. }
  10805. inline const std::string& ListenRequest::_internal_database() const {
  10806. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10807. return _impl_.database_.Get();
  10808. }
  10809. inline void ListenRequest::_internal_set_database(const std::string& value) {
  10810. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10811. ;
  10812. _impl_.database_.Set(value, GetArena());
  10813. }
  10814. inline std::string* ListenRequest::_internal_mutable_database() {
  10815. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10816. ;
  10817. return _impl_.database_.Mutable( GetArena());
  10818. }
  10819. inline std::string* ListenRequest::release_database() {
  10820. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10821. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.database)
  10822. return _impl_.database_.Release();
  10823. }
  10824. inline void ListenRequest::set_allocated_database(std::string* value) {
  10825. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10826. _impl_.database_.SetAllocated(value, GetArena());
  10827. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10828. if (_impl_.database_.IsDefault()) {
  10829. _impl_.database_.Set("", GetArena());
  10830. }
  10831. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10832. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenRequest.database)
  10833. }
  10834. // .google.firestore.v1.Target add_target = 2;
  10835. inline bool ListenRequest::has_add_target() const {
  10836. return target_change_case() == kAddTarget;
  10837. }
  10838. inline bool ListenRequest::_internal_has_add_target() const {
  10839. return target_change_case() == kAddTarget;
  10840. }
  10841. inline void ListenRequest::set_has_add_target() {
  10842. _impl_._oneof_case_[0] = kAddTarget;
  10843. }
  10844. inline void ListenRequest::clear_add_target() {
  10845. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10846. if (target_change_case() == kAddTarget) {
  10847. if (GetArena() == nullptr) {
  10848. delete _impl_.target_change_.add_target_;
  10849. }
  10850. clear_has_target_change();
  10851. }
  10852. }
  10853. inline ::google::firestore::v1::Target* ListenRequest::release_add_target() {
  10854. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.add_target)
  10855. if (target_change_case() == kAddTarget) {
  10856. clear_has_target_change();
  10857. auto* temp = _impl_.target_change_.add_target_;
  10858. if (GetArena() != nullptr) {
  10859. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  10860. }
  10861. _impl_.target_change_.add_target_ = nullptr;
  10862. return temp;
  10863. } else {
  10864. return nullptr;
  10865. }
  10866. }
  10867. inline const ::google::firestore::v1::Target& ListenRequest::_internal_add_target() const {
  10868. return target_change_case() == kAddTarget ? *_impl_.target_change_.add_target_ : reinterpret_cast<::google::firestore::v1::Target&>(::google::firestore::v1::_Target_default_instance_);
  10869. }
  10870. inline const ::google::firestore::v1::Target& ListenRequest::add_target() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10871. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.add_target)
  10872. return _internal_add_target();
  10873. }
  10874. inline ::google::firestore::v1::Target* ListenRequest::unsafe_arena_release_add_target() {
  10875. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.ListenRequest.add_target)
  10876. if (target_change_case() == kAddTarget) {
  10877. clear_has_target_change();
  10878. auto* temp = _impl_.target_change_.add_target_;
  10879. _impl_.target_change_.add_target_ = nullptr;
  10880. return temp;
  10881. } else {
  10882. return nullptr;
  10883. }
  10884. }
  10885. inline void ListenRequest::unsafe_arena_set_allocated_add_target(::google::firestore::v1::Target* value) {
  10886. // We rely on the oneof clear method to free the earlier contents
  10887. // of this oneof. We can directly use the pointer we're given to
  10888. // set the new value.
  10889. clear_target_change();
  10890. if (value) {
  10891. set_has_add_target();
  10892. _impl_.target_change_.add_target_ = value;
  10893. }
  10894. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.ListenRequest.add_target)
  10895. }
  10896. inline ::google::firestore::v1::Target* ListenRequest::_internal_mutable_add_target() {
  10897. if (target_change_case() != kAddTarget) {
  10898. clear_target_change();
  10899. set_has_add_target();
  10900. _impl_.target_change_.add_target_ = CreateMaybeMessage<::google::firestore::v1::Target>(GetArena());
  10901. }
  10902. return _impl_.target_change_.add_target_;
  10903. }
  10904. inline ::google::firestore::v1::Target* ListenRequest::mutable_add_target() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10905. ::google::firestore::v1::Target* _msg = _internal_mutable_add_target();
  10906. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.add_target)
  10907. return _msg;
  10908. }
  10909. // int32 remove_target = 3;
  10910. inline bool ListenRequest::has_remove_target() const {
  10911. return target_change_case() == kRemoveTarget;
  10912. }
  10913. inline void ListenRequest::set_has_remove_target() {
  10914. _impl_._oneof_case_[0] = kRemoveTarget;
  10915. }
  10916. inline void ListenRequest::clear_remove_target() {
  10917. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10918. if (target_change_case() == kRemoveTarget) {
  10919. _impl_.target_change_.remove_target_ = 0;
  10920. clear_has_target_change();
  10921. }
  10922. }
  10923. inline ::int32_t ListenRequest::remove_target() const {
  10924. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.remove_target)
  10925. return _internal_remove_target();
  10926. }
  10927. inline void ListenRequest::set_remove_target(::int32_t value) {
  10928. _internal_set_remove_target(value);
  10929. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.remove_target)
  10930. }
  10931. inline ::int32_t ListenRequest::_internal_remove_target() const {
  10932. if (target_change_case() == kRemoveTarget) {
  10933. return _impl_.target_change_.remove_target_;
  10934. }
  10935. return 0;
  10936. }
  10937. inline void ListenRequest::_internal_set_remove_target(::int32_t value) {
  10938. if (target_change_case() != kRemoveTarget) {
  10939. clear_target_change();
  10940. set_has_remove_target();
  10941. }
  10942. _impl_.target_change_.remove_target_ = value;
  10943. }
  10944. // map<string, string> labels = 4;
  10945. inline int ListenRequest::_internal_labels_size() const {
  10946. return _internal_labels().size();
  10947. }
  10948. inline int ListenRequest::labels_size() const {
  10949. return _internal_labels_size();
  10950. }
  10951. inline void ListenRequest::clear_labels() {
  10952. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10953. _impl_.labels_.Clear();
  10954. }
  10955. inline const ::google::protobuf::Map<std::string, std::string>& ListenRequest::_internal_labels() const {
  10956. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  10957. return _impl_.labels_.GetMap();
  10958. }
  10959. inline const ::google::protobuf::Map<std::string, std::string>& ListenRequest::labels() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10960. // @@protoc_insertion_point(field_map:google.firestore.v1.ListenRequest.labels)
  10961. return _internal_labels();
  10962. }
  10963. inline ::google::protobuf::Map<std::string, std::string>* ListenRequest::_internal_mutable_labels() {
  10964. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10965. return _impl_.labels_.MutableMap();
  10966. }
  10967. inline ::google::protobuf::Map<std::string, std::string>* ListenRequest::mutable_labels() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  10968. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.ListenRequest.labels)
  10969. return _internal_mutable_labels();
  10970. }
  10971. inline bool ListenRequest::has_target_change() const {
  10972. return target_change_case() != TARGET_CHANGE_NOT_SET;
  10973. }
  10974. inline void ListenRequest::clear_has_target_change() {
  10975. _impl_._oneof_case_[0] = TARGET_CHANGE_NOT_SET;
  10976. }
  10977. inline ListenRequest::TargetChangeCase ListenRequest::target_change_case() const {
  10978. return ListenRequest::TargetChangeCase(_impl_._oneof_case_[0]);
  10979. }
  10980. // -------------------------------------------------------------------
  10981. // ListenResponse
  10982. // .google.firestore.v1.TargetChange target_change = 2;
  10983. inline bool ListenResponse::has_target_change() const {
  10984. return response_type_case() == kTargetChange;
  10985. }
  10986. inline bool ListenResponse::_internal_has_target_change() const {
  10987. return response_type_case() == kTargetChange;
  10988. }
  10989. inline void ListenResponse::set_has_target_change() {
  10990. _impl_._oneof_case_[0] = kTargetChange;
  10991. }
  10992. inline void ListenResponse::clear_target_change() {
  10993. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  10994. if (response_type_case() == kTargetChange) {
  10995. if (GetArena() == nullptr) {
  10996. delete _impl_.response_type_.target_change_;
  10997. }
  10998. clear_has_response_type();
  10999. }
  11000. }
  11001. inline ::google::firestore::v1::TargetChange* ListenResponse::release_target_change() {
  11002. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.target_change)
  11003. if (response_type_case() == kTargetChange) {
  11004. clear_has_response_type();
  11005. auto* temp = _impl_.response_type_.target_change_;
  11006. if (GetArena() != nullptr) {
  11007. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11008. }
  11009. _impl_.response_type_.target_change_ = nullptr;
  11010. return temp;
  11011. } else {
  11012. return nullptr;
  11013. }
  11014. }
  11015. inline const ::google::firestore::v1::TargetChange& ListenResponse::_internal_target_change() const {
  11016. return response_type_case() == kTargetChange ? *_impl_.response_type_.target_change_ : reinterpret_cast<::google::firestore::v1::TargetChange&>(::google::firestore::v1::_TargetChange_default_instance_);
  11017. }
  11018. inline const ::google::firestore::v1::TargetChange& ListenResponse::target_change() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11019. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.target_change)
  11020. return _internal_target_change();
  11021. }
  11022. inline ::google::firestore::v1::TargetChange* ListenResponse::unsafe_arena_release_target_change() {
  11023. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.ListenResponse.target_change)
  11024. if (response_type_case() == kTargetChange) {
  11025. clear_has_response_type();
  11026. auto* temp = _impl_.response_type_.target_change_;
  11027. _impl_.response_type_.target_change_ = nullptr;
  11028. return temp;
  11029. } else {
  11030. return nullptr;
  11031. }
  11032. }
  11033. inline void ListenResponse::unsafe_arena_set_allocated_target_change(::google::firestore::v1::TargetChange* value) {
  11034. // We rely on the oneof clear method to free the earlier contents
  11035. // of this oneof. We can directly use the pointer we're given to
  11036. // set the new value.
  11037. clear_response_type();
  11038. if (value) {
  11039. set_has_target_change();
  11040. _impl_.response_type_.target_change_ = value;
  11041. }
  11042. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.ListenResponse.target_change)
  11043. }
  11044. inline ::google::firestore::v1::TargetChange* ListenResponse::_internal_mutable_target_change() {
  11045. if (response_type_case() != kTargetChange) {
  11046. clear_response_type();
  11047. set_has_target_change();
  11048. _impl_.response_type_.target_change_ = CreateMaybeMessage<::google::firestore::v1::TargetChange>(GetArena());
  11049. }
  11050. return _impl_.response_type_.target_change_;
  11051. }
  11052. inline ::google::firestore::v1::TargetChange* ListenResponse::mutable_target_change() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11053. ::google::firestore::v1::TargetChange* _msg = _internal_mutable_target_change();
  11054. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.target_change)
  11055. return _msg;
  11056. }
  11057. // .google.firestore.v1.DocumentChange document_change = 3;
  11058. inline bool ListenResponse::has_document_change() const {
  11059. return response_type_case() == kDocumentChange;
  11060. }
  11061. inline bool ListenResponse::_internal_has_document_change() const {
  11062. return response_type_case() == kDocumentChange;
  11063. }
  11064. inline void ListenResponse::set_has_document_change() {
  11065. _impl_._oneof_case_[0] = kDocumentChange;
  11066. }
  11067. inline ::google::firestore::v1::DocumentChange* ListenResponse::release_document_change() {
  11068. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_change)
  11069. if (response_type_case() == kDocumentChange) {
  11070. clear_has_response_type();
  11071. auto* temp = _impl_.response_type_.document_change_;
  11072. if (GetArena() != nullptr) {
  11073. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11074. }
  11075. _impl_.response_type_.document_change_ = nullptr;
  11076. return temp;
  11077. } else {
  11078. return nullptr;
  11079. }
  11080. }
  11081. inline const ::google::firestore::v1::DocumentChange& ListenResponse::_internal_document_change() const {
  11082. return response_type_case() == kDocumentChange ? *_impl_.response_type_.document_change_ : reinterpret_cast<::google::firestore::v1::DocumentChange&>(::google::firestore::v1::_DocumentChange_default_instance_);
  11083. }
  11084. inline const ::google::firestore::v1::DocumentChange& ListenResponse::document_change() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11085. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_change)
  11086. return _internal_document_change();
  11087. }
  11088. inline ::google::firestore::v1::DocumentChange* ListenResponse::unsafe_arena_release_document_change() {
  11089. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.ListenResponse.document_change)
  11090. if (response_type_case() == kDocumentChange) {
  11091. clear_has_response_type();
  11092. auto* temp = _impl_.response_type_.document_change_;
  11093. _impl_.response_type_.document_change_ = nullptr;
  11094. return temp;
  11095. } else {
  11096. return nullptr;
  11097. }
  11098. }
  11099. inline void ListenResponse::unsafe_arena_set_allocated_document_change(::google::firestore::v1::DocumentChange* value) {
  11100. // We rely on the oneof clear method to free the earlier contents
  11101. // of this oneof. We can directly use the pointer we're given to
  11102. // set the new value.
  11103. clear_response_type();
  11104. if (value) {
  11105. set_has_document_change();
  11106. _impl_.response_type_.document_change_ = value;
  11107. }
  11108. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.ListenResponse.document_change)
  11109. }
  11110. inline ::google::firestore::v1::DocumentChange* ListenResponse::_internal_mutable_document_change() {
  11111. if (response_type_case() != kDocumentChange) {
  11112. clear_response_type();
  11113. set_has_document_change();
  11114. _impl_.response_type_.document_change_ = CreateMaybeMessage<::google::firestore::v1::DocumentChange>(GetArena());
  11115. }
  11116. return _impl_.response_type_.document_change_;
  11117. }
  11118. inline ::google::firestore::v1::DocumentChange* ListenResponse::mutable_document_change() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11119. ::google::firestore::v1::DocumentChange* _msg = _internal_mutable_document_change();
  11120. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_change)
  11121. return _msg;
  11122. }
  11123. // .google.firestore.v1.DocumentDelete document_delete = 4;
  11124. inline bool ListenResponse::has_document_delete() const {
  11125. return response_type_case() == kDocumentDelete;
  11126. }
  11127. inline bool ListenResponse::_internal_has_document_delete() const {
  11128. return response_type_case() == kDocumentDelete;
  11129. }
  11130. inline void ListenResponse::set_has_document_delete() {
  11131. _impl_._oneof_case_[0] = kDocumentDelete;
  11132. }
  11133. inline ::google::firestore::v1::DocumentDelete* ListenResponse::release_document_delete() {
  11134. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_delete)
  11135. if (response_type_case() == kDocumentDelete) {
  11136. clear_has_response_type();
  11137. auto* temp = _impl_.response_type_.document_delete_;
  11138. if (GetArena() != nullptr) {
  11139. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11140. }
  11141. _impl_.response_type_.document_delete_ = nullptr;
  11142. return temp;
  11143. } else {
  11144. return nullptr;
  11145. }
  11146. }
  11147. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::_internal_document_delete() const {
  11148. return response_type_case() == kDocumentDelete ? *_impl_.response_type_.document_delete_ : reinterpret_cast<::google::firestore::v1::DocumentDelete&>(::google::firestore::v1::_DocumentDelete_default_instance_);
  11149. }
  11150. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::document_delete() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11151. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_delete)
  11152. return _internal_document_delete();
  11153. }
  11154. inline ::google::firestore::v1::DocumentDelete* ListenResponse::unsafe_arena_release_document_delete() {
  11155. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.ListenResponse.document_delete)
  11156. if (response_type_case() == kDocumentDelete) {
  11157. clear_has_response_type();
  11158. auto* temp = _impl_.response_type_.document_delete_;
  11159. _impl_.response_type_.document_delete_ = nullptr;
  11160. return temp;
  11161. } else {
  11162. return nullptr;
  11163. }
  11164. }
  11165. inline void ListenResponse::unsafe_arena_set_allocated_document_delete(::google::firestore::v1::DocumentDelete* value) {
  11166. // We rely on the oneof clear method to free the earlier contents
  11167. // of this oneof. We can directly use the pointer we're given to
  11168. // set the new value.
  11169. clear_response_type();
  11170. if (value) {
  11171. set_has_document_delete();
  11172. _impl_.response_type_.document_delete_ = value;
  11173. }
  11174. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.ListenResponse.document_delete)
  11175. }
  11176. inline ::google::firestore::v1::DocumentDelete* ListenResponse::_internal_mutable_document_delete() {
  11177. if (response_type_case() != kDocumentDelete) {
  11178. clear_response_type();
  11179. set_has_document_delete();
  11180. _impl_.response_type_.document_delete_ = CreateMaybeMessage<::google::firestore::v1::DocumentDelete>(GetArena());
  11181. }
  11182. return _impl_.response_type_.document_delete_;
  11183. }
  11184. inline ::google::firestore::v1::DocumentDelete* ListenResponse::mutable_document_delete() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11185. ::google::firestore::v1::DocumentDelete* _msg = _internal_mutable_document_delete();
  11186. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_delete)
  11187. return _msg;
  11188. }
  11189. // .google.firestore.v1.DocumentRemove document_remove = 6;
  11190. inline bool ListenResponse::has_document_remove() const {
  11191. return response_type_case() == kDocumentRemove;
  11192. }
  11193. inline bool ListenResponse::_internal_has_document_remove() const {
  11194. return response_type_case() == kDocumentRemove;
  11195. }
  11196. inline void ListenResponse::set_has_document_remove() {
  11197. _impl_._oneof_case_[0] = kDocumentRemove;
  11198. }
  11199. inline ::google::firestore::v1::DocumentRemove* ListenResponse::release_document_remove() {
  11200. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_remove)
  11201. if (response_type_case() == kDocumentRemove) {
  11202. clear_has_response_type();
  11203. auto* temp = _impl_.response_type_.document_remove_;
  11204. if (GetArena() != nullptr) {
  11205. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11206. }
  11207. _impl_.response_type_.document_remove_ = nullptr;
  11208. return temp;
  11209. } else {
  11210. return nullptr;
  11211. }
  11212. }
  11213. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::_internal_document_remove() const {
  11214. return response_type_case() == kDocumentRemove ? *_impl_.response_type_.document_remove_ : reinterpret_cast<::google::firestore::v1::DocumentRemove&>(::google::firestore::v1::_DocumentRemove_default_instance_);
  11215. }
  11216. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::document_remove() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11217. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_remove)
  11218. return _internal_document_remove();
  11219. }
  11220. inline ::google::firestore::v1::DocumentRemove* ListenResponse::unsafe_arena_release_document_remove() {
  11221. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.ListenResponse.document_remove)
  11222. if (response_type_case() == kDocumentRemove) {
  11223. clear_has_response_type();
  11224. auto* temp = _impl_.response_type_.document_remove_;
  11225. _impl_.response_type_.document_remove_ = nullptr;
  11226. return temp;
  11227. } else {
  11228. return nullptr;
  11229. }
  11230. }
  11231. inline void ListenResponse::unsafe_arena_set_allocated_document_remove(::google::firestore::v1::DocumentRemove* value) {
  11232. // We rely on the oneof clear method to free the earlier contents
  11233. // of this oneof. We can directly use the pointer we're given to
  11234. // set the new value.
  11235. clear_response_type();
  11236. if (value) {
  11237. set_has_document_remove();
  11238. _impl_.response_type_.document_remove_ = value;
  11239. }
  11240. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.ListenResponse.document_remove)
  11241. }
  11242. inline ::google::firestore::v1::DocumentRemove* ListenResponse::_internal_mutable_document_remove() {
  11243. if (response_type_case() != kDocumentRemove) {
  11244. clear_response_type();
  11245. set_has_document_remove();
  11246. _impl_.response_type_.document_remove_ = CreateMaybeMessage<::google::firestore::v1::DocumentRemove>(GetArena());
  11247. }
  11248. return _impl_.response_type_.document_remove_;
  11249. }
  11250. inline ::google::firestore::v1::DocumentRemove* ListenResponse::mutable_document_remove() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11251. ::google::firestore::v1::DocumentRemove* _msg = _internal_mutable_document_remove();
  11252. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_remove)
  11253. return _msg;
  11254. }
  11255. // .google.firestore.v1.ExistenceFilter filter = 5;
  11256. inline bool ListenResponse::has_filter() const {
  11257. return response_type_case() == kFilter;
  11258. }
  11259. inline bool ListenResponse::_internal_has_filter() const {
  11260. return response_type_case() == kFilter;
  11261. }
  11262. inline void ListenResponse::set_has_filter() {
  11263. _impl_._oneof_case_[0] = kFilter;
  11264. }
  11265. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::release_filter() {
  11266. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.filter)
  11267. if (response_type_case() == kFilter) {
  11268. clear_has_response_type();
  11269. auto* temp = _impl_.response_type_.filter_;
  11270. if (GetArena() != nullptr) {
  11271. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11272. }
  11273. _impl_.response_type_.filter_ = nullptr;
  11274. return temp;
  11275. } else {
  11276. return nullptr;
  11277. }
  11278. }
  11279. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::_internal_filter() const {
  11280. return response_type_case() == kFilter ? *_impl_.response_type_.filter_ : reinterpret_cast<::google::firestore::v1::ExistenceFilter&>(::google::firestore::v1::_ExistenceFilter_default_instance_);
  11281. }
  11282. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::filter() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11283. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.filter)
  11284. return _internal_filter();
  11285. }
  11286. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::unsafe_arena_release_filter() {
  11287. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.ListenResponse.filter)
  11288. if (response_type_case() == kFilter) {
  11289. clear_has_response_type();
  11290. auto* temp = _impl_.response_type_.filter_;
  11291. _impl_.response_type_.filter_ = nullptr;
  11292. return temp;
  11293. } else {
  11294. return nullptr;
  11295. }
  11296. }
  11297. inline void ListenResponse::unsafe_arena_set_allocated_filter(::google::firestore::v1::ExistenceFilter* value) {
  11298. // We rely on the oneof clear method to free the earlier contents
  11299. // of this oneof. We can directly use the pointer we're given to
  11300. // set the new value.
  11301. clear_response_type();
  11302. if (value) {
  11303. set_has_filter();
  11304. _impl_.response_type_.filter_ = value;
  11305. }
  11306. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.ListenResponse.filter)
  11307. }
  11308. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::_internal_mutable_filter() {
  11309. if (response_type_case() != kFilter) {
  11310. clear_response_type();
  11311. set_has_filter();
  11312. _impl_.response_type_.filter_ = CreateMaybeMessage<::google::firestore::v1::ExistenceFilter>(GetArena());
  11313. }
  11314. return _impl_.response_type_.filter_;
  11315. }
  11316. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::mutable_filter() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11317. ::google::firestore::v1::ExistenceFilter* _msg = _internal_mutable_filter();
  11318. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.filter)
  11319. return _msg;
  11320. }
  11321. inline bool ListenResponse::has_response_type() const {
  11322. return response_type_case() != RESPONSE_TYPE_NOT_SET;
  11323. }
  11324. inline void ListenResponse::clear_has_response_type() {
  11325. _impl_._oneof_case_[0] = RESPONSE_TYPE_NOT_SET;
  11326. }
  11327. inline ListenResponse::ResponseTypeCase ListenResponse::response_type_case() const {
  11328. return ListenResponse::ResponseTypeCase(_impl_._oneof_case_[0]);
  11329. }
  11330. // -------------------------------------------------------------------
  11331. // Target_DocumentsTarget
  11332. // repeated string documents = 2;
  11333. inline int Target_DocumentsTarget::_internal_documents_size() const {
  11334. return _internal_documents().size();
  11335. }
  11336. inline int Target_DocumentsTarget::documents_size() const {
  11337. return _internal_documents_size();
  11338. }
  11339. inline void Target_DocumentsTarget::clear_documents() {
  11340. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11341. _impl_.documents_.Clear();
  11342. }
  11343. inline std::string* Target_DocumentsTarget::add_documents()
  11344. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11345. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11346. std::string* _s = _internal_mutable_documents()->Add();
  11347. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  11348. return _s;
  11349. }
  11350. inline const std::string& Target_DocumentsTarget::documents(int index) const
  11351. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11352. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.DocumentsTarget.documents)
  11353. return _internal_documents().Get(index);
  11354. }
  11355. inline std::string* Target_DocumentsTarget::mutable_documents(int index)
  11356. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11357. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  11358. return _internal_mutable_documents()->Mutable(index);
  11359. }
  11360. inline void Target_DocumentsTarget::set_documents(int index, const std::string& value) {
  11361. _internal_mutable_documents()->Mutable(index)->assign(value);
  11362. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  11363. }
  11364. inline void Target_DocumentsTarget::set_documents(int index, std::string&& value) {
  11365. _internal_mutable_documents()->Mutable(index)->assign(std::move(value));
  11366. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  11367. }
  11368. inline void Target_DocumentsTarget::set_documents(int index, const char* value) {
  11369. ABSL_DCHECK(value != nullptr);
  11370. _internal_mutable_documents()->Mutable(index)->assign(value);
  11371. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.DocumentsTarget.documents)
  11372. }
  11373. inline void Target_DocumentsTarget::set_documents(int index, const char* value,
  11374. std::size_t size) {
  11375. _internal_mutable_documents()->Mutable(index)->assign(
  11376. reinterpret_cast<const char*>(value), size);
  11377. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  11378. }
  11379. inline void Target_DocumentsTarget::set_documents(int index, absl::string_view value) {
  11380. _internal_mutable_documents()->Mutable(index)->assign(value.data(),
  11381. value.size());
  11382. // @@protoc_insertion_point(field_set_string_piece:google.firestore.v1.Target.DocumentsTarget.documents)
  11383. }
  11384. inline void Target_DocumentsTarget::add_documents(const std::string& value) {
  11385. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11386. _internal_mutable_documents()->Add()->assign(value);
  11387. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  11388. }
  11389. inline void Target_DocumentsTarget::add_documents(std::string&& value) {
  11390. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11391. _internal_mutable_documents()->Add(std::move(value));
  11392. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  11393. }
  11394. inline void Target_DocumentsTarget::add_documents(const char* value) {
  11395. ABSL_DCHECK(value != nullptr);
  11396. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11397. _internal_mutable_documents()->Add()->assign(value);
  11398. // @@protoc_insertion_point(field_add_char:google.firestore.v1.Target.DocumentsTarget.documents)
  11399. }
  11400. inline void Target_DocumentsTarget::add_documents(const char* value, std::size_t size) {
  11401. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11402. _internal_mutable_documents()->Add()->assign(
  11403. reinterpret_cast<const char*>(value), size);
  11404. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  11405. }
  11406. inline void Target_DocumentsTarget::add_documents(absl::string_view value) {
  11407. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11408. _internal_mutable_documents()->Add()->assign(value.data(), value.size());
  11409. // @@protoc_insertion_point(field_add_string_piece:google.firestore.v1.Target.DocumentsTarget.documents)
  11410. }
  11411. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  11412. Target_DocumentsTarget::documents() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11413. // @@protoc_insertion_point(field_list:google.firestore.v1.Target.DocumentsTarget.documents)
  11414. return _internal_documents();
  11415. }
  11416. inline ::google::protobuf::RepeatedPtrField<std::string>*
  11417. Target_DocumentsTarget::mutable_documents() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11418. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Target.DocumentsTarget.documents)
  11419. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11420. return _internal_mutable_documents();
  11421. }
  11422. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  11423. Target_DocumentsTarget::_internal_documents() const {
  11424. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  11425. return _impl_.documents_;
  11426. }
  11427. inline ::google::protobuf::RepeatedPtrField<std::string>*
  11428. Target_DocumentsTarget::_internal_mutable_documents() {
  11429. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  11430. return &_impl_.documents_;
  11431. }
  11432. // -------------------------------------------------------------------
  11433. // Target_QueryTarget
  11434. // string parent = 1;
  11435. inline void Target_QueryTarget::clear_parent() {
  11436. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11437. _impl_.parent_.ClearToEmpty();
  11438. }
  11439. inline const std::string& Target_QueryTarget::parent() const
  11440. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11441. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.parent)
  11442. return _internal_parent();
  11443. }
  11444. template <typename Arg_, typename... Args_>
  11445. inline PROTOBUF_ALWAYS_INLINE void Target_QueryTarget::set_parent(Arg_&& arg,
  11446. Args_... args) {
  11447. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11448. ;
  11449. _impl_.parent_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  11450. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.QueryTarget.parent)
  11451. }
  11452. inline std::string* Target_QueryTarget::mutable_parent() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11453. std::string* _s = _internal_mutable_parent();
  11454. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.parent)
  11455. return _s;
  11456. }
  11457. inline const std::string& Target_QueryTarget::_internal_parent() const {
  11458. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  11459. return _impl_.parent_.Get();
  11460. }
  11461. inline void Target_QueryTarget::_internal_set_parent(const std::string& value) {
  11462. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11463. ;
  11464. _impl_.parent_.Set(value, GetArena());
  11465. }
  11466. inline std::string* Target_QueryTarget::_internal_mutable_parent() {
  11467. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11468. ;
  11469. return _impl_.parent_.Mutable( GetArena());
  11470. }
  11471. inline std::string* Target_QueryTarget::release_parent() {
  11472. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11473. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.parent)
  11474. return _impl_.parent_.Release();
  11475. }
  11476. inline void Target_QueryTarget::set_allocated_parent(std::string* value) {
  11477. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11478. _impl_.parent_.SetAllocated(value, GetArena());
  11479. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11480. if (_impl_.parent_.IsDefault()) {
  11481. _impl_.parent_.Set("", GetArena());
  11482. }
  11483. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11484. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.QueryTarget.parent)
  11485. }
  11486. // .google.firestore.v1.StructuredQuery structured_query = 2;
  11487. inline bool Target_QueryTarget::has_structured_query() const {
  11488. return query_type_case() == kStructuredQuery;
  11489. }
  11490. inline bool Target_QueryTarget::_internal_has_structured_query() const {
  11491. return query_type_case() == kStructuredQuery;
  11492. }
  11493. inline void Target_QueryTarget::set_has_structured_query() {
  11494. _impl_._oneof_case_[0] = kStructuredQuery;
  11495. }
  11496. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::release_structured_query() {
  11497. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.structured_query)
  11498. if (query_type_case() == kStructuredQuery) {
  11499. clear_has_query_type();
  11500. auto* temp = _impl_.query_type_.structured_query_;
  11501. if (GetArena() != nullptr) {
  11502. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11503. }
  11504. _impl_.query_type_.structured_query_ = nullptr;
  11505. return temp;
  11506. } else {
  11507. return nullptr;
  11508. }
  11509. }
  11510. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::_internal_structured_query() const {
  11511. return query_type_case() == kStructuredQuery ? *_impl_.query_type_.structured_query_ : reinterpret_cast<::google::firestore::v1::StructuredQuery&>(::google::firestore::v1::_StructuredQuery_default_instance_);
  11512. }
  11513. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::structured_query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11514. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.structured_query)
  11515. return _internal_structured_query();
  11516. }
  11517. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::unsafe_arena_release_structured_query() {
  11518. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Target.QueryTarget.structured_query)
  11519. if (query_type_case() == kStructuredQuery) {
  11520. clear_has_query_type();
  11521. auto* temp = _impl_.query_type_.structured_query_;
  11522. _impl_.query_type_.structured_query_ = nullptr;
  11523. return temp;
  11524. } else {
  11525. return nullptr;
  11526. }
  11527. }
  11528. inline void Target_QueryTarget::unsafe_arena_set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value) {
  11529. // We rely on the oneof clear method to free the earlier contents
  11530. // of this oneof. We can directly use the pointer we're given to
  11531. // set the new value.
  11532. clear_query_type();
  11533. if (value) {
  11534. set_has_structured_query();
  11535. _impl_.query_type_.structured_query_ = value;
  11536. }
  11537. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Target.QueryTarget.structured_query)
  11538. }
  11539. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::_internal_mutable_structured_query() {
  11540. if (query_type_case() != kStructuredQuery) {
  11541. clear_query_type();
  11542. set_has_structured_query();
  11543. _impl_.query_type_.structured_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery>(GetArena());
  11544. }
  11545. return _impl_.query_type_.structured_query_;
  11546. }
  11547. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::mutable_structured_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11548. ::google::firestore::v1::StructuredQuery* _msg = _internal_mutable_structured_query();
  11549. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.structured_query)
  11550. return _msg;
  11551. }
  11552. inline bool Target_QueryTarget::has_query_type() const {
  11553. return query_type_case() != QUERY_TYPE_NOT_SET;
  11554. }
  11555. inline void Target_QueryTarget::clear_has_query_type() {
  11556. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  11557. }
  11558. inline Target_QueryTarget::QueryTypeCase Target_QueryTarget::query_type_case() const {
  11559. return Target_QueryTarget::QueryTypeCase(_impl_._oneof_case_[0]);
  11560. }
  11561. // -------------------------------------------------------------------
  11562. // Target
  11563. // .google.firestore.v1.Target.QueryTarget query = 2;
  11564. inline bool Target::has_query() const {
  11565. return target_type_case() == kQuery;
  11566. }
  11567. inline bool Target::_internal_has_query() const {
  11568. return target_type_case() == kQuery;
  11569. }
  11570. inline void Target::set_has_query() {
  11571. _impl_._oneof_case_[0] = kQuery;
  11572. }
  11573. inline void Target::clear_query() {
  11574. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11575. if (target_type_case() == kQuery) {
  11576. if (GetArena() == nullptr) {
  11577. delete _impl_.target_type_.query_;
  11578. }
  11579. clear_has_target_type();
  11580. }
  11581. }
  11582. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  11583. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.query)
  11584. if (target_type_case() == kQuery) {
  11585. clear_has_target_type();
  11586. auto* temp = _impl_.target_type_.query_;
  11587. if (GetArena() != nullptr) {
  11588. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11589. }
  11590. _impl_.target_type_.query_ = nullptr;
  11591. return temp;
  11592. } else {
  11593. return nullptr;
  11594. }
  11595. }
  11596. inline const ::google::firestore::v1::Target_QueryTarget& Target::_internal_query() const {
  11597. return target_type_case() == kQuery ? *_impl_.target_type_.query_ : reinterpret_cast<::google::firestore::v1::Target_QueryTarget&>(::google::firestore::v1::_Target_QueryTarget_default_instance_);
  11598. }
  11599. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11600. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.query)
  11601. return _internal_query();
  11602. }
  11603. inline ::google::firestore::v1::Target_QueryTarget* Target::unsafe_arena_release_query() {
  11604. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Target.query)
  11605. if (target_type_case() == kQuery) {
  11606. clear_has_target_type();
  11607. auto* temp = _impl_.target_type_.query_;
  11608. _impl_.target_type_.query_ = nullptr;
  11609. return temp;
  11610. } else {
  11611. return nullptr;
  11612. }
  11613. }
  11614. inline void Target::unsafe_arena_set_allocated_query(::google::firestore::v1::Target_QueryTarget* value) {
  11615. // We rely on the oneof clear method to free the earlier contents
  11616. // of this oneof. We can directly use the pointer we're given to
  11617. // set the new value.
  11618. clear_target_type();
  11619. if (value) {
  11620. set_has_query();
  11621. _impl_.target_type_.query_ = value;
  11622. }
  11623. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Target.query)
  11624. }
  11625. inline ::google::firestore::v1::Target_QueryTarget* Target::_internal_mutable_query() {
  11626. if (target_type_case() != kQuery) {
  11627. clear_target_type();
  11628. set_has_query();
  11629. _impl_.target_type_.query_ = CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(GetArena());
  11630. }
  11631. return _impl_.target_type_.query_;
  11632. }
  11633. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11634. ::google::firestore::v1::Target_QueryTarget* _msg = _internal_mutable_query();
  11635. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.query)
  11636. return _msg;
  11637. }
  11638. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  11639. inline bool Target::has_documents() const {
  11640. return target_type_case() == kDocuments;
  11641. }
  11642. inline bool Target::_internal_has_documents() const {
  11643. return target_type_case() == kDocuments;
  11644. }
  11645. inline void Target::set_has_documents() {
  11646. _impl_._oneof_case_[0] = kDocuments;
  11647. }
  11648. inline void Target::clear_documents() {
  11649. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11650. if (target_type_case() == kDocuments) {
  11651. if (GetArena() == nullptr) {
  11652. delete _impl_.target_type_.documents_;
  11653. }
  11654. clear_has_target_type();
  11655. }
  11656. }
  11657. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  11658. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.documents)
  11659. if (target_type_case() == kDocuments) {
  11660. clear_has_target_type();
  11661. auto* temp = _impl_.target_type_.documents_;
  11662. if (GetArena() != nullptr) {
  11663. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11664. }
  11665. _impl_.target_type_.documents_ = nullptr;
  11666. return temp;
  11667. } else {
  11668. return nullptr;
  11669. }
  11670. }
  11671. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::_internal_documents() const {
  11672. return target_type_case() == kDocuments ? *_impl_.target_type_.documents_ : reinterpret_cast<::google::firestore::v1::Target_DocumentsTarget&>(::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  11673. }
  11674. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11675. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.documents)
  11676. return _internal_documents();
  11677. }
  11678. inline ::google::firestore::v1::Target_DocumentsTarget* Target::unsafe_arena_release_documents() {
  11679. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Target.documents)
  11680. if (target_type_case() == kDocuments) {
  11681. clear_has_target_type();
  11682. auto* temp = _impl_.target_type_.documents_;
  11683. _impl_.target_type_.documents_ = nullptr;
  11684. return temp;
  11685. } else {
  11686. return nullptr;
  11687. }
  11688. }
  11689. inline void Target::unsafe_arena_set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value) {
  11690. // We rely on the oneof clear method to free the earlier contents
  11691. // of this oneof. We can directly use the pointer we're given to
  11692. // set the new value.
  11693. clear_target_type();
  11694. if (value) {
  11695. set_has_documents();
  11696. _impl_.target_type_.documents_ = value;
  11697. }
  11698. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Target.documents)
  11699. }
  11700. inline ::google::firestore::v1::Target_DocumentsTarget* Target::_internal_mutable_documents() {
  11701. if (target_type_case() != kDocuments) {
  11702. clear_target_type();
  11703. set_has_documents();
  11704. _impl_.target_type_.documents_ = CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(GetArena());
  11705. }
  11706. return _impl_.target_type_.documents_;
  11707. }
  11708. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11709. ::google::firestore::v1::Target_DocumentsTarget* _msg = _internal_mutable_documents();
  11710. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.documents)
  11711. return _msg;
  11712. }
  11713. // bytes resume_token = 4;
  11714. inline bool Target::has_resume_token() const {
  11715. return resume_type_case() == kResumeToken;
  11716. }
  11717. inline void Target::set_has_resume_token() {
  11718. _impl_._oneof_case_[1] = kResumeToken;
  11719. }
  11720. inline void Target::clear_resume_token() {
  11721. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11722. if (resume_type_case() == kResumeToken) {
  11723. _impl_.resume_type_.resume_token_.Destroy();
  11724. clear_has_resume_type();
  11725. }
  11726. }
  11727. inline const std::string& Target::resume_token() const
  11728. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11729. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.resume_token)
  11730. return _internal_resume_token();
  11731. }
  11732. template <typename Arg_, typename... Args_>
  11733. inline PROTOBUF_ALWAYS_INLINE void Target::set_resume_token(Arg_&& arg,
  11734. Args_... args) {
  11735. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11736. if (resume_type_case() != kResumeToken) {
  11737. clear_resume_type();
  11738. set_has_resume_token();
  11739. _impl_.resume_type_.resume_token_.InitDefault();
  11740. }
  11741. _impl_.resume_type_.resume_token_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  11742. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  11743. }
  11744. inline std::string* Target::mutable_resume_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11745. std::string* _s = _internal_mutable_resume_token();
  11746. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.resume_token)
  11747. return _s;
  11748. }
  11749. inline const std::string& Target::_internal_resume_token() const {
  11750. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  11751. if (resume_type_case() != kResumeToken) {
  11752. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  11753. }
  11754. return _impl_.resume_type_.resume_token_.Get();
  11755. }
  11756. inline void Target::_internal_set_resume_token(const std::string& value) {
  11757. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11758. if (resume_type_case() != kResumeToken) {
  11759. clear_resume_type();
  11760. set_has_resume_token();
  11761. _impl_.resume_type_.resume_token_.InitDefault();
  11762. }
  11763. _impl_.resume_type_.resume_token_.Set(value, GetArena());
  11764. }
  11765. inline std::string* Target::_internal_mutable_resume_token() {
  11766. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11767. if (resume_type_case() != kResumeToken) {
  11768. clear_resume_type();
  11769. set_has_resume_token();
  11770. _impl_.resume_type_.resume_token_.InitDefault();
  11771. }
  11772. return _impl_.resume_type_.resume_token_.Mutable( GetArena());
  11773. }
  11774. inline std::string* Target::release_resume_token() {
  11775. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11776. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.resume_token)
  11777. if (resume_type_case() != kResumeToken) {
  11778. return nullptr;
  11779. }
  11780. clear_has_resume_type();
  11781. return _impl_.resume_type_.resume_token_.Release();
  11782. }
  11783. inline void Target::set_allocated_resume_token(std::string* value) {
  11784. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11785. if (has_resume_type()) {
  11786. clear_resume_type();
  11787. }
  11788. if (value != nullptr) {
  11789. set_has_resume_token();
  11790. _impl_.resume_type_.resume_token_.InitAllocated(value, GetArena());
  11791. }
  11792. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.resume_token)
  11793. }
  11794. // .google.protobuf.Timestamp read_time = 11;
  11795. inline bool Target::has_read_time() const {
  11796. return resume_type_case() == kReadTime;
  11797. }
  11798. inline bool Target::_internal_has_read_time() const {
  11799. return resume_type_case() == kReadTime;
  11800. }
  11801. inline void Target::set_has_read_time() {
  11802. _impl_._oneof_case_[1] = kReadTime;
  11803. }
  11804. inline ::google::protobuf::Timestamp* Target::release_read_time() {
  11805. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.read_time)
  11806. if (resume_type_case() == kReadTime) {
  11807. clear_has_resume_type();
  11808. auto* temp = _impl_.resume_type_.read_time_;
  11809. if (GetArena() != nullptr) {
  11810. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  11811. }
  11812. _impl_.resume_type_.read_time_ = nullptr;
  11813. return temp;
  11814. } else {
  11815. return nullptr;
  11816. }
  11817. }
  11818. inline const ::google::protobuf::Timestamp& Target::_internal_read_time() const {
  11819. return resume_type_case() == kReadTime ? *_impl_.resume_type_.read_time_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  11820. }
  11821. inline const ::google::protobuf::Timestamp& Target::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11822. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.read_time)
  11823. return _internal_read_time();
  11824. }
  11825. inline ::google::protobuf::Timestamp* Target::unsafe_arena_release_read_time() {
  11826. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Target.read_time)
  11827. if (resume_type_case() == kReadTime) {
  11828. clear_has_resume_type();
  11829. auto* temp = _impl_.resume_type_.read_time_;
  11830. _impl_.resume_type_.read_time_ = nullptr;
  11831. return temp;
  11832. } else {
  11833. return nullptr;
  11834. }
  11835. }
  11836. inline void Target::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  11837. // We rely on the oneof clear method to free the earlier contents
  11838. // of this oneof. We can directly use the pointer we're given to
  11839. // set the new value.
  11840. clear_resume_type();
  11841. if (value) {
  11842. set_has_read_time();
  11843. _impl_.resume_type_.read_time_ = value;
  11844. }
  11845. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Target.read_time)
  11846. }
  11847. inline ::google::protobuf::Timestamp* Target::_internal_mutable_read_time() {
  11848. if (resume_type_case() != kReadTime) {
  11849. clear_resume_type();
  11850. set_has_read_time();
  11851. _impl_.resume_type_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  11852. }
  11853. return _impl_.resume_type_.read_time_;
  11854. }
  11855. inline ::google::protobuf::Timestamp* Target::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11856. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  11857. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.read_time)
  11858. return _msg;
  11859. }
  11860. // int32 target_id = 5;
  11861. inline void Target::clear_target_id() {
  11862. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11863. _impl_.target_id_ = 0;
  11864. }
  11865. inline ::int32_t Target::target_id() const {
  11866. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.target_id)
  11867. return _internal_target_id();
  11868. }
  11869. inline void Target::set_target_id(::int32_t value) {
  11870. _internal_set_target_id(value);
  11871. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.target_id)
  11872. }
  11873. inline ::int32_t Target::_internal_target_id() const {
  11874. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  11875. return _impl_.target_id_;
  11876. }
  11877. inline void Target::_internal_set_target_id(::int32_t value) {
  11878. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11879. ;
  11880. _impl_.target_id_ = value;
  11881. }
  11882. // bool once = 6;
  11883. inline void Target::clear_once() {
  11884. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11885. _impl_.once_ = false;
  11886. }
  11887. inline bool Target::once() const {
  11888. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.once)
  11889. return _internal_once();
  11890. }
  11891. inline void Target::set_once(bool value) {
  11892. _internal_set_once(value);
  11893. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.once)
  11894. }
  11895. inline bool Target::_internal_once() const {
  11896. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  11897. return _impl_.once_;
  11898. }
  11899. inline void Target::_internal_set_once(bool value) {
  11900. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11901. ;
  11902. _impl_.once_ = value;
  11903. }
  11904. // .google.protobuf.Int32Value expected_count = 12;
  11905. inline bool Target::has_expected_count() const {
  11906. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  11907. PROTOBUF_ASSUME(!value || _impl_.expected_count_ != nullptr);
  11908. return value;
  11909. }
  11910. inline const ::google::protobuf::Int32Value& Target::_internal_expected_count() const {
  11911. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  11912. const ::google::protobuf::Int32Value* p = _impl_.expected_count_;
  11913. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Int32Value&>(::google::protobuf::_Int32Value_default_instance_);
  11914. }
  11915. inline const ::google::protobuf::Int32Value& Target::expected_count() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11916. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.expected_count)
  11917. return _internal_expected_count();
  11918. }
  11919. inline void Target::unsafe_arena_set_allocated_expected_count(::google::protobuf::Int32Value* value) {
  11920. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11921. if (GetArena() == nullptr) {
  11922. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.expected_count_);
  11923. }
  11924. _impl_.expected_count_ = reinterpret_cast<::google::protobuf::Int32Value*>(value);
  11925. if (value != nullptr) {
  11926. _impl_._has_bits_[0] |= 0x00000001u;
  11927. } else {
  11928. _impl_._has_bits_[0] &= ~0x00000001u;
  11929. }
  11930. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Target.expected_count)
  11931. }
  11932. inline ::google::protobuf::Int32Value* Target::release_expected_count() {
  11933. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11934. _impl_._has_bits_[0] &= ~0x00000001u;
  11935. ::google::protobuf::Int32Value* released = _impl_.expected_count_;
  11936. _impl_.expected_count_ = nullptr;
  11937. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  11938. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  11939. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  11940. if (GetArena() == nullptr) {
  11941. delete old;
  11942. }
  11943. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  11944. if (GetArena() != nullptr) {
  11945. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  11946. }
  11947. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  11948. return released;
  11949. }
  11950. inline ::google::protobuf::Int32Value* Target::unsafe_arena_release_expected_count() {
  11951. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11952. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.expected_count)
  11953. _impl_._has_bits_[0] &= ~0x00000001u;
  11954. ::google::protobuf::Int32Value* temp = _impl_.expected_count_;
  11955. _impl_.expected_count_ = nullptr;
  11956. return temp;
  11957. }
  11958. inline ::google::protobuf::Int32Value* Target::_internal_mutable_expected_count() {
  11959. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11960. _impl_._has_bits_[0] |= 0x00000001u;
  11961. if (_impl_.expected_count_ == nullptr) {
  11962. auto* p = CreateMaybeMessage<::google::protobuf::Int32Value>(GetArena());
  11963. _impl_.expected_count_ = reinterpret_cast<::google::protobuf::Int32Value*>(p);
  11964. }
  11965. return _impl_.expected_count_;
  11966. }
  11967. inline ::google::protobuf::Int32Value* Target::mutable_expected_count() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  11968. ::google::protobuf::Int32Value* _msg = _internal_mutable_expected_count();
  11969. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.expected_count)
  11970. return _msg;
  11971. }
  11972. inline void Target::set_allocated_expected_count(::google::protobuf::Int32Value* value) {
  11973. ::google::protobuf::Arena* message_arena = GetArena();
  11974. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  11975. if (message_arena == nullptr) {
  11976. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.expected_count_);
  11977. }
  11978. if (value != nullptr) {
  11979. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  11980. if (message_arena != submessage_arena) {
  11981. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  11982. }
  11983. _impl_._has_bits_[0] |= 0x00000001u;
  11984. } else {
  11985. _impl_._has_bits_[0] &= ~0x00000001u;
  11986. }
  11987. _impl_.expected_count_ = reinterpret_cast<::google::protobuf::Int32Value*>(value);
  11988. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.expected_count)
  11989. }
  11990. inline bool Target::has_target_type() const {
  11991. return target_type_case() != TARGET_TYPE_NOT_SET;
  11992. }
  11993. inline void Target::clear_has_target_type() {
  11994. _impl_._oneof_case_[0] = TARGET_TYPE_NOT_SET;
  11995. }
  11996. inline bool Target::has_resume_type() const {
  11997. return resume_type_case() != RESUME_TYPE_NOT_SET;
  11998. }
  11999. inline void Target::clear_has_resume_type() {
  12000. _impl_._oneof_case_[1] = RESUME_TYPE_NOT_SET;
  12001. }
  12002. inline Target::TargetTypeCase Target::target_type_case() const {
  12003. return Target::TargetTypeCase(_impl_._oneof_case_[0]);
  12004. }
  12005. inline Target::ResumeTypeCase Target::resume_type_case() const {
  12006. return Target::ResumeTypeCase(_impl_._oneof_case_[1]);
  12007. }
  12008. // -------------------------------------------------------------------
  12009. // TargetChange
  12010. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  12011. inline void TargetChange::clear_target_change_type() {
  12012. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12013. _impl_.target_change_type_ = 0;
  12014. }
  12015. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::target_change_type() const {
  12016. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_change_type)
  12017. return _internal_target_change_type();
  12018. }
  12019. inline void TargetChange::set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  12020. _internal_set_target_change_type(value);
  12021. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_change_type)
  12022. }
  12023. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::_internal_target_change_type() const {
  12024. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12025. return static_cast<::google::firestore::v1::TargetChange_TargetChangeType>(_impl_.target_change_type_);
  12026. }
  12027. inline void TargetChange::_internal_set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  12028. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12029. ;
  12030. _impl_.target_change_type_ = value;
  12031. }
  12032. // repeated int32 target_ids = 2;
  12033. inline int TargetChange::_internal_target_ids_size() const {
  12034. return _internal_target_ids().size();
  12035. }
  12036. inline int TargetChange::target_ids_size() const {
  12037. return _internal_target_ids_size();
  12038. }
  12039. inline void TargetChange::clear_target_ids() {
  12040. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12041. _impl_.target_ids_.Clear();
  12042. }
  12043. inline ::int32_t TargetChange::target_ids(int index) const {
  12044. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_ids)
  12045. return _internal_target_ids().Get(index);
  12046. }
  12047. inline void TargetChange::set_target_ids(int index, ::int32_t value) {
  12048. _internal_mutable_target_ids()->Set(index, value);
  12049. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_ids)
  12050. }
  12051. inline void TargetChange::add_target_ids(::int32_t value) {
  12052. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12053. _internal_mutable_target_ids()->Add(value);
  12054. // @@protoc_insertion_point(field_add:google.firestore.v1.TargetChange.target_ids)
  12055. }
  12056. inline const ::google::protobuf::RepeatedField<::int32_t>& TargetChange::target_ids() const
  12057. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12058. // @@protoc_insertion_point(field_list:google.firestore.v1.TargetChange.target_ids)
  12059. return _internal_target_ids();
  12060. }
  12061. inline ::google::protobuf::RepeatedField<::int32_t>* TargetChange::mutable_target_ids()
  12062. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12063. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.TargetChange.target_ids)
  12064. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12065. return _internal_mutable_target_ids();
  12066. }
  12067. inline const ::google::protobuf::RepeatedField<::int32_t>& TargetChange::_internal_target_ids()
  12068. const {
  12069. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12070. return _impl_.target_ids_;
  12071. }
  12072. inline ::google::protobuf::RepeatedField<::int32_t>* TargetChange::_internal_mutable_target_ids() {
  12073. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12074. return &_impl_.target_ids_;
  12075. }
  12076. // .google.rpc.Status cause = 3;
  12077. inline bool TargetChange::has_cause() const {
  12078. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12079. PROTOBUF_ASSUME(!value || _impl_.cause_ != nullptr);
  12080. return value;
  12081. }
  12082. inline const ::google::rpc::Status& TargetChange::_internal_cause() const {
  12083. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12084. const ::google::rpc::Status* p = _impl_.cause_;
  12085. return p != nullptr ? *p : reinterpret_cast<const ::google::rpc::Status&>(::google::rpc::_Status_default_instance_);
  12086. }
  12087. inline const ::google::rpc::Status& TargetChange::cause() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12088. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.cause)
  12089. return _internal_cause();
  12090. }
  12091. inline void TargetChange::unsafe_arena_set_allocated_cause(::google::rpc::Status* value) {
  12092. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12093. if (GetArena() == nullptr) {
  12094. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cause_);
  12095. }
  12096. _impl_.cause_ = reinterpret_cast<::google::rpc::Status*>(value);
  12097. if (value != nullptr) {
  12098. _impl_._has_bits_[0] |= 0x00000001u;
  12099. } else {
  12100. _impl_._has_bits_[0] &= ~0x00000001u;
  12101. }
  12102. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.TargetChange.cause)
  12103. }
  12104. inline ::google::rpc::Status* TargetChange::release_cause() {
  12105. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12106. _impl_._has_bits_[0] &= ~0x00000001u;
  12107. ::google::rpc::Status* released = _impl_.cause_;
  12108. _impl_.cause_ = nullptr;
  12109. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  12110. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  12111. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  12112. if (GetArena() == nullptr) {
  12113. delete old;
  12114. }
  12115. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  12116. if (GetArena() != nullptr) {
  12117. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  12118. }
  12119. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  12120. return released;
  12121. }
  12122. inline ::google::rpc::Status* TargetChange::unsafe_arena_release_cause() {
  12123. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12124. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.cause)
  12125. _impl_._has_bits_[0] &= ~0x00000001u;
  12126. ::google::rpc::Status* temp = _impl_.cause_;
  12127. _impl_.cause_ = nullptr;
  12128. return temp;
  12129. }
  12130. inline ::google::rpc::Status* TargetChange::_internal_mutable_cause() {
  12131. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12132. _impl_._has_bits_[0] |= 0x00000001u;
  12133. if (_impl_.cause_ == nullptr) {
  12134. auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArena());
  12135. _impl_.cause_ = reinterpret_cast<::google::rpc::Status*>(p);
  12136. }
  12137. return _impl_.cause_;
  12138. }
  12139. inline ::google::rpc::Status* TargetChange::mutable_cause() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12140. ::google::rpc::Status* _msg = _internal_mutable_cause();
  12141. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.cause)
  12142. return _msg;
  12143. }
  12144. inline void TargetChange::set_allocated_cause(::google::rpc::Status* value) {
  12145. ::google::protobuf::Arena* message_arena = GetArena();
  12146. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12147. if (message_arena == nullptr) {
  12148. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cause_);
  12149. }
  12150. if (value != nullptr) {
  12151. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  12152. if (message_arena != submessage_arena) {
  12153. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  12154. }
  12155. _impl_._has_bits_[0] |= 0x00000001u;
  12156. } else {
  12157. _impl_._has_bits_[0] &= ~0x00000001u;
  12158. }
  12159. _impl_.cause_ = reinterpret_cast<::google::rpc::Status*>(value);
  12160. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.cause)
  12161. }
  12162. // bytes resume_token = 4;
  12163. inline void TargetChange::clear_resume_token() {
  12164. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12165. _impl_.resume_token_.ClearToEmpty();
  12166. }
  12167. inline const std::string& TargetChange::resume_token() const
  12168. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12169. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.resume_token)
  12170. return _internal_resume_token();
  12171. }
  12172. template <typename Arg_, typename... Args_>
  12173. inline PROTOBUF_ALWAYS_INLINE void TargetChange::set_resume_token(Arg_&& arg,
  12174. Args_... args) {
  12175. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12176. ;
  12177. _impl_.resume_token_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  12178. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.resume_token)
  12179. }
  12180. inline std::string* TargetChange::mutable_resume_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12181. std::string* _s = _internal_mutable_resume_token();
  12182. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.resume_token)
  12183. return _s;
  12184. }
  12185. inline const std::string& TargetChange::_internal_resume_token() const {
  12186. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12187. return _impl_.resume_token_.Get();
  12188. }
  12189. inline void TargetChange::_internal_set_resume_token(const std::string& value) {
  12190. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12191. ;
  12192. _impl_.resume_token_.Set(value, GetArena());
  12193. }
  12194. inline std::string* TargetChange::_internal_mutable_resume_token() {
  12195. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12196. ;
  12197. return _impl_.resume_token_.Mutable( GetArena());
  12198. }
  12199. inline std::string* TargetChange::release_resume_token() {
  12200. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12201. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.resume_token)
  12202. return _impl_.resume_token_.Release();
  12203. }
  12204. inline void TargetChange::set_allocated_resume_token(std::string* value) {
  12205. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12206. _impl_.resume_token_.SetAllocated(value, GetArena());
  12207. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12208. if (_impl_.resume_token_.IsDefault()) {
  12209. _impl_.resume_token_.Set("", GetArena());
  12210. }
  12211. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12212. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.resume_token)
  12213. }
  12214. // .google.protobuf.Timestamp read_time = 6;
  12215. inline bool TargetChange::has_read_time() const {
  12216. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12217. PROTOBUF_ASSUME(!value || _impl_.read_time_ != nullptr);
  12218. return value;
  12219. }
  12220. inline const ::google::protobuf::Timestamp& TargetChange::_internal_read_time() const {
  12221. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12222. const ::google::protobuf::Timestamp* p = _impl_.read_time_;
  12223. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  12224. }
  12225. inline const ::google::protobuf::Timestamp& TargetChange::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12226. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.read_time)
  12227. return _internal_read_time();
  12228. }
  12229. inline void TargetChange::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  12230. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12231. if (GetArena() == nullptr) {
  12232. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  12233. }
  12234. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  12235. if (value != nullptr) {
  12236. _impl_._has_bits_[0] |= 0x00000002u;
  12237. } else {
  12238. _impl_._has_bits_[0] &= ~0x00000002u;
  12239. }
  12240. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.TargetChange.read_time)
  12241. }
  12242. inline ::google::protobuf::Timestamp* TargetChange::release_read_time() {
  12243. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12244. _impl_._has_bits_[0] &= ~0x00000002u;
  12245. ::google::protobuf::Timestamp* released = _impl_.read_time_;
  12246. _impl_.read_time_ = nullptr;
  12247. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  12248. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  12249. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  12250. if (GetArena() == nullptr) {
  12251. delete old;
  12252. }
  12253. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  12254. if (GetArena() != nullptr) {
  12255. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  12256. }
  12257. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  12258. return released;
  12259. }
  12260. inline ::google::protobuf::Timestamp* TargetChange::unsafe_arena_release_read_time() {
  12261. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12262. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.read_time)
  12263. _impl_._has_bits_[0] &= ~0x00000002u;
  12264. ::google::protobuf::Timestamp* temp = _impl_.read_time_;
  12265. _impl_.read_time_ = nullptr;
  12266. return temp;
  12267. }
  12268. inline ::google::protobuf::Timestamp* TargetChange::_internal_mutable_read_time() {
  12269. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12270. _impl_._has_bits_[0] |= 0x00000002u;
  12271. if (_impl_.read_time_ == nullptr) {
  12272. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  12273. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  12274. }
  12275. return _impl_.read_time_;
  12276. }
  12277. inline ::google::protobuf::Timestamp* TargetChange::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12278. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  12279. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.read_time)
  12280. return _msg;
  12281. }
  12282. inline void TargetChange::set_allocated_read_time(::google::protobuf::Timestamp* value) {
  12283. ::google::protobuf::Arena* message_arena = GetArena();
  12284. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12285. if (message_arena == nullptr) {
  12286. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  12287. }
  12288. if (value != nullptr) {
  12289. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  12290. if (message_arena != submessage_arena) {
  12291. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  12292. }
  12293. _impl_._has_bits_[0] |= 0x00000002u;
  12294. } else {
  12295. _impl_._has_bits_[0] &= ~0x00000002u;
  12296. }
  12297. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  12298. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.read_time)
  12299. }
  12300. // -------------------------------------------------------------------
  12301. // ListCollectionIdsRequest
  12302. // string parent = 1;
  12303. inline void ListCollectionIdsRequest::clear_parent() {
  12304. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12305. _impl_.parent_.ClearToEmpty();
  12306. }
  12307. inline const std::string& ListCollectionIdsRequest::parent() const
  12308. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12309. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.parent)
  12310. return _internal_parent();
  12311. }
  12312. template <typename Arg_, typename... Args_>
  12313. inline PROTOBUF_ALWAYS_INLINE void ListCollectionIdsRequest::set_parent(Arg_&& arg,
  12314. Args_... args) {
  12315. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12316. ;
  12317. _impl_.parent_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  12318. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.parent)
  12319. }
  12320. inline std::string* ListCollectionIdsRequest::mutable_parent() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12321. std::string* _s = _internal_mutable_parent();
  12322. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.parent)
  12323. return _s;
  12324. }
  12325. inline const std::string& ListCollectionIdsRequest::_internal_parent() const {
  12326. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12327. return _impl_.parent_.Get();
  12328. }
  12329. inline void ListCollectionIdsRequest::_internal_set_parent(const std::string& value) {
  12330. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12331. ;
  12332. _impl_.parent_.Set(value, GetArena());
  12333. }
  12334. inline std::string* ListCollectionIdsRequest::_internal_mutable_parent() {
  12335. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12336. ;
  12337. return _impl_.parent_.Mutable( GetArena());
  12338. }
  12339. inline std::string* ListCollectionIdsRequest::release_parent() {
  12340. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12341. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.parent)
  12342. return _impl_.parent_.Release();
  12343. }
  12344. inline void ListCollectionIdsRequest::set_allocated_parent(std::string* value) {
  12345. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12346. _impl_.parent_.SetAllocated(value, GetArena());
  12347. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12348. if (_impl_.parent_.IsDefault()) {
  12349. _impl_.parent_.Set("", GetArena());
  12350. }
  12351. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12352. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.parent)
  12353. }
  12354. // int32 page_size = 2;
  12355. inline void ListCollectionIdsRequest::clear_page_size() {
  12356. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12357. _impl_.page_size_ = 0;
  12358. }
  12359. inline ::int32_t ListCollectionIdsRequest::page_size() const {
  12360. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_size)
  12361. return _internal_page_size();
  12362. }
  12363. inline void ListCollectionIdsRequest::set_page_size(::int32_t value) {
  12364. _internal_set_page_size(value);
  12365. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_size)
  12366. }
  12367. inline ::int32_t ListCollectionIdsRequest::_internal_page_size() const {
  12368. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12369. return _impl_.page_size_;
  12370. }
  12371. inline void ListCollectionIdsRequest::_internal_set_page_size(::int32_t value) {
  12372. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12373. ;
  12374. _impl_.page_size_ = value;
  12375. }
  12376. // string page_token = 3;
  12377. inline void ListCollectionIdsRequest::clear_page_token() {
  12378. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12379. _impl_.page_token_.ClearToEmpty();
  12380. }
  12381. inline const std::string& ListCollectionIdsRequest::page_token() const
  12382. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12383. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_token)
  12384. return _internal_page_token();
  12385. }
  12386. template <typename Arg_, typename... Args_>
  12387. inline PROTOBUF_ALWAYS_INLINE void ListCollectionIdsRequest::set_page_token(Arg_&& arg,
  12388. Args_... args) {
  12389. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12390. ;
  12391. _impl_.page_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  12392. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_token)
  12393. }
  12394. inline std::string* ListCollectionIdsRequest::mutable_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12395. std::string* _s = _internal_mutable_page_token();
  12396. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.page_token)
  12397. return _s;
  12398. }
  12399. inline const std::string& ListCollectionIdsRequest::_internal_page_token() const {
  12400. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12401. return _impl_.page_token_.Get();
  12402. }
  12403. inline void ListCollectionIdsRequest::_internal_set_page_token(const std::string& value) {
  12404. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12405. ;
  12406. _impl_.page_token_.Set(value, GetArena());
  12407. }
  12408. inline std::string* ListCollectionIdsRequest::_internal_mutable_page_token() {
  12409. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12410. ;
  12411. return _impl_.page_token_.Mutable( GetArena());
  12412. }
  12413. inline std::string* ListCollectionIdsRequest::release_page_token() {
  12414. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12415. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.page_token)
  12416. return _impl_.page_token_.Release();
  12417. }
  12418. inline void ListCollectionIdsRequest::set_allocated_page_token(std::string* value) {
  12419. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12420. _impl_.page_token_.SetAllocated(value, GetArena());
  12421. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12422. if (_impl_.page_token_.IsDefault()) {
  12423. _impl_.page_token_.Set("", GetArena());
  12424. }
  12425. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12426. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.page_token)
  12427. }
  12428. // -------------------------------------------------------------------
  12429. // ListCollectionIdsResponse
  12430. // repeated string collection_ids = 1;
  12431. inline int ListCollectionIdsResponse::_internal_collection_ids_size() const {
  12432. return _internal_collection_ids().size();
  12433. }
  12434. inline int ListCollectionIdsResponse::collection_ids_size() const {
  12435. return _internal_collection_ids_size();
  12436. }
  12437. inline void ListCollectionIdsResponse::clear_collection_ids() {
  12438. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12439. _impl_.collection_ids_.Clear();
  12440. }
  12441. inline std::string* ListCollectionIdsResponse::add_collection_ids()
  12442. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12443. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12444. std::string* _s = _internal_mutable_collection_ids()->Add();
  12445. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12446. return _s;
  12447. }
  12448. inline const std::string& ListCollectionIdsResponse::collection_ids(int index) const
  12449. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12450. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12451. return _internal_collection_ids().Get(index);
  12452. }
  12453. inline std::string* ListCollectionIdsResponse::mutable_collection_ids(int index)
  12454. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12455. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12456. return _internal_mutable_collection_ids()->Mutable(index);
  12457. }
  12458. inline void ListCollectionIdsResponse::set_collection_ids(int index, const std::string& value) {
  12459. _internal_mutable_collection_ids()->Mutable(index)->assign(value);
  12460. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12461. }
  12462. inline void ListCollectionIdsResponse::set_collection_ids(int index, std::string&& value) {
  12463. _internal_mutable_collection_ids()->Mutable(index)->assign(std::move(value));
  12464. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12465. }
  12466. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value) {
  12467. ABSL_DCHECK(value != nullptr);
  12468. _internal_mutable_collection_ids()->Mutable(index)->assign(value);
  12469. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12470. }
  12471. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value,
  12472. std::size_t size) {
  12473. _internal_mutable_collection_ids()->Mutable(index)->assign(
  12474. reinterpret_cast<const char*>(value), size);
  12475. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12476. }
  12477. inline void ListCollectionIdsResponse::set_collection_ids(int index, absl::string_view value) {
  12478. _internal_mutable_collection_ids()->Mutable(index)->assign(value.data(),
  12479. value.size());
  12480. // @@protoc_insertion_point(field_set_string_piece:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12481. }
  12482. inline void ListCollectionIdsResponse::add_collection_ids(const std::string& value) {
  12483. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12484. _internal_mutable_collection_ids()->Add()->assign(value);
  12485. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12486. }
  12487. inline void ListCollectionIdsResponse::add_collection_ids(std::string&& value) {
  12488. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12489. _internal_mutable_collection_ids()->Add(std::move(value));
  12490. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12491. }
  12492. inline void ListCollectionIdsResponse::add_collection_ids(const char* value) {
  12493. ABSL_DCHECK(value != nullptr);
  12494. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12495. _internal_mutable_collection_ids()->Add()->assign(value);
  12496. // @@protoc_insertion_point(field_add_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12497. }
  12498. inline void ListCollectionIdsResponse::add_collection_ids(const char* value, std::size_t size) {
  12499. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12500. _internal_mutable_collection_ids()->Add()->assign(
  12501. reinterpret_cast<const char*>(value), size);
  12502. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12503. }
  12504. inline void ListCollectionIdsResponse::add_collection_ids(absl::string_view value) {
  12505. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12506. _internal_mutable_collection_ids()->Add()->assign(value.data(), value.size());
  12507. // @@protoc_insertion_point(field_add_string_piece:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12508. }
  12509. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  12510. ListCollectionIdsResponse::collection_ids() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12511. // @@protoc_insertion_point(field_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12512. return _internal_collection_ids();
  12513. }
  12514. inline ::google::protobuf::RepeatedPtrField<std::string>*
  12515. ListCollectionIdsResponse::mutable_collection_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12516. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  12517. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12518. return _internal_mutable_collection_ids();
  12519. }
  12520. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  12521. ListCollectionIdsResponse::_internal_collection_ids() const {
  12522. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12523. return _impl_.collection_ids_;
  12524. }
  12525. inline ::google::protobuf::RepeatedPtrField<std::string>*
  12526. ListCollectionIdsResponse::_internal_mutable_collection_ids() {
  12527. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12528. return &_impl_.collection_ids_;
  12529. }
  12530. // string next_page_token = 2;
  12531. inline void ListCollectionIdsResponse::clear_next_page_token() {
  12532. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12533. _impl_.next_page_token_.ClearToEmpty();
  12534. }
  12535. inline const std::string& ListCollectionIdsResponse::next_page_token() const
  12536. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12537. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  12538. return _internal_next_page_token();
  12539. }
  12540. template <typename Arg_, typename... Args_>
  12541. inline PROTOBUF_ALWAYS_INLINE void ListCollectionIdsResponse::set_next_page_token(Arg_&& arg,
  12542. Args_... args) {
  12543. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12544. ;
  12545. _impl_.next_page_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  12546. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  12547. }
  12548. inline std::string* ListCollectionIdsResponse::mutable_next_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  12549. std::string* _s = _internal_mutable_next_page_token();
  12550. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  12551. return _s;
  12552. }
  12553. inline const std::string& ListCollectionIdsResponse::_internal_next_page_token() const {
  12554. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  12555. return _impl_.next_page_token_.Get();
  12556. }
  12557. inline void ListCollectionIdsResponse::_internal_set_next_page_token(const std::string& value) {
  12558. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12559. ;
  12560. _impl_.next_page_token_.Set(value, GetArena());
  12561. }
  12562. inline std::string* ListCollectionIdsResponse::_internal_mutable_next_page_token() {
  12563. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12564. ;
  12565. return _impl_.next_page_token_.Mutable( GetArena());
  12566. }
  12567. inline std::string* ListCollectionIdsResponse::release_next_page_token() {
  12568. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12569. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  12570. return _impl_.next_page_token_.Release();
  12571. }
  12572. inline void ListCollectionIdsResponse::set_allocated_next_page_token(std::string* value) {
  12573. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  12574. _impl_.next_page_token_.SetAllocated(value, GetArena());
  12575. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12576. if (_impl_.next_page_token_.IsDefault()) {
  12577. _impl_.next_page_token_.Set("", GetArena());
  12578. }
  12579. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12580. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  12581. }
  12582. #ifdef __GNUC__
  12583. #pragma GCC diagnostic pop
  12584. #endif // __GNUC__
  12585. // @@protoc_insertion_point(namespace_scope)
  12586. } // namespace v1
  12587. } // namespace firestore
  12588. } // namespace google
  12589. namespace google {
  12590. namespace protobuf {
  12591. template <>
  12592. struct is_proto_enum<::google::firestore::v1::TargetChange_TargetChangeType> : std::true_type {};
  12593. template <>
  12594. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::v1::TargetChange_TargetChangeType>() {
  12595. return ::google::firestore::v1::TargetChange_TargetChangeType_descriptor();
  12596. }
  12597. } // namespace protobuf
  12598. } // namespace google
  12599. // @@protoc_insertion_point(global_scope)
  12600. #include "google/protobuf/port_undef.inc"
  12601. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto_2epb_2eh