firestore.pb.h 455 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221
  1. /*
  2. * Copyright 2023 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. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto
  20. #include <limits>
  21. #include <string>
  22. #include <google/protobuf/port_def.inc>
  23. #if PROTOBUF_VERSION < 3011000
  24. #error This file was generated by a newer version of protoc which is
  25. #error incompatible with your Protocol Buffer headers. Please update
  26. #error your headers.
  27. #endif
  28. #if 3011002 < PROTOBUF_MIN_PROTOC_VERSION
  29. #error This file was generated by an older version of protoc which is
  30. #error incompatible with your Protocol Buffer headers. Please
  31. #error regenerate this file with a newer version of protoc.
  32. #endif
  33. #include <google/protobuf/port_undef.inc>
  34. #include <google/protobuf/io/coded_stream.h>
  35. #include <google/protobuf/arena.h>
  36. #include <google/protobuf/arenastring.h>
  37. #include <google/protobuf/generated_message_table_driven.h>
  38. #include <google/protobuf/generated_message_util.h>
  39. #include <google/protobuf/inlined_string_field.h>
  40. #include <google/protobuf/metadata.h>
  41. #include <google/protobuf/generated_message_reflection.h>
  42. #include <google/protobuf/message.h>
  43. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  44. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  45. #include <google/protobuf/map.h> // IWYU pragma: export
  46. #include <google/protobuf/map_entry.h>
  47. #include <google/protobuf/map_field_inl.h>
  48. #include <google/protobuf/generated_enum_reflection.h>
  49. #include <google/protobuf/unknown_field_set.h>
  50. #include "google/api/annotations.pb.h"
  51. #include "google/firestore/v1/aggregation_result.pb.h"
  52. #include "google/firestore/v1/common.pb.h"
  53. #include "google/firestore/v1/document.pb.h"
  54. #include "google/firestore/v1/query.pb.h"
  55. #include "google/firestore/v1/write.pb.h"
  56. #include <google/protobuf/empty.pb.h>
  57. #include <google/protobuf/timestamp.pb.h>
  58. #include "google/rpc/status.pb.h"
  59. // @@protoc_insertion_point(includes)
  60. #include <google/protobuf/port_def.inc>
  61. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto
  62. PROTOBUF_NAMESPACE_OPEN
  63. namespace internal {
  64. class AnyMetadata;
  65. } // namespace internal
  66. PROTOBUF_NAMESPACE_CLOSE
  67. // Internal implementation detail -- do not use these members.
  68. struct TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto {
  69. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  70. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  71. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  72. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  73. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[29]
  74. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  75. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  76. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  77. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  78. };
  79. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto;
  80. namespace google {
  81. namespace firestore {
  82. namespace v1 {
  83. class BatchGetDocumentsRequest;
  84. class BatchGetDocumentsRequestDefaultTypeInternal;
  85. extern BatchGetDocumentsRequestDefaultTypeInternal _BatchGetDocumentsRequest_default_instance_;
  86. class BatchGetDocumentsResponse;
  87. class BatchGetDocumentsResponseDefaultTypeInternal;
  88. extern BatchGetDocumentsResponseDefaultTypeInternal _BatchGetDocumentsResponse_default_instance_;
  89. class BeginTransactionRequest;
  90. class BeginTransactionRequestDefaultTypeInternal;
  91. extern BeginTransactionRequestDefaultTypeInternal _BeginTransactionRequest_default_instance_;
  92. class BeginTransactionResponse;
  93. class BeginTransactionResponseDefaultTypeInternal;
  94. extern BeginTransactionResponseDefaultTypeInternal _BeginTransactionResponse_default_instance_;
  95. class CommitRequest;
  96. class CommitRequestDefaultTypeInternal;
  97. extern CommitRequestDefaultTypeInternal _CommitRequest_default_instance_;
  98. class CommitResponse;
  99. class CommitResponseDefaultTypeInternal;
  100. extern CommitResponseDefaultTypeInternal _CommitResponse_default_instance_;
  101. class CreateDocumentRequest;
  102. class CreateDocumentRequestDefaultTypeInternal;
  103. extern CreateDocumentRequestDefaultTypeInternal _CreateDocumentRequest_default_instance_;
  104. class DeleteDocumentRequest;
  105. class DeleteDocumentRequestDefaultTypeInternal;
  106. extern DeleteDocumentRequestDefaultTypeInternal _DeleteDocumentRequest_default_instance_;
  107. class GetDocumentRequest;
  108. class GetDocumentRequestDefaultTypeInternal;
  109. extern GetDocumentRequestDefaultTypeInternal _GetDocumentRequest_default_instance_;
  110. class ListCollectionIdsRequest;
  111. class ListCollectionIdsRequestDefaultTypeInternal;
  112. extern ListCollectionIdsRequestDefaultTypeInternal _ListCollectionIdsRequest_default_instance_;
  113. class ListCollectionIdsResponse;
  114. class ListCollectionIdsResponseDefaultTypeInternal;
  115. extern ListCollectionIdsResponseDefaultTypeInternal _ListCollectionIdsResponse_default_instance_;
  116. class ListDocumentsRequest;
  117. class ListDocumentsRequestDefaultTypeInternal;
  118. extern ListDocumentsRequestDefaultTypeInternal _ListDocumentsRequest_default_instance_;
  119. class ListDocumentsResponse;
  120. class ListDocumentsResponseDefaultTypeInternal;
  121. extern ListDocumentsResponseDefaultTypeInternal _ListDocumentsResponse_default_instance_;
  122. class ListenRequest;
  123. class ListenRequestDefaultTypeInternal;
  124. extern ListenRequestDefaultTypeInternal _ListenRequest_default_instance_;
  125. class ListenRequest_LabelsEntry_DoNotUse;
  126. class ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  127. extern ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal _ListenRequest_LabelsEntry_DoNotUse_default_instance_;
  128. class ListenResponse;
  129. class ListenResponseDefaultTypeInternal;
  130. extern ListenResponseDefaultTypeInternal _ListenResponse_default_instance_;
  131. class RollbackRequest;
  132. class RollbackRequestDefaultTypeInternal;
  133. extern RollbackRequestDefaultTypeInternal _RollbackRequest_default_instance_;
  134. class RunAggregationQueryRequest;
  135. class RunAggregationQueryRequestDefaultTypeInternal;
  136. extern RunAggregationQueryRequestDefaultTypeInternal _RunAggregationQueryRequest_default_instance_;
  137. class RunAggregationQueryResponse;
  138. class RunAggregationQueryResponseDefaultTypeInternal;
  139. extern RunAggregationQueryResponseDefaultTypeInternal _RunAggregationQueryResponse_default_instance_;
  140. class RunQueryRequest;
  141. class RunQueryRequestDefaultTypeInternal;
  142. extern RunQueryRequestDefaultTypeInternal _RunQueryRequest_default_instance_;
  143. class RunQueryResponse;
  144. class RunQueryResponseDefaultTypeInternal;
  145. extern RunQueryResponseDefaultTypeInternal _RunQueryResponse_default_instance_;
  146. class Target;
  147. class TargetDefaultTypeInternal;
  148. extern TargetDefaultTypeInternal _Target_default_instance_;
  149. class TargetChange;
  150. class TargetChangeDefaultTypeInternal;
  151. extern TargetChangeDefaultTypeInternal _TargetChange_default_instance_;
  152. class Target_DocumentsTarget;
  153. class Target_DocumentsTargetDefaultTypeInternal;
  154. extern Target_DocumentsTargetDefaultTypeInternal _Target_DocumentsTarget_default_instance_;
  155. class Target_QueryTarget;
  156. class Target_QueryTargetDefaultTypeInternal;
  157. extern Target_QueryTargetDefaultTypeInternal _Target_QueryTarget_default_instance_;
  158. class UpdateDocumentRequest;
  159. class UpdateDocumentRequestDefaultTypeInternal;
  160. extern UpdateDocumentRequestDefaultTypeInternal _UpdateDocumentRequest_default_instance_;
  161. class WriteRequest;
  162. class WriteRequestDefaultTypeInternal;
  163. extern WriteRequestDefaultTypeInternal _WriteRequest_default_instance_;
  164. class WriteRequest_LabelsEntry_DoNotUse;
  165. class WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  166. extern WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal _WriteRequest_LabelsEntry_DoNotUse_default_instance_;
  167. class WriteResponse;
  168. class WriteResponseDefaultTypeInternal;
  169. extern WriteResponseDefaultTypeInternal _WriteResponse_default_instance_;
  170. } // namespace v1
  171. } // namespace firestore
  172. } // namespace google
  173. PROTOBUF_NAMESPACE_OPEN
  174. template<> ::google::firestore::v1::BatchGetDocumentsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::BatchGetDocumentsRequest>(Arena*);
  175. template<> ::google::firestore::v1::BatchGetDocumentsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::BatchGetDocumentsResponse>(Arena*);
  176. template<> ::google::firestore::v1::BeginTransactionRequest* Arena::CreateMaybeMessage<::google::firestore::v1::BeginTransactionRequest>(Arena*);
  177. template<> ::google::firestore::v1::BeginTransactionResponse* Arena::CreateMaybeMessage<::google::firestore::v1::BeginTransactionResponse>(Arena*);
  178. template<> ::google::firestore::v1::CommitRequest* Arena::CreateMaybeMessage<::google::firestore::v1::CommitRequest>(Arena*);
  179. template<> ::google::firestore::v1::CommitResponse* Arena::CreateMaybeMessage<::google::firestore::v1::CommitResponse>(Arena*);
  180. template<> ::google::firestore::v1::CreateDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::CreateDocumentRequest>(Arena*);
  181. template<> ::google::firestore::v1::DeleteDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::DeleteDocumentRequest>(Arena*);
  182. template<> ::google::firestore::v1::GetDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::GetDocumentRequest>(Arena*);
  183. template<> ::google::firestore::v1::ListCollectionIdsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListCollectionIdsRequest>(Arena*);
  184. template<> ::google::firestore::v1::ListCollectionIdsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListCollectionIdsResponse>(Arena*);
  185. template<> ::google::firestore::v1::ListDocumentsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListDocumentsRequest>(Arena*);
  186. template<> ::google::firestore::v1::ListDocumentsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListDocumentsResponse>(Arena*);
  187. template<> ::google::firestore::v1::ListenRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListenRequest>(Arena*);
  188. template<> ::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse>(Arena*);
  189. template<> ::google::firestore::v1::ListenResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListenResponse>(Arena*);
  190. template<> ::google::firestore::v1::RollbackRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RollbackRequest>(Arena*);
  191. template<> ::google::firestore::v1::RunAggregationQueryRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RunAggregationQueryRequest>(Arena*);
  192. template<> ::google::firestore::v1::RunAggregationQueryResponse* Arena::CreateMaybeMessage<::google::firestore::v1::RunAggregationQueryResponse>(Arena*);
  193. template<> ::google::firestore::v1::RunQueryRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RunQueryRequest>(Arena*);
  194. template<> ::google::firestore::v1::RunQueryResponse* Arena::CreateMaybeMessage<::google::firestore::v1::RunQueryResponse>(Arena*);
  195. template<> ::google::firestore::v1::Target* Arena::CreateMaybeMessage<::google::firestore::v1::Target>(Arena*);
  196. template<> ::google::firestore::v1::TargetChange* Arena::CreateMaybeMessage<::google::firestore::v1::TargetChange>(Arena*);
  197. template<> ::google::firestore::v1::Target_DocumentsTarget* Arena::CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(Arena*);
  198. template<> ::google::firestore::v1::Target_QueryTarget* Arena::CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(Arena*);
  199. template<> ::google::firestore::v1::UpdateDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::UpdateDocumentRequest>(Arena*);
  200. template<> ::google::firestore::v1::WriteRequest* Arena::CreateMaybeMessage<::google::firestore::v1::WriteRequest>(Arena*);
  201. template<> ::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse>(Arena*);
  202. template<> ::google::firestore::v1::WriteResponse* Arena::CreateMaybeMessage<::google::firestore::v1::WriteResponse>(Arena*);
  203. PROTOBUF_NAMESPACE_CLOSE
  204. namespace google {
  205. namespace firestore {
  206. namespace v1 {
  207. enum TargetChange_TargetChangeType : int {
  208. TargetChange_TargetChangeType_NO_CHANGE = 0,
  209. TargetChange_TargetChangeType_ADD = 1,
  210. TargetChange_TargetChangeType_REMOVE = 2,
  211. TargetChange_TargetChangeType_CURRENT = 3,
  212. TargetChange_TargetChangeType_RESET = 4,
  213. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  214. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  215. };
  216. bool TargetChange_TargetChangeType_IsValid(int value);
  217. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MIN = TargetChange_TargetChangeType_NO_CHANGE;
  218. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MAX = TargetChange_TargetChangeType_RESET;
  219. constexpr int TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE = TargetChange_TargetChangeType_TargetChangeType_MAX + 1;
  220. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TargetChange_TargetChangeType_descriptor();
  221. template<typename T>
  222. inline const std::string& TargetChange_TargetChangeType_Name(T enum_t_value) {
  223. static_assert(::std::is_same<T, TargetChange_TargetChangeType>::value ||
  224. ::std::is_integral<T>::value,
  225. "Incorrect type passed to function TargetChange_TargetChangeType_Name.");
  226. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  227. TargetChange_TargetChangeType_descriptor(), enum_t_value);
  228. }
  229. inline bool TargetChange_TargetChangeType_Parse(
  230. const std::string& name, TargetChange_TargetChangeType* value) {
  231. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TargetChange_TargetChangeType>(
  232. TargetChange_TargetChangeType_descriptor(), name, value);
  233. }
  234. // ===================================================================
  235. class GetDocumentRequest :
  236. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.GetDocumentRequest) */ {
  237. public:
  238. GetDocumentRequest();
  239. virtual ~GetDocumentRequest();
  240. GetDocumentRequest(const GetDocumentRequest& from);
  241. GetDocumentRequest(GetDocumentRequest&& from) noexcept
  242. : GetDocumentRequest() {
  243. *this = ::std::move(from);
  244. }
  245. inline GetDocumentRequest& operator=(const GetDocumentRequest& from) {
  246. CopyFrom(from);
  247. return *this;
  248. }
  249. inline GetDocumentRequest& operator=(GetDocumentRequest&& from) noexcept {
  250. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  251. if (this != &from) InternalSwap(&from);
  252. } else {
  253. CopyFrom(from);
  254. }
  255. return *this;
  256. }
  257. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  258. return GetDescriptor();
  259. }
  260. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  261. return GetMetadataStatic().descriptor;
  262. }
  263. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  264. return GetMetadataStatic().reflection;
  265. }
  266. static const GetDocumentRequest& default_instance();
  267. enum ConsistencySelectorCase {
  268. kTransaction = 3,
  269. kReadTime = 5,
  270. CONSISTENCY_SELECTOR_NOT_SET = 0,
  271. };
  272. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  273. static inline const GetDocumentRequest* internal_default_instance() {
  274. return reinterpret_cast<const GetDocumentRequest*>(
  275. &_GetDocumentRequest_default_instance_);
  276. }
  277. static constexpr int kIndexInFileMessages =
  278. 0;
  279. friend void swap(GetDocumentRequest& a, GetDocumentRequest& b) {
  280. a.Swap(&b);
  281. }
  282. inline void Swap(GetDocumentRequest* other) {
  283. if (other == this) return;
  284. InternalSwap(other);
  285. }
  286. // implements Message ----------------------------------------------
  287. inline GetDocumentRequest* New() const final {
  288. return CreateMaybeMessage<GetDocumentRequest>(nullptr);
  289. }
  290. GetDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  291. return CreateMaybeMessage<GetDocumentRequest>(arena);
  292. }
  293. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  294. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  295. void CopyFrom(const GetDocumentRequest& from);
  296. void MergeFrom(const GetDocumentRequest& from);
  297. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  298. bool IsInitialized() const final;
  299. size_t ByteSizeLong() const final;
  300. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  301. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  302. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  303. int GetCachedSize() const final { return _cached_size_.Get(); }
  304. private:
  305. inline void SharedCtor();
  306. inline void SharedDtor();
  307. void SetCachedSize(int size) const final;
  308. void InternalSwap(GetDocumentRequest* other);
  309. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  310. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  311. return "google.firestore.v1.GetDocumentRequest";
  312. }
  313. private:
  314. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  315. return nullptr;
  316. }
  317. inline void* MaybeArenaPtr() const {
  318. return nullptr;
  319. }
  320. public:
  321. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  322. private:
  323. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  324. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  325. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  326. }
  327. public:
  328. // nested types ----------------------------------------------------
  329. // accessors -------------------------------------------------------
  330. enum : int {
  331. kNameFieldNumber = 1,
  332. kMaskFieldNumber = 2,
  333. kTransactionFieldNumber = 3,
  334. kReadTimeFieldNumber = 5,
  335. };
  336. // string name = 1;
  337. void clear_name();
  338. const std::string& name() const;
  339. void set_name(const std::string& value);
  340. void set_name(std::string&& value);
  341. void set_name(const char* value);
  342. void set_name(const char* value, size_t size);
  343. std::string* mutable_name();
  344. std::string* release_name();
  345. void set_allocated_name(std::string* name);
  346. private:
  347. const std::string& _internal_name() const;
  348. void _internal_set_name(const std::string& value);
  349. std::string* _internal_mutable_name();
  350. public:
  351. // .google.firestore.v1.DocumentMask mask = 2;
  352. bool has_mask() const;
  353. private:
  354. bool _internal_has_mask() const;
  355. public:
  356. void clear_mask();
  357. const ::google::firestore::v1::DocumentMask& mask() const;
  358. ::google::firestore::v1::DocumentMask* release_mask();
  359. ::google::firestore::v1::DocumentMask* mutable_mask();
  360. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  361. private:
  362. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  363. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  364. public:
  365. // bytes transaction = 3;
  366. private:
  367. bool _internal_has_transaction() const;
  368. public:
  369. void clear_transaction();
  370. const std::string& transaction() const;
  371. void set_transaction(const std::string& value);
  372. void set_transaction(std::string&& value);
  373. void set_transaction(const char* value);
  374. void set_transaction(const void* value, size_t size);
  375. std::string* mutable_transaction();
  376. std::string* release_transaction();
  377. void set_allocated_transaction(std::string* transaction);
  378. private:
  379. const std::string& _internal_transaction() const;
  380. void _internal_set_transaction(const std::string& value);
  381. std::string* _internal_mutable_transaction();
  382. public:
  383. // .google.protobuf.Timestamp read_time = 5;
  384. bool has_read_time() const;
  385. private:
  386. bool _internal_has_read_time() const;
  387. public:
  388. void clear_read_time();
  389. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  390. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  391. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  392. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  393. private:
  394. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  395. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  396. public:
  397. void clear_consistency_selector();
  398. ConsistencySelectorCase consistency_selector_case() const;
  399. // @@protoc_insertion_point(class_scope:google.firestore.v1.GetDocumentRequest)
  400. private:
  401. class _Internal;
  402. void set_has_transaction();
  403. void set_has_read_time();
  404. inline bool has_consistency_selector() const;
  405. inline void clear_has_consistency_selector();
  406. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  407. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  408. ::google::firestore::v1::DocumentMask* mask_;
  409. union ConsistencySelectorUnion {
  410. ConsistencySelectorUnion() {}
  411. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  412. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  413. } consistency_selector_;
  414. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  415. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  416. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  417. };
  418. // -------------------------------------------------------------------
  419. class ListDocumentsRequest :
  420. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsRequest) */ {
  421. public:
  422. ListDocumentsRequest();
  423. virtual ~ListDocumentsRequest();
  424. ListDocumentsRequest(const ListDocumentsRequest& from);
  425. ListDocumentsRequest(ListDocumentsRequest&& from) noexcept
  426. : ListDocumentsRequest() {
  427. *this = ::std::move(from);
  428. }
  429. inline ListDocumentsRequest& operator=(const ListDocumentsRequest& from) {
  430. CopyFrom(from);
  431. return *this;
  432. }
  433. inline ListDocumentsRequest& operator=(ListDocumentsRequest&& from) noexcept {
  434. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  435. if (this != &from) InternalSwap(&from);
  436. } else {
  437. CopyFrom(from);
  438. }
  439. return *this;
  440. }
  441. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  442. return GetDescriptor();
  443. }
  444. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  445. return GetMetadataStatic().descriptor;
  446. }
  447. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  448. return GetMetadataStatic().reflection;
  449. }
  450. static const ListDocumentsRequest& default_instance();
  451. enum ConsistencySelectorCase {
  452. kTransaction = 8,
  453. kReadTime = 10,
  454. CONSISTENCY_SELECTOR_NOT_SET = 0,
  455. };
  456. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  457. static inline const ListDocumentsRequest* internal_default_instance() {
  458. return reinterpret_cast<const ListDocumentsRequest*>(
  459. &_ListDocumentsRequest_default_instance_);
  460. }
  461. static constexpr int kIndexInFileMessages =
  462. 1;
  463. friend void swap(ListDocumentsRequest& a, ListDocumentsRequest& b) {
  464. a.Swap(&b);
  465. }
  466. inline void Swap(ListDocumentsRequest* other) {
  467. if (other == this) return;
  468. InternalSwap(other);
  469. }
  470. // implements Message ----------------------------------------------
  471. inline ListDocumentsRequest* New() const final {
  472. return CreateMaybeMessage<ListDocumentsRequest>(nullptr);
  473. }
  474. ListDocumentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  475. return CreateMaybeMessage<ListDocumentsRequest>(arena);
  476. }
  477. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  478. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  479. void CopyFrom(const ListDocumentsRequest& from);
  480. void MergeFrom(const ListDocumentsRequest& from);
  481. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  482. bool IsInitialized() const final;
  483. size_t ByteSizeLong() const final;
  484. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  485. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  486. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  487. int GetCachedSize() const final { return _cached_size_.Get(); }
  488. private:
  489. inline void SharedCtor();
  490. inline void SharedDtor();
  491. void SetCachedSize(int size) const final;
  492. void InternalSwap(ListDocumentsRequest* other);
  493. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  494. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  495. return "google.firestore.v1.ListDocumentsRequest";
  496. }
  497. private:
  498. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  499. return nullptr;
  500. }
  501. inline void* MaybeArenaPtr() const {
  502. return nullptr;
  503. }
  504. public:
  505. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  506. private:
  507. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  508. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  509. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  510. }
  511. public:
  512. // nested types ----------------------------------------------------
  513. // accessors -------------------------------------------------------
  514. enum : int {
  515. kParentFieldNumber = 1,
  516. kCollectionIdFieldNumber = 2,
  517. kPageTokenFieldNumber = 4,
  518. kOrderByFieldNumber = 6,
  519. kMaskFieldNumber = 7,
  520. kPageSizeFieldNumber = 3,
  521. kShowMissingFieldNumber = 12,
  522. kTransactionFieldNumber = 8,
  523. kReadTimeFieldNumber = 10,
  524. };
  525. // string parent = 1;
  526. void clear_parent();
  527. const std::string& parent() const;
  528. void set_parent(const std::string& value);
  529. void set_parent(std::string&& value);
  530. void set_parent(const char* value);
  531. void set_parent(const char* value, size_t size);
  532. std::string* mutable_parent();
  533. std::string* release_parent();
  534. void set_allocated_parent(std::string* parent);
  535. private:
  536. const std::string& _internal_parent() const;
  537. void _internal_set_parent(const std::string& value);
  538. std::string* _internal_mutable_parent();
  539. public:
  540. // string collection_id = 2;
  541. void clear_collection_id();
  542. const std::string& collection_id() const;
  543. void set_collection_id(const std::string& value);
  544. void set_collection_id(std::string&& value);
  545. void set_collection_id(const char* value);
  546. void set_collection_id(const char* value, size_t size);
  547. std::string* mutable_collection_id();
  548. std::string* release_collection_id();
  549. void set_allocated_collection_id(std::string* collection_id);
  550. private:
  551. const std::string& _internal_collection_id() const;
  552. void _internal_set_collection_id(const std::string& value);
  553. std::string* _internal_mutable_collection_id();
  554. public:
  555. // string page_token = 4;
  556. void clear_page_token();
  557. const std::string& page_token() const;
  558. void set_page_token(const std::string& value);
  559. void set_page_token(std::string&& value);
  560. void set_page_token(const char* value);
  561. void set_page_token(const char* value, size_t size);
  562. std::string* mutable_page_token();
  563. std::string* release_page_token();
  564. void set_allocated_page_token(std::string* page_token);
  565. private:
  566. const std::string& _internal_page_token() const;
  567. void _internal_set_page_token(const std::string& value);
  568. std::string* _internal_mutable_page_token();
  569. public:
  570. // string order_by = 6;
  571. void clear_order_by();
  572. const std::string& order_by() const;
  573. void set_order_by(const std::string& value);
  574. void set_order_by(std::string&& value);
  575. void set_order_by(const char* value);
  576. void set_order_by(const char* value, size_t size);
  577. std::string* mutable_order_by();
  578. std::string* release_order_by();
  579. void set_allocated_order_by(std::string* order_by);
  580. private:
  581. const std::string& _internal_order_by() const;
  582. void _internal_set_order_by(const std::string& value);
  583. std::string* _internal_mutable_order_by();
  584. public:
  585. // .google.firestore.v1.DocumentMask mask = 7;
  586. bool has_mask() const;
  587. private:
  588. bool _internal_has_mask() const;
  589. public:
  590. void clear_mask();
  591. const ::google::firestore::v1::DocumentMask& mask() const;
  592. ::google::firestore::v1::DocumentMask* release_mask();
  593. ::google::firestore::v1::DocumentMask* mutable_mask();
  594. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  595. private:
  596. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  597. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  598. public:
  599. // int32 page_size = 3;
  600. void clear_page_size();
  601. ::PROTOBUF_NAMESPACE_ID::int32 page_size() const;
  602. void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  603. private:
  604. ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const;
  605. void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  606. public:
  607. // bool show_missing = 12;
  608. void clear_show_missing();
  609. bool show_missing() const;
  610. void set_show_missing(bool value);
  611. private:
  612. bool _internal_show_missing() const;
  613. void _internal_set_show_missing(bool value);
  614. public:
  615. // bytes transaction = 8;
  616. private:
  617. bool _internal_has_transaction() const;
  618. public:
  619. void clear_transaction();
  620. const std::string& transaction() const;
  621. void set_transaction(const std::string& value);
  622. void set_transaction(std::string&& value);
  623. void set_transaction(const char* value);
  624. void set_transaction(const void* value, size_t size);
  625. std::string* mutable_transaction();
  626. std::string* release_transaction();
  627. void set_allocated_transaction(std::string* transaction);
  628. private:
  629. const std::string& _internal_transaction() const;
  630. void _internal_set_transaction(const std::string& value);
  631. std::string* _internal_mutable_transaction();
  632. public:
  633. // .google.protobuf.Timestamp read_time = 10;
  634. bool has_read_time() const;
  635. private:
  636. bool _internal_has_read_time() const;
  637. public:
  638. void clear_read_time();
  639. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  640. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  641. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  642. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  643. private:
  644. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  645. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  646. public:
  647. void clear_consistency_selector();
  648. ConsistencySelectorCase consistency_selector_case() const;
  649. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsRequest)
  650. private:
  651. class _Internal;
  652. void set_has_transaction();
  653. void set_has_read_time();
  654. inline bool has_consistency_selector() const;
  655. inline void clear_has_consistency_selector();
  656. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  657. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  658. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_id_;
  659. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_;
  660. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_by_;
  661. ::google::firestore::v1::DocumentMask* mask_;
  662. ::PROTOBUF_NAMESPACE_ID::int32 page_size_;
  663. bool show_missing_;
  664. union ConsistencySelectorUnion {
  665. ConsistencySelectorUnion() {}
  666. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  667. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  668. } consistency_selector_;
  669. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  670. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  671. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  672. };
  673. // -------------------------------------------------------------------
  674. class ListDocumentsResponse :
  675. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsResponse) */ {
  676. public:
  677. ListDocumentsResponse();
  678. virtual ~ListDocumentsResponse();
  679. ListDocumentsResponse(const ListDocumentsResponse& from);
  680. ListDocumentsResponse(ListDocumentsResponse&& from) noexcept
  681. : ListDocumentsResponse() {
  682. *this = ::std::move(from);
  683. }
  684. inline ListDocumentsResponse& operator=(const ListDocumentsResponse& from) {
  685. CopyFrom(from);
  686. return *this;
  687. }
  688. inline ListDocumentsResponse& operator=(ListDocumentsResponse&& from) noexcept {
  689. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  690. if (this != &from) InternalSwap(&from);
  691. } else {
  692. CopyFrom(from);
  693. }
  694. return *this;
  695. }
  696. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  697. return GetDescriptor();
  698. }
  699. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  700. return GetMetadataStatic().descriptor;
  701. }
  702. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  703. return GetMetadataStatic().reflection;
  704. }
  705. static const ListDocumentsResponse& default_instance();
  706. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  707. static inline const ListDocumentsResponse* internal_default_instance() {
  708. return reinterpret_cast<const ListDocumentsResponse*>(
  709. &_ListDocumentsResponse_default_instance_);
  710. }
  711. static constexpr int kIndexInFileMessages =
  712. 2;
  713. friend void swap(ListDocumentsResponse& a, ListDocumentsResponse& b) {
  714. a.Swap(&b);
  715. }
  716. inline void Swap(ListDocumentsResponse* other) {
  717. if (other == this) return;
  718. InternalSwap(other);
  719. }
  720. // implements Message ----------------------------------------------
  721. inline ListDocumentsResponse* New() const final {
  722. return CreateMaybeMessage<ListDocumentsResponse>(nullptr);
  723. }
  724. ListDocumentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  725. return CreateMaybeMessage<ListDocumentsResponse>(arena);
  726. }
  727. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  728. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  729. void CopyFrom(const ListDocumentsResponse& from);
  730. void MergeFrom(const ListDocumentsResponse& from);
  731. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  732. bool IsInitialized() const final;
  733. size_t ByteSizeLong() const final;
  734. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  735. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  736. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  737. int GetCachedSize() const final { return _cached_size_.Get(); }
  738. private:
  739. inline void SharedCtor();
  740. inline void SharedDtor();
  741. void SetCachedSize(int size) const final;
  742. void InternalSwap(ListDocumentsResponse* other);
  743. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  744. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  745. return "google.firestore.v1.ListDocumentsResponse";
  746. }
  747. private:
  748. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  749. return nullptr;
  750. }
  751. inline void* MaybeArenaPtr() const {
  752. return nullptr;
  753. }
  754. public:
  755. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  756. private:
  757. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  758. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  759. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  760. }
  761. public:
  762. // nested types ----------------------------------------------------
  763. // accessors -------------------------------------------------------
  764. enum : int {
  765. kDocumentsFieldNumber = 1,
  766. kNextPageTokenFieldNumber = 2,
  767. };
  768. // repeated .google.firestore.v1.Document documents = 1;
  769. int documents_size() const;
  770. private:
  771. int _internal_documents_size() const;
  772. public:
  773. void clear_documents();
  774. ::google::firestore::v1::Document* mutable_documents(int index);
  775. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >*
  776. mutable_documents();
  777. private:
  778. const ::google::firestore::v1::Document& _internal_documents(int index) const;
  779. ::google::firestore::v1::Document* _internal_add_documents();
  780. public:
  781. const ::google::firestore::v1::Document& documents(int index) const;
  782. ::google::firestore::v1::Document* add_documents();
  783. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >&
  784. documents() const;
  785. // string next_page_token = 2;
  786. void clear_next_page_token();
  787. const std::string& next_page_token() const;
  788. void set_next_page_token(const std::string& value);
  789. void set_next_page_token(std::string&& value);
  790. void set_next_page_token(const char* value);
  791. void set_next_page_token(const char* value, size_t size);
  792. std::string* mutable_next_page_token();
  793. std::string* release_next_page_token();
  794. void set_allocated_next_page_token(std::string* next_page_token);
  795. private:
  796. const std::string& _internal_next_page_token() const;
  797. void _internal_set_next_page_token(const std::string& value);
  798. std::string* _internal_mutable_next_page_token();
  799. public:
  800. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsResponse)
  801. private:
  802. class _Internal;
  803. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  804. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document > documents_;
  805. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_;
  806. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  807. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  808. };
  809. // -------------------------------------------------------------------
  810. class CreateDocumentRequest :
  811. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CreateDocumentRequest) */ {
  812. public:
  813. CreateDocumentRequest();
  814. virtual ~CreateDocumentRequest();
  815. CreateDocumentRequest(const CreateDocumentRequest& from);
  816. CreateDocumentRequest(CreateDocumentRequest&& from) noexcept
  817. : CreateDocumentRequest() {
  818. *this = ::std::move(from);
  819. }
  820. inline CreateDocumentRequest& operator=(const CreateDocumentRequest& from) {
  821. CopyFrom(from);
  822. return *this;
  823. }
  824. inline CreateDocumentRequest& operator=(CreateDocumentRequest&& from) noexcept {
  825. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  826. if (this != &from) InternalSwap(&from);
  827. } else {
  828. CopyFrom(from);
  829. }
  830. return *this;
  831. }
  832. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  833. return GetDescriptor();
  834. }
  835. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  836. return GetMetadataStatic().descriptor;
  837. }
  838. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  839. return GetMetadataStatic().reflection;
  840. }
  841. static const CreateDocumentRequest& default_instance();
  842. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  843. static inline const CreateDocumentRequest* internal_default_instance() {
  844. return reinterpret_cast<const CreateDocumentRequest*>(
  845. &_CreateDocumentRequest_default_instance_);
  846. }
  847. static constexpr int kIndexInFileMessages =
  848. 3;
  849. friend void swap(CreateDocumentRequest& a, CreateDocumentRequest& b) {
  850. a.Swap(&b);
  851. }
  852. inline void Swap(CreateDocumentRequest* other) {
  853. if (other == this) return;
  854. InternalSwap(other);
  855. }
  856. // implements Message ----------------------------------------------
  857. inline CreateDocumentRequest* New() const final {
  858. return CreateMaybeMessage<CreateDocumentRequest>(nullptr);
  859. }
  860. CreateDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  861. return CreateMaybeMessage<CreateDocumentRequest>(arena);
  862. }
  863. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  864. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  865. void CopyFrom(const CreateDocumentRequest& from);
  866. void MergeFrom(const CreateDocumentRequest& from);
  867. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  868. bool IsInitialized() const final;
  869. size_t ByteSizeLong() const final;
  870. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  871. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  872. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  873. int GetCachedSize() const final { return _cached_size_.Get(); }
  874. private:
  875. inline void SharedCtor();
  876. inline void SharedDtor();
  877. void SetCachedSize(int size) const final;
  878. void InternalSwap(CreateDocumentRequest* other);
  879. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  880. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  881. return "google.firestore.v1.CreateDocumentRequest";
  882. }
  883. private:
  884. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  885. return nullptr;
  886. }
  887. inline void* MaybeArenaPtr() const {
  888. return nullptr;
  889. }
  890. public:
  891. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  892. private:
  893. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  894. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  895. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  896. }
  897. public:
  898. // nested types ----------------------------------------------------
  899. // accessors -------------------------------------------------------
  900. enum : int {
  901. kParentFieldNumber = 1,
  902. kCollectionIdFieldNumber = 2,
  903. kDocumentIdFieldNumber = 3,
  904. kDocumentFieldNumber = 4,
  905. kMaskFieldNumber = 5,
  906. };
  907. // string parent = 1;
  908. void clear_parent();
  909. const std::string& parent() const;
  910. void set_parent(const std::string& value);
  911. void set_parent(std::string&& value);
  912. void set_parent(const char* value);
  913. void set_parent(const char* value, size_t size);
  914. std::string* mutable_parent();
  915. std::string* release_parent();
  916. void set_allocated_parent(std::string* parent);
  917. private:
  918. const std::string& _internal_parent() const;
  919. void _internal_set_parent(const std::string& value);
  920. std::string* _internal_mutable_parent();
  921. public:
  922. // string collection_id = 2;
  923. void clear_collection_id();
  924. const std::string& collection_id() const;
  925. void set_collection_id(const std::string& value);
  926. void set_collection_id(std::string&& value);
  927. void set_collection_id(const char* value);
  928. void set_collection_id(const char* value, size_t size);
  929. std::string* mutable_collection_id();
  930. std::string* release_collection_id();
  931. void set_allocated_collection_id(std::string* collection_id);
  932. private:
  933. const std::string& _internal_collection_id() const;
  934. void _internal_set_collection_id(const std::string& value);
  935. std::string* _internal_mutable_collection_id();
  936. public:
  937. // string document_id = 3;
  938. void clear_document_id();
  939. const std::string& document_id() const;
  940. void set_document_id(const std::string& value);
  941. void set_document_id(std::string&& value);
  942. void set_document_id(const char* value);
  943. void set_document_id(const char* value, size_t size);
  944. std::string* mutable_document_id();
  945. std::string* release_document_id();
  946. void set_allocated_document_id(std::string* document_id);
  947. private:
  948. const std::string& _internal_document_id() const;
  949. void _internal_set_document_id(const std::string& value);
  950. std::string* _internal_mutable_document_id();
  951. public:
  952. // .google.firestore.v1.Document document = 4;
  953. bool has_document() const;
  954. private:
  955. bool _internal_has_document() const;
  956. public:
  957. void clear_document();
  958. const ::google::firestore::v1::Document& document() const;
  959. ::google::firestore::v1::Document* release_document();
  960. ::google::firestore::v1::Document* mutable_document();
  961. void set_allocated_document(::google::firestore::v1::Document* document);
  962. private:
  963. const ::google::firestore::v1::Document& _internal_document() const;
  964. ::google::firestore::v1::Document* _internal_mutable_document();
  965. public:
  966. // .google.firestore.v1.DocumentMask mask = 5;
  967. bool has_mask() const;
  968. private:
  969. bool _internal_has_mask() const;
  970. public:
  971. void clear_mask();
  972. const ::google::firestore::v1::DocumentMask& mask() const;
  973. ::google::firestore::v1::DocumentMask* release_mask();
  974. ::google::firestore::v1::DocumentMask* mutable_mask();
  975. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  976. private:
  977. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  978. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  979. public:
  980. // @@protoc_insertion_point(class_scope:google.firestore.v1.CreateDocumentRequest)
  981. private:
  982. class _Internal;
  983. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  984. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  985. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_id_;
  986. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_id_;
  987. ::google::firestore::v1::Document* document_;
  988. ::google::firestore::v1::DocumentMask* mask_;
  989. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  990. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  991. };
  992. // -------------------------------------------------------------------
  993. class UpdateDocumentRequest :
  994. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.UpdateDocumentRequest) */ {
  995. public:
  996. UpdateDocumentRequest();
  997. virtual ~UpdateDocumentRequest();
  998. UpdateDocumentRequest(const UpdateDocumentRequest& from);
  999. UpdateDocumentRequest(UpdateDocumentRequest&& from) noexcept
  1000. : UpdateDocumentRequest() {
  1001. *this = ::std::move(from);
  1002. }
  1003. inline UpdateDocumentRequest& operator=(const UpdateDocumentRequest& from) {
  1004. CopyFrom(from);
  1005. return *this;
  1006. }
  1007. inline UpdateDocumentRequest& operator=(UpdateDocumentRequest&& from) noexcept {
  1008. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1009. if (this != &from) InternalSwap(&from);
  1010. } else {
  1011. CopyFrom(from);
  1012. }
  1013. return *this;
  1014. }
  1015. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1016. return GetDescriptor();
  1017. }
  1018. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1019. return GetMetadataStatic().descriptor;
  1020. }
  1021. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1022. return GetMetadataStatic().reflection;
  1023. }
  1024. static const UpdateDocumentRequest& default_instance();
  1025. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1026. static inline const UpdateDocumentRequest* internal_default_instance() {
  1027. return reinterpret_cast<const UpdateDocumentRequest*>(
  1028. &_UpdateDocumentRequest_default_instance_);
  1029. }
  1030. static constexpr int kIndexInFileMessages =
  1031. 4;
  1032. friend void swap(UpdateDocumentRequest& a, UpdateDocumentRequest& b) {
  1033. a.Swap(&b);
  1034. }
  1035. inline void Swap(UpdateDocumentRequest* other) {
  1036. if (other == this) return;
  1037. InternalSwap(other);
  1038. }
  1039. // implements Message ----------------------------------------------
  1040. inline UpdateDocumentRequest* New() const final {
  1041. return CreateMaybeMessage<UpdateDocumentRequest>(nullptr);
  1042. }
  1043. UpdateDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1044. return CreateMaybeMessage<UpdateDocumentRequest>(arena);
  1045. }
  1046. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1047. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1048. void CopyFrom(const UpdateDocumentRequest& from);
  1049. void MergeFrom(const UpdateDocumentRequest& from);
  1050. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1051. bool IsInitialized() const final;
  1052. size_t ByteSizeLong() const final;
  1053. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1054. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1055. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1056. int GetCachedSize() const final { return _cached_size_.Get(); }
  1057. private:
  1058. inline void SharedCtor();
  1059. inline void SharedDtor();
  1060. void SetCachedSize(int size) const final;
  1061. void InternalSwap(UpdateDocumentRequest* other);
  1062. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1063. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1064. return "google.firestore.v1.UpdateDocumentRequest";
  1065. }
  1066. private:
  1067. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1068. return nullptr;
  1069. }
  1070. inline void* MaybeArenaPtr() const {
  1071. return nullptr;
  1072. }
  1073. public:
  1074. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1075. private:
  1076. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1077. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1078. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1079. }
  1080. public:
  1081. // nested types ----------------------------------------------------
  1082. // accessors -------------------------------------------------------
  1083. enum : int {
  1084. kDocumentFieldNumber = 1,
  1085. kUpdateMaskFieldNumber = 2,
  1086. kMaskFieldNumber = 3,
  1087. kCurrentDocumentFieldNumber = 4,
  1088. };
  1089. // .google.firestore.v1.Document document = 1;
  1090. bool has_document() const;
  1091. private:
  1092. bool _internal_has_document() const;
  1093. public:
  1094. void clear_document();
  1095. const ::google::firestore::v1::Document& document() const;
  1096. ::google::firestore::v1::Document* release_document();
  1097. ::google::firestore::v1::Document* mutable_document();
  1098. void set_allocated_document(::google::firestore::v1::Document* document);
  1099. private:
  1100. const ::google::firestore::v1::Document& _internal_document() const;
  1101. ::google::firestore::v1::Document* _internal_mutable_document();
  1102. public:
  1103. // .google.firestore.v1.DocumentMask update_mask = 2;
  1104. bool has_update_mask() const;
  1105. private:
  1106. bool _internal_has_update_mask() const;
  1107. public:
  1108. void clear_update_mask();
  1109. const ::google::firestore::v1::DocumentMask& update_mask() const;
  1110. ::google::firestore::v1::DocumentMask* release_update_mask();
  1111. ::google::firestore::v1::DocumentMask* mutable_update_mask();
  1112. void set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask);
  1113. private:
  1114. const ::google::firestore::v1::DocumentMask& _internal_update_mask() const;
  1115. ::google::firestore::v1::DocumentMask* _internal_mutable_update_mask();
  1116. public:
  1117. // .google.firestore.v1.DocumentMask mask = 3;
  1118. bool has_mask() const;
  1119. private:
  1120. bool _internal_has_mask() const;
  1121. public:
  1122. void clear_mask();
  1123. const ::google::firestore::v1::DocumentMask& mask() const;
  1124. ::google::firestore::v1::DocumentMask* release_mask();
  1125. ::google::firestore::v1::DocumentMask* mutable_mask();
  1126. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  1127. private:
  1128. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  1129. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  1130. public:
  1131. // .google.firestore.v1.Precondition current_document = 4;
  1132. bool has_current_document() const;
  1133. private:
  1134. bool _internal_has_current_document() const;
  1135. public:
  1136. void clear_current_document();
  1137. const ::google::firestore::v1::Precondition& current_document() const;
  1138. ::google::firestore::v1::Precondition* release_current_document();
  1139. ::google::firestore::v1::Precondition* mutable_current_document();
  1140. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  1141. private:
  1142. const ::google::firestore::v1::Precondition& _internal_current_document() const;
  1143. ::google::firestore::v1::Precondition* _internal_mutable_current_document();
  1144. public:
  1145. // @@protoc_insertion_point(class_scope:google.firestore.v1.UpdateDocumentRequest)
  1146. private:
  1147. class _Internal;
  1148. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1149. ::google::firestore::v1::Document* document_;
  1150. ::google::firestore::v1::DocumentMask* update_mask_;
  1151. ::google::firestore::v1::DocumentMask* mask_;
  1152. ::google::firestore::v1::Precondition* current_document_;
  1153. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1154. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1155. };
  1156. // -------------------------------------------------------------------
  1157. class DeleteDocumentRequest :
  1158. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DeleteDocumentRequest) */ {
  1159. public:
  1160. DeleteDocumentRequest();
  1161. virtual ~DeleteDocumentRequest();
  1162. DeleteDocumentRequest(const DeleteDocumentRequest& from);
  1163. DeleteDocumentRequest(DeleteDocumentRequest&& from) noexcept
  1164. : DeleteDocumentRequest() {
  1165. *this = ::std::move(from);
  1166. }
  1167. inline DeleteDocumentRequest& operator=(const DeleteDocumentRequest& from) {
  1168. CopyFrom(from);
  1169. return *this;
  1170. }
  1171. inline DeleteDocumentRequest& operator=(DeleteDocumentRequest&& from) noexcept {
  1172. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1173. if (this != &from) InternalSwap(&from);
  1174. } else {
  1175. CopyFrom(from);
  1176. }
  1177. return *this;
  1178. }
  1179. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1180. return GetDescriptor();
  1181. }
  1182. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1183. return GetMetadataStatic().descriptor;
  1184. }
  1185. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1186. return GetMetadataStatic().reflection;
  1187. }
  1188. static const DeleteDocumentRequest& default_instance();
  1189. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1190. static inline const DeleteDocumentRequest* internal_default_instance() {
  1191. return reinterpret_cast<const DeleteDocumentRequest*>(
  1192. &_DeleteDocumentRequest_default_instance_);
  1193. }
  1194. static constexpr int kIndexInFileMessages =
  1195. 5;
  1196. friend void swap(DeleteDocumentRequest& a, DeleteDocumentRequest& b) {
  1197. a.Swap(&b);
  1198. }
  1199. inline void Swap(DeleteDocumentRequest* other) {
  1200. if (other == this) return;
  1201. InternalSwap(other);
  1202. }
  1203. // implements Message ----------------------------------------------
  1204. inline DeleteDocumentRequest* New() const final {
  1205. return CreateMaybeMessage<DeleteDocumentRequest>(nullptr);
  1206. }
  1207. DeleteDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1208. return CreateMaybeMessage<DeleteDocumentRequest>(arena);
  1209. }
  1210. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1211. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1212. void CopyFrom(const DeleteDocumentRequest& from);
  1213. void MergeFrom(const DeleteDocumentRequest& from);
  1214. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1215. bool IsInitialized() const final;
  1216. size_t ByteSizeLong() const final;
  1217. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1218. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1219. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1220. int GetCachedSize() const final { return _cached_size_.Get(); }
  1221. private:
  1222. inline void SharedCtor();
  1223. inline void SharedDtor();
  1224. void SetCachedSize(int size) const final;
  1225. void InternalSwap(DeleteDocumentRequest* other);
  1226. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1227. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1228. return "google.firestore.v1.DeleteDocumentRequest";
  1229. }
  1230. private:
  1231. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1232. return nullptr;
  1233. }
  1234. inline void* MaybeArenaPtr() const {
  1235. return nullptr;
  1236. }
  1237. public:
  1238. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1239. private:
  1240. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1241. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1242. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1243. }
  1244. public:
  1245. // nested types ----------------------------------------------------
  1246. // accessors -------------------------------------------------------
  1247. enum : int {
  1248. kNameFieldNumber = 1,
  1249. kCurrentDocumentFieldNumber = 2,
  1250. };
  1251. // string name = 1;
  1252. void clear_name();
  1253. const std::string& name() const;
  1254. void set_name(const std::string& value);
  1255. void set_name(std::string&& value);
  1256. void set_name(const char* value);
  1257. void set_name(const char* value, size_t size);
  1258. std::string* mutable_name();
  1259. std::string* release_name();
  1260. void set_allocated_name(std::string* name);
  1261. private:
  1262. const std::string& _internal_name() const;
  1263. void _internal_set_name(const std::string& value);
  1264. std::string* _internal_mutable_name();
  1265. public:
  1266. // .google.firestore.v1.Precondition current_document = 2;
  1267. bool has_current_document() const;
  1268. private:
  1269. bool _internal_has_current_document() const;
  1270. public:
  1271. void clear_current_document();
  1272. const ::google::firestore::v1::Precondition& current_document() const;
  1273. ::google::firestore::v1::Precondition* release_current_document();
  1274. ::google::firestore::v1::Precondition* mutable_current_document();
  1275. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  1276. private:
  1277. const ::google::firestore::v1::Precondition& _internal_current_document() const;
  1278. ::google::firestore::v1::Precondition* _internal_mutable_current_document();
  1279. public:
  1280. // @@protoc_insertion_point(class_scope:google.firestore.v1.DeleteDocumentRequest)
  1281. private:
  1282. class _Internal;
  1283. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1284. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1285. ::google::firestore::v1::Precondition* current_document_;
  1286. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1287. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1288. };
  1289. // -------------------------------------------------------------------
  1290. class BatchGetDocumentsRequest :
  1291. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsRequest) */ {
  1292. public:
  1293. BatchGetDocumentsRequest();
  1294. virtual ~BatchGetDocumentsRequest();
  1295. BatchGetDocumentsRequest(const BatchGetDocumentsRequest& from);
  1296. BatchGetDocumentsRequest(BatchGetDocumentsRequest&& from) noexcept
  1297. : BatchGetDocumentsRequest() {
  1298. *this = ::std::move(from);
  1299. }
  1300. inline BatchGetDocumentsRequest& operator=(const BatchGetDocumentsRequest& from) {
  1301. CopyFrom(from);
  1302. return *this;
  1303. }
  1304. inline BatchGetDocumentsRequest& operator=(BatchGetDocumentsRequest&& from) noexcept {
  1305. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1306. if (this != &from) InternalSwap(&from);
  1307. } else {
  1308. CopyFrom(from);
  1309. }
  1310. return *this;
  1311. }
  1312. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1313. return GetDescriptor();
  1314. }
  1315. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1316. return GetMetadataStatic().descriptor;
  1317. }
  1318. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1319. return GetMetadataStatic().reflection;
  1320. }
  1321. static const BatchGetDocumentsRequest& default_instance();
  1322. enum ConsistencySelectorCase {
  1323. kTransaction = 4,
  1324. kNewTransaction = 5,
  1325. kReadTime = 7,
  1326. CONSISTENCY_SELECTOR_NOT_SET = 0,
  1327. };
  1328. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1329. static inline const BatchGetDocumentsRequest* internal_default_instance() {
  1330. return reinterpret_cast<const BatchGetDocumentsRequest*>(
  1331. &_BatchGetDocumentsRequest_default_instance_);
  1332. }
  1333. static constexpr int kIndexInFileMessages =
  1334. 6;
  1335. friend void swap(BatchGetDocumentsRequest& a, BatchGetDocumentsRequest& b) {
  1336. a.Swap(&b);
  1337. }
  1338. inline void Swap(BatchGetDocumentsRequest* other) {
  1339. if (other == this) return;
  1340. InternalSwap(other);
  1341. }
  1342. // implements Message ----------------------------------------------
  1343. inline BatchGetDocumentsRequest* New() const final {
  1344. return CreateMaybeMessage<BatchGetDocumentsRequest>(nullptr);
  1345. }
  1346. BatchGetDocumentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1347. return CreateMaybeMessage<BatchGetDocumentsRequest>(arena);
  1348. }
  1349. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1350. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1351. void CopyFrom(const BatchGetDocumentsRequest& from);
  1352. void MergeFrom(const BatchGetDocumentsRequest& from);
  1353. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1354. bool IsInitialized() const final;
  1355. size_t ByteSizeLong() const final;
  1356. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1357. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1358. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1359. int GetCachedSize() const final { return _cached_size_.Get(); }
  1360. private:
  1361. inline void SharedCtor();
  1362. inline void SharedDtor();
  1363. void SetCachedSize(int size) const final;
  1364. void InternalSwap(BatchGetDocumentsRequest* other);
  1365. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1366. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1367. return "google.firestore.v1.BatchGetDocumentsRequest";
  1368. }
  1369. private:
  1370. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1371. return nullptr;
  1372. }
  1373. inline void* MaybeArenaPtr() const {
  1374. return nullptr;
  1375. }
  1376. public:
  1377. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1378. private:
  1379. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1380. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1381. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1382. }
  1383. public:
  1384. // nested types ----------------------------------------------------
  1385. // accessors -------------------------------------------------------
  1386. enum : int {
  1387. kDocumentsFieldNumber = 2,
  1388. kDatabaseFieldNumber = 1,
  1389. kMaskFieldNumber = 3,
  1390. kTransactionFieldNumber = 4,
  1391. kNewTransactionFieldNumber = 5,
  1392. kReadTimeFieldNumber = 7,
  1393. };
  1394. // repeated string documents = 2;
  1395. int documents_size() const;
  1396. private:
  1397. int _internal_documents_size() const;
  1398. public:
  1399. void clear_documents();
  1400. const std::string& documents(int index) const;
  1401. std::string* mutable_documents(int index);
  1402. void set_documents(int index, const std::string& value);
  1403. void set_documents(int index, std::string&& value);
  1404. void set_documents(int index, const char* value);
  1405. void set_documents(int index, const char* value, size_t size);
  1406. std::string* add_documents();
  1407. void add_documents(const std::string& value);
  1408. void add_documents(std::string&& value);
  1409. void add_documents(const char* value);
  1410. void add_documents(const char* value, size_t size);
  1411. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& documents() const;
  1412. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_documents();
  1413. private:
  1414. const std::string& _internal_documents(int index) const;
  1415. std::string* _internal_add_documents();
  1416. public:
  1417. // string database = 1;
  1418. void clear_database();
  1419. const std::string& database() const;
  1420. void set_database(const std::string& value);
  1421. void set_database(std::string&& value);
  1422. void set_database(const char* value);
  1423. void set_database(const char* value, size_t size);
  1424. std::string* mutable_database();
  1425. std::string* release_database();
  1426. void set_allocated_database(std::string* database);
  1427. private:
  1428. const std::string& _internal_database() const;
  1429. void _internal_set_database(const std::string& value);
  1430. std::string* _internal_mutable_database();
  1431. public:
  1432. // .google.firestore.v1.DocumentMask mask = 3;
  1433. bool has_mask() const;
  1434. private:
  1435. bool _internal_has_mask() const;
  1436. public:
  1437. void clear_mask();
  1438. const ::google::firestore::v1::DocumentMask& mask() const;
  1439. ::google::firestore::v1::DocumentMask* release_mask();
  1440. ::google::firestore::v1::DocumentMask* mutable_mask();
  1441. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  1442. private:
  1443. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  1444. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  1445. public:
  1446. // bytes transaction = 4;
  1447. private:
  1448. bool _internal_has_transaction() const;
  1449. public:
  1450. void clear_transaction();
  1451. const std::string& transaction() const;
  1452. void set_transaction(const std::string& value);
  1453. void set_transaction(std::string&& value);
  1454. void set_transaction(const char* value);
  1455. void set_transaction(const void* value, size_t size);
  1456. std::string* mutable_transaction();
  1457. std::string* release_transaction();
  1458. void set_allocated_transaction(std::string* transaction);
  1459. private:
  1460. const std::string& _internal_transaction() const;
  1461. void _internal_set_transaction(const std::string& value);
  1462. std::string* _internal_mutable_transaction();
  1463. public:
  1464. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  1465. bool has_new_transaction() const;
  1466. private:
  1467. bool _internal_has_new_transaction() const;
  1468. public:
  1469. void clear_new_transaction();
  1470. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  1471. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  1472. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  1473. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  1474. private:
  1475. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  1476. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  1477. public:
  1478. // .google.protobuf.Timestamp read_time = 7;
  1479. bool has_read_time() const;
  1480. private:
  1481. bool _internal_has_read_time() const;
  1482. public:
  1483. void clear_read_time();
  1484. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1485. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1486. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1487. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1488. private:
  1489. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  1490. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  1491. public:
  1492. void clear_consistency_selector();
  1493. ConsistencySelectorCase consistency_selector_case() const;
  1494. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsRequest)
  1495. private:
  1496. class _Internal;
  1497. void set_has_transaction();
  1498. void set_has_new_transaction();
  1499. void set_has_read_time();
  1500. inline bool has_consistency_selector() const;
  1501. inline void clear_has_consistency_selector();
  1502. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1503. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> documents_;
  1504. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1505. ::google::firestore::v1::DocumentMask* mask_;
  1506. union ConsistencySelectorUnion {
  1507. ConsistencySelectorUnion() {}
  1508. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1509. ::google::firestore::v1::TransactionOptions* new_transaction_;
  1510. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1511. } consistency_selector_;
  1512. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1513. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  1514. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1515. };
  1516. // -------------------------------------------------------------------
  1517. class BatchGetDocumentsResponse :
  1518. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsResponse) */ {
  1519. public:
  1520. BatchGetDocumentsResponse();
  1521. virtual ~BatchGetDocumentsResponse();
  1522. BatchGetDocumentsResponse(const BatchGetDocumentsResponse& from);
  1523. BatchGetDocumentsResponse(BatchGetDocumentsResponse&& from) noexcept
  1524. : BatchGetDocumentsResponse() {
  1525. *this = ::std::move(from);
  1526. }
  1527. inline BatchGetDocumentsResponse& operator=(const BatchGetDocumentsResponse& from) {
  1528. CopyFrom(from);
  1529. return *this;
  1530. }
  1531. inline BatchGetDocumentsResponse& operator=(BatchGetDocumentsResponse&& from) noexcept {
  1532. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1533. if (this != &from) InternalSwap(&from);
  1534. } else {
  1535. CopyFrom(from);
  1536. }
  1537. return *this;
  1538. }
  1539. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1540. return GetDescriptor();
  1541. }
  1542. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1543. return GetMetadataStatic().descriptor;
  1544. }
  1545. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1546. return GetMetadataStatic().reflection;
  1547. }
  1548. static const BatchGetDocumentsResponse& default_instance();
  1549. enum ResultCase {
  1550. kFound = 1,
  1551. kMissing = 2,
  1552. RESULT_NOT_SET = 0,
  1553. };
  1554. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1555. static inline const BatchGetDocumentsResponse* internal_default_instance() {
  1556. return reinterpret_cast<const BatchGetDocumentsResponse*>(
  1557. &_BatchGetDocumentsResponse_default_instance_);
  1558. }
  1559. static constexpr int kIndexInFileMessages =
  1560. 7;
  1561. friend void swap(BatchGetDocumentsResponse& a, BatchGetDocumentsResponse& b) {
  1562. a.Swap(&b);
  1563. }
  1564. inline void Swap(BatchGetDocumentsResponse* other) {
  1565. if (other == this) return;
  1566. InternalSwap(other);
  1567. }
  1568. // implements Message ----------------------------------------------
  1569. inline BatchGetDocumentsResponse* New() const final {
  1570. return CreateMaybeMessage<BatchGetDocumentsResponse>(nullptr);
  1571. }
  1572. BatchGetDocumentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1573. return CreateMaybeMessage<BatchGetDocumentsResponse>(arena);
  1574. }
  1575. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1576. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1577. void CopyFrom(const BatchGetDocumentsResponse& from);
  1578. void MergeFrom(const BatchGetDocumentsResponse& from);
  1579. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1580. bool IsInitialized() const final;
  1581. size_t ByteSizeLong() const final;
  1582. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1583. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1584. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1585. int GetCachedSize() const final { return _cached_size_.Get(); }
  1586. private:
  1587. inline void SharedCtor();
  1588. inline void SharedDtor();
  1589. void SetCachedSize(int size) const final;
  1590. void InternalSwap(BatchGetDocumentsResponse* other);
  1591. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1592. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1593. return "google.firestore.v1.BatchGetDocumentsResponse";
  1594. }
  1595. private:
  1596. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1597. return nullptr;
  1598. }
  1599. inline void* MaybeArenaPtr() const {
  1600. return nullptr;
  1601. }
  1602. public:
  1603. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1604. private:
  1605. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1606. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1607. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1608. }
  1609. public:
  1610. // nested types ----------------------------------------------------
  1611. // accessors -------------------------------------------------------
  1612. enum : int {
  1613. kTransactionFieldNumber = 3,
  1614. kReadTimeFieldNumber = 4,
  1615. kFoundFieldNumber = 1,
  1616. kMissingFieldNumber = 2,
  1617. };
  1618. // bytes transaction = 3;
  1619. void clear_transaction();
  1620. const std::string& transaction() const;
  1621. void set_transaction(const std::string& value);
  1622. void set_transaction(std::string&& value);
  1623. void set_transaction(const char* value);
  1624. void set_transaction(const void* value, size_t size);
  1625. std::string* mutable_transaction();
  1626. std::string* release_transaction();
  1627. void set_allocated_transaction(std::string* transaction);
  1628. private:
  1629. const std::string& _internal_transaction() const;
  1630. void _internal_set_transaction(const std::string& value);
  1631. std::string* _internal_mutable_transaction();
  1632. public:
  1633. // .google.protobuf.Timestamp read_time = 4;
  1634. bool has_read_time() const;
  1635. private:
  1636. bool _internal_has_read_time() const;
  1637. public:
  1638. void clear_read_time();
  1639. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1640. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1641. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1642. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1643. private:
  1644. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  1645. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  1646. public:
  1647. // .google.firestore.v1.Document found = 1;
  1648. bool has_found() const;
  1649. private:
  1650. bool _internal_has_found() const;
  1651. public:
  1652. void clear_found();
  1653. const ::google::firestore::v1::Document& found() const;
  1654. ::google::firestore::v1::Document* release_found();
  1655. ::google::firestore::v1::Document* mutable_found();
  1656. void set_allocated_found(::google::firestore::v1::Document* found);
  1657. private:
  1658. const ::google::firestore::v1::Document& _internal_found() const;
  1659. ::google::firestore::v1::Document* _internal_mutable_found();
  1660. public:
  1661. // string missing = 2;
  1662. private:
  1663. bool _internal_has_missing() const;
  1664. public:
  1665. void clear_missing();
  1666. const std::string& missing() const;
  1667. void set_missing(const std::string& value);
  1668. void set_missing(std::string&& value);
  1669. void set_missing(const char* value);
  1670. void set_missing(const char* value, size_t size);
  1671. std::string* mutable_missing();
  1672. std::string* release_missing();
  1673. void set_allocated_missing(std::string* missing);
  1674. private:
  1675. const std::string& _internal_missing() const;
  1676. void _internal_set_missing(const std::string& value);
  1677. std::string* _internal_mutable_missing();
  1678. public:
  1679. void clear_result();
  1680. ResultCase result_case() const;
  1681. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsResponse)
  1682. private:
  1683. class _Internal;
  1684. void set_has_found();
  1685. void set_has_missing();
  1686. inline bool has_result() const;
  1687. inline void clear_has_result();
  1688. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1689. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1690. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1691. union ResultUnion {
  1692. ResultUnion() {}
  1693. ::google::firestore::v1::Document* found_;
  1694. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr missing_;
  1695. } result_;
  1696. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1697. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  1698. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1699. };
  1700. // -------------------------------------------------------------------
  1701. class BeginTransactionRequest :
  1702. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionRequest) */ {
  1703. public:
  1704. BeginTransactionRequest();
  1705. virtual ~BeginTransactionRequest();
  1706. BeginTransactionRequest(const BeginTransactionRequest& from);
  1707. BeginTransactionRequest(BeginTransactionRequest&& from) noexcept
  1708. : BeginTransactionRequest() {
  1709. *this = ::std::move(from);
  1710. }
  1711. inline BeginTransactionRequest& operator=(const BeginTransactionRequest& from) {
  1712. CopyFrom(from);
  1713. return *this;
  1714. }
  1715. inline BeginTransactionRequest& operator=(BeginTransactionRequest&& from) noexcept {
  1716. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1717. if (this != &from) InternalSwap(&from);
  1718. } else {
  1719. CopyFrom(from);
  1720. }
  1721. return *this;
  1722. }
  1723. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1724. return GetDescriptor();
  1725. }
  1726. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1727. return GetMetadataStatic().descriptor;
  1728. }
  1729. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1730. return GetMetadataStatic().reflection;
  1731. }
  1732. static const BeginTransactionRequest& default_instance();
  1733. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1734. static inline const BeginTransactionRequest* internal_default_instance() {
  1735. return reinterpret_cast<const BeginTransactionRequest*>(
  1736. &_BeginTransactionRequest_default_instance_);
  1737. }
  1738. static constexpr int kIndexInFileMessages =
  1739. 8;
  1740. friend void swap(BeginTransactionRequest& a, BeginTransactionRequest& b) {
  1741. a.Swap(&b);
  1742. }
  1743. inline void Swap(BeginTransactionRequest* other) {
  1744. if (other == this) return;
  1745. InternalSwap(other);
  1746. }
  1747. // implements Message ----------------------------------------------
  1748. inline BeginTransactionRequest* New() const final {
  1749. return CreateMaybeMessage<BeginTransactionRequest>(nullptr);
  1750. }
  1751. BeginTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1752. return CreateMaybeMessage<BeginTransactionRequest>(arena);
  1753. }
  1754. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1755. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1756. void CopyFrom(const BeginTransactionRequest& from);
  1757. void MergeFrom(const BeginTransactionRequest& from);
  1758. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1759. bool IsInitialized() const final;
  1760. size_t ByteSizeLong() const final;
  1761. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1762. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1763. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1764. int GetCachedSize() const final { return _cached_size_.Get(); }
  1765. private:
  1766. inline void SharedCtor();
  1767. inline void SharedDtor();
  1768. void SetCachedSize(int size) const final;
  1769. void InternalSwap(BeginTransactionRequest* other);
  1770. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1771. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1772. return "google.firestore.v1.BeginTransactionRequest";
  1773. }
  1774. private:
  1775. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1776. return nullptr;
  1777. }
  1778. inline void* MaybeArenaPtr() const {
  1779. return nullptr;
  1780. }
  1781. public:
  1782. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1783. private:
  1784. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1785. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1786. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1787. }
  1788. public:
  1789. // nested types ----------------------------------------------------
  1790. // accessors -------------------------------------------------------
  1791. enum : int {
  1792. kDatabaseFieldNumber = 1,
  1793. kOptionsFieldNumber = 2,
  1794. };
  1795. // string database = 1;
  1796. void clear_database();
  1797. const std::string& database() const;
  1798. void set_database(const std::string& value);
  1799. void set_database(std::string&& value);
  1800. void set_database(const char* value);
  1801. void set_database(const char* value, size_t size);
  1802. std::string* mutable_database();
  1803. std::string* release_database();
  1804. void set_allocated_database(std::string* database);
  1805. private:
  1806. const std::string& _internal_database() const;
  1807. void _internal_set_database(const std::string& value);
  1808. std::string* _internal_mutable_database();
  1809. public:
  1810. // .google.firestore.v1.TransactionOptions options = 2;
  1811. bool has_options() const;
  1812. private:
  1813. bool _internal_has_options() const;
  1814. public:
  1815. void clear_options();
  1816. const ::google::firestore::v1::TransactionOptions& options() const;
  1817. ::google::firestore::v1::TransactionOptions* release_options();
  1818. ::google::firestore::v1::TransactionOptions* mutable_options();
  1819. void set_allocated_options(::google::firestore::v1::TransactionOptions* options);
  1820. private:
  1821. const ::google::firestore::v1::TransactionOptions& _internal_options() const;
  1822. ::google::firestore::v1::TransactionOptions* _internal_mutable_options();
  1823. public:
  1824. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionRequest)
  1825. private:
  1826. class _Internal;
  1827. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1828. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1829. ::google::firestore::v1::TransactionOptions* options_;
  1830. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1831. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1832. };
  1833. // -------------------------------------------------------------------
  1834. class BeginTransactionResponse :
  1835. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionResponse) */ {
  1836. public:
  1837. BeginTransactionResponse();
  1838. virtual ~BeginTransactionResponse();
  1839. BeginTransactionResponse(const BeginTransactionResponse& from);
  1840. BeginTransactionResponse(BeginTransactionResponse&& from) noexcept
  1841. : BeginTransactionResponse() {
  1842. *this = ::std::move(from);
  1843. }
  1844. inline BeginTransactionResponse& operator=(const BeginTransactionResponse& from) {
  1845. CopyFrom(from);
  1846. return *this;
  1847. }
  1848. inline BeginTransactionResponse& operator=(BeginTransactionResponse&& from) noexcept {
  1849. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1850. if (this != &from) InternalSwap(&from);
  1851. } else {
  1852. CopyFrom(from);
  1853. }
  1854. return *this;
  1855. }
  1856. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1857. return GetDescriptor();
  1858. }
  1859. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1860. return GetMetadataStatic().descriptor;
  1861. }
  1862. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1863. return GetMetadataStatic().reflection;
  1864. }
  1865. static const BeginTransactionResponse& default_instance();
  1866. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1867. static inline const BeginTransactionResponse* internal_default_instance() {
  1868. return reinterpret_cast<const BeginTransactionResponse*>(
  1869. &_BeginTransactionResponse_default_instance_);
  1870. }
  1871. static constexpr int kIndexInFileMessages =
  1872. 9;
  1873. friend void swap(BeginTransactionResponse& a, BeginTransactionResponse& b) {
  1874. a.Swap(&b);
  1875. }
  1876. inline void Swap(BeginTransactionResponse* other) {
  1877. if (other == this) return;
  1878. InternalSwap(other);
  1879. }
  1880. // implements Message ----------------------------------------------
  1881. inline BeginTransactionResponse* New() const final {
  1882. return CreateMaybeMessage<BeginTransactionResponse>(nullptr);
  1883. }
  1884. BeginTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1885. return CreateMaybeMessage<BeginTransactionResponse>(arena);
  1886. }
  1887. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1888. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1889. void CopyFrom(const BeginTransactionResponse& from);
  1890. void MergeFrom(const BeginTransactionResponse& from);
  1891. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1892. bool IsInitialized() const final;
  1893. size_t ByteSizeLong() const final;
  1894. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1895. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1896. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1897. int GetCachedSize() const final { return _cached_size_.Get(); }
  1898. private:
  1899. inline void SharedCtor();
  1900. inline void SharedDtor();
  1901. void SetCachedSize(int size) const final;
  1902. void InternalSwap(BeginTransactionResponse* other);
  1903. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1904. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1905. return "google.firestore.v1.BeginTransactionResponse";
  1906. }
  1907. private:
  1908. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1909. return nullptr;
  1910. }
  1911. inline void* MaybeArenaPtr() const {
  1912. return nullptr;
  1913. }
  1914. public:
  1915. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1916. private:
  1917. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1918. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1919. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1920. }
  1921. public:
  1922. // nested types ----------------------------------------------------
  1923. // accessors -------------------------------------------------------
  1924. enum : int {
  1925. kTransactionFieldNumber = 1,
  1926. };
  1927. // bytes transaction = 1;
  1928. void clear_transaction();
  1929. const std::string& transaction() const;
  1930. void set_transaction(const std::string& value);
  1931. void set_transaction(std::string&& value);
  1932. void set_transaction(const char* value);
  1933. void set_transaction(const void* value, size_t size);
  1934. std::string* mutable_transaction();
  1935. std::string* release_transaction();
  1936. void set_allocated_transaction(std::string* transaction);
  1937. private:
  1938. const std::string& _internal_transaction() const;
  1939. void _internal_set_transaction(const std::string& value);
  1940. std::string* _internal_mutable_transaction();
  1941. public:
  1942. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionResponse)
  1943. private:
  1944. class _Internal;
  1945. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1946. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1947. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1948. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1949. };
  1950. // -------------------------------------------------------------------
  1951. class CommitRequest :
  1952. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitRequest) */ {
  1953. public:
  1954. CommitRequest();
  1955. virtual ~CommitRequest();
  1956. CommitRequest(const CommitRequest& from);
  1957. CommitRequest(CommitRequest&& from) noexcept
  1958. : CommitRequest() {
  1959. *this = ::std::move(from);
  1960. }
  1961. inline CommitRequest& operator=(const CommitRequest& from) {
  1962. CopyFrom(from);
  1963. return *this;
  1964. }
  1965. inline CommitRequest& operator=(CommitRequest&& from) noexcept {
  1966. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1967. if (this != &from) InternalSwap(&from);
  1968. } else {
  1969. CopyFrom(from);
  1970. }
  1971. return *this;
  1972. }
  1973. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1974. return GetDescriptor();
  1975. }
  1976. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1977. return GetMetadataStatic().descriptor;
  1978. }
  1979. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1980. return GetMetadataStatic().reflection;
  1981. }
  1982. static const CommitRequest& default_instance();
  1983. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1984. static inline const CommitRequest* internal_default_instance() {
  1985. return reinterpret_cast<const CommitRequest*>(
  1986. &_CommitRequest_default_instance_);
  1987. }
  1988. static constexpr int kIndexInFileMessages =
  1989. 10;
  1990. friend void swap(CommitRequest& a, CommitRequest& b) {
  1991. a.Swap(&b);
  1992. }
  1993. inline void Swap(CommitRequest* other) {
  1994. if (other == this) return;
  1995. InternalSwap(other);
  1996. }
  1997. // implements Message ----------------------------------------------
  1998. inline CommitRequest* New() const final {
  1999. return CreateMaybeMessage<CommitRequest>(nullptr);
  2000. }
  2001. CommitRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2002. return CreateMaybeMessage<CommitRequest>(arena);
  2003. }
  2004. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2005. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2006. void CopyFrom(const CommitRequest& from);
  2007. void MergeFrom(const CommitRequest& from);
  2008. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2009. bool IsInitialized() const final;
  2010. size_t ByteSizeLong() const final;
  2011. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2012. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2013. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2014. int GetCachedSize() const final { return _cached_size_.Get(); }
  2015. private:
  2016. inline void SharedCtor();
  2017. inline void SharedDtor();
  2018. void SetCachedSize(int size) const final;
  2019. void InternalSwap(CommitRequest* other);
  2020. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2021. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2022. return "google.firestore.v1.CommitRequest";
  2023. }
  2024. private:
  2025. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2026. return nullptr;
  2027. }
  2028. inline void* MaybeArenaPtr() const {
  2029. return nullptr;
  2030. }
  2031. public:
  2032. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2033. private:
  2034. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2035. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2036. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2037. }
  2038. public:
  2039. // nested types ----------------------------------------------------
  2040. // accessors -------------------------------------------------------
  2041. enum : int {
  2042. kWritesFieldNumber = 2,
  2043. kDatabaseFieldNumber = 1,
  2044. kTransactionFieldNumber = 3,
  2045. };
  2046. // repeated .google.firestore.v1.Write writes = 2;
  2047. int writes_size() const;
  2048. private:
  2049. int _internal_writes_size() const;
  2050. public:
  2051. void clear_writes();
  2052. ::google::firestore::v1::Write* mutable_writes(int index);
  2053. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  2054. mutable_writes();
  2055. private:
  2056. const ::google::firestore::v1::Write& _internal_writes(int index) const;
  2057. ::google::firestore::v1::Write* _internal_add_writes();
  2058. public:
  2059. const ::google::firestore::v1::Write& writes(int index) const;
  2060. ::google::firestore::v1::Write* add_writes();
  2061. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  2062. writes() const;
  2063. // string database = 1;
  2064. void clear_database();
  2065. const std::string& database() const;
  2066. void set_database(const std::string& value);
  2067. void set_database(std::string&& value);
  2068. void set_database(const char* value);
  2069. void set_database(const char* value, size_t size);
  2070. std::string* mutable_database();
  2071. std::string* release_database();
  2072. void set_allocated_database(std::string* database);
  2073. private:
  2074. const std::string& _internal_database() const;
  2075. void _internal_set_database(const std::string& value);
  2076. std::string* _internal_mutable_database();
  2077. public:
  2078. // bytes transaction = 3;
  2079. void clear_transaction();
  2080. const std::string& transaction() const;
  2081. void set_transaction(const std::string& value);
  2082. void set_transaction(std::string&& value);
  2083. void set_transaction(const char* value);
  2084. void set_transaction(const void* value, size_t size);
  2085. std::string* mutable_transaction();
  2086. std::string* release_transaction();
  2087. void set_allocated_transaction(std::string* transaction);
  2088. private:
  2089. const std::string& _internal_transaction() const;
  2090. void _internal_set_transaction(const std::string& value);
  2091. std::string* _internal_mutable_transaction();
  2092. public:
  2093. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitRequest)
  2094. private:
  2095. class _Internal;
  2096. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2097. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  2098. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2099. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2100. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2101. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2102. };
  2103. // -------------------------------------------------------------------
  2104. class CommitResponse :
  2105. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitResponse) */ {
  2106. public:
  2107. CommitResponse();
  2108. virtual ~CommitResponse();
  2109. CommitResponse(const CommitResponse& from);
  2110. CommitResponse(CommitResponse&& from) noexcept
  2111. : CommitResponse() {
  2112. *this = ::std::move(from);
  2113. }
  2114. inline CommitResponse& operator=(const CommitResponse& from) {
  2115. CopyFrom(from);
  2116. return *this;
  2117. }
  2118. inline CommitResponse& operator=(CommitResponse&& from) noexcept {
  2119. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2120. if (this != &from) InternalSwap(&from);
  2121. } else {
  2122. CopyFrom(from);
  2123. }
  2124. return *this;
  2125. }
  2126. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2127. return GetDescriptor();
  2128. }
  2129. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2130. return GetMetadataStatic().descriptor;
  2131. }
  2132. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2133. return GetMetadataStatic().reflection;
  2134. }
  2135. static const CommitResponse& default_instance();
  2136. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2137. static inline const CommitResponse* internal_default_instance() {
  2138. return reinterpret_cast<const CommitResponse*>(
  2139. &_CommitResponse_default_instance_);
  2140. }
  2141. static constexpr int kIndexInFileMessages =
  2142. 11;
  2143. friend void swap(CommitResponse& a, CommitResponse& b) {
  2144. a.Swap(&b);
  2145. }
  2146. inline void Swap(CommitResponse* other) {
  2147. if (other == this) return;
  2148. InternalSwap(other);
  2149. }
  2150. // implements Message ----------------------------------------------
  2151. inline CommitResponse* New() const final {
  2152. return CreateMaybeMessage<CommitResponse>(nullptr);
  2153. }
  2154. CommitResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2155. return CreateMaybeMessage<CommitResponse>(arena);
  2156. }
  2157. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2158. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2159. void CopyFrom(const CommitResponse& from);
  2160. void MergeFrom(const CommitResponse& from);
  2161. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2162. bool IsInitialized() const final;
  2163. size_t ByteSizeLong() const final;
  2164. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2165. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2166. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2167. int GetCachedSize() const final { return _cached_size_.Get(); }
  2168. private:
  2169. inline void SharedCtor();
  2170. inline void SharedDtor();
  2171. void SetCachedSize(int size) const final;
  2172. void InternalSwap(CommitResponse* other);
  2173. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2174. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2175. return "google.firestore.v1.CommitResponse";
  2176. }
  2177. private:
  2178. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2179. return nullptr;
  2180. }
  2181. inline void* MaybeArenaPtr() const {
  2182. return nullptr;
  2183. }
  2184. public:
  2185. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2186. private:
  2187. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2188. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2189. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2190. }
  2191. public:
  2192. // nested types ----------------------------------------------------
  2193. // accessors -------------------------------------------------------
  2194. enum : int {
  2195. kWriteResultsFieldNumber = 1,
  2196. kCommitTimeFieldNumber = 2,
  2197. };
  2198. // repeated .google.firestore.v1.WriteResult write_results = 1;
  2199. int write_results_size() const;
  2200. private:
  2201. int _internal_write_results_size() const;
  2202. public:
  2203. void clear_write_results();
  2204. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  2205. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  2206. mutable_write_results();
  2207. private:
  2208. const ::google::firestore::v1::WriteResult& _internal_write_results(int index) const;
  2209. ::google::firestore::v1::WriteResult* _internal_add_write_results();
  2210. public:
  2211. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  2212. ::google::firestore::v1::WriteResult* add_write_results();
  2213. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  2214. write_results() const;
  2215. // .google.protobuf.Timestamp commit_time = 2;
  2216. bool has_commit_time() const;
  2217. private:
  2218. bool _internal_has_commit_time() const;
  2219. public:
  2220. void clear_commit_time();
  2221. const PROTOBUF_NAMESPACE_ID::Timestamp& commit_time() const;
  2222. PROTOBUF_NAMESPACE_ID::Timestamp* release_commit_time();
  2223. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_commit_time();
  2224. void set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time);
  2225. private:
  2226. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_commit_time() const;
  2227. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_commit_time();
  2228. public:
  2229. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitResponse)
  2230. private:
  2231. class _Internal;
  2232. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2233. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  2234. PROTOBUF_NAMESPACE_ID::Timestamp* commit_time_;
  2235. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2236. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2237. };
  2238. // -------------------------------------------------------------------
  2239. class RollbackRequest :
  2240. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RollbackRequest) */ {
  2241. public:
  2242. RollbackRequest();
  2243. virtual ~RollbackRequest();
  2244. RollbackRequest(const RollbackRequest& from);
  2245. RollbackRequest(RollbackRequest&& from) noexcept
  2246. : RollbackRequest() {
  2247. *this = ::std::move(from);
  2248. }
  2249. inline RollbackRequest& operator=(const RollbackRequest& from) {
  2250. CopyFrom(from);
  2251. return *this;
  2252. }
  2253. inline RollbackRequest& operator=(RollbackRequest&& from) noexcept {
  2254. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2255. if (this != &from) InternalSwap(&from);
  2256. } else {
  2257. CopyFrom(from);
  2258. }
  2259. return *this;
  2260. }
  2261. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2262. return GetDescriptor();
  2263. }
  2264. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2265. return GetMetadataStatic().descriptor;
  2266. }
  2267. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2268. return GetMetadataStatic().reflection;
  2269. }
  2270. static const RollbackRequest& default_instance();
  2271. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2272. static inline const RollbackRequest* internal_default_instance() {
  2273. return reinterpret_cast<const RollbackRequest*>(
  2274. &_RollbackRequest_default_instance_);
  2275. }
  2276. static constexpr int kIndexInFileMessages =
  2277. 12;
  2278. friend void swap(RollbackRequest& a, RollbackRequest& b) {
  2279. a.Swap(&b);
  2280. }
  2281. inline void Swap(RollbackRequest* other) {
  2282. if (other == this) return;
  2283. InternalSwap(other);
  2284. }
  2285. // implements Message ----------------------------------------------
  2286. inline RollbackRequest* New() const final {
  2287. return CreateMaybeMessage<RollbackRequest>(nullptr);
  2288. }
  2289. RollbackRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2290. return CreateMaybeMessage<RollbackRequest>(arena);
  2291. }
  2292. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2293. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2294. void CopyFrom(const RollbackRequest& from);
  2295. void MergeFrom(const RollbackRequest& from);
  2296. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2297. bool IsInitialized() const final;
  2298. size_t ByteSizeLong() const final;
  2299. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2300. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2301. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2302. int GetCachedSize() const final { return _cached_size_.Get(); }
  2303. private:
  2304. inline void SharedCtor();
  2305. inline void SharedDtor();
  2306. void SetCachedSize(int size) const final;
  2307. void InternalSwap(RollbackRequest* other);
  2308. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2309. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2310. return "google.firestore.v1.RollbackRequest";
  2311. }
  2312. private:
  2313. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2314. return nullptr;
  2315. }
  2316. inline void* MaybeArenaPtr() const {
  2317. return nullptr;
  2318. }
  2319. public:
  2320. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2321. private:
  2322. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2323. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2324. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2325. }
  2326. public:
  2327. // nested types ----------------------------------------------------
  2328. // accessors -------------------------------------------------------
  2329. enum : int {
  2330. kDatabaseFieldNumber = 1,
  2331. kTransactionFieldNumber = 2,
  2332. };
  2333. // string database = 1;
  2334. void clear_database();
  2335. const std::string& database() const;
  2336. void set_database(const std::string& value);
  2337. void set_database(std::string&& value);
  2338. void set_database(const char* value);
  2339. void set_database(const char* value, size_t size);
  2340. std::string* mutable_database();
  2341. std::string* release_database();
  2342. void set_allocated_database(std::string* database);
  2343. private:
  2344. const std::string& _internal_database() const;
  2345. void _internal_set_database(const std::string& value);
  2346. std::string* _internal_mutable_database();
  2347. public:
  2348. // bytes transaction = 2;
  2349. void clear_transaction();
  2350. const std::string& transaction() const;
  2351. void set_transaction(const std::string& value);
  2352. void set_transaction(std::string&& value);
  2353. void set_transaction(const char* value);
  2354. void set_transaction(const void* value, size_t size);
  2355. std::string* mutable_transaction();
  2356. std::string* release_transaction();
  2357. void set_allocated_transaction(std::string* transaction);
  2358. private:
  2359. const std::string& _internal_transaction() const;
  2360. void _internal_set_transaction(const std::string& value);
  2361. std::string* _internal_mutable_transaction();
  2362. public:
  2363. // @@protoc_insertion_point(class_scope:google.firestore.v1.RollbackRequest)
  2364. private:
  2365. class _Internal;
  2366. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2367. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2368. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2369. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2370. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2371. };
  2372. // -------------------------------------------------------------------
  2373. class RunQueryRequest :
  2374. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryRequest) */ {
  2375. public:
  2376. RunQueryRequest();
  2377. virtual ~RunQueryRequest();
  2378. RunQueryRequest(const RunQueryRequest& from);
  2379. RunQueryRequest(RunQueryRequest&& from) noexcept
  2380. : RunQueryRequest() {
  2381. *this = ::std::move(from);
  2382. }
  2383. inline RunQueryRequest& operator=(const RunQueryRequest& from) {
  2384. CopyFrom(from);
  2385. return *this;
  2386. }
  2387. inline RunQueryRequest& operator=(RunQueryRequest&& from) noexcept {
  2388. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2389. if (this != &from) InternalSwap(&from);
  2390. } else {
  2391. CopyFrom(from);
  2392. }
  2393. return *this;
  2394. }
  2395. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2396. return GetDescriptor();
  2397. }
  2398. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2399. return GetMetadataStatic().descriptor;
  2400. }
  2401. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2402. return GetMetadataStatic().reflection;
  2403. }
  2404. static const RunQueryRequest& default_instance();
  2405. enum QueryTypeCase {
  2406. kStructuredQuery = 2,
  2407. QUERY_TYPE_NOT_SET = 0,
  2408. };
  2409. enum ConsistencySelectorCase {
  2410. kTransaction = 5,
  2411. kNewTransaction = 6,
  2412. kReadTime = 7,
  2413. CONSISTENCY_SELECTOR_NOT_SET = 0,
  2414. };
  2415. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2416. static inline const RunQueryRequest* internal_default_instance() {
  2417. return reinterpret_cast<const RunQueryRequest*>(
  2418. &_RunQueryRequest_default_instance_);
  2419. }
  2420. static constexpr int kIndexInFileMessages =
  2421. 13;
  2422. friend void swap(RunQueryRequest& a, RunQueryRequest& b) {
  2423. a.Swap(&b);
  2424. }
  2425. inline void Swap(RunQueryRequest* other) {
  2426. if (other == this) return;
  2427. InternalSwap(other);
  2428. }
  2429. // implements Message ----------------------------------------------
  2430. inline RunQueryRequest* New() const final {
  2431. return CreateMaybeMessage<RunQueryRequest>(nullptr);
  2432. }
  2433. RunQueryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2434. return CreateMaybeMessage<RunQueryRequest>(arena);
  2435. }
  2436. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2437. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2438. void CopyFrom(const RunQueryRequest& from);
  2439. void MergeFrom(const RunQueryRequest& from);
  2440. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2441. bool IsInitialized() const final;
  2442. size_t ByteSizeLong() const final;
  2443. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2444. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2445. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2446. int GetCachedSize() const final { return _cached_size_.Get(); }
  2447. private:
  2448. inline void SharedCtor();
  2449. inline void SharedDtor();
  2450. void SetCachedSize(int size) const final;
  2451. void InternalSwap(RunQueryRequest* other);
  2452. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2453. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2454. return "google.firestore.v1.RunQueryRequest";
  2455. }
  2456. private:
  2457. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2458. return nullptr;
  2459. }
  2460. inline void* MaybeArenaPtr() const {
  2461. return nullptr;
  2462. }
  2463. public:
  2464. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2465. private:
  2466. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2467. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2468. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2469. }
  2470. public:
  2471. // nested types ----------------------------------------------------
  2472. // accessors -------------------------------------------------------
  2473. enum : int {
  2474. kParentFieldNumber = 1,
  2475. kStructuredQueryFieldNumber = 2,
  2476. kTransactionFieldNumber = 5,
  2477. kNewTransactionFieldNumber = 6,
  2478. kReadTimeFieldNumber = 7,
  2479. };
  2480. // string parent = 1;
  2481. void clear_parent();
  2482. const std::string& parent() const;
  2483. void set_parent(const std::string& value);
  2484. void set_parent(std::string&& value);
  2485. void set_parent(const char* value);
  2486. void set_parent(const char* value, size_t size);
  2487. std::string* mutable_parent();
  2488. std::string* release_parent();
  2489. void set_allocated_parent(std::string* parent);
  2490. private:
  2491. const std::string& _internal_parent() const;
  2492. void _internal_set_parent(const std::string& value);
  2493. std::string* _internal_mutable_parent();
  2494. public:
  2495. // .google.firestore.v1.StructuredQuery structured_query = 2;
  2496. bool has_structured_query() const;
  2497. private:
  2498. bool _internal_has_structured_query() const;
  2499. public:
  2500. void clear_structured_query();
  2501. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  2502. ::google::firestore::v1::StructuredQuery* release_structured_query();
  2503. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  2504. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  2505. private:
  2506. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  2507. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  2508. public:
  2509. // bytes transaction = 5;
  2510. private:
  2511. bool _internal_has_transaction() const;
  2512. public:
  2513. void clear_transaction();
  2514. const std::string& transaction() const;
  2515. void set_transaction(const std::string& value);
  2516. void set_transaction(std::string&& value);
  2517. void set_transaction(const char* value);
  2518. void set_transaction(const void* value, size_t size);
  2519. std::string* mutable_transaction();
  2520. std::string* release_transaction();
  2521. void set_allocated_transaction(std::string* transaction);
  2522. private:
  2523. const std::string& _internal_transaction() const;
  2524. void _internal_set_transaction(const std::string& value);
  2525. std::string* _internal_mutable_transaction();
  2526. public:
  2527. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  2528. bool has_new_transaction() const;
  2529. private:
  2530. bool _internal_has_new_transaction() const;
  2531. public:
  2532. void clear_new_transaction();
  2533. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  2534. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  2535. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  2536. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  2537. private:
  2538. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  2539. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  2540. public:
  2541. // .google.protobuf.Timestamp read_time = 7;
  2542. bool has_read_time() const;
  2543. private:
  2544. bool _internal_has_read_time() const;
  2545. public:
  2546. void clear_read_time();
  2547. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2548. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2549. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2550. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2551. private:
  2552. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  2553. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  2554. public:
  2555. void clear_query_type();
  2556. QueryTypeCase query_type_case() const;
  2557. void clear_consistency_selector();
  2558. ConsistencySelectorCase consistency_selector_case() const;
  2559. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryRequest)
  2560. private:
  2561. class _Internal;
  2562. void set_has_structured_query();
  2563. void set_has_transaction();
  2564. void set_has_new_transaction();
  2565. void set_has_read_time();
  2566. inline bool has_query_type() const;
  2567. inline void clear_has_query_type();
  2568. inline bool has_consistency_selector() const;
  2569. inline void clear_has_consistency_selector();
  2570. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2571. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  2572. union QueryTypeUnion {
  2573. QueryTypeUnion() {}
  2574. ::google::firestore::v1::StructuredQuery* structured_query_;
  2575. } query_type_;
  2576. union ConsistencySelectorUnion {
  2577. ConsistencySelectorUnion() {}
  2578. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2579. ::google::firestore::v1::TransactionOptions* new_transaction_;
  2580. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2581. } consistency_selector_;
  2582. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2583. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  2584. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2585. };
  2586. // -------------------------------------------------------------------
  2587. class RunQueryResponse :
  2588. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryResponse) */ {
  2589. public:
  2590. RunQueryResponse();
  2591. virtual ~RunQueryResponse();
  2592. RunQueryResponse(const RunQueryResponse& from);
  2593. RunQueryResponse(RunQueryResponse&& from) noexcept
  2594. : RunQueryResponse() {
  2595. *this = ::std::move(from);
  2596. }
  2597. inline RunQueryResponse& operator=(const RunQueryResponse& from) {
  2598. CopyFrom(from);
  2599. return *this;
  2600. }
  2601. inline RunQueryResponse& operator=(RunQueryResponse&& from) noexcept {
  2602. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2603. if (this != &from) InternalSwap(&from);
  2604. } else {
  2605. CopyFrom(from);
  2606. }
  2607. return *this;
  2608. }
  2609. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2610. return GetDescriptor();
  2611. }
  2612. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2613. return GetMetadataStatic().descriptor;
  2614. }
  2615. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2616. return GetMetadataStatic().reflection;
  2617. }
  2618. static const RunQueryResponse& default_instance();
  2619. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2620. static inline const RunQueryResponse* internal_default_instance() {
  2621. return reinterpret_cast<const RunQueryResponse*>(
  2622. &_RunQueryResponse_default_instance_);
  2623. }
  2624. static constexpr int kIndexInFileMessages =
  2625. 14;
  2626. friend void swap(RunQueryResponse& a, RunQueryResponse& b) {
  2627. a.Swap(&b);
  2628. }
  2629. inline void Swap(RunQueryResponse* other) {
  2630. if (other == this) return;
  2631. InternalSwap(other);
  2632. }
  2633. // implements Message ----------------------------------------------
  2634. inline RunQueryResponse* New() const final {
  2635. return CreateMaybeMessage<RunQueryResponse>(nullptr);
  2636. }
  2637. RunQueryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2638. return CreateMaybeMessage<RunQueryResponse>(arena);
  2639. }
  2640. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2641. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2642. void CopyFrom(const RunQueryResponse& from);
  2643. void MergeFrom(const RunQueryResponse& from);
  2644. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2645. bool IsInitialized() const final;
  2646. size_t ByteSizeLong() const final;
  2647. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2648. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2649. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2650. int GetCachedSize() const final { return _cached_size_.Get(); }
  2651. private:
  2652. inline void SharedCtor();
  2653. inline void SharedDtor();
  2654. void SetCachedSize(int size) const final;
  2655. void InternalSwap(RunQueryResponse* other);
  2656. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2657. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2658. return "google.firestore.v1.RunQueryResponse";
  2659. }
  2660. private:
  2661. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2662. return nullptr;
  2663. }
  2664. inline void* MaybeArenaPtr() const {
  2665. return nullptr;
  2666. }
  2667. public:
  2668. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2669. private:
  2670. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2671. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2672. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2673. }
  2674. public:
  2675. // nested types ----------------------------------------------------
  2676. // accessors -------------------------------------------------------
  2677. enum : int {
  2678. kTransactionFieldNumber = 2,
  2679. kDocumentFieldNumber = 1,
  2680. kReadTimeFieldNumber = 3,
  2681. kSkippedResultsFieldNumber = 4,
  2682. };
  2683. // bytes transaction = 2;
  2684. void clear_transaction();
  2685. const std::string& transaction() const;
  2686. void set_transaction(const std::string& value);
  2687. void set_transaction(std::string&& value);
  2688. void set_transaction(const char* value);
  2689. void set_transaction(const void* value, size_t size);
  2690. std::string* mutable_transaction();
  2691. std::string* release_transaction();
  2692. void set_allocated_transaction(std::string* transaction);
  2693. private:
  2694. const std::string& _internal_transaction() const;
  2695. void _internal_set_transaction(const std::string& value);
  2696. std::string* _internal_mutable_transaction();
  2697. public:
  2698. // .google.firestore.v1.Document document = 1;
  2699. bool has_document() const;
  2700. private:
  2701. bool _internal_has_document() const;
  2702. public:
  2703. void clear_document();
  2704. const ::google::firestore::v1::Document& document() const;
  2705. ::google::firestore::v1::Document* release_document();
  2706. ::google::firestore::v1::Document* mutable_document();
  2707. void set_allocated_document(::google::firestore::v1::Document* document);
  2708. private:
  2709. const ::google::firestore::v1::Document& _internal_document() const;
  2710. ::google::firestore::v1::Document* _internal_mutable_document();
  2711. public:
  2712. // .google.protobuf.Timestamp read_time = 3;
  2713. bool has_read_time() const;
  2714. private:
  2715. bool _internal_has_read_time() const;
  2716. public:
  2717. void clear_read_time();
  2718. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2719. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2720. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2721. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2722. private:
  2723. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  2724. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  2725. public:
  2726. // int32 skipped_results = 4;
  2727. void clear_skipped_results();
  2728. ::PROTOBUF_NAMESPACE_ID::int32 skipped_results() const;
  2729. void set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value);
  2730. private:
  2731. ::PROTOBUF_NAMESPACE_ID::int32 _internal_skipped_results() const;
  2732. void _internal_set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value);
  2733. public:
  2734. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryResponse)
  2735. private:
  2736. class _Internal;
  2737. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2738. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2739. ::google::firestore::v1::Document* document_;
  2740. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2741. ::PROTOBUF_NAMESPACE_ID::int32 skipped_results_;
  2742. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2743. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2744. };
  2745. // -------------------------------------------------------------------
  2746. class RunAggregationQueryRequest :
  2747. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunAggregationQueryRequest) */ {
  2748. public:
  2749. RunAggregationQueryRequest();
  2750. virtual ~RunAggregationQueryRequest();
  2751. RunAggregationQueryRequest(const RunAggregationQueryRequest& from);
  2752. RunAggregationQueryRequest(RunAggregationQueryRequest&& from) noexcept
  2753. : RunAggregationQueryRequest() {
  2754. *this = ::std::move(from);
  2755. }
  2756. inline RunAggregationQueryRequest& operator=(const RunAggregationQueryRequest& from) {
  2757. CopyFrom(from);
  2758. return *this;
  2759. }
  2760. inline RunAggregationQueryRequest& operator=(RunAggregationQueryRequest&& from) noexcept {
  2761. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2762. if (this != &from) InternalSwap(&from);
  2763. } else {
  2764. CopyFrom(from);
  2765. }
  2766. return *this;
  2767. }
  2768. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2769. return GetDescriptor();
  2770. }
  2771. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2772. return GetMetadataStatic().descriptor;
  2773. }
  2774. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2775. return GetMetadataStatic().reflection;
  2776. }
  2777. static const RunAggregationQueryRequest& default_instance();
  2778. enum QueryTypeCase {
  2779. kStructuredAggregationQuery = 2,
  2780. QUERY_TYPE_NOT_SET = 0,
  2781. };
  2782. enum ConsistencySelectorCase {
  2783. kTransaction = 4,
  2784. kNewTransaction = 5,
  2785. kReadTime = 6,
  2786. CONSISTENCY_SELECTOR_NOT_SET = 0,
  2787. };
  2788. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2789. static inline const RunAggregationQueryRequest* internal_default_instance() {
  2790. return reinterpret_cast<const RunAggregationQueryRequest*>(
  2791. &_RunAggregationQueryRequest_default_instance_);
  2792. }
  2793. static constexpr int kIndexInFileMessages =
  2794. 15;
  2795. friend void swap(RunAggregationQueryRequest& a, RunAggregationQueryRequest& b) {
  2796. a.Swap(&b);
  2797. }
  2798. inline void Swap(RunAggregationQueryRequest* other) {
  2799. if (other == this) return;
  2800. InternalSwap(other);
  2801. }
  2802. // implements Message ----------------------------------------------
  2803. inline RunAggregationQueryRequest* New() const final {
  2804. return CreateMaybeMessage<RunAggregationQueryRequest>(nullptr);
  2805. }
  2806. RunAggregationQueryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2807. return CreateMaybeMessage<RunAggregationQueryRequest>(arena);
  2808. }
  2809. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2810. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2811. void CopyFrom(const RunAggregationQueryRequest& from);
  2812. void MergeFrom(const RunAggregationQueryRequest& from);
  2813. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2814. bool IsInitialized() const final;
  2815. size_t ByteSizeLong() const final;
  2816. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2817. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2818. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2819. int GetCachedSize() const final { return _cached_size_.Get(); }
  2820. private:
  2821. inline void SharedCtor();
  2822. inline void SharedDtor();
  2823. void SetCachedSize(int size) const final;
  2824. void InternalSwap(RunAggregationQueryRequest* other);
  2825. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2826. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2827. return "google.firestore.v1.RunAggregationQueryRequest";
  2828. }
  2829. private:
  2830. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2831. return nullptr;
  2832. }
  2833. inline void* MaybeArenaPtr() const {
  2834. return nullptr;
  2835. }
  2836. public:
  2837. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2838. private:
  2839. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2840. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2841. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2842. }
  2843. public:
  2844. // nested types ----------------------------------------------------
  2845. // accessors -------------------------------------------------------
  2846. enum : int {
  2847. kParentFieldNumber = 1,
  2848. kStructuredAggregationQueryFieldNumber = 2,
  2849. kTransactionFieldNumber = 4,
  2850. kNewTransactionFieldNumber = 5,
  2851. kReadTimeFieldNumber = 6,
  2852. };
  2853. // string parent = 1;
  2854. void clear_parent();
  2855. const std::string& parent() const;
  2856. void set_parent(const std::string& value);
  2857. void set_parent(std::string&& value);
  2858. void set_parent(const char* value);
  2859. void set_parent(const char* value, size_t size);
  2860. std::string* mutable_parent();
  2861. std::string* release_parent();
  2862. void set_allocated_parent(std::string* parent);
  2863. private:
  2864. const std::string& _internal_parent() const;
  2865. void _internal_set_parent(const std::string& value);
  2866. std::string* _internal_mutable_parent();
  2867. public:
  2868. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  2869. bool has_structured_aggregation_query() const;
  2870. private:
  2871. bool _internal_has_structured_aggregation_query() const;
  2872. public:
  2873. void clear_structured_aggregation_query();
  2874. const ::google::firestore::v1::StructuredAggregationQuery& structured_aggregation_query() const;
  2875. ::google::firestore::v1::StructuredAggregationQuery* release_structured_aggregation_query();
  2876. ::google::firestore::v1::StructuredAggregationQuery* mutable_structured_aggregation_query();
  2877. void set_allocated_structured_aggregation_query(::google::firestore::v1::StructuredAggregationQuery* structured_aggregation_query);
  2878. private:
  2879. const ::google::firestore::v1::StructuredAggregationQuery& _internal_structured_aggregation_query() const;
  2880. ::google::firestore::v1::StructuredAggregationQuery* _internal_mutable_structured_aggregation_query();
  2881. public:
  2882. // bytes transaction = 4;
  2883. private:
  2884. bool _internal_has_transaction() const;
  2885. public:
  2886. void clear_transaction();
  2887. const std::string& transaction() const;
  2888. void set_transaction(const std::string& value);
  2889. void set_transaction(std::string&& value);
  2890. void set_transaction(const char* value);
  2891. void set_transaction(const void* value, size_t size);
  2892. std::string* mutable_transaction();
  2893. std::string* release_transaction();
  2894. void set_allocated_transaction(std::string* transaction);
  2895. private:
  2896. const std::string& _internal_transaction() const;
  2897. void _internal_set_transaction(const std::string& value);
  2898. std::string* _internal_mutable_transaction();
  2899. public:
  2900. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  2901. bool has_new_transaction() const;
  2902. private:
  2903. bool _internal_has_new_transaction() const;
  2904. public:
  2905. void clear_new_transaction();
  2906. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  2907. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  2908. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  2909. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  2910. private:
  2911. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  2912. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  2913. public:
  2914. // .google.protobuf.Timestamp read_time = 6;
  2915. bool has_read_time() const;
  2916. private:
  2917. bool _internal_has_read_time() const;
  2918. public:
  2919. void clear_read_time();
  2920. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2921. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2922. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2923. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2924. private:
  2925. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  2926. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  2927. public:
  2928. void clear_query_type();
  2929. QueryTypeCase query_type_case() const;
  2930. void clear_consistency_selector();
  2931. ConsistencySelectorCase consistency_selector_case() const;
  2932. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunAggregationQueryRequest)
  2933. private:
  2934. class _Internal;
  2935. void set_has_structured_aggregation_query();
  2936. void set_has_transaction();
  2937. void set_has_new_transaction();
  2938. void set_has_read_time();
  2939. inline bool has_query_type() const;
  2940. inline void clear_has_query_type();
  2941. inline bool has_consistency_selector() const;
  2942. inline void clear_has_consistency_selector();
  2943. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2944. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  2945. union QueryTypeUnion {
  2946. QueryTypeUnion() {}
  2947. ::google::firestore::v1::StructuredAggregationQuery* structured_aggregation_query_;
  2948. } query_type_;
  2949. union ConsistencySelectorUnion {
  2950. ConsistencySelectorUnion() {}
  2951. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2952. ::google::firestore::v1::TransactionOptions* new_transaction_;
  2953. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2954. } consistency_selector_;
  2955. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2956. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  2957. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2958. };
  2959. // -------------------------------------------------------------------
  2960. class RunAggregationQueryResponse :
  2961. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunAggregationQueryResponse) */ {
  2962. public:
  2963. RunAggregationQueryResponse();
  2964. virtual ~RunAggregationQueryResponse();
  2965. RunAggregationQueryResponse(const RunAggregationQueryResponse& from);
  2966. RunAggregationQueryResponse(RunAggregationQueryResponse&& from) noexcept
  2967. : RunAggregationQueryResponse() {
  2968. *this = ::std::move(from);
  2969. }
  2970. inline RunAggregationQueryResponse& operator=(const RunAggregationQueryResponse& from) {
  2971. CopyFrom(from);
  2972. return *this;
  2973. }
  2974. inline RunAggregationQueryResponse& operator=(RunAggregationQueryResponse&& from) noexcept {
  2975. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2976. if (this != &from) InternalSwap(&from);
  2977. } else {
  2978. CopyFrom(from);
  2979. }
  2980. return *this;
  2981. }
  2982. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2983. return GetDescriptor();
  2984. }
  2985. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2986. return GetMetadataStatic().descriptor;
  2987. }
  2988. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2989. return GetMetadataStatic().reflection;
  2990. }
  2991. static const RunAggregationQueryResponse& default_instance();
  2992. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2993. static inline const RunAggregationQueryResponse* internal_default_instance() {
  2994. return reinterpret_cast<const RunAggregationQueryResponse*>(
  2995. &_RunAggregationQueryResponse_default_instance_);
  2996. }
  2997. static constexpr int kIndexInFileMessages =
  2998. 16;
  2999. friend void swap(RunAggregationQueryResponse& a, RunAggregationQueryResponse& b) {
  3000. a.Swap(&b);
  3001. }
  3002. inline void Swap(RunAggregationQueryResponse* other) {
  3003. if (other == this) return;
  3004. InternalSwap(other);
  3005. }
  3006. // implements Message ----------------------------------------------
  3007. inline RunAggregationQueryResponse* New() const final {
  3008. return CreateMaybeMessage<RunAggregationQueryResponse>(nullptr);
  3009. }
  3010. RunAggregationQueryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3011. return CreateMaybeMessage<RunAggregationQueryResponse>(arena);
  3012. }
  3013. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3014. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3015. void CopyFrom(const RunAggregationQueryResponse& from);
  3016. void MergeFrom(const RunAggregationQueryResponse& from);
  3017. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3018. bool IsInitialized() const final;
  3019. size_t ByteSizeLong() const final;
  3020. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3021. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3022. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3023. int GetCachedSize() const final { return _cached_size_.Get(); }
  3024. private:
  3025. inline void SharedCtor();
  3026. inline void SharedDtor();
  3027. void SetCachedSize(int size) const final;
  3028. void InternalSwap(RunAggregationQueryResponse* other);
  3029. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3030. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3031. return "google.firestore.v1.RunAggregationQueryResponse";
  3032. }
  3033. private:
  3034. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3035. return nullptr;
  3036. }
  3037. inline void* MaybeArenaPtr() const {
  3038. return nullptr;
  3039. }
  3040. public:
  3041. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3042. private:
  3043. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3044. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3045. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3046. }
  3047. public:
  3048. // nested types ----------------------------------------------------
  3049. // accessors -------------------------------------------------------
  3050. enum : int {
  3051. kTransactionFieldNumber = 2,
  3052. kResultFieldNumber = 1,
  3053. kReadTimeFieldNumber = 3,
  3054. };
  3055. // bytes transaction = 2;
  3056. void clear_transaction();
  3057. const std::string& transaction() const;
  3058. void set_transaction(const std::string& value);
  3059. void set_transaction(std::string&& value);
  3060. void set_transaction(const char* value);
  3061. void set_transaction(const void* value, size_t size);
  3062. std::string* mutable_transaction();
  3063. std::string* release_transaction();
  3064. void set_allocated_transaction(std::string* transaction);
  3065. private:
  3066. const std::string& _internal_transaction() const;
  3067. void _internal_set_transaction(const std::string& value);
  3068. std::string* _internal_mutable_transaction();
  3069. public:
  3070. // .google.firestore.v1.AggregationResult result = 1;
  3071. bool has_result() const;
  3072. private:
  3073. bool _internal_has_result() const;
  3074. public:
  3075. void clear_result();
  3076. const ::google::firestore::v1::AggregationResult& result() const;
  3077. ::google::firestore::v1::AggregationResult* release_result();
  3078. ::google::firestore::v1::AggregationResult* mutable_result();
  3079. void set_allocated_result(::google::firestore::v1::AggregationResult* result);
  3080. private:
  3081. const ::google::firestore::v1::AggregationResult& _internal_result() const;
  3082. ::google::firestore::v1::AggregationResult* _internal_mutable_result();
  3083. public:
  3084. // .google.protobuf.Timestamp read_time = 3;
  3085. bool has_read_time() const;
  3086. private:
  3087. bool _internal_has_read_time() const;
  3088. public:
  3089. void clear_read_time();
  3090. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  3091. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  3092. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  3093. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  3094. private:
  3095. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  3096. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  3097. public:
  3098. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunAggregationQueryResponse)
  3099. private:
  3100. class _Internal;
  3101. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3102. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  3103. ::google::firestore::v1::AggregationResult* result_;
  3104. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  3105. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3106. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3107. };
  3108. // -------------------------------------------------------------------
  3109. class WriteRequest_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
  3110. std::string, std::string,
  3111. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3112. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3113. 0 > {
  3114. public:
  3115. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
  3116. std::string, std::string,
  3117. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3118. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3119. 0 > SuperType;
  3120. WriteRequest_LabelsEntry_DoNotUse();
  3121. WriteRequest_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3122. void MergeFrom(const WriteRequest_LabelsEntry_DoNotUse& other);
  3123. static const WriteRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const WriteRequest_LabelsEntry_DoNotUse*>(&_WriteRequest_LabelsEntry_DoNotUse_default_instance_); }
  3124. static bool ValidateKey(std::string* s) {
  3125. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.WriteRequest.LabelsEntry.key");
  3126. }
  3127. static bool ValidateValue(std::string* s) {
  3128. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.WriteRequest.LabelsEntry.value");
  3129. }
  3130. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  3131. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3132. private:
  3133. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3134. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3135. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[17];
  3136. }
  3137. public:
  3138. };
  3139. // -------------------------------------------------------------------
  3140. class WriteRequest :
  3141. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteRequest) */ {
  3142. public:
  3143. WriteRequest();
  3144. virtual ~WriteRequest();
  3145. WriteRequest(const WriteRequest& from);
  3146. WriteRequest(WriteRequest&& from) noexcept
  3147. : WriteRequest() {
  3148. *this = ::std::move(from);
  3149. }
  3150. inline WriteRequest& operator=(const WriteRequest& from) {
  3151. CopyFrom(from);
  3152. return *this;
  3153. }
  3154. inline WriteRequest& operator=(WriteRequest&& from) noexcept {
  3155. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3156. if (this != &from) InternalSwap(&from);
  3157. } else {
  3158. CopyFrom(from);
  3159. }
  3160. return *this;
  3161. }
  3162. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3163. return GetDescriptor();
  3164. }
  3165. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3166. return GetMetadataStatic().descriptor;
  3167. }
  3168. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3169. return GetMetadataStatic().reflection;
  3170. }
  3171. static const WriteRequest& default_instance();
  3172. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3173. static inline const WriteRequest* internal_default_instance() {
  3174. return reinterpret_cast<const WriteRequest*>(
  3175. &_WriteRequest_default_instance_);
  3176. }
  3177. static constexpr int kIndexInFileMessages =
  3178. 18;
  3179. friend void swap(WriteRequest& a, WriteRequest& b) {
  3180. a.Swap(&b);
  3181. }
  3182. inline void Swap(WriteRequest* other) {
  3183. if (other == this) return;
  3184. InternalSwap(other);
  3185. }
  3186. // implements Message ----------------------------------------------
  3187. inline WriteRequest* New() const final {
  3188. return CreateMaybeMessage<WriteRequest>(nullptr);
  3189. }
  3190. WriteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3191. return CreateMaybeMessage<WriteRequest>(arena);
  3192. }
  3193. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3194. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3195. void CopyFrom(const WriteRequest& from);
  3196. void MergeFrom(const WriteRequest& from);
  3197. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3198. bool IsInitialized() const final;
  3199. size_t ByteSizeLong() const final;
  3200. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3201. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3202. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3203. int GetCachedSize() const final { return _cached_size_.Get(); }
  3204. private:
  3205. inline void SharedCtor();
  3206. inline void SharedDtor();
  3207. void SetCachedSize(int size) const final;
  3208. void InternalSwap(WriteRequest* other);
  3209. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3210. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3211. return "google.firestore.v1.WriteRequest";
  3212. }
  3213. private:
  3214. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3215. return nullptr;
  3216. }
  3217. inline void* MaybeArenaPtr() const {
  3218. return nullptr;
  3219. }
  3220. public:
  3221. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3222. private:
  3223. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3224. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3225. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3226. }
  3227. public:
  3228. // nested types ----------------------------------------------------
  3229. // accessors -------------------------------------------------------
  3230. enum : int {
  3231. kWritesFieldNumber = 3,
  3232. kLabelsFieldNumber = 5,
  3233. kDatabaseFieldNumber = 1,
  3234. kStreamIdFieldNumber = 2,
  3235. kStreamTokenFieldNumber = 4,
  3236. };
  3237. // repeated .google.firestore.v1.Write writes = 3;
  3238. int writes_size() const;
  3239. private:
  3240. int _internal_writes_size() const;
  3241. public:
  3242. void clear_writes();
  3243. ::google::firestore::v1::Write* mutable_writes(int index);
  3244. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  3245. mutable_writes();
  3246. private:
  3247. const ::google::firestore::v1::Write& _internal_writes(int index) const;
  3248. ::google::firestore::v1::Write* _internal_add_writes();
  3249. public:
  3250. const ::google::firestore::v1::Write& writes(int index) const;
  3251. ::google::firestore::v1::Write* add_writes();
  3252. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  3253. writes() const;
  3254. // map<string, string> labels = 5;
  3255. int labels_size() const;
  3256. private:
  3257. int _internal_labels_size() const;
  3258. public:
  3259. void clear_labels();
  3260. private:
  3261. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3262. _internal_labels() const;
  3263. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3264. _internal_mutable_labels();
  3265. public:
  3266. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3267. labels() const;
  3268. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3269. mutable_labels();
  3270. // string database = 1;
  3271. void clear_database();
  3272. const std::string& database() const;
  3273. void set_database(const std::string& value);
  3274. void set_database(std::string&& value);
  3275. void set_database(const char* value);
  3276. void set_database(const char* value, size_t size);
  3277. std::string* mutable_database();
  3278. std::string* release_database();
  3279. void set_allocated_database(std::string* database);
  3280. private:
  3281. const std::string& _internal_database() const;
  3282. void _internal_set_database(const std::string& value);
  3283. std::string* _internal_mutable_database();
  3284. public:
  3285. // string stream_id = 2;
  3286. void clear_stream_id();
  3287. const std::string& stream_id() const;
  3288. void set_stream_id(const std::string& value);
  3289. void set_stream_id(std::string&& value);
  3290. void set_stream_id(const char* value);
  3291. void set_stream_id(const char* value, size_t size);
  3292. std::string* mutable_stream_id();
  3293. std::string* release_stream_id();
  3294. void set_allocated_stream_id(std::string* stream_id);
  3295. private:
  3296. const std::string& _internal_stream_id() const;
  3297. void _internal_set_stream_id(const std::string& value);
  3298. std::string* _internal_mutable_stream_id();
  3299. public:
  3300. // bytes stream_token = 4;
  3301. void clear_stream_token();
  3302. const std::string& stream_token() const;
  3303. void set_stream_token(const std::string& value);
  3304. void set_stream_token(std::string&& value);
  3305. void set_stream_token(const char* value);
  3306. void set_stream_token(const void* value, size_t size);
  3307. std::string* mutable_stream_token();
  3308. std::string* release_stream_token();
  3309. void set_allocated_stream_token(std::string* stream_token);
  3310. private:
  3311. const std::string& _internal_stream_token() const;
  3312. void _internal_set_stream_token(const std::string& value);
  3313. std::string* _internal_mutable_stream_token();
  3314. public:
  3315. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteRequest)
  3316. private:
  3317. class _Internal;
  3318. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3319. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  3320. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  3321. WriteRequest_LabelsEntry_DoNotUse,
  3322. std::string, std::string,
  3323. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3324. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3325. 0 > labels_;
  3326. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  3327. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_id_;
  3328. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_token_;
  3329. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3330. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3331. };
  3332. // -------------------------------------------------------------------
  3333. class WriteResponse :
  3334. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteResponse) */ {
  3335. public:
  3336. WriteResponse();
  3337. virtual ~WriteResponse();
  3338. WriteResponse(const WriteResponse& from);
  3339. WriteResponse(WriteResponse&& from) noexcept
  3340. : WriteResponse() {
  3341. *this = ::std::move(from);
  3342. }
  3343. inline WriteResponse& operator=(const WriteResponse& from) {
  3344. CopyFrom(from);
  3345. return *this;
  3346. }
  3347. inline WriteResponse& operator=(WriteResponse&& from) noexcept {
  3348. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3349. if (this != &from) InternalSwap(&from);
  3350. } else {
  3351. CopyFrom(from);
  3352. }
  3353. return *this;
  3354. }
  3355. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3356. return GetDescriptor();
  3357. }
  3358. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3359. return GetMetadataStatic().descriptor;
  3360. }
  3361. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3362. return GetMetadataStatic().reflection;
  3363. }
  3364. static const WriteResponse& default_instance();
  3365. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3366. static inline const WriteResponse* internal_default_instance() {
  3367. return reinterpret_cast<const WriteResponse*>(
  3368. &_WriteResponse_default_instance_);
  3369. }
  3370. static constexpr int kIndexInFileMessages =
  3371. 19;
  3372. friend void swap(WriteResponse& a, WriteResponse& b) {
  3373. a.Swap(&b);
  3374. }
  3375. inline void Swap(WriteResponse* other) {
  3376. if (other == this) return;
  3377. InternalSwap(other);
  3378. }
  3379. // implements Message ----------------------------------------------
  3380. inline WriteResponse* New() const final {
  3381. return CreateMaybeMessage<WriteResponse>(nullptr);
  3382. }
  3383. WriteResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3384. return CreateMaybeMessage<WriteResponse>(arena);
  3385. }
  3386. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3387. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3388. void CopyFrom(const WriteResponse& from);
  3389. void MergeFrom(const WriteResponse& from);
  3390. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3391. bool IsInitialized() const final;
  3392. size_t ByteSizeLong() const final;
  3393. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3394. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3395. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3396. int GetCachedSize() const final { return _cached_size_.Get(); }
  3397. private:
  3398. inline void SharedCtor();
  3399. inline void SharedDtor();
  3400. void SetCachedSize(int size) const final;
  3401. void InternalSwap(WriteResponse* other);
  3402. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3403. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3404. return "google.firestore.v1.WriteResponse";
  3405. }
  3406. private:
  3407. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3408. return nullptr;
  3409. }
  3410. inline void* MaybeArenaPtr() const {
  3411. return nullptr;
  3412. }
  3413. public:
  3414. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3415. private:
  3416. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3417. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3418. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3419. }
  3420. public:
  3421. // nested types ----------------------------------------------------
  3422. // accessors -------------------------------------------------------
  3423. enum : int {
  3424. kWriteResultsFieldNumber = 3,
  3425. kStreamIdFieldNumber = 1,
  3426. kStreamTokenFieldNumber = 2,
  3427. kCommitTimeFieldNumber = 4,
  3428. };
  3429. // repeated .google.firestore.v1.WriteResult write_results = 3;
  3430. int write_results_size() const;
  3431. private:
  3432. int _internal_write_results_size() const;
  3433. public:
  3434. void clear_write_results();
  3435. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  3436. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  3437. mutable_write_results();
  3438. private:
  3439. const ::google::firestore::v1::WriteResult& _internal_write_results(int index) const;
  3440. ::google::firestore::v1::WriteResult* _internal_add_write_results();
  3441. public:
  3442. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  3443. ::google::firestore::v1::WriteResult* add_write_results();
  3444. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  3445. write_results() const;
  3446. // string stream_id = 1;
  3447. void clear_stream_id();
  3448. const std::string& stream_id() const;
  3449. void set_stream_id(const std::string& value);
  3450. void set_stream_id(std::string&& value);
  3451. void set_stream_id(const char* value);
  3452. void set_stream_id(const char* value, size_t size);
  3453. std::string* mutable_stream_id();
  3454. std::string* release_stream_id();
  3455. void set_allocated_stream_id(std::string* stream_id);
  3456. private:
  3457. const std::string& _internal_stream_id() const;
  3458. void _internal_set_stream_id(const std::string& value);
  3459. std::string* _internal_mutable_stream_id();
  3460. public:
  3461. // bytes stream_token = 2;
  3462. void clear_stream_token();
  3463. const std::string& stream_token() const;
  3464. void set_stream_token(const std::string& value);
  3465. void set_stream_token(std::string&& value);
  3466. void set_stream_token(const char* value);
  3467. void set_stream_token(const void* value, size_t size);
  3468. std::string* mutable_stream_token();
  3469. std::string* release_stream_token();
  3470. void set_allocated_stream_token(std::string* stream_token);
  3471. private:
  3472. const std::string& _internal_stream_token() const;
  3473. void _internal_set_stream_token(const std::string& value);
  3474. std::string* _internal_mutable_stream_token();
  3475. public:
  3476. // .google.protobuf.Timestamp commit_time = 4;
  3477. bool has_commit_time() const;
  3478. private:
  3479. bool _internal_has_commit_time() const;
  3480. public:
  3481. void clear_commit_time();
  3482. const PROTOBUF_NAMESPACE_ID::Timestamp& commit_time() const;
  3483. PROTOBUF_NAMESPACE_ID::Timestamp* release_commit_time();
  3484. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_commit_time();
  3485. void set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time);
  3486. private:
  3487. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_commit_time() const;
  3488. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_commit_time();
  3489. public:
  3490. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteResponse)
  3491. private:
  3492. class _Internal;
  3493. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3494. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  3495. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_id_;
  3496. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_token_;
  3497. PROTOBUF_NAMESPACE_ID::Timestamp* commit_time_;
  3498. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3499. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3500. };
  3501. // -------------------------------------------------------------------
  3502. class ListenRequest_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
  3503. std::string, std::string,
  3504. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3505. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3506. 0 > {
  3507. public:
  3508. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
  3509. std::string, std::string,
  3510. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3511. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3512. 0 > SuperType;
  3513. ListenRequest_LabelsEntry_DoNotUse();
  3514. ListenRequest_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3515. void MergeFrom(const ListenRequest_LabelsEntry_DoNotUse& other);
  3516. static const ListenRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const ListenRequest_LabelsEntry_DoNotUse*>(&_ListenRequest_LabelsEntry_DoNotUse_default_instance_); }
  3517. static bool ValidateKey(std::string* s) {
  3518. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.ListenRequest.LabelsEntry.key");
  3519. }
  3520. static bool ValidateValue(std::string* s) {
  3521. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.ListenRequest.LabelsEntry.value");
  3522. }
  3523. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  3524. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3525. private:
  3526. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3527. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3528. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[20];
  3529. }
  3530. public:
  3531. };
  3532. // -------------------------------------------------------------------
  3533. class ListenRequest :
  3534. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenRequest) */ {
  3535. public:
  3536. ListenRequest();
  3537. virtual ~ListenRequest();
  3538. ListenRequest(const ListenRequest& from);
  3539. ListenRequest(ListenRequest&& from) noexcept
  3540. : ListenRequest() {
  3541. *this = ::std::move(from);
  3542. }
  3543. inline ListenRequest& operator=(const ListenRequest& from) {
  3544. CopyFrom(from);
  3545. return *this;
  3546. }
  3547. inline ListenRequest& operator=(ListenRequest&& from) noexcept {
  3548. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3549. if (this != &from) InternalSwap(&from);
  3550. } else {
  3551. CopyFrom(from);
  3552. }
  3553. return *this;
  3554. }
  3555. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3556. return GetDescriptor();
  3557. }
  3558. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3559. return GetMetadataStatic().descriptor;
  3560. }
  3561. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3562. return GetMetadataStatic().reflection;
  3563. }
  3564. static const ListenRequest& default_instance();
  3565. enum TargetChangeCase {
  3566. kAddTarget = 2,
  3567. kRemoveTarget = 3,
  3568. TARGET_CHANGE_NOT_SET = 0,
  3569. };
  3570. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3571. static inline const ListenRequest* internal_default_instance() {
  3572. return reinterpret_cast<const ListenRequest*>(
  3573. &_ListenRequest_default_instance_);
  3574. }
  3575. static constexpr int kIndexInFileMessages =
  3576. 21;
  3577. friend void swap(ListenRequest& a, ListenRequest& b) {
  3578. a.Swap(&b);
  3579. }
  3580. inline void Swap(ListenRequest* other) {
  3581. if (other == this) return;
  3582. InternalSwap(other);
  3583. }
  3584. // implements Message ----------------------------------------------
  3585. inline ListenRequest* New() const final {
  3586. return CreateMaybeMessage<ListenRequest>(nullptr);
  3587. }
  3588. ListenRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3589. return CreateMaybeMessage<ListenRequest>(arena);
  3590. }
  3591. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3592. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3593. void CopyFrom(const ListenRequest& from);
  3594. void MergeFrom(const ListenRequest& from);
  3595. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3596. bool IsInitialized() const final;
  3597. size_t ByteSizeLong() const final;
  3598. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3599. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3600. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3601. int GetCachedSize() const final { return _cached_size_.Get(); }
  3602. private:
  3603. inline void SharedCtor();
  3604. inline void SharedDtor();
  3605. void SetCachedSize(int size) const final;
  3606. void InternalSwap(ListenRequest* other);
  3607. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3608. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3609. return "google.firestore.v1.ListenRequest";
  3610. }
  3611. private:
  3612. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3613. return nullptr;
  3614. }
  3615. inline void* MaybeArenaPtr() const {
  3616. return nullptr;
  3617. }
  3618. public:
  3619. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3620. private:
  3621. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3622. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3623. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3624. }
  3625. public:
  3626. // nested types ----------------------------------------------------
  3627. // accessors -------------------------------------------------------
  3628. enum : int {
  3629. kLabelsFieldNumber = 4,
  3630. kDatabaseFieldNumber = 1,
  3631. kAddTargetFieldNumber = 2,
  3632. kRemoveTargetFieldNumber = 3,
  3633. };
  3634. // map<string, string> labels = 4;
  3635. int labels_size() const;
  3636. private:
  3637. int _internal_labels_size() const;
  3638. public:
  3639. void clear_labels();
  3640. private:
  3641. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3642. _internal_labels() const;
  3643. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3644. _internal_mutable_labels();
  3645. public:
  3646. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3647. labels() const;
  3648. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3649. mutable_labels();
  3650. // string database = 1;
  3651. void clear_database();
  3652. const std::string& database() const;
  3653. void set_database(const std::string& value);
  3654. void set_database(std::string&& value);
  3655. void set_database(const char* value);
  3656. void set_database(const char* value, size_t size);
  3657. std::string* mutable_database();
  3658. std::string* release_database();
  3659. void set_allocated_database(std::string* database);
  3660. private:
  3661. const std::string& _internal_database() const;
  3662. void _internal_set_database(const std::string& value);
  3663. std::string* _internal_mutable_database();
  3664. public:
  3665. // .google.firestore.v1.Target add_target = 2;
  3666. bool has_add_target() const;
  3667. private:
  3668. bool _internal_has_add_target() const;
  3669. public:
  3670. void clear_add_target();
  3671. const ::google::firestore::v1::Target& add_target() const;
  3672. ::google::firestore::v1::Target* release_add_target();
  3673. ::google::firestore::v1::Target* mutable_add_target();
  3674. void set_allocated_add_target(::google::firestore::v1::Target* add_target);
  3675. private:
  3676. const ::google::firestore::v1::Target& _internal_add_target() const;
  3677. ::google::firestore::v1::Target* _internal_mutable_add_target();
  3678. public:
  3679. // int32 remove_target = 3;
  3680. private:
  3681. bool _internal_has_remove_target() const;
  3682. public:
  3683. void clear_remove_target();
  3684. ::PROTOBUF_NAMESPACE_ID::int32 remove_target() const;
  3685. void set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value);
  3686. private:
  3687. ::PROTOBUF_NAMESPACE_ID::int32 _internal_remove_target() const;
  3688. void _internal_set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value);
  3689. public:
  3690. void clear_target_change();
  3691. TargetChangeCase target_change_case() const;
  3692. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenRequest)
  3693. private:
  3694. class _Internal;
  3695. void set_has_add_target();
  3696. void set_has_remove_target();
  3697. inline bool has_target_change() const;
  3698. inline void clear_has_target_change();
  3699. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3700. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  3701. ListenRequest_LabelsEntry_DoNotUse,
  3702. std::string, std::string,
  3703. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3704. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3705. 0 > labels_;
  3706. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  3707. union TargetChangeUnion {
  3708. TargetChangeUnion() {}
  3709. ::google::firestore::v1::Target* add_target_;
  3710. ::PROTOBUF_NAMESPACE_ID::int32 remove_target_;
  3711. } target_change_;
  3712. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3713. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3714. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3715. };
  3716. // -------------------------------------------------------------------
  3717. class ListenResponse :
  3718. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenResponse) */ {
  3719. public:
  3720. ListenResponse();
  3721. virtual ~ListenResponse();
  3722. ListenResponse(const ListenResponse& from);
  3723. ListenResponse(ListenResponse&& from) noexcept
  3724. : ListenResponse() {
  3725. *this = ::std::move(from);
  3726. }
  3727. inline ListenResponse& operator=(const ListenResponse& from) {
  3728. CopyFrom(from);
  3729. return *this;
  3730. }
  3731. inline ListenResponse& operator=(ListenResponse&& from) noexcept {
  3732. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3733. if (this != &from) InternalSwap(&from);
  3734. } else {
  3735. CopyFrom(from);
  3736. }
  3737. return *this;
  3738. }
  3739. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3740. return GetDescriptor();
  3741. }
  3742. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3743. return GetMetadataStatic().descriptor;
  3744. }
  3745. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3746. return GetMetadataStatic().reflection;
  3747. }
  3748. static const ListenResponse& default_instance();
  3749. enum ResponseTypeCase {
  3750. kTargetChange = 2,
  3751. kDocumentChange = 3,
  3752. kDocumentDelete = 4,
  3753. kDocumentRemove = 6,
  3754. kFilter = 5,
  3755. RESPONSE_TYPE_NOT_SET = 0,
  3756. };
  3757. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3758. static inline const ListenResponse* internal_default_instance() {
  3759. return reinterpret_cast<const ListenResponse*>(
  3760. &_ListenResponse_default_instance_);
  3761. }
  3762. static constexpr int kIndexInFileMessages =
  3763. 22;
  3764. friend void swap(ListenResponse& a, ListenResponse& b) {
  3765. a.Swap(&b);
  3766. }
  3767. inline void Swap(ListenResponse* other) {
  3768. if (other == this) return;
  3769. InternalSwap(other);
  3770. }
  3771. // implements Message ----------------------------------------------
  3772. inline ListenResponse* New() const final {
  3773. return CreateMaybeMessage<ListenResponse>(nullptr);
  3774. }
  3775. ListenResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3776. return CreateMaybeMessage<ListenResponse>(arena);
  3777. }
  3778. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3779. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3780. void CopyFrom(const ListenResponse& from);
  3781. void MergeFrom(const ListenResponse& from);
  3782. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3783. bool IsInitialized() const final;
  3784. size_t ByteSizeLong() const final;
  3785. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3786. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3787. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3788. int GetCachedSize() const final { return _cached_size_.Get(); }
  3789. private:
  3790. inline void SharedCtor();
  3791. inline void SharedDtor();
  3792. void SetCachedSize(int size) const final;
  3793. void InternalSwap(ListenResponse* other);
  3794. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3795. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3796. return "google.firestore.v1.ListenResponse";
  3797. }
  3798. private:
  3799. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3800. return nullptr;
  3801. }
  3802. inline void* MaybeArenaPtr() const {
  3803. return nullptr;
  3804. }
  3805. public:
  3806. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3807. private:
  3808. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3809. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3810. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3811. }
  3812. public:
  3813. // nested types ----------------------------------------------------
  3814. // accessors -------------------------------------------------------
  3815. enum : int {
  3816. kTargetChangeFieldNumber = 2,
  3817. kDocumentChangeFieldNumber = 3,
  3818. kDocumentDeleteFieldNumber = 4,
  3819. kDocumentRemoveFieldNumber = 6,
  3820. kFilterFieldNumber = 5,
  3821. };
  3822. // .google.firestore.v1.TargetChange target_change = 2;
  3823. bool has_target_change() const;
  3824. private:
  3825. bool _internal_has_target_change() const;
  3826. public:
  3827. void clear_target_change();
  3828. const ::google::firestore::v1::TargetChange& target_change() const;
  3829. ::google::firestore::v1::TargetChange* release_target_change();
  3830. ::google::firestore::v1::TargetChange* mutable_target_change();
  3831. void set_allocated_target_change(::google::firestore::v1::TargetChange* target_change);
  3832. private:
  3833. const ::google::firestore::v1::TargetChange& _internal_target_change() const;
  3834. ::google::firestore::v1::TargetChange* _internal_mutable_target_change();
  3835. public:
  3836. // .google.firestore.v1.DocumentChange document_change = 3;
  3837. bool has_document_change() const;
  3838. private:
  3839. bool _internal_has_document_change() const;
  3840. public:
  3841. void clear_document_change();
  3842. const ::google::firestore::v1::DocumentChange& document_change() const;
  3843. ::google::firestore::v1::DocumentChange* release_document_change();
  3844. ::google::firestore::v1::DocumentChange* mutable_document_change();
  3845. void set_allocated_document_change(::google::firestore::v1::DocumentChange* document_change);
  3846. private:
  3847. const ::google::firestore::v1::DocumentChange& _internal_document_change() const;
  3848. ::google::firestore::v1::DocumentChange* _internal_mutable_document_change();
  3849. public:
  3850. // .google.firestore.v1.DocumentDelete document_delete = 4;
  3851. bool has_document_delete() const;
  3852. private:
  3853. bool _internal_has_document_delete() const;
  3854. public:
  3855. void clear_document_delete();
  3856. const ::google::firestore::v1::DocumentDelete& document_delete() const;
  3857. ::google::firestore::v1::DocumentDelete* release_document_delete();
  3858. ::google::firestore::v1::DocumentDelete* mutable_document_delete();
  3859. void set_allocated_document_delete(::google::firestore::v1::DocumentDelete* document_delete);
  3860. private:
  3861. const ::google::firestore::v1::DocumentDelete& _internal_document_delete() const;
  3862. ::google::firestore::v1::DocumentDelete* _internal_mutable_document_delete();
  3863. public:
  3864. // .google.firestore.v1.DocumentRemove document_remove = 6;
  3865. bool has_document_remove() const;
  3866. private:
  3867. bool _internal_has_document_remove() const;
  3868. public:
  3869. void clear_document_remove();
  3870. const ::google::firestore::v1::DocumentRemove& document_remove() const;
  3871. ::google::firestore::v1::DocumentRemove* release_document_remove();
  3872. ::google::firestore::v1::DocumentRemove* mutable_document_remove();
  3873. void set_allocated_document_remove(::google::firestore::v1::DocumentRemove* document_remove);
  3874. private:
  3875. const ::google::firestore::v1::DocumentRemove& _internal_document_remove() const;
  3876. ::google::firestore::v1::DocumentRemove* _internal_mutable_document_remove();
  3877. public:
  3878. // .google.firestore.v1.ExistenceFilter filter = 5;
  3879. bool has_filter() const;
  3880. private:
  3881. bool _internal_has_filter() const;
  3882. public:
  3883. void clear_filter();
  3884. const ::google::firestore::v1::ExistenceFilter& filter() const;
  3885. ::google::firestore::v1::ExistenceFilter* release_filter();
  3886. ::google::firestore::v1::ExistenceFilter* mutable_filter();
  3887. void set_allocated_filter(::google::firestore::v1::ExistenceFilter* filter);
  3888. private:
  3889. const ::google::firestore::v1::ExistenceFilter& _internal_filter() const;
  3890. ::google::firestore::v1::ExistenceFilter* _internal_mutable_filter();
  3891. public:
  3892. void clear_response_type();
  3893. ResponseTypeCase response_type_case() const;
  3894. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenResponse)
  3895. private:
  3896. class _Internal;
  3897. void set_has_target_change();
  3898. void set_has_document_change();
  3899. void set_has_document_delete();
  3900. void set_has_document_remove();
  3901. void set_has_filter();
  3902. inline bool has_response_type() const;
  3903. inline void clear_has_response_type();
  3904. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3905. union ResponseTypeUnion {
  3906. ResponseTypeUnion() {}
  3907. ::google::firestore::v1::TargetChange* target_change_;
  3908. ::google::firestore::v1::DocumentChange* document_change_;
  3909. ::google::firestore::v1::DocumentDelete* document_delete_;
  3910. ::google::firestore::v1::DocumentRemove* document_remove_;
  3911. ::google::firestore::v1::ExistenceFilter* filter_;
  3912. } response_type_;
  3913. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3914. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3915. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3916. };
  3917. // -------------------------------------------------------------------
  3918. class Target_DocumentsTarget :
  3919. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.DocumentsTarget) */ {
  3920. public:
  3921. Target_DocumentsTarget();
  3922. virtual ~Target_DocumentsTarget();
  3923. Target_DocumentsTarget(const Target_DocumentsTarget& from);
  3924. Target_DocumentsTarget(Target_DocumentsTarget&& from) noexcept
  3925. : Target_DocumentsTarget() {
  3926. *this = ::std::move(from);
  3927. }
  3928. inline Target_DocumentsTarget& operator=(const Target_DocumentsTarget& from) {
  3929. CopyFrom(from);
  3930. return *this;
  3931. }
  3932. inline Target_DocumentsTarget& operator=(Target_DocumentsTarget&& from) noexcept {
  3933. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3934. if (this != &from) InternalSwap(&from);
  3935. } else {
  3936. CopyFrom(from);
  3937. }
  3938. return *this;
  3939. }
  3940. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3941. return GetDescriptor();
  3942. }
  3943. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3944. return GetMetadataStatic().descriptor;
  3945. }
  3946. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3947. return GetMetadataStatic().reflection;
  3948. }
  3949. static const Target_DocumentsTarget& default_instance();
  3950. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3951. static inline const Target_DocumentsTarget* internal_default_instance() {
  3952. return reinterpret_cast<const Target_DocumentsTarget*>(
  3953. &_Target_DocumentsTarget_default_instance_);
  3954. }
  3955. static constexpr int kIndexInFileMessages =
  3956. 23;
  3957. friend void swap(Target_DocumentsTarget& a, Target_DocumentsTarget& b) {
  3958. a.Swap(&b);
  3959. }
  3960. inline void Swap(Target_DocumentsTarget* other) {
  3961. if (other == this) return;
  3962. InternalSwap(other);
  3963. }
  3964. // implements Message ----------------------------------------------
  3965. inline Target_DocumentsTarget* New() const final {
  3966. return CreateMaybeMessage<Target_DocumentsTarget>(nullptr);
  3967. }
  3968. Target_DocumentsTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3969. return CreateMaybeMessage<Target_DocumentsTarget>(arena);
  3970. }
  3971. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3972. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3973. void CopyFrom(const Target_DocumentsTarget& from);
  3974. void MergeFrom(const Target_DocumentsTarget& from);
  3975. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3976. bool IsInitialized() const final;
  3977. size_t ByteSizeLong() const final;
  3978. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3979. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3980. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3981. int GetCachedSize() const final { return _cached_size_.Get(); }
  3982. private:
  3983. inline void SharedCtor();
  3984. inline void SharedDtor();
  3985. void SetCachedSize(int size) const final;
  3986. void InternalSwap(Target_DocumentsTarget* other);
  3987. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3988. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3989. return "google.firestore.v1.Target.DocumentsTarget";
  3990. }
  3991. private:
  3992. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3993. return nullptr;
  3994. }
  3995. inline void* MaybeArenaPtr() const {
  3996. return nullptr;
  3997. }
  3998. public:
  3999. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4000. private:
  4001. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4002. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4003. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4004. }
  4005. public:
  4006. // nested types ----------------------------------------------------
  4007. // accessors -------------------------------------------------------
  4008. enum : int {
  4009. kDocumentsFieldNumber = 2,
  4010. };
  4011. // repeated string documents = 2;
  4012. int documents_size() const;
  4013. private:
  4014. int _internal_documents_size() const;
  4015. public:
  4016. void clear_documents();
  4017. const std::string& documents(int index) const;
  4018. std::string* mutable_documents(int index);
  4019. void set_documents(int index, const std::string& value);
  4020. void set_documents(int index, std::string&& value);
  4021. void set_documents(int index, const char* value);
  4022. void set_documents(int index, const char* value, size_t size);
  4023. std::string* add_documents();
  4024. void add_documents(const std::string& value);
  4025. void add_documents(std::string&& value);
  4026. void add_documents(const char* value);
  4027. void add_documents(const char* value, size_t size);
  4028. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& documents() const;
  4029. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_documents();
  4030. private:
  4031. const std::string& _internal_documents(int index) const;
  4032. std::string* _internal_add_documents();
  4033. public:
  4034. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.DocumentsTarget)
  4035. private:
  4036. class _Internal;
  4037. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4038. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> documents_;
  4039. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4040. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4041. };
  4042. // -------------------------------------------------------------------
  4043. class Target_QueryTarget :
  4044. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.QueryTarget) */ {
  4045. public:
  4046. Target_QueryTarget();
  4047. virtual ~Target_QueryTarget();
  4048. Target_QueryTarget(const Target_QueryTarget& from);
  4049. Target_QueryTarget(Target_QueryTarget&& from) noexcept
  4050. : Target_QueryTarget() {
  4051. *this = ::std::move(from);
  4052. }
  4053. inline Target_QueryTarget& operator=(const Target_QueryTarget& from) {
  4054. CopyFrom(from);
  4055. return *this;
  4056. }
  4057. inline Target_QueryTarget& operator=(Target_QueryTarget&& from) noexcept {
  4058. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4059. if (this != &from) InternalSwap(&from);
  4060. } else {
  4061. CopyFrom(from);
  4062. }
  4063. return *this;
  4064. }
  4065. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4066. return GetDescriptor();
  4067. }
  4068. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4069. return GetMetadataStatic().descriptor;
  4070. }
  4071. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4072. return GetMetadataStatic().reflection;
  4073. }
  4074. static const Target_QueryTarget& default_instance();
  4075. enum QueryTypeCase {
  4076. kStructuredQuery = 2,
  4077. QUERY_TYPE_NOT_SET = 0,
  4078. };
  4079. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4080. static inline const Target_QueryTarget* internal_default_instance() {
  4081. return reinterpret_cast<const Target_QueryTarget*>(
  4082. &_Target_QueryTarget_default_instance_);
  4083. }
  4084. static constexpr int kIndexInFileMessages =
  4085. 24;
  4086. friend void swap(Target_QueryTarget& a, Target_QueryTarget& b) {
  4087. a.Swap(&b);
  4088. }
  4089. inline void Swap(Target_QueryTarget* other) {
  4090. if (other == this) return;
  4091. InternalSwap(other);
  4092. }
  4093. // implements Message ----------------------------------------------
  4094. inline Target_QueryTarget* New() const final {
  4095. return CreateMaybeMessage<Target_QueryTarget>(nullptr);
  4096. }
  4097. Target_QueryTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4098. return CreateMaybeMessage<Target_QueryTarget>(arena);
  4099. }
  4100. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4101. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4102. void CopyFrom(const Target_QueryTarget& from);
  4103. void MergeFrom(const Target_QueryTarget& from);
  4104. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4105. bool IsInitialized() const final;
  4106. size_t ByteSizeLong() const final;
  4107. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4108. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4109. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4110. int GetCachedSize() const final { return _cached_size_.Get(); }
  4111. private:
  4112. inline void SharedCtor();
  4113. inline void SharedDtor();
  4114. void SetCachedSize(int size) const final;
  4115. void InternalSwap(Target_QueryTarget* other);
  4116. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4117. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4118. return "google.firestore.v1.Target.QueryTarget";
  4119. }
  4120. private:
  4121. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4122. return nullptr;
  4123. }
  4124. inline void* MaybeArenaPtr() const {
  4125. return nullptr;
  4126. }
  4127. public:
  4128. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4129. private:
  4130. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4131. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4132. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4133. }
  4134. public:
  4135. // nested types ----------------------------------------------------
  4136. // accessors -------------------------------------------------------
  4137. enum : int {
  4138. kParentFieldNumber = 1,
  4139. kStructuredQueryFieldNumber = 2,
  4140. };
  4141. // string parent = 1;
  4142. void clear_parent();
  4143. const std::string& parent() const;
  4144. void set_parent(const std::string& value);
  4145. void set_parent(std::string&& value);
  4146. void set_parent(const char* value);
  4147. void set_parent(const char* value, size_t size);
  4148. std::string* mutable_parent();
  4149. std::string* release_parent();
  4150. void set_allocated_parent(std::string* parent);
  4151. private:
  4152. const std::string& _internal_parent() const;
  4153. void _internal_set_parent(const std::string& value);
  4154. std::string* _internal_mutable_parent();
  4155. public:
  4156. // .google.firestore.v1.StructuredQuery structured_query = 2;
  4157. bool has_structured_query() const;
  4158. private:
  4159. bool _internal_has_structured_query() const;
  4160. public:
  4161. void clear_structured_query();
  4162. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  4163. ::google::firestore::v1::StructuredQuery* release_structured_query();
  4164. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  4165. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  4166. private:
  4167. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  4168. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  4169. public:
  4170. void clear_query_type();
  4171. QueryTypeCase query_type_case() const;
  4172. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.QueryTarget)
  4173. private:
  4174. class _Internal;
  4175. void set_has_structured_query();
  4176. inline bool has_query_type() const;
  4177. inline void clear_has_query_type();
  4178. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4179. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  4180. union QueryTypeUnion {
  4181. QueryTypeUnion() {}
  4182. ::google::firestore::v1::StructuredQuery* structured_query_;
  4183. } query_type_;
  4184. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4185. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  4186. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4187. };
  4188. // -------------------------------------------------------------------
  4189. class Target :
  4190. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target) */ {
  4191. public:
  4192. Target();
  4193. virtual ~Target();
  4194. Target(const Target& from);
  4195. Target(Target&& from) noexcept
  4196. : Target() {
  4197. *this = ::std::move(from);
  4198. }
  4199. inline Target& operator=(const Target& from) {
  4200. CopyFrom(from);
  4201. return *this;
  4202. }
  4203. inline Target& operator=(Target&& from) noexcept {
  4204. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4205. if (this != &from) InternalSwap(&from);
  4206. } else {
  4207. CopyFrom(from);
  4208. }
  4209. return *this;
  4210. }
  4211. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4212. return GetDescriptor();
  4213. }
  4214. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4215. return GetMetadataStatic().descriptor;
  4216. }
  4217. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4218. return GetMetadataStatic().reflection;
  4219. }
  4220. static const Target& default_instance();
  4221. enum TargetTypeCase {
  4222. kQuery = 2,
  4223. kDocuments = 3,
  4224. TARGET_TYPE_NOT_SET = 0,
  4225. };
  4226. enum ResumeTypeCase {
  4227. kResumeToken = 4,
  4228. kReadTime = 11,
  4229. RESUME_TYPE_NOT_SET = 0,
  4230. };
  4231. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4232. static inline const Target* internal_default_instance() {
  4233. return reinterpret_cast<const Target*>(
  4234. &_Target_default_instance_);
  4235. }
  4236. static constexpr int kIndexInFileMessages =
  4237. 25;
  4238. friend void swap(Target& a, Target& b) {
  4239. a.Swap(&b);
  4240. }
  4241. inline void Swap(Target* other) {
  4242. if (other == this) return;
  4243. InternalSwap(other);
  4244. }
  4245. // implements Message ----------------------------------------------
  4246. inline Target* New() const final {
  4247. return CreateMaybeMessage<Target>(nullptr);
  4248. }
  4249. Target* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4250. return CreateMaybeMessage<Target>(arena);
  4251. }
  4252. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4253. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4254. void CopyFrom(const Target& from);
  4255. void MergeFrom(const Target& from);
  4256. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4257. bool IsInitialized() const final;
  4258. size_t ByteSizeLong() const final;
  4259. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4260. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4261. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4262. int GetCachedSize() const final { return _cached_size_.Get(); }
  4263. private:
  4264. inline void SharedCtor();
  4265. inline void SharedDtor();
  4266. void SetCachedSize(int size) const final;
  4267. void InternalSwap(Target* other);
  4268. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4269. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4270. return "google.firestore.v1.Target";
  4271. }
  4272. private:
  4273. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4274. return nullptr;
  4275. }
  4276. inline void* MaybeArenaPtr() const {
  4277. return nullptr;
  4278. }
  4279. public:
  4280. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4281. private:
  4282. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4283. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4284. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4285. }
  4286. public:
  4287. // nested types ----------------------------------------------------
  4288. typedef Target_DocumentsTarget DocumentsTarget;
  4289. typedef Target_QueryTarget QueryTarget;
  4290. // accessors -------------------------------------------------------
  4291. enum : int {
  4292. kTargetIdFieldNumber = 5,
  4293. kOnceFieldNumber = 6,
  4294. kQueryFieldNumber = 2,
  4295. kDocumentsFieldNumber = 3,
  4296. kResumeTokenFieldNumber = 4,
  4297. kReadTimeFieldNumber = 11,
  4298. };
  4299. // int32 target_id = 5;
  4300. void clear_target_id();
  4301. ::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
  4302. void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  4303. private:
  4304. ::PROTOBUF_NAMESPACE_ID::int32 _internal_target_id() const;
  4305. void _internal_set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  4306. public:
  4307. // bool once = 6;
  4308. void clear_once();
  4309. bool once() const;
  4310. void set_once(bool value);
  4311. private:
  4312. bool _internal_once() const;
  4313. void _internal_set_once(bool value);
  4314. public:
  4315. // .google.firestore.v1.Target.QueryTarget query = 2;
  4316. bool has_query() const;
  4317. private:
  4318. bool _internal_has_query() const;
  4319. public:
  4320. void clear_query();
  4321. const ::google::firestore::v1::Target_QueryTarget& query() const;
  4322. ::google::firestore::v1::Target_QueryTarget* release_query();
  4323. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  4324. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* query);
  4325. private:
  4326. const ::google::firestore::v1::Target_QueryTarget& _internal_query() const;
  4327. ::google::firestore::v1::Target_QueryTarget* _internal_mutable_query();
  4328. public:
  4329. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  4330. bool has_documents() const;
  4331. private:
  4332. bool _internal_has_documents() const;
  4333. public:
  4334. void clear_documents();
  4335. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  4336. ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  4337. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  4338. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* documents);
  4339. private:
  4340. const ::google::firestore::v1::Target_DocumentsTarget& _internal_documents() const;
  4341. ::google::firestore::v1::Target_DocumentsTarget* _internal_mutable_documents();
  4342. public:
  4343. // bytes resume_token = 4;
  4344. private:
  4345. bool _internal_has_resume_token() const;
  4346. public:
  4347. void clear_resume_token();
  4348. const std::string& resume_token() const;
  4349. void set_resume_token(const std::string& value);
  4350. void set_resume_token(std::string&& value);
  4351. void set_resume_token(const char* value);
  4352. void set_resume_token(const void* value, size_t size);
  4353. std::string* mutable_resume_token();
  4354. std::string* release_resume_token();
  4355. void set_allocated_resume_token(std::string* resume_token);
  4356. private:
  4357. const std::string& _internal_resume_token() const;
  4358. void _internal_set_resume_token(const std::string& value);
  4359. std::string* _internal_mutable_resume_token();
  4360. public:
  4361. // .google.protobuf.Timestamp read_time = 11;
  4362. bool has_read_time() const;
  4363. private:
  4364. bool _internal_has_read_time() const;
  4365. public:
  4366. void clear_read_time();
  4367. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  4368. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  4369. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  4370. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  4371. private:
  4372. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  4373. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  4374. public:
  4375. void clear_target_type();
  4376. TargetTypeCase target_type_case() const;
  4377. void clear_resume_type();
  4378. ResumeTypeCase resume_type_case() const;
  4379. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target)
  4380. private:
  4381. class _Internal;
  4382. void set_has_query();
  4383. void set_has_documents();
  4384. void set_has_resume_token();
  4385. void set_has_read_time();
  4386. inline bool has_target_type() const;
  4387. inline void clear_has_target_type();
  4388. inline bool has_resume_type() const;
  4389. inline void clear_has_resume_type();
  4390. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4391. ::PROTOBUF_NAMESPACE_ID::int32 target_id_;
  4392. bool once_;
  4393. union TargetTypeUnion {
  4394. TargetTypeUnion() {}
  4395. ::google::firestore::v1::Target_QueryTarget* query_;
  4396. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  4397. } target_type_;
  4398. union ResumeTypeUnion {
  4399. ResumeTypeUnion() {}
  4400. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  4401. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  4402. } resume_type_;
  4403. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4404. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  4405. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4406. };
  4407. // -------------------------------------------------------------------
  4408. class TargetChange :
  4409. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TargetChange) */ {
  4410. public:
  4411. TargetChange();
  4412. virtual ~TargetChange();
  4413. TargetChange(const TargetChange& from);
  4414. TargetChange(TargetChange&& from) noexcept
  4415. : TargetChange() {
  4416. *this = ::std::move(from);
  4417. }
  4418. inline TargetChange& operator=(const TargetChange& from) {
  4419. CopyFrom(from);
  4420. return *this;
  4421. }
  4422. inline TargetChange& operator=(TargetChange&& from) noexcept {
  4423. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4424. if (this != &from) InternalSwap(&from);
  4425. } else {
  4426. CopyFrom(from);
  4427. }
  4428. return *this;
  4429. }
  4430. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4431. return GetDescriptor();
  4432. }
  4433. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4434. return GetMetadataStatic().descriptor;
  4435. }
  4436. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4437. return GetMetadataStatic().reflection;
  4438. }
  4439. static const TargetChange& default_instance();
  4440. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4441. static inline const TargetChange* internal_default_instance() {
  4442. return reinterpret_cast<const TargetChange*>(
  4443. &_TargetChange_default_instance_);
  4444. }
  4445. static constexpr int kIndexInFileMessages =
  4446. 26;
  4447. friend void swap(TargetChange& a, TargetChange& b) {
  4448. a.Swap(&b);
  4449. }
  4450. inline void Swap(TargetChange* other) {
  4451. if (other == this) return;
  4452. InternalSwap(other);
  4453. }
  4454. // implements Message ----------------------------------------------
  4455. inline TargetChange* New() const final {
  4456. return CreateMaybeMessage<TargetChange>(nullptr);
  4457. }
  4458. TargetChange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4459. return CreateMaybeMessage<TargetChange>(arena);
  4460. }
  4461. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4462. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4463. void CopyFrom(const TargetChange& from);
  4464. void MergeFrom(const TargetChange& from);
  4465. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4466. bool IsInitialized() const final;
  4467. size_t ByteSizeLong() const final;
  4468. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4469. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4470. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4471. int GetCachedSize() const final { return _cached_size_.Get(); }
  4472. private:
  4473. inline void SharedCtor();
  4474. inline void SharedDtor();
  4475. void SetCachedSize(int size) const final;
  4476. void InternalSwap(TargetChange* other);
  4477. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4478. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4479. return "google.firestore.v1.TargetChange";
  4480. }
  4481. private:
  4482. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4483. return nullptr;
  4484. }
  4485. inline void* MaybeArenaPtr() const {
  4486. return nullptr;
  4487. }
  4488. public:
  4489. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4490. private:
  4491. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4492. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4493. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4494. }
  4495. public:
  4496. // nested types ----------------------------------------------------
  4497. typedef TargetChange_TargetChangeType TargetChangeType;
  4498. static constexpr TargetChangeType NO_CHANGE =
  4499. TargetChange_TargetChangeType_NO_CHANGE;
  4500. static constexpr TargetChangeType ADD =
  4501. TargetChange_TargetChangeType_ADD;
  4502. static constexpr TargetChangeType REMOVE =
  4503. TargetChange_TargetChangeType_REMOVE;
  4504. static constexpr TargetChangeType CURRENT =
  4505. TargetChange_TargetChangeType_CURRENT;
  4506. static constexpr TargetChangeType RESET =
  4507. TargetChange_TargetChangeType_RESET;
  4508. static inline bool TargetChangeType_IsValid(int value) {
  4509. return TargetChange_TargetChangeType_IsValid(value);
  4510. }
  4511. static constexpr TargetChangeType TargetChangeType_MIN =
  4512. TargetChange_TargetChangeType_TargetChangeType_MIN;
  4513. static constexpr TargetChangeType TargetChangeType_MAX =
  4514. TargetChange_TargetChangeType_TargetChangeType_MAX;
  4515. static constexpr int TargetChangeType_ARRAYSIZE =
  4516. TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE;
  4517. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4518. TargetChangeType_descriptor() {
  4519. return TargetChange_TargetChangeType_descriptor();
  4520. }
  4521. template<typename T>
  4522. static inline const std::string& TargetChangeType_Name(T enum_t_value) {
  4523. static_assert(::std::is_same<T, TargetChangeType>::value ||
  4524. ::std::is_integral<T>::value,
  4525. "Incorrect type passed to function TargetChangeType_Name.");
  4526. return TargetChange_TargetChangeType_Name(enum_t_value);
  4527. }
  4528. static inline bool TargetChangeType_Parse(const std::string& name,
  4529. TargetChangeType* value) {
  4530. return TargetChange_TargetChangeType_Parse(name, value);
  4531. }
  4532. // accessors -------------------------------------------------------
  4533. enum : int {
  4534. kTargetIdsFieldNumber = 2,
  4535. kResumeTokenFieldNumber = 4,
  4536. kCauseFieldNumber = 3,
  4537. kReadTimeFieldNumber = 6,
  4538. kTargetChangeTypeFieldNumber = 1,
  4539. };
  4540. // repeated int32 target_ids = 2;
  4541. int target_ids_size() const;
  4542. private:
  4543. int _internal_target_ids_size() const;
  4544. public:
  4545. void clear_target_ids();
  4546. private:
  4547. ::PROTOBUF_NAMESPACE_ID::int32 _internal_target_ids(int index) const;
  4548. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  4549. _internal_target_ids() const;
  4550. void _internal_add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  4551. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  4552. _internal_mutable_target_ids();
  4553. public:
  4554. ::PROTOBUF_NAMESPACE_ID::int32 target_ids(int index) const;
  4555. void set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  4556. void add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  4557. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  4558. target_ids() const;
  4559. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  4560. mutable_target_ids();
  4561. // bytes resume_token = 4;
  4562. void clear_resume_token();
  4563. const std::string& resume_token() const;
  4564. void set_resume_token(const std::string& value);
  4565. void set_resume_token(std::string&& value);
  4566. void set_resume_token(const char* value);
  4567. void set_resume_token(const void* value, size_t size);
  4568. std::string* mutable_resume_token();
  4569. std::string* release_resume_token();
  4570. void set_allocated_resume_token(std::string* resume_token);
  4571. private:
  4572. const std::string& _internal_resume_token() const;
  4573. void _internal_set_resume_token(const std::string& value);
  4574. std::string* _internal_mutable_resume_token();
  4575. public:
  4576. // .google.rpc.Status cause = 3;
  4577. bool has_cause() const;
  4578. private:
  4579. bool _internal_has_cause() const;
  4580. public:
  4581. void clear_cause();
  4582. const ::google::rpc::Status& cause() const;
  4583. ::google::rpc::Status* release_cause();
  4584. ::google::rpc::Status* mutable_cause();
  4585. void set_allocated_cause(::google::rpc::Status* cause);
  4586. private:
  4587. const ::google::rpc::Status& _internal_cause() const;
  4588. ::google::rpc::Status* _internal_mutable_cause();
  4589. public:
  4590. // .google.protobuf.Timestamp read_time = 6;
  4591. bool has_read_time() const;
  4592. private:
  4593. bool _internal_has_read_time() const;
  4594. public:
  4595. void clear_read_time();
  4596. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  4597. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  4598. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  4599. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  4600. private:
  4601. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  4602. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  4603. public:
  4604. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  4605. void clear_target_change_type();
  4606. ::google::firestore::v1::TargetChange_TargetChangeType target_change_type() const;
  4607. void set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  4608. private:
  4609. ::google::firestore::v1::TargetChange_TargetChangeType _internal_target_change_type() const;
  4610. void _internal_set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  4611. public:
  4612. // @@protoc_insertion_point(class_scope:google.firestore.v1.TargetChange)
  4613. private:
  4614. class _Internal;
  4615. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4616. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > target_ids_;
  4617. mutable std::atomic<int> _target_ids_cached_byte_size_;
  4618. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  4619. ::google::rpc::Status* cause_;
  4620. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  4621. int target_change_type_;
  4622. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4623. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4624. };
  4625. // -------------------------------------------------------------------
  4626. class ListCollectionIdsRequest :
  4627. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsRequest) */ {
  4628. public:
  4629. ListCollectionIdsRequest();
  4630. virtual ~ListCollectionIdsRequest();
  4631. ListCollectionIdsRequest(const ListCollectionIdsRequest& from);
  4632. ListCollectionIdsRequest(ListCollectionIdsRequest&& from) noexcept
  4633. : ListCollectionIdsRequest() {
  4634. *this = ::std::move(from);
  4635. }
  4636. inline ListCollectionIdsRequest& operator=(const ListCollectionIdsRequest& from) {
  4637. CopyFrom(from);
  4638. return *this;
  4639. }
  4640. inline ListCollectionIdsRequest& operator=(ListCollectionIdsRequest&& from) noexcept {
  4641. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4642. if (this != &from) InternalSwap(&from);
  4643. } else {
  4644. CopyFrom(from);
  4645. }
  4646. return *this;
  4647. }
  4648. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4649. return GetDescriptor();
  4650. }
  4651. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4652. return GetMetadataStatic().descriptor;
  4653. }
  4654. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4655. return GetMetadataStatic().reflection;
  4656. }
  4657. static const ListCollectionIdsRequest& default_instance();
  4658. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4659. static inline const ListCollectionIdsRequest* internal_default_instance() {
  4660. return reinterpret_cast<const ListCollectionIdsRequest*>(
  4661. &_ListCollectionIdsRequest_default_instance_);
  4662. }
  4663. static constexpr int kIndexInFileMessages =
  4664. 27;
  4665. friend void swap(ListCollectionIdsRequest& a, ListCollectionIdsRequest& b) {
  4666. a.Swap(&b);
  4667. }
  4668. inline void Swap(ListCollectionIdsRequest* other) {
  4669. if (other == this) return;
  4670. InternalSwap(other);
  4671. }
  4672. // implements Message ----------------------------------------------
  4673. inline ListCollectionIdsRequest* New() const final {
  4674. return CreateMaybeMessage<ListCollectionIdsRequest>(nullptr);
  4675. }
  4676. ListCollectionIdsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4677. return CreateMaybeMessage<ListCollectionIdsRequest>(arena);
  4678. }
  4679. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4680. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4681. void CopyFrom(const ListCollectionIdsRequest& from);
  4682. void MergeFrom(const ListCollectionIdsRequest& from);
  4683. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4684. bool IsInitialized() const final;
  4685. size_t ByteSizeLong() const final;
  4686. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4687. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4688. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4689. int GetCachedSize() const final { return _cached_size_.Get(); }
  4690. private:
  4691. inline void SharedCtor();
  4692. inline void SharedDtor();
  4693. void SetCachedSize(int size) const final;
  4694. void InternalSwap(ListCollectionIdsRequest* other);
  4695. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4696. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4697. return "google.firestore.v1.ListCollectionIdsRequest";
  4698. }
  4699. private:
  4700. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4701. return nullptr;
  4702. }
  4703. inline void* MaybeArenaPtr() const {
  4704. return nullptr;
  4705. }
  4706. public:
  4707. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4708. private:
  4709. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4710. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4711. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4712. }
  4713. public:
  4714. // nested types ----------------------------------------------------
  4715. // accessors -------------------------------------------------------
  4716. enum : int {
  4717. kParentFieldNumber = 1,
  4718. kPageTokenFieldNumber = 3,
  4719. kPageSizeFieldNumber = 2,
  4720. };
  4721. // string parent = 1;
  4722. void clear_parent();
  4723. const std::string& parent() const;
  4724. void set_parent(const std::string& value);
  4725. void set_parent(std::string&& value);
  4726. void set_parent(const char* value);
  4727. void set_parent(const char* value, size_t size);
  4728. std::string* mutable_parent();
  4729. std::string* release_parent();
  4730. void set_allocated_parent(std::string* parent);
  4731. private:
  4732. const std::string& _internal_parent() const;
  4733. void _internal_set_parent(const std::string& value);
  4734. std::string* _internal_mutable_parent();
  4735. public:
  4736. // string page_token = 3;
  4737. void clear_page_token();
  4738. const std::string& page_token() const;
  4739. void set_page_token(const std::string& value);
  4740. void set_page_token(std::string&& value);
  4741. void set_page_token(const char* value);
  4742. void set_page_token(const char* value, size_t size);
  4743. std::string* mutable_page_token();
  4744. std::string* release_page_token();
  4745. void set_allocated_page_token(std::string* page_token);
  4746. private:
  4747. const std::string& _internal_page_token() const;
  4748. void _internal_set_page_token(const std::string& value);
  4749. std::string* _internal_mutable_page_token();
  4750. public:
  4751. // int32 page_size = 2;
  4752. void clear_page_size();
  4753. ::PROTOBUF_NAMESPACE_ID::int32 page_size() const;
  4754. void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  4755. private:
  4756. ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const;
  4757. void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  4758. public:
  4759. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsRequest)
  4760. private:
  4761. class _Internal;
  4762. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4763. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  4764. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_;
  4765. ::PROTOBUF_NAMESPACE_ID::int32 page_size_;
  4766. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4767. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4768. };
  4769. // -------------------------------------------------------------------
  4770. class ListCollectionIdsResponse :
  4771. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsResponse) */ {
  4772. public:
  4773. ListCollectionIdsResponse();
  4774. virtual ~ListCollectionIdsResponse();
  4775. ListCollectionIdsResponse(const ListCollectionIdsResponse& from);
  4776. ListCollectionIdsResponse(ListCollectionIdsResponse&& from) noexcept
  4777. : ListCollectionIdsResponse() {
  4778. *this = ::std::move(from);
  4779. }
  4780. inline ListCollectionIdsResponse& operator=(const ListCollectionIdsResponse& from) {
  4781. CopyFrom(from);
  4782. return *this;
  4783. }
  4784. inline ListCollectionIdsResponse& operator=(ListCollectionIdsResponse&& from) noexcept {
  4785. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4786. if (this != &from) InternalSwap(&from);
  4787. } else {
  4788. CopyFrom(from);
  4789. }
  4790. return *this;
  4791. }
  4792. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4793. return GetDescriptor();
  4794. }
  4795. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4796. return GetMetadataStatic().descriptor;
  4797. }
  4798. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4799. return GetMetadataStatic().reflection;
  4800. }
  4801. static const ListCollectionIdsResponse& default_instance();
  4802. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4803. static inline const ListCollectionIdsResponse* internal_default_instance() {
  4804. return reinterpret_cast<const ListCollectionIdsResponse*>(
  4805. &_ListCollectionIdsResponse_default_instance_);
  4806. }
  4807. static constexpr int kIndexInFileMessages =
  4808. 28;
  4809. friend void swap(ListCollectionIdsResponse& a, ListCollectionIdsResponse& b) {
  4810. a.Swap(&b);
  4811. }
  4812. inline void Swap(ListCollectionIdsResponse* other) {
  4813. if (other == this) return;
  4814. InternalSwap(other);
  4815. }
  4816. // implements Message ----------------------------------------------
  4817. inline ListCollectionIdsResponse* New() const final {
  4818. return CreateMaybeMessage<ListCollectionIdsResponse>(nullptr);
  4819. }
  4820. ListCollectionIdsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4821. return CreateMaybeMessage<ListCollectionIdsResponse>(arena);
  4822. }
  4823. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4824. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4825. void CopyFrom(const ListCollectionIdsResponse& from);
  4826. void MergeFrom(const ListCollectionIdsResponse& from);
  4827. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4828. bool IsInitialized() const final;
  4829. size_t ByteSizeLong() const final;
  4830. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4831. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4832. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4833. int GetCachedSize() const final { return _cached_size_.Get(); }
  4834. private:
  4835. inline void SharedCtor();
  4836. inline void SharedDtor();
  4837. void SetCachedSize(int size) const final;
  4838. void InternalSwap(ListCollectionIdsResponse* other);
  4839. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4840. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4841. return "google.firestore.v1.ListCollectionIdsResponse";
  4842. }
  4843. private:
  4844. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4845. return nullptr;
  4846. }
  4847. inline void* MaybeArenaPtr() const {
  4848. return nullptr;
  4849. }
  4850. public:
  4851. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4852. private:
  4853. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4854. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4855. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4856. }
  4857. public:
  4858. // nested types ----------------------------------------------------
  4859. // accessors -------------------------------------------------------
  4860. enum : int {
  4861. kCollectionIdsFieldNumber = 1,
  4862. kNextPageTokenFieldNumber = 2,
  4863. };
  4864. // repeated string collection_ids = 1;
  4865. int collection_ids_size() const;
  4866. private:
  4867. int _internal_collection_ids_size() const;
  4868. public:
  4869. void clear_collection_ids();
  4870. const std::string& collection_ids(int index) const;
  4871. std::string* mutable_collection_ids(int index);
  4872. void set_collection_ids(int index, const std::string& value);
  4873. void set_collection_ids(int index, std::string&& value);
  4874. void set_collection_ids(int index, const char* value);
  4875. void set_collection_ids(int index, const char* value, size_t size);
  4876. std::string* add_collection_ids();
  4877. void add_collection_ids(const std::string& value);
  4878. void add_collection_ids(std::string&& value);
  4879. void add_collection_ids(const char* value);
  4880. void add_collection_ids(const char* value, size_t size);
  4881. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& collection_ids() const;
  4882. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_collection_ids();
  4883. private:
  4884. const std::string& _internal_collection_ids(int index) const;
  4885. std::string* _internal_add_collection_ids();
  4886. public:
  4887. // string next_page_token = 2;
  4888. void clear_next_page_token();
  4889. const std::string& next_page_token() const;
  4890. void set_next_page_token(const std::string& value);
  4891. void set_next_page_token(std::string&& value);
  4892. void set_next_page_token(const char* value);
  4893. void set_next_page_token(const char* value, size_t size);
  4894. std::string* mutable_next_page_token();
  4895. std::string* release_next_page_token();
  4896. void set_allocated_next_page_token(std::string* next_page_token);
  4897. private:
  4898. const std::string& _internal_next_page_token() const;
  4899. void _internal_set_next_page_token(const std::string& value);
  4900. std::string* _internal_mutable_next_page_token();
  4901. public:
  4902. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsResponse)
  4903. private:
  4904. class _Internal;
  4905. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4906. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> collection_ids_;
  4907. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_;
  4908. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4909. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4910. };
  4911. // ===================================================================
  4912. // ===================================================================
  4913. #ifdef __GNUC__
  4914. #pragma GCC diagnostic push
  4915. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  4916. #endif // __GNUC__
  4917. // GetDocumentRequest
  4918. // string name = 1;
  4919. inline void GetDocumentRequest::clear_name() {
  4920. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4921. }
  4922. inline const std::string& GetDocumentRequest::name() const {
  4923. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.name)
  4924. return _internal_name();
  4925. }
  4926. inline void GetDocumentRequest::set_name(const std::string& value) {
  4927. _internal_set_name(value);
  4928. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.name)
  4929. }
  4930. inline std::string* GetDocumentRequest::mutable_name() {
  4931. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.name)
  4932. return _internal_mutable_name();
  4933. }
  4934. inline const std::string& GetDocumentRequest::_internal_name() const {
  4935. return name_.GetNoArena();
  4936. }
  4937. inline void GetDocumentRequest::_internal_set_name(const std::string& value) {
  4938. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4939. }
  4940. inline void GetDocumentRequest::set_name(std::string&& value) {
  4941. name_.SetNoArena(
  4942. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4943. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.GetDocumentRequest.name)
  4944. }
  4945. inline void GetDocumentRequest::set_name(const char* value) {
  4946. GOOGLE_DCHECK(value != nullptr);
  4947. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4948. // @@protoc_insertion_point(field_set_char:google.firestore.v1.GetDocumentRequest.name)
  4949. }
  4950. inline void GetDocumentRequest::set_name(const char* value, size_t size) {
  4951. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4952. ::std::string(reinterpret_cast<const char*>(value), size));
  4953. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.GetDocumentRequest.name)
  4954. }
  4955. inline std::string* GetDocumentRequest::_internal_mutable_name() {
  4956. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4957. }
  4958. inline std::string* GetDocumentRequest::release_name() {
  4959. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.name)
  4960. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4961. }
  4962. inline void GetDocumentRequest::set_allocated_name(std::string* name) {
  4963. if (name != nullptr) {
  4964. } else {
  4965. }
  4966. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  4967. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.name)
  4968. }
  4969. // .google.firestore.v1.DocumentMask mask = 2;
  4970. inline bool GetDocumentRequest::_internal_has_mask() const {
  4971. return this != internal_default_instance() && mask_ != nullptr;
  4972. }
  4973. inline bool GetDocumentRequest::has_mask() const {
  4974. return _internal_has_mask();
  4975. }
  4976. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::_internal_mask() const {
  4977. const ::google::firestore::v1::DocumentMask* p = mask_;
  4978. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  4979. &::google::firestore::v1::_DocumentMask_default_instance_);
  4980. }
  4981. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::mask() const {
  4982. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.mask)
  4983. return _internal_mask();
  4984. }
  4985. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::release_mask() {
  4986. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.mask)
  4987. ::google::firestore::v1::DocumentMask* temp = mask_;
  4988. mask_ = nullptr;
  4989. return temp;
  4990. }
  4991. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::_internal_mutable_mask() {
  4992. if (mask_ == nullptr) {
  4993. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  4994. mask_ = p;
  4995. }
  4996. return mask_;
  4997. }
  4998. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::mutable_mask() {
  4999. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.mask)
  5000. return _internal_mutable_mask();
  5001. }
  5002. inline void GetDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5003. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5004. if (message_arena == nullptr) {
  5005. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5006. }
  5007. if (mask) {
  5008. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5009. if (message_arena != submessage_arena) {
  5010. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5011. message_arena, mask, submessage_arena);
  5012. }
  5013. } else {
  5014. }
  5015. mask_ = mask;
  5016. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.mask)
  5017. }
  5018. // bytes transaction = 3;
  5019. inline bool GetDocumentRequest::_internal_has_transaction() const {
  5020. return consistency_selector_case() == kTransaction;
  5021. }
  5022. inline void GetDocumentRequest::set_has_transaction() {
  5023. _oneof_case_[0] = kTransaction;
  5024. }
  5025. inline void GetDocumentRequest::clear_transaction() {
  5026. if (_internal_has_transaction()) {
  5027. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5028. clear_has_consistency_selector();
  5029. }
  5030. }
  5031. inline const std::string& GetDocumentRequest::transaction() const {
  5032. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.transaction)
  5033. return _internal_transaction();
  5034. }
  5035. inline void GetDocumentRequest::set_transaction(const std::string& value) {
  5036. _internal_set_transaction(value);
  5037. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  5038. }
  5039. inline std::string* GetDocumentRequest::mutable_transaction() {
  5040. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.transaction)
  5041. return _internal_mutable_transaction();
  5042. }
  5043. inline const std::string& GetDocumentRequest::_internal_transaction() const {
  5044. if (_internal_has_transaction()) {
  5045. return consistency_selector_.transaction_.GetNoArena();
  5046. }
  5047. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  5048. }
  5049. inline void GetDocumentRequest::_internal_set_transaction(const std::string& value) {
  5050. if (!_internal_has_transaction()) {
  5051. clear_consistency_selector();
  5052. set_has_transaction();
  5053. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5054. }
  5055. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5056. }
  5057. inline void GetDocumentRequest::set_transaction(std::string&& value) {
  5058. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  5059. if (!_internal_has_transaction()) {
  5060. clear_consistency_selector();
  5061. set_has_transaction();
  5062. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5063. }
  5064. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5065. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.GetDocumentRequest.transaction)
  5066. }
  5067. inline void GetDocumentRequest::set_transaction(const char* value) {
  5068. GOOGLE_DCHECK(value != nullptr);
  5069. if (!_internal_has_transaction()) {
  5070. clear_consistency_selector();
  5071. set_has_transaction();
  5072. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5073. }
  5074. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5075. ::std::string(value));
  5076. // @@protoc_insertion_point(field_set_char:google.firestore.v1.GetDocumentRequest.transaction)
  5077. }
  5078. inline void GetDocumentRequest::set_transaction(const void* value, size_t size) {
  5079. if (!_internal_has_transaction()) {
  5080. clear_consistency_selector();
  5081. set_has_transaction();
  5082. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5083. }
  5084. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5085. reinterpret_cast<const char*>(value), size));
  5086. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.GetDocumentRequest.transaction)
  5087. }
  5088. inline std::string* GetDocumentRequest::_internal_mutable_transaction() {
  5089. if (!_internal_has_transaction()) {
  5090. clear_consistency_selector();
  5091. set_has_transaction();
  5092. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5093. }
  5094. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5095. }
  5096. inline std::string* GetDocumentRequest::release_transaction() {
  5097. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.transaction)
  5098. if (_internal_has_transaction()) {
  5099. clear_has_consistency_selector();
  5100. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5101. } else {
  5102. return nullptr;
  5103. }
  5104. }
  5105. inline void GetDocumentRequest::set_allocated_transaction(std::string* transaction) {
  5106. if (has_consistency_selector()) {
  5107. clear_consistency_selector();
  5108. }
  5109. if (transaction != nullptr) {
  5110. set_has_transaction();
  5111. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  5112. }
  5113. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.transaction)
  5114. }
  5115. // .google.protobuf.Timestamp read_time = 5;
  5116. inline bool GetDocumentRequest::_internal_has_read_time() const {
  5117. return consistency_selector_case() == kReadTime;
  5118. }
  5119. inline bool GetDocumentRequest::has_read_time() const {
  5120. return _internal_has_read_time();
  5121. }
  5122. inline void GetDocumentRequest::set_has_read_time() {
  5123. _oneof_case_[0] = kReadTime;
  5124. }
  5125. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::release_read_time() {
  5126. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.read_time)
  5127. if (_internal_has_read_time()) {
  5128. clear_has_consistency_selector();
  5129. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  5130. consistency_selector_.read_time_ = nullptr;
  5131. return temp;
  5132. } else {
  5133. return nullptr;
  5134. }
  5135. }
  5136. inline const PROTOBUF_NAMESPACE_ID::Timestamp& GetDocumentRequest::_internal_read_time() const {
  5137. return _internal_has_read_time()
  5138. ? *consistency_selector_.read_time_
  5139. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  5140. }
  5141. inline const PROTOBUF_NAMESPACE_ID::Timestamp& GetDocumentRequest::read_time() const {
  5142. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.read_time)
  5143. return _internal_read_time();
  5144. }
  5145. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::_internal_mutable_read_time() {
  5146. if (!_internal_has_read_time()) {
  5147. clear_consistency_selector();
  5148. set_has_read_time();
  5149. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  5150. GetArenaNoVirtual());
  5151. }
  5152. return consistency_selector_.read_time_;
  5153. }
  5154. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::mutable_read_time() {
  5155. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.read_time)
  5156. return _internal_mutable_read_time();
  5157. }
  5158. inline bool GetDocumentRequest::has_consistency_selector() const {
  5159. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  5160. }
  5161. inline void GetDocumentRequest::clear_has_consistency_selector() {
  5162. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  5163. }
  5164. inline GetDocumentRequest::ConsistencySelectorCase GetDocumentRequest::consistency_selector_case() const {
  5165. return GetDocumentRequest::ConsistencySelectorCase(_oneof_case_[0]);
  5166. }
  5167. // -------------------------------------------------------------------
  5168. // ListDocumentsRequest
  5169. // string parent = 1;
  5170. inline void ListDocumentsRequest::clear_parent() {
  5171. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5172. }
  5173. inline const std::string& ListDocumentsRequest::parent() const {
  5174. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.parent)
  5175. return _internal_parent();
  5176. }
  5177. inline void ListDocumentsRequest::set_parent(const std::string& value) {
  5178. _internal_set_parent(value);
  5179. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.parent)
  5180. }
  5181. inline std::string* ListDocumentsRequest::mutable_parent() {
  5182. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.parent)
  5183. return _internal_mutable_parent();
  5184. }
  5185. inline const std::string& ListDocumentsRequest::_internal_parent() const {
  5186. return parent_.GetNoArena();
  5187. }
  5188. inline void ListDocumentsRequest::_internal_set_parent(const std::string& value) {
  5189. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5190. }
  5191. inline void ListDocumentsRequest::set_parent(std::string&& value) {
  5192. parent_.SetNoArena(
  5193. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5194. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.parent)
  5195. }
  5196. inline void ListDocumentsRequest::set_parent(const char* value) {
  5197. GOOGLE_DCHECK(value != nullptr);
  5198. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5199. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.parent)
  5200. }
  5201. inline void ListDocumentsRequest::set_parent(const char* value, size_t size) {
  5202. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5203. ::std::string(reinterpret_cast<const char*>(value), size));
  5204. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.parent)
  5205. }
  5206. inline std::string* ListDocumentsRequest::_internal_mutable_parent() {
  5207. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5208. }
  5209. inline std::string* ListDocumentsRequest::release_parent() {
  5210. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.parent)
  5211. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5212. }
  5213. inline void ListDocumentsRequest::set_allocated_parent(std::string* parent) {
  5214. if (parent != nullptr) {
  5215. } else {
  5216. }
  5217. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  5218. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.parent)
  5219. }
  5220. // string collection_id = 2;
  5221. inline void ListDocumentsRequest::clear_collection_id() {
  5222. collection_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5223. }
  5224. inline const std::string& ListDocumentsRequest::collection_id() const {
  5225. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.collection_id)
  5226. return _internal_collection_id();
  5227. }
  5228. inline void ListDocumentsRequest::set_collection_id(const std::string& value) {
  5229. _internal_set_collection_id(value);
  5230. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.collection_id)
  5231. }
  5232. inline std::string* ListDocumentsRequest::mutable_collection_id() {
  5233. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.collection_id)
  5234. return _internal_mutable_collection_id();
  5235. }
  5236. inline const std::string& ListDocumentsRequest::_internal_collection_id() const {
  5237. return collection_id_.GetNoArena();
  5238. }
  5239. inline void ListDocumentsRequest::_internal_set_collection_id(const std::string& value) {
  5240. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5241. }
  5242. inline void ListDocumentsRequest::set_collection_id(std::string&& value) {
  5243. collection_id_.SetNoArena(
  5244. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5245. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.collection_id)
  5246. }
  5247. inline void ListDocumentsRequest::set_collection_id(const char* value) {
  5248. GOOGLE_DCHECK(value != nullptr);
  5249. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5250. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.collection_id)
  5251. }
  5252. inline void ListDocumentsRequest::set_collection_id(const char* value, size_t size) {
  5253. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5254. ::std::string(reinterpret_cast<const char*>(value), size));
  5255. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.collection_id)
  5256. }
  5257. inline std::string* ListDocumentsRequest::_internal_mutable_collection_id() {
  5258. return collection_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5259. }
  5260. inline std::string* ListDocumentsRequest::release_collection_id() {
  5261. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.collection_id)
  5262. return collection_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5263. }
  5264. inline void ListDocumentsRequest::set_allocated_collection_id(std::string* collection_id) {
  5265. if (collection_id != nullptr) {
  5266. } else {
  5267. }
  5268. collection_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_id);
  5269. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.collection_id)
  5270. }
  5271. // int32 page_size = 3;
  5272. inline void ListDocumentsRequest::clear_page_size() {
  5273. page_size_ = 0;
  5274. }
  5275. inline ::PROTOBUF_NAMESPACE_ID::int32 ListDocumentsRequest::_internal_page_size() const {
  5276. return page_size_;
  5277. }
  5278. inline ::PROTOBUF_NAMESPACE_ID::int32 ListDocumentsRequest::page_size() const {
  5279. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_size)
  5280. return _internal_page_size();
  5281. }
  5282. inline void ListDocumentsRequest::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  5283. page_size_ = value;
  5284. }
  5285. inline void ListDocumentsRequest::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  5286. _internal_set_page_size(value);
  5287. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_size)
  5288. }
  5289. // string page_token = 4;
  5290. inline void ListDocumentsRequest::clear_page_token() {
  5291. page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5292. }
  5293. inline const std::string& ListDocumentsRequest::page_token() const {
  5294. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_token)
  5295. return _internal_page_token();
  5296. }
  5297. inline void ListDocumentsRequest::set_page_token(const std::string& value) {
  5298. _internal_set_page_token(value);
  5299. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_token)
  5300. }
  5301. inline std::string* ListDocumentsRequest::mutable_page_token() {
  5302. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.page_token)
  5303. return _internal_mutable_page_token();
  5304. }
  5305. inline const std::string& ListDocumentsRequest::_internal_page_token() const {
  5306. return page_token_.GetNoArena();
  5307. }
  5308. inline void ListDocumentsRequest::_internal_set_page_token(const std::string& value) {
  5309. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5310. }
  5311. inline void ListDocumentsRequest::set_page_token(std::string&& value) {
  5312. page_token_.SetNoArena(
  5313. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5314. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.page_token)
  5315. }
  5316. inline void ListDocumentsRequest::set_page_token(const char* value) {
  5317. GOOGLE_DCHECK(value != nullptr);
  5318. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5319. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.page_token)
  5320. }
  5321. inline void ListDocumentsRequest::set_page_token(const char* value, size_t size) {
  5322. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5323. ::std::string(reinterpret_cast<const char*>(value), size));
  5324. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.page_token)
  5325. }
  5326. inline std::string* ListDocumentsRequest::_internal_mutable_page_token() {
  5327. return page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5328. }
  5329. inline std::string* ListDocumentsRequest::release_page_token() {
  5330. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.page_token)
  5331. return page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5332. }
  5333. inline void ListDocumentsRequest::set_allocated_page_token(std::string* page_token) {
  5334. if (page_token != nullptr) {
  5335. } else {
  5336. }
  5337. page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token);
  5338. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.page_token)
  5339. }
  5340. // string order_by = 6;
  5341. inline void ListDocumentsRequest::clear_order_by() {
  5342. order_by_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5343. }
  5344. inline const std::string& ListDocumentsRequest::order_by() const {
  5345. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.order_by)
  5346. return _internal_order_by();
  5347. }
  5348. inline void ListDocumentsRequest::set_order_by(const std::string& value) {
  5349. _internal_set_order_by(value);
  5350. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.order_by)
  5351. }
  5352. inline std::string* ListDocumentsRequest::mutable_order_by() {
  5353. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.order_by)
  5354. return _internal_mutable_order_by();
  5355. }
  5356. inline const std::string& ListDocumentsRequest::_internal_order_by() const {
  5357. return order_by_.GetNoArena();
  5358. }
  5359. inline void ListDocumentsRequest::_internal_set_order_by(const std::string& value) {
  5360. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5361. }
  5362. inline void ListDocumentsRequest::set_order_by(std::string&& value) {
  5363. order_by_.SetNoArena(
  5364. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5365. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.order_by)
  5366. }
  5367. inline void ListDocumentsRequest::set_order_by(const char* value) {
  5368. GOOGLE_DCHECK(value != nullptr);
  5369. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5370. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.order_by)
  5371. }
  5372. inline void ListDocumentsRequest::set_order_by(const char* value, size_t size) {
  5373. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5374. ::std::string(reinterpret_cast<const char*>(value), size));
  5375. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.order_by)
  5376. }
  5377. inline std::string* ListDocumentsRequest::_internal_mutable_order_by() {
  5378. return order_by_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5379. }
  5380. inline std::string* ListDocumentsRequest::release_order_by() {
  5381. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.order_by)
  5382. return order_by_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5383. }
  5384. inline void ListDocumentsRequest::set_allocated_order_by(std::string* order_by) {
  5385. if (order_by != nullptr) {
  5386. } else {
  5387. }
  5388. order_by_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_by);
  5389. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.order_by)
  5390. }
  5391. // .google.firestore.v1.DocumentMask mask = 7;
  5392. inline bool ListDocumentsRequest::_internal_has_mask() const {
  5393. return this != internal_default_instance() && mask_ != nullptr;
  5394. }
  5395. inline bool ListDocumentsRequest::has_mask() const {
  5396. return _internal_has_mask();
  5397. }
  5398. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::_internal_mask() const {
  5399. const ::google::firestore::v1::DocumentMask* p = mask_;
  5400. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5401. &::google::firestore::v1::_DocumentMask_default_instance_);
  5402. }
  5403. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::mask() const {
  5404. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.mask)
  5405. return _internal_mask();
  5406. }
  5407. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::release_mask() {
  5408. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.mask)
  5409. ::google::firestore::v1::DocumentMask* temp = mask_;
  5410. mask_ = nullptr;
  5411. return temp;
  5412. }
  5413. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::_internal_mutable_mask() {
  5414. if (mask_ == nullptr) {
  5415. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5416. mask_ = p;
  5417. }
  5418. return mask_;
  5419. }
  5420. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::mutable_mask() {
  5421. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.mask)
  5422. return _internal_mutable_mask();
  5423. }
  5424. inline void ListDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5425. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5426. if (message_arena == nullptr) {
  5427. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5428. }
  5429. if (mask) {
  5430. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5431. if (message_arena != submessage_arena) {
  5432. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5433. message_arena, mask, submessage_arena);
  5434. }
  5435. } else {
  5436. }
  5437. mask_ = mask;
  5438. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.mask)
  5439. }
  5440. // bytes transaction = 8;
  5441. inline bool ListDocumentsRequest::_internal_has_transaction() const {
  5442. return consistency_selector_case() == kTransaction;
  5443. }
  5444. inline void ListDocumentsRequest::set_has_transaction() {
  5445. _oneof_case_[0] = kTransaction;
  5446. }
  5447. inline void ListDocumentsRequest::clear_transaction() {
  5448. if (_internal_has_transaction()) {
  5449. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5450. clear_has_consistency_selector();
  5451. }
  5452. }
  5453. inline const std::string& ListDocumentsRequest::transaction() const {
  5454. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.transaction)
  5455. return _internal_transaction();
  5456. }
  5457. inline void ListDocumentsRequest::set_transaction(const std::string& value) {
  5458. _internal_set_transaction(value);
  5459. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  5460. }
  5461. inline std::string* ListDocumentsRequest::mutable_transaction() {
  5462. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.transaction)
  5463. return _internal_mutable_transaction();
  5464. }
  5465. inline const std::string& ListDocumentsRequest::_internal_transaction() const {
  5466. if (_internal_has_transaction()) {
  5467. return consistency_selector_.transaction_.GetNoArena();
  5468. }
  5469. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  5470. }
  5471. inline void ListDocumentsRequest::_internal_set_transaction(const std::string& value) {
  5472. if (!_internal_has_transaction()) {
  5473. clear_consistency_selector();
  5474. set_has_transaction();
  5475. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5476. }
  5477. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5478. }
  5479. inline void ListDocumentsRequest::set_transaction(std::string&& value) {
  5480. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  5481. if (!_internal_has_transaction()) {
  5482. clear_consistency_selector();
  5483. set_has_transaction();
  5484. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5485. }
  5486. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5487. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.transaction)
  5488. }
  5489. inline void ListDocumentsRequest::set_transaction(const char* value) {
  5490. GOOGLE_DCHECK(value != nullptr);
  5491. if (!_internal_has_transaction()) {
  5492. clear_consistency_selector();
  5493. set_has_transaction();
  5494. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5495. }
  5496. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5497. ::std::string(value));
  5498. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.transaction)
  5499. }
  5500. inline void ListDocumentsRequest::set_transaction(const void* value, size_t size) {
  5501. if (!_internal_has_transaction()) {
  5502. clear_consistency_selector();
  5503. set_has_transaction();
  5504. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5505. }
  5506. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5507. reinterpret_cast<const char*>(value), size));
  5508. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.transaction)
  5509. }
  5510. inline std::string* ListDocumentsRequest::_internal_mutable_transaction() {
  5511. if (!_internal_has_transaction()) {
  5512. clear_consistency_selector();
  5513. set_has_transaction();
  5514. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5515. }
  5516. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5517. }
  5518. inline std::string* ListDocumentsRequest::release_transaction() {
  5519. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.transaction)
  5520. if (_internal_has_transaction()) {
  5521. clear_has_consistency_selector();
  5522. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5523. } else {
  5524. return nullptr;
  5525. }
  5526. }
  5527. inline void ListDocumentsRequest::set_allocated_transaction(std::string* transaction) {
  5528. if (has_consistency_selector()) {
  5529. clear_consistency_selector();
  5530. }
  5531. if (transaction != nullptr) {
  5532. set_has_transaction();
  5533. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  5534. }
  5535. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.transaction)
  5536. }
  5537. // .google.protobuf.Timestamp read_time = 10;
  5538. inline bool ListDocumentsRequest::_internal_has_read_time() const {
  5539. return consistency_selector_case() == kReadTime;
  5540. }
  5541. inline bool ListDocumentsRequest::has_read_time() const {
  5542. return _internal_has_read_time();
  5543. }
  5544. inline void ListDocumentsRequest::set_has_read_time() {
  5545. _oneof_case_[0] = kReadTime;
  5546. }
  5547. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::release_read_time() {
  5548. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.read_time)
  5549. if (_internal_has_read_time()) {
  5550. clear_has_consistency_selector();
  5551. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  5552. consistency_selector_.read_time_ = nullptr;
  5553. return temp;
  5554. } else {
  5555. return nullptr;
  5556. }
  5557. }
  5558. inline const PROTOBUF_NAMESPACE_ID::Timestamp& ListDocumentsRequest::_internal_read_time() const {
  5559. return _internal_has_read_time()
  5560. ? *consistency_selector_.read_time_
  5561. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  5562. }
  5563. inline const PROTOBUF_NAMESPACE_ID::Timestamp& ListDocumentsRequest::read_time() const {
  5564. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.read_time)
  5565. return _internal_read_time();
  5566. }
  5567. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::_internal_mutable_read_time() {
  5568. if (!_internal_has_read_time()) {
  5569. clear_consistency_selector();
  5570. set_has_read_time();
  5571. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  5572. GetArenaNoVirtual());
  5573. }
  5574. return consistency_selector_.read_time_;
  5575. }
  5576. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::mutable_read_time() {
  5577. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.read_time)
  5578. return _internal_mutable_read_time();
  5579. }
  5580. // bool show_missing = 12;
  5581. inline void ListDocumentsRequest::clear_show_missing() {
  5582. show_missing_ = false;
  5583. }
  5584. inline bool ListDocumentsRequest::_internal_show_missing() const {
  5585. return show_missing_;
  5586. }
  5587. inline bool ListDocumentsRequest::show_missing() const {
  5588. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.show_missing)
  5589. return _internal_show_missing();
  5590. }
  5591. inline void ListDocumentsRequest::_internal_set_show_missing(bool value) {
  5592. show_missing_ = value;
  5593. }
  5594. inline void ListDocumentsRequest::set_show_missing(bool value) {
  5595. _internal_set_show_missing(value);
  5596. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.show_missing)
  5597. }
  5598. inline bool ListDocumentsRequest::has_consistency_selector() const {
  5599. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  5600. }
  5601. inline void ListDocumentsRequest::clear_has_consistency_selector() {
  5602. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  5603. }
  5604. inline ListDocumentsRequest::ConsistencySelectorCase ListDocumentsRequest::consistency_selector_case() const {
  5605. return ListDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
  5606. }
  5607. // -------------------------------------------------------------------
  5608. // ListDocumentsResponse
  5609. // repeated .google.firestore.v1.Document documents = 1;
  5610. inline int ListDocumentsResponse::_internal_documents_size() const {
  5611. return documents_.size();
  5612. }
  5613. inline int ListDocumentsResponse::documents_size() const {
  5614. return _internal_documents_size();
  5615. }
  5616. inline ::google::firestore::v1::Document* ListDocumentsResponse::mutable_documents(int index) {
  5617. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.documents)
  5618. return documents_.Mutable(index);
  5619. }
  5620. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >*
  5621. ListDocumentsResponse::mutable_documents() {
  5622. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListDocumentsResponse.documents)
  5623. return &documents_;
  5624. }
  5625. inline const ::google::firestore::v1::Document& ListDocumentsResponse::_internal_documents(int index) const {
  5626. return documents_.Get(index);
  5627. }
  5628. inline const ::google::firestore::v1::Document& ListDocumentsResponse::documents(int index) const {
  5629. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.documents)
  5630. return _internal_documents(index);
  5631. }
  5632. inline ::google::firestore::v1::Document* ListDocumentsResponse::_internal_add_documents() {
  5633. return documents_.Add();
  5634. }
  5635. inline ::google::firestore::v1::Document* ListDocumentsResponse::add_documents() {
  5636. // @@protoc_insertion_point(field_add:google.firestore.v1.ListDocumentsResponse.documents)
  5637. return _internal_add_documents();
  5638. }
  5639. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >&
  5640. ListDocumentsResponse::documents() const {
  5641. // @@protoc_insertion_point(field_list:google.firestore.v1.ListDocumentsResponse.documents)
  5642. return documents_;
  5643. }
  5644. // string next_page_token = 2;
  5645. inline void ListDocumentsResponse::clear_next_page_token() {
  5646. next_page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5647. }
  5648. inline const std::string& ListDocumentsResponse::next_page_token() const {
  5649. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5650. return _internal_next_page_token();
  5651. }
  5652. inline void ListDocumentsResponse::set_next_page_token(const std::string& value) {
  5653. _internal_set_next_page_token(value);
  5654. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5655. }
  5656. inline std::string* ListDocumentsResponse::mutable_next_page_token() {
  5657. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5658. return _internal_mutable_next_page_token();
  5659. }
  5660. inline const std::string& ListDocumentsResponse::_internal_next_page_token() const {
  5661. return next_page_token_.GetNoArena();
  5662. }
  5663. inline void ListDocumentsResponse::_internal_set_next_page_token(const std::string& value) {
  5664. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5665. }
  5666. inline void ListDocumentsResponse::set_next_page_token(std::string&& value) {
  5667. next_page_token_.SetNoArena(
  5668. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5669. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5670. }
  5671. inline void ListDocumentsResponse::set_next_page_token(const char* value) {
  5672. GOOGLE_DCHECK(value != nullptr);
  5673. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5674. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5675. }
  5676. inline void ListDocumentsResponse::set_next_page_token(const char* value, size_t size) {
  5677. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5678. ::std::string(reinterpret_cast<const char*>(value), size));
  5679. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5680. }
  5681. inline std::string* ListDocumentsResponse::_internal_mutable_next_page_token() {
  5682. return next_page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5683. }
  5684. inline std::string* ListDocumentsResponse::release_next_page_token() {
  5685. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5686. return next_page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5687. }
  5688. inline void ListDocumentsResponse::set_allocated_next_page_token(std::string* next_page_token) {
  5689. if (next_page_token != nullptr) {
  5690. } else {
  5691. }
  5692. next_page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token);
  5693. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5694. }
  5695. // -------------------------------------------------------------------
  5696. // CreateDocumentRequest
  5697. // string parent = 1;
  5698. inline void CreateDocumentRequest::clear_parent() {
  5699. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5700. }
  5701. inline const std::string& CreateDocumentRequest::parent() const {
  5702. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.parent)
  5703. return _internal_parent();
  5704. }
  5705. inline void CreateDocumentRequest::set_parent(const std::string& value) {
  5706. _internal_set_parent(value);
  5707. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.parent)
  5708. }
  5709. inline std::string* CreateDocumentRequest::mutable_parent() {
  5710. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.parent)
  5711. return _internal_mutable_parent();
  5712. }
  5713. inline const std::string& CreateDocumentRequest::_internal_parent() const {
  5714. return parent_.GetNoArena();
  5715. }
  5716. inline void CreateDocumentRequest::_internal_set_parent(const std::string& value) {
  5717. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5718. }
  5719. inline void CreateDocumentRequest::set_parent(std::string&& value) {
  5720. parent_.SetNoArena(
  5721. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5722. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.parent)
  5723. }
  5724. inline void CreateDocumentRequest::set_parent(const char* value) {
  5725. GOOGLE_DCHECK(value != nullptr);
  5726. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5727. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.parent)
  5728. }
  5729. inline void CreateDocumentRequest::set_parent(const char* value, size_t size) {
  5730. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5731. ::std::string(reinterpret_cast<const char*>(value), size));
  5732. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.parent)
  5733. }
  5734. inline std::string* CreateDocumentRequest::_internal_mutable_parent() {
  5735. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5736. }
  5737. inline std::string* CreateDocumentRequest::release_parent() {
  5738. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.parent)
  5739. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5740. }
  5741. inline void CreateDocumentRequest::set_allocated_parent(std::string* parent) {
  5742. if (parent != nullptr) {
  5743. } else {
  5744. }
  5745. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  5746. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.parent)
  5747. }
  5748. // string collection_id = 2;
  5749. inline void CreateDocumentRequest::clear_collection_id() {
  5750. collection_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5751. }
  5752. inline const std::string& CreateDocumentRequest::collection_id() const {
  5753. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.collection_id)
  5754. return _internal_collection_id();
  5755. }
  5756. inline void CreateDocumentRequest::set_collection_id(const std::string& value) {
  5757. _internal_set_collection_id(value);
  5758. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.collection_id)
  5759. }
  5760. inline std::string* CreateDocumentRequest::mutable_collection_id() {
  5761. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.collection_id)
  5762. return _internal_mutable_collection_id();
  5763. }
  5764. inline const std::string& CreateDocumentRequest::_internal_collection_id() const {
  5765. return collection_id_.GetNoArena();
  5766. }
  5767. inline void CreateDocumentRequest::_internal_set_collection_id(const std::string& value) {
  5768. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5769. }
  5770. inline void CreateDocumentRequest::set_collection_id(std::string&& value) {
  5771. collection_id_.SetNoArena(
  5772. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5773. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.collection_id)
  5774. }
  5775. inline void CreateDocumentRequest::set_collection_id(const char* value) {
  5776. GOOGLE_DCHECK(value != nullptr);
  5777. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5778. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.collection_id)
  5779. }
  5780. inline void CreateDocumentRequest::set_collection_id(const char* value, size_t size) {
  5781. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5782. ::std::string(reinterpret_cast<const char*>(value), size));
  5783. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.collection_id)
  5784. }
  5785. inline std::string* CreateDocumentRequest::_internal_mutable_collection_id() {
  5786. return collection_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5787. }
  5788. inline std::string* CreateDocumentRequest::release_collection_id() {
  5789. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.collection_id)
  5790. return collection_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5791. }
  5792. inline void CreateDocumentRequest::set_allocated_collection_id(std::string* collection_id) {
  5793. if (collection_id != nullptr) {
  5794. } else {
  5795. }
  5796. collection_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_id);
  5797. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.collection_id)
  5798. }
  5799. // string document_id = 3;
  5800. inline void CreateDocumentRequest::clear_document_id() {
  5801. document_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5802. }
  5803. inline const std::string& CreateDocumentRequest::document_id() const {
  5804. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document_id)
  5805. return _internal_document_id();
  5806. }
  5807. inline void CreateDocumentRequest::set_document_id(const std::string& value) {
  5808. _internal_set_document_id(value);
  5809. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.document_id)
  5810. }
  5811. inline std::string* CreateDocumentRequest::mutable_document_id() {
  5812. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document_id)
  5813. return _internal_mutable_document_id();
  5814. }
  5815. inline const std::string& CreateDocumentRequest::_internal_document_id() const {
  5816. return document_id_.GetNoArena();
  5817. }
  5818. inline void CreateDocumentRequest::_internal_set_document_id(const std::string& value) {
  5819. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5820. }
  5821. inline void CreateDocumentRequest::set_document_id(std::string&& value) {
  5822. document_id_.SetNoArena(
  5823. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5824. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.document_id)
  5825. }
  5826. inline void CreateDocumentRequest::set_document_id(const char* value) {
  5827. GOOGLE_DCHECK(value != nullptr);
  5828. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5829. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.document_id)
  5830. }
  5831. inline void CreateDocumentRequest::set_document_id(const char* value, size_t size) {
  5832. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5833. ::std::string(reinterpret_cast<const char*>(value), size));
  5834. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.document_id)
  5835. }
  5836. inline std::string* CreateDocumentRequest::_internal_mutable_document_id() {
  5837. return document_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5838. }
  5839. inline std::string* CreateDocumentRequest::release_document_id() {
  5840. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document_id)
  5841. return document_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5842. }
  5843. inline void CreateDocumentRequest::set_allocated_document_id(std::string* document_id) {
  5844. if (document_id != nullptr) {
  5845. } else {
  5846. }
  5847. document_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document_id);
  5848. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document_id)
  5849. }
  5850. // .google.firestore.v1.Document document = 4;
  5851. inline bool CreateDocumentRequest::_internal_has_document() const {
  5852. return this != internal_default_instance() && document_ != nullptr;
  5853. }
  5854. inline bool CreateDocumentRequest::has_document() const {
  5855. return _internal_has_document();
  5856. }
  5857. inline const ::google::firestore::v1::Document& CreateDocumentRequest::_internal_document() const {
  5858. const ::google::firestore::v1::Document* p = document_;
  5859. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  5860. &::google::firestore::v1::_Document_default_instance_);
  5861. }
  5862. inline const ::google::firestore::v1::Document& CreateDocumentRequest::document() const {
  5863. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document)
  5864. return _internal_document();
  5865. }
  5866. inline ::google::firestore::v1::Document* CreateDocumentRequest::release_document() {
  5867. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document)
  5868. ::google::firestore::v1::Document* temp = document_;
  5869. document_ = nullptr;
  5870. return temp;
  5871. }
  5872. inline ::google::firestore::v1::Document* CreateDocumentRequest::_internal_mutable_document() {
  5873. if (document_ == nullptr) {
  5874. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  5875. document_ = p;
  5876. }
  5877. return document_;
  5878. }
  5879. inline ::google::firestore::v1::Document* CreateDocumentRequest::mutable_document() {
  5880. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document)
  5881. return _internal_mutable_document();
  5882. }
  5883. inline void CreateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* document) {
  5884. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5885. if (message_arena == nullptr) {
  5886. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  5887. }
  5888. if (document) {
  5889. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5890. if (message_arena != submessage_arena) {
  5891. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5892. message_arena, document, submessage_arena);
  5893. }
  5894. } else {
  5895. }
  5896. document_ = document;
  5897. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document)
  5898. }
  5899. // .google.firestore.v1.DocumentMask mask = 5;
  5900. inline bool CreateDocumentRequest::_internal_has_mask() const {
  5901. return this != internal_default_instance() && mask_ != nullptr;
  5902. }
  5903. inline bool CreateDocumentRequest::has_mask() const {
  5904. return _internal_has_mask();
  5905. }
  5906. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::_internal_mask() const {
  5907. const ::google::firestore::v1::DocumentMask* p = mask_;
  5908. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5909. &::google::firestore::v1::_DocumentMask_default_instance_);
  5910. }
  5911. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::mask() const {
  5912. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.mask)
  5913. return _internal_mask();
  5914. }
  5915. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::release_mask() {
  5916. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.mask)
  5917. ::google::firestore::v1::DocumentMask* temp = mask_;
  5918. mask_ = nullptr;
  5919. return temp;
  5920. }
  5921. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::_internal_mutable_mask() {
  5922. if (mask_ == nullptr) {
  5923. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5924. mask_ = p;
  5925. }
  5926. return mask_;
  5927. }
  5928. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::mutable_mask() {
  5929. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.mask)
  5930. return _internal_mutable_mask();
  5931. }
  5932. inline void CreateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5933. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5934. if (message_arena == nullptr) {
  5935. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5936. }
  5937. if (mask) {
  5938. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5939. if (message_arena != submessage_arena) {
  5940. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5941. message_arena, mask, submessage_arena);
  5942. }
  5943. } else {
  5944. }
  5945. mask_ = mask;
  5946. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.mask)
  5947. }
  5948. // -------------------------------------------------------------------
  5949. // UpdateDocumentRequest
  5950. // .google.firestore.v1.Document document = 1;
  5951. inline bool UpdateDocumentRequest::_internal_has_document() const {
  5952. return this != internal_default_instance() && document_ != nullptr;
  5953. }
  5954. inline bool UpdateDocumentRequest::has_document() const {
  5955. return _internal_has_document();
  5956. }
  5957. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::_internal_document() const {
  5958. const ::google::firestore::v1::Document* p = document_;
  5959. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  5960. &::google::firestore::v1::_Document_default_instance_);
  5961. }
  5962. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::document() const {
  5963. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.document)
  5964. return _internal_document();
  5965. }
  5966. inline ::google::firestore::v1::Document* UpdateDocumentRequest::release_document() {
  5967. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.document)
  5968. ::google::firestore::v1::Document* temp = document_;
  5969. document_ = nullptr;
  5970. return temp;
  5971. }
  5972. inline ::google::firestore::v1::Document* UpdateDocumentRequest::_internal_mutable_document() {
  5973. if (document_ == nullptr) {
  5974. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  5975. document_ = p;
  5976. }
  5977. return document_;
  5978. }
  5979. inline ::google::firestore::v1::Document* UpdateDocumentRequest::mutable_document() {
  5980. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.document)
  5981. return _internal_mutable_document();
  5982. }
  5983. inline void UpdateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* document) {
  5984. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5985. if (message_arena == nullptr) {
  5986. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  5987. }
  5988. if (document) {
  5989. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5990. if (message_arena != submessage_arena) {
  5991. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5992. message_arena, document, submessage_arena);
  5993. }
  5994. } else {
  5995. }
  5996. document_ = document;
  5997. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.document)
  5998. }
  5999. // .google.firestore.v1.DocumentMask update_mask = 2;
  6000. inline bool UpdateDocumentRequest::_internal_has_update_mask() const {
  6001. return this != internal_default_instance() && update_mask_ != nullptr;
  6002. }
  6003. inline bool UpdateDocumentRequest::has_update_mask() const {
  6004. return _internal_has_update_mask();
  6005. }
  6006. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_internal_update_mask() const {
  6007. const ::google::firestore::v1::DocumentMask* p = update_mask_;
  6008. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  6009. &::google::firestore::v1::_DocumentMask_default_instance_);
  6010. }
  6011. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::update_mask() const {
  6012. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.update_mask)
  6013. return _internal_update_mask();
  6014. }
  6015. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_update_mask() {
  6016. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.update_mask)
  6017. ::google::firestore::v1::DocumentMask* temp = update_mask_;
  6018. update_mask_ = nullptr;
  6019. return temp;
  6020. }
  6021. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::_internal_mutable_update_mask() {
  6022. if (update_mask_ == nullptr) {
  6023. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  6024. update_mask_ = p;
  6025. }
  6026. return update_mask_;
  6027. }
  6028. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_update_mask() {
  6029. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.update_mask)
  6030. return _internal_mutable_update_mask();
  6031. }
  6032. inline void UpdateDocumentRequest::set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask) {
  6033. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6034. if (message_arena == nullptr) {
  6035. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask_);
  6036. }
  6037. if (update_mask) {
  6038. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6039. if (message_arena != submessage_arena) {
  6040. update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6041. message_arena, update_mask, submessage_arena);
  6042. }
  6043. } else {
  6044. }
  6045. update_mask_ = update_mask;
  6046. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.update_mask)
  6047. }
  6048. // .google.firestore.v1.DocumentMask mask = 3;
  6049. inline bool UpdateDocumentRequest::_internal_has_mask() const {
  6050. return this != internal_default_instance() && mask_ != nullptr;
  6051. }
  6052. inline bool UpdateDocumentRequest::has_mask() const {
  6053. return _internal_has_mask();
  6054. }
  6055. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_internal_mask() const {
  6056. const ::google::firestore::v1::DocumentMask* p = mask_;
  6057. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  6058. &::google::firestore::v1::_DocumentMask_default_instance_);
  6059. }
  6060. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::mask() const {
  6061. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.mask)
  6062. return _internal_mask();
  6063. }
  6064. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_mask() {
  6065. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.mask)
  6066. ::google::firestore::v1::DocumentMask* temp = mask_;
  6067. mask_ = nullptr;
  6068. return temp;
  6069. }
  6070. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::_internal_mutable_mask() {
  6071. if (mask_ == nullptr) {
  6072. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  6073. mask_ = p;
  6074. }
  6075. return mask_;
  6076. }
  6077. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_mask() {
  6078. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.mask)
  6079. return _internal_mutable_mask();
  6080. }
  6081. inline void UpdateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  6082. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6083. if (message_arena == nullptr) {
  6084. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  6085. }
  6086. if (mask) {
  6087. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6088. if (message_arena != submessage_arena) {
  6089. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6090. message_arena, mask, submessage_arena);
  6091. }
  6092. } else {
  6093. }
  6094. mask_ = mask;
  6095. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.mask)
  6096. }
  6097. // .google.firestore.v1.Precondition current_document = 4;
  6098. inline bool UpdateDocumentRequest::_internal_has_current_document() const {
  6099. return this != internal_default_instance() && current_document_ != nullptr;
  6100. }
  6101. inline bool UpdateDocumentRequest::has_current_document() const {
  6102. return _internal_has_current_document();
  6103. }
  6104. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::_internal_current_document() const {
  6105. const ::google::firestore::v1::Precondition* p = current_document_;
  6106. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  6107. &::google::firestore::v1::_Precondition_default_instance_);
  6108. }
  6109. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::current_document() const {
  6110. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.current_document)
  6111. return _internal_current_document();
  6112. }
  6113. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::release_current_document() {
  6114. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.current_document)
  6115. ::google::firestore::v1::Precondition* temp = current_document_;
  6116. current_document_ = nullptr;
  6117. return temp;
  6118. }
  6119. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::_internal_mutable_current_document() {
  6120. if (current_document_ == nullptr) {
  6121. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  6122. current_document_ = p;
  6123. }
  6124. return current_document_;
  6125. }
  6126. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::mutable_current_document() {
  6127. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.current_document)
  6128. return _internal_mutable_current_document();
  6129. }
  6130. inline void UpdateDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  6131. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6132. if (message_arena == nullptr) {
  6133. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  6134. }
  6135. if (current_document) {
  6136. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6137. if (message_arena != submessage_arena) {
  6138. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6139. message_arena, current_document, submessage_arena);
  6140. }
  6141. } else {
  6142. }
  6143. current_document_ = current_document;
  6144. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.current_document)
  6145. }
  6146. // -------------------------------------------------------------------
  6147. // DeleteDocumentRequest
  6148. // string name = 1;
  6149. inline void DeleteDocumentRequest::clear_name() {
  6150. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6151. }
  6152. inline const std::string& DeleteDocumentRequest::name() const {
  6153. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.name)
  6154. return _internal_name();
  6155. }
  6156. inline void DeleteDocumentRequest::set_name(const std::string& value) {
  6157. _internal_set_name(value);
  6158. // @@protoc_insertion_point(field_set:google.firestore.v1.DeleteDocumentRequest.name)
  6159. }
  6160. inline std::string* DeleteDocumentRequest::mutable_name() {
  6161. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.name)
  6162. return _internal_mutable_name();
  6163. }
  6164. inline const std::string& DeleteDocumentRequest::_internal_name() const {
  6165. return name_.GetNoArena();
  6166. }
  6167. inline void DeleteDocumentRequest::_internal_set_name(const std::string& value) {
  6168. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6169. }
  6170. inline void DeleteDocumentRequest::set_name(std::string&& value) {
  6171. name_.SetNoArena(
  6172. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6173. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DeleteDocumentRequest.name)
  6174. }
  6175. inline void DeleteDocumentRequest::set_name(const char* value) {
  6176. GOOGLE_DCHECK(value != nullptr);
  6177. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6178. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DeleteDocumentRequest.name)
  6179. }
  6180. inline void DeleteDocumentRequest::set_name(const char* value, size_t size) {
  6181. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6182. ::std::string(reinterpret_cast<const char*>(value), size));
  6183. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DeleteDocumentRequest.name)
  6184. }
  6185. inline std::string* DeleteDocumentRequest::_internal_mutable_name() {
  6186. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6187. }
  6188. inline std::string* DeleteDocumentRequest::release_name() {
  6189. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.name)
  6190. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6191. }
  6192. inline void DeleteDocumentRequest::set_allocated_name(std::string* name) {
  6193. if (name != nullptr) {
  6194. } else {
  6195. }
  6196. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  6197. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.name)
  6198. }
  6199. // .google.firestore.v1.Precondition current_document = 2;
  6200. inline bool DeleteDocumentRequest::_internal_has_current_document() const {
  6201. return this != internal_default_instance() && current_document_ != nullptr;
  6202. }
  6203. inline bool DeleteDocumentRequest::has_current_document() const {
  6204. return _internal_has_current_document();
  6205. }
  6206. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::_internal_current_document() const {
  6207. const ::google::firestore::v1::Precondition* p = current_document_;
  6208. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  6209. &::google::firestore::v1::_Precondition_default_instance_);
  6210. }
  6211. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::current_document() const {
  6212. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.current_document)
  6213. return _internal_current_document();
  6214. }
  6215. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::release_current_document() {
  6216. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.current_document)
  6217. ::google::firestore::v1::Precondition* temp = current_document_;
  6218. current_document_ = nullptr;
  6219. return temp;
  6220. }
  6221. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::_internal_mutable_current_document() {
  6222. if (current_document_ == nullptr) {
  6223. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  6224. current_document_ = p;
  6225. }
  6226. return current_document_;
  6227. }
  6228. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::mutable_current_document() {
  6229. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.current_document)
  6230. return _internal_mutable_current_document();
  6231. }
  6232. inline void DeleteDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  6233. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6234. if (message_arena == nullptr) {
  6235. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  6236. }
  6237. if (current_document) {
  6238. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6239. if (message_arena != submessage_arena) {
  6240. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6241. message_arena, current_document, submessage_arena);
  6242. }
  6243. } else {
  6244. }
  6245. current_document_ = current_document;
  6246. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.current_document)
  6247. }
  6248. // -------------------------------------------------------------------
  6249. // BatchGetDocumentsRequest
  6250. // string database = 1;
  6251. inline void BatchGetDocumentsRequest::clear_database() {
  6252. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6253. }
  6254. inline const std::string& BatchGetDocumentsRequest::database() const {
  6255. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.database)
  6256. return _internal_database();
  6257. }
  6258. inline void BatchGetDocumentsRequest::set_database(const std::string& value) {
  6259. _internal_set_database(value);
  6260. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.database)
  6261. }
  6262. inline std::string* BatchGetDocumentsRequest::mutable_database() {
  6263. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.database)
  6264. return _internal_mutable_database();
  6265. }
  6266. inline const std::string& BatchGetDocumentsRequest::_internal_database() const {
  6267. return database_.GetNoArena();
  6268. }
  6269. inline void BatchGetDocumentsRequest::_internal_set_database(const std::string& value) {
  6270. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6271. }
  6272. inline void BatchGetDocumentsRequest::set_database(std::string&& value) {
  6273. database_.SetNoArena(
  6274. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6275. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsRequest.database)
  6276. }
  6277. inline void BatchGetDocumentsRequest::set_database(const char* value) {
  6278. GOOGLE_DCHECK(value != nullptr);
  6279. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6280. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.database)
  6281. }
  6282. inline void BatchGetDocumentsRequest::set_database(const char* value, size_t size) {
  6283. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6284. ::std::string(reinterpret_cast<const char*>(value), size));
  6285. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.database)
  6286. }
  6287. inline std::string* BatchGetDocumentsRequest::_internal_mutable_database() {
  6288. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6289. }
  6290. inline std::string* BatchGetDocumentsRequest::release_database() {
  6291. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.database)
  6292. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6293. }
  6294. inline void BatchGetDocumentsRequest::set_allocated_database(std::string* database) {
  6295. if (database != nullptr) {
  6296. } else {
  6297. }
  6298. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6299. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.database)
  6300. }
  6301. // repeated string documents = 2;
  6302. inline int BatchGetDocumentsRequest::_internal_documents_size() const {
  6303. return documents_.size();
  6304. }
  6305. inline int BatchGetDocumentsRequest::documents_size() const {
  6306. return _internal_documents_size();
  6307. }
  6308. inline void BatchGetDocumentsRequest::clear_documents() {
  6309. documents_.Clear();
  6310. }
  6311. inline std::string* BatchGetDocumentsRequest::add_documents() {
  6312. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6313. return _internal_add_documents();
  6314. }
  6315. inline const std::string& BatchGetDocumentsRequest::_internal_documents(int index) const {
  6316. return documents_.Get(index);
  6317. }
  6318. inline const std::string& BatchGetDocumentsRequest::documents(int index) const {
  6319. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6320. return _internal_documents(index);
  6321. }
  6322. inline std::string* BatchGetDocumentsRequest::mutable_documents(int index) {
  6323. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6324. return documents_.Mutable(index);
  6325. }
  6326. inline void BatchGetDocumentsRequest::set_documents(int index, const std::string& value) {
  6327. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6328. documents_.Mutable(index)->assign(value);
  6329. }
  6330. inline void BatchGetDocumentsRequest::set_documents(int index, std::string&& value) {
  6331. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6332. documents_.Mutable(index)->assign(std::move(value));
  6333. }
  6334. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value) {
  6335. GOOGLE_DCHECK(value != nullptr);
  6336. documents_.Mutable(index)->assign(value);
  6337. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6338. }
  6339. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value, size_t size) {
  6340. documents_.Mutable(index)->assign(
  6341. reinterpret_cast<const char*>(value), size);
  6342. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6343. }
  6344. inline std::string* BatchGetDocumentsRequest::_internal_add_documents() {
  6345. return documents_.Add();
  6346. }
  6347. inline void BatchGetDocumentsRequest::add_documents(const std::string& value) {
  6348. documents_.Add()->assign(value);
  6349. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6350. }
  6351. inline void BatchGetDocumentsRequest::add_documents(std::string&& value) {
  6352. documents_.Add(std::move(value));
  6353. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6354. }
  6355. inline void BatchGetDocumentsRequest::add_documents(const char* value) {
  6356. GOOGLE_DCHECK(value != nullptr);
  6357. documents_.Add()->assign(value);
  6358. // @@protoc_insertion_point(field_add_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6359. }
  6360. inline void BatchGetDocumentsRequest::add_documents(const char* value, size_t size) {
  6361. documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6362. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6363. }
  6364. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  6365. BatchGetDocumentsRequest::documents() const {
  6366. // @@protoc_insertion_point(field_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6367. return documents_;
  6368. }
  6369. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  6370. BatchGetDocumentsRequest::mutable_documents() {
  6371. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6372. return &documents_;
  6373. }
  6374. // .google.firestore.v1.DocumentMask mask = 3;
  6375. inline bool BatchGetDocumentsRequest::_internal_has_mask() const {
  6376. return this != internal_default_instance() && mask_ != nullptr;
  6377. }
  6378. inline bool BatchGetDocumentsRequest::has_mask() const {
  6379. return _internal_has_mask();
  6380. }
  6381. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::_internal_mask() const {
  6382. const ::google::firestore::v1::DocumentMask* p = mask_;
  6383. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  6384. &::google::firestore::v1::_DocumentMask_default_instance_);
  6385. }
  6386. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::mask() const {
  6387. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6388. return _internal_mask();
  6389. }
  6390. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::release_mask() {
  6391. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6392. ::google::firestore::v1::DocumentMask* temp = mask_;
  6393. mask_ = nullptr;
  6394. return temp;
  6395. }
  6396. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::_internal_mutable_mask() {
  6397. if (mask_ == nullptr) {
  6398. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  6399. mask_ = p;
  6400. }
  6401. return mask_;
  6402. }
  6403. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::mutable_mask() {
  6404. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6405. return _internal_mutable_mask();
  6406. }
  6407. inline void BatchGetDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  6408. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6409. if (message_arena == nullptr) {
  6410. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  6411. }
  6412. if (mask) {
  6413. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6414. if (message_arena != submessage_arena) {
  6415. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6416. message_arena, mask, submessage_arena);
  6417. }
  6418. } else {
  6419. }
  6420. mask_ = mask;
  6421. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6422. }
  6423. // bytes transaction = 4;
  6424. inline bool BatchGetDocumentsRequest::_internal_has_transaction() const {
  6425. return consistency_selector_case() == kTransaction;
  6426. }
  6427. inline void BatchGetDocumentsRequest::set_has_transaction() {
  6428. _oneof_case_[0] = kTransaction;
  6429. }
  6430. inline void BatchGetDocumentsRequest::clear_transaction() {
  6431. if (_internal_has_transaction()) {
  6432. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6433. clear_has_consistency_selector();
  6434. }
  6435. }
  6436. inline const std::string& BatchGetDocumentsRequest::transaction() const {
  6437. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6438. return _internal_transaction();
  6439. }
  6440. inline void BatchGetDocumentsRequest::set_transaction(const std::string& value) {
  6441. _internal_set_transaction(value);
  6442. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6443. }
  6444. inline std::string* BatchGetDocumentsRequest::mutable_transaction() {
  6445. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6446. return _internal_mutable_transaction();
  6447. }
  6448. inline const std::string& BatchGetDocumentsRequest::_internal_transaction() const {
  6449. if (_internal_has_transaction()) {
  6450. return consistency_selector_.transaction_.GetNoArena();
  6451. }
  6452. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  6453. }
  6454. inline void BatchGetDocumentsRequest::_internal_set_transaction(const std::string& value) {
  6455. if (!_internal_has_transaction()) {
  6456. clear_consistency_selector();
  6457. set_has_transaction();
  6458. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6459. }
  6460. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6461. }
  6462. inline void BatchGetDocumentsRequest::set_transaction(std::string&& value) {
  6463. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6464. if (!_internal_has_transaction()) {
  6465. clear_consistency_selector();
  6466. set_has_transaction();
  6467. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6468. }
  6469. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6470. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6471. }
  6472. inline void BatchGetDocumentsRequest::set_transaction(const char* value) {
  6473. GOOGLE_DCHECK(value != nullptr);
  6474. if (!_internal_has_transaction()) {
  6475. clear_consistency_selector();
  6476. set_has_transaction();
  6477. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6478. }
  6479. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6480. ::std::string(value));
  6481. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6482. }
  6483. inline void BatchGetDocumentsRequest::set_transaction(const void* value, size_t size) {
  6484. if (!_internal_has_transaction()) {
  6485. clear_consistency_selector();
  6486. set_has_transaction();
  6487. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6488. }
  6489. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6490. reinterpret_cast<const char*>(value), size));
  6491. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6492. }
  6493. inline std::string* BatchGetDocumentsRequest::_internal_mutable_transaction() {
  6494. if (!_internal_has_transaction()) {
  6495. clear_consistency_selector();
  6496. set_has_transaction();
  6497. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6498. }
  6499. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6500. }
  6501. inline std::string* BatchGetDocumentsRequest::release_transaction() {
  6502. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6503. if (_internal_has_transaction()) {
  6504. clear_has_consistency_selector();
  6505. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6506. } else {
  6507. return nullptr;
  6508. }
  6509. }
  6510. inline void BatchGetDocumentsRequest::set_allocated_transaction(std::string* transaction) {
  6511. if (has_consistency_selector()) {
  6512. clear_consistency_selector();
  6513. }
  6514. if (transaction != nullptr) {
  6515. set_has_transaction();
  6516. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  6517. }
  6518. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6519. }
  6520. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  6521. inline bool BatchGetDocumentsRequest::_internal_has_new_transaction() const {
  6522. return consistency_selector_case() == kNewTransaction;
  6523. }
  6524. inline bool BatchGetDocumentsRequest::has_new_transaction() const {
  6525. return _internal_has_new_transaction();
  6526. }
  6527. inline void BatchGetDocumentsRequest::set_has_new_transaction() {
  6528. _oneof_case_[0] = kNewTransaction;
  6529. }
  6530. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::release_new_transaction() {
  6531. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6532. if (_internal_has_new_transaction()) {
  6533. clear_has_consistency_selector();
  6534. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  6535. consistency_selector_.new_transaction_ = nullptr;
  6536. return temp;
  6537. } else {
  6538. return nullptr;
  6539. }
  6540. }
  6541. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::_internal_new_transaction() const {
  6542. return _internal_has_new_transaction()
  6543. ? *consistency_selector_.new_transaction_
  6544. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  6545. }
  6546. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::new_transaction() const {
  6547. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6548. return _internal_new_transaction();
  6549. }
  6550. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::_internal_mutable_new_transaction() {
  6551. if (!_internal_has_new_transaction()) {
  6552. clear_consistency_selector();
  6553. set_has_new_transaction();
  6554. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  6555. GetArenaNoVirtual());
  6556. }
  6557. return consistency_selector_.new_transaction_;
  6558. }
  6559. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::mutable_new_transaction() {
  6560. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6561. return _internal_mutable_new_transaction();
  6562. }
  6563. // .google.protobuf.Timestamp read_time = 7;
  6564. inline bool BatchGetDocumentsRequest::_internal_has_read_time() const {
  6565. return consistency_selector_case() == kReadTime;
  6566. }
  6567. inline bool BatchGetDocumentsRequest::has_read_time() const {
  6568. return _internal_has_read_time();
  6569. }
  6570. inline void BatchGetDocumentsRequest::set_has_read_time() {
  6571. _oneof_case_[0] = kReadTime;
  6572. }
  6573. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::release_read_time() {
  6574. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6575. if (_internal_has_read_time()) {
  6576. clear_has_consistency_selector();
  6577. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  6578. consistency_selector_.read_time_ = nullptr;
  6579. return temp;
  6580. } else {
  6581. return nullptr;
  6582. }
  6583. }
  6584. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsRequest::_internal_read_time() const {
  6585. return _internal_has_read_time()
  6586. ? *consistency_selector_.read_time_
  6587. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6588. }
  6589. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsRequest::read_time() const {
  6590. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6591. return _internal_read_time();
  6592. }
  6593. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::_internal_mutable_read_time() {
  6594. if (!_internal_has_read_time()) {
  6595. clear_consistency_selector();
  6596. set_has_read_time();
  6597. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  6598. GetArenaNoVirtual());
  6599. }
  6600. return consistency_selector_.read_time_;
  6601. }
  6602. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::mutable_read_time() {
  6603. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6604. return _internal_mutable_read_time();
  6605. }
  6606. inline bool BatchGetDocumentsRequest::has_consistency_selector() const {
  6607. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  6608. }
  6609. inline void BatchGetDocumentsRequest::clear_has_consistency_selector() {
  6610. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  6611. }
  6612. inline BatchGetDocumentsRequest::ConsistencySelectorCase BatchGetDocumentsRequest::consistency_selector_case() const {
  6613. return BatchGetDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
  6614. }
  6615. // -------------------------------------------------------------------
  6616. // BatchGetDocumentsResponse
  6617. // .google.firestore.v1.Document found = 1;
  6618. inline bool BatchGetDocumentsResponse::_internal_has_found() const {
  6619. return result_case() == kFound;
  6620. }
  6621. inline bool BatchGetDocumentsResponse::has_found() const {
  6622. return _internal_has_found();
  6623. }
  6624. inline void BatchGetDocumentsResponse::set_has_found() {
  6625. _oneof_case_[0] = kFound;
  6626. }
  6627. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::release_found() {
  6628. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.found)
  6629. if (_internal_has_found()) {
  6630. clear_has_result();
  6631. ::google::firestore::v1::Document* temp = result_.found_;
  6632. result_.found_ = nullptr;
  6633. return temp;
  6634. } else {
  6635. return nullptr;
  6636. }
  6637. }
  6638. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::_internal_found() const {
  6639. return _internal_has_found()
  6640. ? *result_.found_
  6641. : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
  6642. }
  6643. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::found() const {
  6644. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.found)
  6645. return _internal_found();
  6646. }
  6647. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::_internal_mutable_found() {
  6648. if (!_internal_has_found()) {
  6649. clear_result();
  6650. set_has_found();
  6651. result_.found_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
  6652. GetArenaNoVirtual());
  6653. }
  6654. return result_.found_;
  6655. }
  6656. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::mutable_found() {
  6657. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.found)
  6658. return _internal_mutable_found();
  6659. }
  6660. // string missing = 2;
  6661. inline bool BatchGetDocumentsResponse::_internal_has_missing() const {
  6662. return result_case() == kMissing;
  6663. }
  6664. inline void BatchGetDocumentsResponse::set_has_missing() {
  6665. _oneof_case_[0] = kMissing;
  6666. }
  6667. inline void BatchGetDocumentsResponse::clear_missing() {
  6668. if (_internal_has_missing()) {
  6669. result_.missing_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6670. clear_has_result();
  6671. }
  6672. }
  6673. inline const std::string& BatchGetDocumentsResponse::missing() const {
  6674. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6675. return _internal_missing();
  6676. }
  6677. inline void BatchGetDocumentsResponse::set_missing(const std::string& value) {
  6678. _internal_set_missing(value);
  6679. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6680. }
  6681. inline std::string* BatchGetDocumentsResponse::mutable_missing() {
  6682. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6683. return _internal_mutable_missing();
  6684. }
  6685. inline const std::string& BatchGetDocumentsResponse::_internal_missing() const {
  6686. if (_internal_has_missing()) {
  6687. return result_.missing_.GetNoArena();
  6688. }
  6689. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  6690. }
  6691. inline void BatchGetDocumentsResponse::_internal_set_missing(const std::string& value) {
  6692. if (!_internal_has_missing()) {
  6693. clear_result();
  6694. set_has_missing();
  6695. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6696. }
  6697. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6698. }
  6699. inline void BatchGetDocumentsResponse::set_missing(std::string&& value) {
  6700. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6701. if (!_internal_has_missing()) {
  6702. clear_result();
  6703. set_has_missing();
  6704. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6705. }
  6706. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6707. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6708. }
  6709. inline void BatchGetDocumentsResponse::set_missing(const char* value) {
  6710. GOOGLE_DCHECK(value != nullptr);
  6711. if (!_internal_has_missing()) {
  6712. clear_result();
  6713. set_has_missing();
  6714. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6715. }
  6716. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6717. ::std::string(value));
  6718. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6719. }
  6720. inline void BatchGetDocumentsResponse::set_missing(const char* value, size_t size) {
  6721. if (!_internal_has_missing()) {
  6722. clear_result();
  6723. set_has_missing();
  6724. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6725. }
  6726. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6727. reinterpret_cast<const char*>(value), size));
  6728. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6729. }
  6730. inline std::string* BatchGetDocumentsResponse::_internal_mutable_missing() {
  6731. if (!_internal_has_missing()) {
  6732. clear_result();
  6733. set_has_missing();
  6734. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6735. }
  6736. return result_.missing_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6737. }
  6738. inline std::string* BatchGetDocumentsResponse::release_missing() {
  6739. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6740. if (_internal_has_missing()) {
  6741. clear_has_result();
  6742. return result_.missing_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6743. } else {
  6744. return nullptr;
  6745. }
  6746. }
  6747. inline void BatchGetDocumentsResponse::set_allocated_missing(std::string* missing) {
  6748. if (has_result()) {
  6749. clear_result();
  6750. }
  6751. if (missing != nullptr) {
  6752. set_has_missing();
  6753. result_.missing_.UnsafeSetDefault(missing);
  6754. }
  6755. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6756. }
  6757. // bytes transaction = 3;
  6758. inline void BatchGetDocumentsResponse::clear_transaction() {
  6759. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6760. }
  6761. inline const std::string& BatchGetDocumentsResponse::transaction() const {
  6762. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6763. return _internal_transaction();
  6764. }
  6765. inline void BatchGetDocumentsResponse::set_transaction(const std::string& value) {
  6766. _internal_set_transaction(value);
  6767. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6768. }
  6769. inline std::string* BatchGetDocumentsResponse::mutable_transaction() {
  6770. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6771. return _internal_mutable_transaction();
  6772. }
  6773. inline const std::string& BatchGetDocumentsResponse::_internal_transaction() const {
  6774. return transaction_.GetNoArena();
  6775. }
  6776. inline void BatchGetDocumentsResponse::_internal_set_transaction(const std::string& value) {
  6777. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6778. }
  6779. inline void BatchGetDocumentsResponse::set_transaction(std::string&& value) {
  6780. transaction_.SetNoArena(
  6781. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6782. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6783. }
  6784. inline void BatchGetDocumentsResponse::set_transaction(const char* value) {
  6785. GOOGLE_DCHECK(value != nullptr);
  6786. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6787. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6788. }
  6789. inline void BatchGetDocumentsResponse::set_transaction(const void* value, size_t size) {
  6790. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6791. ::std::string(reinterpret_cast<const char*>(value), size));
  6792. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6793. }
  6794. inline std::string* BatchGetDocumentsResponse::_internal_mutable_transaction() {
  6795. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6796. }
  6797. inline std::string* BatchGetDocumentsResponse::release_transaction() {
  6798. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6799. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6800. }
  6801. inline void BatchGetDocumentsResponse::set_allocated_transaction(std::string* transaction) {
  6802. if (transaction != nullptr) {
  6803. } else {
  6804. }
  6805. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6806. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6807. }
  6808. // .google.protobuf.Timestamp read_time = 4;
  6809. inline bool BatchGetDocumentsResponse::_internal_has_read_time() const {
  6810. return this != internal_default_instance() && read_time_ != nullptr;
  6811. }
  6812. inline bool BatchGetDocumentsResponse::has_read_time() const {
  6813. return _internal_has_read_time();
  6814. }
  6815. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsResponse::_internal_read_time() const {
  6816. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  6817. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  6818. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6819. }
  6820. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsResponse::read_time() const {
  6821. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6822. return _internal_read_time();
  6823. }
  6824. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::release_read_time() {
  6825. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6826. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  6827. read_time_ = nullptr;
  6828. return temp;
  6829. }
  6830. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::_internal_mutable_read_time() {
  6831. if (read_time_ == nullptr) {
  6832. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  6833. read_time_ = p;
  6834. }
  6835. return read_time_;
  6836. }
  6837. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::mutable_read_time() {
  6838. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6839. return _internal_mutable_read_time();
  6840. }
  6841. inline void BatchGetDocumentsResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  6842. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6843. if (message_arena == nullptr) {
  6844. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  6845. }
  6846. if (read_time) {
  6847. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  6848. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  6849. if (message_arena != submessage_arena) {
  6850. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6851. message_arena, read_time, submessage_arena);
  6852. }
  6853. } else {
  6854. }
  6855. read_time_ = read_time;
  6856. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6857. }
  6858. inline bool BatchGetDocumentsResponse::has_result() const {
  6859. return result_case() != RESULT_NOT_SET;
  6860. }
  6861. inline void BatchGetDocumentsResponse::clear_has_result() {
  6862. _oneof_case_[0] = RESULT_NOT_SET;
  6863. }
  6864. inline BatchGetDocumentsResponse::ResultCase BatchGetDocumentsResponse::result_case() const {
  6865. return BatchGetDocumentsResponse::ResultCase(_oneof_case_[0]);
  6866. }
  6867. // -------------------------------------------------------------------
  6868. // BeginTransactionRequest
  6869. // string database = 1;
  6870. inline void BeginTransactionRequest::clear_database() {
  6871. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6872. }
  6873. inline const std::string& BeginTransactionRequest::database() const {
  6874. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.database)
  6875. return _internal_database();
  6876. }
  6877. inline void BeginTransactionRequest::set_database(const std::string& value) {
  6878. _internal_set_database(value);
  6879. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionRequest.database)
  6880. }
  6881. inline std::string* BeginTransactionRequest::mutable_database() {
  6882. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.database)
  6883. return _internal_mutable_database();
  6884. }
  6885. inline const std::string& BeginTransactionRequest::_internal_database() const {
  6886. return database_.GetNoArena();
  6887. }
  6888. inline void BeginTransactionRequest::_internal_set_database(const std::string& value) {
  6889. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6890. }
  6891. inline void BeginTransactionRequest::set_database(std::string&& value) {
  6892. database_.SetNoArena(
  6893. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6894. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BeginTransactionRequest.database)
  6895. }
  6896. inline void BeginTransactionRequest::set_database(const char* value) {
  6897. GOOGLE_DCHECK(value != nullptr);
  6898. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6899. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BeginTransactionRequest.database)
  6900. }
  6901. inline void BeginTransactionRequest::set_database(const char* value, size_t size) {
  6902. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6903. ::std::string(reinterpret_cast<const char*>(value), size));
  6904. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BeginTransactionRequest.database)
  6905. }
  6906. inline std::string* BeginTransactionRequest::_internal_mutable_database() {
  6907. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6908. }
  6909. inline std::string* BeginTransactionRequest::release_database() {
  6910. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.database)
  6911. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6912. }
  6913. inline void BeginTransactionRequest::set_allocated_database(std::string* database) {
  6914. if (database != nullptr) {
  6915. } else {
  6916. }
  6917. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6918. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.database)
  6919. }
  6920. // .google.firestore.v1.TransactionOptions options = 2;
  6921. inline bool BeginTransactionRequest::_internal_has_options() const {
  6922. return this != internal_default_instance() && options_ != nullptr;
  6923. }
  6924. inline bool BeginTransactionRequest::has_options() const {
  6925. return _internal_has_options();
  6926. }
  6927. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::_internal_options() const {
  6928. const ::google::firestore::v1::TransactionOptions* p = options_;
  6929. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::TransactionOptions*>(
  6930. &::google::firestore::v1::_TransactionOptions_default_instance_);
  6931. }
  6932. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::options() const {
  6933. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.options)
  6934. return _internal_options();
  6935. }
  6936. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::release_options() {
  6937. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.options)
  6938. ::google::firestore::v1::TransactionOptions* temp = options_;
  6939. options_ = nullptr;
  6940. return temp;
  6941. }
  6942. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::_internal_mutable_options() {
  6943. if (options_ == nullptr) {
  6944. auto* p = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(GetArenaNoVirtual());
  6945. options_ = p;
  6946. }
  6947. return options_;
  6948. }
  6949. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::mutable_options() {
  6950. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.options)
  6951. return _internal_mutable_options();
  6952. }
  6953. inline void BeginTransactionRequest::set_allocated_options(::google::firestore::v1::TransactionOptions* options) {
  6954. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6955. if (message_arena == nullptr) {
  6956. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  6957. }
  6958. if (options) {
  6959. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6960. if (message_arena != submessage_arena) {
  6961. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6962. message_arena, options, submessage_arena);
  6963. }
  6964. } else {
  6965. }
  6966. options_ = options;
  6967. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.options)
  6968. }
  6969. // -------------------------------------------------------------------
  6970. // BeginTransactionResponse
  6971. // bytes transaction = 1;
  6972. inline void BeginTransactionResponse::clear_transaction() {
  6973. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6974. }
  6975. inline const std::string& BeginTransactionResponse::transaction() const {
  6976. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionResponse.transaction)
  6977. return _internal_transaction();
  6978. }
  6979. inline void BeginTransactionResponse::set_transaction(const std::string& value) {
  6980. _internal_set_transaction(value);
  6981. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionResponse.transaction)
  6982. }
  6983. inline std::string* BeginTransactionResponse::mutable_transaction() {
  6984. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionResponse.transaction)
  6985. return _internal_mutable_transaction();
  6986. }
  6987. inline const std::string& BeginTransactionResponse::_internal_transaction() const {
  6988. return transaction_.GetNoArena();
  6989. }
  6990. inline void BeginTransactionResponse::_internal_set_transaction(const std::string& value) {
  6991. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6992. }
  6993. inline void BeginTransactionResponse::set_transaction(std::string&& value) {
  6994. transaction_.SetNoArena(
  6995. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6996. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BeginTransactionResponse.transaction)
  6997. }
  6998. inline void BeginTransactionResponse::set_transaction(const char* value) {
  6999. GOOGLE_DCHECK(value != nullptr);
  7000. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7001. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BeginTransactionResponse.transaction)
  7002. }
  7003. inline void BeginTransactionResponse::set_transaction(const void* value, size_t size) {
  7004. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7005. ::std::string(reinterpret_cast<const char*>(value), size));
  7006. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BeginTransactionResponse.transaction)
  7007. }
  7008. inline std::string* BeginTransactionResponse::_internal_mutable_transaction() {
  7009. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7010. }
  7011. inline std::string* BeginTransactionResponse::release_transaction() {
  7012. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionResponse.transaction)
  7013. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7014. }
  7015. inline void BeginTransactionResponse::set_allocated_transaction(std::string* transaction) {
  7016. if (transaction != nullptr) {
  7017. } else {
  7018. }
  7019. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7020. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionResponse.transaction)
  7021. }
  7022. // -------------------------------------------------------------------
  7023. // CommitRequest
  7024. // string database = 1;
  7025. inline void CommitRequest::clear_database() {
  7026. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7027. }
  7028. inline const std::string& CommitRequest::database() const {
  7029. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.database)
  7030. return _internal_database();
  7031. }
  7032. inline void CommitRequest::set_database(const std::string& value) {
  7033. _internal_set_database(value);
  7034. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.database)
  7035. }
  7036. inline std::string* CommitRequest::mutable_database() {
  7037. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.database)
  7038. return _internal_mutable_database();
  7039. }
  7040. inline const std::string& CommitRequest::_internal_database() const {
  7041. return database_.GetNoArena();
  7042. }
  7043. inline void CommitRequest::_internal_set_database(const std::string& value) {
  7044. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7045. }
  7046. inline void CommitRequest::set_database(std::string&& value) {
  7047. database_.SetNoArena(
  7048. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7049. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CommitRequest.database)
  7050. }
  7051. inline void CommitRequest::set_database(const char* value) {
  7052. GOOGLE_DCHECK(value != nullptr);
  7053. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7054. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CommitRequest.database)
  7055. }
  7056. inline void CommitRequest::set_database(const char* value, size_t size) {
  7057. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7058. ::std::string(reinterpret_cast<const char*>(value), size));
  7059. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CommitRequest.database)
  7060. }
  7061. inline std::string* CommitRequest::_internal_mutable_database() {
  7062. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7063. }
  7064. inline std::string* CommitRequest::release_database() {
  7065. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.database)
  7066. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7067. }
  7068. inline void CommitRequest::set_allocated_database(std::string* database) {
  7069. if (database != nullptr) {
  7070. } else {
  7071. }
  7072. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  7073. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.database)
  7074. }
  7075. // repeated .google.firestore.v1.Write writes = 2;
  7076. inline int CommitRequest::_internal_writes_size() const {
  7077. return writes_.size();
  7078. }
  7079. inline int CommitRequest::writes_size() const {
  7080. return _internal_writes_size();
  7081. }
  7082. inline ::google::firestore::v1::Write* CommitRequest::mutable_writes(int index) {
  7083. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.writes)
  7084. return writes_.Mutable(index);
  7085. }
  7086. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  7087. CommitRequest::mutable_writes() {
  7088. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitRequest.writes)
  7089. return &writes_;
  7090. }
  7091. inline const ::google::firestore::v1::Write& CommitRequest::_internal_writes(int index) const {
  7092. return writes_.Get(index);
  7093. }
  7094. inline const ::google::firestore::v1::Write& CommitRequest::writes(int index) const {
  7095. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.writes)
  7096. return _internal_writes(index);
  7097. }
  7098. inline ::google::firestore::v1::Write* CommitRequest::_internal_add_writes() {
  7099. return writes_.Add();
  7100. }
  7101. inline ::google::firestore::v1::Write* CommitRequest::add_writes() {
  7102. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitRequest.writes)
  7103. return _internal_add_writes();
  7104. }
  7105. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  7106. CommitRequest::writes() const {
  7107. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitRequest.writes)
  7108. return writes_;
  7109. }
  7110. // bytes transaction = 3;
  7111. inline void CommitRequest::clear_transaction() {
  7112. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7113. }
  7114. inline const std::string& CommitRequest::transaction() const {
  7115. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.transaction)
  7116. return _internal_transaction();
  7117. }
  7118. inline void CommitRequest::set_transaction(const std::string& value) {
  7119. _internal_set_transaction(value);
  7120. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.transaction)
  7121. }
  7122. inline std::string* CommitRequest::mutable_transaction() {
  7123. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.transaction)
  7124. return _internal_mutable_transaction();
  7125. }
  7126. inline const std::string& CommitRequest::_internal_transaction() const {
  7127. return transaction_.GetNoArena();
  7128. }
  7129. inline void CommitRequest::_internal_set_transaction(const std::string& value) {
  7130. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7131. }
  7132. inline void CommitRequest::set_transaction(std::string&& value) {
  7133. transaction_.SetNoArena(
  7134. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7135. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CommitRequest.transaction)
  7136. }
  7137. inline void CommitRequest::set_transaction(const char* value) {
  7138. GOOGLE_DCHECK(value != nullptr);
  7139. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7140. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CommitRequest.transaction)
  7141. }
  7142. inline void CommitRequest::set_transaction(const void* value, size_t size) {
  7143. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7144. ::std::string(reinterpret_cast<const char*>(value), size));
  7145. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CommitRequest.transaction)
  7146. }
  7147. inline std::string* CommitRequest::_internal_mutable_transaction() {
  7148. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7149. }
  7150. inline std::string* CommitRequest::release_transaction() {
  7151. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.transaction)
  7152. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7153. }
  7154. inline void CommitRequest::set_allocated_transaction(std::string* transaction) {
  7155. if (transaction != nullptr) {
  7156. } else {
  7157. }
  7158. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7159. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.transaction)
  7160. }
  7161. // -------------------------------------------------------------------
  7162. // CommitResponse
  7163. // repeated .google.firestore.v1.WriteResult write_results = 1;
  7164. inline int CommitResponse::_internal_write_results_size() const {
  7165. return write_results_.size();
  7166. }
  7167. inline int CommitResponse::write_results_size() const {
  7168. return _internal_write_results_size();
  7169. }
  7170. inline ::google::firestore::v1::WriteResult* CommitResponse::mutable_write_results(int index) {
  7171. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.write_results)
  7172. return write_results_.Mutable(index);
  7173. }
  7174. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  7175. CommitResponse::mutable_write_results() {
  7176. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitResponse.write_results)
  7177. return &write_results_;
  7178. }
  7179. inline const ::google::firestore::v1::WriteResult& CommitResponse::_internal_write_results(int index) const {
  7180. return write_results_.Get(index);
  7181. }
  7182. inline const ::google::firestore::v1::WriteResult& CommitResponse::write_results(int index) const {
  7183. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.write_results)
  7184. return _internal_write_results(index);
  7185. }
  7186. inline ::google::firestore::v1::WriteResult* CommitResponse::_internal_add_write_results() {
  7187. return write_results_.Add();
  7188. }
  7189. inline ::google::firestore::v1::WriteResult* CommitResponse::add_write_results() {
  7190. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitResponse.write_results)
  7191. return _internal_add_write_results();
  7192. }
  7193. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  7194. CommitResponse::write_results() const {
  7195. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitResponse.write_results)
  7196. return write_results_;
  7197. }
  7198. // .google.protobuf.Timestamp commit_time = 2;
  7199. inline bool CommitResponse::_internal_has_commit_time() const {
  7200. return this != internal_default_instance() && commit_time_ != nullptr;
  7201. }
  7202. inline bool CommitResponse::has_commit_time() const {
  7203. return _internal_has_commit_time();
  7204. }
  7205. inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommitResponse::_internal_commit_time() const {
  7206. const PROTOBUF_NAMESPACE_ID::Timestamp* p = commit_time_;
  7207. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  7208. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7209. }
  7210. inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommitResponse::commit_time() const {
  7211. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.commit_time)
  7212. return _internal_commit_time();
  7213. }
  7214. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::release_commit_time() {
  7215. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitResponse.commit_time)
  7216. PROTOBUF_NAMESPACE_ID::Timestamp* temp = commit_time_;
  7217. commit_time_ = nullptr;
  7218. return temp;
  7219. }
  7220. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::_internal_mutable_commit_time() {
  7221. if (commit_time_ == nullptr) {
  7222. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  7223. commit_time_ = p;
  7224. }
  7225. return commit_time_;
  7226. }
  7227. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::mutable_commit_time() {
  7228. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.commit_time)
  7229. return _internal_mutable_commit_time();
  7230. }
  7231. inline void CommitResponse::set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time) {
  7232. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7233. if (message_arena == nullptr) {
  7234. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time_);
  7235. }
  7236. if (commit_time) {
  7237. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7238. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time)->GetArena();
  7239. if (message_arena != submessage_arena) {
  7240. commit_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7241. message_arena, commit_time, submessage_arena);
  7242. }
  7243. } else {
  7244. }
  7245. commit_time_ = commit_time;
  7246. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitResponse.commit_time)
  7247. }
  7248. // -------------------------------------------------------------------
  7249. // RollbackRequest
  7250. // string database = 1;
  7251. inline void RollbackRequest::clear_database() {
  7252. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7253. }
  7254. inline const std::string& RollbackRequest::database() const {
  7255. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.database)
  7256. return _internal_database();
  7257. }
  7258. inline void RollbackRequest::set_database(const std::string& value) {
  7259. _internal_set_database(value);
  7260. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.database)
  7261. }
  7262. inline std::string* RollbackRequest::mutable_database() {
  7263. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.database)
  7264. return _internal_mutable_database();
  7265. }
  7266. inline const std::string& RollbackRequest::_internal_database() const {
  7267. return database_.GetNoArena();
  7268. }
  7269. inline void RollbackRequest::_internal_set_database(const std::string& value) {
  7270. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7271. }
  7272. inline void RollbackRequest::set_database(std::string&& value) {
  7273. database_.SetNoArena(
  7274. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7275. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RollbackRequest.database)
  7276. }
  7277. inline void RollbackRequest::set_database(const char* value) {
  7278. GOOGLE_DCHECK(value != nullptr);
  7279. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7280. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RollbackRequest.database)
  7281. }
  7282. inline void RollbackRequest::set_database(const char* value, size_t size) {
  7283. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7284. ::std::string(reinterpret_cast<const char*>(value), size));
  7285. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RollbackRequest.database)
  7286. }
  7287. inline std::string* RollbackRequest::_internal_mutable_database() {
  7288. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7289. }
  7290. inline std::string* RollbackRequest::release_database() {
  7291. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.database)
  7292. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7293. }
  7294. inline void RollbackRequest::set_allocated_database(std::string* database) {
  7295. if (database != nullptr) {
  7296. } else {
  7297. }
  7298. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  7299. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.database)
  7300. }
  7301. // bytes transaction = 2;
  7302. inline void RollbackRequest::clear_transaction() {
  7303. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7304. }
  7305. inline const std::string& RollbackRequest::transaction() const {
  7306. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.transaction)
  7307. return _internal_transaction();
  7308. }
  7309. inline void RollbackRequest::set_transaction(const std::string& value) {
  7310. _internal_set_transaction(value);
  7311. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.transaction)
  7312. }
  7313. inline std::string* RollbackRequest::mutable_transaction() {
  7314. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.transaction)
  7315. return _internal_mutable_transaction();
  7316. }
  7317. inline const std::string& RollbackRequest::_internal_transaction() const {
  7318. return transaction_.GetNoArena();
  7319. }
  7320. inline void RollbackRequest::_internal_set_transaction(const std::string& value) {
  7321. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7322. }
  7323. inline void RollbackRequest::set_transaction(std::string&& value) {
  7324. transaction_.SetNoArena(
  7325. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7326. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RollbackRequest.transaction)
  7327. }
  7328. inline void RollbackRequest::set_transaction(const char* value) {
  7329. GOOGLE_DCHECK(value != nullptr);
  7330. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7331. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RollbackRequest.transaction)
  7332. }
  7333. inline void RollbackRequest::set_transaction(const void* value, size_t size) {
  7334. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7335. ::std::string(reinterpret_cast<const char*>(value), size));
  7336. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RollbackRequest.transaction)
  7337. }
  7338. inline std::string* RollbackRequest::_internal_mutable_transaction() {
  7339. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7340. }
  7341. inline std::string* RollbackRequest::release_transaction() {
  7342. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.transaction)
  7343. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7344. }
  7345. inline void RollbackRequest::set_allocated_transaction(std::string* transaction) {
  7346. if (transaction != nullptr) {
  7347. } else {
  7348. }
  7349. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7350. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.transaction)
  7351. }
  7352. // -------------------------------------------------------------------
  7353. // RunQueryRequest
  7354. // string parent = 1;
  7355. inline void RunQueryRequest::clear_parent() {
  7356. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7357. }
  7358. inline const std::string& RunQueryRequest::parent() const {
  7359. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.parent)
  7360. return _internal_parent();
  7361. }
  7362. inline void RunQueryRequest::set_parent(const std::string& value) {
  7363. _internal_set_parent(value);
  7364. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.parent)
  7365. }
  7366. inline std::string* RunQueryRequest::mutable_parent() {
  7367. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.parent)
  7368. return _internal_mutable_parent();
  7369. }
  7370. inline const std::string& RunQueryRequest::_internal_parent() const {
  7371. return parent_.GetNoArena();
  7372. }
  7373. inline void RunQueryRequest::_internal_set_parent(const std::string& value) {
  7374. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7375. }
  7376. inline void RunQueryRequest::set_parent(std::string&& value) {
  7377. parent_.SetNoArena(
  7378. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7379. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryRequest.parent)
  7380. }
  7381. inline void RunQueryRequest::set_parent(const char* value) {
  7382. GOOGLE_DCHECK(value != nullptr);
  7383. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7384. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryRequest.parent)
  7385. }
  7386. inline void RunQueryRequest::set_parent(const char* value, size_t size) {
  7387. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7388. ::std::string(reinterpret_cast<const char*>(value), size));
  7389. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryRequest.parent)
  7390. }
  7391. inline std::string* RunQueryRequest::_internal_mutable_parent() {
  7392. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7393. }
  7394. inline std::string* RunQueryRequest::release_parent() {
  7395. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.parent)
  7396. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7397. }
  7398. inline void RunQueryRequest::set_allocated_parent(std::string* parent) {
  7399. if (parent != nullptr) {
  7400. } else {
  7401. }
  7402. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  7403. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.parent)
  7404. }
  7405. // .google.firestore.v1.StructuredQuery structured_query = 2;
  7406. inline bool RunQueryRequest::_internal_has_structured_query() const {
  7407. return query_type_case() == kStructuredQuery;
  7408. }
  7409. inline bool RunQueryRequest::has_structured_query() const {
  7410. return _internal_has_structured_query();
  7411. }
  7412. inline void RunQueryRequest::set_has_structured_query() {
  7413. _oneof_case_[0] = kStructuredQuery;
  7414. }
  7415. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::release_structured_query() {
  7416. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.structured_query)
  7417. if (_internal_has_structured_query()) {
  7418. clear_has_query_type();
  7419. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  7420. query_type_.structured_query_ = nullptr;
  7421. return temp;
  7422. } else {
  7423. return nullptr;
  7424. }
  7425. }
  7426. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::_internal_structured_query() const {
  7427. return _internal_has_structured_query()
  7428. ? *query_type_.structured_query_
  7429. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  7430. }
  7431. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::structured_query() const {
  7432. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.structured_query)
  7433. return _internal_structured_query();
  7434. }
  7435. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::_internal_mutable_structured_query() {
  7436. if (!_internal_has_structured_query()) {
  7437. clear_query_type();
  7438. set_has_structured_query();
  7439. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  7440. GetArenaNoVirtual());
  7441. }
  7442. return query_type_.structured_query_;
  7443. }
  7444. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::mutable_structured_query() {
  7445. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.structured_query)
  7446. return _internal_mutable_structured_query();
  7447. }
  7448. // bytes transaction = 5;
  7449. inline bool RunQueryRequest::_internal_has_transaction() const {
  7450. return consistency_selector_case() == kTransaction;
  7451. }
  7452. inline void RunQueryRequest::set_has_transaction() {
  7453. _oneof_case_[1] = kTransaction;
  7454. }
  7455. inline void RunQueryRequest::clear_transaction() {
  7456. if (_internal_has_transaction()) {
  7457. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7458. clear_has_consistency_selector();
  7459. }
  7460. }
  7461. inline const std::string& RunQueryRequest::transaction() const {
  7462. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.transaction)
  7463. return _internal_transaction();
  7464. }
  7465. inline void RunQueryRequest::set_transaction(const std::string& value) {
  7466. _internal_set_transaction(value);
  7467. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  7468. }
  7469. inline std::string* RunQueryRequest::mutable_transaction() {
  7470. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.transaction)
  7471. return _internal_mutable_transaction();
  7472. }
  7473. inline const std::string& RunQueryRequest::_internal_transaction() const {
  7474. if (_internal_has_transaction()) {
  7475. return consistency_selector_.transaction_.GetNoArena();
  7476. }
  7477. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  7478. }
  7479. inline void RunQueryRequest::_internal_set_transaction(const std::string& value) {
  7480. if (!_internal_has_transaction()) {
  7481. clear_consistency_selector();
  7482. set_has_transaction();
  7483. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7484. }
  7485. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7486. }
  7487. inline void RunQueryRequest::set_transaction(std::string&& value) {
  7488. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  7489. if (!_internal_has_transaction()) {
  7490. clear_consistency_selector();
  7491. set_has_transaction();
  7492. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7493. }
  7494. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7495. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryRequest.transaction)
  7496. }
  7497. inline void RunQueryRequest::set_transaction(const char* value) {
  7498. GOOGLE_DCHECK(value != nullptr);
  7499. if (!_internal_has_transaction()) {
  7500. clear_consistency_selector();
  7501. set_has_transaction();
  7502. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7503. }
  7504. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7505. ::std::string(value));
  7506. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryRequest.transaction)
  7507. }
  7508. inline void RunQueryRequest::set_transaction(const void* value, size_t size) {
  7509. if (!_internal_has_transaction()) {
  7510. clear_consistency_selector();
  7511. set_has_transaction();
  7512. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7513. }
  7514. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7515. reinterpret_cast<const char*>(value), size));
  7516. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryRequest.transaction)
  7517. }
  7518. inline std::string* RunQueryRequest::_internal_mutable_transaction() {
  7519. if (!_internal_has_transaction()) {
  7520. clear_consistency_selector();
  7521. set_has_transaction();
  7522. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7523. }
  7524. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7525. }
  7526. inline std::string* RunQueryRequest::release_transaction() {
  7527. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.transaction)
  7528. if (_internal_has_transaction()) {
  7529. clear_has_consistency_selector();
  7530. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7531. } else {
  7532. return nullptr;
  7533. }
  7534. }
  7535. inline void RunQueryRequest::set_allocated_transaction(std::string* transaction) {
  7536. if (has_consistency_selector()) {
  7537. clear_consistency_selector();
  7538. }
  7539. if (transaction != nullptr) {
  7540. set_has_transaction();
  7541. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  7542. }
  7543. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.transaction)
  7544. }
  7545. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  7546. inline bool RunQueryRequest::_internal_has_new_transaction() const {
  7547. return consistency_selector_case() == kNewTransaction;
  7548. }
  7549. inline bool RunQueryRequest::has_new_transaction() const {
  7550. return _internal_has_new_transaction();
  7551. }
  7552. inline void RunQueryRequest::set_has_new_transaction() {
  7553. _oneof_case_[1] = kNewTransaction;
  7554. }
  7555. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::release_new_transaction() {
  7556. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.new_transaction)
  7557. if (_internal_has_new_transaction()) {
  7558. clear_has_consistency_selector();
  7559. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  7560. consistency_selector_.new_transaction_ = nullptr;
  7561. return temp;
  7562. } else {
  7563. return nullptr;
  7564. }
  7565. }
  7566. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::_internal_new_transaction() const {
  7567. return _internal_has_new_transaction()
  7568. ? *consistency_selector_.new_transaction_
  7569. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  7570. }
  7571. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::new_transaction() const {
  7572. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.new_transaction)
  7573. return _internal_new_transaction();
  7574. }
  7575. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::_internal_mutable_new_transaction() {
  7576. if (!_internal_has_new_transaction()) {
  7577. clear_consistency_selector();
  7578. set_has_new_transaction();
  7579. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  7580. GetArenaNoVirtual());
  7581. }
  7582. return consistency_selector_.new_transaction_;
  7583. }
  7584. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::mutable_new_transaction() {
  7585. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.new_transaction)
  7586. return _internal_mutable_new_transaction();
  7587. }
  7588. // .google.protobuf.Timestamp read_time = 7;
  7589. inline bool RunQueryRequest::_internal_has_read_time() const {
  7590. return consistency_selector_case() == kReadTime;
  7591. }
  7592. inline bool RunQueryRequest::has_read_time() const {
  7593. return _internal_has_read_time();
  7594. }
  7595. inline void RunQueryRequest::set_has_read_time() {
  7596. _oneof_case_[1] = kReadTime;
  7597. }
  7598. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::release_read_time() {
  7599. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.read_time)
  7600. if (_internal_has_read_time()) {
  7601. clear_has_consistency_selector();
  7602. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  7603. consistency_selector_.read_time_ = nullptr;
  7604. return temp;
  7605. } else {
  7606. return nullptr;
  7607. }
  7608. }
  7609. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryRequest::_internal_read_time() const {
  7610. return _internal_has_read_time()
  7611. ? *consistency_selector_.read_time_
  7612. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7613. }
  7614. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryRequest::read_time() const {
  7615. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.read_time)
  7616. return _internal_read_time();
  7617. }
  7618. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::_internal_mutable_read_time() {
  7619. if (!_internal_has_read_time()) {
  7620. clear_consistency_selector();
  7621. set_has_read_time();
  7622. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  7623. GetArenaNoVirtual());
  7624. }
  7625. return consistency_selector_.read_time_;
  7626. }
  7627. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::mutable_read_time() {
  7628. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.read_time)
  7629. return _internal_mutable_read_time();
  7630. }
  7631. inline bool RunQueryRequest::has_query_type() const {
  7632. return query_type_case() != QUERY_TYPE_NOT_SET;
  7633. }
  7634. inline void RunQueryRequest::clear_has_query_type() {
  7635. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  7636. }
  7637. inline bool RunQueryRequest::has_consistency_selector() const {
  7638. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  7639. }
  7640. inline void RunQueryRequest::clear_has_consistency_selector() {
  7641. _oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  7642. }
  7643. inline RunQueryRequest::QueryTypeCase RunQueryRequest::query_type_case() const {
  7644. return RunQueryRequest::QueryTypeCase(_oneof_case_[0]);
  7645. }
  7646. inline RunQueryRequest::ConsistencySelectorCase RunQueryRequest::consistency_selector_case() const {
  7647. return RunQueryRequest::ConsistencySelectorCase(_oneof_case_[1]);
  7648. }
  7649. // -------------------------------------------------------------------
  7650. // RunQueryResponse
  7651. // bytes transaction = 2;
  7652. inline void RunQueryResponse::clear_transaction() {
  7653. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7654. }
  7655. inline const std::string& RunQueryResponse::transaction() const {
  7656. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.transaction)
  7657. return _internal_transaction();
  7658. }
  7659. inline void RunQueryResponse::set_transaction(const std::string& value) {
  7660. _internal_set_transaction(value);
  7661. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.transaction)
  7662. }
  7663. inline std::string* RunQueryResponse::mutable_transaction() {
  7664. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.transaction)
  7665. return _internal_mutable_transaction();
  7666. }
  7667. inline const std::string& RunQueryResponse::_internal_transaction() const {
  7668. return transaction_.GetNoArena();
  7669. }
  7670. inline void RunQueryResponse::_internal_set_transaction(const std::string& value) {
  7671. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7672. }
  7673. inline void RunQueryResponse::set_transaction(std::string&& value) {
  7674. transaction_.SetNoArena(
  7675. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7676. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryResponse.transaction)
  7677. }
  7678. inline void RunQueryResponse::set_transaction(const char* value) {
  7679. GOOGLE_DCHECK(value != nullptr);
  7680. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7681. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryResponse.transaction)
  7682. }
  7683. inline void RunQueryResponse::set_transaction(const void* value, size_t size) {
  7684. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7685. ::std::string(reinterpret_cast<const char*>(value), size));
  7686. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryResponse.transaction)
  7687. }
  7688. inline std::string* RunQueryResponse::_internal_mutable_transaction() {
  7689. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7690. }
  7691. inline std::string* RunQueryResponse::release_transaction() {
  7692. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.transaction)
  7693. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7694. }
  7695. inline void RunQueryResponse::set_allocated_transaction(std::string* transaction) {
  7696. if (transaction != nullptr) {
  7697. } else {
  7698. }
  7699. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7700. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.transaction)
  7701. }
  7702. // .google.firestore.v1.Document document = 1;
  7703. inline bool RunQueryResponse::_internal_has_document() const {
  7704. return this != internal_default_instance() && document_ != nullptr;
  7705. }
  7706. inline bool RunQueryResponse::has_document() const {
  7707. return _internal_has_document();
  7708. }
  7709. inline const ::google::firestore::v1::Document& RunQueryResponse::_internal_document() const {
  7710. const ::google::firestore::v1::Document* p = document_;
  7711. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  7712. &::google::firestore::v1::_Document_default_instance_);
  7713. }
  7714. inline const ::google::firestore::v1::Document& RunQueryResponse::document() const {
  7715. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.document)
  7716. return _internal_document();
  7717. }
  7718. inline ::google::firestore::v1::Document* RunQueryResponse::release_document() {
  7719. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.document)
  7720. ::google::firestore::v1::Document* temp = document_;
  7721. document_ = nullptr;
  7722. return temp;
  7723. }
  7724. inline ::google::firestore::v1::Document* RunQueryResponse::_internal_mutable_document() {
  7725. if (document_ == nullptr) {
  7726. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  7727. document_ = p;
  7728. }
  7729. return document_;
  7730. }
  7731. inline ::google::firestore::v1::Document* RunQueryResponse::mutable_document() {
  7732. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.document)
  7733. return _internal_mutable_document();
  7734. }
  7735. inline void RunQueryResponse::set_allocated_document(::google::firestore::v1::Document* document) {
  7736. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7737. if (message_arena == nullptr) {
  7738. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  7739. }
  7740. if (document) {
  7741. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  7742. if (message_arena != submessage_arena) {
  7743. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7744. message_arena, document, submessage_arena);
  7745. }
  7746. } else {
  7747. }
  7748. document_ = document;
  7749. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.document)
  7750. }
  7751. // .google.protobuf.Timestamp read_time = 3;
  7752. inline bool RunQueryResponse::_internal_has_read_time() const {
  7753. return this != internal_default_instance() && read_time_ != nullptr;
  7754. }
  7755. inline bool RunQueryResponse::has_read_time() const {
  7756. return _internal_has_read_time();
  7757. }
  7758. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryResponse::_internal_read_time() const {
  7759. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  7760. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  7761. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7762. }
  7763. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryResponse::read_time() const {
  7764. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.read_time)
  7765. return _internal_read_time();
  7766. }
  7767. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::release_read_time() {
  7768. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.read_time)
  7769. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  7770. read_time_ = nullptr;
  7771. return temp;
  7772. }
  7773. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::_internal_mutable_read_time() {
  7774. if (read_time_ == nullptr) {
  7775. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  7776. read_time_ = p;
  7777. }
  7778. return read_time_;
  7779. }
  7780. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::mutable_read_time() {
  7781. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.read_time)
  7782. return _internal_mutable_read_time();
  7783. }
  7784. inline void RunQueryResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  7785. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7786. if (message_arena == nullptr) {
  7787. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  7788. }
  7789. if (read_time) {
  7790. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7791. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  7792. if (message_arena != submessage_arena) {
  7793. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7794. message_arena, read_time, submessage_arena);
  7795. }
  7796. } else {
  7797. }
  7798. read_time_ = read_time;
  7799. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.read_time)
  7800. }
  7801. // int32 skipped_results = 4;
  7802. inline void RunQueryResponse::clear_skipped_results() {
  7803. skipped_results_ = 0;
  7804. }
  7805. inline ::PROTOBUF_NAMESPACE_ID::int32 RunQueryResponse::_internal_skipped_results() const {
  7806. return skipped_results_;
  7807. }
  7808. inline ::PROTOBUF_NAMESPACE_ID::int32 RunQueryResponse::skipped_results() const {
  7809. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.skipped_results)
  7810. return _internal_skipped_results();
  7811. }
  7812. inline void RunQueryResponse::_internal_set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7813. skipped_results_ = value;
  7814. }
  7815. inline void RunQueryResponse::set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7816. _internal_set_skipped_results(value);
  7817. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.skipped_results)
  7818. }
  7819. // -------------------------------------------------------------------
  7820. // RunAggregationQueryRequest
  7821. // string parent = 1;
  7822. inline void RunAggregationQueryRequest::clear_parent() {
  7823. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7824. }
  7825. inline const std::string& RunAggregationQueryRequest::parent() const {
  7826. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.parent)
  7827. return _internal_parent();
  7828. }
  7829. inline void RunAggregationQueryRequest::set_parent(const std::string& value) {
  7830. _internal_set_parent(value);
  7831. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryRequest.parent)
  7832. }
  7833. inline std::string* RunAggregationQueryRequest::mutable_parent() {
  7834. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.parent)
  7835. return _internal_mutable_parent();
  7836. }
  7837. inline const std::string& RunAggregationQueryRequest::_internal_parent() const {
  7838. return parent_.GetNoArena();
  7839. }
  7840. inline void RunAggregationQueryRequest::_internal_set_parent(const std::string& value) {
  7841. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7842. }
  7843. inline void RunAggregationQueryRequest::set_parent(std::string&& value) {
  7844. parent_.SetNoArena(
  7845. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7846. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunAggregationQueryRequest.parent)
  7847. }
  7848. inline void RunAggregationQueryRequest::set_parent(const char* value) {
  7849. GOOGLE_DCHECK(value != nullptr);
  7850. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7851. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunAggregationQueryRequest.parent)
  7852. }
  7853. inline void RunAggregationQueryRequest::set_parent(const char* value, size_t size) {
  7854. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7855. ::std::string(reinterpret_cast<const char*>(value), size));
  7856. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunAggregationQueryRequest.parent)
  7857. }
  7858. inline std::string* RunAggregationQueryRequest::_internal_mutable_parent() {
  7859. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7860. }
  7861. inline std::string* RunAggregationQueryRequest::release_parent() {
  7862. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.parent)
  7863. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7864. }
  7865. inline void RunAggregationQueryRequest::set_allocated_parent(std::string* parent) {
  7866. if (parent != nullptr) {
  7867. } else {
  7868. }
  7869. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  7870. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.parent)
  7871. }
  7872. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  7873. inline bool RunAggregationQueryRequest::_internal_has_structured_aggregation_query() const {
  7874. return query_type_case() == kStructuredAggregationQuery;
  7875. }
  7876. inline bool RunAggregationQueryRequest::has_structured_aggregation_query() const {
  7877. return _internal_has_structured_aggregation_query();
  7878. }
  7879. inline void RunAggregationQueryRequest::set_has_structured_aggregation_query() {
  7880. _oneof_case_[0] = kStructuredAggregationQuery;
  7881. }
  7882. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::release_structured_aggregation_query() {
  7883. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  7884. if (_internal_has_structured_aggregation_query()) {
  7885. clear_has_query_type();
  7886. ::google::firestore::v1::StructuredAggregationQuery* temp = query_type_.structured_aggregation_query_;
  7887. query_type_.structured_aggregation_query_ = nullptr;
  7888. return temp;
  7889. } else {
  7890. return nullptr;
  7891. }
  7892. }
  7893. inline const ::google::firestore::v1::StructuredAggregationQuery& RunAggregationQueryRequest::_internal_structured_aggregation_query() const {
  7894. return _internal_has_structured_aggregation_query()
  7895. ? *query_type_.structured_aggregation_query_
  7896. : *reinterpret_cast< ::google::firestore::v1::StructuredAggregationQuery*>(&::google::firestore::v1::_StructuredAggregationQuery_default_instance_);
  7897. }
  7898. inline const ::google::firestore::v1::StructuredAggregationQuery& RunAggregationQueryRequest::structured_aggregation_query() const {
  7899. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  7900. return _internal_structured_aggregation_query();
  7901. }
  7902. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::_internal_mutable_structured_aggregation_query() {
  7903. if (!_internal_has_structured_aggregation_query()) {
  7904. clear_query_type();
  7905. set_has_structured_aggregation_query();
  7906. query_type_.structured_aggregation_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredAggregationQuery >(
  7907. GetArenaNoVirtual());
  7908. }
  7909. return query_type_.structured_aggregation_query_;
  7910. }
  7911. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::mutable_structured_aggregation_query() {
  7912. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  7913. return _internal_mutable_structured_aggregation_query();
  7914. }
  7915. // bytes transaction = 4;
  7916. inline bool RunAggregationQueryRequest::_internal_has_transaction() const {
  7917. return consistency_selector_case() == kTransaction;
  7918. }
  7919. inline void RunAggregationQueryRequest::set_has_transaction() {
  7920. _oneof_case_[1] = kTransaction;
  7921. }
  7922. inline void RunAggregationQueryRequest::clear_transaction() {
  7923. if (_internal_has_transaction()) {
  7924. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7925. clear_has_consistency_selector();
  7926. }
  7927. }
  7928. inline const std::string& RunAggregationQueryRequest::transaction() const {
  7929. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7930. return _internal_transaction();
  7931. }
  7932. inline void RunAggregationQueryRequest::set_transaction(const std::string& value) {
  7933. _internal_set_transaction(value);
  7934. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7935. }
  7936. inline std::string* RunAggregationQueryRequest::mutable_transaction() {
  7937. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7938. return _internal_mutable_transaction();
  7939. }
  7940. inline const std::string& RunAggregationQueryRequest::_internal_transaction() const {
  7941. if (_internal_has_transaction()) {
  7942. return consistency_selector_.transaction_.GetNoArena();
  7943. }
  7944. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  7945. }
  7946. inline void RunAggregationQueryRequest::_internal_set_transaction(const std::string& value) {
  7947. if (!_internal_has_transaction()) {
  7948. clear_consistency_selector();
  7949. set_has_transaction();
  7950. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7951. }
  7952. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7953. }
  7954. inline void RunAggregationQueryRequest::set_transaction(std::string&& value) {
  7955. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7956. if (!_internal_has_transaction()) {
  7957. clear_consistency_selector();
  7958. set_has_transaction();
  7959. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7960. }
  7961. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7962. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7963. }
  7964. inline void RunAggregationQueryRequest::set_transaction(const char* value) {
  7965. GOOGLE_DCHECK(value != nullptr);
  7966. if (!_internal_has_transaction()) {
  7967. clear_consistency_selector();
  7968. set_has_transaction();
  7969. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7970. }
  7971. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7972. ::std::string(value));
  7973. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7974. }
  7975. inline void RunAggregationQueryRequest::set_transaction(const void* value, size_t size) {
  7976. if (!_internal_has_transaction()) {
  7977. clear_consistency_selector();
  7978. set_has_transaction();
  7979. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7980. }
  7981. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7982. reinterpret_cast<const char*>(value), size));
  7983. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7984. }
  7985. inline std::string* RunAggregationQueryRequest::_internal_mutable_transaction() {
  7986. if (!_internal_has_transaction()) {
  7987. clear_consistency_selector();
  7988. set_has_transaction();
  7989. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7990. }
  7991. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7992. }
  7993. inline std::string* RunAggregationQueryRequest::release_transaction() {
  7994. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7995. if (_internal_has_transaction()) {
  7996. clear_has_consistency_selector();
  7997. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7998. } else {
  7999. return nullptr;
  8000. }
  8001. }
  8002. inline void RunAggregationQueryRequest::set_allocated_transaction(std::string* transaction) {
  8003. if (has_consistency_selector()) {
  8004. clear_consistency_selector();
  8005. }
  8006. if (transaction != nullptr) {
  8007. set_has_transaction();
  8008. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  8009. }
  8010. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.transaction)
  8011. }
  8012. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  8013. inline bool RunAggregationQueryRequest::_internal_has_new_transaction() const {
  8014. return consistency_selector_case() == kNewTransaction;
  8015. }
  8016. inline bool RunAggregationQueryRequest::has_new_transaction() const {
  8017. return _internal_has_new_transaction();
  8018. }
  8019. inline void RunAggregationQueryRequest::set_has_new_transaction() {
  8020. _oneof_case_[1] = kNewTransaction;
  8021. }
  8022. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::release_new_transaction() {
  8023. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  8024. if (_internal_has_new_transaction()) {
  8025. clear_has_consistency_selector();
  8026. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  8027. consistency_selector_.new_transaction_ = nullptr;
  8028. return temp;
  8029. } else {
  8030. return nullptr;
  8031. }
  8032. }
  8033. inline const ::google::firestore::v1::TransactionOptions& RunAggregationQueryRequest::_internal_new_transaction() const {
  8034. return _internal_has_new_transaction()
  8035. ? *consistency_selector_.new_transaction_
  8036. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  8037. }
  8038. inline const ::google::firestore::v1::TransactionOptions& RunAggregationQueryRequest::new_transaction() const {
  8039. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  8040. return _internal_new_transaction();
  8041. }
  8042. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::_internal_mutable_new_transaction() {
  8043. if (!_internal_has_new_transaction()) {
  8044. clear_consistency_selector();
  8045. set_has_new_transaction();
  8046. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  8047. GetArenaNoVirtual());
  8048. }
  8049. return consistency_selector_.new_transaction_;
  8050. }
  8051. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::mutable_new_transaction() {
  8052. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  8053. return _internal_mutable_new_transaction();
  8054. }
  8055. // .google.protobuf.Timestamp read_time = 6;
  8056. inline bool RunAggregationQueryRequest::_internal_has_read_time() const {
  8057. return consistency_selector_case() == kReadTime;
  8058. }
  8059. inline bool RunAggregationQueryRequest::has_read_time() const {
  8060. return _internal_has_read_time();
  8061. }
  8062. inline void RunAggregationQueryRequest::set_has_read_time() {
  8063. _oneof_case_[1] = kReadTime;
  8064. }
  8065. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryRequest::release_read_time() {
  8066. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.read_time)
  8067. if (_internal_has_read_time()) {
  8068. clear_has_consistency_selector();
  8069. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  8070. consistency_selector_.read_time_ = nullptr;
  8071. return temp;
  8072. } else {
  8073. return nullptr;
  8074. }
  8075. }
  8076. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunAggregationQueryRequest::_internal_read_time() const {
  8077. return _internal_has_read_time()
  8078. ? *consistency_selector_.read_time_
  8079. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  8080. }
  8081. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunAggregationQueryRequest::read_time() const {
  8082. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.read_time)
  8083. return _internal_read_time();
  8084. }
  8085. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryRequest::_internal_mutable_read_time() {
  8086. if (!_internal_has_read_time()) {
  8087. clear_consistency_selector();
  8088. set_has_read_time();
  8089. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  8090. GetArenaNoVirtual());
  8091. }
  8092. return consistency_selector_.read_time_;
  8093. }
  8094. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryRequest::mutable_read_time() {
  8095. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.read_time)
  8096. return _internal_mutable_read_time();
  8097. }
  8098. inline bool RunAggregationQueryRequest::has_query_type() const {
  8099. return query_type_case() != QUERY_TYPE_NOT_SET;
  8100. }
  8101. inline void RunAggregationQueryRequest::clear_has_query_type() {
  8102. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  8103. }
  8104. inline bool RunAggregationQueryRequest::has_consistency_selector() const {
  8105. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  8106. }
  8107. inline void RunAggregationQueryRequest::clear_has_consistency_selector() {
  8108. _oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  8109. }
  8110. inline RunAggregationQueryRequest::QueryTypeCase RunAggregationQueryRequest::query_type_case() const {
  8111. return RunAggregationQueryRequest::QueryTypeCase(_oneof_case_[0]);
  8112. }
  8113. inline RunAggregationQueryRequest::ConsistencySelectorCase RunAggregationQueryRequest::consistency_selector_case() const {
  8114. return RunAggregationQueryRequest::ConsistencySelectorCase(_oneof_case_[1]);
  8115. }
  8116. // -------------------------------------------------------------------
  8117. // RunAggregationQueryResponse
  8118. // .google.firestore.v1.AggregationResult result = 1;
  8119. inline bool RunAggregationQueryResponse::_internal_has_result() const {
  8120. return this != internal_default_instance() && result_ != nullptr;
  8121. }
  8122. inline bool RunAggregationQueryResponse::has_result() const {
  8123. return _internal_has_result();
  8124. }
  8125. inline const ::google::firestore::v1::AggregationResult& RunAggregationQueryResponse::_internal_result() const {
  8126. const ::google::firestore::v1::AggregationResult* p = result_;
  8127. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::AggregationResult*>(
  8128. &::google::firestore::v1::_AggregationResult_default_instance_);
  8129. }
  8130. inline const ::google::firestore::v1::AggregationResult& RunAggregationQueryResponse::result() const {
  8131. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.result)
  8132. return _internal_result();
  8133. }
  8134. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::release_result() {
  8135. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.result)
  8136. ::google::firestore::v1::AggregationResult* temp = result_;
  8137. result_ = nullptr;
  8138. return temp;
  8139. }
  8140. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::_internal_mutable_result() {
  8141. if (result_ == nullptr) {
  8142. auto* p = CreateMaybeMessage<::google::firestore::v1::AggregationResult>(GetArenaNoVirtual());
  8143. result_ = p;
  8144. }
  8145. return result_;
  8146. }
  8147. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::mutable_result() {
  8148. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.result)
  8149. return _internal_mutable_result();
  8150. }
  8151. inline void RunAggregationQueryResponse::set_allocated_result(::google::firestore::v1::AggregationResult* result) {
  8152. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8153. if (message_arena == nullptr) {
  8154. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_);
  8155. }
  8156. if (result) {
  8157. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  8158. if (message_arena != submessage_arena) {
  8159. result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8160. message_arena, result, submessage_arena);
  8161. }
  8162. } else {
  8163. }
  8164. result_ = result;
  8165. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.result)
  8166. }
  8167. // bytes transaction = 2;
  8168. inline void RunAggregationQueryResponse::clear_transaction() {
  8169. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8170. }
  8171. inline const std::string& RunAggregationQueryResponse::transaction() const {
  8172. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8173. return _internal_transaction();
  8174. }
  8175. inline void RunAggregationQueryResponse::set_transaction(const std::string& value) {
  8176. _internal_set_transaction(value);
  8177. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8178. }
  8179. inline std::string* RunAggregationQueryResponse::mutable_transaction() {
  8180. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8181. return _internal_mutable_transaction();
  8182. }
  8183. inline const std::string& RunAggregationQueryResponse::_internal_transaction() const {
  8184. return transaction_.GetNoArena();
  8185. }
  8186. inline void RunAggregationQueryResponse::_internal_set_transaction(const std::string& value) {
  8187. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8188. }
  8189. inline void RunAggregationQueryResponse::set_transaction(std::string&& value) {
  8190. transaction_.SetNoArena(
  8191. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8192. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8193. }
  8194. inline void RunAggregationQueryResponse::set_transaction(const char* value) {
  8195. GOOGLE_DCHECK(value != nullptr);
  8196. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8197. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8198. }
  8199. inline void RunAggregationQueryResponse::set_transaction(const void* value, size_t size) {
  8200. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8201. ::std::string(reinterpret_cast<const char*>(value), size));
  8202. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8203. }
  8204. inline std::string* RunAggregationQueryResponse::_internal_mutable_transaction() {
  8205. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8206. }
  8207. inline std::string* RunAggregationQueryResponse::release_transaction() {
  8208. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8209. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8210. }
  8211. inline void RunAggregationQueryResponse::set_allocated_transaction(std::string* transaction) {
  8212. if (transaction != nullptr) {
  8213. } else {
  8214. }
  8215. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  8216. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8217. }
  8218. // .google.protobuf.Timestamp read_time = 3;
  8219. inline bool RunAggregationQueryResponse::_internal_has_read_time() const {
  8220. return this != internal_default_instance() && read_time_ != nullptr;
  8221. }
  8222. inline bool RunAggregationQueryResponse::has_read_time() const {
  8223. return _internal_has_read_time();
  8224. }
  8225. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunAggregationQueryResponse::_internal_read_time() const {
  8226. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  8227. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  8228. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  8229. }
  8230. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunAggregationQueryResponse::read_time() const {
  8231. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.read_time)
  8232. return _internal_read_time();
  8233. }
  8234. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryResponse::release_read_time() {
  8235. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.read_time)
  8236. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  8237. read_time_ = nullptr;
  8238. return temp;
  8239. }
  8240. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryResponse::_internal_mutable_read_time() {
  8241. if (read_time_ == nullptr) {
  8242. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  8243. read_time_ = p;
  8244. }
  8245. return read_time_;
  8246. }
  8247. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryResponse::mutable_read_time() {
  8248. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.read_time)
  8249. return _internal_mutable_read_time();
  8250. }
  8251. inline void RunAggregationQueryResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  8252. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8253. if (message_arena == nullptr) {
  8254. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  8255. }
  8256. if (read_time) {
  8257. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8258. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  8259. if (message_arena != submessage_arena) {
  8260. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8261. message_arena, read_time, submessage_arena);
  8262. }
  8263. } else {
  8264. }
  8265. read_time_ = read_time;
  8266. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.read_time)
  8267. }
  8268. // -------------------------------------------------------------------
  8269. // -------------------------------------------------------------------
  8270. // WriteRequest
  8271. // string database = 1;
  8272. inline void WriteRequest::clear_database() {
  8273. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8274. }
  8275. inline const std::string& WriteRequest::database() const {
  8276. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.database)
  8277. return _internal_database();
  8278. }
  8279. inline void WriteRequest::set_database(const std::string& value) {
  8280. _internal_set_database(value);
  8281. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.database)
  8282. }
  8283. inline std::string* WriteRequest::mutable_database() {
  8284. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.database)
  8285. return _internal_mutable_database();
  8286. }
  8287. inline const std::string& WriteRequest::_internal_database() const {
  8288. return database_.GetNoArena();
  8289. }
  8290. inline void WriteRequest::_internal_set_database(const std::string& value) {
  8291. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8292. }
  8293. inline void WriteRequest::set_database(std::string&& value) {
  8294. database_.SetNoArena(
  8295. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8296. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.database)
  8297. }
  8298. inline void WriteRequest::set_database(const char* value) {
  8299. GOOGLE_DCHECK(value != nullptr);
  8300. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8301. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.database)
  8302. }
  8303. inline void WriteRequest::set_database(const char* value, size_t size) {
  8304. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8305. ::std::string(reinterpret_cast<const char*>(value), size));
  8306. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.database)
  8307. }
  8308. inline std::string* WriteRequest::_internal_mutable_database() {
  8309. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8310. }
  8311. inline std::string* WriteRequest::release_database() {
  8312. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.database)
  8313. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8314. }
  8315. inline void WriteRequest::set_allocated_database(std::string* database) {
  8316. if (database != nullptr) {
  8317. } else {
  8318. }
  8319. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  8320. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.database)
  8321. }
  8322. // string stream_id = 2;
  8323. inline void WriteRequest::clear_stream_id() {
  8324. stream_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8325. }
  8326. inline const std::string& WriteRequest::stream_id() const {
  8327. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_id)
  8328. return _internal_stream_id();
  8329. }
  8330. inline void WriteRequest::set_stream_id(const std::string& value) {
  8331. _internal_set_stream_id(value);
  8332. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_id)
  8333. }
  8334. inline std::string* WriteRequest::mutable_stream_id() {
  8335. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_id)
  8336. return _internal_mutable_stream_id();
  8337. }
  8338. inline const std::string& WriteRequest::_internal_stream_id() const {
  8339. return stream_id_.GetNoArena();
  8340. }
  8341. inline void WriteRequest::_internal_set_stream_id(const std::string& value) {
  8342. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8343. }
  8344. inline void WriteRequest::set_stream_id(std::string&& value) {
  8345. stream_id_.SetNoArena(
  8346. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8347. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.stream_id)
  8348. }
  8349. inline void WriteRequest::set_stream_id(const char* value) {
  8350. GOOGLE_DCHECK(value != nullptr);
  8351. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8352. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.stream_id)
  8353. }
  8354. inline void WriteRequest::set_stream_id(const char* value, size_t size) {
  8355. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8356. ::std::string(reinterpret_cast<const char*>(value), size));
  8357. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.stream_id)
  8358. }
  8359. inline std::string* WriteRequest::_internal_mutable_stream_id() {
  8360. return stream_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8361. }
  8362. inline std::string* WriteRequest::release_stream_id() {
  8363. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_id)
  8364. return stream_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8365. }
  8366. inline void WriteRequest::set_allocated_stream_id(std::string* stream_id) {
  8367. if (stream_id != nullptr) {
  8368. } else {
  8369. }
  8370. stream_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_id);
  8371. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_id)
  8372. }
  8373. // repeated .google.firestore.v1.Write writes = 3;
  8374. inline int WriteRequest::_internal_writes_size() const {
  8375. return writes_.size();
  8376. }
  8377. inline int WriteRequest::writes_size() const {
  8378. return _internal_writes_size();
  8379. }
  8380. inline ::google::firestore::v1::Write* WriteRequest::mutable_writes(int index) {
  8381. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.writes)
  8382. return writes_.Mutable(index);
  8383. }
  8384. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  8385. WriteRequest::mutable_writes() {
  8386. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteRequest.writes)
  8387. return &writes_;
  8388. }
  8389. inline const ::google::firestore::v1::Write& WriteRequest::_internal_writes(int index) const {
  8390. return writes_.Get(index);
  8391. }
  8392. inline const ::google::firestore::v1::Write& WriteRequest::writes(int index) const {
  8393. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.writes)
  8394. return _internal_writes(index);
  8395. }
  8396. inline ::google::firestore::v1::Write* WriteRequest::_internal_add_writes() {
  8397. return writes_.Add();
  8398. }
  8399. inline ::google::firestore::v1::Write* WriteRequest::add_writes() {
  8400. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteRequest.writes)
  8401. return _internal_add_writes();
  8402. }
  8403. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  8404. WriteRequest::writes() const {
  8405. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteRequest.writes)
  8406. return writes_;
  8407. }
  8408. // bytes stream_token = 4;
  8409. inline void WriteRequest::clear_stream_token() {
  8410. stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8411. }
  8412. inline const std::string& WriteRequest::stream_token() const {
  8413. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_token)
  8414. return _internal_stream_token();
  8415. }
  8416. inline void WriteRequest::set_stream_token(const std::string& value) {
  8417. _internal_set_stream_token(value);
  8418. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_token)
  8419. }
  8420. inline std::string* WriteRequest::mutable_stream_token() {
  8421. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_token)
  8422. return _internal_mutable_stream_token();
  8423. }
  8424. inline const std::string& WriteRequest::_internal_stream_token() const {
  8425. return stream_token_.GetNoArena();
  8426. }
  8427. inline void WriteRequest::_internal_set_stream_token(const std::string& value) {
  8428. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8429. }
  8430. inline void WriteRequest::set_stream_token(std::string&& value) {
  8431. stream_token_.SetNoArena(
  8432. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8433. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.stream_token)
  8434. }
  8435. inline void WriteRequest::set_stream_token(const char* value) {
  8436. GOOGLE_DCHECK(value != nullptr);
  8437. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8438. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.stream_token)
  8439. }
  8440. inline void WriteRequest::set_stream_token(const void* value, size_t size) {
  8441. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8442. ::std::string(reinterpret_cast<const char*>(value), size));
  8443. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.stream_token)
  8444. }
  8445. inline std::string* WriteRequest::_internal_mutable_stream_token() {
  8446. return stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8447. }
  8448. inline std::string* WriteRequest::release_stream_token() {
  8449. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_token)
  8450. return stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8451. }
  8452. inline void WriteRequest::set_allocated_stream_token(std::string* stream_token) {
  8453. if (stream_token != nullptr) {
  8454. } else {
  8455. }
  8456. stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_token);
  8457. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_token)
  8458. }
  8459. // map<string, string> labels = 5;
  8460. inline int WriteRequest::_internal_labels_size() const {
  8461. return labels_.size();
  8462. }
  8463. inline int WriteRequest::labels_size() const {
  8464. return _internal_labels_size();
  8465. }
  8466. inline void WriteRequest::clear_labels() {
  8467. labels_.Clear();
  8468. }
  8469. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8470. WriteRequest::_internal_labels() const {
  8471. return labels_.GetMap();
  8472. }
  8473. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8474. WriteRequest::labels() const {
  8475. // @@protoc_insertion_point(field_map:google.firestore.v1.WriteRequest.labels)
  8476. return _internal_labels();
  8477. }
  8478. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8479. WriteRequest::_internal_mutable_labels() {
  8480. return labels_.MutableMap();
  8481. }
  8482. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8483. WriteRequest::mutable_labels() {
  8484. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.WriteRequest.labels)
  8485. return _internal_mutable_labels();
  8486. }
  8487. // -------------------------------------------------------------------
  8488. // WriteResponse
  8489. // string stream_id = 1;
  8490. inline void WriteResponse::clear_stream_id() {
  8491. stream_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8492. }
  8493. inline const std::string& WriteResponse::stream_id() const {
  8494. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_id)
  8495. return _internal_stream_id();
  8496. }
  8497. inline void WriteResponse::set_stream_id(const std::string& value) {
  8498. _internal_set_stream_id(value);
  8499. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_id)
  8500. }
  8501. inline std::string* WriteResponse::mutable_stream_id() {
  8502. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_id)
  8503. return _internal_mutable_stream_id();
  8504. }
  8505. inline const std::string& WriteResponse::_internal_stream_id() const {
  8506. return stream_id_.GetNoArena();
  8507. }
  8508. inline void WriteResponse::_internal_set_stream_id(const std::string& value) {
  8509. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8510. }
  8511. inline void WriteResponse::set_stream_id(std::string&& value) {
  8512. stream_id_.SetNoArena(
  8513. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8514. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteResponse.stream_id)
  8515. }
  8516. inline void WriteResponse::set_stream_id(const char* value) {
  8517. GOOGLE_DCHECK(value != nullptr);
  8518. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8519. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteResponse.stream_id)
  8520. }
  8521. inline void WriteResponse::set_stream_id(const char* value, size_t size) {
  8522. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8523. ::std::string(reinterpret_cast<const char*>(value), size));
  8524. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteResponse.stream_id)
  8525. }
  8526. inline std::string* WriteResponse::_internal_mutable_stream_id() {
  8527. return stream_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8528. }
  8529. inline std::string* WriteResponse::release_stream_id() {
  8530. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_id)
  8531. return stream_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8532. }
  8533. inline void WriteResponse::set_allocated_stream_id(std::string* stream_id) {
  8534. if (stream_id != nullptr) {
  8535. } else {
  8536. }
  8537. stream_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_id);
  8538. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_id)
  8539. }
  8540. // bytes stream_token = 2;
  8541. inline void WriteResponse::clear_stream_token() {
  8542. stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8543. }
  8544. inline const std::string& WriteResponse::stream_token() const {
  8545. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_token)
  8546. return _internal_stream_token();
  8547. }
  8548. inline void WriteResponse::set_stream_token(const std::string& value) {
  8549. _internal_set_stream_token(value);
  8550. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_token)
  8551. }
  8552. inline std::string* WriteResponse::mutable_stream_token() {
  8553. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_token)
  8554. return _internal_mutable_stream_token();
  8555. }
  8556. inline const std::string& WriteResponse::_internal_stream_token() const {
  8557. return stream_token_.GetNoArena();
  8558. }
  8559. inline void WriteResponse::_internal_set_stream_token(const std::string& value) {
  8560. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8561. }
  8562. inline void WriteResponse::set_stream_token(std::string&& value) {
  8563. stream_token_.SetNoArena(
  8564. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8565. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteResponse.stream_token)
  8566. }
  8567. inline void WriteResponse::set_stream_token(const char* value) {
  8568. GOOGLE_DCHECK(value != nullptr);
  8569. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8570. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteResponse.stream_token)
  8571. }
  8572. inline void WriteResponse::set_stream_token(const void* value, size_t size) {
  8573. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8574. ::std::string(reinterpret_cast<const char*>(value), size));
  8575. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteResponse.stream_token)
  8576. }
  8577. inline std::string* WriteResponse::_internal_mutable_stream_token() {
  8578. return stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8579. }
  8580. inline std::string* WriteResponse::release_stream_token() {
  8581. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_token)
  8582. return stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8583. }
  8584. inline void WriteResponse::set_allocated_stream_token(std::string* stream_token) {
  8585. if (stream_token != nullptr) {
  8586. } else {
  8587. }
  8588. stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_token);
  8589. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_token)
  8590. }
  8591. // repeated .google.firestore.v1.WriteResult write_results = 3;
  8592. inline int WriteResponse::_internal_write_results_size() const {
  8593. return write_results_.size();
  8594. }
  8595. inline int WriteResponse::write_results_size() const {
  8596. return _internal_write_results_size();
  8597. }
  8598. inline ::google::firestore::v1::WriteResult* WriteResponse::mutable_write_results(int index) {
  8599. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.write_results)
  8600. return write_results_.Mutable(index);
  8601. }
  8602. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  8603. WriteResponse::mutable_write_results() {
  8604. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteResponse.write_results)
  8605. return &write_results_;
  8606. }
  8607. inline const ::google::firestore::v1::WriteResult& WriteResponse::_internal_write_results(int index) const {
  8608. return write_results_.Get(index);
  8609. }
  8610. inline const ::google::firestore::v1::WriteResult& WriteResponse::write_results(int index) const {
  8611. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.write_results)
  8612. return _internal_write_results(index);
  8613. }
  8614. inline ::google::firestore::v1::WriteResult* WriteResponse::_internal_add_write_results() {
  8615. return write_results_.Add();
  8616. }
  8617. inline ::google::firestore::v1::WriteResult* WriteResponse::add_write_results() {
  8618. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteResponse.write_results)
  8619. return _internal_add_write_results();
  8620. }
  8621. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  8622. WriteResponse::write_results() const {
  8623. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteResponse.write_results)
  8624. return write_results_;
  8625. }
  8626. // .google.protobuf.Timestamp commit_time = 4;
  8627. inline bool WriteResponse::_internal_has_commit_time() const {
  8628. return this != internal_default_instance() && commit_time_ != nullptr;
  8629. }
  8630. inline bool WriteResponse::has_commit_time() const {
  8631. return _internal_has_commit_time();
  8632. }
  8633. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResponse::_internal_commit_time() const {
  8634. const PROTOBUF_NAMESPACE_ID::Timestamp* p = commit_time_;
  8635. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  8636. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  8637. }
  8638. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResponse::commit_time() const {
  8639. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.commit_time)
  8640. return _internal_commit_time();
  8641. }
  8642. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::release_commit_time() {
  8643. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.commit_time)
  8644. PROTOBUF_NAMESPACE_ID::Timestamp* temp = commit_time_;
  8645. commit_time_ = nullptr;
  8646. return temp;
  8647. }
  8648. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::_internal_mutable_commit_time() {
  8649. if (commit_time_ == nullptr) {
  8650. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  8651. commit_time_ = p;
  8652. }
  8653. return commit_time_;
  8654. }
  8655. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::mutable_commit_time() {
  8656. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.commit_time)
  8657. return _internal_mutable_commit_time();
  8658. }
  8659. inline void WriteResponse::set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time) {
  8660. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8661. if (message_arena == nullptr) {
  8662. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time_);
  8663. }
  8664. if (commit_time) {
  8665. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8666. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time)->GetArena();
  8667. if (message_arena != submessage_arena) {
  8668. commit_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8669. message_arena, commit_time, submessage_arena);
  8670. }
  8671. } else {
  8672. }
  8673. commit_time_ = commit_time;
  8674. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.commit_time)
  8675. }
  8676. // -------------------------------------------------------------------
  8677. // -------------------------------------------------------------------
  8678. // ListenRequest
  8679. // string database = 1;
  8680. inline void ListenRequest::clear_database() {
  8681. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8682. }
  8683. inline const std::string& ListenRequest::database() const {
  8684. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.database)
  8685. return _internal_database();
  8686. }
  8687. inline void ListenRequest::set_database(const std::string& value) {
  8688. _internal_set_database(value);
  8689. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.database)
  8690. }
  8691. inline std::string* ListenRequest::mutable_database() {
  8692. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.database)
  8693. return _internal_mutable_database();
  8694. }
  8695. inline const std::string& ListenRequest::_internal_database() const {
  8696. return database_.GetNoArena();
  8697. }
  8698. inline void ListenRequest::_internal_set_database(const std::string& value) {
  8699. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8700. }
  8701. inline void ListenRequest::set_database(std::string&& value) {
  8702. database_.SetNoArena(
  8703. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8704. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListenRequest.database)
  8705. }
  8706. inline void ListenRequest::set_database(const char* value) {
  8707. GOOGLE_DCHECK(value != nullptr);
  8708. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8709. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListenRequest.database)
  8710. }
  8711. inline void ListenRequest::set_database(const char* value, size_t size) {
  8712. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8713. ::std::string(reinterpret_cast<const char*>(value), size));
  8714. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListenRequest.database)
  8715. }
  8716. inline std::string* ListenRequest::_internal_mutable_database() {
  8717. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8718. }
  8719. inline std::string* ListenRequest::release_database() {
  8720. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.database)
  8721. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8722. }
  8723. inline void ListenRequest::set_allocated_database(std::string* database) {
  8724. if (database != nullptr) {
  8725. } else {
  8726. }
  8727. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  8728. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenRequest.database)
  8729. }
  8730. // .google.firestore.v1.Target add_target = 2;
  8731. inline bool ListenRequest::_internal_has_add_target() const {
  8732. return target_change_case() == kAddTarget;
  8733. }
  8734. inline bool ListenRequest::has_add_target() const {
  8735. return _internal_has_add_target();
  8736. }
  8737. inline void ListenRequest::set_has_add_target() {
  8738. _oneof_case_[0] = kAddTarget;
  8739. }
  8740. inline void ListenRequest::clear_add_target() {
  8741. if (_internal_has_add_target()) {
  8742. delete target_change_.add_target_;
  8743. clear_has_target_change();
  8744. }
  8745. }
  8746. inline ::google::firestore::v1::Target* ListenRequest::release_add_target() {
  8747. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.add_target)
  8748. if (_internal_has_add_target()) {
  8749. clear_has_target_change();
  8750. ::google::firestore::v1::Target* temp = target_change_.add_target_;
  8751. target_change_.add_target_ = nullptr;
  8752. return temp;
  8753. } else {
  8754. return nullptr;
  8755. }
  8756. }
  8757. inline const ::google::firestore::v1::Target& ListenRequest::_internal_add_target() const {
  8758. return _internal_has_add_target()
  8759. ? *target_change_.add_target_
  8760. : *reinterpret_cast< ::google::firestore::v1::Target*>(&::google::firestore::v1::_Target_default_instance_);
  8761. }
  8762. inline const ::google::firestore::v1::Target& ListenRequest::add_target() const {
  8763. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.add_target)
  8764. return _internal_add_target();
  8765. }
  8766. inline ::google::firestore::v1::Target* ListenRequest::_internal_mutable_add_target() {
  8767. if (!_internal_has_add_target()) {
  8768. clear_target_change();
  8769. set_has_add_target();
  8770. target_change_.add_target_ = CreateMaybeMessage< ::google::firestore::v1::Target >(
  8771. GetArenaNoVirtual());
  8772. }
  8773. return target_change_.add_target_;
  8774. }
  8775. inline ::google::firestore::v1::Target* ListenRequest::mutable_add_target() {
  8776. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.add_target)
  8777. return _internal_mutable_add_target();
  8778. }
  8779. // int32 remove_target = 3;
  8780. inline bool ListenRequest::_internal_has_remove_target() const {
  8781. return target_change_case() == kRemoveTarget;
  8782. }
  8783. inline void ListenRequest::set_has_remove_target() {
  8784. _oneof_case_[0] = kRemoveTarget;
  8785. }
  8786. inline void ListenRequest::clear_remove_target() {
  8787. if (_internal_has_remove_target()) {
  8788. target_change_.remove_target_ = 0;
  8789. clear_has_target_change();
  8790. }
  8791. }
  8792. inline ::PROTOBUF_NAMESPACE_ID::int32 ListenRequest::_internal_remove_target() const {
  8793. if (_internal_has_remove_target()) {
  8794. return target_change_.remove_target_;
  8795. }
  8796. return 0;
  8797. }
  8798. inline void ListenRequest::_internal_set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8799. if (!_internal_has_remove_target()) {
  8800. clear_target_change();
  8801. set_has_remove_target();
  8802. }
  8803. target_change_.remove_target_ = value;
  8804. }
  8805. inline ::PROTOBUF_NAMESPACE_ID::int32 ListenRequest::remove_target() const {
  8806. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.remove_target)
  8807. return _internal_remove_target();
  8808. }
  8809. inline void ListenRequest::set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8810. _internal_set_remove_target(value);
  8811. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.remove_target)
  8812. }
  8813. // map<string, string> labels = 4;
  8814. inline int ListenRequest::_internal_labels_size() const {
  8815. return labels_.size();
  8816. }
  8817. inline int ListenRequest::labels_size() const {
  8818. return _internal_labels_size();
  8819. }
  8820. inline void ListenRequest::clear_labels() {
  8821. labels_.Clear();
  8822. }
  8823. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8824. ListenRequest::_internal_labels() const {
  8825. return labels_.GetMap();
  8826. }
  8827. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8828. ListenRequest::labels() const {
  8829. // @@protoc_insertion_point(field_map:google.firestore.v1.ListenRequest.labels)
  8830. return _internal_labels();
  8831. }
  8832. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8833. ListenRequest::_internal_mutable_labels() {
  8834. return labels_.MutableMap();
  8835. }
  8836. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8837. ListenRequest::mutable_labels() {
  8838. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.ListenRequest.labels)
  8839. return _internal_mutable_labels();
  8840. }
  8841. inline bool ListenRequest::has_target_change() const {
  8842. return target_change_case() != TARGET_CHANGE_NOT_SET;
  8843. }
  8844. inline void ListenRequest::clear_has_target_change() {
  8845. _oneof_case_[0] = TARGET_CHANGE_NOT_SET;
  8846. }
  8847. inline ListenRequest::TargetChangeCase ListenRequest::target_change_case() const {
  8848. return ListenRequest::TargetChangeCase(_oneof_case_[0]);
  8849. }
  8850. // -------------------------------------------------------------------
  8851. // ListenResponse
  8852. // .google.firestore.v1.TargetChange target_change = 2;
  8853. inline bool ListenResponse::_internal_has_target_change() const {
  8854. return response_type_case() == kTargetChange;
  8855. }
  8856. inline bool ListenResponse::has_target_change() const {
  8857. return _internal_has_target_change();
  8858. }
  8859. inline void ListenResponse::set_has_target_change() {
  8860. _oneof_case_[0] = kTargetChange;
  8861. }
  8862. inline void ListenResponse::clear_target_change() {
  8863. if (_internal_has_target_change()) {
  8864. delete response_type_.target_change_;
  8865. clear_has_response_type();
  8866. }
  8867. }
  8868. inline ::google::firestore::v1::TargetChange* ListenResponse::release_target_change() {
  8869. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.target_change)
  8870. if (_internal_has_target_change()) {
  8871. clear_has_response_type();
  8872. ::google::firestore::v1::TargetChange* temp = response_type_.target_change_;
  8873. response_type_.target_change_ = nullptr;
  8874. return temp;
  8875. } else {
  8876. return nullptr;
  8877. }
  8878. }
  8879. inline const ::google::firestore::v1::TargetChange& ListenResponse::_internal_target_change() const {
  8880. return _internal_has_target_change()
  8881. ? *response_type_.target_change_
  8882. : *reinterpret_cast< ::google::firestore::v1::TargetChange*>(&::google::firestore::v1::_TargetChange_default_instance_);
  8883. }
  8884. inline const ::google::firestore::v1::TargetChange& ListenResponse::target_change() const {
  8885. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.target_change)
  8886. return _internal_target_change();
  8887. }
  8888. inline ::google::firestore::v1::TargetChange* ListenResponse::_internal_mutable_target_change() {
  8889. if (!_internal_has_target_change()) {
  8890. clear_response_type();
  8891. set_has_target_change();
  8892. response_type_.target_change_ = CreateMaybeMessage< ::google::firestore::v1::TargetChange >(
  8893. GetArenaNoVirtual());
  8894. }
  8895. return response_type_.target_change_;
  8896. }
  8897. inline ::google::firestore::v1::TargetChange* ListenResponse::mutable_target_change() {
  8898. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.target_change)
  8899. return _internal_mutable_target_change();
  8900. }
  8901. // .google.firestore.v1.DocumentChange document_change = 3;
  8902. inline bool ListenResponse::_internal_has_document_change() const {
  8903. return response_type_case() == kDocumentChange;
  8904. }
  8905. inline bool ListenResponse::has_document_change() const {
  8906. return _internal_has_document_change();
  8907. }
  8908. inline void ListenResponse::set_has_document_change() {
  8909. _oneof_case_[0] = kDocumentChange;
  8910. }
  8911. inline ::google::firestore::v1::DocumentChange* ListenResponse::release_document_change() {
  8912. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_change)
  8913. if (_internal_has_document_change()) {
  8914. clear_has_response_type();
  8915. ::google::firestore::v1::DocumentChange* temp = response_type_.document_change_;
  8916. response_type_.document_change_ = nullptr;
  8917. return temp;
  8918. } else {
  8919. return nullptr;
  8920. }
  8921. }
  8922. inline const ::google::firestore::v1::DocumentChange& ListenResponse::_internal_document_change() const {
  8923. return _internal_has_document_change()
  8924. ? *response_type_.document_change_
  8925. : *reinterpret_cast< ::google::firestore::v1::DocumentChange*>(&::google::firestore::v1::_DocumentChange_default_instance_);
  8926. }
  8927. inline const ::google::firestore::v1::DocumentChange& ListenResponse::document_change() const {
  8928. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_change)
  8929. return _internal_document_change();
  8930. }
  8931. inline ::google::firestore::v1::DocumentChange* ListenResponse::_internal_mutable_document_change() {
  8932. if (!_internal_has_document_change()) {
  8933. clear_response_type();
  8934. set_has_document_change();
  8935. response_type_.document_change_ = CreateMaybeMessage< ::google::firestore::v1::DocumentChange >(
  8936. GetArenaNoVirtual());
  8937. }
  8938. return response_type_.document_change_;
  8939. }
  8940. inline ::google::firestore::v1::DocumentChange* ListenResponse::mutable_document_change() {
  8941. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_change)
  8942. return _internal_mutable_document_change();
  8943. }
  8944. // .google.firestore.v1.DocumentDelete document_delete = 4;
  8945. inline bool ListenResponse::_internal_has_document_delete() const {
  8946. return response_type_case() == kDocumentDelete;
  8947. }
  8948. inline bool ListenResponse::has_document_delete() const {
  8949. return _internal_has_document_delete();
  8950. }
  8951. inline void ListenResponse::set_has_document_delete() {
  8952. _oneof_case_[0] = kDocumentDelete;
  8953. }
  8954. inline ::google::firestore::v1::DocumentDelete* ListenResponse::release_document_delete() {
  8955. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_delete)
  8956. if (_internal_has_document_delete()) {
  8957. clear_has_response_type();
  8958. ::google::firestore::v1::DocumentDelete* temp = response_type_.document_delete_;
  8959. response_type_.document_delete_ = nullptr;
  8960. return temp;
  8961. } else {
  8962. return nullptr;
  8963. }
  8964. }
  8965. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::_internal_document_delete() const {
  8966. return _internal_has_document_delete()
  8967. ? *response_type_.document_delete_
  8968. : *reinterpret_cast< ::google::firestore::v1::DocumentDelete*>(&::google::firestore::v1::_DocumentDelete_default_instance_);
  8969. }
  8970. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::document_delete() const {
  8971. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_delete)
  8972. return _internal_document_delete();
  8973. }
  8974. inline ::google::firestore::v1::DocumentDelete* ListenResponse::_internal_mutable_document_delete() {
  8975. if (!_internal_has_document_delete()) {
  8976. clear_response_type();
  8977. set_has_document_delete();
  8978. response_type_.document_delete_ = CreateMaybeMessage< ::google::firestore::v1::DocumentDelete >(
  8979. GetArenaNoVirtual());
  8980. }
  8981. return response_type_.document_delete_;
  8982. }
  8983. inline ::google::firestore::v1::DocumentDelete* ListenResponse::mutable_document_delete() {
  8984. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_delete)
  8985. return _internal_mutable_document_delete();
  8986. }
  8987. // .google.firestore.v1.DocumentRemove document_remove = 6;
  8988. inline bool ListenResponse::_internal_has_document_remove() const {
  8989. return response_type_case() == kDocumentRemove;
  8990. }
  8991. inline bool ListenResponse::has_document_remove() const {
  8992. return _internal_has_document_remove();
  8993. }
  8994. inline void ListenResponse::set_has_document_remove() {
  8995. _oneof_case_[0] = kDocumentRemove;
  8996. }
  8997. inline ::google::firestore::v1::DocumentRemove* ListenResponse::release_document_remove() {
  8998. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_remove)
  8999. if (_internal_has_document_remove()) {
  9000. clear_has_response_type();
  9001. ::google::firestore::v1::DocumentRemove* temp = response_type_.document_remove_;
  9002. response_type_.document_remove_ = nullptr;
  9003. return temp;
  9004. } else {
  9005. return nullptr;
  9006. }
  9007. }
  9008. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::_internal_document_remove() const {
  9009. return _internal_has_document_remove()
  9010. ? *response_type_.document_remove_
  9011. : *reinterpret_cast< ::google::firestore::v1::DocumentRemove*>(&::google::firestore::v1::_DocumentRemove_default_instance_);
  9012. }
  9013. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::document_remove() const {
  9014. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_remove)
  9015. return _internal_document_remove();
  9016. }
  9017. inline ::google::firestore::v1::DocumentRemove* ListenResponse::_internal_mutable_document_remove() {
  9018. if (!_internal_has_document_remove()) {
  9019. clear_response_type();
  9020. set_has_document_remove();
  9021. response_type_.document_remove_ = CreateMaybeMessage< ::google::firestore::v1::DocumentRemove >(
  9022. GetArenaNoVirtual());
  9023. }
  9024. return response_type_.document_remove_;
  9025. }
  9026. inline ::google::firestore::v1::DocumentRemove* ListenResponse::mutable_document_remove() {
  9027. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_remove)
  9028. return _internal_mutable_document_remove();
  9029. }
  9030. // .google.firestore.v1.ExistenceFilter filter = 5;
  9031. inline bool ListenResponse::_internal_has_filter() const {
  9032. return response_type_case() == kFilter;
  9033. }
  9034. inline bool ListenResponse::has_filter() const {
  9035. return _internal_has_filter();
  9036. }
  9037. inline void ListenResponse::set_has_filter() {
  9038. _oneof_case_[0] = kFilter;
  9039. }
  9040. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::release_filter() {
  9041. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.filter)
  9042. if (_internal_has_filter()) {
  9043. clear_has_response_type();
  9044. ::google::firestore::v1::ExistenceFilter* temp = response_type_.filter_;
  9045. response_type_.filter_ = nullptr;
  9046. return temp;
  9047. } else {
  9048. return nullptr;
  9049. }
  9050. }
  9051. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::_internal_filter() const {
  9052. return _internal_has_filter()
  9053. ? *response_type_.filter_
  9054. : *reinterpret_cast< ::google::firestore::v1::ExistenceFilter*>(&::google::firestore::v1::_ExistenceFilter_default_instance_);
  9055. }
  9056. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::filter() const {
  9057. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.filter)
  9058. return _internal_filter();
  9059. }
  9060. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::_internal_mutable_filter() {
  9061. if (!_internal_has_filter()) {
  9062. clear_response_type();
  9063. set_has_filter();
  9064. response_type_.filter_ = CreateMaybeMessage< ::google::firestore::v1::ExistenceFilter >(
  9065. GetArenaNoVirtual());
  9066. }
  9067. return response_type_.filter_;
  9068. }
  9069. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::mutable_filter() {
  9070. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.filter)
  9071. return _internal_mutable_filter();
  9072. }
  9073. inline bool ListenResponse::has_response_type() const {
  9074. return response_type_case() != RESPONSE_TYPE_NOT_SET;
  9075. }
  9076. inline void ListenResponse::clear_has_response_type() {
  9077. _oneof_case_[0] = RESPONSE_TYPE_NOT_SET;
  9078. }
  9079. inline ListenResponse::ResponseTypeCase ListenResponse::response_type_case() const {
  9080. return ListenResponse::ResponseTypeCase(_oneof_case_[0]);
  9081. }
  9082. // -------------------------------------------------------------------
  9083. // Target_DocumentsTarget
  9084. // repeated string documents = 2;
  9085. inline int Target_DocumentsTarget::_internal_documents_size() const {
  9086. return documents_.size();
  9087. }
  9088. inline int Target_DocumentsTarget::documents_size() const {
  9089. return _internal_documents_size();
  9090. }
  9091. inline void Target_DocumentsTarget::clear_documents() {
  9092. documents_.Clear();
  9093. }
  9094. inline std::string* Target_DocumentsTarget::add_documents() {
  9095. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  9096. return _internal_add_documents();
  9097. }
  9098. inline const std::string& Target_DocumentsTarget::_internal_documents(int index) const {
  9099. return documents_.Get(index);
  9100. }
  9101. inline const std::string& Target_DocumentsTarget::documents(int index) const {
  9102. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.DocumentsTarget.documents)
  9103. return _internal_documents(index);
  9104. }
  9105. inline std::string* Target_DocumentsTarget::mutable_documents(int index) {
  9106. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  9107. return documents_.Mutable(index);
  9108. }
  9109. inline void Target_DocumentsTarget::set_documents(int index, const std::string& value) {
  9110. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  9111. documents_.Mutable(index)->assign(value);
  9112. }
  9113. inline void Target_DocumentsTarget::set_documents(int index, std::string&& value) {
  9114. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  9115. documents_.Mutable(index)->assign(std::move(value));
  9116. }
  9117. inline void Target_DocumentsTarget::set_documents(int index, const char* value) {
  9118. GOOGLE_DCHECK(value != nullptr);
  9119. documents_.Mutable(index)->assign(value);
  9120. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.DocumentsTarget.documents)
  9121. }
  9122. inline void Target_DocumentsTarget::set_documents(int index, const char* value, size_t size) {
  9123. documents_.Mutable(index)->assign(
  9124. reinterpret_cast<const char*>(value), size);
  9125. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  9126. }
  9127. inline std::string* Target_DocumentsTarget::_internal_add_documents() {
  9128. return documents_.Add();
  9129. }
  9130. inline void Target_DocumentsTarget::add_documents(const std::string& value) {
  9131. documents_.Add()->assign(value);
  9132. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  9133. }
  9134. inline void Target_DocumentsTarget::add_documents(std::string&& value) {
  9135. documents_.Add(std::move(value));
  9136. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  9137. }
  9138. inline void Target_DocumentsTarget::add_documents(const char* value) {
  9139. GOOGLE_DCHECK(value != nullptr);
  9140. documents_.Add()->assign(value);
  9141. // @@protoc_insertion_point(field_add_char:google.firestore.v1.Target.DocumentsTarget.documents)
  9142. }
  9143. inline void Target_DocumentsTarget::add_documents(const char* value, size_t size) {
  9144. documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9145. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  9146. }
  9147. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9148. Target_DocumentsTarget::documents() const {
  9149. // @@protoc_insertion_point(field_list:google.firestore.v1.Target.DocumentsTarget.documents)
  9150. return documents_;
  9151. }
  9152. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9153. Target_DocumentsTarget::mutable_documents() {
  9154. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Target.DocumentsTarget.documents)
  9155. return &documents_;
  9156. }
  9157. // -------------------------------------------------------------------
  9158. // Target_QueryTarget
  9159. // string parent = 1;
  9160. inline void Target_QueryTarget::clear_parent() {
  9161. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9162. }
  9163. inline const std::string& Target_QueryTarget::parent() const {
  9164. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.parent)
  9165. return _internal_parent();
  9166. }
  9167. inline void Target_QueryTarget::set_parent(const std::string& value) {
  9168. _internal_set_parent(value);
  9169. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.QueryTarget.parent)
  9170. }
  9171. inline std::string* Target_QueryTarget::mutable_parent() {
  9172. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.parent)
  9173. return _internal_mutable_parent();
  9174. }
  9175. inline const std::string& Target_QueryTarget::_internal_parent() const {
  9176. return parent_.GetNoArena();
  9177. }
  9178. inline void Target_QueryTarget::_internal_set_parent(const std::string& value) {
  9179. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9180. }
  9181. inline void Target_QueryTarget::set_parent(std::string&& value) {
  9182. parent_.SetNoArena(
  9183. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9184. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Target.QueryTarget.parent)
  9185. }
  9186. inline void Target_QueryTarget::set_parent(const char* value) {
  9187. GOOGLE_DCHECK(value != nullptr);
  9188. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9189. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.QueryTarget.parent)
  9190. }
  9191. inline void Target_QueryTarget::set_parent(const char* value, size_t size) {
  9192. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9193. ::std::string(reinterpret_cast<const char*>(value), size));
  9194. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.QueryTarget.parent)
  9195. }
  9196. inline std::string* Target_QueryTarget::_internal_mutable_parent() {
  9197. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9198. }
  9199. inline std::string* Target_QueryTarget::release_parent() {
  9200. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.parent)
  9201. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9202. }
  9203. inline void Target_QueryTarget::set_allocated_parent(std::string* parent) {
  9204. if (parent != nullptr) {
  9205. } else {
  9206. }
  9207. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  9208. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.QueryTarget.parent)
  9209. }
  9210. // .google.firestore.v1.StructuredQuery structured_query = 2;
  9211. inline bool Target_QueryTarget::_internal_has_structured_query() const {
  9212. return query_type_case() == kStructuredQuery;
  9213. }
  9214. inline bool Target_QueryTarget::has_structured_query() const {
  9215. return _internal_has_structured_query();
  9216. }
  9217. inline void Target_QueryTarget::set_has_structured_query() {
  9218. _oneof_case_[0] = kStructuredQuery;
  9219. }
  9220. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::release_structured_query() {
  9221. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.structured_query)
  9222. if (_internal_has_structured_query()) {
  9223. clear_has_query_type();
  9224. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  9225. query_type_.structured_query_ = nullptr;
  9226. return temp;
  9227. } else {
  9228. return nullptr;
  9229. }
  9230. }
  9231. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::_internal_structured_query() const {
  9232. return _internal_has_structured_query()
  9233. ? *query_type_.structured_query_
  9234. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  9235. }
  9236. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::structured_query() const {
  9237. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.structured_query)
  9238. return _internal_structured_query();
  9239. }
  9240. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::_internal_mutable_structured_query() {
  9241. if (!_internal_has_structured_query()) {
  9242. clear_query_type();
  9243. set_has_structured_query();
  9244. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  9245. GetArenaNoVirtual());
  9246. }
  9247. return query_type_.structured_query_;
  9248. }
  9249. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::mutable_structured_query() {
  9250. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.structured_query)
  9251. return _internal_mutable_structured_query();
  9252. }
  9253. inline bool Target_QueryTarget::has_query_type() const {
  9254. return query_type_case() != QUERY_TYPE_NOT_SET;
  9255. }
  9256. inline void Target_QueryTarget::clear_has_query_type() {
  9257. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  9258. }
  9259. inline Target_QueryTarget::QueryTypeCase Target_QueryTarget::query_type_case() const {
  9260. return Target_QueryTarget::QueryTypeCase(_oneof_case_[0]);
  9261. }
  9262. // -------------------------------------------------------------------
  9263. // Target
  9264. // .google.firestore.v1.Target.QueryTarget query = 2;
  9265. inline bool Target::_internal_has_query() const {
  9266. return target_type_case() == kQuery;
  9267. }
  9268. inline bool Target::has_query() const {
  9269. return _internal_has_query();
  9270. }
  9271. inline void Target::set_has_query() {
  9272. _oneof_case_[0] = kQuery;
  9273. }
  9274. inline void Target::clear_query() {
  9275. if (_internal_has_query()) {
  9276. delete target_type_.query_;
  9277. clear_has_target_type();
  9278. }
  9279. }
  9280. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  9281. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.query)
  9282. if (_internal_has_query()) {
  9283. clear_has_target_type();
  9284. ::google::firestore::v1::Target_QueryTarget* temp = target_type_.query_;
  9285. target_type_.query_ = nullptr;
  9286. return temp;
  9287. } else {
  9288. return nullptr;
  9289. }
  9290. }
  9291. inline const ::google::firestore::v1::Target_QueryTarget& Target::_internal_query() const {
  9292. return _internal_has_query()
  9293. ? *target_type_.query_
  9294. : *reinterpret_cast< ::google::firestore::v1::Target_QueryTarget*>(&::google::firestore::v1::_Target_QueryTarget_default_instance_);
  9295. }
  9296. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const {
  9297. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.query)
  9298. return _internal_query();
  9299. }
  9300. inline ::google::firestore::v1::Target_QueryTarget* Target::_internal_mutable_query() {
  9301. if (!_internal_has_query()) {
  9302. clear_target_type();
  9303. set_has_query();
  9304. target_type_.query_ = CreateMaybeMessage< ::google::firestore::v1::Target_QueryTarget >(
  9305. GetArenaNoVirtual());
  9306. }
  9307. return target_type_.query_;
  9308. }
  9309. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() {
  9310. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.query)
  9311. return _internal_mutable_query();
  9312. }
  9313. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  9314. inline bool Target::_internal_has_documents() const {
  9315. return target_type_case() == kDocuments;
  9316. }
  9317. inline bool Target::has_documents() const {
  9318. return _internal_has_documents();
  9319. }
  9320. inline void Target::set_has_documents() {
  9321. _oneof_case_[0] = kDocuments;
  9322. }
  9323. inline void Target::clear_documents() {
  9324. if (_internal_has_documents()) {
  9325. delete target_type_.documents_;
  9326. clear_has_target_type();
  9327. }
  9328. }
  9329. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  9330. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.documents)
  9331. if (_internal_has_documents()) {
  9332. clear_has_target_type();
  9333. ::google::firestore::v1::Target_DocumentsTarget* temp = target_type_.documents_;
  9334. target_type_.documents_ = nullptr;
  9335. return temp;
  9336. } else {
  9337. return nullptr;
  9338. }
  9339. }
  9340. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::_internal_documents() const {
  9341. return _internal_has_documents()
  9342. ? *target_type_.documents_
  9343. : *reinterpret_cast< ::google::firestore::v1::Target_DocumentsTarget*>(&::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  9344. }
  9345. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const {
  9346. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.documents)
  9347. return _internal_documents();
  9348. }
  9349. inline ::google::firestore::v1::Target_DocumentsTarget* Target::_internal_mutable_documents() {
  9350. if (!_internal_has_documents()) {
  9351. clear_target_type();
  9352. set_has_documents();
  9353. target_type_.documents_ = CreateMaybeMessage< ::google::firestore::v1::Target_DocumentsTarget >(
  9354. GetArenaNoVirtual());
  9355. }
  9356. return target_type_.documents_;
  9357. }
  9358. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() {
  9359. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.documents)
  9360. return _internal_mutable_documents();
  9361. }
  9362. // bytes resume_token = 4;
  9363. inline bool Target::_internal_has_resume_token() const {
  9364. return resume_type_case() == kResumeToken;
  9365. }
  9366. inline void Target::set_has_resume_token() {
  9367. _oneof_case_[1] = kResumeToken;
  9368. }
  9369. inline void Target::clear_resume_token() {
  9370. if (_internal_has_resume_token()) {
  9371. resume_type_.resume_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9372. clear_has_resume_type();
  9373. }
  9374. }
  9375. inline const std::string& Target::resume_token() const {
  9376. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.resume_token)
  9377. return _internal_resume_token();
  9378. }
  9379. inline void Target::set_resume_token(const std::string& value) {
  9380. _internal_set_resume_token(value);
  9381. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  9382. }
  9383. inline std::string* Target::mutable_resume_token() {
  9384. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.resume_token)
  9385. return _internal_mutable_resume_token();
  9386. }
  9387. inline const std::string& Target::_internal_resume_token() const {
  9388. if (_internal_has_resume_token()) {
  9389. return resume_type_.resume_token_.GetNoArena();
  9390. }
  9391. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  9392. }
  9393. inline void Target::_internal_set_resume_token(const std::string& value) {
  9394. if (!_internal_has_resume_token()) {
  9395. clear_resume_type();
  9396. set_has_resume_token();
  9397. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9398. }
  9399. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9400. }
  9401. inline void Target::set_resume_token(std::string&& value) {
  9402. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  9403. if (!_internal_has_resume_token()) {
  9404. clear_resume_type();
  9405. set_has_resume_token();
  9406. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9407. }
  9408. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9409. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Target.resume_token)
  9410. }
  9411. inline void Target::set_resume_token(const char* value) {
  9412. GOOGLE_DCHECK(value != nullptr);
  9413. if (!_internal_has_resume_token()) {
  9414. clear_resume_type();
  9415. set_has_resume_token();
  9416. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9417. }
  9418. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9419. ::std::string(value));
  9420. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.resume_token)
  9421. }
  9422. inline void Target::set_resume_token(const void* value, size_t size) {
  9423. if (!_internal_has_resume_token()) {
  9424. clear_resume_type();
  9425. set_has_resume_token();
  9426. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9427. }
  9428. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9429. reinterpret_cast<const char*>(value), size));
  9430. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.resume_token)
  9431. }
  9432. inline std::string* Target::_internal_mutable_resume_token() {
  9433. if (!_internal_has_resume_token()) {
  9434. clear_resume_type();
  9435. set_has_resume_token();
  9436. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9437. }
  9438. return resume_type_.resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9439. }
  9440. inline std::string* Target::release_resume_token() {
  9441. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.resume_token)
  9442. if (_internal_has_resume_token()) {
  9443. clear_has_resume_type();
  9444. return resume_type_.resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9445. } else {
  9446. return nullptr;
  9447. }
  9448. }
  9449. inline void Target::set_allocated_resume_token(std::string* resume_token) {
  9450. if (has_resume_type()) {
  9451. clear_resume_type();
  9452. }
  9453. if (resume_token != nullptr) {
  9454. set_has_resume_token();
  9455. resume_type_.resume_token_.UnsafeSetDefault(resume_token);
  9456. }
  9457. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.resume_token)
  9458. }
  9459. // .google.protobuf.Timestamp read_time = 11;
  9460. inline bool Target::_internal_has_read_time() const {
  9461. return resume_type_case() == kReadTime;
  9462. }
  9463. inline bool Target::has_read_time() const {
  9464. return _internal_has_read_time();
  9465. }
  9466. inline void Target::set_has_read_time() {
  9467. _oneof_case_[1] = kReadTime;
  9468. }
  9469. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_read_time() {
  9470. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.read_time)
  9471. if (_internal_has_read_time()) {
  9472. clear_has_resume_type();
  9473. PROTOBUF_NAMESPACE_ID::Timestamp* temp = resume_type_.read_time_;
  9474. resume_type_.read_time_ = nullptr;
  9475. return temp;
  9476. } else {
  9477. return nullptr;
  9478. }
  9479. }
  9480. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::_internal_read_time() const {
  9481. return _internal_has_read_time()
  9482. ? *resume_type_.read_time_
  9483. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  9484. }
  9485. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::read_time() const {
  9486. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.read_time)
  9487. return _internal_read_time();
  9488. }
  9489. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::_internal_mutable_read_time() {
  9490. if (!_internal_has_read_time()) {
  9491. clear_resume_type();
  9492. set_has_read_time();
  9493. resume_type_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  9494. GetArenaNoVirtual());
  9495. }
  9496. return resume_type_.read_time_;
  9497. }
  9498. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_read_time() {
  9499. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.read_time)
  9500. return _internal_mutable_read_time();
  9501. }
  9502. // int32 target_id = 5;
  9503. inline void Target::clear_target_id() {
  9504. target_id_ = 0;
  9505. }
  9506. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::_internal_target_id() const {
  9507. return target_id_;
  9508. }
  9509. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::target_id() const {
  9510. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.target_id)
  9511. return _internal_target_id();
  9512. }
  9513. inline void Target::_internal_set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9514. target_id_ = value;
  9515. }
  9516. inline void Target::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9517. _internal_set_target_id(value);
  9518. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.target_id)
  9519. }
  9520. // bool once = 6;
  9521. inline void Target::clear_once() {
  9522. once_ = false;
  9523. }
  9524. inline bool Target::_internal_once() const {
  9525. return once_;
  9526. }
  9527. inline bool Target::once() const {
  9528. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.once)
  9529. return _internal_once();
  9530. }
  9531. inline void Target::_internal_set_once(bool value) {
  9532. once_ = value;
  9533. }
  9534. inline void Target::set_once(bool value) {
  9535. _internal_set_once(value);
  9536. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.once)
  9537. }
  9538. inline bool Target::has_target_type() const {
  9539. return target_type_case() != TARGET_TYPE_NOT_SET;
  9540. }
  9541. inline void Target::clear_has_target_type() {
  9542. _oneof_case_[0] = TARGET_TYPE_NOT_SET;
  9543. }
  9544. inline bool Target::has_resume_type() const {
  9545. return resume_type_case() != RESUME_TYPE_NOT_SET;
  9546. }
  9547. inline void Target::clear_has_resume_type() {
  9548. _oneof_case_[1] = RESUME_TYPE_NOT_SET;
  9549. }
  9550. inline Target::TargetTypeCase Target::target_type_case() const {
  9551. return Target::TargetTypeCase(_oneof_case_[0]);
  9552. }
  9553. inline Target::ResumeTypeCase Target::resume_type_case() const {
  9554. return Target::ResumeTypeCase(_oneof_case_[1]);
  9555. }
  9556. // -------------------------------------------------------------------
  9557. // TargetChange
  9558. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  9559. inline void TargetChange::clear_target_change_type() {
  9560. target_change_type_ = 0;
  9561. }
  9562. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::_internal_target_change_type() const {
  9563. return static_cast< ::google::firestore::v1::TargetChange_TargetChangeType >(target_change_type_);
  9564. }
  9565. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::target_change_type() const {
  9566. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_change_type)
  9567. return _internal_target_change_type();
  9568. }
  9569. inline void TargetChange::_internal_set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  9570. target_change_type_ = value;
  9571. }
  9572. inline void TargetChange::set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  9573. _internal_set_target_change_type(value);
  9574. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_change_type)
  9575. }
  9576. // repeated int32 target_ids = 2;
  9577. inline int TargetChange::_internal_target_ids_size() const {
  9578. return target_ids_.size();
  9579. }
  9580. inline int TargetChange::target_ids_size() const {
  9581. return _internal_target_ids_size();
  9582. }
  9583. inline void TargetChange::clear_target_ids() {
  9584. target_ids_.Clear();
  9585. }
  9586. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetChange::_internal_target_ids(int index) const {
  9587. return target_ids_.Get(index);
  9588. }
  9589. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetChange::target_ids(int index) const {
  9590. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_ids)
  9591. return _internal_target_ids(index);
  9592. }
  9593. inline void TargetChange::set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  9594. target_ids_.Set(index, value);
  9595. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_ids)
  9596. }
  9597. inline void TargetChange::_internal_add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9598. target_ids_.Add(value);
  9599. }
  9600. inline void TargetChange::add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9601. _internal_add_target_ids(value);
  9602. // @@protoc_insertion_point(field_add:google.firestore.v1.TargetChange.target_ids)
  9603. }
  9604. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  9605. TargetChange::_internal_target_ids() const {
  9606. return target_ids_;
  9607. }
  9608. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  9609. TargetChange::target_ids() const {
  9610. // @@protoc_insertion_point(field_list:google.firestore.v1.TargetChange.target_ids)
  9611. return _internal_target_ids();
  9612. }
  9613. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  9614. TargetChange::_internal_mutable_target_ids() {
  9615. return &target_ids_;
  9616. }
  9617. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  9618. TargetChange::mutable_target_ids() {
  9619. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.TargetChange.target_ids)
  9620. return _internal_mutable_target_ids();
  9621. }
  9622. // .google.rpc.Status cause = 3;
  9623. inline bool TargetChange::_internal_has_cause() const {
  9624. return this != internal_default_instance() && cause_ != nullptr;
  9625. }
  9626. inline bool TargetChange::has_cause() const {
  9627. return _internal_has_cause();
  9628. }
  9629. inline const ::google::rpc::Status& TargetChange::_internal_cause() const {
  9630. const ::google::rpc::Status* p = cause_;
  9631. return p != nullptr ? *p : *reinterpret_cast<const ::google::rpc::Status*>(
  9632. &::google::rpc::_Status_default_instance_);
  9633. }
  9634. inline const ::google::rpc::Status& TargetChange::cause() const {
  9635. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.cause)
  9636. return _internal_cause();
  9637. }
  9638. inline ::google::rpc::Status* TargetChange::release_cause() {
  9639. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.cause)
  9640. ::google::rpc::Status* temp = cause_;
  9641. cause_ = nullptr;
  9642. return temp;
  9643. }
  9644. inline ::google::rpc::Status* TargetChange::_internal_mutable_cause() {
  9645. if (cause_ == nullptr) {
  9646. auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArenaNoVirtual());
  9647. cause_ = p;
  9648. }
  9649. return cause_;
  9650. }
  9651. inline ::google::rpc::Status* TargetChange::mutable_cause() {
  9652. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.cause)
  9653. return _internal_mutable_cause();
  9654. }
  9655. inline void TargetChange::set_allocated_cause(::google::rpc::Status* cause) {
  9656. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9657. if (message_arena == nullptr) {
  9658. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cause_);
  9659. }
  9660. if (cause) {
  9661. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  9662. if (message_arena != submessage_arena) {
  9663. cause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9664. message_arena, cause, submessage_arena);
  9665. }
  9666. } else {
  9667. }
  9668. cause_ = cause;
  9669. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.cause)
  9670. }
  9671. // bytes resume_token = 4;
  9672. inline void TargetChange::clear_resume_token() {
  9673. resume_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9674. }
  9675. inline const std::string& TargetChange::resume_token() const {
  9676. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.resume_token)
  9677. return _internal_resume_token();
  9678. }
  9679. inline void TargetChange::set_resume_token(const std::string& value) {
  9680. _internal_set_resume_token(value);
  9681. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.resume_token)
  9682. }
  9683. inline std::string* TargetChange::mutable_resume_token() {
  9684. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.resume_token)
  9685. return _internal_mutable_resume_token();
  9686. }
  9687. inline const std::string& TargetChange::_internal_resume_token() const {
  9688. return resume_token_.GetNoArena();
  9689. }
  9690. inline void TargetChange::_internal_set_resume_token(const std::string& value) {
  9691. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9692. }
  9693. inline void TargetChange::set_resume_token(std::string&& value) {
  9694. resume_token_.SetNoArena(
  9695. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9696. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.TargetChange.resume_token)
  9697. }
  9698. inline void TargetChange::set_resume_token(const char* value) {
  9699. GOOGLE_DCHECK(value != nullptr);
  9700. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9701. // @@protoc_insertion_point(field_set_char:google.firestore.v1.TargetChange.resume_token)
  9702. }
  9703. inline void TargetChange::set_resume_token(const void* value, size_t size) {
  9704. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9705. ::std::string(reinterpret_cast<const char*>(value), size));
  9706. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.TargetChange.resume_token)
  9707. }
  9708. inline std::string* TargetChange::_internal_mutable_resume_token() {
  9709. return resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9710. }
  9711. inline std::string* TargetChange::release_resume_token() {
  9712. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.resume_token)
  9713. return resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9714. }
  9715. inline void TargetChange::set_allocated_resume_token(std::string* resume_token) {
  9716. if (resume_token != nullptr) {
  9717. } else {
  9718. }
  9719. resume_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resume_token);
  9720. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.resume_token)
  9721. }
  9722. // .google.protobuf.Timestamp read_time = 6;
  9723. inline bool TargetChange::_internal_has_read_time() const {
  9724. return this != internal_default_instance() && read_time_ != nullptr;
  9725. }
  9726. inline bool TargetChange::has_read_time() const {
  9727. return _internal_has_read_time();
  9728. }
  9729. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetChange::_internal_read_time() const {
  9730. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  9731. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  9732. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  9733. }
  9734. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetChange::read_time() const {
  9735. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.read_time)
  9736. return _internal_read_time();
  9737. }
  9738. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::release_read_time() {
  9739. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.read_time)
  9740. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  9741. read_time_ = nullptr;
  9742. return temp;
  9743. }
  9744. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::_internal_mutable_read_time() {
  9745. if (read_time_ == nullptr) {
  9746. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  9747. read_time_ = p;
  9748. }
  9749. return read_time_;
  9750. }
  9751. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::mutable_read_time() {
  9752. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.read_time)
  9753. return _internal_mutable_read_time();
  9754. }
  9755. inline void TargetChange::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  9756. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9757. if (message_arena == nullptr) {
  9758. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  9759. }
  9760. if (read_time) {
  9761. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9762. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  9763. if (message_arena != submessage_arena) {
  9764. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9765. message_arena, read_time, submessage_arena);
  9766. }
  9767. } else {
  9768. }
  9769. read_time_ = read_time;
  9770. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.read_time)
  9771. }
  9772. // -------------------------------------------------------------------
  9773. // ListCollectionIdsRequest
  9774. // string parent = 1;
  9775. inline void ListCollectionIdsRequest::clear_parent() {
  9776. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9777. }
  9778. inline const std::string& ListCollectionIdsRequest::parent() const {
  9779. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.parent)
  9780. return _internal_parent();
  9781. }
  9782. inline void ListCollectionIdsRequest::set_parent(const std::string& value) {
  9783. _internal_set_parent(value);
  9784. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.parent)
  9785. }
  9786. inline std::string* ListCollectionIdsRequest::mutable_parent() {
  9787. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.parent)
  9788. return _internal_mutable_parent();
  9789. }
  9790. inline const std::string& ListCollectionIdsRequest::_internal_parent() const {
  9791. return parent_.GetNoArena();
  9792. }
  9793. inline void ListCollectionIdsRequest::_internal_set_parent(const std::string& value) {
  9794. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9795. }
  9796. inline void ListCollectionIdsRequest::set_parent(std::string&& value) {
  9797. parent_.SetNoArena(
  9798. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9799. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsRequest.parent)
  9800. }
  9801. inline void ListCollectionIdsRequest::set_parent(const char* value) {
  9802. GOOGLE_DCHECK(value != nullptr);
  9803. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9804. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsRequest.parent)
  9805. }
  9806. inline void ListCollectionIdsRequest::set_parent(const char* value, size_t size) {
  9807. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9808. ::std::string(reinterpret_cast<const char*>(value), size));
  9809. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsRequest.parent)
  9810. }
  9811. inline std::string* ListCollectionIdsRequest::_internal_mutable_parent() {
  9812. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9813. }
  9814. inline std::string* ListCollectionIdsRequest::release_parent() {
  9815. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.parent)
  9816. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9817. }
  9818. inline void ListCollectionIdsRequest::set_allocated_parent(std::string* parent) {
  9819. if (parent != nullptr) {
  9820. } else {
  9821. }
  9822. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  9823. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.parent)
  9824. }
  9825. // int32 page_size = 2;
  9826. inline void ListCollectionIdsRequest::clear_page_size() {
  9827. page_size_ = 0;
  9828. }
  9829. inline ::PROTOBUF_NAMESPACE_ID::int32 ListCollectionIdsRequest::_internal_page_size() const {
  9830. return page_size_;
  9831. }
  9832. inline ::PROTOBUF_NAMESPACE_ID::int32 ListCollectionIdsRequest::page_size() const {
  9833. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_size)
  9834. return _internal_page_size();
  9835. }
  9836. inline void ListCollectionIdsRequest::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9837. page_size_ = value;
  9838. }
  9839. inline void ListCollectionIdsRequest::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9840. _internal_set_page_size(value);
  9841. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_size)
  9842. }
  9843. // string page_token = 3;
  9844. inline void ListCollectionIdsRequest::clear_page_token() {
  9845. page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9846. }
  9847. inline const std::string& ListCollectionIdsRequest::page_token() const {
  9848. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9849. return _internal_page_token();
  9850. }
  9851. inline void ListCollectionIdsRequest::set_page_token(const std::string& value) {
  9852. _internal_set_page_token(value);
  9853. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9854. }
  9855. inline std::string* ListCollectionIdsRequest::mutable_page_token() {
  9856. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9857. return _internal_mutable_page_token();
  9858. }
  9859. inline const std::string& ListCollectionIdsRequest::_internal_page_token() const {
  9860. return page_token_.GetNoArena();
  9861. }
  9862. inline void ListCollectionIdsRequest::_internal_set_page_token(const std::string& value) {
  9863. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9864. }
  9865. inline void ListCollectionIdsRequest::set_page_token(std::string&& value) {
  9866. page_token_.SetNoArena(
  9867. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9868. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9869. }
  9870. inline void ListCollectionIdsRequest::set_page_token(const char* value) {
  9871. GOOGLE_DCHECK(value != nullptr);
  9872. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9873. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9874. }
  9875. inline void ListCollectionIdsRequest::set_page_token(const char* value, size_t size) {
  9876. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9877. ::std::string(reinterpret_cast<const char*>(value), size));
  9878. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9879. }
  9880. inline std::string* ListCollectionIdsRequest::_internal_mutable_page_token() {
  9881. return page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9882. }
  9883. inline std::string* ListCollectionIdsRequest::release_page_token() {
  9884. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9885. return page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9886. }
  9887. inline void ListCollectionIdsRequest::set_allocated_page_token(std::string* page_token) {
  9888. if (page_token != nullptr) {
  9889. } else {
  9890. }
  9891. page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token);
  9892. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9893. }
  9894. // -------------------------------------------------------------------
  9895. // ListCollectionIdsResponse
  9896. // repeated string collection_ids = 1;
  9897. inline int ListCollectionIdsResponse::_internal_collection_ids_size() const {
  9898. return collection_ids_.size();
  9899. }
  9900. inline int ListCollectionIdsResponse::collection_ids_size() const {
  9901. return _internal_collection_ids_size();
  9902. }
  9903. inline void ListCollectionIdsResponse::clear_collection_ids() {
  9904. collection_ids_.Clear();
  9905. }
  9906. inline std::string* ListCollectionIdsResponse::add_collection_ids() {
  9907. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9908. return _internal_add_collection_ids();
  9909. }
  9910. inline const std::string& ListCollectionIdsResponse::_internal_collection_ids(int index) const {
  9911. return collection_ids_.Get(index);
  9912. }
  9913. inline const std::string& ListCollectionIdsResponse::collection_ids(int index) const {
  9914. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9915. return _internal_collection_ids(index);
  9916. }
  9917. inline std::string* ListCollectionIdsResponse::mutable_collection_ids(int index) {
  9918. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9919. return collection_ids_.Mutable(index);
  9920. }
  9921. inline void ListCollectionIdsResponse::set_collection_ids(int index, const std::string& value) {
  9922. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9923. collection_ids_.Mutable(index)->assign(value);
  9924. }
  9925. inline void ListCollectionIdsResponse::set_collection_ids(int index, std::string&& value) {
  9926. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9927. collection_ids_.Mutable(index)->assign(std::move(value));
  9928. }
  9929. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value) {
  9930. GOOGLE_DCHECK(value != nullptr);
  9931. collection_ids_.Mutable(index)->assign(value);
  9932. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9933. }
  9934. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value, size_t size) {
  9935. collection_ids_.Mutable(index)->assign(
  9936. reinterpret_cast<const char*>(value), size);
  9937. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9938. }
  9939. inline std::string* ListCollectionIdsResponse::_internal_add_collection_ids() {
  9940. return collection_ids_.Add();
  9941. }
  9942. inline void ListCollectionIdsResponse::add_collection_ids(const std::string& value) {
  9943. collection_ids_.Add()->assign(value);
  9944. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9945. }
  9946. inline void ListCollectionIdsResponse::add_collection_ids(std::string&& value) {
  9947. collection_ids_.Add(std::move(value));
  9948. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9949. }
  9950. inline void ListCollectionIdsResponse::add_collection_ids(const char* value) {
  9951. GOOGLE_DCHECK(value != nullptr);
  9952. collection_ids_.Add()->assign(value);
  9953. // @@protoc_insertion_point(field_add_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9954. }
  9955. inline void ListCollectionIdsResponse::add_collection_ids(const char* value, size_t size) {
  9956. collection_ids_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9957. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9958. }
  9959. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9960. ListCollectionIdsResponse::collection_ids() const {
  9961. // @@protoc_insertion_point(field_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9962. return collection_ids_;
  9963. }
  9964. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9965. ListCollectionIdsResponse::mutable_collection_ids() {
  9966. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9967. return &collection_ids_;
  9968. }
  9969. // string next_page_token = 2;
  9970. inline void ListCollectionIdsResponse::clear_next_page_token() {
  9971. next_page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9972. }
  9973. inline const std::string& ListCollectionIdsResponse::next_page_token() const {
  9974. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9975. return _internal_next_page_token();
  9976. }
  9977. inline void ListCollectionIdsResponse::set_next_page_token(const std::string& value) {
  9978. _internal_set_next_page_token(value);
  9979. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9980. }
  9981. inline std::string* ListCollectionIdsResponse::mutable_next_page_token() {
  9982. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9983. return _internal_mutable_next_page_token();
  9984. }
  9985. inline const std::string& ListCollectionIdsResponse::_internal_next_page_token() const {
  9986. return next_page_token_.GetNoArena();
  9987. }
  9988. inline void ListCollectionIdsResponse::_internal_set_next_page_token(const std::string& value) {
  9989. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9990. }
  9991. inline void ListCollectionIdsResponse::set_next_page_token(std::string&& value) {
  9992. next_page_token_.SetNoArena(
  9993. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9994. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9995. }
  9996. inline void ListCollectionIdsResponse::set_next_page_token(const char* value) {
  9997. GOOGLE_DCHECK(value != nullptr);
  9998. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9999. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10000. }
  10001. inline void ListCollectionIdsResponse::set_next_page_token(const char* value, size_t size) {
  10002. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10003. ::std::string(reinterpret_cast<const char*>(value), size));
  10004. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10005. }
  10006. inline std::string* ListCollectionIdsResponse::_internal_mutable_next_page_token() {
  10007. return next_page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10008. }
  10009. inline std::string* ListCollectionIdsResponse::release_next_page_token() {
  10010. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10011. return next_page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10012. }
  10013. inline void ListCollectionIdsResponse::set_allocated_next_page_token(std::string* next_page_token) {
  10014. if (next_page_token != nullptr) {
  10015. } else {
  10016. }
  10017. next_page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token);
  10018. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10019. }
  10020. #ifdef __GNUC__
  10021. #pragma GCC diagnostic pop
  10022. #endif // __GNUC__
  10023. // -------------------------------------------------------------------
  10024. // -------------------------------------------------------------------
  10025. // -------------------------------------------------------------------
  10026. // -------------------------------------------------------------------
  10027. // -------------------------------------------------------------------
  10028. // -------------------------------------------------------------------
  10029. // -------------------------------------------------------------------
  10030. // -------------------------------------------------------------------
  10031. // -------------------------------------------------------------------
  10032. // -------------------------------------------------------------------
  10033. // -------------------------------------------------------------------
  10034. // -------------------------------------------------------------------
  10035. // -------------------------------------------------------------------
  10036. // -------------------------------------------------------------------
  10037. // -------------------------------------------------------------------
  10038. // -------------------------------------------------------------------
  10039. // -------------------------------------------------------------------
  10040. // -------------------------------------------------------------------
  10041. // -------------------------------------------------------------------
  10042. // -------------------------------------------------------------------
  10043. // -------------------------------------------------------------------
  10044. // -------------------------------------------------------------------
  10045. // -------------------------------------------------------------------
  10046. // -------------------------------------------------------------------
  10047. // -------------------------------------------------------------------
  10048. // -------------------------------------------------------------------
  10049. // -------------------------------------------------------------------
  10050. // -------------------------------------------------------------------
  10051. // @@protoc_insertion_point(namespace_scope)
  10052. } // namespace v1
  10053. } // namespace firestore
  10054. } // namespace google
  10055. PROTOBUF_NAMESPACE_OPEN
  10056. template <> struct is_proto_enum< ::google::firestore::v1::TargetChange_TargetChangeType> : ::std::true_type {};
  10057. template <>
  10058. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::TargetChange_TargetChangeType>() {
  10059. return ::google::firestore::v1::TargetChange_TargetChangeType_descriptor();
  10060. }
  10061. PROTOBUF_NAMESPACE_CLOSE
  10062. // @@protoc_insertion_point(global_scope)
  10063. #include <google/protobuf/port_undef.inc>
  10064. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto