firestore.pb.h 415 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313
  1. /*
  2. * Copyright 2022 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/common.pb.h"
  52. #include "google/firestore/v1/document.pb.h"
  53. #include "google/firestore/v1/query.pb.h"
  54. #include "google/firestore/v1/write.pb.h"
  55. #include <google/protobuf/empty.pb.h>
  56. #include <google/protobuf/timestamp.pb.h>
  57. #include "google/rpc/status.pb.h"
  58. // @@protoc_insertion_point(includes)
  59. #include <google/protobuf/port_def.inc>
  60. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto
  61. PROTOBUF_NAMESPACE_OPEN
  62. namespace internal {
  63. class AnyMetadata;
  64. } // namespace internal
  65. PROTOBUF_NAMESPACE_CLOSE
  66. // Internal implementation detail -- do not use these members.
  67. struct TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto {
  68. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  69. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  70. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  71. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  72. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[27]
  73. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  74. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  75. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  76. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  77. };
  78. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto;
  79. namespace google {
  80. namespace firestore {
  81. namespace v1 {
  82. class BatchGetDocumentsRequest;
  83. class BatchGetDocumentsRequestDefaultTypeInternal;
  84. extern BatchGetDocumentsRequestDefaultTypeInternal _BatchGetDocumentsRequest_default_instance_;
  85. class BatchGetDocumentsResponse;
  86. class BatchGetDocumentsResponseDefaultTypeInternal;
  87. extern BatchGetDocumentsResponseDefaultTypeInternal _BatchGetDocumentsResponse_default_instance_;
  88. class BeginTransactionRequest;
  89. class BeginTransactionRequestDefaultTypeInternal;
  90. extern BeginTransactionRequestDefaultTypeInternal _BeginTransactionRequest_default_instance_;
  91. class BeginTransactionResponse;
  92. class BeginTransactionResponseDefaultTypeInternal;
  93. extern BeginTransactionResponseDefaultTypeInternal _BeginTransactionResponse_default_instance_;
  94. class CommitRequest;
  95. class CommitRequestDefaultTypeInternal;
  96. extern CommitRequestDefaultTypeInternal _CommitRequest_default_instance_;
  97. class CommitResponse;
  98. class CommitResponseDefaultTypeInternal;
  99. extern CommitResponseDefaultTypeInternal _CommitResponse_default_instance_;
  100. class CreateDocumentRequest;
  101. class CreateDocumentRequestDefaultTypeInternal;
  102. extern CreateDocumentRequestDefaultTypeInternal _CreateDocumentRequest_default_instance_;
  103. class DeleteDocumentRequest;
  104. class DeleteDocumentRequestDefaultTypeInternal;
  105. extern DeleteDocumentRequestDefaultTypeInternal _DeleteDocumentRequest_default_instance_;
  106. class GetDocumentRequest;
  107. class GetDocumentRequestDefaultTypeInternal;
  108. extern GetDocumentRequestDefaultTypeInternal _GetDocumentRequest_default_instance_;
  109. class ListCollectionIdsRequest;
  110. class ListCollectionIdsRequestDefaultTypeInternal;
  111. extern ListCollectionIdsRequestDefaultTypeInternal _ListCollectionIdsRequest_default_instance_;
  112. class ListCollectionIdsResponse;
  113. class ListCollectionIdsResponseDefaultTypeInternal;
  114. extern ListCollectionIdsResponseDefaultTypeInternal _ListCollectionIdsResponse_default_instance_;
  115. class ListDocumentsRequest;
  116. class ListDocumentsRequestDefaultTypeInternal;
  117. extern ListDocumentsRequestDefaultTypeInternal _ListDocumentsRequest_default_instance_;
  118. class ListDocumentsResponse;
  119. class ListDocumentsResponseDefaultTypeInternal;
  120. extern ListDocumentsResponseDefaultTypeInternal _ListDocumentsResponse_default_instance_;
  121. class ListenRequest;
  122. class ListenRequestDefaultTypeInternal;
  123. extern ListenRequestDefaultTypeInternal _ListenRequest_default_instance_;
  124. class ListenRequest_LabelsEntry_DoNotUse;
  125. class ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  126. extern ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal _ListenRequest_LabelsEntry_DoNotUse_default_instance_;
  127. class ListenResponse;
  128. class ListenResponseDefaultTypeInternal;
  129. extern ListenResponseDefaultTypeInternal _ListenResponse_default_instance_;
  130. class RollbackRequest;
  131. class RollbackRequestDefaultTypeInternal;
  132. extern RollbackRequestDefaultTypeInternal _RollbackRequest_default_instance_;
  133. class RunQueryRequest;
  134. class RunQueryRequestDefaultTypeInternal;
  135. extern RunQueryRequestDefaultTypeInternal _RunQueryRequest_default_instance_;
  136. class RunQueryResponse;
  137. class RunQueryResponseDefaultTypeInternal;
  138. extern RunQueryResponseDefaultTypeInternal _RunQueryResponse_default_instance_;
  139. class Target;
  140. class TargetDefaultTypeInternal;
  141. extern TargetDefaultTypeInternal _Target_default_instance_;
  142. class TargetChange;
  143. class TargetChangeDefaultTypeInternal;
  144. extern TargetChangeDefaultTypeInternal _TargetChange_default_instance_;
  145. class Target_DocumentsTarget;
  146. class Target_DocumentsTargetDefaultTypeInternal;
  147. extern Target_DocumentsTargetDefaultTypeInternal _Target_DocumentsTarget_default_instance_;
  148. class Target_QueryTarget;
  149. class Target_QueryTargetDefaultTypeInternal;
  150. extern Target_QueryTargetDefaultTypeInternal _Target_QueryTarget_default_instance_;
  151. class UpdateDocumentRequest;
  152. class UpdateDocumentRequestDefaultTypeInternal;
  153. extern UpdateDocumentRequestDefaultTypeInternal _UpdateDocumentRequest_default_instance_;
  154. class WriteRequest;
  155. class WriteRequestDefaultTypeInternal;
  156. extern WriteRequestDefaultTypeInternal _WriteRequest_default_instance_;
  157. class WriteRequest_LabelsEntry_DoNotUse;
  158. class WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  159. extern WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal _WriteRequest_LabelsEntry_DoNotUse_default_instance_;
  160. class WriteResponse;
  161. class WriteResponseDefaultTypeInternal;
  162. extern WriteResponseDefaultTypeInternal _WriteResponse_default_instance_;
  163. } // namespace v1
  164. } // namespace firestore
  165. } // namespace google
  166. PROTOBUF_NAMESPACE_OPEN
  167. template<> ::google::firestore::v1::BatchGetDocumentsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::BatchGetDocumentsRequest>(Arena*);
  168. template<> ::google::firestore::v1::BatchGetDocumentsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::BatchGetDocumentsResponse>(Arena*);
  169. template<> ::google::firestore::v1::BeginTransactionRequest* Arena::CreateMaybeMessage<::google::firestore::v1::BeginTransactionRequest>(Arena*);
  170. template<> ::google::firestore::v1::BeginTransactionResponse* Arena::CreateMaybeMessage<::google::firestore::v1::BeginTransactionResponse>(Arena*);
  171. template<> ::google::firestore::v1::CommitRequest* Arena::CreateMaybeMessage<::google::firestore::v1::CommitRequest>(Arena*);
  172. template<> ::google::firestore::v1::CommitResponse* Arena::CreateMaybeMessage<::google::firestore::v1::CommitResponse>(Arena*);
  173. template<> ::google::firestore::v1::CreateDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::CreateDocumentRequest>(Arena*);
  174. template<> ::google::firestore::v1::DeleteDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::DeleteDocumentRequest>(Arena*);
  175. template<> ::google::firestore::v1::GetDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::GetDocumentRequest>(Arena*);
  176. template<> ::google::firestore::v1::ListCollectionIdsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListCollectionIdsRequest>(Arena*);
  177. template<> ::google::firestore::v1::ListCollectionIdsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListCollectionIdsResponse>(Arena*);
  178. template<> ::google::firestore::v1::ListDocumentsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListDocumentsRequest>(Arena*);
  179. template<> ::google::firestore::v1::ListDocumentsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListDocumentsResponse>(Arena*);
  180. template<> ::google::firestore::v1::ListenRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListenRequest>(Arena*);
  181. template<> ::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse>(Arena*);
  182. template<> ::google::firestore::v1::ListenResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListenResponse>(Arena*);
  183. template<> ::google::firestore::v1::RollbackRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RollbackRequest>(Arena*);
  184. template<> ::google::firestore::v1::RunQueryRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RunQueryRequest>(Arena*);
  185. template<> ::google::firestore::v1::RunQueryResponse* Arena::CreateMaybeMessage<::google::firestore::v1::RunQueryResponse>(Arena*);
  186. template<> ::google::firestore::v1::Target* Arena::CreateMaybeMessage<::google::firestore::v1::Target>(Arena*);
  187. template<> ::google::firestore::v1::TargetChange* Arena::CreateMaybeMessage<::google::firestore::v1::TargetChange>(Arena*);
  188. template<> ::google::firestore::v1::Target_DocumentsTarget* Arena::CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(Arena*);
  189. template<> ::google::firestore::v1::Target_QueryTarget* Arena::CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(Arena*);
  190. template<> ::google::firestore::v1::UpdateDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::UpdateDocumentRequest>(Arena*);
  191. template<> ::google::firestore::v1::WriteRequest* Arena::CreateMaybeMessage<::google::firestore::v1::WriteRequest>(Arena*);
  192. template<> ::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse>(Arena*);
  193. template<> ::google::firestore::v1::WriteResponse* Arena::CreateMaybeMessage<::google::firestore::v1::WriteResponse>(Arena*);
  194. PROTOBUF_NAMESPACE_CLOSE
  195. namespace google {
  196. namespace firestore {
  197. namespace v1 {
  198. enum TargetChange_TargetChangeType : int {
  199. TargetChange_TargetChangeType_NO_CHANGE = 0,
  200. TargetChange_TargetChangeType_ADD = 1,
  201. TargetChange_TargetChangeType_REMOVE = 2,
  202. TargetChange_TargetChangeType_CURRENT = 3,
  203. TargetChange_TargetChangeType_RESET = 4,
  204. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  205. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  206. };
  207. bool TargetChange_TargetChangeType_IsValid(int value);
  208. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MIN = TargetChange_TargetChangeType_NO_CHANGE;
  209. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MAX = TargetChange_TargetChangeType_RESET;
  210. constexpr int TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE = TargetChange_TargetChangeType_TargetChangeType_MAX + 1;
  211. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TargetChange_TargetChangeType_descriptor();
  212. template<typename T>
  213. inline const std::string& TargetChange_TargetChangeType_Name(T enum_t_value) {
  214. static_assert(::std::is_same<T, TargetChange_TargetChangeType>::value ||
  215. ::std::is_integral<T>::value,
  216. "Incorrect type passed to function TargetChange_TargetChangeType_Name.");
  217. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  218. TargetChange_TargetChangeType_descriptor(), enum_t_value);
  219. }
  220. inline bool TargetChange_TargetChangeType_Parse(
  221. const std::string& name, TargetChange_TargetChangeType* value) {
  222. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TargetChange_TargetChangeType>(
  223. TargetChange_TargetChangeType_descriptor(), name, value);
  224. }
  225. // ===================================================================
  226. class GetDocumentRequest :
  227. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.GetDocumentRequest) */ {
  228. public:
  229. GetDocumentRequest();
  230. virtual ~GetDocumentRequest();
  231. GetDocumentRequest(const GetDocumentRequest& from);
  232. GetDocumentRequest(GetDocumentRequest&& from) noexcept
  233. : GetDocumentRequest() {
  234. *this = ::std::move(from);
  235. }
  236. inline GetDocumentRequest& operator=(const GetDocumentRequest& from) {
  237. CopyFrom(from);
  238. return *this;
  239. }
  240. inline GetDocumentRequest& operator=(GetDocumentRequest&& from) noexcept {
  241. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  242. if (this != &from) InternalSwap(&from);
  243. } else {
  244. CopyFrom(from);
  245. }
  246. return *this;
  247. }
  248. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  249. return GetDescriptor();
  250. }
  251. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  252. return GetMetadataStatic().descriptor;
  253. }
  254. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  255. return GetMetadataStatic().reflection;
  256. }
  257. static const GetDocumentRequest& default_instance();
  258. enum ConsistencySelectorCase {
  259. kTransaction = 3,
  260. kReadTime = 5,
  261. CONSISTENCY_SELECTOR_NOT_SET = 0,
  262. };
  263. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  264. static inline const GetDocumentRequest* internal_default_instance() {
  265. return reinterpret_cast<const GetDocumentRequest*>(
  266. &_GetDocumentRequest_default_instance_);
  267. }
  268. static constexpr int kIndexInFileMessages =
  269. 0;
  270. friend void swap(GetDocumentRequest& a, GetDocumentRequest& b) {
  271. a.Swap(&b);
  272. }
  273. inline void Swap(GetDocumentRequest* other) {
  274. if (other == this) return;
  275. InternalSwap(other);
  276. }
  277. // implements Message ----------------------------------------------
  278. inline GetDocumentRequest* New() const final {
  279. return CreateMaybeMessage<GetDocumentRequest>(nullptr);
  280. }
  281. GetDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  282. return CreateMaybeMessage<GetDocumentRequest>(arena);
  283. }
  284. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  285. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  286. void CopyFrom(const GetDocumentRequest& from);
  287. void MergeFrom(const GetDocumentRequest& from);
  288. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  289. bool IsInitialized() const final;
  290. size_t ByteSizeLong() const final;
  291. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  292. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  293. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  294. int GetCachedSize() const final { return _cached_size_.Get(); }
  295. private:
  296. inline void SharedCtor();
  297. inline void SharedDtor();
  298. void SetCachedSize(int size) const final;
  299. void InternalSwap(GetDocumentRequest* other);
  300. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  301. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  302. return "google.firestore.v1.GetDocumentRequest";
  303. }
  304. private:
  305. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  306. return nullptr;
  307. }
  308. inline void* MaybeArenaPtr() const {
  309. return nullptr;
  310. }
  311. public:
  312. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  313. private:
  314. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  315. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  316. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  317. }
  318. public:
  319. // nested types ----------------------------------------------------
  320. // accessors -------------------------------------------------------
  321. enum : int {
  322. kNameFieldNumber = 1,
  323. kMaskFieldNumber = 2,
  324. kTransactionFieldNumber = 3,
  325. kReadTimeFieldNumber = 5,
  326. };
  327. // string name = 1;
  328. void clear_name();
  329. const std::string& name() const;
  330. void set_name(const std::string& value);
  331. void set_name(std::string&& value);
  332. void set_name(const char* value);
  333. void set_name(const char* value, size_t size);
  334. std::string* mutable_name();
  335. std::string* release_name();
  336. void set_allocated_name(std::string* name);
  337. private:
  338. const std::string& _internal_name() const;
  339. void _internal_set_name(const std::string& value);
  340. std::string* _internal_mutable_name();
  341. public:
  342. // .google.firestore.v1.DocumentMask mask = 2;
  343. bool has_mask() const;
  344. private:
  345. bool _internal_has_mask() const;
  346. public:
  347. void clear_mask();
  348. const ::google::firestore::v1::DocumentMask& mask() const;
  349. ::google::firestore::v1::DocumentMask* release_mask();
  350. ::google::firestore::v1::DocumentMask* mutable_mask();
  351. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  352. private:
  353. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  354. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  355. public:
  356. // bytes transaction = 3;
  357. private:
  358. bool _internal_has_transaction() const;
  359. public:
  360. void clear_transaction();
  361. const std::string& transaction() const;
  362. void set_transaction(const std::string& value);
  363. void set_transaction(std::string&& value);
  364. void set_transaction(const char* value);
  365. void set_transaction(const void* value, size_t size);
  366. std::string* mutable_transaction();
  367. std::string* release_transaction();
  368. void set_allocated_transaction(std::string* transaction);
  369. private:
  370. const std::string& _internal_transaction() const;
  371. void _internal_set_transaction(const std::string& value);
  372. std::string* _internal_mutable_transaction();
  373. public:
  374. // .google.protobuf.Timestamp read_time = 5;
  375. bool has_read_time() const;
  376. private:
  377. bool _internal_has_read_time() const;
  378. public:
  379. void clear_read_time();
  380. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  381. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  382. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  383. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  384. private:
  385. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  386. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  387. public:
  388. void clear_consistency_selector();
  389. ConsistencySelectorCase consistency_selector_case() const;
  390. // @@protoc_insertion_point(class_scope:google.firestore.v1.GetDocumentRequest)
  391. private:
  392. class _Internal;
  393. void set_has_transaction();
  394. void set_has_read_time();
  395. inline bool has_consistency_selector() const;
  396. inline void clear_has_consistency_selector();
  397. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  398. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  399. ::google::firestore::v1::DocumentMask* mask_;
  400. union ConsistencySelectorUnion {
  401. ConsistencySelectorUnion() {}
  402. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  403. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  404. } consistency_selector_;
  405. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  406. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  407. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  408. };
  409. // -------------------------------------------------------------------
  410. class ListDocumentsRequest :
  411. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsRequest) */ {
  412. public:
  413. ListDocumentsRequest();
  414. virtual ~ListDocumentsRequest();
  415. ListDocumentsRequest(const ListDocumentsRequest& from);
  416. ListDocumentsRequest(ListDocumentsRequest&& from) noexcept
  417. : ListDocumentsRequest() {
  418. *this = ::std::move(from);
  419. }
  420. inline ListDocumentsRequest& operator=(const ListDocumentsRequest& from) {
  421. CopyFrom(from);
  422. return *this;
  423. }
  424. inline ListDocumentsRequest& operator=(ListDocumentsRequest&& from) noexcept {
  425. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  426. if (this != &from) InternalSwap(&from);
  427. } else {
  428. CopyFrom(from);
  429. }
  430. return *this;
  431. }
  432. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  433. return GetDescriptor();
  434. }
  435. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  436. return GetMetadataStatic().descriptor;
  437. }
  438. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  439. return GetMetadataStatic().reflection;
  440. }
  441. static const ListDocumentsRequest& default_instance();
  442. enum ConsistencySelectorCase {
  443. kTransaction = 8,
  444. kReadTime = 10,
  445. CONSISTENCY_SELECTOR_NOT_SET = 0,
  446. };
  447. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  448. static inline const ListDocumentsRequest* internal_default_instance() {
  449. return reinterpret_cast<const ListDocumentsRequest*>(
  450. &_ListDocumentsRequest_default_instance_);
  451. }
  452. static constexpr int kIndexInFileMessages =
  453. 1;
  454. friend void swap(ListDocumentsRequest& a, ListDocumentsRequest& b) {
  455. a.Swap(&b);
  456. }
  457. inline void Swap(ListDocumentsRequest* other) {
  458. if (other == this) return;
  459. InternalSwap(other);
  460. }
  461. // implements Message ----------------------------------------------
  462. inline ListDocumentsRequest* New() const final {
  463. return CreateMaybeMessage<ListDocumentsRequest>(nullptr);
  464. }
  465. ListDocumentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  466. return CreateMaybeMessage<ListDocumentsRequest>(arena);
  467. }
  468. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  469. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  470. void CopyFrom(const ListDocumentsRequest& from);
  471. void MergeFrom(const ListDocumentsRequest& from);
  472. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  473. bool IsInitialized() const final;
  474. size_t ByteSizeLong() const final;
  475. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  476. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  477. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  478. int GetCachedSize() const final { return _cached_size_.Get(); }
  479. private:
  480. inline void SharedCtor();
  481. inline void SharedDtor();
  482. void SetCachedSize(int size) const final;
  483. void InternalSwap(ListDocumentsRequest* other);
  484. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  485. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  486. return "google.firestore.v1.ListDocumentsRequest";
  487. }
  488. private:
  489. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  490. return nullptr;
  491. }
  492. inline void* MaybeArenaPtr() const {
  493. return nullptr;
  494. }
  495. public:
  496. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  497. private:
  498. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  499. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  500. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  501. }
  502. public:
  503. // nested types ----------------------------------------------------
  504. // accessors -------------------------------------------------------
  505. enum : int {
  506. kParentFieldNumber = 1,
  507. kCollectionIdFieldNumber = 2,
  508. kPageTokenFieldNumber = 4,
  509. kOrderByFieldNumber = 6,
  510. kMaskFieldNumber = 7,
  511. kPageSizeFieldNumber = 3,
  512. kShowMissingFieldNumber = 12,
  513. kTransactionFieldNumber = 8,
  514. kReadTimeFieldNumber = 10,
  515. };
  516. // string parent = 1;
  517. void clear_parent();
  518. const std::string& parent() const;
  519. void set_parent(const std::string& value);
  520. void set_parent(std::string&& value);
  521. void set_parent(const char* value);
  522. void set_parent(const char* value, size_t size);
  523. std::string* mutable_parent();
  524. std::string* release_parent();
  525. void set_allocated_parent(std::string* parent);
  526. private:
  527. const std::string& _internal_parent() const;
  528. void _internal_set_parent(const std::string& value);
  529. std::string* _internal_mutable_parent();
  530. public:
  531. // string collection_id = 2;
  532. void clear_collection_id();
  533. const std::string& collection_id() const;
  534. void set_collection_id(const std::string& value);
  535. void set_collection_id(std::string&& value);
  536. void set_collection_id(const char* value);
  537. void set_collection_id(const char* value, size_t size);
  538. std::string* mutable_collection_id();
  539. std::string* release_collection_id();
  540. void set_allocated_collection_id(std::string* collection_id);
  541. private:
  542. const std::string& _internal_collection_id() const;
  543. void _internal_set_collection_id(const std::string& value);
  544. std::string* _internal_mutable_collection_id();
  545. public:
  546. // string page_token = 4;
  547. void clear_page_token();
  548. const std::string& page_token() const;
  549. void set_page_token(const std::string& value);
  550. void set_page_token(std::string&& value);
  551. void set_page_token(const char* value);
  552. void set_page_token(const char* value, size_t size);
  553. std::string* mutable_page_token();
  554. std::string* release_page_token();
  555. void set_allocated_page_token(std::string* page_token);
  556. private:
  557. const std::string& _internal_page_token() const;
  558. void _internal_set_page_token(const std::string& value);
  559. std::string* _internal_mutable_page_token();
  560. public:
  561. // string order_by = 6;
  562. void clear_order_by();
  563. const std::string& order_by() const;
  564. void set_order_by(const std::string& value);
  565. void set_order_by(std::string&& value);
  566. void set_order_by(const char* value);
  567. void set_order_by(const char* value, size_t size);
  568. std::string* mutable_order_by();
  569. std::string* release_order_by();
  570. void set_allocated_order_by(std::string* order_by);
  571. private:
  572. const std::string& _internal_order_by() const;
  573. void _internal_set_order_by(const std::string& value);
  574. std::string* _internal_mutable_order_by();
  575. public:
  576. // .google.firestore.v1.DocumentMask mask = 7;
  577. bool has_mask() const;
  578. private:
  579. bool _internal_has_mask() const;
  580. public:
  581. void clear_mask();
  582. const ::google::firestore::v1::DocumentMask& mask() const;
  583. ::google::firestore::v1::DocumentMask* release_mask();
  584. ::google::firestore::v1::DocumentMask* mutable_mask();
  585. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  586. private:
  587. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  588. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  589. public:
  590. // int32 page_size = 3;
  591. void clear_page_size();
  592. ::PROTOBUF_NAMESPACE_ID::int32 page_size() const;
  593. void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  594. private:
  595. ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const;
  596. void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  597. public:
  598. // bool show_missing = 12;
  599. void clear_show_missing();
  600. bool show_missing() const;
  601. void set_show_missing(bool value);
  602. private:
  603. bool _internal_show_missing() const;
  604. void _internal_set_show_missing(bool value);
  605. public:
  606. // bytes transaction = 8;
  607. private:
  608. bool _internal_has_transaction() const;
  609. public:
  610. void clear_transaction();
  611. const std::string& transaction() const;
  612. void set_transaction(const std::string& value);
  613. void set_transaction(std::string&& value);
  614. void set_transaction(const char* value);
  615. void set_transaction(const void* value, size_t size);
  616. std::string* mutable_transaction();
  617. std::string* release_transaction();
  618. void set_allocated_transaction(std::string* transaction);
  619. private:
  620. const std::string& _internal_transaction() const;
  621. void _internal_set_transaction(const std::string& value);
  622. std::string* _internal_mutable_transaction();
  623. public:
  624. // .google.protobuf.Timestamp read_time = 10;
  625. bool has_read_time() const;
  626. private:
  627. bool _internal_has_read_time() const;
  628. public:
  629. void clear_read_time();
  630. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  631. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  632. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  633. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  634. private:
  635. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  636. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  637. public:
  638. void clear_consistency_selector();
  639. ConsistencySelectorCase consistency_selector_case() const;
  640. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsRequest)
  641. private:
  642. class _Internal;
  643. void set_has_transaction();
  644. void set_has_read_time();
  645. inline bool has_consistency_selector() const;
  646. inline void clear_has_consistency_selector();
  647. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  648. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  649. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_id_;
  650. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_;
  651. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_by_;
  652. ::google::firestore::v1::DocumentMask* mask_;
  653. ::PROTOBUF_NAMESPACE_ID::int32 page_size_;
  654. bool show_missing_;
  655. union ConsistencySelectorUnion {
  656. ConsistencySelectorUnion() {}
  657. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  658. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  659. } consistency_selector_;
  660. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  661. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  662. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  663. };
  664. // -------------------------------------------------------------------
  665. class ListDocumentsResponse :
  666. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsResponse) */ {
  667. public:
  668. ListDocumentsResponse();
  669. virtual ~ListDocumentsResponse();
  670. ListDocumentsResponse(const ListDocumentsResponse& from);
  671. ListDocumentsResponse(ListDocumentsResponse&& from) noexcept
  672. : ListDocumentsResponse() {
  673. *this = ::std::move(from);
  674. }
  675. inline ListDocumentsResponse& operator=(const ListDocumentsResponse& from) {
  676. CopyFrom(from);
  677. return *this;
  678. }
  679. inline ListDocumentsResponse& operator=(ListDocumentsResponse&& from) noexcept {
  680. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  681. if (this != &from) InternalSwap(&from);
  682. } else {
  683. CopyFrom(from);
  684. }
  685. return *this;
  686. }
  687. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  688. return GetDescriptor();
  689. }
  690. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  691. return GetMetadataStatic().descriptor;
  692. }
  693. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  694. return GetMetadataStatic().reflection;
  695. }
  696. static const ListDocumentsResponse& default_instance();
  697. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  698. static inline const ListDocumentsResponse* internal_default_instance() {
  699. return reinterpret_cast<const ListDocumentsResponse*>(
  700. &_ListDocumentsResponse_default_instance_);
  701. }
  702. static constexpr int kIndexInFileMessages =
  703. 2;
  704. friend void swap(ListDocumentsResponse& a, ListDocumentsResponse& b) {
  705. a.Swap(&b);
  706. }
  707. inline void Swap(ListDocumentsResponse* other) {
  708. if (other == this) return;
  709. InternalSwap(other);
  710. }
  711. // implements Message ----------------------------------------------
  712. inline ListDocumentsResponse* New() const final {
  713. return CreateMaybeMessage<ListDocumentsResponse>(nullptr);
  714. }
  715. ListDocumentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  716. return CreateMaybeMessage<ListDocumentsResponse>(arena);
  717. }
  718. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  719. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  720. void CopyFrom(const ListDocumentsResponse& from);
  721. void MergeFrom(const ListDocumentsResponse& from);
  722. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  723. bool IsInitialized() const final;
  724. size_t ByteSizeLong() const final;
  725. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  726. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  727. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  728. int GetCachedSize() const final { return _cached_size_.Get(); }
  729. private:
  730. inline void SharedCtor();
  731. inline void SharedDtor();
  732. void SetCachedSize(int size) const final;
  733. void InternalSwap(ListDocumentsResponse* other);
  734. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  735. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  736. return "google.firestore.v1.ListDocumentsResponse";
  737. }
  738. private:
  739. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  740. return nullptr;
  741. }
  742. inline void* MaybeArenaPtr() const {
  743. return nullptr;
  744. }
  745. public:
  746. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  747. private:
  748. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  749. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  750. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  751. }
  752. public:
  753. // nested types ----------------------------------------------------
  754. // accessors -------------------------------------------------------
  755. enum : int {
  756. kDocumentsFieldNumber = 1,
  757. kNextPageTokenFieldNumber = 2,
  758. };
  759. // repeated .google.firestore.v1.Document documents = 1;
  760. int documents_size() const;
  761. private:
  762. int _internal_documents_size() const;
  763. public:
  764. void clear_documents();
  765. ::google::firestore::v1::Document* mutable_documents(int index);
  766. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >*
  767. mutable_documents();
  768. private:
  769. const ::google::firestore::v1::Document& _internal_documents(int index) const;
  770. ::google::firestore::v1::Document* _internal_add_documents();
  771. public:
  772. const ::google::firestore::v1::Document& documents(int index) const;
  773. ::google::firestore::v1::Document* add_documents();
  774. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >&
  775. documents() const;
  776. // string next_page_token = 2;
  777. void clear_next_page_token();
  778. const std::string& next_page_token() const;
  779. void set_next_page_token(const std::string& value);
  780. void set_next_page_token(std::string&& value);
  781. void set_next_page_token(const char* value);
  782. void set_next_page_token(const char* value, size_t size);
  783. std::string* mutable_next_page_token();
  784. std::string* release_next_page_token();
  785. void set_allocated_next_page_token(std::string* next_page_token);
  786. private:
  787. const std::string& _internal_next_page_token() const;
  788. void _internal_set_next_page_token(const std::string& value);
  789. std::string* _internal_mutable_next_page_token();
  790. public:
  791. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsResponse)
  792. private:
  793. class _Internal;
  794. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  795. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document > documents_;
  796. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_;
  797. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  798. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  799. };
  800. // -------------------------------------------------------------------
  801. class CreateDocumentRequest :
  802. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CreateDocumentRequest) */ {
  803. public:
  804. CreateDocumentRequest();
  805. virtual ~CreateDocumentRequest();
  806. CreateDocumentRequest(const CreateDocumentRequest& from);
  807. CreateDocumentRequest(CreateDocumentRequest&& from) noexcept
  808. : CreateDocumentRequest() {
  809. *this = ::std::move(from);
  810. }
  811. inline CreateDocumentRequest& operator=(const CreateDocumentRequest& from) {
  812. CopyFrom(from);
  813. return *this;
  814. }
  815. inline CreateDocumentRequest& operator=(CreateDocumentRequest&& from) noexcept {
  816. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  817. if (this != &from) InternalSwap(&from);
  818. } else {
  819. CopyFrom(from);
  820. }
  821. return *this;
  822. }
  823. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  824. return GetDescriptor();
  825. }
  826. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  827. return GetMetadataStatic().descriptor;
  828. }
  829. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  830. return GetMetadataStatic().reflection;
  831. }
  832. static const CreateDocumentRequest& default_instance();
  833. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  834. static inline const CreateDocumentRequest* internal_default_instance() {
  835. return reinterpret_cast<const CreateDocumentRequest*>(
  836. &_CreateDocumentRequest_default_instance_);
  837. }
  838. static constexpr int kIndexInFileMessages =
  839. 3;
  840. friend void swap(CreateDocumentRequest& a, CreateDocumentRequest& b) {
  841. a.Swap(&b);
  842. }
  843. inline void Swap(CreateDocumentRequest* other) {
  844. if (other == this) return;
  845. InternalSwap(other);
  846. }
  847. // implements Message ----------------------------------------------
  848. inline CreateDocumentRequest* New() const final {
  849. return CreateMaybeMessage<CreateDocumentRequest>(nullptr);
  850. }
  851. CreateDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  852. return CreateMaybeMessage<CreateDocumentRequest>(arena);
  853. }
  854. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  855. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  856. void CopyFrom(const CreateDocumentRequest& from);
  857. void MergeFrom(const CreateDocumentRequest& from);
  858. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  859. bool IsInitialized() const final;
  860. size_t ByteSizeLong() const final;
  861. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  862. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  863. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  864. int GetCachedSize() const final { return _cached_size_.Get(); }
  865. private:
  866. inline void SharedCtor();
  867. inline void SharedDtor();
  868. void SetCachedSize(int size) const final;
  869. void InternalSwap(CreateDocumentRequest* other);
  870. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  871. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  872. return "google.firestore.v1.CreateDocumentRequest";
  873. }
  874. private:
  875. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  876. return nullptr;
  877. }
  878. inline void* MaybeArenaPtr() const {
  879. return nullptr;
  880. }
  881. public:
  882. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  883. private:
  884. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  885. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  886. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  887. }
  888. public:
  889. // nested types ----------------------------------------------------
  890. // accessors -------------------------------------------------------
  891. enum : int {
  892. kParentFieldNumber = 1,
  893. kCollectionIdFieldNumber = 2,
  894. kDocumentIdFieldNumber = 3,
  895. kDocumentFieldNumber = 4,
  896. kMaskFieldNumber = 5,
  897. };
  898. // string parent = 1;
  899. void clear_parent();
  900. const std::string& parent() const;
  901. void set_parent(const std::string& value);
  902. void set_parent(std::string&& value);
  903. void set_parent(const char* value);
  904. void set_parent(const char* value, size_t size);
  905. std::string* mutable_parent();
  906. std::string* release_parent();
  907. void set_allocated_parent(std::string* parent);
  908. private:
  909. const std::string& _internal_parent() const;
  910. void _internal_set_parent(const std::string& value);
  911. std::string* _internal_mutable_parent();
  912. public:
  913. // string collection_id = 2;
  914. void clear_collection_id();
  915. const std::string& collection_id() const;
  916. void set_collection_id(const std::string& value);
  917. void set_collection_id(std::string&& value);
  918. void set_collection_id(const char* value);
  919. void set_collection_id(const char* value, size_t size);
  920. std::string* mutable_collection_id();
  921. std::string* release_collection_id();
  922. void set_allocated_collection_id(std::string* collection_id);
  923. private:
  924. const std::string& _internal_collection_id() const;
  925. void _internal_set_collection_id(const std::string& value);
  926. std::string* _internal_mutable_collection_id();
  927. public:
  928. // string document_id = 3;
  929. void clear_document_id();
  930. const std::string& document_id() const;
  931. void set_document_id(const std::string& value);
  932. void set_document_id(std::string&& value);
  933. void set_document_id(const char* value);
  934. void set_document_id(const char* value, size_t size);
  935. std::string* mutable_document_id();
  936. std::string* release_document_id();
  937. void set_allocated_document_id(std::string* document_id);
  938. private:
  939. const std::string& _internal_document_id() const;
  940. void _internal_set_document_id(const std::string& value);
  941. std::string* _internal_mutable_document_id();
  942. public:
  943. // .google.firestore.v1.Document document = 4;
  944. bool has_document() const;
  945. private:
  946. bool _internal_has_document() const;
  947. public:
  948. void clear_document();
  949. const ::google::firestore::v1::Document& document() const;
  950. ::google::firestore::v1::Document* release_document();
  951. ::google::firestore::v1::Document* mutable_document();
  952. void set_allocated_document(::google::firestore::v1::Document* document);
  953. private:
  954. const ::google::firestore::v1::Document& _internal_document() const;
  955. ::google::firestore::v1::Document* _internal_mutable_document();
  956. public:
  957. // .google.firestore.v1.DocumentMask mask = 5;
  958. bool has_mask() const;
  959. private:
  960. bool _internal_has_mask() const;
  961. public:
  962. void clear_mask();
  963. const ::google::firestore::v1::DocumentMask& mask() const;
  964. ::google::firestore::v1::DocumentMask* release_mask();
  965. ::google::firestore::v1::DocumentMask* mutable_mask();
  966. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  967. private:
  968. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  969. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  970. public:
  971. // @@protoc_insertion_point(class_scope:google.firestore.v1.CreateDocumentRequest)
  972. private:
  973. class _Internal;
  974. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  975. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  976. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_id_;
  977. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_id_;
  978. ::google::firestore::v1::Document* document_;
  979. ::google::firestore::v1::DocumentMask* mask_;
  980. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  981. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  982. };
  983. // -------------------------------------------------------------------
  984. class UpdateDocumentRequest :
  985. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.UpdateDocumentRequest) */ {
  986. public:
  987. UpdateDocumentRequest();
  988. virtual ~UpdateDocumentRequest();
  989. UpdateDocumentRequest(const UpdateDocumentRequest& from);
  990. UpdateDocumentRequest(UpdateDocumentRequest&& from) noexcept
  991. : UpdateDocumentRequest() {
  992. *this = ::std::move(from);
  993. }
  994. inline UpdateDocumentRequest& operator=(const UpdateDocumentRequest& from) {
  995. CopyFrom(from);
  996. return *this;
  997. }
  998. inline UpdateDocumentRequest& operator=(UpdateDocumentRequest&& from) noexcept {
  999. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1000. if (this != &from) InternalSwap(&from);
  1001. } else {
  1002. CopyFrom(from);
  1003. }
  1004. return *this;
  1005. }
  1006. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1007. return GetDescriptor();
  1008. }
  1009. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1010. return GetMetadataStatic().descriptor;
  1011. }
  1012. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1013. return GetMetadataStatic().reflection;
  1014. }
  1015. static const UpdateDocumentRequest& default_instance();
  1016. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1017. static inline const UpdateDocumentRequest* internal_default_instance() {
  1018. return reinterpret_cast<const UpdateDocumentRequest*>(
  1019. &_UpdateDocumentRequest_default_instance_);
  1020. }
  1021. static constexpr int kIndexInFileMessages =
  1022. 4;
  1023. friend void swap(UpdateDocumentRequest& a, UpdateDocumentRequest& b) {
  1024. a.Swap(&b);
  1025. }
  1026. inline void Swap(UpdateDocumentRequest* other) {
  1027. if (other == this) return;
  1028. InternalSwap(other);
  1029. }
  1030. // implements Message ----------------------------------------------
  1031. inline UpdateDocumentRequest* New() const final {
  1032. return CreateMaybeMessage<UpdateDocumentRequest>(nullptr);
  1033. }
  1034. UpdateDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1035. return CreateMaybeMessage<UpdateDocumentRequest>(arena);
  1036. }
  1037. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1038. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1039. void CopyFrom(const UpdateDocumentRequest& from);
  1040. void MergeFrom(const UpdateDocumentRequest& from);
  1041. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1042. bool IsInitialized() const final;
  1043. size_t ByteSizeLong() const final;
  1044. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1045. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1046. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1047. int GetCachedSize() const final { return _cached_size_.Get(); }
  1048. private:
  1049. inline void SharedCtor();
  1050. inline void SharedDtor();
  1051. void SetCachedSize(int size) const final;
  1052. void InternalSwap(UpdateDocumentRequest* other);
  1053. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1054. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1055. return "google.firestore.v1.UpdateDocumentRequest";
  1056. }
  1057. private:
  1058. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1059. return nullptr;
  1060. }
  1061. inline void* MaybeArenaPtr() const {
  1062. return nullptr;
  1063. }
  1064. public:
  1065. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1066. private:
  1067. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1068. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1069. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1070. }
  1071. public:
  1072. // nested types ----------------------------------------------------
  1073. // accessors -------------------------------------------------------
  1074. enum : int {
  1075. kDocumentFieldNumber = 1,
  1076. kUpdateMaskFieldNumber = 2,
  1077. kMaskFieldNumber = 3,
  1078. kCurrentDocumentFieldNumber = 4,
  1079. };
  1080. // .google.firestore.v1.Document document = 1;
  1081. bool has_document() const;
  1082. private:
  1083. bool _internal_has_document() const;
  1084. public:
  1085. void clear_document();
  1086. const ::google::firestore::v1::Document& document() const;
  1087. ::google::firestore::v1::Document* release_document();
  1088. ::google::firestore::v1::Document* mutable_document();
  1089. void set_allocated_document(::google::firestore::v1::Document* document);
  1090. private:
  1091. const ::google::firestore::v1::Document& _internal_document() const;
  1092. ::google::firestore::v1::Document* _internal_mutable_document();
  1093. public:
  1094. // .google.firestore.v1.DocumentMask update_mask = 2;
  1095. bool has_update_mask() const;
  1096. private:
  1097. bool _internal_has_update_mask() const;
  1098. public:
  1099. void clear_update_mask();
  1100. const ::google::firestore::v1::DocumentMask& update_mask() const;
  1101. ::google::firestore::v1::DocumentMask* release_update_mask();
  1102. ::google::firestore::v1::DocumentMask* mutable_update_mask();
  1103. void set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask);
  1104. private:
  1105. const ::google::firestore::v1::DocumentMask& _internal_update_mask() const;
  1106. ::google::firestore::v1::DocumentMask* _internal_mutable_update_mask();
  1107. public:
  1108. // .google.firestore.v1.DocumentMask mask = 3;
  1109. bool has_mask() const;
  1110. private:
  1111. bool _internal_has_mask() const;
  1112. public:
  1113. void clear_mask();
  1114. const ::google::firestore::v1::DocumentMask& mask() const;
  1115. ::google::firestore::v1::DocumentMask* release_mask();
  1116. ::google::firestore::v1::DocumentMask* mutable_mask();
  1117. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  1118. private:
  1119. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  1120. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  1121. public:
  1122. // .google.firestore.v1.Precondition current_document = 4;
  1123. bool has_current_document() const;
  1124. private:
  1125. bool _internal_has_current_document() const;
  1126. public:
  1127. void clear_current_document();
  1128. const ::google::firestore::v1::Precondition& current_document() const;
  1129. ::google::firestore::v1::Precondition* release_current_document();
  1130. ::google::firestore::v1::Precondition* mutable_current_document();
  1131. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  1132. private:
  1133. const ::google::firestore::v1::Precondition& _internal_current_document() const;
  1134. ::google::firestore::v1::Precondition* _internal_mutable_current_document();
  1135. public:
  1136. // @@protoc_insertion_point(class_scope:google.firestore.v1.UpdateDocumentRequest)
  1137. private:
  1138. class _Internal;
  1139. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1140. ::google::firestore::v1::Document* document_;
  1141. ::google::firestore::v1::DocumentMask* update_mask_;
  1142. ::google::firestore::v1::DocumentMask* mask_;
  1143. ::google::firestore::v1::Precondition* current_document_;
  1144. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1145. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1146. };
  1147. // -------------------------------------------------------------------
  1148. class DeleteDocumentRequest :
  1149. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DeleteDocumentRequest) */ {
  1150. public:
  1151. DeleteDocumentRequest();
  1152. virtual ~DeleteDocumentRequest();
  1153. DeleteDocumentRequest(const DeleteDocumentRequest& from);
  1154. DeleteDocumentRequest(DeleteDocumentRequest&& from) noexcept
  1155. : DeleteDocumentRequest() {
  1156. *this = ::std::move(from);
  1157. }
  1158. inline DeleteDocumentRequest& operator=(const DeleteDocumentRequest& from) {
  1159. CopyFrom(from);
  1160. return *this;
  1161. }
  1162. inline DeleteDocumentRequest& operator=(DeleteDocumentRequest&& from) noexcept {
  1163. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1164. if (this != &from) InternalSwap(&from);
  1165. } else {
  1166. CopyFrom(from);
  1167. }
  1168. return *this;
  1169. }
  1170. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1171. return GetDescriptor();
  1172. }
  1173. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1174. return GetMetadataStatic().descriptor;
  1175. }
  1176. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1177. return GetMetadataStatic().reflection;
  1178. }
  1179. static const DeleteDocumentRequest& default_instance();
  1180. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1181. static inline const DeleteDocumentRequest* internal_default_instance() {
  1182. return reinterpret_cast<const DeleteDocumentRequest*>(
  1183. &_DeleteDocumentRequest_default_instance_);
  1184. }
  1185. static constexpr int kIndexInFileMessages =
  1186. 5;
  1187. friend void swap(DeleteDocumentRequest& a, DeleteDocumentRequest& b) {
  1188. a.Swap(&b);
  1189. }
  1190. inline void Swap(DeleteDocumentRequest* other) {
  1191. if (other == this) return;
  1192. InternalSwap(other);
  1193. }
  1194. // implements Message ----------------------------------------------
  1195. inline DeleteDocumentRequest* New() const final {
  1196. return CreateMaybeMessage<DeleteDocumentRequest>(nullptr);
  1197. }
  1198. DeleteDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1199. return CreateMaybeMessage<DeleteDocumentRequest>(arena);
  1200. }
  1201. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1202. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1203. void CopyFrom(const DeleteDocumentRequest& from);
  1204. void MergeFrom(const DeleteDocumentRequest& from);
  1205. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1206. bool IsInitialized() const final;
  1207. size_t ByteSizeLong() const final;
  1208. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1209. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1210. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1211. int GetCachedSize() const final { return _cached_size_.Get(); }
  1212. private:
  1213. inline void SharedCtor();
  1214. inline void SharedDtor();
  1215. void SetCachedSize(int size) const final;
  1216. void InternalSwap(DeleteDocumentRequest* other);
  1217. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1218. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1219. return "google.firestore.v1.DeleteDocumentRequest";
  1220. }
  1221. private:
  1222. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1223. return nullptr;
  1224. }
  1225. inline void* MaybeArenaPtr() const {
  1226. return nullptr;
  1227. }
  1228. public:
  1229. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1230. private:
  1231. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1232. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1233. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1234. }
  1235. public:
  1236. // nested types ----------------------------------------------------
  1237. // accessors -------------------------------------------------------
  1238. enum : int {
  1239. kNameFieldNumber = 1,
  1240. kCurrentDocumentFieldNumber = 2,
  1241. };
  1242. // string name = 1;
  1243. void clear_name();
  1244. const std::string& name() const;
  1245. void set_name(const std::string& value);
  1246. void set_name(std::string&& value);
  1247. void set_name(const char* value);
  1248. void set_name(const char* value, size_t size);
  1249. std::string* mutable_name();
  1250. std::string* release_name();
  1251. void set_allocated_name(std::string* name);
  1252. private:
  1253. const std::string& _internal_name() const;
  1254. void _internal_set_name(const std::string& value);
  1255. std::string* _internal_mutable_name();
  1256. public:
  1257. // .google.firestore.v1.Precondition current_document = 2;
  1258. bool has_current_document() const;
  1259. private:
  1260. bool _internal_has_current_document() const;
  1261. public:
  1262. void clear_current_document();
  1263. const ::google::firestore::v1::Precondition& current_document() const;
  1264. ::google::firestore::v1::Precondition* release_current_document();
  1265. ::google::firestore::v1::Precondition* mutable_current_document();
  1266. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  1267. private:
  1268. const ::google::firestore::v1::Precondition& _internal_current_document() const;
  1269. ::google::firestore::v1::Precondition* _internal_mutable_current_document();
  1270. public:
  1271. // @@protoc_insertion_point(class_scope:google.firestore.v1.DeleteDocumentRequest)
  1272. private:
  1273. class _Internal;
  1274. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1275. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1276. ::google::firestore::v1::Precondition* current_document_;
  1277. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1278. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1279. };
  1280. // -------------------------------------------------------------------
  1281. class BatchGetDocumentsRequest :
  1282. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsRequest) */ {
  1283. public:
  1284. BatchGetDocumentsRequest();
  1285. virtual ~BatchGetDocumentsRequest();
  1286. BatchGetDocumentsRequest(const BatchGetDocumentsRequest& from);
  1287. BatchGetDocumentsRequest(BatchGetDocumentsRequest&& from) noexcept
  1288. : BatchGetDocumentsRequest() {
  1289. *this = ::std::move(from);
  1290. }
  1291. inline BatchGetDocumentsRequest& operator=(const BatchGetDocumentsRequest& from) {
  1292. CopyFrom(from);
  1293. return *this;
  1294. }
  1295. inline BatchGetDocumentsRequest& operator=(BatchGetDocumentsRequest&& from) noexcept {
  1296. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1297. if (this != &from) InternalSwap(&from);
  1298. } else {
  1299. CopyFrom(from);
  1300. }
  1301. return *this;
  1302. }
  1303. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1304. return GetDescriptor();
  1305. }
  1306. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1307. return GetMetadataStatic().descriptor;
  1308. }
  1309. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1310. return GetMetadataStatic().reflection;
  1311. }
  1312. static const BatchGetDocumentsRequest& default_instance();
  1313. enum ConsistencySelectorCase {
  1314. kTransaction = 4,
  1315. kNewTransaction = 5,
  1316. kReadTime = 7,
  1317. CONSISTENCY_SELECTOR_NOT_SET = 0,
  1318. };
  1319. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1320. static inline const BatchGetDocumentsRequest* internal_default_instance() {
  1321. return reinterpret_cast<const BatchGetDocumentsRequest*>(
  1322. &_BatchGetDocumentsRequest_default_instance_);
  1323. }
  1324. static constexpr int kIndexInFileMessages =
  1325. 6;
  1326. friend void swap(BatchGetDocumentsRequest& a, BatchGetDocumentsRequest& b) {
  1327. a.Swap(&b);
  1328. }
  1329. inline void Swap(BatchGetDocumentsRequest* other) {
  1330. if (other == this) return;
  1331. InternalSwap(other);
  1332. }
  1333. // implements Message ----------------------------------------------
  1334. inline BatchGetDocumentsRequest* New() const final {
  1335. return CreateMaybeMessage<BatchGetDocumentsRequest>(nullptr);
  1336. }
  1337. BatchGetDocumentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1338. return CreateMaybeMessage<BatchGetDocumentsRequest>(arena);
  1339. }
  1340. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1341. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1342. void CopyFrom(const BatchGetDocumentsRequest& from);
  1343. void MergeFrom(const BatchGetDocumentsRequest& from);
  1344. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1345. bool IsInitialized() const final;
  1346. size_t ByteSizeLong() const final;
  1347. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1348. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1349. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1350. int GetCachedSize() const final { return _cached_size_.Get(); }
  1351. private:
  1352. inline void SharedCtor();
  1353. inline void SharedDtor();
  1354. void SetCachedSize(int size) const final;
  1355. void InternalSwap(BatchGetDocumentsRequest* other);
  1356. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1357. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1358. return "google.firestore.v1.BatchGetDocumentsRequest";
  1359. }
  1360. private:
  1361. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1362. return nullptr;
  1363. }
  1364. inline void* MaybeArenaPtr() const {
  1365. return nullptr;
  1366. }
  1367. public:
  1368. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1369. private:
  1370. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1371. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1372. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1373. }
  1374. public:
  1375. // nested types ----------------------------------------------------
  1376. // accessors -------------------------------------------------------
  1377. enum : int {
  1378. kDocumentsFieldNumber = 2,
  1379. kDatabaseFieldNumber = 1,
  1380. kMaskFieldNumber = 3,
  1381. kTransactionFieldNumber = 4,
  1382. kNewTransactionFieldNumber = 5,
  1383. kReadTimeFieldNumber = 7,
  1384. };
  1385. // repeated string documents = 2;
  1386. int documents_size() const;
  1387. private:
  1388. int _internal_documents_size() const;
  1389. public:
  1390. void clear_documents();
  1391. const std::string& documents(int index) const;
  1392. std::string* mutable_documents(int index);
  1393. void set_documents(int index, const std::string& value);
  1394. void set_documents(int index, std::string&& value);
  1395. void set_documents(int index, const char* value);
  1396. void set_documents(int index, const char* value, size_t size);
  1397. std::string* add_documents();
  1398. void add_documents(const std::string& value);
  1399. void add_documents(std::string&& value);
  1400. void add_documents(const char* value);
  1401. void add_documents(const char* value, size_t size);
  1402. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& documents() const;
  1403. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_documents();
  1404. private:
  1405. const std::string& _internal_documents(int index) const;
  1406. std::string* _internal_add_documents();
  1407. public:
  1408. // string database = 1;
  1409. void clear_database();
  1410. const std::string& database() const;
  1411. void set_database(const std::string& value);
  1412. void set_database(std::string&& value);
  1413. void set_database(const char* value);
  1414. void set_database(const char* value, size_t size);
  1415. std::string* mutable_database();
  1416. std::string* release_database();
  1417. void set_allocated_database(std::string* database);
  1418. private:
  1419. const std::string& _internal_database() const;
  1420. void _internal_set_database(const std::string& value);
  1421. std::string* _internal_mutable_database();
  1422. public:
  1423. // .google.firestore.v1.DocumentMask mask = 3;
  1424. bool has_mask() const;
  1425. private:
  1426. bool _internal_has_mask() const;
  1427. public:
  1428. void clear_mask();
  1429. const ::google::firestore::v1::DocumentMask& mask() const;
  1430. ::google::firestore::v1::DocumentMask* release_mask();
  1431. ::google::firestore::v1::DocumentMask* mutable_mask();
  1432. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  1433. private:
  1434. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  1435. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  1436. public:
  1437. // bytes transaction = 4;
  1438. private:
  1439. bool _internal_has_transaction() const;
  1440. public:
  1441. void clear_transaction();
  1442. const std::string& transaction() const;
  1443. void set_transaction(const std::string& value);
  1444. void set_transaction(std::string&& value);
  1445. void set_transaction(const char* value);
  1446. void set_transaction(const void* value, size_t size);
  1447. std::string* mutable_transaction();
  1448. std::string* release_transaction();
  1449. void set_allocated_transaction(std::string* transaction);
  1450. private:
  1451. const std::string& _internal_transaction() const;
  1452. void _internal_set_transaction(const std::string& value);
  1453. std::string* _internal_mutable_transaction();
  1454. public:
  1455. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  1456. bool has_new_transaction() const;
  1457. private:
  1458. bool _internal_has_new_transaction() const;
  1459. public:
  1460. void clear_new_transaction();
  1461. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  1462. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  1463. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  1464. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  1465. private:
  1466. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  1467. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  1468. public:
  1469. // .google.protobuf.Timestamp read_time = 7;
  1470. bool has_read_time() const;
  1471. private:
  1472. bool _internal_has_read_time() const;
  1473. public:
  1474. void clear_read_time();
  1475. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1476. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1477. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1478. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1479. private:
  1480. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  1481. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  1482. public:
  1483. void clear_consistency_selector();
  1484. ConsistencySelectorCase consistency_selector_case() const;
  1485. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsRequest)
  1486. private:
  1487. class _Internal;
  1488. void set_has_transaction();
  1489. void set_has_new_transaction();
  1490. void set_has_read_time();
  1491. inline bool has_consistency_selector() const;
  1492. inline void clear_has_consistency_selector();
  1493. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1494. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> documents_;
  1495. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1496. ::google::firestore::v1::DocumentMask* mask_;
  1497. union ConsistencySelectorUnion {
  1498. ConsistencySelectorUnion() {}
  1499. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1500. ::google::firestore::v1::TransactionOptions* new_transaction_;
  1501. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1502. } consistency_selector_;
  1503. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1504. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  1505. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1506. };
  1507. // -------------------------------------------------------------------
  1508. class BatchGetDocumentsResponse :
  1509. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsResponse) */ {
  1510. public:
  1511. BatchGetDocumentsResponse();
  1512. virtual ~BatchGetDocumentsResponse();
  1513. BatchGetDocumentsResponse(const BatchGetDocumentsResponse& from);
  1514. BatchGetDocumentsResponse(BatchGetDocumentsResponse&& from) noexcept
  1515. : BatchGetDocumentsResponse() {
  1516. *this = ::std::move(from);
  1517. }
  1518. inline BatchGetDocumentsResponse& operator=(const BatchGetDocumentsResponse& from) {
  1519. CopyFrom(from);
  1520. return *this;
  1521. }
  1522. inline BatchGetDocumentsResponse& operator=(BatchGetDocumentsResponse&& from) noexcept {
  1523. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1524. if (this != &from) InternalSwap(&from);
  1525. } else {
  1526. CopyFrom(from);
  1527. }
  1528. return *this;
  1529. }
  1530. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1531. return GetDescriptor();
  1532. }
  1533. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1534. return GetMetadataStatic().descriptor;
  1535. }
  1536. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1537. return GetMetadataStatic().reflection;
  1538. }
  1539. static const BatchGetDocumentsResponse& default_instance();
  1540. enum ResultCase {
  1541. kFound = 1,
  1542. kMissing = 2,
  1543. RESULT_NOT_SET = 0,
  1544. };
  1545. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1546. static inline const BatchGetDocumentsResponse* internal_default_instance() {
  1547. return reinterpret_cast<const BatchGetDocumentsResponse*>(
  1548. &_BatchGetDocumentsResponse_default_instance_);
  1549. }
  1550. static constexpr int kIndexInFileMessages =
  1551. 7;
  1552. friend void swap(BatchGetDocumentsResponse& a, BatchGetDocumentsResponse& b) {
  1553. a.Swap(&b);
  1554. }
  1555. inline void Swap(BatchGetDocumentsResponse* other) {
  1556. if (other == this) return;
  1557. InternalSwap(other);
  1558. }
  1559. // implements Message ----------------------------------------------
  1560. inline BatchGetDocumentsResponse* New() const final {
  1561. return CreateMaybeMessage<BatchGetDocumentsResponse>(nullptr);
  1562. }
  1563. BatchGetDocumentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1564. return CreateMaybeMessage<BatchGetDocumentsResponse>(arena);
  1565. }
  1566. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1567. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1568. void CopyFrom(const BatchGetDocumentsResponse& from);
  1569. void MergeFrom(const BatchGetDocumentsResponse& from);
  1570. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1571. bool IsInitialized() const final;
  1572. size_t ByteSizeLong() const final;
  1573. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1574. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1575. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1576. int GetCachedSize() const final { return _cached_size_.Get(); }
  1577. private:
  1578. inline void SharedCtor();
  1579. inline void SharedDtor();
  1580. void SetCachedSize(int size) const final;
  1581. void InternalSwap(BatchGetDocumentsResponse* other);
  1582. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1583. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1584. return "google.firestore.v1.BatchGetDocumentsResponse";
  1585. }
  1586. private:
  1587. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1588. return nullptr;
  1589. }
  1590. inline void* MaybeArenaPtr() const {
  1591. return nullptr;
  1592. }
  1593. public:
  1594. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1595. private:
  1596. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1597. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1598. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1599. }
  1600. public:
  1601. // nested types ----------------------------------------------------
  1602. // accessors -------------------------------------------------------
  1603. enum : int {
  1604. kTransactionFieldNumber = 3,
  1605. kReadTimeFieldNumber = 4,
  1606. kFoundFieldNumber = 1,
  1607. kMissingFieldNumber = 2,
  1608. };
  1609. // bytes transaction = 3;
  1610. void clear_transaction();
  1611. const std::string& transaction() const;
  1612. void set_transaction(const std::string& value);
  1613. void set_transaction(std::string&& value);
  1614. void set_transaction(const char* value);
  1615. void set_transaction(const void* value, size_t size);
  1616. std::string* mutable_transaction();
  1617. std::string* release_transaction();
  1618. void set_allocated_transaction(std::string* transaction);
  1619. private:
  1620. const std::string& _internal_transaction() const;
  1621. void _internal_set_transaction(const std::string& value);
  1622. std::string* _internal_mutable_transaction();
  1623. public:
  1624. // .google.protobuf.Timestamp read_time = 4;
  1625. bool has_read_time() const;
  1626. private:
  1627. bool _internal_has_read_time() const;
  1628. public:
  1629. void clear_read_time();
  1630. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1631. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1632. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1633. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1634. private:
  1635. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  1636. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  1637. public:
  1638. // .google.firestore.v1.Document found = 1;
  1639. bool has_found() const;
  1640. private:
  1641. bool _internal_has_found() const;
  1642. public:
  1643. void clear_found();
  1644. const ::google::firestore::v1::Document& found() const;
  1645. ::google::firestore::v1::Document* release_found();
  1646. ::google::firestore::v1::Document* mutable_found();
  1647. void set_allocated_found(::google::firestore::v1::Document* found);
  1648. private:
  1649. const ::google::firestore::v1::Document& _internal_found() const;
  1650. ::google::firestore::v1::Document* _internal_mutable_found();
  1651. public:
  1652. // string missing = 2;
  1653. private:
  1654. bool _internal_has_missing() const;
  1655. public:
  1656. void clear_missing();
  1657. const std::string& missing() const;
  1658. void set_missing(const std::string& value);
  1659. void set_missing(std::string&& value);
  1660. void set_missing(const char* value);
  1661. void set_missing(const char* value, size_t size);
  1662. std::string* mutable_missing();
  1663. std::string* release_missing();
  1664. void set_allocated_missing(std::string* missing);
  1665. private:
  1666. const std::string& _internal_missing() const;
  1667. void _internal_set_missing(const std::string& value);
  1668. std::string* _internal_mutable_missing();
  1669. public:
  1670. void clear_result();
  1671. ResultCase result_case() const;
  1672. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsResponse)
  1673. private:
  1674. class _Internal;
  1675. void set_has_found();
  1676. void set_has_missing();
  1677. inline bool has_result() const;
  1678. inline void clear_has_result();
  1679. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1680. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1681. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1682. union ResultUnion {
  1683. ResultUnion() {}
  1684. ::google::firestore::v1::Document* found_;
  1685. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr missing_;
  1686. } result_;
  1687. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1688. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  1689. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1690. };
  1691. // -------------------------------------------------------------------
  1692. class BeginTransactionRequest :
  1693. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionRequest) */ {
  1694. public:
  1695. BeginTransactionRequest();
  1696. virtual ~BeginTransactionRequest();
  1697. BeginTransactionRequest(const BeginTransactionRequest& from);
  1698. BeginTransactionRequest(BeginTransactionRequest&& from) noexcept
  1699. : BeginTransactionRequest() {
  1700. *this = ::std::move(from);
  1701. }
  1702. inline BeginTransactionRequest& operator=(const BeginTransactionRequest& from) {
  1703. CopyFrom(from);
  1704. return *this;
  1705. }
  1706. inline BeginTransactionRequest& operator=(BeginTransactionRequest&& from) noexcept {
  1707. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1708. if (this != &from) InternalSwap(&from);
  1709. } else {
  1710. CopyFrom(from);
  1711. }
  1712. return *this;
  1713. }
  1714. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1715. return GetDescriptor();
  1716. }
  1717. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1718. return GetMetadataStatic().descriptor;
  1719. }
  1720. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1721. return GetMetadataStatic().reflection;
  1722. }
  1723. static const BeginTransactionRequest& default_instance();
  1724. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1725. static inline const BeginTransactionRequest* internal_default_instance() {
  1726. return reinterpret_cast<const BeginTransactionRequest*>(
  1727. &_BeginTransactionRequest_default_instance_);
  1728. }
  1729. static constexpr int kIndexInFileMessages =
  1730. 8;
  1731. friend void swap(BeginTransactionRequest& a, BeginTransactionRequest& b) {
  1732. a.Swap(&b);
  1733. }
  1734. inline void Swap(BeginTransactionRequest* other) {
  1735. if (other == this) return;
  1736. InternalSwap(other);
  1737. }
  1738. // implements Message ----------------------------------------------
  1739. inline BeginTransactionRequest* New() const final {
  1740. return CreateMaybeMessage<BeginTransactionRequest>(nullptr);
  1741. }
  1742. BeginTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1743. return CreateMaybeMessage<BeginTransactionRequest>(arena);
  1744. }
  1745. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1746. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1747. void CopyFrom(const BeginTransactionRequest& from);
  1748. void MergeFrom(const BeginTransactionRequest& from);
  1749. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1750. bool IsInitialized() const final;
  1751. size_t ByteSizeLong() const final;
  1752. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1753. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1754. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1755. int GetCachedSize() const final { return _cached_size_.Get(); }
  1756. private:
  1757. inline void SharedCtor();
  1758. inline void SharedDtor();
  1759. void SetCachedSize(int size) const final;
  1760. void InternalSwap(BeginTransactionRequest* other);
  1761. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1762. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1763. return "google.firestore.v1.BeginTransactionRequest";
  1764. }
  1765. private:
  1766. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1767. return nullptr;
  1768. }
  1769. inline void* MaybeArenaPtr() const {
  1770. return nullptr;
  1771. }
  1772. public:
  1773. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1774. private:
  1775. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1776. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1777. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1778. }
  1779. public:
  1780. // nested types ----------------------------------------------------
  1781. // accessors -------------------------------------------------------
  1782. enum : int {
  1783. kDatabaseFieldNumber = 1,
  1784. kOptionsFieldNumber = 2,
  1785. };
  1786. // string database = 1;
  1787. void clear_database();
  1788. const std::string& database() const;
  1789. void set_database(const std::string& value);
  1790. void set_database(std::string&& value);
  1791. void set_database(const char* value);
  1792. void set_database(const char* value, size_t size);
  1793. std::string* mutable_database();
  1794. std::string* release_database();
  1795. void set_allocated_database(std::string* database);
  1796. private:
  1797. const std::string& _internal_database() const;
  1798. void _internal_set_database(const std::string& value);
  1799. std::string* _internal_mutable_database();
  1800. public:
  1801. // .google.firestore.v1.TransactionOptions options = 2;
  1802. bool has_options() const;
  1803. private:
  1804. bool _internal_has_options() const;
  1805. public:
  1806. void clear_options();
  1807. const ::google::firestore::v1::TransactionOptions& options() const;
  1808. ::google::firestore::v1::TransactionOptions* release_options();
  1809. ::google::firestore::v1::TransactionOptions* mutable_options();
  1810. void set_allocated_options(::google::firestore::v1::TransactionOptions* options);
  1811. private:
  1812. const ::google::firestore::v1::TransactionOptions& _internal_options() const;
  1813. ::google::firestore::v1::TransactionOptions* _internal_mutable_options();
  1814. public:
  1815. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionRequest)
  1816. private:
  1817. class _Internal;
  1818. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1819. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1820. ::google::firestore::v1::TransactionOptions* options_;
  1821. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1822. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1823. };
  1824. // -------------------------------------------------------------------
  1825. class BeginTransactionResponse :
  1826. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionResponse) */ {
  1827. public:
  1828. BeginTransactionResponse();
  1829. virtual ~BeginTransactionResponse();
  1830. BeginTransactionResponse(const BeginTransactionResponse& from);
  1831. BeginTransactionResponse(BeginTransactionResponse&& from) noexcept
  1832. : BeginTransactionResponse() {
  1833. *this = ::std::move(from);
  1834. }
  1835. inline BeginTransactionResponse& operator=(const BeginTransactionResponse& from) {
  1836. CopyFrom(from);
  1837. return *this;
  1838. }
  1839. inline BeginTransactionResponse& operator=(BeginTransactionResponse&& from) noexcept {
  1840. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1841. if (this != &from) InternalSwap(&from);
  1842. } else {
  1843. CopyFrom(from);
  1844. }
  1845. return *this;
  1846. }
  1847. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1848. return GetDescriptor();
  1849. }
  1850. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1851. return GetMetadataStatic().descriptor;
  1852. }
  1853. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1854. return GetMetadataStatic().reflection;
  1855. }
  1856. static const BeginTransactionResponse& default_instance();
  1857. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1858. static inline const BeginTransactionResponse* internal_default_instance() {
  1859. return reinterpret_cast<const BeginTransactionResponse*>(
  1860. &_BeginTransactionResponse_default_instance_);
  1861. }
  1862. static constexpr int kIndexInFileMessages =
  1863. 9;
  1864. friend void swap(BeginTransactionResponse& a, BeginTransactionResponse& b) {
  1865. a.Swap(&b);
  1866. }
  1867. inline void Swap(BeginTransactionResponse* other) {
  1868. if (other == this) return;
  1869. InternalSwap(other);
  1870. }
  1871. // implements Message ----------------------------------------------
  1872. inline BeginTransactionResponse* New() const final {
  1873. return CreateMaybeMessage<BeginTransactionResponse>(nullptr);
  1874. }
  1875. BeginTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1876. return CreateMaybeMessage<BeginTransactionResponse>(arena);
  1877. }
  1878. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1879. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1880. void CopyFrom(const BeginTransactionResponse& from);
  1881. void MergeFrom(const BeginTransactionResponse& from);
  1882. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1883. bool IsInitialized() const final;
  1884. size_t ByteSizeLong() const final;
  1885. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1886. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1887. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1888. int GetCachedSize() const final { return _cached_size_.Get(); }
  1889. private:
  1890. inline void SharedCtor();
  1891. inline void SharedDtor();
  1892. void SetCachedSize(int size) const final;
  1893. void InternalSwap(BeginTransactionResponse* other);
  1894. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1895. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1896. return "google.firestore.v1.BeginTransactionResponse";
  1897. }
  1898. private:
  1899. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1900. return nullptr;
  1901. }
  1902. inline void* MaybeArenaPtr() const {
  1903. return nullptr;
  1904. }
  1905. public:
  1906. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1907. private:
  1908. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1909. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1910. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1911. }
  1912. public:
  1913. // nested types ----------------------------------------------------
  1914. // accessors -------------------------------------------------------
  1915. enum : int {
  1916. kTransactionFieldNumber = 1,
  1917. };
  1918. // bytes transaction = 1;
  1919. void clear_transaction();
  1920. const std::string& transaction() const;
  1921. void set_transaction(const std::string& value);
  1922. void set_transaction(std::string&& value);
  1923. void set_transaction(const char* value);
  1924. void set_transaction(const void* value, size_t size);
  1925. std::string* mutable_transaction();
  1926. std::string* release_transaction();
  1927. void set_allocated_transaction(std::string* transaction);
  1928. private:
  1929. const std::string& _internal_transaction() const;
  1930. void _internal_set_transaction(const std::string& value);
  1931. std::string* _internal_mutable_transaction();
  1932. public:
  1933. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionResponse)
  1934. private:
  1935. class _Internal;
  1936. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1937. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1938. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1939. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1940. };
  1941. // -------------------------------------------------------------------
  1942. class CommitRequest :
  1943. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitRequest) */ {
  1944. public:
  1945. CommitRequest();
  1946. virtual ~CommitRequest();
  1947. CommitRequest(const CommitRequest& from);
  1948. CommitRequest(CommitRequest&& from) noexcept
  1949. : CommitRequest() {
  1950. *this = ::std::move(from);
  1951. }
  1952. inline CommitRequest& operator=(const CommitRequest& from) {
  1953. CopyFrom(from);
  1954. return *this;
  1955. }
  1956. inline CommitRequest& operator=(CommitRequest&& from) noexcept {
  1957. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1958. if (this != &from) InternalSwap(&from);
  1959. } else {
  1960. CopyFrom(from);
  1961. }
  1962. return *this;
  1963. }
  1964. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1965. return GetDescriptor();
  1966. }
  1967. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1968. return GetMetadataStatic().descriptor;
  1969. }
  1970. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1971. return GetMetadataStatic().reflection;
  1972. }
  1973. static const CommitRequest& default_instance();
  1974. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1975. static inline const CommitRequest* internal_default_instance() {
  1976. return reinterpret_cast<const CommitRequest*>(
  1977. &_CommitRequest_default_instance_);
  1978. }
  1979. static constexpr int kIndexInFileMessages =
  1980. 10;
  1981. friend void swap(CommitRequest& a, CommitRequest& b) {
  1982. a.Swap(&b);
  1983. }
  1984. inline void Swap(CommitRequest* other) {
  1985. if (other == this) return;
  1986. InternalSwap(other);
  1987. }
  1988. // implements Message ----------------------------------------------
  1989. inline CommitRequest* New() const final {
  1990. return CreateMaybeMessage<CommitRequest>(nullptr);
  1991. }
  1992. CommitRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1993. return CreateMaybeMessage<CommitRequest>(arena);
  1994. }
  1995. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1996. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1997. void CopyFrom(const CommitRequest& from);
  1998. void MergeFrom(const CommitRequest& from);
  1999. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2000. bool IsInitialized() const final;
  2001. size_t ByteSizeLong() const final;
  2002. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2003. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2004. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2005. int GetCachedSize() const final { return _cached_size_.Get(); }
  2006. private:
  2007. inline void SharedCtor();
  2008. inline void SharedDtor();
  2009. void SetCachedSize(int size) const final;
  2010. void InternalSwap(CommitRequest* other);
  2011. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2012. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2013. return "google.firestore.v1.CommitRequest";
  2014. }
  2015. private:
  2016. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2017. return nullptr;
  2018. }
  2019. inline void* MaybeArenaPtr() const {
  2020. return nullptr;
  2021. }
  2022. public:
  2023. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2024. private:
  2025. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2026. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2027. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2028. }
  2029. public:
  2030. // nested types ----------------------------------------------------
  2031. // accessors -------------------------------------------------------
  2032. enum : int {
  2033. kWritesFieldNumber = 2,
  2034. kDatabaseFieldNumber = 1,
  2035. kTransactionFieldNumber = 3,
  2036. };
  2037. // repeated .google.firestore.v1.Write writes = 2;
  2038. int writes_size() const;
  2039. private:
  2040. int _internal_writes_size() const;
  2041. public:
  2042. void clear_writes();
  2043. ::google::firestore::v1::Write* mutable_writes(int index);
  2044. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  2045. mutable_writes();
  2046. private:
  2047. const ::google::firestore::v1::Write& _internal_writes(int index) const;
  2048. ::google::firestore::v1::Write* _internal_add_writes();
  2049. public:
  2050. const ::google::firestore::v1::Write& writes(int index) const;
  2051. ::google::firestore::v1::Write* add_writes();
  2052. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  2053. writes() const;
  2054. // string database = 1;
  2055. void clear_database();
  2056. const std::string& database() const;
  2057. void set_database(const std::string& value);
  2058. void set_database(std::string&& value);
  2059. void set_database(const char* value);
  2060. void set_database(const char* value, size_t size);
  2061. std::string* mutable_database();
  2062. std::string* release_database();
  2063. void set_allocated_database(std::string* database);
  2064. private:
  2065. const std::string& _internal_database() const;
  2066. void _internal_set_database(const std::string& value);
  2067. std::string* _internal_mutable_database();
  2068. public:
  2069. // bytes transaction = 3;
  2070. void clear_transaction();
  2071. const std::string& transaction() const;
  2072. void set_transaction(const std::string& value);
  2073. void set_transaction(std::string&& value);
  2074. void set_transaction(const char* value);
  2075. void set_transaction(const void* value, size_t size);
  2076. std::string* mutable_transaction();
  2077. std::string* release_transaction();
  2078. void set_allocated_transaction(std::string* transaction);
  2079. private:
  2080. const std::string& _internal_transaction() const;
  2081. void _internal_set_transaction(const std::string& value);
  2082. std::string* _internal_mutable_transaction();
  2083. public:
  2084. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitRequest)
  2085. private:
  2086. class _Internal;
  2087. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2088. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  2089. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2090. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2091. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2092. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2093. };
  2094. // -------------------------------------------------------------------
  2095. class CommitResponse :
  2096. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitResponse) */ {
  2097. public:
  2098. CommitResponse();
  2099. virtual ~CommitResponse();
  2100. CommitResponse(const CommitResponse& from);
  2101. CommitResponse(CommitResponse&& from) noexcept
  2102. : CommitResponse() {
  2103. *this = ::std::move(from);
  2104. }
  2105. inline CommitResponse& operator=(const CommitResponse& from) {
  2106. CopyFrom(from);
  2107. return *this;
  2108. }
  2109. inline CommitResponse& operator=(CommitResponse&& from) noexcept {
  2110. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2111. if (this != &from) InternalSwap(&from);
  2112. } else {
  2113. CopyFrom(from);
  2114. }
  2115. return *this;
  2116. }
  2117. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2118. return GetDescriptor();
  2119. }
  2120. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2121. return GetMetadataStatic().descriptor;
  2122. }
  2123. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2124. return GetMetadataStatic().reflection;
  2125. }
  2126. static const CommitResponse& default_instance();
  2127. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2128. static inline const CommitResponse* internal_default_instance() {
  2129. return reinterpret_cast<const CommitResponse*>(
  2130. &_CommitResponse_default_instance_);
  2131. }
  2132. static constexpr int kIndexInFileMessages =
  2133. 11;
  2134. friend void swap(CommitResponse& a, CommitResponse& b) {
  2135. a.Swap(&b);
  2136. }
  2137. inline void Swap(CommitResponse* other) {
  2138. if (other == this) return;
  2139. InternalSwap(other);
  2140. }
  2141. // implements Message ----------------------------------------------
  2142. inline CommitResponse* New() const final {
  2143. return CreateMaybeMessage<CommitResponse>(nullptr);
  2144. }
  2145. CommitResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2146. return CreateMaybeMessage<CommitResponse>(arena);
  2147. }
  2148. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2149. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2150. void CopyFrom(const CommitResponse& from);
  2151. void MergeFrom(const CommitResponse& from);
  2152. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2153. bool IsInitialized() const final;
  2154. size_t ByteSizeLong() const final;
  2155. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2156. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2157. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2158. int GetCachedSize() const final { return _cached_size_.Get(); }
  2159. private:
  2160. inline void SharedCtor();
  2161. inline void SharedDtor();
  2162. void SetCachedSize(int size) const final;
  2163. void InternalSwap(CommitResponse* other);
  2164. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2165. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2166. return "google.firestore.v1.CommitResponse";
  2167. }
  2168. private:
  2169. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2170. return nullptr;
  2171. }
  2172. inline void* MaybeArenaPtr() const {
  2173. return nullptr;
  2174. }
  2175. public:
  2176. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2177. private:
  2178. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2179. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2180. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2181. }
  2182. public:
  2183. // nested types ----------------------------------------------------
  2184. // accessors -------------------------------------------------------
  2185. enum : int {
  2186. kWriteResultsFieldNumber = 1,
  2187. kCommitTimeFieldNumber = 2,
  2188. };
  2189. // repeated .google.firestore.v1.WriteResult write_results = 1;
  2190. int write_results_size() const;
  2191. private:
  2192. int _internal_write_results_size() const;
  2193. public:
  2194. void clear_write_results();
  2195. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  2196. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  2197. mutable_write_results();
  2198. private:
  2199. const ::google::firestore::v1::WriteResult& _internal_write_results(int index) const;
  2200. ::google::firestore::v1::WriteResult* _internal_add_write_results();
  2201. public:
  2202. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  2203. ::google::firestore::v1::WriteResult* add_write_results();
  2204. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  2205. write_results() const;
  2206. // .google.protobuf.Timestamp commit_time = 2;
  2207. bool has_commit_time() const;
  2208. private:
  2209. bool _internal_has_commit_time() const;
  2210. public:
  2211. void clear_commit_time();
  2212. const PROTOBUF_NAMESPACE_ID::Timestamp& commit_time() const;
  2213. PROTOBUF_NAMESPACE_ID::Timestamp* release_commit_time();
  2214. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_commit_time();
  2215. void set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time);
  2216. private:
  2217. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_commit_time() const;
  2218. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_commit_time();
  2219. public:
  2220. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitResponse)
  2221. private:
  2222. class _Internal;
  2223. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2224. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  2225. PROTOBUF_NAMESPACE_ID::Timestamp* commit_time_;
  2226. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2227. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2228. };
  2229. // -------------------------------------------------------------------
  2230. class RollbackRequest :
  2231. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RollbackRequest) */ {
  2232. public:
  2233. RollbackRequest();
  2234. virtual ~RollbackRequest();
  2235. RollbackRequest(const RollbackRequest& from);
  2236. RollbackRequest(RollbackRequest&& from) noexcept
  2237. : RollbackRequest() {
  2238. *this = ::std::move(from);
  2239. }
  2240. inline RollbackRequest& operator=(const RollbackRequest& from) {
  2241. CopyFrom(from);
  2242. return *this;
  2243. }
  2244. inline RollbackRequest& operator=(RollbackRequest&& from) noexcept {
  2245. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2246. if (this != &from) InternalSwap(&from);
  2247. } else {
  2248. CopyFrom(from);
  2249. }
  2250. return *this;
  2251. }
  2252. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2253. return GetDescriptor();
  2254. }
  2255. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2256. return GetMetadataStatic().descriptor;
  2257. }
  2258. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2259. return GetMetadataStatic().reflection;
  2260. }
  2261. static const RollbackRequest& default_instance();
  2262. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2263. static inline const RollbackRequest* internal_default_instance() {
  2264. return reinterpret_cast<const RollbackRequest*>(
  2265. &_RollbackRequest_default_instance_);
  2266. }
  2267. static constexpr int kIndexInFileMessages =
  2268. 12;
  2269. friend void swap(RollbackRequest& a, RollbackRequest& b) {
  2270. a.Swap(&b);
  2271. }
  2272. inline void Swap(RollbackRequest* other) {
  2273. if (other == this) return;
  2274. InternalSwap(other);
  2275. }
  2276. // implements Message ----------------------------------------------
  2277. inline RollbackRequest* New() const final {
  2278. return CreateMaybeMessage<RollbackRequest>(nullptr);
  2279. }
  2280. RollbackRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2281. return CreateMaybeMessage<RollbackRequest>(arena);
  2282. }
  2283. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2284. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2285. void CopyFrom(const RollbackRequest& from);
  2286. void MergeFrom(const RollbackRequest& from);
  2287. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2288. bool IsInitialized() const final;
  2289. size_t ByteSizeLong() const final;
  2290. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2291. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2292. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2293. int GetCachedSize() const final { return _cached_size_.Get(); }
  2294. private:
  2295. inline void SharedCtor();
  2296. inline void SharedDtor();
  2297. void SetCachedSize(int size) const final;
  2298. void InternalSwap(RollbackRequest* other);
  2299. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2300. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2301. return "google.firestore.v1.RollbackRequest";
  2302. }
  2303. private:
  2304. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2305. return nullptr;
  2306. }
  2307. inline void* MaybeArenaPtr() const {
  2308. return nullptr;
  2309. }
  2310. public:
  2311. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2312. private:
  2313. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2314. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2315. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2316. }
  2317. public:
  2318. // nested types ----------------------------------------------------
  2319. // accessors -------------------------------------------------------
  2320. enum : int {
  2321. kDatabaseFieldNumber = 1,
  2322. kTransactionFieldNumber = 2,
  2323. };
  2324. // string database = 1;
  2325. void clear_database();
  2326. const std::string& database() const;
  2327. void set_database(const std::string& value);
  2328. void set_database(std::string&& value);
  2329. void set_database(const char* value);
  2330. void set_database(const char* value, size_t size);
  2331. std::string* mutable_database();
  2332. std::string* release_database();
  2333. void set_allocated_database(std::string* database);
  2334. private:
  2335. const std::string& _internal_database() const;
  2336. void _internal_set_database(const std::string& value);
  2337. std::string* _internal_mutable_database();
  2338. public:
  2339. // bytes transaction = 2;
  2340. void clear_transaction();
  2341. const std::string& transaction() const;
  2342. void set_transaction(const std::string& value);
  2343. void set_transaction(std::string&& value);
  2344. void set_transaction(const char* value);
  2345. void set_transaction(const void* value, size_t size);
  2346. std::string* mutable_transaction();
  2347. std::string* release_transaction();
  2348. void set_allocated_transaction(std::string* transaction);
  2349. private:
  2350. const std::string& _internal_transaction() const;
  2351. void _internal_set_transaction(const std::string& value);
  2352. std::string* _internal_mutable_transaction();
  2353. public:
  2354. // @@protoc_insertion_point(class_scope:google.firestore.v1.RollbackRequest)
  2355. private:
  2356. class _Internal;
  2357. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2358. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2359. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2360. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2361. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2362. };
  2363. // -------------------------------------------------------------------
  2364. class RunQueryRequest :
  2365. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryRequest) */ {
  2366. public:
  2367. RunQueryRequest();
  2368. virtual ~RunQueryRequest();
  2369. RunQueryRequest(const RunQueryRequest& from);
  2370. RunQueryRequest(RunQueryRequest&& from) noexcept
  2371. : RunQueryRequest() {
  2372. *this = ::std::move(from);
  2373. }
  2374. inline RunQueryRequest& operator=(const RunQueryRequest& from) {
  2375. CopyFrom(from);
  2376. return *this;
  2377. }
  2378. inline RunQueryRequest& operator=(RunQueryRequest&& from) noexcept {
  2379. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2380. if (this != &from) InternalSwap(&from);
  2381. } else {
  2382. CopyFrom(from);
  2383. }
  2384. return *this;
  2385. }
  2386. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2387. return GetDescriptor();
  2388. }
  2389. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2390. return GetMetadataStatic().descriptor;
  2391. }
  2392. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2393. return GetMetadataStatic().reflection;
  2394. }
  2395. static const RunQueryRequest& default_instance();
  2396. enum QueryTypeCase {
  2397. kStructuredQuery = 2,
  2398. QUERY_TYPE_NOT_SET = 0,
  2399. };
  2400. enum ConsistencySelectorCase {
  2401. kTransaction = 5,
  2402. kNewTransaction = 6,
  2403. kReadTime = 7,
  2404. CONSISTENCY_SELECTOR_NOT_SET = 0,
  2405. };
  2406. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2407. static inline const RunQueryRequest* internal_default_instance() {
  2408. return reinterpret_cast<const RunQueryRequest*>(
  2409. &_RunQueryRequest_default_instance_);
  2410. }
  2411. static constexpr int kIndexInFileMessages =
  2412. 13;
  2413. friend void swap(RunQueryRequest& a, RunQueryRequest& b) {
  2414. a.Swap(&b);
  2415. }
  2416. inline void Swap(RunQueryRequest* other) {
  2417. if (other == this) return;
  2418. InternalSwap(other);
  2419. }
  2420. // implements Message ----------------------------------------------
  2421. inline RunQueryRequest* New() const final {
  2422. return CreateMaybeMessage<RunQueryRequest>(nullptr);
  2423. }
  2424. RunQueryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2425. return CreateMaybeMessage<RunQueryRequest>(arena);
  2426. }
  2427. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2428. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2429. void CopyFrom(const RunQueryRequest& from);
  2430. void MergeFrom(const RunQueryRequest& from);
  2431. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2432. bool IsInitialized() const final;
  2433. size_t ByteSizeLong() const final;
  2434. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2435. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2436. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2437. int GetCachedSize() const final { return _cached_size_.Get(); }
  2438. private:
  2439. inline void SharedCtor();
  2440. inline void SharedDtor();
  2441. void SetCachedSize(int size) const final;
  2442. void InternalSwap(RunQueryRequest* other);
  2443. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2444. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2445. return "google.firestore.v1.RunQueryRequest";
  2446. }
  2447. private:
  2448. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2449. return nullptr;
  2450. }
  2451. inline void* MaybeArenaPtr() const {
  2452. return nullptr;
  2453. }
  2454. public:
  2455. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2456. private:
  2457. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2458. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2459. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2460. }
  2461. public:
  2462. // nested types ----------------------------------------------------
  2463. // accessors -------------------------------------------------------
  2464. enum : int {
  2465. kParentFieldNumber = 1,
  2466. kStructuredQueryFieldNumber = 2,
  2467. kTransactionFieldNumber = 5,
  2468. kNewTransactionFieldNumber = 6,
  2469. kReadTimeFieldNumber = 7,
  2470. };
  2471. // string parent = 1;
  2472. void clear_parent();
  2473. const std::string& parent() const;
  2474. void set_parent(const std::string& value);
  2475. void set_parent(std::string&& value);
  2476. void set_parent(const char* value);
  2477. void set_parent(const char* value, size_t size);
  2478. std::string* mutable_parent();
  2479. std::string* release_parent();
  2480. void set_allocated_parent(std::string* parent);
  2481. private:
  2482. const std::string& _internal_parent() const;
  2483. void _internal_set_parent(const std::string& value);
  2484. std::string* _internal_mutable_parent();
  2485. public:
  2486. // .google.firestore.v1.StructuredQuery structured_query = 2;
  2487. bool has_structured_query() const;
  2488. private:
  2489. bool _internal_has_structured_query() const;
  2490. public:
  2491. void clear_structured_query();
  2492. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  2493. ::google::firestore::v1::StructuredQuery* release_structured_query();
  2494. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  2495. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  2496. private:
  2497. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  2498. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  2499. public:
  2500. // bytes transaction = 5;
  2501. private:
  2502. bool _internal_has_transaction() const;
  2503. public:
  2504. void clear_transaction();
  2505. const std::string& transaction() const;
  2506. void set_transaction(const std::string& value);
  2507. void set_transaction(std::string&& value);
  2508. void set_transaction(const char* value);
  2509. void set_transaction(const void* value, size_t size);
  2510. std::string* mutable_transaction();
  2511. std::string* release_transaction();
  2512. void set_allocated_transaction(std::string* transaction);
  2513. private:
  2514. const std::string& _internal_transaction() const;
  2515. void _internal_set_transaction(const std::string& value);
  2516. std::string* _internal_mutable_transaction();
  2517. public:
  2518. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  2519. bool has_new_transaction() const;
  2520. private:
  2521. bool _internal_has_new_transaction() const;
  2522. public:
  2523. void clear_new_transaction();
  2524. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  2525. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  2526. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  2527. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  2528. private:
  2529. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  2530. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  2531. public:
  2532. // .google.protobuf.Timestamp read_time = 7;
  2533. bool has_read_time() const;
  2534. private:
  2535. bool _internal_has_read_time() const;
  2536. public:
  2537. void clear_read_time();
  2538. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2539. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2540. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2541. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2542. private:
  2543. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  2544. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  2545. public:
  2546. void clear_query_type();
  2547. QueryTypeCase query_type_case() const;
  2548. void clear_consistency_selector();
  2549. ConsistencySelectorCase consistency_selector_case() const;
  2550. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryRequest)
  2551. private:
  2552. class _Internal;
  2553. void set_has_structured_query();
  2554. void set_has_transaction();
  2555. void set_has_new_transaction();
  2556. void set_has_read_time();
  2557. inline bool has_query_type() const;
  2558. inline void clear_has_query_type();
  2559. inline bool has_consistency_selector() const;
  2560. inline void clear_has_consistency_selector();
  2561. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2562. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  2563. union QueryTypeUnion {
  2564. QueryTypeUnion() {}
  2565. ::google::firestore::v1::StructuredQuery* structured_query_;
  2566. } query_type_;
  2567. union ConsistencySelectorUnion {
  2568. ConsistencySelectorUnion() {}
  2569. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2570. ::google::firestore::v1::TransactionOptions* new_transaction_;
  2571. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2572. } consistency_selector_;
  2573. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2574. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  2575. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2576. };
  2577. // -------------------------------------------------------------------
  2578. class RunQueryResponse :
  2579. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryResponse) */ {
  2580. public:
  2581. RunQueryResponse();
  2582. virtual ~RunQueryResponse();
  2583. RunQueryResponse(const RunQueryResponse& from);
  2584. RunQueryResponse(RunQueryResponse&& from) noexcept
  2585. : RunQueryResponse() {
  2586. *this = ::std::move(from);
  2587. }
  2588. inline RunQueryResponse& operator=(const RunQueryResponse& from) {
  2589. CopyFrom(from);
  2590. return *this;
  2591. }
  2592. inline RunQueryResponse& operator=(RunQueryResponse&& from) noexcept {
  2593. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2594. if (this != &from) InternalSwap(&from);
  2595. } else {
  2596. CopyFrom(from);
  2597. }
  2598. return *this;
  2599. }
  2600. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2601. return GetDescriptor();
  2602. }
  2603. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2604. return GetMetadataStatic().descriptor;
  2605. }
  2606. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2607. return GetMetadataStatic().reflection;
  2608. }
  2609. static const RunQueryResponse& default_instance();
  2610. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2611. static inline const RunQueryResponse* internal_default_instance() {
  2612. return reinterpret_cast<const RunQueryResponse*>(
  2613. &_RunQueryResponse_default_instance_);
  2614. }
  2615. static constexpr int kIndexInFileMessages =
  2616. 14;
  2617. friend void swap(RunQueryResponse& a, RunQueryResponse& b) {
  2618. a.Swap(&b);
  2619. }
  2620. inline void Swap(RunQueryResponse* other) {
  2621. if (other == this) return;
  2622. InternalSwap(other);
  2623. }
  2624. // implements Message ----------------------------------------------
  2625. inline RunQueryResponse* New() const final {
  2626. return CreateMaybeMessage<RunQueryResponse>(nullptr);
  2627. }
  2628. RunQueryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2629. return CreateMaybeMessage<RunQueryResponse>(arena);
  2630. }
  2631. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2632. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2633. void CopyFrom(const RunQueryResponse& from);
  2634. void MergeFrom(const RunQueryResponse& from);
  2635. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2636. bool IsInitialized() const final;
  2637. size_t ByteSizeLong() const final;
  2638. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2639. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2640. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2641. int GetCachedSize() const final { return _cached_size_.Get(); }
  2642. private:
  2643. inline void SharedCtor();
  2644. inline void SharedDtor();
  2645. void SetCachedSize(int size) const final;
  2646. void InternalSwap(RunQueryResponse* other);
  2647. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2648. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2649. return "google.firestore.v1.RunQueryResponse";
  2650. }
  2651. private:
  2652. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2653. return nullptr;
  2654. }
  2655. inline void* MaybeArenaPtr() const {
  2656. return nullptr;
  2657. }
  2658. public:
  2659. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2660. private:
  2661. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2662. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2663. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2664. }
  2665. public:
  2666. // nested types ----------------------------------------------------
  2667. // accessors -------------------------------------------------------
  2668. enum : int {
  2669. kTransactionFieldNumber = 2,
  2670. kDocumentFieldNumber = 1,
  2671. kReadTimeFieldNumber = 3,
  2672. kSkippedResultsFieldNumber = 4,
  2673. };
  2674. // bytes transaction = 2;
  2675. void clear_transaction();
  2676. const std::string& transaction() const;
  2677. void set_transaction(const std::string& value);
  2678. void set_transaction(std::string&& value);
  2679. void set_transaction(const char* value);
  2680. void set_transaction(const void* value, size_t size);
  2681. std::string* mutable_transaction();
  2682. std::string* release_transaction();
  2683. void set_allocated_transaction(std::string* transaction);
  2684. private:
  2685. const std::string& _internal_transaction() const;
  2686. void _internal_set_transaction(const std::string& value);
  2687. std::string* _internal_mutable_transaction();
  2688. public:
  2689. // .google.firestore.v1.Document document = 1;
  2690. bool has_document() const;
  2691. private:
  2692. bool _internal_has_document() const;
  2693. public:
  2694. void clear_document();
  2695. const ::google::firestore::v1::Document& document() const;
  2696. ::google::firestore::v1::Document* release_document();
  2697. ::google::firestore::v1::Document* mutable_document();
  2698. void set_allocated_document(::google::firestore::v1::Document* document);
  2699. private:
  2700. const ::google::firestore::v1::Document& _internal_document() const;
  2701. ::google::firestore::v1::Document* _internal_mutable_document();
  2702. public:
  2703. // .google.protobuf.Timestamp read_time = 3;
  2704. bool has_read_time() const;
  2705. private:
  2706. bool _internal_has_read_time() const;
  2707. public:
  2708. void clear_read_time();
  2709. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2710. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2711. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2712. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2713. private:
  2714. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  2715. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  2716. public:
  2717. // int32 skipped_results = 4;
  2718. void clear_skipped_results();
  2719. ::PROTOBUF_NAMESPACE_ID::int32 skipped_results() const;
  2720. void set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value);
  2721. private:
  2722. ::PROTOBUF_NAMESPACE_ID::int32 _internal_skipped_results() const;
  2723. void _internal_set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value);
  2724. public:
  2725. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryResponse)
  2726. private:
  2727. class _Internal;
  2728. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2729. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2730. ::google::firestore::v1::Document* document_;
  2731. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2732. ::PROTOBUF_NAMESPACE_ID::int32 skipped_results_;
  2733. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2734. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2735. };
  2736. // -------------------------------------------------------------------
  2737. class WriteRequest_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
  2738. std::string, std::string,
  2739. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2740. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2741. 0 > {
  2742. public:
  2743. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
  2744. std::string, std::string,
  2745. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2746. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2747. 0 > SuperType;
  2748. WriteRequest_LabelsEntry_DoNotUse();
  2749. WriteRequest_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2750. void MergeFrom(const WriteRequest_LabelsEntry_DoNotUse& other);
  2751. static const WriteRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const WriteRequest_LabelsEntry_DoNotUse*>(&_WriteRequest_LabelsEntry_DoNotUse_default_instance_); }
  2752. static bool ValidateKey(std::string* s) {
  2753. 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");
  2754. }
  2755. static bool ValidateValue(std::string* s) {
  2756. 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");
  2757. }
  2758. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  2759. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2760. private:
  2761. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2762. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2763. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[15];
  2764. }
  2765. public:
  2766. };
  2767. // -------------------------------------------------------------------
  2768. class WriteRequest :
  2769. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteRequest) */ {
  2770. public:
  2771. WriteRequest();
  2772. virtual ~WriteRequest();
  2773. WriteRequest(const WriteRequest& from);
  2774. WriteRequest(WriteRequest&& from) noexcept
  2775. : WriteRequest() {
  2776. *this = ::std::move(from);
  2777. }
  2778. inline WriteRequest& operator=(const WriteRequest& from) {
  2779. CopyFrom(from);
  2780. return *this;
  2781. }
  2782. inline WriteRequest& operator=(WriteRequest&& from) noexcept {
  2783. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2784. if (this != &from) InternalSwap(&from);
  2785. } else {
  2786. CopyFrom(from);
  2787. }
  2788. return *this;
  2789. }
  2790. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2791. return GetDescriptor();
  2792. }
  2793. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2794. return GetMetadataStatic().descriptor;
  2795. }
  2796. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2797. return GetMetadataStatic().reflection;
  2798. }
  2799. static const WriteRequest& default_instance();
  2800. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2801. static inline const WriteRequest* internal_default_instance() {
  2802. return reinterpret_cast<const WriteRequest*>(
  2803. &_WriteRequest_default_instance_);
  2804. }
  2805. static constexpr int kIndexInFileMessages =
  2806. 16;
  2807. friend void swap(WriteRequest& a, WriteRequest& b) {
  2808. a.Swap(&b);
  2809. }
  2810. inline void Swap(WriteRequest* other) {
  2811. if (other == this) return;
  2812. InternalSwap(other);
  2813. }
  2814. // implements Message ----------------------------------------------
  2815. inline WriteRequest* New() const final {
  2816. return CreateMaybeMessage<WriteRequest>(nullptr);
  2817. }
  2818. WriteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2819. return CreateMaybeMessage<WriteRequest>(arena);
  2820. }
  2821. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2822. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2823. void CopyFrom(const WriteRequest& from);
  2824. void MergeFrom(const WriteRequest& from);
  2825. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2826. bool IsInitialized() const final;
  2827. size_t ByteSizeLong() const final;
  2828. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2829. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2830. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2831. int GetCachedSize() const final { return _cached_size_.Get(); }
  2832. private:
  2833. inline void SharedCtor();
  2834. inline void SharedDtor();
  2835. void SetCachedSize(int size) const final;
  2836. void InternalSwap(WriteRequest* other);
  2837. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2838. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2839. return "google.firestore.v1.WriteRequest";
  2840. }
  2841. private:
  2842. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2843. return nullptr;
  2844. }
  2845. inline void* MaybeArenaPtr() const {
  2846. return nullptr;
  2847. }
  2848. public:
  2849. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2850. private:
  2851. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2852. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2853. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2854. }
  2855. public:
  2856. // nested types ----------------------------------------------------
  2857. // accessors -------------------------------------------------------
  2858. enum : int {
  2859. kWritesFieldNumber = 3,
  2860. kLabelsFieldNumber = 5,
  2861. kDatabaseFieldNumber = 1,
  2862. kStreamIdFieldNumber = 2,
  2863. kStreamTokenFieldNumber = 4,
  2864. };
  2865. // repeated .google.firestore.v1.Write writes = 3;
  2866. int writes_size() const;
  2867. private:
  2868. int _internal_writes_size() const;
  2869. public:
  2870. void clear_writes();
  2871. ::google::firestore::v1::Write* mutable_writes(int index);
  2872. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  2873. mutable_writes();
  2874. private:
  2875. const ::google::firestore::v1::Write& _internal_writes(int index) const;
  2876. ::google::firestore::v1::Write* _internal_add_writes();
  2877. public:
  2878. const ::google::firestore::v1::Write& writes(int index) const;
  2879. ::google::firestore::v1::Write* add_writes();
  2880. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  2881. writes() const;
  2882. // map<string, string> labels = 5;
  2883. int labels_size() const;
  2884. private:
  2885. int _internal_labels_size() const;
  2886. public:
  2887. void clear_labels();
  2888. private:
  2889. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  2890. _internal_labels() const;
  2891. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  2892. _internal_mutable_labels();
  2893. public:
  2894. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  2895. labels() const;
  2896. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  2897. mutable_labels();
  2898. // string database = 1;
  2899. void clear_database();
  2900. const std::string& database() const;
  2901. void set_database(const std::string& value);
  2902. void set_database(std::string&& value);
  2903. void set_database(const char* value);
  2904. void set_database(const char* value, size_t size);
  2905. std::string* mutable_database();
  2906. std::string* release_database();
  2907. void set_allocated_database(std::string* database);
  2908. private:
  2909. const std::string& _internal_database() const;
  2910. void _internal_set_database(const std::string& value);
  2911. std::string* _internal_mutable_database();
  2912. public:
  2913. // string stream_id = 2;
  2914. void clear_stream_id();
  2915. const std::string& stream_id() const;
  2916. void set_stream_id(const std::string& value);
  2917. void set_stream_id(std::string&& value);
  2918. void set_stream_id(const char* value);
  2919. void set_stream_id(const char* value, size_t size);
  2920. std::string* mutable_stream_id();
  2921. std::string* release_stream_id();
  2922. void set_allocated_stream_id(std::string* stream_id);
  2923. private:
  2924. const std::string& _internal_stream_id() const;
  2925. void _internal_set_stream_id(const std::string& value);
  2926. std::string* _internal_mutable_stream_id();
  2927. public:
  2928. // bytes stream_token = 4;
  2929. void clear_stream_token();
  2930. const std::string& stream_token() const;
  2931. void set_stream_token(const std::string& value);
  2932. void set_stream_token(std::string&& value);
  2933. void set_stream_token(const char* value);
  2934. void set_stream_token(const void* value, size_t size);
  2935. std::string* mutable_stream_token();
  2936. std::string* release_stream_token();
  2937. void set_allocated_stream_token(std::string* stream_token);
  2938. private:
  2939. const std::string& _internal_stream_token() const;
  2940. void _internal_set_stream_token(const std::string& value);
  2941. std::string* _internal_mutable_stream_token();
  2942. public:
  2943. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteRequest)
  2944. private:
  2945. class _Internal;
  2946. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2947. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  2948. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  2949. WriteRequest_LabelsEntry_DoNotUse,
  2950. std::string, std::string,
  2951. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2952. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2953. 0 > labels_;
  2954. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2955. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_id_;
  2956. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_token_;
  2957. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2958. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2959. };
  2960. // -------------------------------------------------------------------
  2961. class WriteResponse :
  2962. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteResponse) */ {
  2963. public:
  2964. WriteResponse();
  2965. virtual ~WriteResponse();
  2966. WriteResponse(const WriteResponse& from);
  2967. WriteResponse(WriteResponse&& from) noexcept
  2968. : WriteResponse() {
  2969. *this = ::std::move(from);
  2970. }
  2971. inline WriteResponse& operator=(const WriteResponse& from) {
  2972. CopyFrom(from);
  2973. return *this;
  2974. }
  2975. inline WriteResponse& operator=(WriteResponse&& from) noexcept {
  2976. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2977. if (this != &from) InternalSwap(&from);
  2978. } else {
  2979. CopyFrom(from);
  2980. }
  2981. return *this;
  2982. }
  2983. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2984. return GetDescriptor();
  2985. }
  2986. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2987. return GetMetadataStatic().descriptor;
  2988. }
  2989. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2990. return GetMetadataStatic().reflection;
  2991. }
  2992. static const WriteResponse& default_instance();
  2993. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2994. static inline const WriteResponse* internal_default_instance() {
  2995. return reinterpret_cast<const WriteResponse*>(
  2996. &_WriteResponse_default_instance_);
  2997. }
  2998. static constexpr int kIndexInFileMessages =
  2999. 17;
  3000. friend void swap(WriteResponse& a, WriteResponse& b) {
  3001. a.Swap(&b);
  3002. }
  3003. inline void Swap(WriteResponse* other) {
  3004. if (other == this) return;
  3005. InternalSwap(other);
  3006. }
  3007. // implements Message ----------------------------------------------
  3008. inline WriteResponse* New() const final {
  3009. return CreateMaybeMessage<WriteResponse>(nullptr);
  3010. }
  3011. WriteResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3012. return CreateMaybeMessage<WriteResponse>(arena);
  3013. }
  3014. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3015. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3016. void CopyFrom(const WriteResponse& from);
  3017. void MergeFrom(const WriteResponse& from);
  3018. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3019. bool IsInitialized() const final;
  3020. size_t ByteSizeLong() const final;
  3021. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3022. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3023. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3024. int GetCachedSize() const final { return _cached_size_.Get(); }
  3025. private:
  3026. inline void SharedCtor();
  3027. inline void SharedDtor();
  3028. void SetCachedSize(int size) const final;
  3029. void InternalSwap(WriteResponse* other);
  3030. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3031. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3032. return "google.firestore.v1.WriteResponse";
  3033. }
  3034. private:
  3035. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3036. return nullptr;
  3037. }
  3038. inline void* MaybeArenaPtr() const {
  3039. return nullptr;
  3040. }
  3041. public:
  3042. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3043. private:
  3044. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3045. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3046. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3047. }
  3048. public:
  3049. // nested types ----------------------------------------------------
  3050. // accessors -------------------------------------------------------
  3051. enum : int {
  3052. kWriteResultsFieldNumber = 3,
  3053. kStreamIdFieldNumber = 1,
  3054. kStreamTokenFieldNumber = 2,
  3055. kCommitTimeFieldNumber = 4,
  3056. };
  3057. // repeated .google.firestore.v1.WriteResult write_results = 3;
  3058. int write_results_size() const;
  3059. private:
  3060. int _internal_write_results_size() const;
  3061. public:
  3062. void clear_write_results();
  3063. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  3064. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  3065. mutable_write_results();
  3066. private:
  3067. const ::google::firestore::v1::WriteResult& _internal_write_results(int index) const;
  3068. ::google::firestore::v1::WriteResult* _internal_add_write_results();
  3069. public:
  3070. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  3071. ::google::firestore::v1::WriteResult* add_write_results();
  3072. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  3073. write_results() const;
  3074. // string stream_id = 1;
  3075. void clear_stream_id();
  3076. const std::string& stream_id() const;
  3077. void set_stream_id(const std::string& value);
  3078. void set_stream_id(std::string&& value);
  3079. void set_stream_id(const char* value);
  3080. void set_stream_id(const char* value, size_t size);
  3081. std::string* mutable_stream_id();
  3082. std::string* release_stream_id();
  3083. void set_allocated_stream_id(std::string* stream_id);
  3084. private:
  3085. const std::string& _internal_stream_id() const;
  3086. void _internal_set_stream_id(const std::string& value);
  3087. std::string* _internal_mutable_stream_id();
  3088. public:
  3089. // bytes stream_token = 2;
  3090. void clear_stream_token();
  3091. const std::string& stream_token() const;
  3092. void set_stream_token(const std::string& value);
  3093. void set_stream_token(std::string&& value);
  3094. void set_stream_token(const char* value);
  3095. void set_stream_token(const void* value, size_t size);
  3096. std::string* mutable_stream_token();
  3097. std::string* release_stream_token();
  3098. void set_allocated_stream_token(std::string* stream_token);
  3099. private:
  3100. const std::string& _internal_stream_token() const;
  3101. void _internal_set_stream_token(const std::string& value);
  3102. std::string* _internal_mutable_stream_token();
  3103. public:
  3104. // .google.protobuf.Timestamp commit_time = 4;
  3105. bool has_commit_time() const;
  3106. private:
  3107. bool _internal_has_commit_time() const;
  3108. public:
  3109. void clear_commit_time();
  3110. const PROTOBUF_NAMESPACE_ID::Timestamp& commit_time() const;
  3111. PROTOBUF_NAMESPACE_ID::Timestamp* release_commit_time();
  3112. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_commit_time();
  3113. void set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time);
  3114. private:
  3115. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_commit_time() const;
  3116. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_commit_time();
  3117. public:
  3118. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteResponse)
  3119. private:
  3120. class _Internal;
  3121. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3122. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  3123. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_id_;
  3124. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_token_;
  3125. PROTOBUF_NAMESPACE_ID::Timestamp* commit_time_;
  3126. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3127. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3128. };
  3129. // -------------------------------------------------------------------
  3130. class ListenRequest_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
  3131. std::string, std::string,
  3132. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3133. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3134. 0 > {
  3135. public:
  3136. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
  3137. std::string, std::string,
  3138. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3139. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3140. 0 > SuperType;
  3141. ListenRequest_LabelsEntry_DoNotUse();
  3142. ListenRequest_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3143. void MergeFrom(const ListenRequest_LabelsEntry_DoNotUse& other);
  3144. static const ListenRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const ListenRequest_LabelsEntry_DoNotUse*>(&_ListenRequest_LabelsEntry_DoNotUse_default_instance_); }
  3145. static bool ValidateKey(std::string* s) {
  3146. 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");
  3147. }
  3148. static bool ValidateValue(std::string* s) {
  3149. 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");
  3150. }
  3151. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  3152. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3153. private:
  3154. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3155. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3156. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[18];
  3157. }
  3158. public:
  3159. };
  3160. // -------------------------------------------------------------------
  3161. class ListenRequest :
  3162. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenRequest) */ {
  3163. public:
  3164. ListenRequest();
  3165. virtual ~ListenRequest();
  3166. ListenRequest(const ListenRequest& from);
  3167. ListenRequest(ListenRequest&& from) noexcept
  3168. : ListenRequest() {
  3169. *this = ::std::move(from);
  3170. }
  3171. inline ListenRequest& operator=(const ListenRequest& from) {
  3172. CopyFrom(from);
  3173. return *this;
  3174. }
  3175. inline ListenRequest& operator=(ListenRequest&& from) noexcept {
  3176. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3177. if (this != &from) InternalSwap(&from);
  3178. } else {
  3179. CopyFrom(from);
  3180. }
  3181. return *this;
  3182. }
  3183. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3184. return GetDescriptor();
  3185. }
  3186. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3187. return GetMetadataStatic().descriptor;
  3188. }
  3189. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3190. return GetMetadataStatic().reflection;
  3191. }
  3192. static const ListenRequest& default_instance();
  3193. enum TargetChangeCase {
  3194. kAddTarget = 2,
  3195. kRemoveTarget = 3,
  3196. TARGET_CHANGE_NOT_SET = 0,
  3197. };
  3198. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3199. static inline const ListenRequest* internal_default_instance() {
  3200. return reinterpret_cast<const ListenRequest*>(
  3201. &_ListenRequest_default_instance_);
  3202. }
  3203. static constexpr int kIndexInFileMessages =
  3204. 19;
  3205. friend void swap(ListenRequest& a, ListenRequest& b) {
  3206. a.Swap(&b);
  3207. }
  3208. inline void Swap(ListenRequest* other) {
  3209. if (other == this) return;
  3210. InternalSwap(other);
  3211. }
  3212. // implements Message ----------------------------------------------
  3213. inline ListenRequest* New() const final {
  3214. return CreateMaybeMessage<ListenRequest>(nullptr);
  3215. }
  3216. ListenRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3217. return CreateMaybeMessage<ListenRequest>(arena);
  3218. }
  3219. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3220. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3221. void CopyFrom(const ListenRequest& from);
  3222. void MergeFrom(const ListenRequest& from);
  3223. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3224. bool IsInitialized() const final;
  3225. size_t ByteSizeLong() const final;
  3226. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3227. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3228. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3229. int GetCachedSize() const final { return _cached_size_.Get(); }
  3230. private:
  3231. inline void SharedCtor();
  3232. inline void SharedDtor();
  3233. void SetCachedSize(int size) const final;
  3234. void InternalSwap(ListenRequest* other);
  3235. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3236. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3237. return "google.firestore.v1.ListenRequest";
  3238. }
  3239. private:
  3240. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3241. return nullptr;
  3242. }
  3243. inline void* MaybeArenaPtr() const {
  3244. return nullptr;
  3245. }
  3246. public:
  3247. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3248. private:
  3249. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3250. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3251. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3252. }
  3253. public:
  3254. // nested types ----------------------------------------------------
  3255. // accessors -------------------------------------------------------
  3256. enum : int {
  3257. kLabelsFieldNumber = 4,
  3258. kDatabaseFieldNumber = 1,
  3259. kAddTargetFieldNumber = 2,
  3260. kRemoveTargetFieldNumber = 3,
  3261. };
  3262. // map<string, string> labels = 4;
  3263. int labels_size() const;
  3264. private:
  3265. int _internal_labels_size() const;
  3266. public:
  3267. void clear_labels();
  3268. private:
  3269. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3270. _internal_labels() const;
  3271. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3272. _internal_mutable_labels();
  3273. public:
  3274. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3275. labels() const;
  3276. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3277. mutable_labels();
  3278. // string database = 1;
  3279. void clear_database();
  3280. const std::string& database() const;
  3281. void set_database(const std::string& value);
  3282. void set_database(std::string&& value);
  3283. void set_database(const char* value);
  3284. void set_database(const char* value, size_t size);
  3285. std::string* mutable_database();
  3286. std::string* release_database();
  3287. void set_allocated_database(std::string* database);
  3288. private:
  3289. const std::string& _internal_database() const;
  3290. void _internal_set_database(const std::string& value);
  3291. std::string* _internal_mutable_database();
  3292. public:
  3293. // .google.firestore.v1.Target add_target = 2;
  3294. bool has_add_target() const;
  3295. private:
  3296. bool _internal_has_add_target() const;
  3297. public:
  3298. void clear_add_target();
  3299. const ::google::firestore::v1::Target& add_target() const;
  3300. ::google::firestore::v1::Target* release_add_target();
  3301. ::google::firestore::v1::Target* mutable_add_target();
  3302. void set_allocated_add_target(::google::firestore::v1::Target* add_target);
  3303. private:
  3304. const ::google::firestore::v1::Target& _internal_add_target() const;
  3305. ::google::firestore::v1::Target* _internal_mutable_add_target();
  3306. public:
  3307. // int32 remove_target = 3;
  3308. private:
  3309. bool _internal_has_remove_target() const;
  3310. public:
  3311. void clear_remove_target();
  3312. ::PROTOBUF_NAMESPACE_ID::int32 remove_target() const;
  3313. void set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value);
  3314. private:
  3315. ::PROTOBUF_NAMESPACE_ID::int32 _internal_remove_target() const;
  3316. void _internal_set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value);
  3317. public:
  3318. void clear_target_change();
  3319. TargetChangeCase target_change_case() const;
  3320. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenRequest)
  3321. private:
  3322. class _Internal;
  3323. void set_has_add_target();
  3324. void set_has_remove_target();
  3325. inline bool has_target_change() const;
  3326. inline void clear_has_target_change();
  3327. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3328. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  3329. ListenRequest_LabelsEntry_DoNotUse,
  3330. std::string, std::string,
  3331. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3332. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3333. 0 > labels_;
  3334. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  3335. union TargetChangeUnion {
  3336. TargetChangeUnion() {}
  3337. ::google::firestore::v1::Target* add_target_;
  3338. ::PROTOBUF_NAMESPACE_ID::int32 remove_target_;
  3339. } target_change_;
  3340. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3341. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3342. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3343. };
  3344. // -------------------------------------------------------------------
  3345. class ListenResponse :
  3346. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenResponse) */ {
  3347. public:
  3348. ListenResponse();
  3349. virtual ~ListenResponse();
  3350. ListenResponse(const ListenResponse& from);
  3351. ListenResponse(ListenResponse&& from) noexcept
  3352. : ListenResponse() {
  3353. *this = ::std::move(from);
  3354. }
  3355. inline ListenResponse& operator=(const ListenResponse& from) {
  3356. CopyFrom(from);
  3357. return *this;
  3358. }
  3359. inline ListenResponse& operator=(ListenResponse&& from) noexcept {
  3360. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3361. if (this != &from) InternalSwap(&from);
  3362. } else {
  3363. CopyFrom(from);
  3364. }
  3365. return *this;
  3366. }
  3367. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3368. return GetDescriptor();
  3369. }
  3370. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3371. return GetMetadataStatic().descriptor;
  3372. }
  3373. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3374. return GetMetadataStatic().reflection;
  3375. }
  3376. static const ListenResponse& default_instance();
  3377. enum ResponseTypeCase {
  3378. kTargetChange = 2,
  3379. kDocumentChange = 3,
  3380. kDocumentDelete = 4,
  3381. kDocumentRemove = 6,
  3382. kFilter = 5,
  3383. RESPONSE_TYPE_NOT_SET = 0,
  3384. };
  3385. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3386. static inline const ListenResponse* internal_default_instance() {
  3387. return reinterpret_cast<const ListenResponse*>(
  3388. &_ListenResponse_default_instance_);
  3389. }
  3390. static constexpr int kIndexInFileMessages =
  3391. 20;
  3392. friend void swap(ListenResponse& a, ListenResponse& b) {
  3393. a.Swap(&b);
  3394. }
  3395. inline void Swap(ListenResponse* other) {
  3396. if (other == this) return;
  3397. InternalSwap(other);
  3398. }
  3399. // implements Message ----------------------------------------------
  3400. inline ListenResponse* New() const final {
  3401. return CreateMaybeMessage<ListenResponse>(nullptr);
  3402. }
  3403. ListenResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3404. return CreateMaybeMessage<ListenResponse>(arena);
  3405. }
  3406. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3407. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3408. void CopyFrom(const ListenResponse& from);
  3409. void MergeFrom(const ListenResponse& from);
  3410. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3411. bool IsInitialized() const final;
  3412. size_t ByteSizeLong() const final;
  3413. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3414. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3415. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3416. int GetCachedSize() const final { return _cached_size_.Get(); }
  3417. private:
  3418. inline void SharedCtor();
  3419. inline void SharedDtor();
  3420. void SetCachedSize(int size) const final;
  3421. void InternalSwap(ListenResponse* other);
  3422. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3423. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3424. return "google.firestore.v1.ListenResponse";
  3425. }
  3426. private:
  3427. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3428. return nullptr;
  3429. }
  3430. inline void* MaybeArenaPtr() const {
  3431. return nullptr;
  3432. }
  3433. public:
  3434. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3435. private:
  3436. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3437. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3438. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3439. }
  3440. public:
  3441. // nested types ----------------------------------------------------
  3442. // accessors -------------------------------------------------------
  3443. enum : int {
  3444. kTargetChangeFieldNumber = 2,
  3445. kDocumentChangeFieldNumber = 3,
  3446. kDocumentDeleteFieldNumber = 4,
  3447. kDocumentRemoveFieldNumber = 6,
  3448. kFilterFieldNumber = 5,
  3449. };
  3450. // .google.firestore.v1.TargetChange target_change = 2;
  3451. bool has_target_change() const;
  3452. private:
  3453. bool _internal_has_target_change() const;
  3454. public:
  3455. void clear_target_change();
  3456. const ::google::firestore::v1::TargetChange& target_change() const;
  3457. ::google::firestore::v1::TargetChange* release_target_change();
  3458. ::google::firestore::v1::TargetChange* mutable_target_change();
  3459. void set_allocated_target_change(::google::firestore::v1::TargetChange* target_change);
  3460. private:
  3461. const ::google::firestore::v1::TargetChange& _internal_target_change() const;
  3462. ::google::firestore::v1::TargetChange* _internal_mutable_target_change();
  3463. public:
  3464. // .google.firestore.v1.DocumentChange document_change = 3;
  3465. bool has_document_change() const;
  3466. private:
  3467. bool _internal_has_document_change() const;
  3468. public:
  3469. void clear_document_change();
  3470. const ::google::firestore::v1::DocumentChange& document_change() const;
  3471. ::google::firestore::v1::DocumentChange* release_document_change();
  3472. ::google::firestore::v1::DocumentChange* mutable_document_change();
  3473. void set_allocated_document_change(::google::firestore::v1::DocumentChange* document_change);
  3474. private:
  3475. const ::google::firestore::v1::DocumentChange& _internal_document_change() const;
  3476. ::google::firestore::v1::DocumentChange* _internal_mutable_document_change();
  3477. public:
  3478. // .google.firestore.v1.DocumentDelete document_delete = 4;
  3479. bool has_document_delete() const;
  3480. private:
  3481. bool _internal_has_document_delete() const;
  3482. public:
  3483. void clear_document_delete();
  3484. const ::google::firestore::v1::DocumentDelete& document_delete() const;
  3485. ::google::firestore::v1::DocumentDelete* release_document_delete();
  3486. ::google::firestore::v1::DocumentDelete* mutable_document_delete();
  3487. void set_allocated_document_delete(::google::firestore::v1::DocumentDelete* document_delete);
  3488. private:
  3489. const ::google::firestore::v1::DocumentDelete& _internal_document_delete() const;
  3490. ::google::firestore::v1::DocumentDelete* _internal_mutable_document_delete();
  3491. public:
  3492. // .google.firestore.v1.DocumentRemove document_remove = 6;
  3493. bool has_document_remove() const;
  3494. private:
  3495. bool _internal_has_document_remove() const;
  3496. public:
  3497. void clear_document_remove();
  3498. const ::google::firestore::v1::DocumentRemove& document_remove() const;
  3499. ::google::firestore::v1::DocumentRemove* release_document_remove();
  3500. ::google::firestore::v1::DocumentRemove* mutable_document_remove();
  3501. void set_allocated_document_remove(::google::firestore::v1::DocumentRemove* document_remove);
  3502. private:
  3503. const ::google::firestore::v1::DocumentRemove& _internal_document_remove() const;
  3504. ::google::firestore::v1::DocumentRemove* _internal_mutable_document_remove();
  3505. public:
  3506. // .google.firestore.v1.ExistenceFilter filter = 5;
  3507. bool has_filter() const;
  3508. private:
  3509. bool _internal_has_filter() const;
  3510. public:
  3511. void clear_filter();
  3512. const ::google::firestore::v1::ExistenceFilter& filter() const;
  3513. ::google::firestore::v1::ExistenceFilter* release_filter();
  3514. ::google::firestore::v1::ExistenceFilter* mutable_filter();
  3515. void set_allocated_filter(::google::firestore::v1::ExistenceFilter* filter);
  3516. private:
  3517. const ::google::firestore::v1::ExistenceFilter& _internal_filter() const;
  3518. ::google::firestore::v1::ExistenceFilter* _internal_mutable_filter();
  3519. public:
  3520. void clear_response_type();
  3521. ResponseTypeCase response_type_case() const;
  3522. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenResponse)
  3523. private:
  3524. class _Internal;
  3525. void set_has_target_change();
  3526. void set_has_document_change();
  3527. void set_has_document_delete();
  3528. void set_has_document_remove();
  3529. void set_has_filter();
  3530. inline bool has_response_type() const;
  3531. inline void clear_has_response_type();
  3532. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3533. union ResponseTypeUnion {
  3534. ResponseTypeUnion() {}
  3535. ::google::firestore::v1::TargetChange* target_change_;
  3536. ::google::firestore::v1::DocumentChange* document_change_;
  3537. ::google::firestore::v1::DocumentDelete* document_delete_;
  3538. ::google::firestore::v1::DocumentRemove* document_remove_;
  3539. ::google::firestore::v1::ExistenceFilter* filter_;
  3540. } response_type_;
  3541. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3542. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3543. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3544. };
  3545. // -------------------------------------------------------------------
  3546. class Target_DocumentsTarget :
  3547. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.DocumentsTarget) */ {
  3548. public:
  3549. Target_DocumentsTarget();
  3550. virtual ~Target_DocumentsTarget();
  3551. Target_DocumentsTarget(const Target_DocumentsTarget& from);
  3552. Target_DocumentsTarget(Target_DocumentsTarget&& from) noexcept
  3553. : Target_DocumentsTarget() {
  3554. *this = ::std::move(from);
  3555. }
  3556. inline Target_DocumentsTarget& operator=(const Target_DocumentsTarget& from) {
  3557. CopyFrom(from);
  3558. return *this;
  3559. }
  3560. inline Target_DocumentsTarget& operator=(Target_DocumentsTarget&& from) noexcept {
  3561. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3562. if (this != &from) InternalSwap(&from);
  3563. } else {
  3564. CopyFrom(from);
  3565. }
  3566. return *this;
  3567. }
  3568. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3569. return GetDescriptor();
  3570. }
  3571. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3572. return GetMetadataStatic().descriptor;
  3573. }
  3574. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3575. return GetMetadataStatic().reflection;
  3576. }
  3577. static const Target_DocumentsTarget& default_instance();
  3578. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3579. static inline const Target_DocumentsTarget* internal_default_instance() {
  3580. return reinterpret_cast<const Target_DocumentsTarget*>(
  3581. &_Target_DocumentsTarget_default_instance_);
  3582. }
  3583. static constexpr int kIndexInFileMessages =
  3584. 21;
  3585. friend void swap(Target_DocumentsTarget& a, Target_DocumentsTarget& b) {
  3586. a.Swap(&b);
  3587. }
  3588. inline void Swap(Target_DocumentsTarget* other) {
  3589. if (other == this) return;
  3590. InternalSwap(other);
  3591. }
  3592. // implements Message ----------------------------------------------
  3593. inline Target_DocumentsTarget* New() const final {
  3594. return CreateMaybeMessage<Target_DocumentsTarget>(nullptr);
  3595. }
  3596. Target_DocumentsTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3597. return CreateMaybeMessage<Target_DocumentsTarget>(arena);
  3598. }
  3599. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3600. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3601. void CopyFrom(const Target_DocumentsTarget& from);
  3602. void MergeFrom(const Target_DocumentsTarget& from);
  3603. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3604. bool IsInitialized() const final;
  3605. size_t ByteSizeLong() const final;
  3606. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3607. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3608. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3609. int GetCachedSize() const final { return _cached_size_.Get(); }
  3610. private:
  3611. inline void SharedCtor();
  3612. inline void SharedDtor();
  3613. void SetCachedSize(int size) const final;
  3614. void InternalSwap(Target_DocumentsTarget* other);
  3615. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3616. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3617. return "google.firestore.v1.Target.DocumentsTarget";
  3618. }
  3619. private:
  3620. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3621. return nullptr;
  3622. }
  3623. inline void* MaybeArenaPtr() const {
  3624. return nullptr;
  3625. }
  3626. public:
  3627. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3628. private:
  3629. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3630. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3631. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3632. }
  3633. public:
  3634. // nested types ----------------------------------------------------
  3635. // accessors -------------------------------------------------------
  3636. enum : int {
  3637. kDocumentsFieldNumber = 2,
  3638. };
  3639. // repeated string documents = 2;
  3640. int documents_size() const;
  3641. private:
  3642. int _internal_documents_size() const;
  3643. public:
  3644. void clear_documents();
  3645. const std::string& documents(int index) const;
  3646. std::string* mutable_documents(int index);
  3647. void set_documents(int index, const std::string& value);
  3648. void set_documents(int index, std::string&& value);
  3649. void set_documents(int index, const char* value);
  3650. void set_documents(int index, const char* value, size_t size);
  3651. std::string* add_documents();
  3652. void add_documents(const std::string& value);
  3653. void add_documents(std::string&& value);
  3654. void add_documents(const char* value);
  3655. void add_documents(const char* value, size_t size);
  3656. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& documents() const;
  3657. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_documents();
  3658. private:
  3659. const std::string& _internal_documents(int index) const;
  3660. std::string* _internal_add_documents();
  3661. public:
  3662. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.DocumentsTarget)
  3663. private:
  3664. class _Internal;
  3665. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3666. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> documents_;
  3667. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3668. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3669. };
  3670. // -------------------------------------------------------------------
  3671. class Target_QueryTarget :
  3672. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.QueryTarget) */ {
  3673. public:
  3674. Target_QueryTarget();
  3675. virtual ~Target_QueryTarget();
  3676. Target_QueryTarget(const Target_QueryTarget& from);
  3677. Target_QueryTarget(Target_QueryTarget&& from) noexcept
  3678. : Target_QueryTarget() {
  3679. *this = ::std::move(from);
  3680. }
  3681. inline Target_QueryTarget& operator=(const Target_QueryTarget& from) {
  3682. CopyFrom(from);
  3683. return *this;
  3684. }
  3685. inline Target_QueryTarget& operator=(Target_QueryTarget&& from) noexcept {
  3686. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3687. if (this != &from) InternalSwap(&from);
  3688. } else {
  3689. CopyFrom(from);
  3690. }
  3691. return *this;
  3692. }
  3693. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3694. return GetDescriptor();
  3695. }
  3696. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3697. return GetMetadataStatic().descriptor;
  3698. }
  3699. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3700. return GetMetadataStatic().reflection;
  3701. }
  3702. static const Target_QueryTarget& default_instance();
  3703. enum QueryTypeCase {
  3704. kStructuredQuery = 2,
  3705. QUERY_TYPE_NOT_SET = 0,
  3706. };
  3707. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3708. static inline const Target_QueryTarget* internal_default_instance() {
  3709. return reinterpret_cast<const Target_QueryTarget*>(
  3710. &_Target_QueryTarget_default_instance_);
  3711. }
  3712. static constexpr int kIndexInFileMessages =
  3713. 22;
  3714. friend void swap(Target_QueryTarget& a, Target_QueryTarget& b) {
  3715. a.Swap(&b);
  3716. }
  3717. inline void Swap(Target_QueryTarget* other) {
  3718. if (other == this) return;
  3719. InternalSwap(other);
  3720. }
  3721. // implements Message ----------------------------------------------
  3722. inline Target_QueryTarget* New() const final {
  3723. return CreateMaybeMessage<Target_QueryTarget>(nullptr);
  3724. }
  3725. Target_QueryTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3726. return CreateMaybeMessage<Target_QueryTarget>(arena);
  3727. }
  3728. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3729. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3730. void CopyFrom(const Target_QueryTarget& from);
  3731. void MergeFrom(const Target_QueryTarget& from);
  3732. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3733. bool IsInitialized() const final;
  3734. size_t ByteSizeLong() const final;
  3735. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3736. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3737. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3738. int GetCachedSize() const final { return _cached_size_.Get(); }
  3739. private:
  3740. inline void SharedCtor();
  3741. inline void SharedDtor();
  3742. void SetCachedSize(int size) const final;
  3743. void InternalSwap(Target_QueryTarget* other);
  3744. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3745. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3746. return "google.firestore.v1.Target.QueryTarget";
  3747. }
  3748. private:
  3749. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3750. return nullptr;
  3751. }
  3752. inline void* MaybeArenaPtr() const {
  3753. return nullptr;
  3754. }
  3755. public:
  3756. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3757. private:
  3758. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3759. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3760. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3761. }
  3762. public:
  3763. // nested types ----------------------------------------------------
  3764. // accessors -------------------------------------------------------
  3765. enum : int {
  3766. kParentFieldNumber = 1,
  3767. kStructuredQueryFieldNumber = 2,
  3768. };
  3769. // string parent = 1;
  3770. void clear_parent();
  3771. const std::string& parent() const;
  3772. void set_parent(const std::string& value);
  3773. void set_parent(std::string&& value);
  3774. void set_parent(const char* value);
  3775. void set_parent(const char* value, size_t size);
  3776. std::string* mutable_parent();
  3777. std::string* release_parent();
  3778. void set_allocated_parent(std::string* parent);
  3779. private:
  3780. const std::string& _internal_parent() const;
  3781. void _internal_set_parent(const std::string& value);
  3782. std::string* _internal_mutable_parent();
  3783. public:
  3784. // .google.firestore.v1.StructuredQuery structured_query = 2;
  3785. bool has_structured_query() const;
  3786. private:
  3787. bool _internal_has_structured_query() const;
  3788. public:
  3789. void clear_structured_query();
  3790. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  3791. ::google::firestore::v1::StructuredQuery* release_structured_query();
  3792. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  3793. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  3794. private:
  3795. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  3796. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  3797. public:
  3798. void clear_query_type();
  3799. QueryTypeCase query_type_case() const;
  3800. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.QueryTarget)
  3801. private:
  3802. class _Internal;
  3803. void set_has_structured_query();
  3804. inline bool has_query_type() const;
  3805. inline void clear_has_query_type();
  3806. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3807. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  3808. union QueryTypeUnion {
  3809. QueryTypeUnion() {}
  3810. ::google::firestore::v1::StructuredQuery* structured_query_;
  3811. } query_type_;
  3812. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3813. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3814. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3815. };
  3816. // -------------------------------------------------------------------
  3817. class Target :
  3818. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target) */ {
  3819. public:
  3820. Target();
  3821. virtual ~Target();
  3822. Target(const Target& from);
  3823. Target(Target&& from) noexcept
  3824. : Target() {
  3825. *this = ::std::move(from);
  3826. }
  3827. inline Target& operator=(const Target& from) {
  3828. CopyFrom(from);
  3829. return *this;
  3830. }
  3831. inline Target& operator=(Target&& from) noexcept {
  3832. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3833. if (this != &from) InternalSwap(&from);
  3834. } else {
  3835. CopyFrom(from);
  3836. }
  3837. return *this;
  3838. }
  3839. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3840. return GetDescriptor();
  3841. }
  3842. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3843. return GetMetadataStatic().descriptor;
  3844. }
  3845. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3846. return GetMetadataStatic().reflection;
  3847. }
  3848. static const Target& default_instance();
  3849. enum TargetTypeCase {
  3850. kQuery = 2,
  3851. kDocuments = 3,
  3852. TARGET_TYPE_NOT_SET = 0,
  3853. };
  3854. enum ResumeTypeCase {
  3855. kResumeToken = 4,
  3856. kReadTime = 11,
  3857. RESUME_TYPE_NOT_SET = 0,
  3858. };
  3859. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3860. static inline const Target* internal_default_instance() {
  3861. return reinterpret_cast<const Target*>(
  3862. &_Target_default_instance_);
  3863. }
  3864. static constexpr int kIndexInFileMessages =
  3865. 23;
  3866. friend void swap(Target& a, Target& b) {
  3867. a.Swap(&b);
  3868. }
  3869. inline void Swap(Target* other) {
  3870. if (other == this) return;
  3871. InternalSwap(other);
  3872. }
  3873. // implements Message ----------------------------------------------
  3874. inline Target* New() const final {
  3875. return CreateMaybeMessage<Target>(nullptr);
  3876. }
  3877. Target* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3878. return CreateMaybeMessage<Target>(arena);
  3879. }
  3880. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3881. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3882. void CopyFrom(const Target& from);
  3883. void MergeFrom(const Target& from);
  3884. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3885. bool IsInitialized() const final;
  3886. size_t ByteSizeLong() const final;
  3887. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3888. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3889. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3890. int GetCachedSize() const final { return _cached_size_.Get(); }
  3891. private:
  3892. inline void SharedCtor();
  3893. inline void SharedDtor();
  3894. void SetCachedSize(int size) const final;
  3895. void InternalSwap(Target* other);
  3896. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3897. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3898. return "google.firestore.v1.Target";
  3899. }
  3900. private:
  3901. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3902. return nullptr;
  3903. }
  3904. inline void* MaybeArenaPtr() const {
  3905. return nullptr;
  3906. }
  3907. public:
  3908. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3909. private:
  3910. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3911. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3912. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3913. }
  3914. public:
  3915. // nested types ----------------------------------------------------
  3916. typedef Target_DocumentsTarget DocumentsTarget;
  3917. typedef Target_QueryTarget QueryTarget;
  3918. // accessors -------------------------------------------------------
  3919. enum : int {
  3920. kTargetIdFieldNumber = 5,
  3921. kOnceFieldNumber = 6,
  3922. kQueryFieldNumber = 2,
  3923. kDocumentsFieldNumber = 3,
  3924. kResumeTokenFieldNumber = 4,
  3925. kReadTimeFieldNumber = 11,
  3926. };
  3927. // int32 target_id = 5;
  3928. void clear_target_id();
  3929. ::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
  3930. void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  3931. private:
  3932. ::PROTOBUF_NAMESPACE_ID::int32 _internal_target_id() const;
  3933. void _internal_set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  3934. public:
  3935. // bool once = 6;
  3936. void clear_once();
  3937. bool once() const;
  3938. void set_once(bool value);
  3939. private:
  3940. bool _internal_once() const;
  3941. void _internal_set_once(bool value);
  3942. public:
  3943. // .google.firestore.v1.Target.QueryTarget query = 2;
  3944. bool has_query() const;
  3945. private:
  3946. bool _internal_has_query() const;
  3947. public:
  3948. void clear_query();
  3949. const ::google::firestore::v1::Target_QueryTarget& query() const;
  3950. ::google::firestore::v1::Target_QueryTarget* release_query();
  3951. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  3952. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* query);
  3953. private:
  3954. const ::google::firestore::v1::Target_QueryTarget& _internal_query() const;
  3955. ::google::firestore::v1::Target_QueryTarget* _internal_mutable_query();
  3956. public:
  3957. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  3958. bool has_documents() const;
  3959. private:
  3960. bool _internal_has_documents() const;
  3961. public:
  3962. void clear_documents();
  3963. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  3964. ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  3965. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  3966. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* documents);
  3967. private:
  3968. const ::google::firestore::v1::Target_DocumentsTarget& _internal_documents() const;
  3969. ::google::firestore::v1::Target_DocumentsTarget* _internal_mutable_documents();
  3970. public:
  3971. // bytes resume_token = 4;
  3972. private:
  3973. bool _internal_has_resume_token() const;
  3974. public:
  3975. void clear_resume_token();
  3976. const std::string& resume_token() const;
  3977. void set_resume_token(const std::string& value);
  3978. void set_resume_token(std::string&& value);
  3979. void set_resume_token(const char* value);
  3980. void set_resume_token(const void* value, size_t size);
  3981. std::string* mutable_resume_token();
  3982. std::string* release_resume_token();
  3983. void set_allocated_resume_token(std::string* resume_token);
  3984. private:
  3985. const std::string& _internal_resume_token() const;
  3986. void _internal_set_resume_token(const std::string& value);
  3987. std::string* _internal_mutable_resume_token();
  3988. public:
  3989. // .google.protobuf.Timestamp read_time = 11;
  3990. bool has_read_time() const;
  3991. private:
  3992. bool _internal_has_read_time() const;
  3993. public:
  3994. void clear_read_time();
  3995. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  3996. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  3997. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  3998. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  3999. private:
  4000. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  4001. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  4002. public:
  4003. void clear_target_type();
  4004. TargetTypeCase target_type_case() const;
  4005. void clear_resume_type();
  4006. ResumeTypeCase resume_type_case() const;
  4007. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target)
  4008. private:
  4009. class _Internal;
  4010. void set_has_query();
  4011. void set_has_documents();
  4012. void set_has_resume_token();
  4013. void set_has_read_time();
  4014. inline bool has_target_type() const;
  4015. inline void clear_has_target_type();
  4016. inline bool has_resume_type() const;
  4017. inline void clear_has_resume_type();
  4018. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4019. ::PROTOBUF_NAMESPACE_ID::int32 target_id_;
  4020. bool once_;
  4021. union TargetTypeUnion {
  4022. TargetTypeUnion() {}
  4023. ::google::firestore::v1::Target_QueryTarget* query_;
  4024. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  4025. } target_type_;
  4026. union ResumeTypeUnion {
  4027. ResumeTypeUnion() {}
  4028. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  4029. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  4030. } resume_type_;
  4031. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4032. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  4033. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4034. };
  4035. // -------------------------------------------------------------------
  4036. class TargetChange :
  4037. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TargetChange) */ {
  4038. public:
  4039. TargetChange();
  4040. virtual ~TargetChange();
  4041. TargetChange(const TargetChange& from);
  4042. TargetChange(TargetChange&& from) noexcept
  4043. : TargetChange() {
  4044. *this = ::std::move(from);
  4045. }
  4046. inline TargetChange& operator=(const TargetChange& from) {
  4047. CopyFrom(from);
  4048. return *this;
  4049. }
  4050. inline TargetChange& operator=(TargetChange&& from) noexcept {
  4051. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4052. if (this != &from) InternalSwap(&from);
  4053. } else {
  4054. CopyFrom(from);
  4055. }
  4056. return *this;
  4057. }
  4058. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4059. return GetDescriptor();
  4060. }
  4061. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4062. return GetMetadataStatic().descriptor;
  4063. }
  4064. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4065. return GetMetadataStatic().reflection;
  4066. }
  4067. static const TargetChange& default_instance();
  4068. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4069. static inline const TargetChange* internal_default_instance() {
  4070. return reinterpret_cast<const TargetChange*>(
  4071. &_TargetChange_default_instance_);
  4072. }
  4073. static constexpr int kIndexInFileMessages =
  4074. 24;
  4075. friend void swap(TargetChange& a, TargetChange& b) {
  4076. a.Swap(&b);
  4077. }
  4078. inline void Swap(TargetChange* other) {
  4079. if (other == this) return;
  4080. InternalSwap(other);
  4081. }
  4082. // implements Message ----------------------------------------------
  4083. inline TargetChange* New() const final {
  4084. return CreateMaybeMessage<TargetChange>(nullptr);
  4085. }
  4086. TargetChange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4087. return CreateMaybeMessage<TargetChange>(arena);
  4088. }
  4089. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4090. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4091. void CopyFrom(const TargetChange& from);
  4092. void MergeFrom(const TargetChange& from);
  4093. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4094. bool IsInitialized() const final;
  4095. size_t ByteSizeLong() const final;
  4096. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4097. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4098. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4099. int GetCachedSize() const final { return _cached_size_.Get(); }
  4100. private:
  4101. inline void SharedCtor();
  4102. inline void SharedDtor();
  4103. void SetCachedSize(int size) const final;
  4104. void InternalSwap(TargetChange* other);
  4105. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4106. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4107. return "google.firestore.v1.TargetChange";
  4108. }
  4109. private:
  4110. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4111. return nullptr;
  4112. }
  4113. inline void* MaybeArenaPtr() const {
  4114. return nullptr;
  4115. }
  4116. public:
  4117. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4118. private:
  4119. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4120. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4121. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4122. }
  4123. public:
  4124. // nested types ----------------------------------------------------
  4125. typedef TargetChange_TargetChangeType TargetChangeType;
  4126. static constexpr TargetChangeType NO_CHANGE =
  4127. TargetChange_TargetChangeType_NO_CHANGE;
  4128. static constexpr TargetChangeType ADD =
  4129. TargetChange_TargetChangeType_ADD;
  4130. static constexpr TargetChangeType REMOVE =
  4131. TargetChange_TargetChangeType_REMOVE;
  4132. static constexpr TargetChangeType CURRENT =
  4133. TargetChange_TargetChangeType_CURRENT;
  4134. static constexpr TargetChangeType RESET =
  4135. TargetChange_TargetChangeType_RESET;
  4136. static inline bool TargetChangeType_IsValid(int value) {
  4137. return TargetChange_TargetChangeType_IsValid(value);
  4138. }
  4139. static constexpr TargetChangeType TargetChangeType_MIN =
  4140. TargetChange_TargetChangeType_TargetChangeType_MIN;
  4141. static constexpr TargetChangeType TargetChangeType_MAX =
  4142. TargetChange_TargetChangeType_TargetChangeType_MAX;
  4143. static constexpr int TargetChangeType_ARRAYSIZE =
  4144. TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE;
  4145. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4146. TargetChangeType_descriptor() {
  4147. return TargetChange_TargetChangeType_descriptor();
  4148. }
  4149. template<typename T>
  4150. static inline const std::string& TargetChangeType_Name(T enum_t_value) {
  4151. static_assert(::std::is_same<T, TargetChangeType>::value ||
  4152. ::std::is_integral<T>::value,
  4153. "Incorrect type passed to function TargetChangeType_Name.");
  4154. return TargetChange_TargetChangeType_Name(enum_t_value);
  4155. }
  4156. static inline bool TargetChangeType_Parse(const std::string& name,
  4157. TargetChangeType* value) {
  4158. return TargetChange_TargetChangeType_Parse(name, value);
  4159. }
  4160. // accessors -------------------------------------------------------
  4161. enum : int {
  4162. kTargetIdsFieldNumber = 2,
  4163. kResumeTokenFieldNumber = 4,
  4164. kCauseFieldNumber = 3,
  4165. kReadTimeFieldNumber = 6,
  4166. kTargetChangeTypeFieldNumber = 1,
  4167. };
  4168. // repeated int32 target_ids = 2;
  4169. int target_ids_size() const;
  4170. private:
  4171. int _internal_target_ids_size() const;
  4172. public:
  4173. void clear_target_ids();
  4174. private:
  4175. ::PROTOBUF_NAMESPACE_ID::int32 _internal_target_ids(int index) const;
  4176. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  4177. _internal_target_ids() const;
  4178. void _internal_add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  4179. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  4180. _internal_mutable_target_ids();
  4181. public:
  4182. ::PROTOBUF_NAMESPACE_ID::int32 target_ids(int index) const;
  4183. void set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  4184. void add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  4185. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  4186. target_ids() const;
  4187. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  4188. mutable_target_ids();
  4189. // bytes resume_token = 4;
  4190. void clear_resume_token();
  4191. const std::string& resume_token() const;
  4192. void set_resume_token(const std::string& value);
  4193. void set_resume_token(std::string&& value);
  4194. void set_resume_token(const char* value);
  4195. void set_resume_token(const void* value, size_t size);
  4196. std::string* mutable_resume_token();
  4197. std::string* release_resume_token();
  4198. void set_allocated_resume_token(std::string* resume_token);
  4199. private:
  4200. const std::string& _internal_resume_token() const;
  4201. void _internal_set_resume_token(const std::string& value);
  4202. std::string* _internal_mutable_resume_token();
  4203. public:
  4204. // .google.rpc.Status cause = 3;
  4205. bool has_cause() const;
  4206. private:
  4207. bool _internal_has_cause() const;
  4208. public:
  4209. void clear_cause();
  4210. const ::google::rpc::Status& cause() const;
  4211. ::google::rpc::Status* release_cause();
  4212. ::google::rpc::Status* mutable_cause();
  4213. void set_allocated_cause(::google::rpc::Status* cause);
  4214. private:
  4215. const ::google::rpc::Status& _internal_cause() const;
  4216. ::google::rpc::Status* _internal_mutable_cause();
  4217. public:
  4218. // .google.protobuf.Timestamp read_time = 6;
  4219. bool has_read_time() const;
  4220. private:
  4221. bool _internal_has_read_time() const;
  4222. public:
  4223. void clear_read_time();
  4224. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  4225. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  4226. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  4227. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  4228. private:
  4229. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  4230. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  4231. public:
  4232. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  4233. void clear_target_change_type();
  4234. ::google::firestore::v1::TargetChange_TargetChangeType target_change_type() const;
  4235. void set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  4236. private:
  4237. ::google::firestore::v1::TargetChange_TargetChangeType _internal_target_change_type() const;
  4238. void _internal_set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  4239. public:
  4240. // @@protoc_insertion_point(class_scope:google.firestore.v1.TargetChange)
  4241. private:
  4242. class _Internal;
  4243. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4244. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > target_ids_;
  4245. mutable std::atomic<int> _target_ids_cached_byte_size_;
  4246. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  4247. ::google::rpc::Status* cause_;
  4248. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  4249. int target_change_type_;
  4250. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4251. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4252. };
  4253. // -------------------------------------------------------------------
  4254. class ListCollectionIdsRequest :
  4255. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsRequest) */ {
  4256. public:
  4257. ListCollectionIdsRequest();
  4258. virtual ~ListCollectionIdsRequest();
  4259. ListCollectionIdsRequest(const ListCollectionIdsRequest& from);
  4260. ListCollectionIdsRequest(ListCollectionIdsRequest&& from) noexcept
  4261. : ListCollectionIdsRequest() {
  4262. *this = ::std::move(from);
  4263. }
  4264. inline ListCollectionIdsRequest& operator=(const ListCollectionIdsRequest& from) {
  4265. CopyFrom(from);
  4266. return *this;
  4267. }
  4268. inline ListCollectionIdsRequest& operator=(ListCollectionIdsRequest&& from) noexcept {
  4269. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4270. if (this != &from) InternalSwap(&from);
  4271. } else {
  4272. CopyFrom(from);
  4273. }
  4274. return *this;
  4275. }
  4276. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4277. return GetDescriptor();
  4278. }
  4279. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4280. return GetMetadataStatic().descriptor;
  4281. }
  4282. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4283. return GetMetadataStatic().reflection;
  4284. }
  4285. static const ListCollectionIdsRequest& default_instance();
  4286. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4287. static inline const ListCollectionIdsRequest* internal_default_instance() {
  4288. return reinterpret_cast<const ListCollectionIdsRequest*>(
  4289. &_ListCollectionIdsRequest_default_instance_);
  4290. }
  4291. static constexpr int kIndexInFileMessages =
  4292. 25;
  4293. friend void swap(ListCollectionIdsRequest& a, ListCollectionIdsRequest& b) {
  4294. a.Swap(&b);
  4295. }
  4296. inline void Swap(ListCollectionIdsRequest* other) {
  4297. if (other == this) return;
  4298. InternalSwap(other);
  4299. }
  4300. // implements Message ----------------------------------------------
  4301. inline ListCollectionIdsRequest* New() const final {
  4302. return CreateMaybeMessage<ListCollectionIdsRequest>(nullptr);
  4303. }
  4304. ListCollectionIdsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4305. return CreateMaybeMessage<ListCollectionIdsRequest>(arena);
  4306. }
  4307. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4308. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4309. void CopyFrom(const ListCollectionIdsRequest& from);
  4310. void MergeFrom(const ListCollectionIdsRequest& from);
  4311. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4312. bool IsInitialized() const final;
  4313. size_t ByteSizeLong() const final;
  4314. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4315. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4316. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4317. int GetCachedSize() const final { return _cached_size_.Get(); }
  4318. private:
  4319. inline void SharedCtor();
  4320. inline void SharedDtor();
  4321. void SetCachedSize(int size) const final;
  4322. void InternalSwap(ListCollectionIdsRequest* other);
  4323. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4324. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4325. return "google.firestore.v1.ListCollectionIdsRequest";
  4326. }
  4327. private:
  4328. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4329. return nullptr;
  4330. }
  4331. inline void* MaybeArenaPtr() const {
  4332. return nullptr;
  4333. }
  4334. public:
  4335. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4336. private:
  4337. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4338. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4339. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4340. }
  4341. public:
  4342. // nested types ----------------------------------------------------
  4343. // accessors -------------------------------------------------------
  4344. enum : int {
  4345. kParentFieldNumber = 1,
  4346. kPageTokenFieldNumber = 3,
  4347. kPageSizeFieldNumber = 2,
  4348. };
  4349. // string parent = 1;
  4350. void clear_parent();
  4351. const std::string& parent() const;
  4352. void set_parent(const std::string& value);
  4353. void set_parent(std::string&& value);
  4354. void set_parent(const char* value);
  4355. void set_parent(const char* value, size_t size);
  4356. std::string* mutable_parent();
  4357. std::string* release_parent();
  4358. void set_allocated_parent(std::string* parent);
  4359. private:
  4360. const std::string& _internal_parent() const;
  4361. void _internal_set_parent(const std::string& value);
  4362. std::string* _internal_mutable_parent();
  4363. public:
  4364. // string page_token = 3;
  4365. void clear_page_token();
  4366. const std::string& page_token() const;
  4367. void set_page_token(const std::string& value);
  4368. void set_page_token(std::string&& value);
  4369. void set_page_token(const char* value);
  4370. void set_page_token(const char* value, size_t size);
  4371. std::string* mutable_page_token();
  4372. std::string* release_page_token();
  4373. void set_allocated_page_token(std::string* page_token);
  4374. private:
  4375. const std::string& _internal_page_token() const;
  4376. void _internal_set_page_token(const std::string& value);
  4377. std::string* _internal_mutable_page_token();
  4378. public:
  4379. // int32 page_size = 2;
  4380. void clear_page_size();
  4381. ::PROTOBUF_NAMESPACE_ID::int32 page_size() const;
  4382. void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  4383. private:
  4384. ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const;
  4385. void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  4386. public:
  4387. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsRequest)
  4388. private:
  4389. class _Internal;
  4390. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4391. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  4392. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_;
  4393. ::PROTOBUF_NAMESPACE_ID::int32 page_size_;
  4394. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4395. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4396. };
  4397. // -------------------------------------------------------------------
  4398. class ListCollectionIdsResponse :
  4399. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsResponse) */ {
  4400. public:
  4401. ListCollectionIdsResponse();
  4402. virtual ~ListCollectionIdsResponse();
  4403. ListCollectionIdsResponse(const ListCollectionIdsResponse& from);
  4404. ListCollectionIdsResponse(ListCollectionIdsResponse&& from) noexcept
  4405. : ListCollectionIdsResponse() {
  4406. *this = ::std::move(from);
  4407. }
  4408. inline ListCollectionIdsResponse& operator=(const ListCollectionIdsResponse& from) {
  4409. CopyFrom(from);
  4410. return *this;
  4411. }
  4412. inline ListCollectionIdsResponse& operator=(ListCollectionIdsResponse&& from) noexcept {
  4413. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4414. if (this != &from) InternalSwap(&from);
  4415. } else {
  4416. CopyFrom(from);
  4417. }
  4418. return *this;
  4419. }
  4420. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4421. return GetDescriptor();
  4422. }
  4423. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4424. return GetMetadataStatic().descriptor;
  4425. }
  4426. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4427. return GetMetadataStatic().reflection;
  4428. }
  4429. static const ListCollectionIdsResponse& default_instance();
  4430. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4431. static inline const ListCollectionIdsResponse* internal_default_instance() {
  4432. return reinterpret_cast<const ListCollectionIdsResponse*>(
  4433. &_ListCollectionIdsResponse_default_instance_);
  4434. }
  4435. static constexpr int kIndexInFileMessages =
  4436. 26;
  4437. friend void swap(ListCollectionIdsResponse& a, ListCollectionIdsResponse& b) {
  4438. a.Swap(&b);
  4439. }
  4440. inline void Swap(ListCollectionIdsResponse* other) {
  4441. if (other == this) return;
  4442. InternalSwap(other);
  4443. }
  4444. // implements Message ----------------------------------------------
  4445. inline ListCollectionIdsResponse* New() const final {
  4446. return CreateMaybeMessage<ListCollectionIdsResponse>(nullptr);
  4447. }
  4448. ListCollectionIdsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4449. return CreateMaybeMessage<ListCollectionIdsResponse>(arena);
  4450. }
  4451. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4452. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4453. void CopyFrom(const ListCollectionIdsResponse& from);
  4454. void MergeFrom(const ListCollectionIdsResponse& from);
  4455. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4456. bool IsInitialized() const final;
  4457. size_t ByteSizeLong() const final;
  4458. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4459. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4460. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4461. int GetCachedSize() const final { return _cached_size_.Get(); }
  4462. private:
  4463. inline void SharedCtor();
  4464. inline void SharedDtor();
  4465. void SetCachedSize(int size) const final;
  4466. void InternalSwap(ListCollectionIdsResponse* other);
  4467. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4468. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4469. return "google.firestore.v1.ListCollectionIdsResponse";
  4470. }
  4471. private:
  4472. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4473. return nullptr;
  4474. }
  4475. inline void* MaybeArenaPtr() const {
  4476. return nullptr;
  4477. }
  4478. public:
  4479. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4480. private:
  4481. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4482. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4483. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4484. }
  4485. public:
  4486. // nested types ----------------------------------------------------
  4487. // accessors -------------------------------------------------------
  4488. enum : int {
  4489. kCollectionIdsFieldNumber = 1,
  4490. kNextPageTokenFieldNumber = 2,
  4491. };
  4492. // repeated string collection_ids = 1;
  4493. int collection_ids_size() const;
  4494. private:
  4495. int _internal_collection_ids_size() const;
  4496. public:
  4497. void clear_collection_ids();
  4498. const std::string& collection_ids(int index) const;
  4499. std::string* mutable_collection_ids(int index);
  4500. void set_collection_ids(int index, const std::string& value);
  4501. void set_collection_ids(int index, std::string&& value);
  4502. void set_collection_ids(int index, const char* value);
  4503. void set_collection_ids(int index, const char* value, size_t size);
  4504. std::string* add_collection_ids();
  4505. void add_collection_ids(const std::string& value);
  4506. void add_collection_ids(std::string&& value);
  4507. void add_collection_ids(const char* value);
  4508. void add_collection_ids(const char* value, size_t size);
  4509. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& collection_ids() const;
  4510. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_collection_ids();
  4511. private:
  4512. const std::string& _internal_collection_ids(int index) const;
  4513. std::string* _internal_add_collection_ids();
  4514. public:
  4515. // string next_page_token = 2;
  4516. void clear_next_page_token();
  4517. const std::string& next_page_token() const;
  4518. void set_next_page_token(const std::string& value);
  4519. void set_next_page_token(std::string&& value);
  4520. void set_next_page_token(const char* value);
  4521. void set_next_page_token(const char* value, size_t size);
  4522. std::string* mutable_next_page_token();
  4523. std::string* release_next_page_token();
  4524. void set_allocated_next_page_token(std::string* next_page_token);
  4525. private:
  4526. const std::string& _internal_next_page_token() const;
  4527. void _internal_set_next_page_token(const std::string& value);
  4528. std::string* _internal_mutable_next_page_token();
  4529. public:
  4530. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsResponse)
  4531. private:
  4532. class _Internal;
  4533. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4534. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> collection_ids_;
  4535. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_;
  4536. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4537. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4538. };
  4539. // ===================================================================
  4540. // ===================================================================
  4541. #ifdef __GNUC__
  4542. #pragma GCC diagnostic push
  4543. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  4544. #endif // __GNUC__
  4545. // GetDocumentRequest
  4546. // string name = 1;
  4547. inline void GetDocumentRequest::clear_name() {
  4548. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4549. }
  4550. inline const std::string& GetDocumentRequest::name() const {
  4551. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.name)
  4552. return _internal_name();
  4553. }
  4554. inline void GetDocumentRequest::set_name(const std::string& value) {
  4555. _internal_set_name(value);
  4556. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.name)
  4557. }
  4558. inline std::string* GetDocumentRequest::mutable_name() {
  4559. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.name)
  4560. return _internal_mutable_name();
  4561. }
  4562. inline const std::string& GetDocumentRequest::_internal_name() const {
  4563. return name_.GetNoArena();
  4564. }
  4565. inline void GetDocumentRequest::_internal_set_name(const std::string& value) {
  4566. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4567. }
  4568. inline void GetDocumentRequest::set_name(std::string&& value) {
  4569. name_.SetNoArena(
  4570. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4571. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.GetDocumentRequest.name)
  4572. }
  4573. inline void GetDocumentRequest::set_name(const char* value) {
  4574. GOOGLE_DCHECK(value != nullptr);
  4575. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4576. // @@protoc_insertion_point(field_set_char:google.firestore.v1.GetDocumentRequest.name)
  4577. }
  4578. inline void GetDocumentRequest::set_name(const char* value, size_t size) {
  4579. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4580. ::std::string(reinterpret_cast<const char*>(value), size));
  4581. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.GetDocumentRequest.name)
  4582. }
  4583. inline std::string* GetDocumentRequest::_internal_mutable_name() {
  4584. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4585. }
  4586. inline std::string* GetDocumentRequest::release_name() {
  4587. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.name)
  4588. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4589. }
  4590. inline void GetDocumentRequest::set_allocated_name(std::string* name) {
  4591. if (name != nullptr) {
  4592. } else {
  4593. }
  4594. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  4595. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.name)
  4596. }
  4597. // .google.firestore.v1.DocumentMask mask = 2;
  4598. inline bool GetDocumentRequest::_internal_has_mask() const {
  4599. return this != internal_default_instance() && mask_ != nullptr;
  4600. }
  4601. inline bool GetDocumentRequest::has_mask() const {
  4602. return _internal_has_mask();
  4603. }
  4604. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::_internal_mask() const {
  4605. const ::google::firestore::v1::DocumentMask* p = mask_;
  4606. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  4607. &::google::firestore::v1::_DocumentMask_default_instance_);
  4608. }
  4609. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::mask() const {
  4610. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.mask)
  4611. return _internal_mask();
  4612. }
  4613. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::release_mask() {
  4614. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.mask)
  4615. ::google::firestore::v1::DocumentMask* temp = mask_;
  4616. mask_ = nullptr;
  4617. return temp;
  4618. }
  4619. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::_internal_mutable_mask() {
  4620. if (mask_ == nullptr) {
  4621. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  4622. mask_ = p;
  4623. }
  4624. return mask_;
  4625. }
  4626. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::mutable_mask() {
  4627. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.mask)
  4628. return _internal_mutable_mask();
  4629. }
  4630. inline void GetDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  4631. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  4632. if (message_arena == nullptr) {
  4633. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  4634. }
  4635. if (mask) {
  4636. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  4637. if (message_arena != submessage_arena) {
  4638. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4639. message_arena, mask, submessage_arena);
  4640. }
  4641. } else {
  4642. }
  4643. mask_ = mask;
  4644. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.mask)
  4645. }
  4646. // bytes transaction = 3;
  4647. inline bool GetDocumentRequest::_internal_has_transaction() const {
  4648. return consistency_selector_case() == kTransaction;
  4649. }
  4650. inline void GetDocumentRequest::set_has_transaction() {
  4651. _oneof_case_[0] = kTransaction;
  4652. }
  4653. inline void GetDocumentRequest::clear_transaction() {
  4654. if (_internal_has_transaction()) {
  4655. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4656. clear_has_consistency_selector();
  4657. }
  4658. }
  4659. inline const std::string& GetDocumentRequest::transaction() const {
  4660. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.transaction)
  4661. return _internal_transaction();
  4662. }
  4663. inline void GetDocumentRequest::set_transaction(const std::string& value) {
  4664. _internal_set_transaction(value);
  4665. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  4666. }
  4667. inline std::string* GetDocumentRequest::mutable_transaction() {
  4668. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.transaction)
  4669. return _internal_mutable_transaction();
  4670. }
  4671. inline const std::string& GetDocumentRequest::_internal_transaction() const {
  4672. if (_internal_has_transaction()) {
  4673. return consistency_selector_.transaction_.GetNoArena();
  4674. }
  4675. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  4676. }
  4677. inline void GetDocumentRequest::_internal_set_transaction(const std::string& value) {
  4678. if (!_internal_has_transaction()) {
  4679. clear_consistency_selector();
  4680. set_has_transaction();
  4681. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4682. }
  4683. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4684. }
  4685. inline void GetDocumentRequest::set_transaction(std::string&& value) {
  4686. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  4687. if (!_internal_has_transaction()) {
  4688. clear_consistency_selector();
  4689. set_has_transaction();
  4690. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4691. }
  4692. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4693. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.GetDocumentRequest.transaction)
  4694. }
  4695. inline void GetDocumentRequest::set_transaction(const char* value) {
  4696. GOOGLE_DCHECK(value != nullptr);
  4697. if (!_internal_has_transaction()) {
  4698. clear_consistency_selector();
  4699. set_has_transaction();
  4700. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4701. }
  4702. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4703. ::std::string(value));
  4704. // @@protoc_insertion_point(field_set_char:google.firestore.v1.GetDocumentRequest.transaction)
  4705. }
  4706. inline void GetDocumentRequest::set_transaction(const void* value, size_t size) {
  4707. if (!_internal_has_transaction()) {
  4708. clear_consistency_selector();
  4709. set_has_transaction();
  4710. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4711. }
  4712. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  4713. reinterpret_cast<const char*>(value), size));
  4714. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.GetDocumentRequest.transaction)
  4715. }
  4716. inline std::string* GetDocumentRequest::_internal_mutable_transaction() {
  4717. if (!_internal_has_transaction()) {
  4718. clear_consistency_selector();
  4719. set_has_transaction();
  4720. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4721. }
  4722. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4723. }
  4724. inline std::string* GetDocumentRequest::release_transaction() {
  4725. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.transaction)
  4726. if (_internal_has_transaction()) {
  4727. clear_has_consistency_selector();
  4728. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4729. } else {
  4730. return nullptr;
  4731. }
  4732. }
  4733. inline void GetDocumentRequest::set_allocated_transaction(std::string* transaction) {
  4734. if (has_consistency_selector()) {
  4735. clear_consistency_selector();
  4736. }
  4737. if (transaction != nullptr) {
  4738. set_has_transaction();
  4739. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  4740. }
  4741. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.transaction)
  4742. }
  4743. // .google.protobuf.Timestamp read_time = 5;
  4744. inline bool GetDocumentRequest::_internal_has_read_time() const {
  4745. return consistency_selector_case() == kReadTime;
  4746. }
  4747. inline bool GetDocumentRequest::has_read_time() const {
  4748. return _internal_has_read_time();
  4749. }
  4750. inline void GetDocumentRequest::set_has_read_time() {
  4751. _oneof_case_[0] = kReadTime;
  4752. }
  4753. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::release_read_time() {
  4754. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.read_time)
  4755. if (_internal_has_read_time()) {
  4756. clear_has_consistency_selector();
  4757. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  4758. consistency_selector_.read_time_ = nullptr;
  4759. return temp;
  4760. } else {
  4761. return nullptr;
  4762. }
  4763. }
  4764. inline const PROTOBUF_NAMESPACE_ID::Timestamp& GetDocumentRequest::_internal_read_time() const {
  4765. return _internal_has_read_time()
  4766. ? *consistency_selector_.read_time_
  4767. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  4768. }
  4769. inline const PROTOBUF_NAMESPACE_ID::Timestamp& GetDocumentRequest::read_time() const {
  4770. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.read_time)
  4771. return _internal_read_time();
  4772. }
  4773. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::_internal_mutable_read_time() {
  4774. if (!_internal_has_read_time()) {
  4775. clear_consistency_selector();
  4776. set_has_read_time();
  4777. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  4778. GetArenaNoVirtual());
  4779. }
  4780. return consistency_selector_.read_time_;
  4781. }
  4782. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::mutable_read_time() {
  4783. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.read_time)
  4784. return _internal_mutable_read_time();
  4785. }
  4786. inline bool GetDocumentRequest::has_consistency_selector() const {
  4787. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  4788. }
  4789. inline void GetDocumentRequest::clear_has_consistency_selector() {
  4790. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  4791. }
  4792. inline GetDocumentRequest::ConsistencySelectorCase GetDocumentRequest::consistency_selector_case() const {
  4793. return GetDocumentRequest::ConsistencySelectorCase(_oneof_case_[0]);
  4794. }
  4795. // -------------------------------------------------------------------
  4796. // ListDocumentsRequest
  4797. // string parent = 1;
  4798. inline void ListDocumentsRequest::clear_parent() {
  4799. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4800. }
  4801. inline const std::string& ListDocumentsRequest::parent() const {
  4802. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.parent)
  4803. return _internal_parent();
  4804. }
  4805. inline void ListDocumentsRequest::set_parent(const std::string& value) {
  4806. _internal_set_parent(value);
  4807. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.parent)
  4808. }
  4809. inline std::string* ListDocumentsRequest::mutable_parent() {
  4810. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.parent)
  4811. return _internal_mutable_parent();
  4812. }
  4813. inline const std::string& ListDocumentsRequest::_internal_parent() const {
  4814. return parent_.GetNoArena();
  4815. }
  4816. inline void ListDocumentsRequest::_internal_set_parent(const std::string& value) {
  4817. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4818. }
  4819. inline void ListDocumentsRequest::set_parent(std::string&& value) {
  4820. parent_.SetNoArena(
  4821. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4822. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.parent)
  4823. }
  4824. inline void ListDocumentsRequest::set_parent(const char* value) {
  4825. GOOGLE_DCHECK(value != nullptr);
  4826. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4827. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.parent)
  4828. }
  4829. inline void ListDocumentsRequest::set_parent(const char* value, size_t size) {
  4830. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4831. ::std::string(reinterpret_cast<const char*>(value), size));
  4832. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.parent)
  4833. }
  4834. inline std::string* ListDocumentsRequest::_internal_mutable_parent() {
  4835. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4836. }
  4837. inline std::string* ListDocumentsRequest::release_parent() {
  4838. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.parent)
  4839. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4840. }
  4841. inline void ListDocumentsRequest::set_allocated_parent(std::string* parent) {
  4842. if (parent != nullptr) {
  4843. } else {
  4844. }
  4845. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  4846. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.parent)
  4847. }
  4848. // string collection_id = 2;
  4849. inline void ListDocumentsRequest::clear_collection_id() {
  4850. collection_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4851. }
  4852. inline const std::string& ListDocumentsRequest::collection_id() const {
  4853. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.collection_id)
  4854. return _internal_collection_id();
  4855. }
  4856. inline void ListDocumentsRequest::set_collection_id(const std::string& value) {
  4857. _internal_set_collection_id(value);
  4858. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.collection_id)
  4859. }
  4860. inline std::string* ListDocumentsRequest::mutable_collection_id() {
  4861. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.collection_id)
  4862. return _internal_mutable_collection_id();
  4863. }
  4864. inline const std::string& ListDocumentsRequest::_internal_collection_id() const {
  4865. return collection_id_.GetNoArena();
  4866. }
  4867. inline void ListDocumentsRequest::_internal_set_collection_id(const std::string& value) {
  4868. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4869. }
  4870. inline void ListDocumentsRequest::set_collection_id(std::string&& value) {
  4871. collection_id_.SetNoArena(
  4872. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4873. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.collection_id)
  4874. }
  4875. inline void ListDocumentsRequest::set_collection_id(const char* value) {
  4876. GOOGLE_DCHECK(value != nullptr);
  4877. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4878. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.collection_id)
  4879. }
  4880. inline void ListDocumentsRequest::set_collection_id(const char* value, size_t size) {
  4881. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4882. ::std::string(reinterpret_cast<const char*>(value), size));
  4883. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.collection_id)
  4884. }
  4885. inline std::string* ListDocumentsRequest::_internal_mutable_collection_id() {
  4886. return collection_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4887. }
  4888. inline std::string* ListDocumentsRequest::release_collection_id() {
  4889. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.collection_id)
  4890. return collection_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4891. }
  4892. inline void ListDocumentsRequest::set_allocated_collection_id(std::string* collection_id) {
  4893. if (collection_id != nullptr) {
  4894. } else {
  4895. }
  4896. collection_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_id);
  4897. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.collection_id)
  4898. }
  4899. // int32 page_size = 3;
  4900. inline void ListDocumentsRequest::clear_page_size() {
  4901. page_size_ = 0;
  4902. }
  4903. inline ::PROTOBUF_NAMESPACE_ID::int32 ListDocumentsRequest::_internal_page_size() const {
  4904. return page_size_;
  4905. }
  4906. inline ::PROTOBUF_NAMESPACE_ID::int32 ListDocumentsRequest::page_size() const {
  4907. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_size)
  4908. return _internal_page_size();
  4909. }
  4910. inline void ListDocumentsRequest::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  4911. page_size_ = value;
  4912. }
  4913. inline void ListDocumentsRequest::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  4914. _internal_set_page_size(value);
  4915. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_size)
  4916. }
  4917. // string page_token = 4;
  4918. inline void ListDocumentsRequest::clear_page_token() {
  4919. page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4920. }
  4921. inline const std::string& ListDocumentsRequest::page_token() const {
  4922. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_token)
  4923. return _internal_page_token();
  4924. }
  4925. inline void ListDocumentsRequest::set_page_token(const std::string& value) {
  4926. _internal_set_page_token(value);
  4927. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_token)
  4928. }
  4929. inline std::string* ListDocumentsRequest::mutable_page_token() {
  4930. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.page_token)
  4931. return _internal_mutable_page_token();
  4932. }
  4933. inline const std::string& ListDocumentsRequest::_internal_page_token() const {
  4934. return page_token_.GetNoArena();
  4935. }
  4936. inline void ListDocumentsRequest::_internal_set_page_token(const std::string& value) {
  4937. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4938. }
  4939. inline void ListDocumentsRequest::set_page_token(std::string&& value) {
  4940. page_token_.SetNoArena(
  4941. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4942. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.page_token)
  4943. }
  4944. inline void ListDocumentsRequest::set_page_token(const char* value) {
  4945. GOOGLE_DCHECK(value != nullptr);
  4946. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4947. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.page_token)
  4948. }
  4949. inline void ListDocumentsRequest::set_page_token(const char* value, size_t size) {
  4950. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4951. ::std::string(reinterpret_cast<const char*>(value), size));
  4952. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.page_token)
  4953. }
  4954. inline std::string* ListDocumentsRequest::_internal_mutable_page_token() {
  4955. return page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4956. }
  4957. inline std::string* ListDocumentsRequest::release_page_token() {
  4958. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.page_token)
  4959. return page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4960. }
  4961. inline void ListDocumentsRequest::set_allocated_page_token(std::string* page_token) {
  4962. if (page_token != nullptr) {
  4963. } else {
  4964. }
  4965. page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token);
  4966. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.page_token)
  4967. }
  4968. // string order_by = 6;
  4969. inline void ListDocumentsRequest::clear_order_by() {
  4970. order_by_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4971. }
  4972. inline const std::string& ListDocumentsRequest::order_by() const {
  4973. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.order_by)
  4974. return _internal_order_by();
  4975. }
  4976. inline void ListDocumentsRequest::set_order_by(const std::string& value) {
  4977. _internal_set_order_by(value);
  4978. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.order_by)
  4979. }
  4980. inline std::string* ListDocumentsRequest::mutable_order_by() {
  4981. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.order_by)
  4982. return _internal_mutable_order_by();
  4983. }
  4984. inline const std::string& ListDocumentsRequest::_internal_order_by() const {
  4985. return order_by_.GetNoArena();
  4986. }
  4987. inline void ListDocumentsRequest::_internal_set_order_by(const std::string& value) {
  4988. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4989. }
  4990. inline void ListDocumentsRequest::set_order_by(std::string&& value) {
  4991. order_by_.SetNoArena(
  4992. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4993. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.order_by)
  4994. }
  4995. inline void ListDocumentsRequest::set_order_by(const char* value) {
  4996. GOOGLE_DCHECK(value != nullptr);
  4997. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4998. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.order_by)
  4999. }
  5000. inline void ListDocumentsRequest::set_order_by(const char* value, size_t size) {
  5001. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5002. ::std::string(reinterpret_cast<const char*>(value), size));
  5003. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.order_by)
  5004. }
  5005. inline std::string* ListDocumentsRequest::_internal_mutable_order_by() {
  5006. return order_by_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5007. }
  5008. inline std::string* ListDocumentsRequest::release_order_by() {
  5009. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.order_by)
  5010. return order_by_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5011. }
  5012. inline void ListDocumentsRequest::set_allocated_order_by(std::string* order_by) {
  5013. if (order_by != nullptr) {
  5014. } else {
  5015. }
  5016. order_by_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_by);
  5017. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.order_by)
  5018. }
  5019. // .google.firestore.v1.DocumentMask mask = 7;
  5020. inline bool ListDocumentsRequest::_internal_has_mask() const {
  5021. return this != internal_default_instance() && mask_ != nullptr;
  5022. }
  5023. inline bool ListDocumentsRequest::has_mask() const {
  5024. return _internal_has_mask();
  5025. }
  5026. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::_internal_mask() const {
  5027. const ::google::firestore::v1::DocumentMask* p = mask_;
  5028. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5029. &::google::firestore::v1::_DocumentMask_default_instance_);
  5030. }
  5031. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::mask() const {
  5032. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.mask)
  5033. return _internal_mask();
  5034. }
  5035. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::release_mask() {
  5036. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.mask)
  5037. ::google::firestore::v1::DocumentMask* temp = mask_;
  5038. mask_ = nullptr;
  5039. return temp;
  5040. }
  5041. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::_internal_mutable_mask() {
  5042. if (mask_ == nullptr) {
  5043. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5044. mask_ = p;
  5045. }
  5046. return mask_;
  5047. }
  5048. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::mutable_mask() {
  5049. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.mask)
  5050. return _internal_mutable_mask();
  5051. }
  5052. inline void ListDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5053. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5054. if (message_arena == nullptr) {
  5055. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5056. }
  5057. if (mask) {
  5058. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5059. if (message_arena != submessage_arena) {
  5060. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5061. message_arena, mask, submessage_arena);
  5062. }
  5063. } else {
  5064. }
  5065. mask_ = mask;
  5066. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.mask)
  5067. }
  5068. // bytes transaction = 8;
  5069. inline bool ListDocumentsRequest::_internal_has_transaction() const {
  5070. return consistency_selector_case() == kTransaction;
  5071. }
  5072. inline void ListDocumentsRequest::set_has_transaction() {
  5073. _oneof_case_[0] = kTransaction;
  5074. }
  5075. inline void ListDocumentsRequest::clear_transaction() {
  5076. if (_internal_has_transaction()) {
  5077. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5078. clear_has_consistency_selector();
  5079. }
  5080. }
  5081. inline const std::string& ListDocumentsRequest::transaction() const {
  5082. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.transaction)
  5083. return _internal_transaction();
  5084. }
  5085. inline void ListDocumentsRequest::set_transaction(const std::string& value) {
  5086. _internal_set_transaction(value);
  5087. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  5088. }
  5089. inline std::string* ListDocumentsRequest::mutable_transaction() {
  5090. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.transaction)
  5091. return _internal_mutable_transaction();
  5092. }
  5093. inline const std::string& ListDocumentsRequest::_internal_transaction() const {
  5094. if (_internal_has_transaction()) {
  5095. return consistency_selector_.transaction_.GetNoArena();
  5096. }
  5097. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  5098. }
  5099. inline void ListDocumentsRequest::_internal_set_transaction(const std::string& value) {
  5100. if (!_internal_has_transaction()) {
  5101. clear_consistency_selector();
  5102. set_has_transaction();
  5103. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5104. }
  5105. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5106. }
  5107. inline void ListDocumentsRequest::set_transaction(std::string&& value) {
  5108. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  5109. if (!_internal_has_transaction()) {
  5110. clear_consistency_selector();
  5111. set_has_transaction();
  5112. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5113. }
  5114. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5115. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.transaction)
  5116. }
  5117. inline void ListDocumentsRequest::set_transaction(const char* value) {
  5118. GOOGLE_DCHECK(value != nullptr);
  5119. if (!_internal_has_transaction()) {
  5120. clear_consistency_selector();
  5121. set_has_transaction();
  5122. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5123. }
  5124. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5125. ::std::string(value));
  5126. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.transaction)
  5127. }
  5128. inline void ListDocumentsRequest::set_transaction(const void* value, size_t size) {
  5129. if (!_internal_has_transaction()) {
  5130. clear_consistency_selector();
  5131. set_has_transaction();
  5132. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5133. }
  5134. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5135. reinterpret_cast<const char*>(value), size));
  5136. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.transaction)
  5137. }
  5138. inline std::string* ListDocumentsRequest::_internal_mutable_transaction() {
  5139. if (!_internal_has_transaction()) {
  5140. clear_consistency_selector();
  5141. set_has_transaction();
  5142. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5143. }
  5144. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5145. }
  5146. inline std::string* ListDocumentsRequest::release_transaction() {
  5147. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.transaction)
  5148. if (_internal_has_transaction()) {
  5149. clear_has_consistency_selector();
  5150. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5151. } else {
  5152. return nullptr;
  5153. }
  5154. }
  5155. inline void ListDocumentsRequest::set_allocated_transaction(std::string* transaction) {
  5156. if (has_consistency_selector()) {
  5157. clear_consistency_selector();
  5158. }
  5159. if (transaction != nullptr) {
  5160. set_has_transaction();
  5161. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  5162. }
  5163. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.transaction)
  5164. }
  5165. // .google.protobuf.Timestamp read_time = 10;
  5166. inline bool ListDocumentsRequest::_internal_has_read_time() const {
  5167. return consistency_selector_case() == kReadTime;
  5168. }
  5169. inline bool ListDocumentsRequest::has_read_time() const {
  5170. return _internal_has_read_time();
  5171. }
  5172. inline void ListDocumentsRequest::set_has_read_time() {
  5173. _oneof_case_[0] = kReadTime;
  5174. }
  5175. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::release_read_time() {
  5176. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.read_time)
  5177. if (_internal_has_read_time()) {
  5178. clear_has_consistency_selector();
  5179. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  5180. consistency_selector_.read_time_ = nullptr;
  5181. return temp;
  5182. } else {
  5183. return nullptr;
  5184. }
  5185. }
  5186. inline const PROTOBUF_NAMESPACE_ID::Timestamp& ListDocumentsRequest::_internal_read_time() const {
  5187. return _internal_has_read_time()
  5188. ? *consistency_selector_.read_time_
  5189. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  5190. }
  5191. inline const PROTOBUF_NAMESPACE_ID::Timestamp& ListDocumentsRequest::read_time() const {
  5192. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.read_time)
  5193. return _internal_read_time();
  5194. }
  5195. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::_internal_mutable_read_time() {
  5196. if (!_internal_has_read_time()) {
  5197. clear_consistency_selector();
  5198. set_has_read_time();
  5199. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  5200. GetArenaNoVirtual());
  5201. }
  5202. return consistency_selector_.read_time_;
  5203. }
  5204. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::mutable_read_time() {
  5205. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.read_time)
  5206. return _internal_mutable_read_time();
  5207. }
  5208. // bool show_missing = 12;
  5209. inline void ListDocumentsRequest::clear_show_missing() {
  5210. show_missing_ = false;
  5211. }
  5212. inline bool ListDocumentsRequest::_internal_show_missing() const {
  5213. return show_missing_;
  5214. }
  5215. inline bool ListDocumentsRequest::show_missing() const {
  5216. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.show_missing)
  5217. return _internal_show_missing();
  5218. }
  5219. inline void ListDocumentsRequest::_internal_set_show_missing(bool value) {
  5220. show_missing_ = value;
  5221. }
  5222. inline void ListDocumentsRequest::set_show_missing(bool value) {
  5223. _internal_set_show_missing(value);
  5224. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.show_missing)
  5225. }
  5226. inline bool ListDocumentsRequest::has_consistency_selector() const {
  5227. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  5228. }
  5229. inline void ListDocumentsRequest::clear_has_consistency_selector() {
  5230. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  5231. }
  5232. inline ListDocumentsRequest::ConsistencySelectorCase ListDocumentsRequest::consistency_selector_case() const {
  5233. return ListDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
  5234. }
  5235. // -------------------------------------------------------------------
  5236. // ListDocumentsResponse
  5237. // repeated .google.firestore.v1.Document documents = 1;
  5238. inline int ListDocumentsResponse::_internal_documents_size() const {
  5239. return documents_.size();
  5240. }
  5241. inline int ListDocumentsResponse::documents_size() const {
  5242. return _internal_documents_size();
  5243. }
  5244. inline ::google::firestore::v1::Document* ListDocumentsResponse::mutable_documents(int index) {
  5245. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.documents)
  5246. return documents_.Mutable(index);
  5247. }
  5248. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >*
  5249. ListDocumentsResponse::mutable_documents() {
  5250. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListDocumentsResponse.documents)
  5251. return &documents_;
  5252. }
  5253. inline const ::google::firestore::v1::Document& ListDocumentsResponse::_internal_documents(int index) const {
  5254. return documents_.Get(index);
  5255. }
  5256. inline const ::google::firestore::v1::Document& ListDocumentsResponse::documents(int index) const {
  5257. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.documents)
  5258. return _internal_documents(index);
  5259. }
  5260. inline ::google::firestore::v1::Document* ListDocumentsResponse::_internal_add_documents() {
  5261. return documents_.Add();
  5262. }
  5263. inline ::google::firestore::v1::Document* ListDocumentsResponse::add_documents() {
  5264. // @@protoc_insertion_point(field_add:google.firestore.v1.ListDocumentsResponse.documents)
  5265. return _internal_add_documents();
  5266. }
  5267. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >&
  5268. ListDocumentsResponse::documents() const {
  5269. // @@protoc_insertion_point(field_list:google.firestore.v1.ListDocumentsResponse.documents)
  5270. return documents_;
  5271. }
  5272. // string next_page_token = 2;
  5273. inline void ListDocumentsResponse::clear_next_page_token() {
  5274. next_page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5275. }
  5276. inline const std::string& ListDocumentsResponse::next_page_token() const {
  5277. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5278. return _internal_next_page_token();
  5279. }
  5280. inline void ListDocumentsResponse::set_next_page_token(const std::string& value) {
  5281. _internal_set_next_page_token(value);
  5282. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5283. }
  5284. inline std::string* ListDocumentsResponse::mutable_next_page_token() {
  5285. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5286. return _internal_mutable_next_page_token();
  5287. }
  5288. inline const std::string& ListDocumentsResponse::_internal_next_page_token() const {
  5289. return next_page_token_.GetNoArena();
  5290. }
  5291. inline void ListDocumentsResponse::_internal_set_next_page_token(const std::string& value) {
  5292. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5293. }
  5294. inline void ListDocumentsResponse::set_next_page_token(std::string&& value) {
  5295. next_page_token_.SetNoArena(
  5296. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5297. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5298. }
  5299. inline void ListDocumentsResponse::set_next_page_token(const char* value) {
  5300. GOOGLE_DCHECK(value != nullptr);
  5301. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5302. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5303. }
  5304. inline void ListDocumentsResponse::set_next_page_token(const char* value, size_t size) {
  5305. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5306. ::std::string(reinterpret_cast<const char*>(value), size));
  5307. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5308. }
  5309. inline std::string* ListDocumentsResponse::_internal_mutable_next_page_token() {
  5310. return next_page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5311. }
  5312. inline std::string* ListDocumentsResponse::release_next_page_token() {
  5313. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5314. return next_page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5315. }
  5316. inline void ListDocumentsResponse::set_allocated_next_page_token(std::string* next_page_token) {
  5317. if (next_page_token != nullptr) {
  5318. } else {
  5319. }
  5320. next_page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token);
  5321. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5322. }
  5323. // -------------------------------------------------------------------
  5324. // CreateDocumentRequest
  5325. // string parent = 1;
  5326. inline void CreateDocumentRequest::clear_parent() {
  5327. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5328. }
  5329. inline const std::string& CreateDocumentRequest::parent() const {
  5330. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.parent)
  5331. return _internal_parent();
  5332. }
  5333. inline void CreateDocumentRequest::set_parent(const std::string& value) {
  5334. _internal_set_parent(value);
  5335. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.parent)
  5336. }
  5337. inline std::string* CreateDocumentRequest::mutable_parent() {
  5338. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.parent)
  5339. return _internal_mutable_parent();
  5340. }
  5341. inline const std::string& CreateDocumentRequest::_internal_parent() const {
  5342. return parent_.GetNoArena();
  5343. }
  5344. inline void CreateDocumentRequest::_internal_set_parent(const std::string& value) {
  5345. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5346. }
  5347. inline void CreateDocumentRequest::set_parent(std::string&& value) {
  5348. parent_.SetNoArena(
  5349. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5350. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.parent)
  5351. }
  5352. inline void CreateDocumentRequest::set_parent(const char* value) {
  5353. GOOGLE_DCHECK(value != nullptr);
  5354. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5355. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.parent)
  5356. }
  5357. inline void CreateDocumentRequest::set_parent(const char* value, size_t size) {
  5358. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5359. ::std::string(reinterpret_cast<const char*>(value), size));
  5360. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.parent)
  5361. }
  5362. inline std::string* CreateDocumentRequest::_internal_mutable_parent() {
  5363. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5364. }
  5365. inline std::string* CreateDocumentRequest::release_parent() {
  5366. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.parent)
  5367. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5368. }
  5369. inline void CreateDocumentRequest::set_allocated_parent(std::string* parent) {
  5370. if (parent != nullptr) {
  5371. } else {
  5372. }
  5373. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  5374. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.parent)
  5375. }
  5376. // string collection_id = 2;
  5377. inline void CreateDocumentRequest::clear_collection_id() {
  5378. collection_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5379. }
  5380. inline const std::string& CreateDocumentRequest::collection_id() const {
  5381. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.collection_id)
  5382. return _internal_collection_id();
  5383. }
  5384. inline void CreateDocumentRequest::set_collection_id(const std::string& value) {
  5385. _internal_set_collection_id(value);
  5386. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.collection_id)
  5387. }
  5388. inline std::string* CreateDocumentRequest::mutable_collection_id() {
  5389. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.collection_id)
  5390. return _internal_mutable_collection_id();
  5391. }
  5392. inline const std::string& CreateDocumentRequest::_internal_collection_id() const {
  5393. return collection_id_.GetNoArena();
  5394. }
  5395. inline void CreateDocumentRequest::_internal_set_collection_id(const std::string& value) {
  5396. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5397. }
  5398. inline void CreateDocumentRequest::set_collection_id(std::string&& value) {
  5399. collection_id_.SetNoArena(
  5400. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5401. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.collection_id)
  5402. }
  5403. inline void CreateDocumentRequest::set_collection_id(const char* value) {
  5404. GOOGLE_DCHECK(value != nullptr);
  5405. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5406. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.collection_id)
  5407. }
  5408. inline void CreateDocumentRequest::set_collection_id(const char* value, size_t size) {
  5409. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5410. ::std::string(reinterpret_cast<const char*>(value), size));
  5411. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.collection_id)
  5412. }
  5413. inline std::string* CreateDocumentRequest::_internal_mutable_collection_id() {
  5414. return collection_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5415. }
  5416. inline std::string* CreateDocumentRequest::release_collection_id() {
  5417. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.collection_id)
  5418. return collection_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5419. }
  5420. inline void CreateDocumentRequest::set_allocated_collection_id(std::string* collection_id) {
  5421. if (collection_id != nullptr) {
  5422. } else {
  5423. }
  5424. collection_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_id);
  5425. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.collection_id)
  5426. }
  5427. // string document_id = 3;
  5428. inline void CreateDocumentRequest::clear_document_id() {
  5429. document_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5430. }
  5431. inline const std::string& CreateDocumentRequest::document_id() const {
  5432. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document_id)
  5433. return _internal_document_id();
  5434. }
  5435. inline void CreateDocumentRequest::set_document_id(const std::string& value) {
  5436. _internal_set_document_id(value);
  5437. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.document_id)
  5438. }
  5439. inline std::string* CreateDocumentRequest::mutable_document_id() {
  5440. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document_id)
  5441. return _internal_mutable_document_id();
  5442. }
  5443. inline const std::string& CreateDocumentRequest::_internal_document_id() const {
  5444. return document_id_.GetNoArena();
  5445. }
  5446. inline void CreateDocumentRequest::_internal_set_document_id(const std::string& value) {
  5447. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5448. }
  5449. inline void CreateDocumentRequest::set_document_id(std::string&& value) {
  5450. document_id_.SetNoArena(
  5451. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5452. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.document_id)
  5453. }
  5454. inline void CreateDocumentRequest::set_document_id(const char* value) {
  5455. GOOGLE_DCHECK(value != nullptr);
  5456. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5457. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.document_id)
  5458. }
  5459. inline void CreateDocumentRequest::set_document_id(const char* value, size_t size) {
  5460. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5461. ::std::string(reinterpret_cast<const char*>(value), size));
  5462. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.document_id)
  5463. }
  5464. inline std::string* CreateDocumentRequest::_internal_mutable_document_id() {
  5465. return document_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5466. }
  5467. inline std::string* CreateDocumentRequest::release_document_id() {
  5468. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document_id)
  5469. return document_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5470. }
  5471. inline void CreateDocumentRequest::set_allocated_document_id(std::string* document_id) {
  5472. if (document_id != nullptr) {
  5473. } else {
  5474. }
  5475. document_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document_id);
  5476. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document_id)
  5477. }
  5478. // .google.firestore.v1.Document document = 4;
  5479. inline bool CreateDocumentRequest::_internal_has_document() const {
  5480. return this != internal_default_instance() && document_ != nullptr;
  5481. }
  5482. inline bool CreateDocumentRequest::has_document() const {
  5483. return _internal_has_document();
  5484. }
  5485. inline const ::google::firestore::v1::Document& CreateDocumentRequest::_internal_document() const {
  5486. const ::google::firestore::v1::Document* p = document_;
  5487. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  5488. &::google::firestore::v1::_Document_default_instance_);
  5489. }
  5490. inline const ::google::firestore::v1::Document& CreateDocumentRequest::document() const {
  5491. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document)
  5492. return _internal_document();
  5493. }
  5494. inline ::google::firestore::v1::Document* CreateDocumentRequest::release_document() {
  5495. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document)
  5496. ::google::firestore::v1::Document* temp = document_;
  5497. document_ = nullptr;
  5498. return temp;
  5499. }
  5500. inline ::google::firestore::v1::Document* CreateDocumentRequest::_internal_mutable_document() {
  5501. if (document_ == nullptr) {
  5502. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  5503. document_ = p;
  5504. }
  5505. return document_;
  5506. }
  5507. inline ::google::firestore::v1::Document* CreateDocumentRequest::mutable_document() {
  5508. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document)
  5509. return _internal_mutable_document();
  5510. }
  5511. inline void CreateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* document) {
  5512. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5513. if (message_arena == nullptr) {
  5514. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  5515. }
  5516. if (document) {
  5517. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5518. if (message_arena != submessage_arena) {
  5519. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5520. message_arena, document, submessage_arena);
  5521. }
  5522. } else {
  5523. }
  5524. document_ = document;
  5525. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document)
  5526. }
  5527. // .google.firestore.v1.DocumentMask mask = 5;
  5528. inline bool CreateDocumentRequest::_internal_has_mask() const {
  5529. return this != internal_default_instance() && mask_ != nullptr;
  5530. }
  5531. inline bool CreateDocumentRequest::has_mask() const {
  5532. return _internal_has_mask();
  5533. }
  5534. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::_internal_mask() const {
  5535. const ::google::firestore::v1::DocumentMask* p = mask_;
  5536. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5537. &::google::firestore::v1::_DocumentMask_default_instance_);
  5538. }
  5539. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::mask() const {
  5540. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.mask)
  5541. return _internal_mask();
  5542. }
  5543. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::release_mask() {
  5544. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.mask)
  5545. ::google::firestore::v1::DocumentMask* temp = mask_;
  5546. mask_ = nullptr;
  5547. return temp;
  5548. }
  5549. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::_internal_mutable_mask() {
  5550. if (mask_ == nullptr) {
  5551. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5552. mask_ = p;
  5553. }
  5554. return mask_;
  5555. }
  5556. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::mutable_mask() {
  5557. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.mask)
  5558. return _internal_mutable_mask();
  5559. }
  5560. inline void CreateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5561. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5562. if (message_arena == nullptr) {
  5563. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5564. }
  5565. if (mask) {
  5566. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5567. if (message_arena != submessage_arena) {
  5568. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5569. message_arena, mask, submessage_arena);
  5570. }
  5571. } else {
  5572. }
  5573. mask_ = mask;
  5574. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.mask)
  5575. }
  5576. // -------------------------------------------------------------------
  5577. // UpdateDocumentRequest
  5578. // .google.firestore.v1.Document document = 1;
  5579. inline bool UpdateDocumentRequest::_internal_has_document() const {
  5580. return this != internal_default_instance() && document_ != nullptr;
  5581. }
  5582. inline bool UpdateDocumentRequest::has_document() const {
  5583. return _internal_has_document();
  5584. }
  5585. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::_internal_document() const {
  5586. const ::google::firestore::v1::Document* p = document_;
  5587. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  5588. &::google::firestore::v1::_Document_default_instance_);
  5589. }
  5590. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::document() const {
  5591. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.document)
  5592. return _internal_document();
  5593. }
  5594. inline ::google::firestore::v1::Document* UpdateDocumentRequest::release_document() {
  5595. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.document)
  5596. ::google::firestore::v1::Document* temp = document_;
  5597. document_ = nullptr;
  5598. return temp;
  5599. }
  5600. inline ::google::firestore::v1::Document* UpdateDocumentRequest::_internal_mutable_document() {
  5601. if (document_ == nullptr) {
  5602. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  5603. document_ = p;
  5604. }
  5605. return document_;
  5606. }
  5607. inline ::google::firestore::v1::Document* UpdateDocumentRequest::mutable_document() {
  5608. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.document)
  5609. return _internal_mutable_document();
  5610. }
  5611. inline void UpdateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* document) {
  5612. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5613. if (message_arena == nullptr) {
  5614. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  5615. }
  5616. if (document) {
  5617. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5618. if (message_arena != submessage_arena) {
  5619. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5620. message_arena, document, submessage_arena);
  5621. }
  5622. } else {
  5623. }
  5624. document_ = document;
  5625. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.document)
  5626. }
  5627. // .google.firestore.v1.DocumentMask update_mask = 2;
  5628. inline bool UpdateDocumentRequest::_internal_has_update_mask() const {
  5629. return this != internal_default_instance() && update_mask_ != nullptr;
  5630. }
  5631. inline bool UpdateDocumentRequest::has_update_mask() const {
  5632. return _internal_has_update_mask();
  5633. }
  5634. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_internal_update_mask() const {
  5635. const ::google::firestore::v1::DocumentMask* p = update_mask_;
  5636. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5637. &::google::firestore::v1::_DocumentMask_default_instance_);
  5638. }
  5639. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::update_mask() const {
  5640. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.update_mask)
  5641. return _internal_update_mask();
  5642. }
  5643. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_update_mask() {
  5644. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.update_mask)
  5645. ::google::firestore::v1::DocumentMask* temp = update_mask_;
  5646. update_mask_ = nullptr;
  5647. return temp;
  5648. }
  5649. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::_internal_mutable_update_mask() {
  5650. if (update_mask_ == nullptr) {
  5651. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5652. update_mask_ = p;
  5653. }
  5654. return update_mask_;
  5655. }
  5656. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_update_mask() {
  5657. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.update_mask)
  5658. return _internal_mutable_update_mask();
  5659. }
  5660. inline void UpdateDocumentRequest::set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask) {
  5661. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5662. if (message_arena == nullptr) {
  5663. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask_);
  5664. }
  5665. if (update_mask) {
  5666. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5667. if (message_arena != submessage_arena) {
  5668. update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5669. message_arena, update_mask, submessage_arena);
  5670. }
  5671. } else {
  5672. }
  5673. update_mask_ = update_mask;
  5674. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.update_mask)
  5675. }
  5676. // .google.firestore.v1.DocumentMask mask = 3;
  5677. inline bool UpdateDocumentRequest::_internal_has_mask() const {
  5678. return this != internal_default_instance() && mask_ != nullptr;
  5679. }
  5680. inline bool UpdateDocumentRequest::has_mask() const {
  5681. return _internal_has_mask();
  5682. }
  5683. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_internal_mask() const {
  5684. const ::google::firestore::v1::DocumentMask* p = mask_;
  5685. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5686. &::google::firestore::v1::_DocumentMask_default_instance_);
  5687. }
  5688. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::mask() const {
  5689. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.mask)
  5690. return _internal_mask();
  5691. }
  5692. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_mask() {
  5693. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.mask)
  5694. ::google::firestore::v1::DocumentMask* temp = mask_;
  5695. mask_ = nullptr;
  5696. return temp;
  5697. }
  5698. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::_internal_mutable_mask() {
  5699. if (mask_ == nullptr) {
  5700. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5701. mask_ = p;
  5702. }
  5703. return mask_;
  5704. }
  5705. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_mask() {
  5706. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.mask)
  5707. return _internal_mutable_mask();
  5708. }
  5709. inline void UpdateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5710. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5711. if (message_arena == nullptr) {
  5712. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5713. }
  5714. if (mask) {
  5715. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5716. if (message_arena != submessage_arena) {
  5717. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5718. message_arena, mask, submessage_arena);
  5719. }
  5720. } else {
  5721. }
  5722. mask_ = mask;
  5723. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.mask)
  5724. }
  5725. // .google.firestore.v1.Precondition current_document = 4;
  5726. inline bool UpdateDocumentRequest::_internal_has_current_document() const {
  5727. return this != internal_default_instance() && current_document_ != nullptr;
  5728. }
  5729. inline bool UpdateDocumentRequest::has_current_document() const {
  5730. return _internal_has_current_document();
  5731. }
  5732. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::_internal_current_document() const {
  5733. const ::google::firestore::v1::Precondition* p = current_document_;
  5734. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  5735. &::google::firestore::v1::_Precondition_default_instance_);
  5736. }
  5737. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::current_document() const {
  5738. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.current_document)
  5739. return _internal_current_document();
  5740. }
  5741. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::release_current_document() {
  5742. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.current_document)
  5743. ::google::firestore::v1::Precondition* temp = current_document_;
  5744. current_document_ = nullptr;
  5745. return temp;
  5746. }
  5747. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::_internal_mutable_current_document() {
  5748. if (current_document_ == nullptr) {
  5749. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  5750. current_document_ = p;
  5751. }
  5752. return current_document_;
  5753. }
  5754. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::mutable_current_document() {
  5755. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.current_document)
  5756. return _internal_mutable_current_document();
  5757. }
  5758. inline void UpdateDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  5759. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5760. if (message_arena == nullptr) {
  5761. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  5762. }
  5763. if (current_document) {
  5764. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5765. if (message_arena != submessage_arena) {
  5766. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5767. message_arena, current_document, submessage_arena);
  5768. }
  5769. } else {
  5770. }
  5771. current_document_ = current_document;
  5772. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.current_document)
  5773. }
  5774. // -------------------------------------------------------------------
  5775. // DeleteDocumentRequest
  5776. // string name = 1;
  5777. inline void DeleteDocumentRequest::clear_name() {
  5778. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5779. }
  5780. inline const std::string& DeleteDocumentRequest::name() const {
  5781. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.name)
  5782. return _internal_name();
  5783. }
  5784. inline void DeleteDocumentRequest::set_name(const std::string& value) {
  5785. _internal_set_name(value);
  5786. // @@protoc_insertion_point(field_set:google.firestore.v1.DeleteDocumentRequest.name)
  5787. }
  5788. inline std::string* DeleteDocumentRequest::mutable_name() {
  5789. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.name)
  5790. return _internal_mutable_name();
  5791. }
  5792. inline const std::string& DeleteDocumentRequest::_internal_name() const {
  5793. return name_.GetNoArena();
  5794. }
  5795. inline void DeleteDocumentRequest::_internal_set_name(const std::string& value) {
  5796. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5797. }
  5798. inline void DeleteDocumentRequest::set_name(std::string&& value) {
  5799. name_.SetNoArena(
  5800. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5801. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DeleteDocumentRequest.name)
  5802. }
  5803. inline void DeleteDocumentRequest::set_name(const char* value) {
  5804. GOOGLE_DCHECK(value != nullptr);
  5805. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5806. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DeleteDocumentRequest.name)
  5807. }
  5808. inline void DeleteDocumentRequest::set_name(const char* value, size_t size) {
  5809. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5810. ::std::string(reinterpret_cast<const char*>(value), size));
  5811. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DeleteDocumentRequest.name)
  5812. }
  5813. inline std::string* DeleteDocumentRequest::_internal_mutable_name() {
  5814. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5815. }
  5816. inline std::string* DeleteDocumentRequest::release_name() {
  5817. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.name)
  5818. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5819. }
  5820. inline void DeleteDocumentRequest::set_allocated_name(std::string* name) {
  5821. if (name != nullptr) {
  5822. } else {
  5823. }
  5824. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  5825. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.name)
  5826. }
  5827. // .google.firestore.v1.Precondition current_document = 2;
  5828. inline bool DeleteDocumentRequest::_internal_has_current_document() const {
  5829. return this != internal_default_instance() && current_document_ != nullptr;
  5830. }
  5831. inline bool DeleteDocumentRequest::has_current_document() const {
  5832. return _internal_has_current_document();
  5833. }
  5834. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::_internal_current_document() const {
  5835. const ::google::firestore::v1::Precondition* p = current_document_;
  5836. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  5837. &::google::firestore::v1::_Precondition_default_instance_);
  5838. }
  5839. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::current_document() const {
  5840. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.current_document)
  5841. return _internal_current_document();
  5842. }
  5843. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::release_current_document() {
  5844. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.current_document)
  5845. ::google::firestore::v1::Precondition* temp = current_document_;
  5846. current_document_ = nullptr;
  5847. return temp;
  5848. }
  5849. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::_internal_mutable_current_document() {
  5850. if (current_document_ == nullptr) {
  5851. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  5852. current_document_ = p;
  5853. }
  5854. return current_document_;
  5855. }
  5856. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::mutable_current_document() {
  5857. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.current_document)
  5858. return _internal_mutable_current_document();
  5859. }
  5860. inline void DeleteDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  5861. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5862. if (message_arena == nullptr) {
  5863. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  5864. }
  5865. if (current_document) {
  5866. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5867. if (message_arena != submessage_arena) {
  5868. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5869. message_arena, current_document, submessage_arena);
  5870. }
  5871. } else {
  5872. }
  5873. current_document_ = current_document;
  5874. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.current_document)
  5875. }
  5876. // -------------------------------------------------------------------
  5877. // BatchGetDocumentsRequest
  5878. // string database = 1;
  5879. inline void BatchGetDocumentsRequest::clear_database() {
  5880. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5881. }
  5882. inline const std::string& BatchGetDocumentsRequest::database() const {
  5883. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.database)
  5884. return _internal_database();
  5885. }
  5886. inline void BatchGetDocumentsRequest::set_database(const std::string& value) {
  5887. _internal_set_database(value);
  5888. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.database)
  5889. }
  5890. inline std::string* BatchGetDocumentsRequest::mutable_database() {
  5891. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.database)
  5892. return _internal_mutable_database();
  5893. }
  5894. inline const std::string& BatchGetDocumentsRequest::_internal_database() const {
  5895. return database_.GetNoArena();
  5896. }
  5897. inline void BatchGetDocumentsRequest::_internal_set_database(const std::string& value) {
  5898. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5899. }
  5900. inline void BatchGetDocumentsRequest::set_database(std::string&& value) {
  5901. database_.SetNoArena(
  5902. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5903. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsRequest.database)
  5904. }
  5905. inline void BatchGetDocumentsRequest::set_database(const char* value) {
  5906. GOOGLE_DCHECK(value != nullptr);
  5907. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5908. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.database)
  5909. }
  5910. inline void BatchGetDocumentsRequest::set_database(const char* value, size_t size) {
  5911. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5912. ::std::string(reinterpret_cast<const char*>(value), size));
  5913. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.database)
  5914. }
  5915. inline std::string* BatchGetDocumentsRequest::_internal_mutable_database() {
  5916. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5917. }
  5918. inline std::string* BatchGetDocumentsRequest::release_database() {
  5919. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.database)
  5920. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5921. }
  5922. inline void BatchGetDocumentsRequest::set_allocated_database(std::string* database) {
  5923. if (database != nullptr) {
  5924. } else {
  5925. }
  5926. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  5927. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.database)
  5928. }
  5929. // repeated string documents = 2;
  5930. inline int BatchGetDocumentsRequest::_internal_documents_size() const {
  5931. return documents_.size();
  5932. }
  5933. inline int BatchGetDocumentsRequest::documents_size() const {
  5934. return _internal_documents_size();
  5935. }
  5936. inline void BatchGetDocumentsRequest::clear_documents() {
  5937. documents_.Clear();
  5938. }
  5939. inline std::string* BatchGetDocumentsRequest::add_documents() {
  5940. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5941. return _internal_add_documents();
  5942. }
  5943. inline const std::string& BatchGetDocumentsRequest::_internal_documents(int index) const {
  5944. return documents_.Get(index);
  5945. }
  5946. inline const std::string& BatchGetDocumentsRequest::documents(int index) const {
  5947. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5948. return _internal_documents(index);
  5949. }
  5950. inline std::string* BatchGetDocumentsRequest::mutable_documents(int index) {
  5951. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5952. return documents_.Mutable(index);
  5953. }
  5954. inline void BatchGetDocumentsRequest::set_documents(int index, const std::string& value) {
  5955. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5956. documents_.Mutable(index)->assign(value);
  5957. }
  5958. inline void BatchGetDocumentsRequest::set_documents(int index, std::string&& value) {
  5959. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5960. documents_.Mutable(index)->assign(std::move(value));
  5961. }
  5962. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value) {
  5963. GOOGLE_DCHECK(value != nullptr);
  5964. documents_.Mutable(index)->assign(value);
  5965. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5966. }
  5967. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value, size_t size) {
  5968. documents_.Mutable(index)->assign(
  5969. reinterpret_cast<const char*>(value), size);
  5970. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5971. }
  5972. inline std::string* BatchGetDocumentsRequest::_internal_add_documents() {
  5973. return documents_.Add();
  5974. }
  5975. inline void BatchGetDocumentsRequest::add_documents(const std::string& value) {
  5976. documents_.Add()->assign(value);
  5977. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5978. }
  5979. inline void BatchGetDocumentsRequest::add_documents(std::string&& value) {
  5980. documents_.Add(std::move(value));
  5981. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5982. }
  5983. inline void BatchGetDocumentsRequest::add_documents(const char* value) {
  5984. GOOGLE_DCHECK(value != nullptr);
  5985. documents_.Add()->assign(value);
  5986. // @@protoc_insertion_point(field_add_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5987. }
  5988. inline void BatchGetDocumentsRequest::add_documents(const char* value, size_t size) {
  5989. documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
  5990. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5991. }
  5992. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  5993. BatchGetDocumentsRequest::documents() const {
  5994. // @@protoc_insertion_point(field_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5995. return documents_;
  5996. }
  5997. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  5998. BatchGetDocumentsRequest::mutable_documents() {
  5999. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6000. return &documents_;
  6001. }
  6002. // .google.firestore.v1.DocumentMask mask = 3;
  6003. inline bool BatchGetDocumentsRequest::_internal_has_mask() const {
  6004. return this != internal_default_instance() && mask_ != nullptr;
  6005. }
  6006. inline bool BatchGetDocumentsRequest::has_mask() const {
  6007. return _internal_has_mask();
  6008. }
  6009. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::_internal_mask() const {
  6010. const ::google::firestore::v1::DocumentMask* p = mask_;
  6011. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  6012. &::google::firestore::v1::_DocumentMask_default_instance_);
  6013. }
  6014. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::mask() const {
  6015. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6016. return _internal_mask();
  6017. }
  6018. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::release_mask() {
  6019. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6020. ::google::firestore::v1::DocumentMask* temp = mask_;
  6021. mask_ = nullptr;
  6022. return temp;
  6023. }
  6024. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::_internal_mutable_mask() {
  6025. if (mask_ == nullptr) {
  6026. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  6027. mask_ = p;
  6028. }
  6029. return mask_;
  6030. }
  6031. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::mutable_mask() {
  6032. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6033. return _internal_mutable_mask();
  6034. }
  6035. inline void BatchGetDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  6036. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6037. if (message_arena == nullptr) {
  6038. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  6039. }
  6040. if (mask) {
  6041. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6042. if (message_arena != submessage_arena) {
  6043. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6044. message_arena, mask, submessage_arena);
  6045. }
  6046. } else {
  6047. }
  6048. mask_ = mask;
  6049. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6050. }
  6051. // bytes transaction = 4;
  6052. inline bool BatchGetDocumentsRequest::_internal_has_transaction() const {
  6053. return consistency_selector_case() == kTransaction;
  6054. }
  6055. inline void BatchGetDocumentsRequest::set_has_transaction() {
  6056. _oneof_case_[0] = kTransaction;
  6057. }
  6058. inline void BatchGetDocumentsRequest::clear_transaction() {
  6059. if (_internal_has_transaction()) {
  6060. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6061. clear_has_consistency_selector();
  6062. }
  6063. }
  6064. inline const std::string& BatchGetDocumentsRequest::transaction() const {
  6065. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6066. return _internal_transaction();
  6067. }
  6068. inline void BatchGetDocumentsRequest::set_transaction(const std::string& value) {
  6069. _internal_set_transaction(value);
  6070. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6071. }
  6072. inline std::string* BatchGetDocumentsRequest::mutable_transaction() {
  6073. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6074. return _internal_mutable_transaction();
  6075. }
  6076. inline const std::string& BatchGetDocumentsRequest::_internal_transaction() const {
  6077. if (_internal_has_transaction()) {
  6078. return consistency_selector_.transaction_.GetNoArena();
  6079. }
  6080. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  6081. }
  6082. inline void BatchGetDocumentsRequest::_internal_set_transaction(const std::string& value) {
  6083. if (!_internal_has_transaction()) {
  6084. clear_consistency_selector();
  6085. set_has_transaction();
  6086. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6087. }
  6088. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6089. }
  6090. inline void BatchGetDocumentsRequest::set_transaction(std::string&& value) {
  6091. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6092. if (!_internal_has_transaction()) {
  6093. clear_consistency_selector();
  6094. set_has_transaction();
  6095. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6096. }
  6097. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6098. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6099. }
  6100. inline void BatchGetDocumentsRequest::set_transaction(const char* value) {
  6101. GOOGLE_DCHECK(value != nullptr);
  6102. if (!_internal_has_transaction()) {
  6103. clear_consistency_selector();
  6104. set_has_transaction();
  6105. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6106. }
  6107. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6108. ::std::string(value));
  6109. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6110. }
  6111. inline void BatchGetDocumentsRequest::set_transaction(const void* value, size_t size) {
  6112. if (!_internal_has_transaction()) {
  6113. clear_consistency_selector();
  6114. set_has_transaction();
  6115. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6116. }
  6117. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6118. reinterpret_cast<const char*>(value), size));
  6119. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6120. }
  6121. inline std::string* BatchGetDocumentsRequest::_internal_mutable_transaction() {
  6122. if (!_internal_has_transaction()) {
  6123. clear_consistency_selector();
  6124. set_has_transaction();
  6125. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6126. }
  6127. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6128. }
  6129. inline std::string* BatchGetDocumentsRequest::release_transaction() {
  6130. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6131. if (_internal_has_transaction()) {
  6132. clear_has_consistency_selector();
  6133. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6134. } else {
  6135. return nullptr;
  6136. }
  6137. }
  6138. inline void BatchGetDocumentsRequest::set_allocated_transaction(std::string* transaction) {
  6139. if (has_consistency_selector()) {
  6140. clear_consistency_selector();
  6141. }
  6142. if (transaction != nullptr) {
  6143. set_has_transaction();
  6144. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  6145. }
  6146. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6147. }
  6148. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  6149. inline bool BatchGetDocumentsRequest::_internal_has_new_transaction() const {
  6150. return consistency_selector_case() == kNewTransaction;
  6151. }
  6152. inline bool BatchGetDocumentsRequest::has_new_transaction() const {
  6153. return _internal_has_new_transaction();
  6154. }
  6155. inline void BatchGetDocumentsRequest::set_has_new_transaction() {
  6156. _oneof_case_[0] = kNewTransaction;
  6157. }
  6158. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::release_new_transaction() {
  6159. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6160. if (_internal_has_new_transaction()) {
  6161. clear_has_consistency_selector();
  6162. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  6163. consistency_selector_.new_transaction_ = nullptr;
  6164. return temp;
  6165. } else {
  6166. return nullptr;
  6167. }
  6168. }
  6169. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::_internal_new_transaction() const {
  6170. return _internal_has_new_transaction()
  6171. ? *consistency_selector_.new_transaction_
  6172. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  6173. }
  6174. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::new_transaction() const {
  6175. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6176. return _internal_new_transaction();
  6177. }
  6178. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::_internal_mutable_new_transaction() {
  6179. if (!_internal_has_new_transaction()) {
  6180. clear_consistency_selector();
  6181. set_has_new_transaction();
  6182. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  6183. GetArenaNoVirtual());
  6184. }
  6185. return consistency_selector_.new_transaction_;
  6186. }
  6187. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::mutable_new_transaction() {
  6188. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6189. return _internal_mutable_new_transaction();
  6190. }
  6191. // .google.protobuf.Timestamp read_time = 7;
  6192. inline bool BatchGetDocumentsRequest::_internal_has_read_time() const {
  6193. return consistency_selector_case() == kReadTime;
  6194. }
  6195. inline bool BatchGetDocumentsRequest::has_read_time() const {
  6196. return _internal_has_read_time();
  6197. }
  6198. inline void BatchGetDocumentsRequest::set_has_read_time() {
  6199. _oneof_case_[0] = kReadTime;
  6200. }
  6201. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::release_read_time() {
  6202. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6203. if (_internal_has_read_time()) {
  6204. clear_has_consistency_selector();
  6205. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  6206. consistency_selector_.read_time_ = nullptr;
  6207. return temp;
  6208. } else {
  6209. return nullptr;
  6210. }
  6211. }
  6212. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsRequest::_internal_read_time() const {
  6213. return _internal_has_read_time()
  6214. ? *consistency_selector_.read_time_
  6215. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6216. }
  6217. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsRequest::read_time() const {
  6218. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6219. return _internal_read_time();
  6220. }
  6221. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::_internal_mutable_read_time() {
  6222. if (!_internal_has_read_time()) {
  6223. clear_consistency_selector();
  6224. set_has_read_time();
  6225. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  6226. GetArenaNoVirtual());
  6227. }
  6228. return consistency_selector_.read_time_;
  6229. }
  6230. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::mutable_read_time() {
  6231. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6232. return _internal_mutable_read_time();
  6233. }
  6234. inline bool BatchGetDocumentsRequest::has_consistency_selector() const {
  6235. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  6236. }
  6237. inline void BatchGetDocumentsRequest::clear_has_consistency_selector() {
  6238. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  6239. }
  6240. inline BatchGetDocumentsRequest::ConsistencySelectorCase BatchGetDocumentsRequest::consistency_selector_case() const {
  6241. return BatchGetDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
  6242. }
  6243. // -------------------------------------------------------------------
  6244. // BatchGetDocumentsResponse
  6245. // .google.firestore.v1.Document found = 1;
  6246. inline bool BatchGetDocumentsResponse::_internal_has_found() const {
  6247. return result_case() == kFound;
  6248. }
  6249. inline bool BatchGetDocumentsResponse::has_found() const {
  6250. return _internal_has_found();
  6251. }
  6252. inline void BatchGetDocumentsResponse::set_has_found() {
  6253. _oneof_case_[0] = kFound;
  6254. }
  6255. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::release_found() {
  6256. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.found)
  6257. if (_internal_has_found()) {
  6258. clear_has_result();
  6259. ::google::firestore::v1::Document* temp = result_.found_;
  6260. result_.found_ = nullptr;
  6261. return temp;
  6262. } else {
  6263. return nullptr;
  6264. }
  6265. }
  6266. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::_internal_found() const {
  6267. return _internal_has_found()
  6268. ? *result_.found_
  6269. : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
  6270. }
  6271. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::found() const {
  6272. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.found)
  6273. return _internal_found();
  6274. }
  6275. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::_internal_mutable_found() {
  6276. if (!_internal_has_found()) {
  6277. clear_result();
  6278. set_has_found();
  6279. result_.found_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
  6280. GetArenaNoVirtual());
  6281. }
  6282. return result_.found_;
  6283. }
  6284. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::mutable_found() {
  6285. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.found)
  6286. return _internal_mutable_found();
  6287. }
  6288. // string missing = 2;
  6289. inline bool BatchGetDocumentsResponse::_internal_has_missing() const {
  6290. return result_case() == kMissing;
  6291. }
  6292. inline void BatchGetDocumentsResponse::set_has_missing() {
  6293. _oneof_case_[0] = kMissing;
  6294. }
  6295. inline void BatchGetDocumentsResponse::clear_missing() {
  6296. if (_internal_has_missing()) {
  6297. result_.missing_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6298. clear_has_result();
  6299. }
  6300. }
  6301. inline const std::string& BatchGetDocumentsResponse::missing() const {
  6302. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6303. return _internal_missing();
  6304. }
  6305. inline void BatchGetDocumentsResponse::set_missing(const std::string& value) {
  6306. _internal_set_missing(value);
  6307. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6308. }
  6309. inline std::string* BatchGetDocumentsResponse::mutable_missing() {
  6310. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6311. return _internal_mutable_missing();
  6312. }
  6313. inline const std::string& BatchGetDocumentsResponse::_internal_missing() const {
  6314. if (_internal_has_missing()) {
  6315. return result_.missing_.GetNoArena();
  6316. }
  6317. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  6318. }
  6319. inline void BatchGetDocumentsResponse::_internal_set_missing(const std::string& value) {
  6320. if (!_internal_has_missing()) {
  6321. clear_result();
  6322. set_has_missing();
  6323. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6324. }
  6325. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6326. }
  6327. inline void BatchGetDocumentsResponse::set_missing(std::string&& value) {
  6328. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6329. if (!_internal_has_missing()) {
  6330. clear_result();
  6331. set_has_missing();
  6332. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6333. }
  6334. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6335. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6336. }
  6337. inline void BatchGetDocumentsResponse::set_missing(const char* value) {
  6338. GOOGLE_DCHECK(value != nullptr);
  6339. if (!_internal_has_missing()) {
  6340. clear_result();
  6341. set_has_missing();
  6342. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6343. }
  6344. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6345. ::std::string(value));
  6346. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6347. }
  6348. inline void BatchGetDocumentsResponse::set_missing(const char* value, size_t size) {
  6349. if (!_internal_has_missing()) {
  6350. clear_result();
  6351. set_has_missing();
  6352. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6353. }
  6354. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6355. reinterpret_cast<const char*>(value), size));
  6356. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6357. }
  6358. inline std::string* BatchGetDocumentsResponse::_internal_mutable_missing() {
  6359. if (!_internal_has_missing()) {
  6360. clear_result();
  6361. set_has_missing();
  6362. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6363. }
  6364. return result_.missing_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6365. }
  6366. inline std::string* BatchGetDocumentsResponse::release_missing() {
  6367. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6368. if (_internal_has_missing()) {
  6369. clear_has_result();
  6370. return result_.missing_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6371. } else {
  6372. return nullptr;
  6373. }
  6374. }
  6375. inline void BatchGetDocumentsResponse::set_allocated_missing(std::string* missing) {
  6376. if (has_result()) {
  6377. clear_result();
  6378. }
  6379. if (missing != nullptr) {
  6380. set_has_missing();
  6381. result_.missing_.UnsafeSetDefault(missing);
  6382. }
  6383. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6384. }
  6385. // bytes transaction = 3;
  6386. inline void BatchGetDocumentsResponse::clear_transaction() {
  6387. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6388. }
  6389. inline const std::string& BatchGetDocumentsResponse::transaction() const {
  6390. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6391. return _internal_transaction();
  6392. }
  6393. inline void BatchGetDocumentsResponse::set_transaction(const std::string& value) {
  6394. _internal_set_transaction(value);
  6395. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6396. }
  6397. inline std::string* BatchGetDocumentsResponse::mutable_transaction() {
  6398. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6399. return _internal_mutable_transaction();
  6400. }
  6401. inline const std::string& BatchGetDocumentsResponse::_internal_transaction() const {
  6402. return transaction_.GetNoArena();
  6403. }
  6404. inline void BatchGetDocumentsResponse::_internal_set_transaction(const std::string& value) {
  6405. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6406. }
  6407. inline void BatchGetDocumentsResponse::set_transaction(std::string&& value) {
  6408. transaction_.SetNoArena(
  6409. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6410. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6411. }
  6412. inline void BatchGetDocumentsResponse::set_transaction(const char* value) {
  6413. GOOGLE_DCHECK(value != nullptr);
  6414. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6415. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6416. }
  6417. inline void BatchGetDocumentsResponse::set_transaction(const void* value, size_t size) {
  6418. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6419. ::std::string(reinterpret_cast<const char*>(value), size));
  6420. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6421. }
  6422. inline std::string* BatchGetDocumentsResponse::_internal_mutable_transaction() {
  6423. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6424. }
  6425. inline std::string* BatchGetDocumentsResponse::release_transaction() {
  6426. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6427. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6428. }
  6429. inline void BatchGetDocumentsResponse::set_allocated_transaction(std::string* transaction) {
  6430. if (transaction != nullptr) {
  6431. } else {
  6432. }
  6433. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6434. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6435. }
  6436. // .google.protobuf.Timestamp read_time = 4;
  6437. inline bool BatchGetDocumentsResponse::_internal_has_read_time() const {
  6438. return this != internal_default_instance() && read_time_ != nullptr;
  6439. }
  6440. inline bool BatchGetDocumentsResponse::has_read_time() const {
  6441. return _internal_has_read_time();
  6442. }
  6443. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsResponse::_internal_read_time() const {
  6444. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  6445. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  6446. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6447. }
  6448. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsResponse::read_time() const {
  6449. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6450. return _internal_read_time();
  6451. }
  6452. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::release_read_time() {
  6453. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6454. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  6455. read_time_ = nullptr;
  6456. return temp;
  6457. }
  6458. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::_internal_mutable_read_time() {
  6459. if (read_time_ == nullptr) {
  6460. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  6461. read_time_ = p;
  6462. }
  6463. return read_time_;
  6464. }
  6465. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::mutable_read_time() {
  6466. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6467. return _internal_mutable_read_time();
  6468. }
  6469. inline void BatchGetDocumentsResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  6470. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6471. if (message_arena == nullptr) {
  6472. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  6473. }
  6474. if (read_time) {
  6475. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  6476. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  6477. if (message_arena != submessage_arena) {
  6478. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6479. message_arena, read_time, submessage_arena);
  6480. }
  6481. } else {
  6482. }
  6483. read_time_ = read_time;
  6484. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6485. }
  6486. inline bool BatchGetDocumentsResponse::has_result() const {
  6487. return result_case() != RESULT_NOT_SET;
  6488. }
  6489. inline void BatchGetDocumentsResponse::clear_has_result() {
  6490. _oneof_case_[0] = RESULT_NOT_SET;
  6491. }
  6492. inline BatchGetDocumentsResponse::ResultCase BatchGetDocumentsResponse::result_case() const {
  6493. return BatchGetDocumentsResponse::ResultCase(_oneof_case_[0]);
  6494. }
  6495. // -------------------------------------------------------------------
  6496. // BeginTransactionRequest
  6497. // string database = 1;
  6498. inline void BeginTransactionRequest::clear_database() {
  6499. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6500. }
  6501. inline const std::string& BeginTransactionRequest::database() const {
  6502. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.database)
  6503. return _internal_database();
  6504. }
  6505. inline void BeginTransactionRequest::set_database(const std::string& value) {
  6506. _internal_set_database(value);
  6507. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionRequest.database)
  6508. }
  6509. inline std::string* BeginTransactionRequest::mutable_database() {
  6510. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.database)
  6511. return _internal_mutable_database();
  6512. }
  6513. inline const std::string& BeginTransactionRequest::_internal_database() const {
  6514. return database_.GetNoArena();
  6515. }
  6516. inline void BeginTransactionRequest::_internal_set_database(const std::string& value) {
  6517. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6518. }
  6519. inline void BeginTransactionRequest::set_database(std::string&& value) {
  6520. database_.SetNoArena(
  6521. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6522. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BeginTransactionRequest.database)
  6523. }
  6524. inline void BeginTransactionRequest::set_database(const char* value) {
  6525. GOOGLE_DCHECK(value != nullptr);
  6526. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6527. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BeginTransactionRequest.database)
  6528. }
  6529. inline void BeginTransactionRequest::set_database(const char* value, size_t size) {
  6530. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6531. ::std::string(reinterpret_cast<const char*>(value), size));
  6532. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BeginTransactionRequest.database)
  6533. }
  6534. inline std::string* BeginTransactionRequest::_internal_mutable_database() {
  6535. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6536. }
  6537. inline std::string* BeginTransactionRequest::release_database() {
  6538. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.database)
  6539. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6540. }
  6541. inline void BeginTransactionRequest::set_allocated_database(std::string* database) {
  6542. if (database != nullptr) {
  6543. } else {
  6544. }
  6545. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6546. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.database)
  6547. }
  6548. // .google.firestore.v1.TransactionOptions options = 2;
  6549. inline bool BeginTransactionRequest::_internal_has_options() const {
  6550. return this != internal_default_instance() && options_ != nullptr;
  6551. }
  6552. inline bool BeginTransactionRequest::has_options() const {
  6553. return _internal_has_options();
  6554. }
  6555. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::_internal_options() const {
  6556. const ::google::firestore::v1::TransactionOptions* p = options_;
  6557. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::TransactionOptions*>(
  6558. &::google::firestore::v1::_TransactionOptions_default_instance_);
  6559. }
  6560. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::options() const {
  6561. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.options)
  6562. return _internal_options();
  6563. }
  6564. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::release_options() {
  6565. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.options)
  6566. ::google::firestore::v1::TransactionOptions* temp = options_;
  6567. options_ = nullptr;
  6568. return temp;
  6569. }
  6570. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::_internal_mutable_options() {
  6571. if (options_ == nullptr) {
  6572. auto* p = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(GetArenaNoVirtual());
  6573. options_ = p;
  6574. }
  6575. return options_;
  6576. }
  6577. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::mutable_options() {
  6578. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.options)
  6579. return _internal_mutable_options();
  6580. }
  6581. inline void BeginTransactionRequest::set_allocated_options(::google::firestore::v1::TransactionOptions* options) {
  6582. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6583. if (message_arena == nullptr) {
  6584. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  6585. }
  6586. if (options) {
  6587. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6588. if (message_arena != submessage_arena) {
  6589. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6590. message_arena, options, submessage_arena);
  6591. }
  6592. } else {
  6593. }
  6594. options_ = options;
  6595. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.options)
  6596. }
  6597. // -------------------------------------------------------------------
  6598. // BeginTransactionResponse
  6599. // bytes transaction = 1;
  6600. inline void BeginTransactionResponse::clear_transaction() {
  6601. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6602. }
  6603. inline const std::string& BeginTransactionResponse::transaction() const {
  6604. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionResponse.transaction)
  6605. return _internal_transaction();
  6606. }
  6607. inline void BeginTransactionResponse::set_transaction(const std::string& value) {
  6608. _internal_set_transaction(value);
  6609. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionResponse.transaction)
  6610. }
  6611. inline std::string* BeginTransactionResponse::mutable_transaction() {
  6612. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionResponse.transaction)
  6613. return _internal_mutable_transaction();
  6614. }
  6615. inline const std::string& BeginTransactionResponse::_internal_transaction() const {
  6616. return transaction_.GetNoArena();
  6617. }
  6618. inline void BeginTransactionResponse::_internal_set_transaction(const std::string& value) {
  6619. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6620. }
  6621. inline void BeginTransactionResponse::set_transaction(std::string&& value) {
  6622. transaction_.SetNoArena(
  6623. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6624. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BeginTransactionResponse.transaction)
  6625. }
  6626. inline void BeginTransactionResponse::set_transaction(const char* value) {
  6627. GOOGLE_DCHECK(value != nullptr);
  6628. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6629. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BeginTransactionResponse.transaction)
  6630. }
  6631. inline void BeginTransactionResponse::set_transaction(const void* value, size_t size) {
  6632. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6633. ::std::string(reinterpret_cast<const char*>(value), size));
  6634. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BeginTransactionResponse.transaction)
  6635. }
  6636. inline std::string* BeginTransactionResponse::_internal_mutable_transaction() {
  6637. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6638. }
  6639. inline std::string* BeginTransactionResponse::release_transaction() {
  6640. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionResponse.transaction)
  6641. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6642. }
  6643. inline void BeginTransactionResponse::set_allocated_transaction(std::string* transaction) {
  6644. if (transaction != nullptr) {
  6645. } else {
  6646. }
  6647. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6648. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionResponse.transaction)
  6649. }
  6650. // -------------------------------------------------------------------
  6651. // CommitRequest
  6652. // string database = 1;
  6653. inline void CommitRequest::clear_database() {
  6654. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6655. }
  6656. inline const std::string& CommitRequest::database() const {
  6657. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.database)
  6658. return _internal_database();
  6659. }
  6660. inline void CommitRequest::set_database(const std::string& value) {
  6661. _internal_set_database(value);
  6662. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.database)
  6663. }
  6664. inline std::string* CommitRequest::mutable_database() {
  6665. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.database)
  6666. return _internal_mutable_database();
  6667. }
  6668. inline const std::string& CommitRequest::_internal_database() const {
  6669. return database_.GetNoArena();
  6670. }
  6671. inline void CommitRequest::_internal_set_database(const std::string& value) {
  6672. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6673. }
  6674. inline void CommitRequest::set_database(std::string&& value) {
  6675. database_.SetNoArena(
  6676. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6677. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CommitRequest.database)
  6678. }
  6679. inline void CommitRequest::set_database(const char* value) {
  6680. GOOGLE_DCHECK(value != nullptr);
  6681. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6682. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CommitRequest.database)
  6683. }
  6684. inline void CommitRequest::set_database(const char* value, size_t size) {
  6685. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6686. ::std::string(reinterpret_cast<const char*>(value), size));
  6687. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CommitRequest.database)
  6688. }
  6689. inline std::string* CommitRequest::_internal_mutable_database() {
  6690. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6691. }
  6692. inline std::string* CommitRequest::release_database() {
  6693. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.database)
  6694. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6695. }
  6696. inline void CommitRequest::set_allocated_database(std::string* database) {
  6697. if (database != nullptr) {
  6698. } else {
  6699. }
  6700. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6701. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.database)
  6702. }
  6703. // repeated .google.firestore.v1.Write writes = 2;
  6704. inline int CommitRequest::_internal_writes_size() const {
  6705. return writes_.size();
  6706. }
  6707. inline int CommitRequest::writes_size() const {
  6708. return _internal_writes_size();
  6709. }
  6710. inline ::google::firestore::v1::Write* CommitRequest::mutable_writes(int index) {
  6711. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.writes)
  6712. return writes_.Mutable(index);
  6713. }
  6714. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  6715. CommitRequest::mutable_writes() {
  6716. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitRequest.writes)
  6717. return &writes_;
  6718. }
  6719. inline const ::google::firestore::v1::Write& CommitRequest::_internal_writes(int index) const {
  6720. return writes_.Get(index);
  6721. }
  6722. inline const ::google::firestore::v1::Write& CommitRequest::writes(int index) const {
  6723. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.writes)
  6724. return _internal_writes(index);
  6725. }
  6726. inline ::google::firestore::v1::Write* CommitRequest::_internal_add_writes() {
  6727. return writes_.Add();
  6728. }
  6729. inline ::google::firestore::v1::Write* CommitRequest::add_writes() {
  6730. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitRequest.writes)
  6731. return _internal_add_writes();
  6732. }
  6733. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  6734. CommitRequest::writes() const {
  6735. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitRequest.writes)
  6736. return writes_;
  6737. }
  6738. // bytes transaction = 3;
  6739. inline void CommitRequest::clear_transaction() {
  6740. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6741. }
  6742. inline const std::string& CommitRequest::transaction() const {
  6743. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.transaction)
  6744. return _internal_transaction();
  6745. }
  6746. inline void CommitRequest::set_transaction(const std::string& value) {
  6747. _internal_set_transaction(value);
  6748. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.transaction)
  6749. }
  6750. inline std::string* CommitRequest::mutable_transaction() {
  6751. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.transaction)
  6752. return _internal_mutable_transaction();
  6753. }
  6754. inline const std::string& CommitRequest::_internal_transaction() const {
  6755. return transaction_.GetNoArena();
  6756. }
  6757. inline void CommitRequest::_internal_set_transaction(const std::string& value) {
  6758. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6759. }
  6760. inline void CommitRequest::set_transaction(std::string&& value) {
  6761. transaction_.SetNoArena(
  6762. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6763. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CommitRequest.transaction)
  6764. }
  6765. inline void CommitRequest::set_transaction(const char* value) {
  6766. GOOGLE_DCHECK(value != nullptr);
  6767. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6768. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CommitRequest.transaction)
  6769. }
  6770. inline void CommitRequest::set_transaction(const void* value, size_t size) {
  6771. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6772. ::std::string(reinterpret_cast<const char*>(value), size));
  6773. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CommitRequest.transaction)
  6774. }
  6775. inline std::string* CommitRequest::_internal_mutable_transaction() {
  6776. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6777. }
  6778. inline std::string* CommitRequest::release_transaction() {
  6779. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.transaction)
  6780. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6781. }
  6782. inline void CommitRequest::set_allocated_transaction(std::string* transaction) {
  6783. if (transaction != nullptr) {
  6784. } else {
  6785. }
  6786. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6787. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.transaction)
  6788. }
  6789. // -------------------------------------------------------------------
  6790. // CommitResponse
  6791. // repeated .google.firestore.v1.WriteResult write_results = 1;
  6792. inline int CommitResponse::_internal_write_results_size() const {
  6793. return write_results_.size();
  6794. }
  6795. inline int CommitResponse::write_results_size() const {
  6796. return _internal_write_results_size();
  6797. }
  6798. inline ::google::firestore::v1::WriteResult* CommitResponse::mutable_write_results(int index) {
  6799. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.write_results)
  6800. return write_results_.Mutable(index);
  6801. }
  6802. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  6803. CommitResponse::mutable_write_results() {
  6804. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitResponse.write_results)
  6805. return &write_results_;
  6806. }
  6807. inline const ::google::firestore::v1::WriteResult& CommitResponse::_internal_write_results(int index) const {
  6808. return write_results_.Get(index);
  6809. }
  6810. inline const ::google::firestore::v1::WriteResult& CommitResponse::write_results(int index) const {
  6811. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.write_results)
  6812. return _internal_write_results(index);
  6813. }
  6814. inline ::google::firestore::v1::WriteResult* CommitResponse::_internal_add_write_results() {
  6815. return write_results_.Add();
  6816. }
  6817. inline ::google::firestore::v1::WriteResult* CommitResponse::add_write_results() {
  6818. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitResponse.write_results)
  6819. return _internal_add_write_results();
  6820. }
  6821. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  6822. CommitResponse::write_results() const {
  6823. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitResponse.write_results)
  6824. return write_results_;
  6825. }
  6826. // .google.protobuf.Timestamp commit_time = 2;
  6827. inline bool CommitResponse::_internal_has_commit_time() const {
  6828. return this != internal_default_instance() && commit_time_ != nullptr;
  6829. }
  6830. inline bool CommitResponse::has_commit_time() const {
  6831. return _internal_has_commit_time();
  6832. }
  6833. inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommitResponse::_internal_commit_time() const {
  6834. const PROTOBUF_NAMESPACE_ID::Timestamp* p = commit_time_;
  6835. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  6836. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6837. }
  6838. inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommitResponse::commit_time() const {
  6839. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.commit_time)
  6840. return _internal_commit_time();
  6841. }
  6842. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::release_commit_time() {
  6843. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitResponse.commit_time)
  6844. PROTOBUF_NAMESPACE_ID::Timestamp* temp = commit_time_;
  6845. commit_time_ = nullptr;
  6846. return temp;
  6847. }
  6848. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::_internal_mutable_commit_time() {
  6849. if (commit_time_ == nullptr) {
  6850. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  6851. commit_time_ = p;
  6852. }
  6853. return commit_time_;
  6854. }
  6855. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::mutable_commit_time() {
  6856. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.commit_time)
  6857. return _internal_mutable_commit_time();
  6858. }
  6859. inline void CommitResponse::set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time) {
  6860. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6861. if (message_arena == nullptr) {
  6862. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time_);
  6863. }
  6864. if (commit_time) {
  6865. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  6866. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time)->GetArena();
  6867. if (message_arena != submessage_arena) {
  6868. commit_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6869. message_arena, commit_time, submessage_arena);
  6870. }
  6871. } else {
  6872. }
  6873. commit_time_ = commit_time;
  6874. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitResponse.commit_time)
  6875. }
  6876. // -------------------------------------------------------------------
  6877. // RollbackRequest
  6878. // string database = 1;
  6879. inline void RollbackRequest::clear_database() {
  6880. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6881. }
  6882. inline const std::string& RollbackRequest::database() const {
  6883. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.database)
  6884. return _internal_database();
  6885. }
  6886. inline void RollbackRequest::set_database(const std::string& value) {
  6887. _internal_set_database(value);
  6888. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.database)
  6889. }
  6890. inline std::string* RollbackRequest::mutable_database() {
  6891. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.database)
  6892. return _internal_mutable_database();
  6893. }
  6894. inline const std::string& RollbackRequest::_internal_database() const {
  6895. return database_.GetNoArena();
  6896. }
  6897. inline void RollbackRequest::_internal_set_database(const std::string& value) {
  6898. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6899. }
  6900. inline void RollbackRequest::set_database(std::string&& value) {
  6901. database_.SetNoArena(
  6902. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6903. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RollbackRequest.database)
  6904. }
  6905. inline void RollbackRequest::set_database(const char* value) {
  6906. GOOGLE_DCHECK(value != nullptr);
  6907. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6908. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RollbackRequest.database)
  6909. }
  6910. inline void RollbackRequest::set_database(const char* value, size_t size) {
  6911. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6912. ::std::string(reinterpret_cast<const char*>(value), size));
  6913. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RollbackRequest.database)
  6914. }
  6915. inline std::string* RollbackRequest::_internal_mutable_database() {
  6916. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6917. }
  6918. inline std::string* RollbackRequest::release_database() {
  6919. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.database)
  6920. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6921. }
  6922. inline void RollbackRequest::set_allocated_database(std::string* database) {
  6923. if (database != nullptr) {
  6924. } else {
  6925. }
  6926. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6927. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.database)
  6928. }
  6929. // bytes transaction = 2;
  6930. inline void RollbackRequest::clear_transaction() {
  6931. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6932. }
  6933. inline const std::string& RollbackRequest::transaction() const {
  6934. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.transaction)
  6935. return _internal_transaction();
  6936. }
  6937. inline void RollbackRequest::set_transaction(const std::string& value) {
  6938. _internal_set_transaction(value);
  6939. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.transaction)
  6940. }
  6941. inline std::string* RollbackRequest::mutable_transaction() {
  6942. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.transaction)
  6943. return _internal_mutable_transaction();
  6944. }
  6945. inline const std::string& RollbackRequest::_internal_transaction() const {
  6946. return transaction_.GetNoArena();
  6947. }
  6948. inline void RollbackRequest::_internal_set_transaction(const std::string& value) {
  6949. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6950. }
  6951. inline void RollbackRequest::set_transaction(std::string&& value) {
  6952. transaction_.SetNoArena(
  6953. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6954. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RollbackRequest.transaction)
  6955. }
  6956. inline void RollbackRequest::set_transaction(const char* value) {
  6957. GOOGLE_DCHECK(value != nullptr);
  6958. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6959. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RollbackRequest.transaction)
  6960. }
  6961. inline void RollbackRequest::set_transaction(const void* value, size_t size) {
  6962. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6963. ::std::string(reinterpret_cast<const char*>(value), size));
  6964. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RollbackRequest.transaction)
  6965. }
  6966. inline std::string* RollbackRequest::_internal_mutable_transaction() {
  6967. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6968. }
  6969. inline std::string* RollbackRequest::release_transaction() {
  6970. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.transaction)
  6971. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6972. }
  6973. inline void RollbackRequest::set_allocated_transaction(std::string* transaction) {
  6974. if (transaction != nullptr) {
  6975. } else {
  6976. }
  6977. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6978. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.transaction)
  6979. }
  6980. // -------------------------------------------------------------------
  6981. // RunQueryRequest
  6982. // string parent = 1;
  6983. inline void RunQueryRequest::clear_parent() {
  6984. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6985. }
  6986. inline const std::string& RunQueryRequest::parent() const {
  6987. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.parent)
  6988. return _internal_parent();
  6989. }
  6990. inline void RunQueryRequest::set_parent(const std::string& value) {
  6991. _internal_set_parent(value);
  6992. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.parent)
  6993. }
  6994. inline std::string* RunQueryRequest::mutable_parent() {
  6995. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.parent)
  6996. return _internal_mutable_parent();
  6997. }
  6998. inline const std::string& RunQueryRequest::_internal_parent() const {
  6999. return parent_.GetNoArena();
  7000. }
  7001. inline void RunQueryRequest::_internal_set_parent(const std::string& value) {
  7002. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7003. }
  7004. inline void RunQueryRequest::set_parent(std::string&& value) {
  7005. parent_.SetNoArena(
  7006. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7007. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryRequest.parent)
  7008. }
  7009. inline void RunQueryRequest::set_parent(const char* value) {
  7010. GOOGLE_DCHECK(value != nullptr);
  7011. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7012. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryRequest.parent)
  7013. }
  7014. inline void RunQueryRequest::set_parent(const char* value, size_t size) {
  7015. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7016. ::std::string(reinterpret_cast<const char*>(value), size));
  7017. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryRequest.parent)
  7018. }
  7019. inline std::string* RunQueryRequest::_internal_mutable_parent() {
  7020. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7021. }
  7022. inline std::string* RunQueryRequest::release_parent() {
  7023. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.parent)
  7024. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7025. }
  7026. inline void RunQueryRequest::set_allocated_parent(std::string* parent) {
  7027. if (parent != nullptr) {
  7028. } else {
  7029. }
  7030. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  7031. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.parent)
  7032. }
  7033. // .google.firestore.v1.StructuredQuery structured_query = 2;
  7034. inline bool RunQueryRequest::_internal_has_structured_query() const {
  7035. return query_type_case() == kStructuredQuery;
  7036. }
  7037. inline bool RunQueryRequest::has_structured_query() const {
  7038. return _internal_has_structured_query();
  7039. }
  7040. inline void RunQueryRequest::set_has_structured_query() {
  7041. _oneof_case_[0] = kStructuredQuery;
  7042. }
  7043. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::release_structured_query() {
  7044. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.structured_query)
  7045. if (_internal_has_structured_query()) {
  7046. clear_has_query_type();
  7047. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  7048. query_type_.structured_query_ = nullptr;
  7049. return temp;
  7050. } else {
  7051. return nullptr;
  7052. }
  7053. }
  7054. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::_internal_structured_query() const {
  7055. return _internal_has_structured_query()
  7056. ? *query_type_.structured_query_
  7057. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  7058. }
  7059. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::structured_query() const {
  7060. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.structured_query)
  7061. return _internal_structured_query();
  7062. }
  7063. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::_internal_mutable_structured_query() {
  7064. if (!_internal_has_structured_query()) {
  7065. clear_query_type();
  7066. set_has_structured_query();
  7067. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  7068. GetArenaNoVirtual());
  7069. }
  7070. return query_type_.structured_query_;
  7071. }
  7072. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::mutable_structured_query() {
  7073. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.structured_query)
  7074. return _internal_mutable_structured_query();
  7075. }
  7076. // bytes transaction = 5;
  7077. inline bool RunQueryRequest::_internal_has_transaction() const {
  7078. return consistency_selector_case() == kTransaction;
  7079. }
  7080. inline void RunQueryRequest::set_has_transaction() {
  7081. _oneof_case_[1] = kTransaction;
  7082. }
  7083. inline void RunQueryRequest::clear_transaction() {
  7084. if (_internal_has_transaction()) {
  7085. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7086. clear_has_consistency_selector();
  7087. }
  7088. }
  7089. inline const std::string& RunQueryRequest::transaction() const {
  7090. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.transaction)
  7091. return _internal_transaction();
  7092. }
  7093. inline void RunQueryRequest::set_transaction(const std::string& value) {
  7094. _internal_set_transaction(value);
  7095. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  7096. }
  7097. inline std::string* RunQueryRequest::mutable_transaction() {
  7098. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.transaction)
  7099. return _internal_mutable_transaction();
  7100. }
  7101. inline const std::string& RunQueryRequest::_internal_transaction() const {
  7102. if (_internal_has_transaction()) {
  7103. return consistency_selector_.transaction_.GetNoArena();
  7104. }
  7105. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  7106. }
  7107. inline void RunQueryRequest::_internal_set_transaction(const std::string& value) {
  7108. if (!_internal_has_transaction()) {
  7109. clear_consistency_selector();
  7110. set_has_transaction();
  7111. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7112. }
  7113. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7114. }
  7115. inline void RunQueryRequest::set_transaction(std::string&& value) {
  7116. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  7117. if (!_internal_has_transaction()) {
  7118. clear_consistency_selector();
  7119. set_has_transaction();
  7120. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7121. }
  7122. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7123. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryRequest.transaction)
  7124. }
  7125. inline void RunQueryRequest::set_transaction(const char* value) {
  7126. GOOGLE_DCHECK(value != nullptr);
  7127. if (!_internal_has_transaction()) {
  7128. clear_consistency_selector();
  7129. set_has_transaction();
  7130. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7131. }
  7132. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7133. ::std::string(value));
  7134. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryRequest.transaction)
  7135. }
  7136. inline void RunQueryRequest::set_transaction(const void* value, size_t size) {
  7137. if (!_internal_has_transaction()) {
  7138. clear_consistency_selector();
  7139. set_has_transaction();
  7140. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7141. }
  7142. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7143. reinterpret_cast<const char*>(value), size));
  7144. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryRequest.transaction)
  7145. }
  7146. inline std::string* RunQueryRequest::_internal_mutable_transaction() {
  7147. if (!_internal_has_transaction()) {
  7148. clear_consistency_selector();
  7149. set_has_transaction();
  7150. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7151. }
  7152. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7153. }
  7154. inline std::string* RunQueryRequest::release_transaction() {
  7155. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.transaction)
  7156. if (_internal_has_transaction()) {
  7157. clear_has_consistency_selector();
  7158. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7159. } else {
  7160. return nullptr;
  7161. }
  7162. }
  7163. inline void RunQueryRequest::set_allocated_transaction(std::string* transaction) {
  7164. if (has_consistency_selector()) {
  7165. clear_consistency_selector();
  7166. }
  7167. if (transaction != nullptr) {
  7168. set_has_transaction();
  7169. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  7170. }
  7171. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.transaction)
  7172. }
  7173. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  7174. inline bool RunQueryRequest::_internal_has_new_transaction() const {
  7175. return consistency_selector_case() == kNewTransaction;
  7176. }
  7177. inline bool RunQueryRequest::has_new_transaction() const {
  7178. return _internal_has_new_transaction();
  7179. }
  7180. inline void RunQueryRequest::set_has_new_transaction() {
  7181. _oneof_case_[1] = kNewTransaction;
  7182. }
  7183. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::release_new_transaction() {
  7184. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.new_transaction)
  7185. if (_internal_has_new_transaction()) {
  7186. clear_has_consistency_selector();
  7187. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  7188. consistency_selector_.new_transaction_ = nullptr;
  7189. return temp;
  7190. } else {
  7191. return nullptr;
  7192. }
  7193. }
  7194. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::_internal_new_transaction() const {
  7195. return _internal_has_new_transaction()
  7196. ? *consistency_selector_.new_transaction_
  7197. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  7198. }
  7199. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::new_transaction() const {
  7200. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.new_transaction)
  7201. return _internal_new_transaction();
  7202. }
  7203. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::_internal_mutable_new_transaction() {
  7204. if (!_internal_has_new_transaction()) {
  7205. clear_consistency_selector();
  7206. set_has_new_transaction();
  7207. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  7208. GetArenaNoVirtual());
  7209. }
  7210. return consistency_selector_.new_transaction_;
  7211. }
  7212. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::mutable_new_transaction() {
  7213. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.new_transaction)
  7214. return _internal_mutable_new_transaction();
  7215. }
  7216. // .google.protobuf.Timestamp read_time = 7;
  7217. inline bool RunQueryRequest::_internal_has_read_time() const {
  7218. return consistency_selector_case() == kReadTime;
  7219. }
  7220. inline bool RunQueryRequest::has_read_time() const {
  7221. return _internal_has_read_time();
  7222. }
  7223. inline void RunQueryRequest::set_has_read_time() {
  7224. _oneof_case_[1] = kReadTime;
  7225. }
  7226. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::release_read_time() {
  7227. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.read_time)
  7228. if (_internal_has_read_time()) {
  7229. clear_has_consistency_selector();
  7230. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  7231. consistency_selector_.read_time_ = nullptr;
  7232. return temp;
  7233. } else {
  7234. return nullptr;
  7235. }
  7236. }
  7237. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryRequest::_internal_read_time() const {
  7238. return _internal_has_read_time()
  7239. ? *consistency_selector_.read_time_
  7240. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7241. }
  7242. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryRequest::read_time() const {
  7243. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.read_time)
  7244. return _internal_read_time();
  7245. }
  7246. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::_internal_mutable_read_time() {
  7247. if (!_internal_has_read_time()) {
  7248. clear_consistency_selector();
  7249. set_has_read_time();
  7250. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  7251. GetArenaNoVirtual());
  7252. }
  7253. return consistency_selector_.read_time_;
  7254. }
  7255. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::mutable_read_time() {
  7256. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.read_time)
  7257. return _internal_mutable_read_time();
  7258. }
  7259. inline bool RunQueryRequest::has_query_type() const {
  7260. return query_type_case() != QUERY_TYPE_NOT_SET;
  7261. }
  7262. inline void RunQueryRequest::clear_has_query_type() {
  7263. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  7264. }
  7265. inline bool RunQueryRequest::has_consistency_selector() const {
  7266. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  7267. }
  7268. inline void RunQueryRequest::clear_has_consistency_selector() {
  7269. _oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  7270. }
  7271. inline RunQueryRequest::QueryTypeCase RunQueryRequest::query_type_case() const {
  7272. return RunQueryRequest::QueryTypeCase(_oneof_case_[0]);
  7273. }
  7274. inline RunQueryRequest::ConsistencySelectorCase RunQueryRequest::consistency_selector_case() const {
  7275. return RunQueryRequest::ConsistencySelectorCase(_oneof_case_[1]);
  7276. }
  7277. // -------------------------------------------------------------------
  7278. // RunQueryResponse
  7279. // bytes transaction = 2;
  7280. inline void RunQueryResponse::clear_transaction() {
  7281. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7282. }
  7283. inline const std::string& RunQueryResponse::transaction() const {
  7284. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.transaction)
  7285. return _internal_transaction();
  7286. }
  7287. inline void RunQueryResponse::set_transaction(const std::string& value) {
  7288. _internal_set_transaction(value);
  7289. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.transaction)
  7290. }
  7291. inline std::string* RunQueryResponse::mutable_transaction() {
  7292. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.transaction)
  7293. return _internal_mutable_transaction();
  7294. }
  7295. inline const std::string& RunQueryResponse::_internal_transaction() const {
  7296. return transaction_.GetNoArena();
  7297. }
  7298. inline void RunQueryResponse::_internal_set_transaction(const std::string& value) {
  7299. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7300. }
  7301. inline void RunQueryResponse::set_transaction(std::string&& value) {
  7302. transaction_.SetNoArena(
  7303. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7304. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryResponse.transaction)
  7305. }
  7306. inline void RunQueryResponse::set_transaction(const char* value) {
  7307. GOOGLE_DCHECK(value != nullptr);
  7308. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7309. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryResponse.transaction)
  7310. }
  7311. inline void RunQueryResponse::set_transaction(const void* value, size_t size) {
  7312. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7313. ::std::string(reinterpret_cast<const char*>(value), size));
  7314. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryResponse.transaction)
  7315. }
  7316. inline std::string* RunQueryResponse::_internal_mutable_transaction() {
  7317. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7318. }
  7319. inline std::string* RunQueryResponse::release_transaction() {
  7320. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.transaction)
  7321. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7322. }
  7323. inline void RunQueryResponse::set_allocated_transaction(std::string* transaction) {
  7324. if (transaction != nullptr) {
  7325. } else {
  7326. }
  7327. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7328. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.transaction)
  7329. }
  7330. // .google.firestore.v1.Document document = 1;
  7331. inline bool RunQueryResponse::_internal_has_document() const {
  7332. return this != internal_default_instance() && document_ != nullptr;
  7333. }
  7334. inline bool RunQueryResponse::has_document() const {
  7335. return _internal_has_document();
  7336. }
  7337. inline const ::google::firestore::v1::Document& RunQueryResponse::_internal_document() const {
  7338. const ::google::firestore::v1::Document* p = document_;
  7339. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  7340. &::google::firestore::v1::_Document_default_instance_);
  7341. }
  7342. inline const ::google::firestore::v1::Document& RunQueryResponse::document() const {
  7343. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.document)
  7344. return _internal_document();
  7345. }
  7346. inline ::google::firestore::v1::Document* RunQueryResponse::release_document() {
  7347. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.document)
  7348. ::google::firestore::v1::Document* temp = document_;
  7349. document_ = nullptr;
  7350. return temp;
  7351. }
  7352. inline ::google::firestore::v1::Document* RunQueryResponse::_internal_mutable_document() {
  7353. if (document_ == nullptr) {
  7354. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  7355. document_ = p;
  7356. }
  7357. return document_;
  7358. }
  7359. inline ::google::firestore::v1::Document* RunQueryResponse::mutable_document() {
  7360. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.document)
  7361. return _internal_mutable_document();
  7362. }
  7363. inline void RunQueryResponse::set_allocated_document(::google::firestore::v1::Document* document) {
  7364. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7365. if (message_arena == nullptr) {
  7366. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  7367. }
  7368. if (document) {
  7369. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  7370. if (message_arena != submessage_arena) {
  7371. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7372. message_arena, document, submessage_arena);
  7373. }
  7374. } else {
  7375. }
  7376. document_ = document;
  7377. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.document)
  7378. }
  7379. // .google.protobuf.Timestamp read_time = 3;
  7380. inline bool RunQueryResponse::_internal_has_read_time() const {
  7381. return this != internal_default_instance() && read_time_ != nullptr;
  7382. }
  7383. inline bool RunQueryResponse::has_read_time() const {
  7384. return _internal_has_read_time();
  7385. }
  7386. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryResponse::_internal_read_time() const {
  7387. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  7388. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  7389. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7390. }
  7391. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryResponse::read_time() const {
  7392. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.read_time)
  7393. return _internal_read_time();
  7394. }
  7395. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::release_read_time() {
  7396. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.read_time)
  7397. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  7398. read_time_ = nullptr;
  7399. return temp;
  7400. }
  7401. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::_internal_mutable_read_time() {
  7402. if (read_time_ == nullptr) {
  7403. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  7404. read_time_ = p;
  7405. }
  7406. return read_time_;
  7407. }
  7408. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::mutable_read_time() {
  7409. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.read_time)
  7410. return _internal_mutable_read_time();
  7411. }
  7412. inline void RunQueryResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  7413. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7414. if (message_arena == nullptr) {
  7415. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  7416. }
  7417. if (read_time) {
  7418. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7419. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  7420. if (message_arena != submessage_arena) {
  7421. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7422. message_arena, read_time, submessage_arena);
  7423. }
  7424. } else {
  7425. }
  7426. read_time_ = read_time;
  7427. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.read_time)
  7428. }
  7429. // int32 skipped_results = 4;
  7430. inline void RunQueryResponse::clear_skipped_results() {
  7431. skipped_results_ = 0;
  7432. }
  7433. inline ::PROTOBUF_NAMESPACE_ID::int32 RunQueryResponse::_internal_skipped_results() const {
  7434. return skipped_results_;
  7435. }
  7436. inline ::PROTOBUF_NAMESPACE_ID::int32 RunQueryResponse::skipped_results() const {
  7437. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.skipped_results)
  7438. return _internal_skipped_results();
  7439. }
  7440. inline void RunQueryResponse::_internal_set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7441. skipped_results_ = value;
  7442. }
  7443. inline void RunQueryResponse::set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7444. _internal_set_skipped_results(value);
  7445. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.skipped_results)
  7446. }
  7447. // -------------------------------------------------------------------
  7448. // -------------------------------------------------------------------
  7449. // WriteRequest
  7450. // string database = 1;
  7451. inline void WriteRequest::clear_database() {
  7452. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7453. }
  7454. inline const std::string& WriteRequest::database() const {
  7455. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.database)
  7456. return _internal_database();
  7457. }
  7458. inline void WriteRequest::set_database(const std::string& value) {
  7459. _internal_set_database(value);
  7460. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.database)
  7461. }
  7462. inline std::string* WriteRequest::mutable_database() {
  7463. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.database)
  7464. return _internal_mutable_database();
  7465. }
  7466. inline const std::string& WriteRequest::_internal_database() const {
  7467. return database_.GetNoArena();
  7468. }
  7469. inline void WriteRequest::_internal_set_database(const std::string& value) {
  7470. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7471. }
  7472. inline void WriteRequest::set_database(std::string&& value) {
  7473. database_.SetNoArena(
  7474. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7475. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.database)
  7476. }
  7477. inline void WriteRequest::set_database(const char* value) {
  7478. GOOGLE_DCHECK(value != nullptr);
  7479. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7480. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.database)
  7481. }
  7482. inline void WriteRequest::set_database(const char* value, size_t size) {
  7483. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7484. ::std::string(reinterpret_cast<const char*>(value), size));
  7485. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.database)
  7486. }
  7487. inline std::string* WriteRequest::_internal_mutable_database() {
  7488. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7489. }
  7490. inline std::string* WriteRequest::release_database() {
  7491. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.database)
  7492. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7493. }
  7494. inline void WriteRequest::set_allocated_database(std::string* database) {
  7495. if (database != nullptr) {
  7496. } else {
  7497. }
  7498. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  7499. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.database)
  7500. }
  7501. // string stream_id = 2;
  7502. inline void WriteRequest::clear_stream_id() {
  7503. stream_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7504. }
  7505. inline const std::string& WriteRequest::stream_id() const {
  7506. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_id)
  7507. return _internal_stream_id();
  7508. }
  7509. inline void WriteRequest::set_stream_id(const std::string& value) {
  7510. _internal_set_stream_id(value);
  7511. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_id)
  7512. }
  7513. inline std::string* WriteRequest::mutable_stream_id() {
  7514. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_id)
  7515. return _internal_mutable_stream_id();
  7516. }
  7517. inline const std::string& WriteRequest::_internal_stream_id() const {
  7518. return stream_id_.GetNoArena();
  7519. }
  7520. inline void WriteRequest::_internal_set_stream_id(const std::string& value) {
  7521. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7522. }
  7523. inline void WriteRequest::set_stream_id(std::string&& value) {
  7524. stream_id_.SetNoArena(
  7525. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7526. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.stream_id)
  7527. }
  7528. inline void WriteRequest::set_stream_id(const char* value) {
  7529. GOOGLE_DCHECK(value != nullptr);
  7530. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7531. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.stream_id)
  7532. }
  7533. inline void WriteRequest::set_stream_id(const char* value, size_t size) {
  7534. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7535. ::std::string(reinterpret_cast<const char*>(value), size));
  7536. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.stream_id)
  7537. }
  7538. inline std::string* WriteRequest::_internal_mutable_stream_id() {
  7539. return stream_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7540. }
  7541. inline std::string* WriteRequest::release_stream_id() {
  7542. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_id)
  7543. return stream_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7544. }
  7545. inline void WriteRequest::set_allocated_stream_id(std::string* stream_id) {
  7546. if (stream_id != nullptr) {
  7547. } else {
  7548. }
  7549. stream_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_id);
  7550. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_id)
  7551. }
  7552. // repeated .google.firestore.v1.Write writes = 3;
  7553. inline int WriteRequest::_internal_writes_size() const {
  7554. return writes_.size();
  7555. }
  7556. inline int WriteRequest::writes_size() const {
  7557. return _internal_writes_size();
  7558. }
  7559. inline ::google::firestore::v1::Write* WriteRequest::mutable_writes(int index) {
  7560. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.writes)
  7561. return writes_.Mutable(index);
  7562. }
  7563. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  7564. WriteRequest::mutable_writes() {
  7565. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteRequest.writes)
  7566. return &writes_;
  7567. }
  7568. inline const ::google::firestore::v1::Write& WriteRequest::_internal_writes(int index) const {
  7569. return writes_.Get(index);
  7570. }
  7571. inline const ::google::firestore::v1::Write& WriteRequest::writes(int index) const {
  7572. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.writes)
  7573. return _internal_writes(index);
  7574. }
  7575. inline ::google::firestore::v1::Write* WriteRequest::_internal_add_writes() {
  7576. return writes_.Add();
  7577. }
  7578. inline ::google::firestore::v1::Write* WriteRequest::add_writes() {
  7579. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteRequest.writes)
  7580. return _internal_add_writes();
  7581. }
  7582. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  7583. WriteRequest::writes() const {
  7584. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteRequest.writes)
  7585. return writes_;
  7586. }
  7587. // bytes stream_token = 4;
  7588. inline void WriteRequest::clear_stream_token() {
  7589. stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7590. }
  7591. inline const std::string& WriteRequest::stream_token() const {
  7592. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_token)
  7593. return _internal_stream_token();
  7594. }
  7595. inline void WriteRequest::set_stream_token(const std::string& value) {
  7596. _internal_set_stream_token(value);
  7597. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_token)
  7598. }
  7599. inline std::string* WriteRequest::mutable_stream_token() {
  7600. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_token)
  7601. return _internal_mutable_stream_token();
  7602. }
  7603. inline const std::string& WriteRequest::_internal_stream_token() const {
  7604. return stream_token_.GetNoArena();
  7605. }
  7606. inline void WriteRequest::_internal_set_stream_token(const std::string& value) {
  7607. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7608. }
  7609. inline void WriteRequest::set_stream_token(std::string&& value) {
  7610. stream_token_.SetNoArena(
  7611. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7612. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.stream_token)
  7613. }
  7614. inline void WriteRequest::set_stream_token(const char* value) {
  7615. GOOGLE_DCHECK(value != nullptr);
  7616. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7617. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.stream_token)
  7618. }
  7619. inline void WriteRequest::set_stream_token(const void* value, size_t size) {
  7620. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7621. ::std::string(reinterpret_cast<const char*>(value), size));
  7622. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.stream_token)
  7623. }
  7624. inline std::string* WriteRequest::_internal_mutable_stream_token() {
  7625. return stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7626. }
  7627. inline std::string* WriteRequest::release_stream_token() {
  7628. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_token)
  7629. return stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7630. }
  7631. inline void WriteRequest::set_allocated_stream_token(std::string* stream_token) {
  7632. if (stream_token != nullptr) {
  7633. } else {
  7634. }
  7635. stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_token);
  7636. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_token)
  7637. }
  7638. // map<string, string> labels = 5;
  7639. inline int WriteRequest::_internal_labels_size() const {
  7640. return labels_.size();
  7641. }
  7642. inline int WriteRequest::labels_size() const {
  7643. return _internal_labels_size();
  7644. }
  7645. inline void WriteRequest::clear_labels() {
  7646. labels_.Clear();
  7647. }
  7648. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  7649. WriteRequest::_internal_labels() const {
  7650. return labels_.GetMap();
  7651. }
  7652. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  7653. WriteRequest::labels() const {
  7654. // @@protoc_insertion_point(field_map:google.firestore.v1.WriteRequest.labels)
  7655. return _internal_labels();
  7656. }
  7657. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  7658. WriteRequest::_internal_mutable_labels() {
  7659. return labels_.MutableMap();
  7660. }
  7661. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  7662. WriteRequest::mutable_labels() {
  7663. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.WriteRequest.labels)
  7664. return _internal_mutable_labels();
  7665. }
  7666. // -------------------------------------------------------------------
  7667. // WriteResponse
  7668. // string stream_id = 1;
  7669. inline void WriteResponse::clear_stream_id() {
  7670. stream_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7671. }
  7672. inline const std::string& WriteResponse::stream_id() const {
  7673. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_id)
  7674. return _internal_stream_id();
  7675. }
  7676. inline void WriteResponse::set_stream_id(const std::string& value) {
  7677. _internal_set_stream_id(value);
  7678. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_id)
  7679. }
  7680. inline std::string* WriteResponse::mutable_stream_id() {
  7681. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_id)
  7682. return _internal_mutable_stream_id();
  7683. }
  7684. inline const std::string& WriteResponse::_internal_stream_id() const {
  7685. return stream_id_.GetNoArena();
  7686. }
  7687. inline void WriteResponse::_internal_set_stream_id(const std::string& value) {
  7688. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7689. }
  7690. inline void WriteResponse::set_stream_id(std::string&& value) {
  7691. stream_id_.SetNoArena(
  7692. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7693. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteResponse.stream_id)
  7694. }
  7695. inline void WriteResponse::set_stream_id(const char* value) {
  7696. GOOGLE_DCHECK(value != nullptr);
  7697. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7698. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteResponse.stream_id)
  7699. }
  7700. inline void WriteResponse::set_stream_id(const char* value, size_t size) {
  7701. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7702. ::std::string(reinterpret_cast<const char*>(value), size));
  7703. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteResponse.stream_id)
  7704. }
  7705. inline std::string* WriteResponse::_internal_mutable_stream_id() {
  7706. return stream_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7707. }
  7708. inline std::string* WriteResponse::release_stream_id() {
  7709. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_id)
  7710. return stream_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7711. }
  7712. inline void WriteResponse::set_allocated_stream_id(std::string* stream_id) {
  7713. if (stream_id != nullptr) {
  7714. } else {
  7715. }
  7716. stream_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_id);
  7717. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_id)
  7718. }
  7719. // bytes stream_token = 2;
  7720. inline void WriteResponse::clear_stream_token() {
  7721. stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7722. }
  7723. inline const std::string& WriteResponse::stream_token() const {
  7724. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_token)
  7725. return _internal_stream_token();
  7726. }
  7727. inline void WriteResponse::set_stream_token(const std::string& value) {
  7728. _internal_set_stream_token(value);
  7729. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_token)
  7730. }
  7731. inline std::string* WriteResponse::mutable_stream_token() {
  7732. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_token)
  7733. return _internal_mutable_stream_token();
  7734. }
  7735. inline const std::string& WriteResponse::_internal_stream_token() const {
  7736. return stream_token_.GetNoArena();
  7737. }
  7738. inline void WriteResponse::_internal_set_stream_token(const std::string& value) {
  7739. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7740. }
  7741. inline void WriteResponse::set_stream_token(std::string&& value) {
  7742. stream_token_.SetNoArena(
  7743. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7744. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteResponse.stream_token)
  7745. }
  7746. inline void WriteResponse::set_stream_token(const char* value) {
  7747. GOOGLE_DCHECK(value != nullptr);
  7748. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7749. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteResponse.stream_token)
  7750. }
  7751. inline void WriteResponse::set_stream_token(const void* value, size_t size) {
  7752. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7753. ::std::string(reinterpret_cast<const char*>(value), size));
  7754. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteResponse.stream_token)
  7755. }
  7756. inline std::string* WriteResponse::_internal_mutable_stream_token() {
  7757. return stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7758. }
  7759. inline std::string* WriteResponse::release_stream_token() {
  7760. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_token)
  7761. return stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7762. }
  7763. inline void WriteResponse::set_allocated_stream_token(std::string* stream_token) {
  7764. if (stream_token != nullptr) {
  7765. } else {
  7766. }
  7767. stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_token);
  7768. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_token)
  7769. }
  7770. // repeated .google.firestore.v1.WriteResult write_results = 3;
  7771. inline int WriteResponse::_internal_write_results_size() const {
  7772. return write_results_.size();
  7773. }
  7774. inline int WriteResponse::write_results_size() const {
  7775. return _internal_write_results_size();
  7776. }
  7777. inline ::google::firestore::v1::WriteResult* WriteResponse::mutable_write_results(int index) {
  7778. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.write_results)
  7779. return write_results_.Mutable(index);
  7780. }
  7781. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  7782. WriteResponse::mutable_write_results() {
  7783. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteResponse.write_results)
  7784. return &write_results_;
  7785. }
  7786. inline const ::google::firestore::v1::WriteResult& WriteResponse::_internal_write_results(int index) const {
  7787. return write_results_.Get(index);
  7788. }
  7789. inline const ::google::firestore::v1::WriteResult& WriteResponse::write_results(int index) const {
  7790. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.write_results)
  7791. return _internal_write_results(index);
  7792. }
  7793. inline ::google::firestore::v1::WriteResult* WriteResponse::_internal_add_write_results() {
  7794. return write_results_.Add();
  7795. }
  7796. inline ::google::firestore::v1::WriteResult* WriteResponse::add_write_results() {
  7797. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteResponse.write_results)
  7798. return _internal_add_write_results();
  7799. }
  7800. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  7801. WriteResponse::write_results() const {
  7802. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteResponse.write_results)
  7803. return write_results_;
  7804. }
  7805. // .google.protobuf.Timestamp commit_time = 4;
  7806. inline bool WriteResponse::_internal_has_commit_time() const {
  7807. return this != internal_default_instance() && commit_time_ != nullptr;
  7808. }
  7809. inline bool WriteResponse::has_commit_time() const {
  7810. return _internal_has_commit_time();
  7811. }
  7812. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResponse::_internal_commit_time() const {
  7813. const PROTOBUF_NAMESPACE_ID::Timestamp* p = commit_time_;
  7814. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  7815. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7816. }
  7817. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResponse::commit_time() const {
  7818. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.commit_time)
  7819. return _internal_commit_time();
  7820. }
  7821. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::release_commit_time() {
  7822. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.commit_time)
  7823. PROTOBUF_NAMESPACE_ID::Timestamp* temp = commit_time_;
  7824. commit_time_ = nullptr;
  7825. return temp;
  7826. }
  7827. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::_internal_mutable_commit_time() {
  7828. if (commit_time_ == nullptr) {
  7829. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  7830. commit_time_ = p;
  7831. }
  7832. return commit_time_;
  7833. }
  7834. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::mutable_commit_time() {
  7835. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.commit_time)
  7836. return _internal_mutable_commit_time();
  7837. }
  7838. inline void WriteResponse::set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time) {
  7839. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7840. if (message_arena == nullptr) {
  7841. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time_);
  7842. }
  7843. if (commit_time) {
  7844. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7845. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time)->GetArena();
  7846. if (message_arena != submessage_arena) {
  7847. commit_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7848. message_arena, commit_time, submessage_arena);
  7849. }
  7850. } else {
  7851. }
  7852. commit_time_ = commit_time;
  7853. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.commit_time)
  7854. }
  7855. // -------------------------------------------------------------------
  7856. // -------------------------------------------------------------------
  7857. // ListenRequest
  7858. // string database = 1;
  7859. inline void ListenRequest::clear_database() {
  7860. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7861. }
  7862. inline const std::string& ListenRequest::database() const {
  7863. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.database)
  7864. return _internal_database();
  7865. }
  7866. inline void ListenRequest::set_database(const std::string& value) {
  7867. _internal_set_database(value);
  7868. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.database)
  7869. }
  7870. inline std::string* ListenRequest::mutable_database() {
  7871. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.database)
  7872. return _internal_mutable_database();
  7873. }
  7874. inline const std::string& ListenRequest::_internal_database() const {
  7875. return database_.GetNoArena();
  7876. }
  7877. inline void ListenRequest::_internal_set_database(const std::string& value) {
  7878. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7879. }
  7880. inline void ListenRequest::set_database(std::string&& value) {
  7881. database_.SetNoArena(
  7882. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7883. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListenRequest.database)
  7884. }
  7885. inline void ListenRequest::set_database(const char* value) {
  7886. GOOGLE_DCHECK(value != nullptr);
  7887. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7888. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListenRequest.database)
  7889. }
  7890. inline void ListenRequest::set_database(const char* value, size_t size) {
  7891. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7892. ::std::string(reinterpret_cast<const char*>(value), size));
  7893. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListenRequest.database)
  7894. }
  7895. inline std::string* ListenRequest::_internal_mutable_database() {
  7896. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7897. }
  7898. inline std::string* ListenRequest::release_database() {
  7899. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.database)
  7900. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7901. }
  7902. inline void ListenRequest::set_allocated_database(std::string* database) {
  7903. if (database != nullptr) {
  7904. } else {
  7905. }
  7906. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  7907. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenRequest.database)
  7908. }
  7909. // .google.firestore.v1.Target add_target = 2;
  7910. inline bool ListenRequest::_internal_has_add_target() const {
  7911. return target_change_case() == kAddTarget;
  7912. }
  7913. inline bool ListenRequest::has_add_target() const {
  7914. return _internal_has_add_target();
  7915. }
  7916. inline void ListenRequest::set_has_add_target() {
  7917. _oneof_case_[0] = kAddTarget;
  7918. }
  7919. inline void ListenRequest::clear_add_target() {
  7920. if (_internal_has_add_target()) {
  7921. delete target_change_.add_target_;
  7922. clear_has_target_change();
  7923. }
  7924. }
  7925. inline ::google::firestore::v1::Target* ListenRequest::release_add_target() {
  7926. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.add_target)
  7927. if (_internal_has_add_target()) {
  7928. clear_has_target_change();
  7929. ::google::firestore::v1::Target* temp = target_change_.add_target_;
  7930. target_change_.add_target_ = nullptr;
  7931. return temp;
  7932. } else {
  7933. return nullptr;
  7934. }
  7935. }
  7936. inline const ::google::firestore::v1::Target& ListenRequest::_internal_add_target() const {
  7937. return _internal_has_add_target()
  7938. ? *target_change_.add_target_
  7939. : *reinterpret_cast< ::google::firestore::v1::Target*>(&::google::firestore::v1::_Target_default_instance_);
  7940. }
  7941. inline const ::google::firestore::v1::Target& ListenRequest::add_target() const {
  7942. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.add_target)
  7943. return _internal_add_target();
  7944. }
  7945. inline ::google::firestore::v1::Target* ListenRequest::_internal_mutable_add_target() {
  7946. if (!_internal_has_add_target()) {
  7947. clear_target_change();
  7948. set_has_add_target();
  7949. target_change_.add_target_ = CreateMaybeMessage< ::google::firestore::v1::Target >(
  7950. GetArenaNoVirtual());
  7951. }
  7952. return target_change_.add_target_;
  7953. }
  7954. inline ::google::firestore::v1::Target* ListenRequest::mutable_add_target() {
  7955. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.add_target)
  7956. return _internal_mutable_add_target();
  7957. }
  7958. // int32 remove_target = 3;
  7959. inline bool ListenRequest::_internal_has_remove_target() const {
  7960. return target_change_case() == kRemoveTarget;
  7961. }
  7962. inline void ListenRequest::set_has_remove_target() {
  7963. _oneof_case_[0] = kRemoveTarget;
  7964. }
  7965. inline void ListenRequest::clear_remove_target() {
  7966. if (_internal_has_remove_target()) {
  7967. target_change_.remove_target_ = 0;
  7968. clear_has_target_change();
  7969. }
  7970. }
  7971. inline ::PROTOBUF_NAMESPACE_ID::int32 ListenRequest::_internal_remove_target() const {
  7972. if (_internal_has_remove_target()) {
  7973. return target_change_.remove_target_;
  7974. }
  7975. return 0;
  7976. }
  7977. inline void ListenRequest::_internal_set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7978. if (!_internal_has_remove_target()) {
  7979. clear_target_change();
  7980. set_has_remove_target();
  7981. }
  7982. target_change_.remove_target_ = value;
  7983. }
  7984. inline ::PROTOBUF_NAMESPACE_ID::int32 ListenRequest::remove_target() const {
  7985. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.remove_target)
  7986. return _internal_remove_target();
  7987. }
  7988. inline void ListenRequest::set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7989. _internal_set_remove_target(value);
  7990. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.remove_target)
  7991. }
  7992. // map<string, string> labels = 4;
  7993. inline int ListenRequest::_internal_labels_size() const {
  7994. return labels_.size();
  7995. }
  7996. inline int ListenRequest::labels_size() const {
  7997. return _internal_labels_size();
  7998. }
  7999. inline void ListenRequest::clear_labels() {
  8000. labels_.Clear();
  8001. }
  8002. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8003. ListenRequest::_internal_labels() const {
  8004. return labels_.GetMap();
  8005. }
  8006. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8007. ListenRequest::labels() const {
  8008. // @@protoc_insertion_point(field_map:google.firestore.v1.ListenRequest.labels)
  8009. return _internal_labels();
  8010. }
  8011. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8012. ListenRequest::_internal_mutable_labels() {
  8013. return labels_.MutableMap();
  8014. }
  8015. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8016. ListenRequest::mutable_labels() {
  8017. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.ListenRequest.labels)
  8018. return _internal_mutable_labels();
  8019. }
  8020. inline bool ListenRequest::has_target_change() const {
  8021. return target_change_case() != TARGET_CHANGE_NOT_SET;
  8022. }
  8023. inline void ListenRequest::clear_has_target_change() {
  8024. _oneof_case_[0] = TARGET_CHANGE_NOT_SET;
  8025. }
  8026. inline ListenRequest::TargetChangeCase ListenRequest::target_change_case() const {
  8027. return ListenRequest::TargetChangeCase(_oneof_case_[0]);
  8028. }
  8029. // -------------------------------------------------------------------
  8030. // ListenResponse
  8031. // .google.firestore.v1.TargetChange target_change = 2;
  8032. inline bool ListenResponse::_internal_has_target_change() const {
  8033. return response_type_case() == kTargetChange;
  8034. }
  8035. inline bool ListenResponse::has_target_change() const {
  8036. return _internal_has_target_change();
  8037. }
  8038. inline void ListenResponse::set_has_target_change() {
  8039. _oneof_case_[0] = kTargetChange;
  8040. }
  8041. inline void ListenResponse::clear_target_change() {
  8042. if (_internal_has_target_change()) {
  8043. delete response_type_.target_change_;
  8044. clear_has_response_type();
  8045. }
  8046. }
  8047. inline ::google::firestore::v1::TargetChange* ListenResponse::release_target_change() {
  8048. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.target_change)
  8049. if (_internal_has_target_change()) {
  8050. clear_has_response_type();
  8051. ::google::firestore::v1::TargetChange* temp = response_type_.target_change_;
  8052. response_type_.target_change_ = nullptr;
  8053. return temp;
  8054. } else {
  8055. return nullptr;
  8056. }
  8057. }
  8058. inline const ::google::firestore::v1::TargetChange& ListenResponse::_internal_target_change() const {
  8059. return _internal_has_target_change()
  8060. ? *response_type_.target_change_
  8061. : *reinterpret_cast< ::google::firestore::v1::TargetChange*>(&::google::firestore::v1::_TargetChange_default_instance_);
  8062. }
  8063. inline const ::google::firestore::v1::TargetChange& ListenResponse::target_change() const {
  8064. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.target_change)
  8065. return _internal_target_change();
  8066. }
  8067. inline ::google::firestore::v1::TargetChange* ListenResponse::_internal_mutable_target_change() {
  8068. if (!_internal_has_target_change()) {
  8069. clear_response_type();
  8070. set_has_target_change();
  8071. response_type_.target_change_ = CreateMaybeMessage< ::google::firestore::v1::TargetChange >(
  8072. GetArenaNoVirtual());
  8073. }
  8074. return response_type_.target_change_;
  8075. }
  8076. inline ::google::firestore::v1::TargetChange* ListenResponse::mutable_target_change() {
  8077. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.target_change)
  8078. return _internal_mutable_target_change();
  8079. }
  8080. // .google.firestore.v1.DocumentChange document_change = 3;
  8081. inline bool ListenResponse::_internal_has_document_change() const {
  8082. return response_type_case() == kDocumentChange;
  8083. }
  8084. inline bool ListenResponse::has_document_change() const {
  8085. return _internal_has_document_change();
  8086. }
  8087. inline void ListenResponse::set_has_document_change() {
  8088. _oneof_case_[0] = kDocumentChange;
  8089. }
  8090. inline ::google::firestore::v1::DocumentChange* ListenResponse::release_document_change() {
  8091. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_change)
  8092. if (_internal_has_document_change()) {
  8093. clear_has_response_type();
  8094. ::google::firestore::v1::DocumentChange* temp = response_type_.document_change_;
  8095. response_type_.document_change_ = nullptr;
  8096. return temp;
  8097. } else {
  8098. return nullptr;
  8099. }
  8100. }
  8101. inline const ::google::firestore::v1::DocumentChange& ListenResponse::_internal_document_change() const {
  8102. return _internal_has_document_change()
  8103. ? *response_type_.document_change_
  8104. : *reinterpret_cast< ::google::firestore::v1::DocumentChange*>(&::google::firestore::v1::_DocumentChange_default_instance_);
  8105. }
  8106. inline const ::google::firestore::v1::DocumentChange& ListenResponse::document_change() const {
  8107. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_change)
  8108. return _internal_document_change();
  8109. }
  8110. inline ::google::firestore::v1::DocumentChange* ListenResponse::_internal_mutable_document_change() {
  8111. if (!_internal_has_document_change()) {
  8112. clear_response_type();
  8113. set_has_document_change();
  8114. response_type_.document_change_ = CreateMaybeMessage< ::google::firestore::v1::DocumentChange >(
  8115. GetArenaNoVirtual());
  8116. }
  8117. return response_type_.document_change_;
  8118. }
  8119. inline ::google::firestore::v1::DocumentChange* ListenResponse::mutable_document_change() {
  8120. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_change)
  8121. return _internal_mutable_document_change();
  8122. }
  8123. // .google.firestore.v1.DocumentDelete document_delete = 4;
  8124. inline bool ListenResponse::_internal_has_document_delete() const {
  8125. return response_type_case() == kDocumentDelete;
  8126. }
  8127. inline bool ListenResponse::has_document_delete() const {
  8128. return _internal_has_document_delete();
  8129. }
  8130. inline void ListenResponse::set_has_document_delete() {
  8131. _oneof_case_[0] = kDocumentDelete;
  8132. }
  8133. inline ::google::firestore::v1::DocumentDelete* ListenResponse::release_document_delete() {
  8134. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_delete)
  8135. if (_internal_has_document_delete()) {
  8136. clear_has_response_type();
  8137. ::google::firestore::v1::DocumentDelete* temp = response_type_.document_delete_;
  8138. response_type_.document_delete_ = nullptr;
  8139. return temp;
  8140. } else {
  8141. return nullptr;
  8142. }
  8143. }
  8144. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::_internal_document_delete() const {
  8145. return _internal_has_document_delete()
  8146. ? *response_type_.document_delete_
  8147. : *reinterpret_cast< ::google::firestore::v1::DocumentDelete*>(&::google::firestore::v1::_DocumentDelete_default_instance_);
  8148. }
  8149. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::document_delete() const {
  8150. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_delete)
  8151. return _internal_document_delete();
  8152. }
  8153. inline ::google::firestore::v1::DocumentDelete* ListenResponse::_internal_mutable_document_delete() {
  8154. if (!_internal_has_document_delete()) {
  8155. clear_response_type();
  8156. set_has_document_delete();
  8157. response_type_.document_delete_ = CreateMaybeMessage< ::google::firestore::v1::DocumentDelete >(
  8158. GetArenaNoVirtual());
  8159. }
  8160. return response_type_.document_delete_;
  8161. }
  8162. inline ::google::firestore::v1::DocumentDelete* ListenResponse::mutable_document_delete() {
  8163. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_delete)
  8164. return _internal_mutable_document_delete();
  8165. }
  8166. // .google.firestore.v1.DocumentRemove document_remove = 6;
  8167. inline bool ListenResponse::_internal_has_document_remove() const {
  8168. return response_type_case() == kDocumentRemove;
  8169. }
  8170. inline bool ListenResponse::has_document_remove() const {
  8171. return _internal_has_document_remove();
  8172. }
  8173. inline void ListenResponse::set_has_document_remove() {
  8174. _oneof_case_[0] = kDocumentRemove;
  8175. }
  8176. inline ::google::firestore::v1::DocumentRemove* ListenResponse::release_document_remove() {
  8177. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_remove)
  8178. if (_internal_has_document_remove()) {
  8179. clear_has_response_type();
  8180. ::google::firestore::v1::DocumentRemove* temp = response_type_.document_remove_;
  8181. response_type_.document_remove_ = nullptr;
  8182. return temp;
  8183. } else {
  8184. return nullptr;
  8185. }
  8186. }
  8187. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::_internal_document_remove() const {
  8188. return _internal_has_document_remove()
  8189. ? *response_type_.document_remove_
  8190. : *reinterpret_cast< ::google::firestore::v1::DocumentRemove*>(&::google::firestore::v1::_DocumentRemove_default_instance_);
  8191. }
  8192. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::document_remove() const {
  8193. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_remove)
  8194. return _internal_document_remove();
  8195. }
  8196. inline ::google::firestore::v1::DocumentRemove* ListenResponse::_internal_mutable_document_remove() {
  8197. if (!_internal_has_document_remove()) {
  8198. clear_response_type();
  8199. set_has_document_remove();
  8200. response_type_.document_remove_ = CreateMaybeMessage< ::google::firestore::v1::DocumentRemove >(
  8201. GetArenaNoVirtual());
  8202. }
  8203. return response_type_.document_remove_;
  8204. }
  8205. inline ::google::firestore::v1::DocumentRemove* ListenResponse::mutable_document_remove() {
  8206. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_remove)
  8207. return _internal_mutable_document_remove();
  8208. }
  8209. // .google.firestore.v1.ExistenceFilter filter = 5;
  8210. inline bool ListenResponse::_internal_has_filter() const {
  8211. return response_type_case() == kFilter;
  8212. }
  8213. inline bool ListenResponse::has_filter() const {
  8214. return _internal_has_filter();
  8215. }
  8216. inline void ListenResponse::set_has_filter() {
  8217. _oneof_case_[0] = kFilter;
  8218. }
  8219. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::release_filter() {
  8220. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.filter)
  8221. if (_internal_has_filter()) {
  8222. clear_has_response_type();
  8223. ::google::firestore::v1::ExistenceFilter* temp = response_type_.filter_;
  8224. response_type_.filter_ = nullptr;
  8225. return temp;
  8226. } else {
  8227. return nullptr;
  8228. }
  8229. }
  8230. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::_internal_filter() const {
  8231. return _internal_has_filter()
  8232. ? *response_type_.filter_
  8233. : *reinterpret_cast< ::google::firestore::v1::ExistenceFilter*>(&::google::firestore::v1::_ExistenceFilter_default_instance_);
  8234. }
  8235. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::filter() const {
  8236. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.filter)
  8237. return _internal_filter();
  8238. }
  8239. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::_internal_mutable_filter() {
  8240. if (!_internal_has_filter()) {
  8241. clear_response_type();
  8242. set_has_filter();
  8243. response_type_.filter_ = CreateMaybeMessage< ::google::firestore::v1::ExistenceFilter >(
  8244. GetArenaNoVirtual());
  8245. }
  8246. return response_type_.filter_;
  8247. }
  8248. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::mutable_filter() {
  8249. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.filter)
  8250. return _internal_mutable_filter();
  8251. }
  8252. inline bool ListenResponse::has_response_type() const {
  8253. return response_type_case() != RESPONSE_TYPE_NOT_SET;
  8254. }
  8255. inline void ListenResponse::clear_has_response_type() {
  8256. _oneof_case_[0] = RESPONSE_TYPE_NOT_SET;
  8257. }
  8258. inline ListenResponse::ResponseTypeCase ListenResponse::response_type_case() const {
  8259. return ListenResponse::ResponseTypeCase(_oneof_case_[0]);
  8260. }
  8261. // -------------------------------------------------------------------
  8262. // Target_DocumentsTarget
  8263. // repeated string documents = 2;
  8264. inline int Target_DocumentsTarget::_internal_documents_size() const {
  8265. return documents_.size();
  8266. }
  8267. inline int Target_DocumentsTarget::documents_size() const {
  8268. return _internal_documents_size();
  8269. }
  8270. inline void Target_DocumentsTarget::clear_documents() {
  8271. documents_.Clear();
  8272. }
  8273. inline std::string* Target_DocumentsTarget::add_documents() {
  8274. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  8275. return _internal_add_documents();
  8276. }
  8277. inline const std::string& Target_DocumentsTarget::_internal_documents(int index) const {
  8278. return documents_.Get(index);
  8279. }
  8280. inline const std::string& Target_DocumentsTarget::documents(int index) const {
  8281. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.DocumentsTarget.documents)
  8282. return _internal_documents(index);
  8283. }
  8284. inline std::string* Target_DocumentsTarget::mutable_documents(int index) {
  8285. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  8286. return documents_.Mutable(index);
  8287. }
  8288. inline void Target_DocumentsTarget::set_documents(int index, const std::string& value) {
  8289. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  8290. documents_.Mutable(index)->assign(value);
  8291. }
  8292. inline void Target_DocumentsTarget::set_documents(int index, std::string&& value) {
  8293. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  8294. documents_.Mutable(index)->assign(std::move(value));
  8295. }
  8296. inline void Target_DocumentsTarget::set_documents(int index, const char* value) {
  8297. GOOGLE_DCHECK(value != nullptr);
  8298. documents_.Mutable(index)->assign(value);
  8299. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.DocumentsTarget.documents)
  8300. }
  8301. inline void Target_DocumentsTarget::set_documents(int index, const char* value, size_t size) {
  8302. documents_.Mutable(index)->assign(
  8303. reinterpret_cast<const char*>(value), size);
  8304. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  8305. }
  8306. inline std::string* Target_DocumentsTarget::_internal_add_documents() {
  8307. return documents_.Add();
  8308. }
  8309. inline void Target_DocumentsTarget::add_documents(const std::string& value) {
  8310. documents_.Add()->assign(value);
  8311. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  8312. }
  8313. inline void Target_DocumentsTarget::add_documents(std::string&& value) {
  8314. documents_.Add(std::move(value));
  8315. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  8316. }
  8317. inline void Target_DocumentsTarget::add_documents(const char* value) {
  8318. GOOGLE_DCHECK(value != nullptr);
  8319. documents_.Add()->assign(value);
  8320. // @@protoc_insertion_point(field_add_char:google.firestore.v1.Target.DocumentsTarget.documents)
  8321. }
  8322. inline void Target_DocumentsTarget::add_documents(const char* value, size_t size) {
  8323. documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
  8324. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  8325. }
  8326. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  8327. Target_DocumentsTarget::documents() const {
  8328. // @@protoc_insertion_point(field_list:google.firestore.v1.Target.DocumentsTarget.documents)
  8329. return documents_;
  8330. }
  8331. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  8332. Target_DocumentsTarget::mutable_documents() {
  8333. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Target.DocumentsTarget.documents)
  8334. return &documents_;
  8335. }
  8336. // -------------------------------------------------------------------
  8337. // Target_QueryTarget
  8338. // string parent = 1;
  8339. inline void Target_QueryTarget::clear_parent() {
  8340. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8341. }
  8342. inline const std::string& Target_QueryTarget::parent() const {
  8343. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.parent)
  8344. return _internal_parent();
  8345. }
  8346. inline void Target_QueryTarget::set_parent(const std::string& value) {
  8347. _internal_set_parent(value);
  8348. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.QueryTarget.parent)
  8349. }
  8350. inline std::string* Target_QueryTarget::mutable_parent() {
  8351. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.parent)
  8352. return _internal_mutable_parent();
  8353. }
  8354. inline const std::string& Target_QueryTarget::_internal_parent() const {
  8355. return parent_.GetNoArena();
  8356. }
  8357. inline void Target_QueryTarget::_internal_set_parent(const std::string& value) {
  8358. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8359. }
  8360. inline void Target_QueryTarget::set_parent(std::string&& value) {
  8361. parent_.SetNoArena(
  8362. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8363. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Target.QueryTarget.parent)
  8364. }
  8365. inline void Target_QueryTarget::set_parent(const char* value) {
  8366. GOOGLE_DCHECK(value != nullptr);
  8367. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8368. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.QueryTarget.parent)
  8369. }
  8370. inline void Target_QueryTarget::set_parent(const char* value, size_t size) {
  8371. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8372. ::std::string(reinterpret_cast<const char*>(value), size));
  8373. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.QueryTarget.parent)
  8374. }
  8375. inline std::string* Target_QueryTarget::_internal_mutable_parent() {
  8376. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8377. }
  8378. inline std::string* Target_QueryTarget::release_parent() {
  8379. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.parent)
  8380. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8381. }
  8382. inline void Target_QueryTarget::set_allocated_parent(std::string* parent) {
  8383. if (parent != nullptr) {
  8384. } else {
  8385. }
  8386. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  8387. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.QueryTarget.parent)
  8388. }
  8389. // .google.firestore.v1.StructuredQuery structured_query = 2;
  8390. inline bool Target_QueryTarget::_internal_has_structured_query() const {
  8391. return query_type_case() == kStructuredQuery;
  8392. }
  8393. inline bool Target_QueryTarget::has_structured_query() const {
  8394. return _internal_has_structured_query();
  8395. }
  8396. inline void Target_QueryTarget::set_has_structured_query() {
  8397. _oneof_case_[0] = kStructuredQuery;
  8398. }
  8399. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::release_structured_query() {
  8400. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.structured_query)
  8401. if (_internal_has_structured_query()) {
  8402. clear_has_query_type();
  8403. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  8404. query_type_.structured_query_ = nullptr;
  8405. return temp;
  8406. } else {
  8407. return nullptr;
  8408. }
  8409. }
  8410. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::_internal_structured_query() const {
  8411. return _internal_has_structured_query()
  8412. ? *query_type_.structured_query_
  8413. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  8414. }
  8415. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::structured_query() const {
  8416. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.structured_query)
  8417. return _internal_structured_query();
  8418. }
  8419. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::_internal_mutable_structured_query() {
  8420. if (!_internal_has_structured_query()) {
  8421. clear_query_type();
  8422. set_has_structured_query();
  8423. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  8424. GetArenaNoVirtual());
  8425. }
  8426. return query_type_.structured_query_;
  8427. }
  8428. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::mutable_structured_query() {
  8429. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.structured_query)
  8430. return _internal_mutable_structured_query();
  8431. }
  8432. inline bool Target_QueryTarget::has_query_type() const {
  8433. return query_type_case() != QUERY_TYPE_NOT_SET;
  8434. }
  8435. inline void Target_QueryTarget::clear_has_query_type() {
  8436. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  8437. }
  8438. inline Target_QueryTarget::QueryTypeCase Target_QueryTarget::query_type_case() const {
  8439. return Target_QueryTarget::QueryTypeCase(_oneof_case_[0]);
  8440. }
  8441. // -------------------------------------------------------------------
  8442. // Target
  8443. // .google.firestore.v1.Target.QueryTarget query = 2;
  8444. inline bool Target::_internal_has_query() const {
  8445. return target_type_case() == kQuery;
  8446. }
  8447. inline bool Target::has_query() const {
  8448. return _internal_has_query();
  8449. }
  8450. inline void Target::set_has_query() {
  8451. _oneof_case_[0] = kQuery;
  8452. }
  8453. inline void Target::clear_query() {
  8454. if (_internal_has_query()) {
  8455. delete target_type_.query_;
  8456. clear_has_target_type();
  8457. }
  8458. }
  8459. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  8460. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.query)
  8461. if (_internal_has_query()) {
  8462. clear_has_target_type();
  8463. ::google::firestore::v1::Target_QueryTarget* temp = target_type_.query_;
  8464. target_type_.query_ = nullptr;
  8465. return temp;
  8466. } else {
  8467. return nullptr;
  8468. }
  8469. }
  8470. inline const ::google::firestore::v1::Target_QueryTarget& Target::_internal_query() const {
  8471. return _internal_has_query()
  8472. ? *target_type_.query_
  8473. : *reinterpret_cast< ::google::firestore::v1::Target_QueryTarget*>(&::google::firestore::v1::_Target_QueryTarget_default_instance_);
  8474. }
  8475. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const {
  8476. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.query)
  8477. return _internal_query();
  8478. }
  8479. inline ::google::firestore::v1::Target_QueryTarget* Target::_internal_mutable_query() {
  8480. if (!_internal_has_query()) {
  8481. clear_target_type();
  8482. set_has_query();
  8483. target_type_.query_ = CreateMaybeMessage< ::google::firestore::v1::Target_QueryTarget >(
  8484. GetArenaNoVirtual());
  8485. }
  8486. return target_type_.query_;
  8487. }
  8488. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() {
  8489. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.query)
  8490. return _internal_mutable_query();
  8491. }
  8492. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  8493. inline bool Target::_internal_has_documents() const {
  8494. return target_type_case() == kDocuments;
  8495. }
  8496. inline bool Target::has_documents() const {
  8497. return _internal_has_documents();
  8498. }
  8499. inline void Target::set_has_documents() {
  8500. _oneof_case_[0] = kDocuments;
  8501. }
  8502. inline void Target::clear_documents() {
  8503. if (_internal_has_documents()) {
  8504. delete target_type_.documents_;
  8505. clear_has_target_type();
  8506. }
  8507. }
  8508. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  8509. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.documents)
  8510. if (_internal_has_documents()) {
  8511. clear_has_target_type();
  8512. ::google::firestore::v1::Target_DocumentsTarget* temp = target_type_.documents_;
  8513. target_type_.documents_ = nullptr;
  8514. return temp;
  8515. } else {
  8516. return nullptr;
  8517. }
  8518. }
  8519. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::_internal_documents() const {
  8520. return _internal_has_documents()
  8521. ? *target_type_.documents_
  8522. : *reinterpret_cast< ::google::firestore::v1::Target_DocumentsTarget*>(&::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  8523. }
  8524. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const {
  8525. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.documents)
  8526. return _internal_documents();
  8527. }
  8528. inline ::google::firestore::v1::Target_DocumentsTarget* Target::_internal_mutable_documents() {
  8529. if (!_internal_has_documents()) {
  8530. clear_target_type();
  8531. set_has_documents();
  8532. target_type_.documents_ = CreateMaybeMessage< ::google::firestore::v1::Target_DocumentsTarget >(
  8533. GetArenaNoVirtual());
  8534. }
  8535. return target_type_.documents_;
  8536. }
  8537. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() {
  8538. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.documents)
  8539. return _internal_mutable_documents();
  8540. }
  8541. // bytes resume_token = 4;
  8542. inline bool Target::_internal_has_resume_token() const {
  8543. return resume_type_case() == kResumeToken;
  8544. }
  8545. inline void Target::set_has_resume_token() {
  8546. _oneof_case_[1] = kResumeToken;
  8547. }
  8548. inline void Target::clear_resume_token() {
  8549. if (_internal_has_resume_token()) {
  8550. resume_type_.resume_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8551. clear_has_resume_type();
  8552. }
  8553. }
  8554. inline const std::string& Target::resume_token() const {
  8555. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.resume_token)
  8556. return _internal_resume_token();
  8557. }
  8558. inline void Target::set_resume_token(const std::string& value) {
  8559. _internal_set_resume_token(value);
  8560. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  8561. }
  8562. inline std::string* Target::mutable_resume_token() {
  8563. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.resume_token)
  8564. return _internal_mutable_resume_token();
  8565. }
  8566. inline const std::string& Target::_internal_resume_token() const {
  8567. if (_internal_has_resume_token()) {
  8568. return resume_type_.resume_token_.GetNoArena();
  8569. }
  8570. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  8571. }
  8572. inline void Target::_internal_set_resume_token(const std::string& value) {
  8573. if (!_internal_has_resume_token()) {
  8574. clear_resume_type();
  8575. set_has_resume_token();
  8576. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8577. }
  8578. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8579. }
  8580. inline void Target::set_resume_token(std::string&& value) {
  8581. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  8582. if (!_internal_has_resume_token()) {
  8583. clear_resume_type();
  8584. set_has_resume_token();
  8585. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8586. }
  8587. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8588. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Target.resume_token)
  8589. }
  8590. inline void Target::set_resume_token(const char* value) {
  8591. GOOGLE_DCHECK(value != nullptr);
  8592. if (!_internal_has_resume_token()) {
  8593. clear_resume_type();
  8594. set_has_resume_token();
  8595. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8596. }
  8597. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8598. ::std::string(value));
  8599. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.resume_token)
  8600. }
  8601. inline void Target::set_resume_token(const void* value, size_t size) {
  8602. if (!_internal_has_resume_token()) {
  8603. clear_resume_type();
  8604. set_has_resume_token();
  8605. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8606. }
  8607. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8608. reinterpret_cast<const char*>(value), size));
  8609. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.resume_token)
  8610. }
  8611. inline std::string* Target::_internal_mutable_resume_token() {
  8612. if (!_internal_has_resume_token()) {
  8613. clear_resume_type();
  8614. set_has_resume_token();
  8615. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8616. }
  8617. return resume_type_.resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8618. }
  8619. inline std::string* Target::release_resume_token() {
  8620. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.resume_token)
  8621. if (_internal_has_resume_token()) {
  8622. clear_has_resume_type();
  8623. return resume_type_.resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8624. } else {
  8625. return nullptr;
  8626. }
  8627. }
  8628. inline void Target::set_allocated_resume_token(std::string* resume_token) {
  8629. if (has_resume_type()) {
  8630. clear_resume_type();
  8631. }
  8632. if (resume_token != nullptr) {
  8633. set_has_resume_token();
  8634. resume_type_.resume_token_.UnsafeSetDefault(resume_token);
  8635. }
  8636. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.resume_token)
  8637. }
  8638. // .google.protobuf.Timestamp read_time = 11;
  8639. inline bool Target::_internal_has_read_time() const {
  8640. return resume_type_case() == kReadTime;
  8641. }
  8642. inline bool Target::has_read_time() const {
  8643. return _internal_has_read_time();
  8644. }
  8645. inline void Target::set_has_read_time() {
  8646. _oneof_case_[1] = kReadTime;
  8647. }
  8648. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_read_time() {
  8649. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.read_time)
  8650. if (_internal_has_read_time()) {
  8651. clear_has_resume_type();
  8652. PROTOBUF_NAMESPACE_ID::Timestamp* temp = resume_type_.read_time_;
  8653. resume_type_.read_time_ = nullptr;
  8654. return temp;
  8655. } else {
  8656. return nullptr;
  8657. }
  8658. }
  8659. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::_internal_read_time() const {
  8660. return _internal_has_read_time()
  8661. ? *resume_type_.read_time_
  8662. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  8663. }
  8664. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::read_time() const {
  8665. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.read_time)
  8666. return _internal_read_time();
  8667. }
  8668. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::_internal_mutable_read_time() {
  8669. if (!_internal_has_read_time()) {
  8670. clear_resume_type();
  8671. set_has_read_time();
  8672. resume_type_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  8673. GetArenaNoVirtual());
  8674. }
  8675. return resume_type_.read_time_;
  8676. }
  8677. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_read_time() {
  8678. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.read_time)
  8679. return _internal_mutable_read_time();
  8680. }
  8681. // int32 target_id = 5;
  8682. inline void Target::clear_target_id() {
  8683. target_id_ = 0;
  8684. }
  8685. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::_internal_target_id() const {
  8686. return target_id_;
  8687. }
  8688. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::target_id() const {
  8689. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.target_id)
  8690. return _internal_target_id();
  8691. }
  8692. inline void Target::_internal_set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8693. target_id_ = value;
  8694. }
  8695. inline void Target::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8696. _internal_set_target_id(value);
  8697. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.target_id)
  8698. }
  8699. // bool once = 6;
  8700. inline void Target::clear_once() {
  8701. once_ = false;
  8702. }
  8703. inline bool Target::_internal_once() const {
  8704. return once_;
  8705. }
  8706. inline bool Target::once() const {
  8707. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.once)
  8708. return _internal_once();
  8709. }
  8710. inline void Target::_internal_set_once(bool value) {
  8711. once_ = value;
  8712. }
  8713. inline void Target::set_once(bool value) {
  8714. _internal_set_once(value);
  8715. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.once)
  8716. }
  8717. inline bool Target::has_target_type() const {
  8718. return target_type_case() != TARGET_TYPE_NOT_SET;
  8719. }
  8720. inline void Target::clear_has_target_type() {
  8721. _oneof_case_[0] = TARGET_TYPE_NOT_SET;
  8722. }
  8723. inline bool Target::has_resume_type() const {
  8724. return resume_type_case() != RESUME_TYPE_NOT_SET;
  8725. }
  8726. inline void Target::clear_has_resume_type() {
  8727. _oneof_case_[1] = RESUME_TYPE_NOT_SET;
  8728. }
  8729. inline Target::TargetTypeCase Target::target_type_case() const {
  8730. return Target::TargetTypeCase(_oneof_case_[0]);
  8731. }
  8732. inline Target::ResumeTypeCase Target::resume_type_case() const {
  8733. return Target::ResumeTypeCase(_oneof_case_[1]);
  8734. }
  8735. // -------------------------------------------------------------------
  8736. // TargetChange
  8737. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  8738. inline void TargetChange::clear_target_change_type() {
  8739. target_change_type_ = 0;
  8740. }
  8741. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::_internal_target_change_type() const {
  8742. return static_cast< ::google::firestore::v1::TargetChange_TargetChangeType >(target_change_type_);
  8743. }
  8744. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::target_change_type() const {
  8745. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_change_type)
  8746. return _internal_target_change_type();
  8747. }
  8748. inline void TargetChange::_internal_set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  8749. target_change_type_ = value;
  8750. }
  8751. inline void TargetChange::set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  8752. _internal_set_target_change_type(value);
  8753. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_change_type)
  8754. }
  8755. // repeated int32 target_ids = 2;
  8756. inline int TargetChange::_internal_target_ids_size() const {
  8757. return target_ids_.size();
  8758. }
  8759. inline int TargetChange::target_ids_size() const {
  8760. return _internal_target_ids_size();
  8761. }
  8762. inline void TargetChange::clear_target_ids() {
  8763. target_ids_.Clear();
  8764. }
  8765. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetChange::_internal_target_ids(int index) const {
  8766. return target_ids_.Get(index);
  8767. }
  8768. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetChange::target_ids(int index) const {
  8769. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_ids)
  8770. return _internal_target_ids(index);
  8771. }
  8772. inline void TargetChange::set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  8773. target_ids_.Set(index, value);
  8774. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_ids)
  8775. }
  8776. inline void TargetChange::_internal_add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8777. target_ids_.Add(value);
  8778. }
  8779. inline void TargetChange::add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8780. _internal_add_target_ids(value);
  8781. // @@protoc_insertion_point(field_add:google.firestore.v1.TargetChange.target_ids)
  8782. }
  8783. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  8784. TargetChange::_internal_target_ids() const {
  8785. return target_ids_;
  8786. }
  8787. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  8788. TargetChange::target_ids() const {
  8789. // @@protoc_insertion_point(field_list:google.firestore.v1.TargetChange.target_ids)
  8790. return _internal_target_ids();
  8791. }
  8792. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  8793. TargetChange::_internal_mutable_target_ids() {
  8794. return &target_ids_;
  8795. }
  8796. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  8797. TargetChange::mutable_target_ids() {
  8798. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.TargetChange.target_ids)
  8799. return _internal_mutable_target_ids();
  8800. }
  8801. // .google.rpc.Status cause = 3;
  8802. inline bool TargetChange::_internal_has_cause() const {
  8803. return this != internal_default_instance() && cause_ != nullptr;
  8804. }
  8805. inline bool TargetChange::has_cause() const {
  8806. return _internal_has_cause();
  8807. }
  8808. inline const ::google::rpc::Status& TargetChange::_internal_cause() const {
  8809. const ::google::rpc::Status* p = cause_;
  8810. return p != nullptr ? *p : *reinterpret_cast<const ::google::rpc::Status*>(
  8811. &::google::rpc::_Status_default_instance_);
  8812. }
  8813. inline const ::google::rpc::Status& TargetChange::cause() const {
  8814. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.cause)
  8815. return _internal_cause();
  8816. }
  8817. inline ::google::rpc::Status* TargetChange::release_cause() {
  8818. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.cause)
  8819. ::google::rpc::Status* temp = cause_;
  8820. cause_ = nullptr;
  8821. return temp;
  8822. }
  8823. inline ::google::rpc::Status* TargetChange::_internal_mutable_cause() {
  8824. if (cause_ == nullptr) {
  8825. auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArenaNoVirtual());
  8826. cause_ = p;
  8827. }
  8828. return cause_;
  8829. }
  8830. inline ::google::rpc::Status* TargetChange::mutable_cause() {
  8831. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.cause)
  8832. return _internal_mutable_cause();
  8833. }
  8834. inline void TargetChange::set_allocated_cause(::google::rpc::Status* cause) {
  8835. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8836. if (message_arena == nullptr) {
  8837. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cause_);
  8838. }
  8839. if (cause) {
  8840. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  8841. if (message_arena != submessage_arena) {
  8842. cause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8843. message_arena, cause, submessage_arena);
  8844. }
  8845. } else {
  8846. }
  8847. cause_ = cause;
  8848. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.cause)
  8849. }
  8850. // bytes resume_token = 4;
  8851. inline void TargetChange::clear_resume_token() {
  8852. resume_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8853. }
  8854. inline const std::string& TargetChange::resume_token() const {
  8855. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.resume_token)
  8856. return _internal_resume_token();
  8857. }
  8858. inline void TargetChange::set_resume_token(const std::string& value) {
  8859. _internal_set_resume_token(value);
  8860. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.resume_token)
  8861. }
  8862. inline std::string* TargetChange::mutable_resume_token() {
  8863. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.resume_token)
  8864. return _internal_mutable_resume_token();
  8865. }
  8866. inline const std::string& TargetChange::_internal_resume_token() const {
  8867. return resume_token_.GetNoArena();
  8868. }
  8869. inline void TargetChange::_internal_set_resume_token(const std::string& value) {
  8870. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8871. }
  8872. inline void TargetChange::set_resume_token(std::string&& value) {
  8873. resume_token_.SetNoArena(
  8874. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8875. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.TargetChange.resume_token)
  8876. }
  8877. inline void TargetChange::set_resume_token(const char* value) {
  8878. GOOGLE_DCHECK(value != nullptr);
  8879. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8880. // @@protoc_insertion_point(field_set_char:google.firestore.v1.TargetChange.resume_token)
  8881. }
  8882. inline void TargetChange::set_resume_token(const void* value, size_t size) {
  8883. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8884. ::std::string(reinterpret_cast<const char*>(value), size));
  8885. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.TargetChange.resume_token)
  8886. }
  8887. inline std::string* TargetChange::_internal_mutable_resume_token() {
  8888. return resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8889. }
  8890. inline std::string* TargetChange::release_resume_token() {
  8891. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.resume_token)
  8892. return resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8893. }
  8894. inline void TargetChange::set_allocated_resume_token(std::string* resume_token) {
  8895. if (resume_token != nullptr) {
  8896. } else {
  8897. }
  8898. resume_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resume_token);
  8899. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.resume_token)
  8900. }
  8901. // .google.protobuf.Timestamp read_time = 6;
  8902. inline bool TargetChange::_internal_has_read_time() const {
  8903. return this != internal_default_instance() && read_time_ != nullptr;
  8904. }
  8905. inline bool TargetChange::has_read_time() const {
  8906. return _internal_has_read_time();
  8907. }
  8908. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetChange::_internal_read_time() const {
  8909. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  8910. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  8911. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  8912. }
  8913. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetChange::read_time() const {
  8914. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.read_time)
  8915. return _internal_read_time();
  8916. }
  8917. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::release_read_time() {
  8918. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.read_time)
  8919. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  8920. read_time_ = nullptr;
  8921. return temp;
  8922. }
  8923. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::_internal_mutable_read_time() {
  8924. if (read_time_ == nullptr) {
  8925. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  8926. read_time_ = p;
  8927. }
  8928. return read_time_;
  8929. }
  8930. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::mutable_read_time() {
  8931. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.read_time)
  8932. return _internal_mutable_read_time();
  8933. }
  8934. inline void TargetChange::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  8935. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8936. if (message_arena == nullptr) {
  8937. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  8938. }
  8939. if (read_time) {
  8940. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8941. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  8942. if (message_arena != submessage_arena) {
  8943. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8944. message_arena, read_time, submessage_arena);
  8945. }
  8946. } else {
  8947. }
  8948. read_time_ = read_time;
  8949. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.read_time)
  8950. }
  8951. // -------------------------------------------------------------------
  8952. // ListCollectionIdsRequest
  8953. // string parent = 1;
  8954. inline void ListCollectionIdsRequest::clear_parent() {
  8955. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8956. }
  8957. inline const std::string& ListCollectionIdsRequest::parent() const {
  8958. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.parent)
  8959. return _internal_parent();
  8960. }
  8961. inline void ListCollectionIdsRequest::set_parent(const std::string& value) {
  8962. _internal_set_parent(value);
  8963. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.parent)
  8964. }
  8965. inline std::string* ListCollectionIdsRequest::mutable_parent() {
  8966. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.parent)
  8967. return _internal_mutable_parent();
  8968. }
  8969. inline const std::string& ListCollectionIdsRequest::_internal_parent() const {
  8970. return parent_.GetNoArena();
  8971. }
  8972. inline void ListCollectionIdsRequest::_internal_set_parent(const std::string& value) {
  8973. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8974. }
  8975. inline void ListCollectionIdsRequest::set_parent(std::string&& value) {
  8976. parent_.SetNoArena(
  8977. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8978. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsRequest.parent)
  8979. }
  8980. inline void ListCollectionIdsRequest::set_parent(const char* value) {
  8981. GOOGLE_DCHECK(value != nullptr);
  8982. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8983. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsRequest.parent)
  8984. }
  8985. inline void ListCollectionIdsRequest::set_parent(const char* value, size_t size) {
  8986. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8987. ::std::string(reinterpret_cast<const char*>(value), size));
  8988. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsRequest.parent)
  8989. }
  8990. inline std::string* ListCollectionIdsRequest::_internal_mutable_parent() {
  8991. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8992. }
  8993. inline std::string* ListCollectionIdsRequest::release_parent() {
  8994. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.parent)
  8995. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8996. }
  8997. inline void ListCollectionIdsRequest::set_allocated_parent(std::string* parent) {
  8998. if (parent != nullptr) {
  8999. } else {
  9000. }
  9001. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  9002. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.parent)
  9003. }
  9004. // int32 page_size = 2;
  9005. inline void ListCollectionIdsRequest::clear_page_size() {
  9006. page_size_ = 0;
  9007. }
  9008. inline ::PROTOBUF_NAMESPACE_ID::int32 ListCollectionIdsRequest::_internal_page_size() const {
  9009. return page_size_;
  9010. }
  9011. inline ::PROTOBUF_NAMESPACE_ID::int32 ListCollectionIdsRequest::page_size() const {
  9012. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_size)
  9013. return _internal_page_size();
  9014. }
  9015. inline void ListCollectionIdsRequest::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9016. page_size_ = value;
  9017. }
  9018. inline void ListCollectionIdsRequest::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9019. _internal_set_page_size(value);
  9020. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_size)
  9021. }
  9022. // string page_token = 3;
  9023. inline void ListCollectionIdsRequest::clear_page_token() {
  9024. page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9025. }
  9026. inline const std::string& ListCollectionIdsRequest::page_token() const {
  9027. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9028. return _internal_page_token();
  9029. }
  9030. inline void ListCollectionIdsRequest::set_page_token(const std::string& value) {
  9031. _internal_set_page_token(value);
  9032. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9033. }
  9034. inline std::string* ListCollectionIdsRequest::mutable_page_token() {
  9035. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9036. return _internal_mutable_page_token();
  9037. }
  9038. inline const std::string& ListCollectionIdsRequest::_internal_page_token() const {
  9039. return page_token_.GetNoArena();
  9040. }
  9041. inline void ListCollectionIdsRequest::_internal_set_page_token(const std::string& value) {
  9042. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9043. }
  9044. inline void ListCollectionIdsRequest::set_page_token(std::string&& value) {
  9045. page_token_.SetNoArena(
  9046. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9047. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9048. }
  9049. inline void ListCollectionIdsRequest::set_page_token(const char* value) {
  9050. GOOGLE_DCHECK(value != nullptr);
  9051. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9052. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9053. }
  9054. inline void ListCollectionIdsRequest::set_page_token(const char* value, size_t size) {
  9055. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9056. ::std::string(reinterpret_cast<const char*>(value), size));
  9057. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9058. }
  9059. inline std::string* ListCollectionIdsRequest::_internal_mutable_page_token() {
  9060. return page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9061. }
  9062. inline std::string* ListCollectionIdsRequest::release_page_token() {
  9063. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9064. return page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9065. }
  9066. inline void ListCollectionIdsRequest::set_allocated_page_token(std::string* page_token) {
  9067. if (page_token != nullptr) {
  9068. } else {
  9069. }
  9070. page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token);
  9071. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9072. }
  9073. // -------------------------------------------------------------------
  9074. // ListCollectionIdsResponse
  9075. // repeated string collection_ids = 1;
  9076. inline int ListCollectionIdsResponse::_internal_collection_ids_size() const {
  9077. return collection_ids_.size();
  9078. }
  9079. inline int ListCollectionIdsResponse::collection_ids_size() const {
  9080. return _internal_collection_ids_size();
  9081. }
  9082. inline void ListCollectionIdsResponse::clear_collection_ids() {
  9083. collection_ids_.Clear();
  9084. }
  9085. inline std::string* ListCollectionIdsResponse::add_collection_ids() {
  9086. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9087. return _internal_add_collection_ids();
  9088. }
  9089. inline const std::string& ListCollectionIdsResponse::_internal_collection_ids(int index) const {
  9090. return collection_ids_.Get(index);
  9091. }
  9092. inline const std::string& ListCollectionIdsResponse::collection_ids(int index) const {
  9093. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9094. return _internal_collection_ids(index);
  9095. }
  9096. inline std::string* ListCollectionIdsResponse::mutable_collection_ids(int index) {
  9097. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9098. return collection_ids_.Mutable(index);
  9099. }
  9100. inline void ListCollectionIdsResponse::set_collection_ids(int index, const std::string& value) {
  9101. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9102. collection_ids_.Mutable(index)->assign(value);
  9103. }
  9104. inline void ListCollectionIdsResponse::set_collection_ids(int index, std::string&& value) {
  9105. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9106. collection_ids_.Mutable(index)->assign(std::move(value));
  9107. }
  9108. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value) {
  9109. GOOGLE_DCHECK(value != nullptr);
  9110. collection_ids_.Mutable(index)->assign(value);
  9111. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9112. }
  9113. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value, size_t size) {
  9114. collection_ids_.Mutable(index)->assign(
  9115. reinterpret_cast<const char*>(value), size);
  9116. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9117. }
  9118. inline std::string* ListCollectionIdsResponse::_internal_add_collection_ids() {
  9119. return collection_ids_.Add();
  9120. }
  9121. inline void ListCollectionIdsResponse::add_collection_ids(const std::string& value) {
  9122. collection_ids_.Add()->assign(value);
  9123. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9124. }
  9125. inline void ListCollectionIdsResponse::add_collection_ids(std::string&& value) {
  9126. collection_ids_.Add(std::move(value));
  9127. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9128. }
  9129. inline void ListCollectionIdsResponse::add_collection_ids(const char* value) {
  9130. GOOGLE_DCHECK(value != nullptr);
  9131. collection_ids_.Add()->assign(value);
  9132. // @@protoc_insertion_point(field_add_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9133. }
  9134. inline void ListCollectionIdsResponse::add_collection_ids(const char* value, size_t size) {
  9135. collection_ids_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9136. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9137. }
  9138. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9139. ListCollectionIdsResponse::collection_ids() const {
  9140. // @@protoc_insertion_point(field_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9141. return collection_ids_;
  9142. }
  9143. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9144. ListCollectionIdsResponse::mutable_collection_ids() {
  9145. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9146. return &collection_ids_;
  9147. }
  9148. // string next_page_token = 2;
  9149. inline void ListCollectionIdsResponse::clear_next_page_token() {
  9150. next_page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9151. }
  9152. inline const std::string& ListCollectionIdsResponse::next_page_token() const {
  9153. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9154. return _internal_next_page_token();
  9155. }
  9156. inline void ListCollectionIdsResponse::set_next_page_token(const std::string& value) {
  9157. _internal_set_next_page_token(value);
  9158. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9159. }
  9160. inline std::string* ListCollectionIdsResponse::mutable_next_page_token() {
  9161. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9162. return _internal_mutable_next_page_token();
  9163. }
  9164. inline const std::string& ListCollectionIdsResponse::_internal_next_page_token() const {
  9165. return next_page_token_.GetNoArena();
  9166. }
  9167. inline void ListCollectionIdsResponse::_internal_set_next_page_token(const std::string& value) {
  9168. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9169. }
  9170. inline void ListCollectionIdsResponse::set_next_page_token(std::string&& value) {
  9171. next_page_token_.SetNoArena(
  9172. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9173. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9174. }
  9175. inline void ListCollectionIdsResponse::set_next_page_token(const char* value) {
  9176. GOOGLE_DCHECK(value != nullptr);
  9177. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9178. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9179. }
  9180. inline void ListCollectionIdsResponse::set_next_page_token(const char* value, size_t size) {
  9181. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9182. ::std::string(reinterpret_cast<const char*>(value), size));
  9183. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9184. }
  9185. inline std::string* ListCollectionIdsResponse::_internal_mutable_next_page_token() {
  9186. return next_page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9187. }
  9188. inline std::string* ListCollectionIdsResponse::release_next_page_token() {
  9189. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9190. return next_page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9191. }
  9192. inline void ListCollectionIdsResponse::set_allocated_next_page_token(std::string* next_page_token) {
  9193. if (next_page_token != nullptr) {
  9194. } else {
  9195. }
  9196. next_page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token);
  9197. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  9198. }
  9199. #ifdef __GNUC__
  9200. #pragma GCC diagnostic pop
  9201. #endif // __GNUC__
  9202. // -------------------------------------------------------------------
  9203. // -------------------------------------------------------------------
  9204. // -------------------------------------------------------------------
  9205. // -------------------------------------------------------------------
  9206. // -------------------------------------------------------------------
  9207. // -------------------------------------------------------------------
  9208. // -------------------------------------------------------------------
  9209. // -------------------------------------------------------------------
  9210. // -------------------------------------------------------------------
  9211. // -------------------------------------------------------------------
  9212. // -------------------------------------------------------------------
  9213. // -------------------------------------------------------------------
  9214. // -------------------------------------------------------------------
  9215. // -------------------------------------------------------------------
  9216. // -------------------------------------------------------------------
  9217. // -------------------------------------------------------------------
  9218. // -------------------------------------------------------------------
  9219. // -------------------------------------------------------------------
  9220. // -------------------------------------------------------------------
  9221. // -------------------------------------------------------------------
  9222. // -------------------------------------------------------------------
  9223. // -------------------------------------------------------------------
  9224. // -------------------------------------------------------------------
  9225. // -------------------------------------------------------------------
  9226. // -------------------------------------------------------------------
  9227. // -------------------------------------------------------------------
  9228. // @@protoc_insertion_point(namespace_scope)
  9229. } // namespace v1
  9230. } // namespace firestore
  9231. } // namespace google
  9232. PROTOBUF_NAMESPACE_OPEN
  9233. template <> struct is_proto_enum< ::google::firestore::v1::TargetChange_TargetChangeType> : ::std::true_type {};
  9234. template <>
  9235. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::TargetChange_TargetChangeType>() {
  9236. return ::google::firestore::v1::TargetChange_TargetChangeType_descriptor();
  9237. }
  9238. PROTOBUF_NAMESPACE_CLOSE
  9239. // @@protoc_insertion_point(global_scope)
  9240. #include <google/protobuf/port_undef.inc>
  9241. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto