firestore.pb.h 458 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294
  1. /*
  2. * Copyright 2023 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/firestore.proto
  18. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto
  20. #include <limits>
  21. #include <string>
  22. #include <google/protobuf/port_def.inc>
  23. #if PROTOBUF_VERSION < 3011000
  24. #error This file was generated by a newer version of protoc which is
  25. #error incompatible with your Protocol Buffer headers. Please update
  26. #error your headers.
  27. #endif
  28. #if 3011002 < PROTOBUF_MIN_PROTOC_VERSION
  29. #error This file was generated by an older version of protoc which is
  30. #error incompatible with your Protocol Buffer headers. Please
  31. #error regenerate this file with a newer version of protoc.
  32. #endif
  33. #include <google/protobuf/port_undef.inc>
  34. #include <google/protobuf/io/coded_stream.h>
  35. #include <google/protobuf/arena.h>
  36. #include <google/protobuf/arenastring.h>
  37. #include <google/protobuf/generated_message_table_driven.h>
  38. #include <google/protobuf/generated_message_util.h>
  39. #include <google/protobuf/inlined_string_field.h>
  40. #include <google/protobuf/metadata.h>
  41. #include <google/protobuf/generated_message_reflection.h>
  42. #include <google/protobuf/message.h>
  43. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  44. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  45. #include <google/protobuf/map.h> // IWYU pragma: export
  46. #include <google/protobuf/map_entry.h>
  47. #include <google/protobuf/map_field_inl.h>
  48. #include <google/protobuf/generated_enum_reflection.h>
  49. #include <google/protobuf/unknown_field_set.h>
  50. #include "google/api/annotations.pb.h"
  51. #include "google/firestore/v1/aggregation_result.pb.h"
  52. #include "google/firestore/v1/common.pb.h"
  53. #include "google/firestore/v1/document.pb.h"
  54. #include "google/firestore/v1/query.pb.h"
  55. #include "google/firestore/v1/write.pb.h"
  56. #include <google/protobuf/empty.pb.h>
  57. #include <google/protobuf/timestamp.pb.h>
  58. #include <google/protobuf/wrappers.pb.h>
  59. #include "google/rpc/status.pb.h"
  60. // @@protoc_insertion_point(includes)
  61. #include <google/protobuf/port_def.inc>
  62. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto
  63. PROTOBUF_NAMESPACE_OPEN
  64. namespace internal {
  65. class AnyMetadata;
  66. } // namespace internal
  67. PROTOBUF_NAMESPACE_CLOSE
  68. // Internal implementation detail -- do not use these members.
  69. struct TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto {
  70. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  71. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  72. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  73. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  74. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[29]
  75. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  76. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  77. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  78. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  79. };
  80. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto;
  81. namespace google {
  82. namespace firestore {
  83. namespace v1 {
  84. class BatchGetDocumentsRequest;
  85. class BatchGetDocumentsRequestDefaultTypeInternal;
  86. extern BatchGetDocumentsRequestDefaultTypeInternal _BatchGetDocumentsRequest_default_instance_;
  87. class BatchGetDocumentsResponse;
  88. class BatchGetDocumentsResponseDefaultTypeInternal;
  89. extern BatchGetDocumentsResponseDefaultTypeInternal _BatchGetDocumentsResponse_default_instance_;
  90. class BeginTransactionRequest;
  91. class BeginTransactionRequestDefaultTypeInternal;
  92. extern BeginTransactionRequestDefaultTypeInternal _BeginTransactionRequest_default_instance_;
  93. class BeginTransactionResponse;
  94. class BeginTransactionResponseDefaultTypeInternal;
  95. extern BeginTransactionResponseDefaultTypeInternal _BeginTransactionResponse_default_instance_;
  96. class CommitRequest;
  97. class CommitRequestDefaultTypeInternal;
  98. extern CommitRequestDefaultTypeInternal _CommitRequest_default_instance_;
  99. class CommitResponse;
  100. class CommitResponseDefaultTypeInternal;
  101. extern CommitResponseDefaultTypeInternal _CommitResponse_default_instance_;
  102. class CreateDocumentRequest;
  103. class CreateDocumentRequestDefaultTypeInternal;
  104. extern CreateDocumentRequestDefaultTypeInternal _CreateDocumentRequest_default_instance_;
  105. class DeleteDocumentRequest;
  106. class DeleteDocumentRequestDefaultTypeInternal;
  107. extern DeleteDocumentRequestDefaultTypeInternal _DeleteDocumentRequest_default_instance_;
  108. class GetDocumentRequest;
  109. class GetDocumentRequestDefaultTypeInternal;
  110. extern GetDocumentRequestDefaultTypeInternal _GetDocumentRequest_default_instance_;
  111. class ListCollectionIdsRequest;
  112. class ListCollectionIdsRequestDefaultTypeInternal;
  113. extern ListCollectionIdsRequestDefaultTypeInternal _ListCollectionIdsRequest_default_instance_;
  114. class ListCollectionIdsResponse;
  115. class ListCollectionIdsResponseDefaultTypeInternal;
  116. extern ListCollectionIdsResponseDefaultTypeInternal _ListCollectionIdsResponse_default_instance_;
  117. class ListDocumentsRequest;
  118. class ListDocumentsRequestDefaultTypeInternal;
  119. extern ListDocumentsRequestDefaultTypeInternal _ListDocumentsRequest_default_instance_;
  120. class ListDocumentsResponse;
  121. class ListDocumentsResponseDefaultTypeInternal;
  122. extern ListDocumentsResponseDefaultTypeInternal _ListDocumentsResponse_default_instance_;
  123. class ListenRequest;
  124. class ListenRequestDefaultTypeInternal;
  125. extern ListenRequestDefaultTypeInternal _ListenRequest_default_instance_;
  126. class ListenRequest_LabelsEntry_DoNotUse;
  127. class ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  128. extern ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal _ListenRequest_LabelsEntry_DoNotUse_default_instance_;
  129. class ListenResponse;
  130. class ListenResponseDefaultTypeInternal;
  131. extern ListenResponseDefaultTypeInternal _ListenResponse_default_instance_;
  132. class RollbackRequest;
  133. class RollbackRequestDefaultTypeInternal;
  134. extern RollbackRequestDefaultTypeInternal _RollbackRequest_default_instance_;
  135. class RunAggregationQueryRequest;
  136. class RunAggregationQueryRequestDefaultTypeInternal;
  137. extern RunAggregationQueryRequestDefaultTypeInternal _RunAggregationQueryRequest_default_instance_;
  138. class RunAggregationQueryResponse;
  139. class RunAggregationQueryResponseDefaultTypeInternal;
  140. extern RunAggregationQueryResponseDefaultTypeInternal _RunAggregationQueryResponse_default_instance_;
  141. class RunQueryRequest;
  142. class RunQueryRequestDefaultTypeInternal;
  143. extern RunQueryRequestDefaultTypeInternal _RunQueryRequest_default_instance_;
  144. class RunQueryResponse;
  145. class RunQueryResponseDefaultTypeInternal;
  146. extern RunQueryResponseDefaultTypeInternal _RunQueryResponse_default_instance_;
  147. class Target;
  148. class TargetDefaultTypeInternal;
  149. extern TargetDefaultTypeInternal _Target_default_instance_;
  150. class TargetChange;
  151. class TargetChangeDefaultTypeInternal;
  152. extern TargetChangeDefaultTypeInternal _TargetChange_default_instance_;
  153. class Target_DocumentsTarget;
  154. class Target_DocumentsTargetDefaultTypeInternal;
  155. extern Target_DocumentsTargetDefaultTypeInternal _Target_DocumentsTarget_default_instance_;
  156. class Target_QueryTarget;
  157. class Target_QueryTargetDefaultTypeInternal;
  158. extern Target_QueryTargetDefaultTypeInternal _Target_QueryTarget_default_instance_;
  159. class UpdateDocumentRequest;
  160. class UpdateDocumentRequestDefaultTypeInternal;
  161. extern UpdateDocumentRequestDefaultTypeInternal _UpdateDocumentRequest_default_instance_;
  162. class WriteRequest;
  163. class WriteRequestDefaultTypeInternal;
  164. extern WriteRequestDefaultTypeInternal _WriteRequest_default_instance_;
  165. class WriteRequest_LabelsEntry_DoNotUse;
  166. class WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  167. extern WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal _WriteRequest_LabelsEntry_DoNotUse_default_instance_;
  168. class WriteResponse;
  169. class WriteResponseDefaultTypeInternal;
  170. extern WriteResponseDefaultTypeInternal _WriteResponse_default_instance_;
  171. } // namespace v1
  172. } // namespace firestore
  173. } // namespace google
  174. PROTOBUF_NAMESPACE_OPEN
  175. template<> ::google::firestore::v1::BatchGetDocumentsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::BatchGetDocumentsRequest>(Arena*);
  176. template<> ::google::firestore::v1::BatchGetDocumentsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::BatchGetDocumentsResponse>(Arena*);
  177. template<> ::google::firestore::v1::BeginTransactionRequest* Arena::CreateMaybeMessage<::google::firestore::v1::BeginTransactionRequest>(Arena*);
  178. template<> ::google::firestore::v1::BeginTransactionResponse* Arena::CreateMaybeMessage<::google::firestore::v1::BeginTransactionResponse>(Arena*);
  179. template<> ::google::firestore::v1::CommitRequest* Arena::CreateMaybeMessage<::google::firestore::v1::CommitRequest>(Arena*);
  180. template<> ::google::firestore::v1::CommitResponse* Arena::CreateMaybeMessage<::google::firestore::v1::CommitResponse>(Arena*);
  181. template<> ::google::firestore::v1::CreateDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::CreateDocumentRequest>(Arena*);
  182. template<> ::google::firestore::v1::DeleteDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::DeleteDocumentRequest>(Arena*);
  183. template<> ::google::firestore::v1::GetDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::GetDocumentRequest>(Arena*);
  184. template<> ::google::firestore::v1::ListCollectionIdsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListCollectionIdsRequest>(Arena*);
  185. template<> ::google::firestore::v1::ListCollectionIdsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListCollectionIdsResponse>(Arena*);
  186. template<> ::google::firestore::v1::ListDocumentsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListDocumentsRequest>(Arena*);
  187. template<> ::google::firestore::v1::ListDocumentsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListDocumentsResponse>(Arena*);
  188. template<> ::google::firestore::v1::ListenRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListenRequest>(Arena*);
  189. template<> ::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse>(Arena*);
  190. template<> ::google::firestore::v1::ListenResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListenResponse>(Arena*);
  191. template<> ::google::firestore::v1::RollbackRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RollbackRequest>(Arena*);
  192. template<> ::google::firestore::v1::RunAggregationQueryRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RunAggregationQueryRequest>(Arena*);
  193. template<> ::google::firestore::v1::RunAggregationQueryResponse* Arena::CreateMaybeMessage<::google::firestore::v1::RunAggregationQueryResponse>(Arena*);
  194. template<> ::google::firestore::v1::RunQueryRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RunQueryRequest>(Arena*);
  195. template<> ::google::firestore::v1::RunQueryResponse* Arena::CreateMaybeMessage<::google::firestore::v1::RunQueryResponse>(Arena*);
  196. template<> ::google::firestore::v1::Target* Arena::CreateMaybeMessage<::google::firestore::v1::Target>(Arena*);
  197. template<> ::google::firestore::v1::TargetChange* Arena::CreateMaybeMessage<::google::firestore::v1::TargetChange>(Arena*);
  198. template<> ::google::firestore::v1::Target_DocumentsTarget* Arena::CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(Arena*);
  199. template<> ::google::firestore::v1::Target_QueryTarget* Arena::CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(Arena*);
  200. template<> ::google::firestore::v1::UpdateDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::UpdateDocumentRequest>(Arena*);
  201. template<> ::google::firestore::v1::WriteRequest* Arena::CreateMaybeMessage<::google::firestore::v1::WriteRequest>(Arena*);
  202. template<> ::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse>(Arena*);
  203. template<> ::google::firestore::v1::WriteResponse* Arena::CreateMaybeMessage<::google::firestore::v1::WriteResponse>(Arena*);
  204. PROTOBUF_NAMESPACE_CLOSE
  205. namespace google {
  206. namespace firestore {
  207. namespace v1 {
  208. enum TargetChange_TargetChangeType : int {
  209. TargetChange_TargetChangeType_NO_CHANGE = 0,
  210. TargetChange_TargetChangeType_ADD = 1,
  211. TargetChange_TargetChangeType_REMOVE = 2,
  212. TargetChange_TargetChangeType_CURRENT = 3,
  213. TargetChange_TargetChangeType_RESET = 4,
  214. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  215. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  216. };
  217. bool TargetChange_TargetChangeType_IsValid(int value);
  218. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MIN = TargetChange_TargetChangeType_NO_CHANGE;
  219. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MAX = TargetChange_TargetChangeType_RESET;
  220. constexpr int TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE = TargetChange_TargetChangeType_TargetChangeType_MAX + 1;
  221. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TargetChange_TargetChangeType_descriptor();
  222. template<typename T>
  223. inline const std::string& TargetChange_TargetChangeType_Name(T enum_t_value) {
  224. static_assert(::std::is_same<T, TargetChange_TargetChangeType>::value ||
  225. ::std::is_integral<T>::value,
  226. "Incorrect type passed to function TargetChange_TargetChangeType_Name.");
  227. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  228. TargetChange_TargetChangeType_descriptor(), enum_t_value);
  229. }
  230. inline bool TargetChange_TargetChangeType_Parse(
  231. const std::string& name, TargetChange_TargetChangeType* value) {
  232. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TargetChange_TargetChangeType>(
  233. TargetChange_TargetChangeType_descriptor(), name, value);
  234. }
  235. // ===================================================================
  236. class GetDocumentRequest :
  237. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.GetDocumentRequest) */ {
  238. public:
  239. GetDocumentRequest();
  240. virtual ~GetDocumentRequest();
  241. GetDocumentRequest(const GetDocumentRequest& from);
  242. GetDocumentRequest(GetDocumentRequest&& from) noexcept
  243. : GetDocumentRequest() {
  244. *this = ::std::move(from);
  245. }
  246. inline GetDocumentRequest& operator=(const GetDocumentRequest& from) {
  247. CopyFrom(from);
  248. return *this;
  249. }
  250. inline GetDocumentRequest& operator=(GetDocumentRequest&& from) noexcept {
  251. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  252. if (this != &from) InternalSwap(&from);
  253. } else {
  254. CopyFrom(from);
  255. }
  256. return *this;
  257. }
  258. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  259. return GetDescriptor();
  260. }
  261. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  262. return GetMetadataStatic().descriptor;
  263. }
  264. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  265. return GetMetadataStatic().reflection;
  266. }
  267. static const GetDocumentRequest& default_instance();
  268. enum ConsistencySelectorCase {
  269. kTransaction = 3,
  270. kReadTime = 5,
  271. CONSISTENCY_SELECTOR_NOT_SET = 0,
  272. };
  273. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  274. static inline const GetDocumentRequest* internal_default_instance() {
  275. return reinterpret_cast<const GetDocumentRequest*>(
  276. &_GetDocumentRequest_default_instance_);
  277. }
  278. static constexpr int kIndexInFileMessages =
  279. 0;
  280. friend void swap(GetDocumentRequest& a, GetDocumentRequest& b) {
  281. a.Swap(&b);
  282. }
  283. inline void Swap(GetDocumentRequest* other) {
  284. if (other == this) return;
  285. InternalSwap(other);
  286. }
  287. // implements Message ----------------------------------------------
  288. inline GetDocumentRequest* New() const final {
  289. return CreateMaybeMessage<GetDocumentRequest>(nullptr);
  290. }
  291. GetDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  292. return CreateMaybeMessage<GetDocumentRequest>(arena);
  293. }
  294. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  295. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  296. void CopyFrom(const GetDocumentRequest& from);
  297. void MergeFrom(const GetDocumentRequest& from);
  298. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  299. bool IsInitialized() const final;
  300. size_t ByteSizeLong() const final;
  301. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  302. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  303. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  304. int GetCachedSize() const final { return _cached_size_.Get(); }
  305. private:
  306. inline void SharedCtor();
  307. inline void SharedDtor();
  308. void SetCachedSize(int size) const final;
  309. void InternalSwap(GetDocumentRequest* other);
  310. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  311. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  312. return "google.firestore.v1.GetDocumentRequest";
  313. }
  314. private:
  315. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  316. return nullptr;
  317. }
  318. inline void* MaybeArenaPtr() const {
  319. return nullptr;
  320. }
  321. public:
  322. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  323. private:
  324. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  325. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  326. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  327. }
  328. public:
  329. // nested types ----------------------------------------------------
  330. // accessors -------------------------------------------------------
  331. enum : int {
  332. kNameFieldNumber = 1,
  333. kMaskFieldNumber = 2,
  334. kTransactionFieldNumber = 3,
  335. kReadTimeFieldNumber = 5,
  336. };
  337. // string name = 1;
  338. void clear_name();
  339. const std::string& name() const;
  340. void set_name(const std::string& value);
  341. void set_name(std::string&& value);
  342. void set_name(const char* value);
  343. void set_name(const char* value, size_t size);
  344. std::string* mutable_name();
  345. std::string* release_name();
  346. void set_allocated_name(std::string* name);
  347. private:
  348. const std::string& _internal_name() const;
  349. void _internal_set_name(const std::string& value);
  350. std::string* _internal_mutable_name();
  351. public:
  352. // .google.firestore.v1.DocumentMask mask = 2;
  353. bool has_mask() const;
  354. private:
  355. bool _internal_has_mask() const;
  356. public:
  357. void clear_mask();
  358. const ::google::firestore::v1::DocumentMask& mask() const;
  359. ::google::firestore::v1::DocumentMask* release_mask();
  360. ::google::firestore::v1::DocumentMask* mutable_mask();
  361. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  362. private:
  363. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  364. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  365. public:
  366. // bytes transaction = 3;
  367. private:
  368. bool _internal_has_transaction() const;
  369. public:
  370. void clear_transaction();
  371. const std::string& transaction() const;
  372. void set_transaction(const std::string& value);
  373. void set_transaction(std::string&& value);
  374. void set_transaction(const char* value);
  375. void set_transaction(const void* value, size_t size);
  376. std::string* mutable_transaction();
  377. std::string* release_transaction();
  378. void set_allocated_transaction(std::string* transaction);
  379. private:
  380. const std::string& _internal_transaction() const;
  381. void _internal_set_transaction(const std::string& value);
  382. std::string* _internal_mutable_transaction();
  383. public:
  384. // .google.protobuf.Timestamp read_time = 5;
  385. bool has_read_time() const;
  386. private:
  387. bool _internal_has_read_time() const;
  388. public:
  389. void clear_read_time();
  390. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  391. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  392. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  393. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  394. private:
  395. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  396. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  397. public:
  398. void clear_consistency_selector();
  399. ConsistencySelectorCase consistency_selector_case() const;
  400. // @@protoc_insertion_point(class_scope:google.firestore.v1.GetDocumentRequest)
  401. private:
  402. class _Internal;
  403. void set_has_transaction();
  404. void set_has_read_time();
  405. inline bool has_consistency_selector() const;
  406. inline void clear_has_consistency_selector();
  407. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  408. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  409. ::google::firestore::v1::DocumentMask* mask_;
  410. union ConsistencySelectorUnion {
  411. ConsistencySelectorUnion() {}
  412. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  413. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  414. } consistency_selector_;
  415. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  416. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  417. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  418. };
  419. // -------------------------------------------------------------------
  420. class ListDocumentsRequest :
  421. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsRequest) */ {
  422. public:
  423. ListDocumentsRequest();
  424. virtual ~ListDocumentsRequest();
  425. ListDocumentsRequest(const ListDocumentsRequest& from);
  426. ListDocumentsRequest(ListDocumentsRequest&& from) noexcept
  427. : ListDocumentsRequest() {
  428. *this = ::std::move(from);
  429. }
  430. inline ListDocumentsRequest& operator=(const ListDocumentsRequest& from) {
  431. CopyFrom(from);
  432. return *this;
  433. }
  434. inline ListDocumentsRequest& operator=(ListDocumentsRequest&& from) noexcept {
  435. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  436. if (this != &from) InternalSwap(&from);
  437. } else {
  438. CopyFrom(from);
  439. }
  440. return *this;
  441. }
  442. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  443. return GetDescriptor();
  444. }
  445. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  446. return GetMetadataStatic().descriptor;
  447. }
  448. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  449. return GetMetadataStatic().reflection;
  450. }
  451. static const ListDocumentsRequest& default_instance();
  452. enum ConsistencySelectorCase {
  453. kTransaction = 8,
  454. kReadTime = 10,
  455. CONSISTENCY_SELECTOR_NOT_SET = 0,
  456. };
  457. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  458. static inline const ListDocumentsRequest* internal_default_instance() {
  459. return reinterpret_cast<const ListDocumentsRequest*>(
  460. &_ListDocumentsRequest_default_instance_);
  461. }
  462. static constexpr int kIndexInFileMessages =
  463. 1;
  464. friend void swap(ListDocumentsRequest& a, ListDocumentsRequest& b) {
  465. a.Swap(&b);
  466. }
  467. inline void Swap(ListDocumentsRequest* other) {
  468. if (other == this) return;
  469. InternalSwap(other);
  470. }
  471. // implements Message ----------------------------------------------
  472. inline ListDocumentsRequest* New() const final {
  473. return CreateMaybeMessage<ListDocumentsRequest>(nullptr);
  474. }
  475. ListDocumentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  476. return CreateMaybeMessage<ListDocumentsRequest>(arena);
  477. }
  478. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  479. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  480. void CopyFrom(const ListDocumentsRequest& from);
  481. void MergeFrom(const ListDocumentsRequest& from);
  482. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  483. bool IsInitialized() const final;
  484. size_t ByteSizeLong() const final;
  485. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  486. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  487. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  488. int GetCachedSize() const final { return _cached_size_.Get(); }
  489. private:
  490. inline void SharedCtor();
  491. inline void SharedDtor();
  492. void SetCachedSize(int size) const final;
  493. void InternalSwap(ListDocumentsRequest* other);
  494. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  495. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  496. return "google.firestore.v1.ListDocumentsRequest";
  497. }
  498. private:
  499. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  500. return nullptr;
  501. }
  502. inline void* MaybeArenaPtr() const {
  503. return nullptr;
  504. }
  505. public:
  506. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  507. private:
  508. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  509. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  510. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  511. }
  512. public:
  513. // nested types ----------------------------------------------------
  514. // accessors -------------------------------------------------------
  515. enum : int {
  516. kParentFieldNumber = 1,
  517. kCollectionIdFieldNumber = 2,
  518. kPageTokenFieldNumber = 4,
  519. kOrderByFieldNumber = 6,
  520. kMaskFieldNumber = 7,
  521. kPageSizeFieldNumber = 3,
  522. kShowMissingFieldNumber = 12,
  523. kTransactionFieldNumber = 8,
  524. kReadTimeFieldNumber = 10,
  525. };
  526. // string parent = 1;
  527. void clear_parent();
  528. const std::string& parent() const;
  529. void set_parent(const std::string& value);
  530. void set_parent(std::string&& value);
  531. void set_parent(const char* value);
  532. void set_parent(const char* value, size_t size);
  533. std::string* mutable_parent();
  534. std::string* release_parent();
  535. void set_allocated_parent(std::string* parent);
  536. private:
  537. const std::string& _internal_parent() const;
  538. void _internal_set_parent(const std::string& value);
  539. std::string* _internal_mutable_parent();
  540. public:
  541. // string collection_id = 2;
  542. void clear_collection_id();
  543. const std::string& collection_id() const;
  544. void set_collection_id(const std::string& value);
  545. void set_collection_id(std::string&& value);
  546. void set_collection_id(const char* value);
  547. void set_collection_id(const char* value, size_t size);
  548. std::string* mutable_collection_id();
  549. std::string* release_collection_id();
  550. void set_allocated_collection_id(std::string* collection_id);
  551. private:
  552. const std::string& _internal_collection_id() const;
  553. void _internal_set_collection_id(const std::string& value);
  554. std::string* _internal_mutable_collection_id();
  555. public:
  556. // string page_token = 4;
  557. void clear_page_token();
  558. const std::string& page_token() const;
  559. void set_page_token(const std::string& value);
  560. void set_page_token(std::string&& value);
  561. void set_page_token(const char* value);
  562. void set_page_token(const char* value, size_t size);
  563. std::string* mutable_page_token();
  564. std::string* release_page_token();
  565. void set_allocated_page_token(std::string* page_token);
  566. private:
  567. const std::string& _internal_page_token() const;
  568. void _internal_set_page_token(const std::string& value);
  569. std::string* _internal_mutable_page_token();
  570. public:
  571. // string order_by = 6;
  572. void clear_order_by();
  573. const std::string& order_by() const;
  574. void set_order_by(const std::string& value);
  575. void set_order_by(std::string&& value);
  576. void set_order_by(const char* value);
  577. void set_order_by(const char* value, size_t size);
  578. std::string* mutable_order_by();
  579. std::string* release_order_by();
  580. void set_allocated_order_by(std::string* order_by);
  581. private:
  582. const std::string& _internal_order_by() const;
  583. void _internal_set_order_by(const std::string& value);
  584. std::string* _internal_mutable_order_by();
  585. public:
  586. // .google.firestore.v1.DocumentMask mask = 7;
  587. bool has_mask() const;
  588. private:
  589. bool _internal_has_mask() const;
  590. public:
  591. void clear_mask();
  592. const ::google::firestore::v1::DocumentMask& mask() const;
  593. ::google::firestore::v1::DocumentMask* release_mask();
  594. ::google::firestore::v1::DocumentMask* mutable_mask();
  595. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  596. private:
  597. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  598. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  599. public:
  600. // int32 page_size = 3;
  601. void clear_page_size();
  602. ::PROTOBUF_NAMESPACE_ID::int32 page_size() const;
  603. void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  604. private:
  605. ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const;
  606. void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  607. public:
  608. // bool show_missing = 12;
  609. void clear_show_missing();
  610. bool show_missing() const;
  611. void set_show_missing(bool value);
  612. private:
  613. bool _internal_show_missing() const;
  614. void _internal_set_show_missing(bool value);
  615. public:
  616. // bytes transaction = 8;
  617. private:
  618. bool _internal_has_transaction() const;
  619. public:
  620. void clear_transaction();
  621. const std::string& transaction() const;
  622. void set_transaction(const std::string& value);
  623. void set_transaction(std::string&& value);
  624. void set_transaction(const char* value);
  625. void set_transaction(const void* value, size_t size);
  626. std::string* mutable_transaction();
  627. std::string* release_transaction();
  628. void set_allocated_transaction(std::string* transaction);
  629. private:
  630. const std::string& _internal_transaction() const;
  631. void _internal_set_transaction(const std::string& value);
  632. std::string* _internal_mutable_transaction();
  633. public:
  634. // .google.protobuf.Timestamp read_time = 10;
  635. bool has_read_time() const;
  636. private:
  637. bool _internal_has_read_time() const;
  638. public:
  639. void clear_read_time();
  640. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  641. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  642. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  643. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  644. private:
  645. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  646. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  647. public:
  648. void clear_consistency_selector();
  649. ConsistencySelectorCase consistency_selector_case() const;
  650. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsRequest)
  651. private:
  652. class _Internal;
  653. void set_has_transaction();
  654. void set_has_read_time();
  655. inline bool has_consistency_selector() const;
  656. inline void clear_has_consistency_selector();
  657. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  658. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  659. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_id_;
  660. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_;
  661. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_by_;
  662. ::google::firestore::v1::DocumentMask* mask_;
  663. ::PROTOBUF_NAMESPACE_ID::int32 page_size_;
  664. bool show_missing_;
  665. union ConsistencySelectorUnion {
  666. ConsistencySelectorUnion() {}
  667. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  668. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  669. } consistency_selector_;
  670. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  671. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  672. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  673. };
  674. // -------------------------------------------------------------------
  675. class ListDocumentsResponse :
  676. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsResponse) */ {
  677. public:
  678. ListDocumentsResponse();
  679. virtual ~ListDocumentsResponse();
  680. ListDocumentsResponse(const ListDocumentsResponse& from);
  681. ListDocumentsResponse(ListDocumentsResponse&& from) noexcept
  682. : ListDocumentsResponse() {
  683. *this = ::std::move(from);
  684. }
  685. inline ListDocumentsResponse& operator=(const ListDocumentsResponse& from) {
  686. CopyFrom(from);
  687. return *this;
  688. }
  689. inline ListDocumentsResponse& operator=(ListDocumentsResponse&& from) noexcept {
  690. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  691. if (this != &from) InternalSwap(&from);
  692. } else {
  693. CopyFrom(from);
  694. }
  695. return *this;
  696. }
  697. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  698. return GetDescriptor();
  699. }
  700. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  701. return GetMetadataStatic().descriptor;
  702. }
  703. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  704. return GetMetadataStatic().reflection;
  705. }
  706. static const ListDocumentsResponse& default_instance();
  707. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  708. static inline const ListDocumentsResponse* internal_default_instance() {
  709. return reinterpret_cast<const ListDocumentsResponse*>(
  710. &_ListDocumentsResponse_default_instance_);
  711. }
  712. static constexpr int kIndexInFileMessages =
  713. 2;
  714. friend void swap(ListDocumentsResponse& a, ListDocumentsResponse& b) {
  715. a.Swap(&b);
  716. }
  717. inline void Swap(ListDocumentsResponse* other) {
  718. if (other == this) return;
  719. InternalSwap(other);
  720. }
  721. // implements Message ----------------------------------------------
  722. inline ListDocumentsResponse* New() const final {
  723. return CreateMaybeMessage<ListDocumentsResponse>(nullptr);
  724. }
  725. ListDocumentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  726. return CreateMaybeMessage<ListDocumentsResponse>(arena);
  727. }
  728. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  729. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  730. void CopyFrom(const ListDocumentsResponse& from);
  731. void MergeFrom(const ListDocumentsResponse& from);
  732. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  733. bool IsInitialized() const final;
  734. size_t ByteSizeLong() const final;
  735. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  736. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  737. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  738. int GetCachedSize() const final { return _cached_size_.Get(); }
  739. private:
  740. inline void SharedCtor();
  741. inline void SharedDtor();
  742. void SetCachedSize(int size) const final;
  743. void InternalSwap(ListDocumentsResponse* other);
  744. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  745. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  746. return "google.firestore.v1.ListDocumentsResponse";
  747. }
  748. private:
  749. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  750. return nullptr;
  751. }
  752. inline void* MaybeArenaPtr() const {
  753. return nullptr;
  754. }
  755. public:
  756. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  757. private:
  758. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  759. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  760. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  761. }
  762. public:
  763. // nested types ----------------------------------------------------
  764. // accessors -------------------------------------------------------
  765. enum : int {
  766. kDocumentsFieldNumber = 1,
  767. kNextPageTokenFieldNumber = 2,
  768. };
  769. // repeated .google.firestore.v1.Document documents = 1;
  770. int documents_size() const;
  771. private:
  772. int _internal_documents_size() const;
  773. public:
  774. void clear_documents();
  775. ::google::firestore::v1::Document* mutable_documents(int index);
  776. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >*
  777. mutable_documents();
  778. private:
  779. const ::google::firestore::v1::Document& _internal_documents(int index) const;
  780. ::google::firestore::v1::Document* _internal_add_documents();
  781. public:
  782. const ::google::firestore::v1::Document& documents(int index) const;
  783. ::google::firestore::v1::Document* add_documents();
  784. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >&
  785. documents() const;
  786. // string next_page_token = 2;
  787. void clear_next_page_token();
  788. const std::string& next_page_token() const;
  789. void set_next_page_token(const std::string& value);
  790. void set_next_page_token(std::string&& value);
  791. void set_next_page_token(const char* value);
  792. void set_next_page_token(const char* value, size_t size);
  793. std::string* mutable_next_page_token();
  794. std::string* release_next_page_token();
  795. void set_allocated_next_page_token(std::string* next_page_token);
  796. private:
  797. const std::string& _internal_next_page_token() const;
  798. void _internal_set_next_page_token(const std::string& value);
  799. std::string* _internal_mutable_next_page_token();
  800. public:
  801. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsResponse)
  802. private:
  803. class _Internal;
  804. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  805. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document > documents_;
  806. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_;
  807. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  808. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  809. };
  810. // -------------------------------------------------------------------
  811. class CreateDocumentRequest :
  812. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CreateDocumentRequest) */ {
  813. public:
  814. CreateDocumentRequest();
  815. virtual ~CreateDocumentRequest();
  816. CreateDocumentRequest(const CreateDocumentRequest& from);
  817. CreateDocumentRequest(CreateDocumentRequest&& from) noexcept
  818. : CreateDocumentRequest() {
  819. *this = ::std::move(from);
  820. }
  821. inline CreateDocumentRequest& operator=(const CreateDocumentRequest& from) {
  822. CopyFrom(from);
  823. return *this;
  824. }
  825. inline CreateDocumentRequest& operator=(CreateDocumentRequest&& from) noexcept {
  826. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  827. if (this != &from) InternalSwap(&from);
  828. } else {
  829. CopyFrom(from);
  830. }
  831. return *this;
  832. }
  833. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  834. return GetDescriptor();
  835. }
  836. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  837. return GetMetadataStatic().descriptor;
  838. }
  839. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  840. return GetMetadataStatic().reflection;
  841. }
  842. static const CreateDocumentRequest& default_instance();
  843. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  844. static inline const CreateDocumentRequest* internal_default_instance() {
  845. return reinterpret_cast<const CreateDocumentRequest*>(
  846. &_CreateDocumentRequest_default_instance_);
  847. }
  848. static constexpr int kIndexInFileMessages =
  849. 3;
  850. friend void swap(CreateDocumentRequest& a, CreateDocumentRequest& b) {
  851. a.Swap(&b);
  852. }
  853. inline void Swap(CreateDocumentRequest* other) {
  854. if (other == this) return;
  855. InternalSwap(other);
  856. }
  857. // implements Message ----------------------------------------------
  858. inline CreateDocumentRequest* New() const final {
  859. return CreateMaybeMessage<CreateDocumentRequest>(nullptr);
  860. }
  861. CreateDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  862. return CreateMaybeMessage<CreateDocumentRequest>(arena);
  863. }
  864. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  865. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  866. void CopyFrom(const CreateDocumentRequest& from);
  867. void MergeFrom(const CreateDocumentRequest& from);
  868. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  869. bool IsInitialized() const final;
  870. size_t ByteSizeLong() const final;
  871. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  872. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  873. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  874. int GetCachedSize() const final { return _cached_size_.Get(); }
  875. private:
  876. inline void SharedCtor();
  877. inline void SharedDtor();
  878. void SetCachedSize(int size) const final;
  879. void InternalSwap(CreateDocumentRequest* other);
  880. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  881. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  882. return "google.firestore.v1.CreateDocumentRequest";
  883. }
  884. private:
  885. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  886. return nullptr;
  887. }
  888. inline void* MaybeArenaPtr() const {
  889. return nullptr;
  890. }
  891. public:
  892. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  893. private:
  894. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  895. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  896. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  897. }
  898. public:
  899. // nested types ----------------------------------------------------
  900. // accessors -------------------------------------------------------
  901. enum : int {
  902. kParentFieldNumber = 1,
  903. kCollectionIdFieldNumber = 2,
  904. kDocumentIdFieldNumber = 3,
  905. kDocumentFieldNumber = 4,
  906. kMaskFieldNumber = 5,
  907. };
  908. // string parent = 1;
  909. void clear_parent();
  910. const std::string& parent() const;
  911. void set_parent(const std::string& value);
  912. void set_parent(std::string&& value);
  913. void set_parent(const char* value);
  914. void set_parent(const char* value, size_t size);
  915. std::string* mutable_parent();
  916. std::string* release_parent();
  917. void set_allocated_parent(std::string* parent);
  918. private:
  919. const std::string& _internal_parent() const;
  920. void _internal_set_parent(const std::string& value);
  921. std::string* _internal_mutable_parent();
  922. public:
  923. // string collection_id = 2;
  924. void clear_collection_id();
  925. const std::string& collection_id() const;
  926. void set_collection_id(const std::string& value);
  927. void set_collection_id(std::string&& value);
  928. void set_collection_id(const char* value);
  929. void set_collection_id(const char* value, size_t size);
  930. std::string* mutable_collection_id();
  931. std::string* release_collection_id();
  932. void set_allocated_collection_id(std::string* collection_id);
  933. private:
  934. const std::string& _internal_collection_id() const;
  935. void _internal_set_collection_id(const std::string& value);
  936. std::string* _internal_mutable_collection_id();
  937. public:
  938. // string document_id = 3;
  939. void clear_document_id();
  940. const std::string& document_id() const;
  941. void set_document_id(const std::string& value);
  942. void set_document_id(std::string&& value);
  943. void set_document_id(const char* value);
  944. void set_document_id(const char* value, size_t size);
  945. std::string* mutable_document_id();
  946. std::string* release_document_id();
  947. void set_allocated_document_id(std::string* document_id);
  948. private:
  949. const std::string& _internal_document_id() const;
  950. void _internal_set_document_id(const std::string& value);
  951. std::string* _internal_mutable_document_id();
  952. public:
  953. // .google.firestore.v1.Document document = 4;
  954. bool has_document() const;
  955. private:
  956. bool _internal_has_document() const;
  957. public:
  958. void clear_document();
  959. const ::google::firestore::v1::Document& document() const;
  960. ::google::firestore::v1::Document* release_document();
  961. ::google::firestore::v1::Document* mutable_document();
  962. void set_allocated_document(::google::firestore::v1::Document* document);
  963. private:
  964. const ::google::firestore::v1::Document& _internal_document() const;
  965. ::google::firestore::v1::Document* _internal_mutable_document();
  966. public:
  967. // .google.firestore.v1.DocumentMask mask = 5;
  968. bool has_mask() const;
  969. private:
  970. bool _internal_has_mask() const;
  971. public:
  972. void clear_mask();
  973. const ::google::firestore::v1::DocumentMask& mask() const;
  974. ::google::firestore::v1::DocumentMask* release_mask();
  975. ::google::firestore::v1::DocumentMask* mutable_mask();
  976. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  977. private:
  978. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  979. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  980. public:
  981. // @@protoc_insertion_point(class_scope:google.firestore.v1.CreateDocumentRequest)
  982. private:
  983. class _Internal;
  984. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  985. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  986. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_id_;
  987. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_id_;
  988. ::google::firestore::v1::Document* document_;
  989. ::google::firestore::v1::DocumentMask* mask_;
  990. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  991. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  992. };
  993. // -------------------------------------------------------------------
  994. class UpdateDocumentRequest :
  995. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.UpdateDocumentRequest) */ {
  996. public:
  997. UpdateDocumentRequest();
  998. virtual ~UpdateDocumentRequest();
  999. UpdateDocumentRequest(const UpdateDocumentRequest& from);
  1000. UpdateDocumentRequest(UpdateDocumentRequest&& from) noexcept
  1001. : UpdateDocumentRequest() {
  1002. *this = ::std::move(from);
  1003. }
  1004. inline UpdateDocumentRequest& operator=(const UpdateDocumentRequest& from) {
  1005. CopyFrom(from);
  1006. return *this;
  1007. }
  1008. inline UpdateDocumentRequest& operator=(UpdateDocumentRequest&& from) noexcept {
  1009. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1010. if (this != &from) InternalSwap(&from);
  1011. } else {
  1012. CopyFrom(from);
  1013. }
  1014. return *this;
  1015. }
  1016. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1017. return GetDescriptor();
  1018. }
  1019. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1020. return GetMetadataStatic().descriptor;
  1021. }
  1022. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1023. return GetMetadataStatic().reflection;
  1024. }
  1025. static const UpdateDocumentRequest& default_instance();
  1026. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1027. static inline const UpdateDocumentRequest* internal_default_instance() {
  1028. return reinterpret_cast<const UpdateDocumentRequest*>(
  1029. &_UpdateDocumentRequest_default_instance_);
  1030. }
  1031. static constexpr int kIndexInFileMessages =
  1032. 4;
  1033. friend void swap(UpdateDocumentRequest& a, UpdateDocumentRequest& b) {
  1034. a.Swap(&b);
  1035. }
  1036. inline void Swap(UpdateDocumentRequest* other) {
  1037. if (other == this) return;
  1038. InternalSwap(other);
  1039. }
  1040. // implements Message ----------------------------------------------
  1041. inline UpdateDocumentRequest* New() const final {
  1042. return CreateMaybeMessage<UpdateDocumentRequest>(nullptr);
  1043. }
  1044. UpdateDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1045. return CreateMaybeMessage<UpdateDocumentRequest>(arena);
  1046. }
  1047. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1048. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1049. void CopyFrom(const UpdateDocumentRequest& from);
  1050. void MergeFrom(const UpdateDocumentRequest& from);
  1051. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1052. bool IsInitialized() const final;
  1053. size_t ByteSizeLong() const final;
  1054. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1055. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1056. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1057. int GetCachedSize() const final { return _cached_size_.Get(); }
  1058. private:
  1059. inline void SharedCtor();
  1060. inline void SharedDtor();
  1061. void SetCachedSize(int size) const final;
  1062. void InternalSwap(UpdateDocumentRequest* other);
  1063. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1064. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1065. return "google.firestore.v1.UpdateDocumentRequest";
  1066. }
  1067. private:
  1068. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1069. return nullptr;
  1070. }
  1071. inline void* MaybeArenaPtr() const {
  1072. return nullptr;
  1073. }
  1074. public:
  1075. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1076. private:
  1077. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1078. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1079. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1080. }
  1081. public:
  1082. // nested types ----------------------------------------------------
  1083. // accessors -------------------------------------------------------
  1084. enum : int {
  1085. kDocumentFieldNumber = 1,
  1086. kUpdateMaskFieldNumber = 2,
  1087. kMaskFieldNumber = 3,
  1088. kCurrentDocumentFieldNumber = 4,
  1089. };
  1090. // .google.firestore.v1.Document document = 1;
  1091. bool has_document() const;
  1092. private:
  1093. bool _internal_has_document() const;
  1094. public:
  1095. void clear_document();
  1096. const ::google::firestore::v1::Document& document() const;
  1097. ::google::firestore::v1::Document* release_document();
  1098. ::google::firestore::v1::Document* mutable_document();
  1099. void set_allocated_document(::google::firestore::v1::Document* document);
  1100. private:
  1101. const ::google::firestore::v1::Document& _internal_document() const;
  1102. ::google::firestore::v1::Document* _internal_mutable_document();
  1103. public:
  1104. // .google.firestore.v1.DocumentMask update_mask = 2;
  1105. bool has_update_mask() const;
  1106. private:
  1107. bool _internal_has_update_mask() const;
  1108. public:
  1109. void clear_update_mask();
  1110. const ::google::firestore::v1::DocumentMask& update_mask() const;
  1111. ::google::firestore::v1::DocumentMask* release_update_mask();
  1112. ::google::firestore::v1::DocumentMask* mutable_update_mask();
  1113. void set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask);
  1114. private:
  1115. const ::google::firestore::v1::DocumentMask& _internal_update_mask() const;
  1116. ::google::firestore::v1::DocumentMask* _internal_mutable_update_mask();
  1117. public:
  1118. // .google.firestore.v1.DocumentMask mask = 3;
  1119. bool has_mask() const;
  1120. private:
  1121. bool _internal_has_mask() const;
  1122. public:
  1123. void clear_mask();
  1124. const ::google::firestore::v1::DocumentMask& mask() const;
  1125. ::google::firestore::v1::DocumentMask* release_mask();
  1126. ::google::firestore::v1::DocumentMask* mutable_mask();
  1127. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  1128. private:
  1129. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  1130. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  1131. public:
  1132. // .google.firestore.v1.Precondition current_document = 4;
  1133. bool has_current_document() const;
  1134. private:
  1135. bool _internal_has_current_document() const;
  1136. public:
  1137. void clear_current_document();
  1138. const ::google::firestore::v1::Precondition& current_document() const;
  1139. ::google::firestore::v1::Precondition* release_current_document();
  1140. ::google::firestore::v1::Precondition* mutable_current_document();
  1141. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  1142. private:
  1143. const ::google::firestore::v1::Precondition& _internal_current_document() const;
  1144. ::google::firestore::v1::Precondition* _internal_mutable_current_document();
  1145. public:
  1146. // @@protoc_insertion_point(class_scope:google.firestore.v1.UpdateDocumentRequest)
  1147. private:
  1148. class _Internal;
  1149. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1150. ::google::firestore::v1::Document* document_;
  1151. ::google::firestore::v1::DocumentMask* update_mask_;
  1152. ::google::firestore::v1::DocumentMask* mask_;
  1153. ::google::firestore::v1::Precondition* current_document_;
  1154. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1155. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1156. };
  1157. // -------------------------------------------------------------------
  1158. class DeleteDocumentRequest :
  1159. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DeleteDocumentRequest) */ {
  1160. public:
  1161. DeleteDocumentRequest();
  1162. virtual ~DeleteDocumentRequest();
  1163. DeleteDocumentRequest(const DeleteDocumentRequest& from);
  1164. DeleteDocumentRequest(DeleteDocumentRequest&& from) noexcept
  1165. : DeleteDocumentRequest() {
  1166. *this = ::std::move(from);
  1167. }
  1168. inline DeleteDocumentRequest& operator=(const DeleteDocumentRequest& from) {
  1169. CopyFrom(from);
  1170. return *this;
  1171. }
  1172. inline DeleteDocumentRequest& operator=(DeleteDocumentRequest&& from) noexcept {
  1173. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1174. if (this != &from) InternalSwap(&from);
  1175. } else {
  1176. CopyFrom(from);
  1177. }
  1178. return *this;
  1179. }
  1180. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1181. return GetDescriptor();
  1182. }
  1183. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1184. return GetMetadataStatic().descriptor;
  1185. }
  1186. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1187. return GetMetadataStatic().reflection;
  1188. }
  1189. static const DeleteDocumentRequest& default_instance();
  1190. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1191. static inline const DeleteDocumentRequest* internal_default_instance() {
  1192. return reinterpret_cast<const DeleteDocumentRequest*>(
  1193. &_DeleteDocumentRequest_default_instance_);
  1194. }
  1195. static constexpr int kIndexInFileMessages =
  1196. 5;
  1197. friend void swap(DeleteDocumentRequest& a, DeleteDocumentRequest& b) {
  1198. a.Swap(&b);
  1199. }
  1200. inline void Swap(DeleteDocumentRequest* other) {
  1201. if (other == this) return;
  1202. InternalSwap(other);
  1203. }
  1204. // implements Message ----------------------------------------------
  1205. inline DeleteDocumentRequest* New() const final {
  1206. return CreateMaybeMessage<DeleteDocumentRequest>(nullptr);
  1207. }
  1208. DeleteDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1209. return CreateMaybeMessage<DeleteDocumentRequest>(arena);
  1210. }
  1211. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1212. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1213. void CopyFrom(const DeleteDocumentRequest& from);
  1214. void MergeFrom(const DeleteDocumentRequest& from);
  1215. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1216. bool IsInitialized() const final;
  1217. size_t ByteSizeLong() const final;
  1218. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1219. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1220. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1221. int GetCachedSize() const final { return _cached_size_.Get(); }
  1222. private:
  1223. inline void SharedCtor();
  1224. inline void SharedDtor();
  1225. void SetCachedSize(int size) const final;
  1226. void InternalSwap(DeleteDocumentRequest* other);
  1227. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1228. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1229. return "google.firestore.v1.DeleteDocumentRequest";
  1230. }
  1231. private:
  1232. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1233. return nullptr;
  1234. }
  1235. inline void* MaybeArenaPtr() const {
  1236. return nullptr;
  1237. }
  1238. public:
  1239. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1240. private:
  1241. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1242. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1243. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1244. }
  1245. public:
  1246. // nested types ----------------------------------------------------
  1247. // accessors -------------------------------------------------------
  1248. enum : int {
  1249. kNameFieldNumber = 1,
  1250. kCurrentDocumentFieldNumber = 2,
  1251. };
  1252. // string name = 1;
  1253. void clear_name();
  1254. const std::string& name() const;
  1255. void set_name(const std::string& value);
  1256. void set_name(std::string&& value);
  1257. void set_name(const char* value);
  1258. void set_name(const char* value, size_t size);
  1259. std::string* mutable_name();
  1260. std::string* release_name();
  1261. void set_allocated_name(std::string* name);
  1262. private:
  1263. const std::string& _internal_name() const;
  1264. void _internal_set_name(const std::string& value);
  1265. std::string* _internal_mutable_name();
  1266. public:
  1267. // .google.firestore.v1.Precondition current_document = 2;
  1268. bool has_current_document() const;
  1269. private:
  1270. bool _internal_has_current_document() const;
  1271. public:
  1272. void clear_current_document();
  1273. const ::google::firestore::v1::Precondition& current_document() const;
  1274. ::google::firestore::v1::Precondition* release_current_document();
  1275. ::google::firestore::v1::Precondition* mutable_current_document();
  1276. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  1277. private:
  1278. const ::google::firestore::v1::Precondition& _internal_current_document() const;
  1279. ::google::firestore::v1::Precondition* _internal_mutable_current_document();
  1280. public:
  1281. // @@protoc_insertion_point(class_scope:google.firestore.v1.DeleteDocumentRequest)
  1282. private:
  1283. class _Internal;
  1284. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1285. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1286. ::google::firestore::v1::Precondition* current_document_;
  1287. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1288. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1289. };
  1290. // -------------------------------------------------------------------
  1291. class BatchGetDocumentsRequest :
  1292. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsRequest) */ {
  1293. public:
  1294. BatchGetDocumentsRequest();
  1295. virtual ~BatchGetDocumentsRequest();
  1296. BatchGetDocumentsRequest(const BatchGetDocumentsRequest& from);
  1297. BatchGetDocumentsRequest(BatchGetDocumentsRequest&& from) noexcept
  1298. : BatchGetDocumentsRequest() {
  1299. *this = ::std::move(from);
  1300. }
  1301. inline BatchGetDocumentsRequest& operator=(const BatchGetDocumentsRequest& from) {
  1302. CopyFrom(from);
  1303. return *this;
  1304. }
  1305. inline BatchGetDocumentsRequest& operator=(BatchGetDocumentsRequest&& from) noexcept {
  1306. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1307. if (this != &from) InternalSwap(&from);
  1308. } else {
  1309. CopyFrom(from);
  1310. }
  1311. return *this;
  1312. }
  1313. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1314. return GetDescriptor();
  1315. }
  1316. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1317. return GetMetadataStatic().descriptor;
  1318. }
  1319. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1320. return GetMetadataStatic().reflection;
  1321. }
  1322. static const BatchGetDocumentsRequest& default_instance();
  1323. enum ConsistencySelectorCase {
  1324. kTransaction = 4,
  1325. kNewTransaction = 5,
  1326. kReadTime = 7,
  1327. CONSISTENCY_SELECTOR_NOT_SET = 0,
  1328. };
  1329. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1330. static inline const BatchGetDocumentsRequest* internal_default_instance() {
  1331. return reinterpret_cast<const BatchGetDocumentsRequest*>(
  1332. &_BatchGetDocumentsRequest_default_instance_);
  1333. }
  1334. static constexpr int kIndexInFileMessages =
  1335. 6;
  1336. friend void swap(BatchGetDocumentsRequest& a, BatchGetDocumentsRequest& b) {
  1337. a.Swap(&b);
  1338. }
  1339. inline void Swap(BatchGetDocumentsRequest* other) {
  1340. if (other == this) return;
  1341. InternalSwap(other);
  1342. }
  1343. // implements Message ----------------------------------------------
  1344. inline BatchGetDocumentsRequest* New() const final {
  1345. return CreateMaybeMessage<BatchGetDocumentsRequest>(nullptr);
  1346. }
  1347. BatchGetDocumentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1348. return CreateMaybeMessage<BatchGetDocumentsRequest>(arena);
  1349. }
  1350. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1351. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1352. void CopyFrom(const BatchGetDocumentsRequest& from);
  1353. void MergeFrom(const BatchGetDocumentsRequest& from);
  1354. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1355. bool IsInitialized() const final;
  1356. size_t ByteSizeLong() const final;
  1357. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1358. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1359. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1360. int GetCachedSize() const final { return _cached_size_.Get(); }
  1361. private:
  1362. inline void SharedCtor();
  1363. inline void SharedDtor();
  1364. void SetCachedSize(int size) const final;
  1365. void InternalSwap(BatchGetDocumentsRequest* other);
  1366. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1367. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1368. return "google.firestore.v1.BatchGetDocumentsRequest";
  1369. }
  1370. private:
  1371. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1372. return nullptr;
  1373. }
  1374. inline void* MaybeArenaPtr() const {
  1375. return nullptr;
  1376. }
  1377. public:
  1378. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1379. private:
  1380. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1381. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1382. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1383. }
  1384. public:
  1385. // nested types ----------------------------------------------------
  1386. // accessors -------------------------------------------------------
  1387. enum : int {
  1388. kDocumentsFieldNumber = 2,
  1389. kDatabaseFieldNumber = 1,
  1390. kMaskFieldNumber = 3,
  1391. kTransactionFieldNumber = 4,
  1392. kNewTransactionFieldNumber = 5,
  1393. kReadTimeFieldNumber = 7,
  1394. };
  1395. // repeated string documents = 2;
  1396. int documents_size() const;
  1397. private:
  1398. int _internal_documents_size() const;
  1399. public:
  1400. void clear_documents();
  1401. const std::string& documents(int index) const;
  1402. std::string* mutable_documents(int index);
  1403. void set_documents(int index, const std::string& value);
  1404. void set_documents(int index, std::string&& value);
  1405. void set_documents(int index, const char* value);
  1406. void set_documents(int index, const char* value, size_t size);
  1407. std::string* add_documents();
  1408. void add_documents(const std::string& value);
  1409. void add_documents(std::string&& value);
  1410. void add_documents(const char* value);
  1411. void add_documents(const char* value, size_t size);
  1412. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& documents() const;
  1413. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_documents();
  1414. private:
  1415. const std::string& _internal_documents(int index) const;
  1416. std::string* _internal_add_documents();
  1417. public:
  1418. // string database = 1;
  1419. void clear_database();
  1420. const std::string& database() const;
  1421. void set_database(const std::string& value);
  1422. void set_database(std::string&& value);
  1423. void set_database(const char* value);
  1424. void set_database(const char* value, size_t size);
  1425. std::string* mutable_database();
  1426. std::string* release_database();
  1427. void set_allocated_database(std::string* database);
  1428. private:
  1429. const std::string& _internal_database() const;
  1430. void _internal_set_database(const std::string& value);
  1431. std::string* _internal_mutable_database();
  1432. public:
  1433. // .google.firestore.v1.DocumentMask mask = 3;
  1434. bool has_mask() const;
  1435. private:
  1436. bool _internal_has_mask() const;
  1437. public:
  1438. void clear_mask();
  1439. const ::google::firestore::v1::DocumentMask& mask() const;
  1440. ::google::firestore::v1::DocumentMask* release_mask();
  1441. ::google::firestore::v1::DocumentMask* mutable_mask();
  1442. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  1443. private:
  1444. const ::google::firestore::v1::DocumentMask& _internal_mask() const;
  1445. ::google::firestore::v1::DocumentMask* _internal_mutable_mask();
  1446. public:
  1447. // bytes transaction = 4;
  1448. private:
  1449. bool _internal_has_transaction() const;
  1450. public:
  1451. void clear_transaction();
  1452. const std::string& transaction() const;
  1453. void set_transaction(const std::string& value);
  1454. void set_transaction(std::string&& value);
  1455. void set_transaction(const char* value);
  1456. void set_transaction(const void* value, size_t size);
  1457. std::string* mutable_transaction();
  1458. std::string* release_transaction();
  1459. void set_allocated_transaction(std::string* transaction);
  1460. private:
  1461. const std::string& _internal_transaction() const;
  1462. void _internal_set_transaction(const std::string& value);
  1463. std::string* _internal_mutable_transaction();
  1464. public:
  1465. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  1466. bool has_new_transaction() const;
  1467. private:
  1468. bool _internal_has_new_transaction() const;
  1469. public:
  1470. void clear_new_transaction();
  1471. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  1472. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  1473. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  1474. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  1475. private:
  1476. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  1477. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  1478. public:
  1479. // .google.protobuf.Timestamp read_time = 7;
  1480. bool has_read_time() const;
  1481. private:
  1482. bool _internal_has_read_time() const;
  1483. public:
  1484. void clear_read_time();
  1485. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1486. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1487. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1488. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1489. private:
  1490. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  1491. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  1492. public:
  1493. void clear_consistency_selector();
  1494. ConsistencySelectorCase consistency_selector_case() const;
  1495. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsRequest)
  1496. private:
  1497. class _Internal;
  1498. void set_has_transaction();
  1499. void set_has_new_transaction();
  1500. void set_has_read_time();
  1501. inline bool has_consistency_selector() const;
  1502. inline void clear_has_consistency_selector();
  1503. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1504. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> documents_;
  1505. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1506. ::google::firestore::v1::DocumentMask* mask_;
  1507. union ConsistencySelectorUnion {
  1508. ConsistencySelectorUnion() {}
  1509. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1510. ::google::firestore::v1::TransactionOptions* new_transaction_;
  1511. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1512. } consistency_selector_;
  1513. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1514. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  1515. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1516. };
  1517. // -------------------------------------------------------------------
  1518. class BatchGetDocumentsResponse :
  1519. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsResponse) */ {
  1520. public:
  1521. BatchGetDocumentsResponse();
  1522. virtual ~BatchGetDocumentsResponse();
  1523. BatchGetDocumentsResponse(const BatchGetDocumentsResponse& from);
  1524. BatchGetDocumentsResponse(BatchGetDocumentsResponse&& from) noexcept
  1525. : BatchGetDocumentsResponse() {
  1526. *this = ::std::move(from);
  1527. }
  1528. inline BatchGetDocumentsResponse& operator=(const BatchGetDocumentsResponse& from) {
  1529. CopyFrom(from);
  1530. return *this;
  1531. }
  1532. inline BatchGetDocumentsResponse& operator=(BatchGetDocumentsResponse&& from) noexcept {
  1533. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1534. if (this != &from) InternalSwap(&from);
  1535. } else {
  1536. CopyFrom(from);
  1537. }
  1538. return *this;
  1539. }
  1540. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1541. return GetDescriptor();
  1542. }
  1543. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1544. return GetMetadataStatic().descriptor;
  1545. }
  1546. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1547. return GetMetadataStatic().reflection;
  1548. }
  1549. static const BatchGetDocumentsResponse& default_instance();
  1550. enum ResultCase {
  1551. kFound = 1,
  1552. kMissing = 2,
  1553. RESULT_NOT_SET = 0,
  1554. };
  1555. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1556. static inline const BatchGetDocumentsResponse* internal_default_instance() {
  1557. return reinterpret_cast<const BatchGetDocumentsResponse*>(
  1558. &_BatchGetDocumentsResponse_default_instance_);
  1559. }
  1560. static constexpr int kIndexInFileMessages =
  1561. 7;
  1562. friend void swap(BatchGetDocumentsResponse& a, BatchGetDocumentsResponse& b) {
  1563. a.Swap(&b);
  1564. }
  1565. inline void Swap(BatchGetDocumentsResponse* other) {
  1566. if (other == this) return;
  1567. InternalSwap(other);
  1568. }
  1569. // implements Message ----------------------------------------------
  1570. inline BatchGetDocumentsResponse* New() const final {
  1571. return CreateMaybeMessage<BatchGetDocumentsResponse>(nullptr);
  1572. }
  1573. BatchGetDocumentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1574. return CreateMaybeMessage<BatchGetDocumentsResponse>(arena);
  1575. }
  1576. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1577. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1578. void CopyFrom(const BatchGetDocumentsResponse& from);
  1579. void MergeFrom(const BatchGetDocumentsResponse& from);
  1580. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1581. bool IsInitialized() const final;
  1582. size_t ByteSizeLong() const final;
  1583. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1584. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1585. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1586. int GetCachedSize() const final { return _cached_size_.Get(); }
  1587. private:
  1588. inline void SharedCtor();
  1589. inline void SharedDtor();
  1590. void SetCachedSize(int size) const final;
  1591. void InternalSwap(BatchGetDocumentsResponse* other);
  1592. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1593. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1594. return "google.firestore.v1.BatchGetDocumentsResponse";
  1595. }
  1596. private:
  1597. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1598. return nullptr;
  1599. }
  1600. inline void* MaybeArenaPtr() const {
  1601. return nullptr;
  1602. }
  1603. public:
  1604. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1605. private:
  1606. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1607. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1608. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1609. }
  1610. public:
  1611. // nested types ----------------------------------------------------
  1612. // accessors -------------------------------------------------------
  1613. enum : int {
  1614. kTransactionFieldNumber = 3,
  1615. kReadTimeFieldNumber = 4,
  1616. kFoundFieldNumber = 1,
  1617. kMissingFieldNumber = 2,
  1618. };
  1619. // bytes transaction = 3;
  1620. void clear_transaction();
  1621. const std::string& transaction() const;
  1622. void set_transaction(const std::string& value);
  1623. void set_transaction(std::string&& value);
  1624. void set_transaction(const char* value);
  1625. void set_transaction(const void* value, size_t size);
  1626. std::string* mutable_transaction();
  1627. std::string* release_transaction();
  1628. void set_allocated_transaction(std::string* transaction);
  1629. private:
  1630. const std::string& _internal_transaction() const;
  1631. void _internal_set_transaction(const std::string& value);
  1632. std::string* _internal_mutable_transaction();
  1633. public:
  1634. // .google.protobuf.Timestamp read_time = 4;
  1635. bool has_read_time() const;
  1636. private:
  1637. bool _internal_has_read_time() const;
  1638. public:
  1639. void clear_read_time();
  1640. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1641. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1642. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1643. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1644. private:
  1645. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  1646. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  1647. public:
  1648. // .google.firestore.v1.Document found = 1;
  1649. bool has_found() const;
  1650. private:
  1651. bool _internal_has_found() const;
  1652. public:
  1653. void clear_found();
  1654. const ::google::firestore::v1::Document& found() const;
  1655. ::google::firestore::v1::Document* release_found();
  1656. ::google::firestore::v1::Document* mutable_found();
  1657. void set_allocated_found(::google::firestore::v1::Document* found);
  1658. private:
  1659. const ::google::firestore::v1::Document& _internal_found() const;
  1660. ::google::firestore::v1::Document* _internal_mutable_found();
  1661. public:
  1662. // string missing = 2;
  1663. private:
  1664. bool _internal_has_missing() const;
  1665. public:
  1666. void clear_missing();
  1667. const std::string& missing() const;
  1668. void set_missing(const std::string& value);
  1669. void set_missing(std::string&& value);
  1670. void set_missing(const char* value);
  1671. void set_missing(const char* value, size_t size);
  1672. std::string* mutable_missing();
  1673. std::string* release_missing();
  1674. void set_allocated_missing(std::string* missing);
  1675. private:
  1676. const std::string& _internal_missing() const;
  1677. void _internal_set_missing(const std::string& value);
  1678. std::string* _internal_mutable_missing();
  1679. public:
  1680. void clear_result();
  1681. ResultCase result_case() const;
  1682. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsResponse)
  1683. private:
  1684. class _Internal;
  1685. void set_has_found();
  1686. void set_has_missing();
  1687. inline bool has_result() const;
  1688. inline void clear_has_result();
  1689. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1690. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1691. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1692. union ResultUnion {
  1693. ResultUnion() {}
  1694. ::google::firestore::v1::Document* found_;
  1695. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr missing_;
  1696. } result_;
  1697. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1698. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  1699. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1700. };
  1701. // -------------------------------------------------------------------
  1702. class BeginTransactionRequest :
  1703. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionRequest) */ {
  1704. public:
  1705. BeginTransactionRequest();
  1706. virtual ~BeginTransactionRequest();
  1707. BeginTransactionRequest(const BeginTransactionRequest& from);
  1708. BeginTransactionRequest(BeginTransactionRequest&& from) noexcept
  1709. : BeginTransactionRequest() {
  1710. *this = ::std::move(from);
  1711. }
  1712. inline BeginTransactionRequest& operator=(const BeginTransactionRequest& from) {
  1713. CopyFrom(from);
  1714. return *this;
  1715. }
  1716. inline BeginTransactionRequest& operator=(BeginTransactionRequest&& from) noexcept {
  1717. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1718. if (this != &from) InternalSwap(&from);
  1719. } else {
  1720. CopyFrom(from);
  1721. }
  1722. return *this;
  1723. }
  1724. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1725. return GetDescriptor();
  1726. }
  1727. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1728. return GetMetadataStatic().descriptor;
  1729. }
  1730. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1731. return GetMetadataStatic().reflection;
  1732. }
  1733. static const BeginTransactionRequest& default_instance();
  1734. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1735. static inline const BeginTransactionRequest* internal_default_instance() {
  1736. return reinterpret_cast<const BeginTransactionRequest*>(
  1737. &_BeginTransactionRequest_default_instance_);
  1738. }
  1739. static constexpr int kIndexInFileMessages =
  1740. 8;
  1741. friend void swap(BeginTransactionRequest& a, BeginTransactionRequest& b) {
  1742. a.Swap(&b);
  1743. }
  1744. inline void Swap(BeginTransactionRequest* other) {
  1745. if (other == this) return;
  1746. InternalSwap(other);
  1747. }
  1748. // implements Message ----------------------------------------------
  1749. inline BeginTransactionRequest* New() const final {
  1750. return CreateMaybeMessage<BeginTransactionRequest>(nullptr);
  1751. }
  1752. BeginTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1753. return CreateMaybeMessage<BeginTransactionRequest>(arena);
  1754. }
  1755. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1756. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1757. void CopyFrom(const BeginTransactionRequest& from);
  1758. void MergeFrom(const BeginTransactionRequest& from);
  1759. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1760. bool IsInitialized() const final;
  1761. size_t ByteSizeLong() const final;
  1762. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1763. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1764. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1765. int GetCachedSize() const final { return _cached_size_.Get(); }
  1766. private:
  1767. inline void SharedCtor();
  1768. inline void SharedDtor();
  1769. void SetCachedSize(int size) const final;
  1770. void InternalSwap(BeginTransactionRequest* other);
  1771. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1772. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1773. return "google.firestore.v1.BeginTransactionRequest";
  1774. }
  1775. private:
  1776. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1777. return nullptr;
  1778. }
  1779. inline void* MaybeArenaPtr() const {
  1780. return nullptr;
  1781. }
  1782. public:
  1783. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1784. private:
  1785. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1786. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1787. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1788. }
  1789. public:
  1790. // nested types ----------------------------------------------------
  1791. // accessors -------------------------------------------------------
  1792. enum : int {
  1793. kDatabaseFieldNumber = 1,
  1794. kOptionsFieldNumber = 2,
  1795. };
  1796. // string database = 1;
  1797. void clear_database();
  1798. const std::string& database() const;
  1799. void set_database(const std::string& value);
  1800. void set_database(std::string&& value);
  1801. void set_database(const char* value);
  1802. void set_database(const char* value, size_t size);
  1803. std::string* mutable_database();
  1804. std::string* release_database();
  1805. void set_allocated_database(std::string* database);
  1806. private:
  1807. const std::string& _internal_database() const;
  1808. void _internal_set_database(const std::string& value);
  1809. std::string* _internal_mutable_database();
  1810. public:
  1811. // .google.firestore.v1.TransactionOptions options = 2;
  1812. bool has_options() const;
  1813. private:
  1814. bool _internal_has_options() const;
  1815. public:
  1816. void clear_options();
  1817. const ::google::firestore::v1::TransactionOptions& options() const;
  1818. ::google::firestore::v1::TransactionOptions* release_options();
  1819. ::google::firestore::v1::TransactionOptions* mutable_options();
  1820. void set_allocated_options(::google::firestore::v1::TransactionOptions* options);
  1821. private:
  1822. const ::google::firestore::v1::TransactionOptions& _internal_options() const;
  1823. ::google::firestore::v1::TransactionOptions* _internal_mutable_options();
  1824. public:
  1825. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionRequest)
  1826. private:
  1827. class _Internal;
  1828. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1829. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1830. ::google::firestore::v1::TransactionOptions* options_;
  1831. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1832. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1833. };
  1834. // -------------------------------------------------------------------
  1835. class BeginTransactionResponse :
  1836. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionResponse) */ {
  1837. public:
  1838. BeginTransactionResponse();
  1839. virtual ~BeginTransactionResponse();
  1840. BeginTransactionResponse(const BeginTransactionResponse& from);
  1841. BeginTransactionResponse(BeginTransactionResponse&& from) noexcept
  1842. : BeginTransactionResponse() {
  1843. *this = ::std::move(from);
  1844. }
  1845. inline BeginTransactionResponse& operator=(const BeginTransactionResponse& from) {
  1846. CopyFrom(from);
  1847. return *this;
  1848. }
  1849. inline BeginTransactionResponse& operator=(BeginTransactionResponse&& from) noexcept {
  1850. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1851. if (this != &from) InternalSwap(&from);
  1852. } else {
  1853. CopyFrom(from);
  1854. }
  1855. return *this;
  1856. }
  1857. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1858. return GetDescriptor();
  1859. }
  1860. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1861. return GetMetadataStatic().descriptor;
  1862. }
  1863. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1864. return GetMetadataStatic().reflection;
  1865. }
  1866. static const BeginTransactionResponse& default_instance();
  1867. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1868. static inline const BeginTransactionResponse* internal_default_instance() {
  1869. return reinterpret_cast<const BeginTransactionResponse*>(
  1870. &_BeginTransactionResponse_default_instance_);
  1871. }
  1872. static constexpr int kIndexInFileMessages =
  1873. 9;
  1874. friend void swap(BeginTransactionResponse& a, BeginTransactionResponse& b) {
  1875. a.Swap(&b);
  1876. }
  1877. inline void Swap(BeginTransactionResponse* other) {
  1878. if (other == this) return;
  1879. InternalSwap(other);
  1880. }
  1881. // implements Message ----------------------------------------------
  1882. inline BeginTransactionResponse* New() const final {
  1883. return CreateMaybeMessage<BeginTransactionResponse>(nullptr);
  1884. }
  1885. BeginTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1886. return CreateMaybeMessage<BeginTransactionResponse>(arena);
  1887. }
  1888. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1889. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1890. void CopyFrom(const BeginTransactionResponse& from);
  1891. void MergeFrom(const BeginTransactionResponse& from);
  1892. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1893. bool IsInitialized() const final;
  1894. size_t ByteSizeLong() const final;
  1895. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1896. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1897. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1898. int GetCachedSize() const final { return _cached_size_.Get(); }
  1899. private:
  1900. inline void SharedCtor();
  1901. inline void SharedDtor();
  1902. void SetCachedSize(int size) const final;
  1903. void InternalSwap(BeginTransactionResponse* other);
  1904. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1905. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1906. return "google.firestore.v1.BeginTransactionResponse";
  1907. }
  1908. private:
  1909. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1910. return nullptr;
  1911. }
  1912. inline void* MaybeArenaPtr() const {
  1913. return nullptr;
  1914. }
  1915. public:
  1916. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1917. private:
  1918. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1919. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1920. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1921. }
  1922. public:
  1923. // nested types ----------------------------------------------------
  1924. // accessors -------------------------------------------------------
  1925. enum : int {
  1926. kTransactionFieldNumber = 1,
  1927. };
  1928. // bytes transaction = 1;
  1929. void clear_transaction();
  1930. const std::string& transaction() const;
  1931. void set_transaction(const std::string& value);
  1932. void set_transaction(std::string&& value);
  1933. void set_transaction(const char* value);
  1934. void set_transaction(const void* value, size_t size);
  1935. std::string* mutable_transaction();
  1936. std::string* release_transaction();
  1937. void set_allocated_transaction(std::string* transaction);
  1938. private:
  1939. const std::string& _internal_transaction() const;
  1940. void _internal_set_transaction(const std::string& value);
  1941. std::string* _internal_mutable_transaction();
  1942. public:
  1943. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionResponse)
  1944. private:
  1945. class _Internal;
  1946. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1947. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1948. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1949. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1950. };
  1951. // -------------------------------------------------------------------
  1952. class CommitRequest :
  1953. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitRequest) */ {
  1954. public:
  1955. CommitRequest();
  1956. virtual ~CommitRequest();
  1957. CommitRequest(const CommitRequest& from);
  1958. CommitRequest(CommitRequest&& from) noexcept
  1959. : CommitRequest() {
  1960. *this = ::std::move(from);
  1961. }
  1962. inline CommitRequest& operator=(const CommitRequest& from) {
  1963. CopyFrom(from);
  1964. return *this;
  1965. }
  1966. inline CommitRequest& operator=(CommitRequest&& from) noexcept {
  1967. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1968. if (this != &from) InternalSwap(&from);
  1969. } else {
  1970. CopyFrom(from);
  1971. }
  1972. return *this;
  1973. }
  1974. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1975. return GetDescriptor();
  1976. }
  1977. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1978. return GetMetadataStatic().descriptor;
  1979. }
  1980. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1981. return GetMetadataStatic().reflection;
  1982. }
  1983. static const CommitRequest& default_instance();
  1984. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1985. static inline const CommitRequest* internal_default_instance() {
  1986. return reinterpret_cast<const CommitRequest*>(
  1987. &_CommitRequest_default_instance_);
  1988. }
  1989. static constexpr int kIndexInFileMessages =
  1990. 10;
  1991. friend void swap(CommitRequest& a, CommitRequest& b) {
  1992. a.Swap(&b);
  1993. }
  1994. inline void Swap(CommitRequest* other) {
  1995. if (other == this) return;
  1996. InternalSwap(other);
  1997. }
  1998. // implements Message ----------------------------------------------
  1999. inline CommitRequest* New() const final {
  2000. return CreateMaybeMessage<CommitRequest>(nullptr);
  2001. }
  2002. CommitRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2003. return CreateMaybeMessage<CommitRequest>(arena);
  2004. }
  2005. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2006. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2007. void CopyFrom(const CommitRequest& from);
  2008. void MergeFrom(const CommitRequest& from);
  2009. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2010. bool IsInitialized() const final;
  2011. size_t ByteSizeLong() const final;
  2012. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2013. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2014. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2015. int GetCachedSize() const final { return _cached_size_.Get(); }
  2016. private:
  2017. inline void SharedCtor();
  2018. inline void SharedDtor();
  2019. void SetCachedSize(int size) const final;
  2020. void InternalSwap(CommitRequest* other);
  2021. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2022. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2023. return "google.firestore.v1.CommitRequest";
  2024. }
  2025. private:
  2026. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2027. return nullptr;
  2028. }
  2029. inline void* MaybeArenaPtr() const {
  2030. return nullptr;
  2031. }
  2032. public:
  2033. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2034. private:
  2035. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2036. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2037. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2038. }
  2039. public:
  2040. // nested types ----------------------------------------------------
  2041. // accessors -------------------------------------------------------
  2042. enum : int {
  2043. kWritesFieldNumber = 2,
  2044. kDatabaseFieldNumber = 1,
  2045. kTransactionFieldNumber = 3,
  2046. };
  2047. // repeated .google.firestore.v1.Write writes = 2;
  2048. int writes_size() const;
  2049. private:
  2050. int _internal_writes_size() const;
  2051. public:
  2052. void clear_writes();
  2053. ::google::firestore::v1::Write* mutable_writes(int index);
  2054. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  2055. mutable_writes();
  2056. private:
  2057. const ::google::firestore::v1::Write& _internal_writes(int index) const;
  2058. ::google::firestore::v1::Write* _internal_add_writes();
  2059. public:
  2060. const ::google::firestore::v1::Write& writes(int index) const;
  2061. ::google::firestore::v1::Write* add_writes();
  2062. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  2063. writes() const;
  2064. // string database = 1;
  2065. void clear_database();
  2066. const std::string& database() const;
  2067. void set_database(const std::string& value);
  2068. void set_database(std::string&& value);
  2069. void set_database(const char* value);
  2070. void set_database(const char* value, size_t size);
  2071. std::string* mutable_database();
  2072. std::string* release_database();
  2073. void set_allocated_database(std::string* database);
  2074. private:
  2075. const std::string& _internal_database() const;
  2076. void _internal_set_database(const std::string& value);
  2077. std::string* _internal_mutable_database();
  2078. public:
  2079. // bytes transaction = 3;
  2080. void clear_transaction();
  2081. const std::string& transaction() const;
  2082. void set_transaction(const std::string& value);
  2083. void set_transaction(std::string&& value);
  2084. void set_transaction(const char* value);
  2085. void set_transaction(const void* value, size_t size);
  2086. std::string* mutable_transaction();
  2087. std::string* release_transaction();
  2088. void set_allocated_transaction(std::string* transaction);
  2089. private:
  2090. const std::string& _internal_transaction() const;
  2091. void _internal_set_transaction(const std::string& value);
  2092. std::string* _internal_mutable_transaction();
  2093. public:
  2094. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitRequest)
  2095. private:
  2096. class _Internal;
  2097. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2098. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  2099. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2100. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2101. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2102. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2103. };
  2104. // -------------------------------------------------------------------
  2105. class CommitResponse :
  2106. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitResponse) */ {
  2107. public:
  2108. CommitResponse();
  2109. virtual ~CommitResponse();
  2110. CommitResponse(const CommitResponse& from);
  2111. CommitResponse(CommitResponse&& from) noexcept
  2112. : CommitResponse() {
  2113. *this = ::std::move(from);
  2114. }
  2115. inline CommitResponse& operator=(const CommitResponse& from) {
  2116. CopyFrom(from);
  2117. return *this;
  2118. }
  2119. inline CommitResponse& operator=(CommitResponse&& from) noexcept {
  2120. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2121. if (this != &from) InternalSwap(&from);
  2122. } else {
  2123. CopyFrom(from);
  2124. }
  2125. return *this;
  2126. }
  2127. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2128. return GetDescriptor();
  2129. }
  2130. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2131. return GetMetadataStatic().descriptor;
  2132. }
  2133. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2134. return GetMetadataStatic().reflection;
  2135. }
  2136. static const CommitResponse& default_instance();
  2137. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2138. static inline const CommitResponse* internal_default_instance() {
  2139. return reinterpret_cast<const CommitResponse*>(
  2140. &_CommitResponse_default_instance_);
  2141. }
  2142. static constexpr int kIndexInFileMessages =
  2143. 11;
  2144. friend void swap(CommitResponse& a, CommitResponse& b) {
  2145. a.Swap(&b);
  2146. }
  2147. inline void Swap(CommitResponse* other) {
  2148. if (other == this) return;
  2149. InternalSwap(other);
  2150. }
  2151. // implements Message ----------------------------------------------
  2152. inline CommitResponse* New() const final {
  2153. return CreateMaybeMessage<CommitResponse>(nullptr);
  2154. }
  2155. CommitResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2156. return CreateMaybeMessage<CommitResponse>(arena);
  2157. }
  2158. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2159. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2160. void CopyFrom(const CommitResponse& from);
  2161. void MergeFrom(const CommitResponse& from);
  2162. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2163. bool IsInitialized() const final;
  2164. size_t ByteSizeLong() const final;
  2165. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2166. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2167. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2168. int GetCachedSize() const final { return _cached_size_.Get(); }
  2169. private:
  2170. inline void SharedCtor();
  2171. inline void SharedDtor();
  2172. void SetCachedSize(int size) const final;
  2173. void InternalSwap(CommitResponse* other);
  2174. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2175. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2176. return "google.firestore.v1.CommitResponse";
  2177. }
  2178. private:
  2179. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2180. return nullptr;
  2181. }
  2182. inline void* MaybeArenaPtr() const {
  2183. return nullptr;
  2184. }
  2185. public:
  2186. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2187. private:
  2188. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2189. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2190. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2191. }
  2192. public:
  2193. // nested types ----------------------------------------------------
  2194. // accessors -------------------------------------------------------
  2195. enum : int {
  2196. kWriteResultsFieldNumber = 1,
  2197. kCommitTimeFieldNumber = 2,
  2198. };
  2199. // repeated .google.firestore.v1.WriteResult write_results = 1;
  2200. int write_results_size() const;
  2201. private:
  2202. int _internal_write_results_size() const;
  2203. public:
  2204. void clear_write_results();
  2205. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  2206. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  2207. mutable_write_results();
  2208. private:
  2209. const ::google::firestore::v1::WriteResult& _internal_write_results(int index) const;
  2210. ::google::firestore::v1::WriteResult* _internal_add_write_results();
  2211. public:
  2212. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  2213. ::google::firestore::v1::WriteResult* add_write_results();
  2214. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  2215. write_results() const;
  2216. // .google.protobuf.Timestamp commit_time = 2;
  2217. bool has_commit_time() const;
  2218. private:
  2219. bool _internal_has_commit_time() const;
  2220. public:
  2221. void clear_commit_time();
  2222. const PROTOBUF_NAMESPACE_ID::Timestamp& commit_time() const;
  2223. PROTOBUF_NAMESPACE_ID::Timestamp* release_commit_time();
  2224. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_commit_time();
  2225. void set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time);
  2226. private:
  2227. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_commit_time() const;
  2228. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_commit_time();
  2229. public:
  2230. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitResponse)
  2231. private:
  2232. class _Internal;
  2233. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2234. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  2235. PROTOBUF_NAMESPACE_ID::Timestamp* commit_time_;
  2236. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2237. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2238. };
  2239. // -------------------------------------------------------------------
  2240. class RollbackRequest :
  2241. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RollbackRequest) */ {
  2242. public:
  2243. RollbackRequest();
  2244. virtual ~RollbackRequest();
  2245. RollbackRequest(const RollbackRequest& from);
  2246. RollbackRequest(RollbackRequest&& from) noexcept
  2247. : RollbackRequest() {
  2248. *this = ::std::move(from);
  2249. }
  2250. inline RollbackRequest& operator=(const RollbackRequest& from) {
  2251. CopyFrom(from);
  2252. return *this;
  2253. }
  2254. inline RollbackRequest& operator=(RollbackRequest&& from) noexcept {
  2255. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2256. if (this != &from) InternalSwap(&from);
  2257. } else {
  2258. CopyFrom(from);
  2259. }
  2260. return *this;
  2261. }
  2262. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2263. return GetDescriptor();
  2264. }
  2265. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2266. return GetMetadataStatic().descriptor;
  2267. }
  2268. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2269. return GetMetadataStatic().reflection;
  2270. }
  2271. static const RollbackRequest& default_instance();
  2272. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2273. static inline const RollbackRequest* internal_default_instance() {
  2274. return reinterpret_cast<const RollbackRequest*>(
  2275. &_RollbackRequest_default_instance_);
  2276. }
  2277. static constexpr int kIndexInFileMessages =
  2278. 12;
  2279. friend void swap(RollbackRequest& a, RollbackRequest& b) {
  2280. a.Swap(&b);
  2281. }
  2282. inline void Swap(RollbackRequest* other) {
  2283. if (other == this) return;
  2284. InternalSwap(other);
  2285. }
  2286. // implements Message ----------------------------------------------
  2287. inline RollbackRequest* New() const final {
  2288. return CreateMaybeMessage<RollbackRequest>(nullptr);
  2289. }
  2290. RollbackRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2291. return CreateMaybeMessage<RollbackRequest>(arena);
  2292. }
  2293. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2294. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2295. void CopyFrom(const RollbackRequest& from);
  2296. void MergeFrom(const RollbackRequest& from);
  2297. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2298. bool IsInitialized() const final;
  2299. size_t ByteSizeLong() const final;
  2300. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2301. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2302. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2303. int GetCachedSize() const final { return _cached_size_.Get(); }
  2304. private:
  2305. inline void SharedCtor();
  2306. inline void SharedDtor();
  2307. void SetCachedSize(int size) const final;
  2308. void InternalSwap(RollbackRequest* other);
  2309. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2310. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2311. return "google.firestore.v1.RollbackRequest";
  2312. }
  2313. private:
  2314. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2315. return nullptr;
  2316. }
  2317. inline void* MaybeArenaPtr() const {
  2318. return nullptr;
  2319. }
  2320. public:
  2321. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2322. private:
  2323. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2324. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2325. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2326. }
  2327. public:
  2328. // nested types ----------------------------------------------------
  2329. // accessors -------------------------------------------------------
  2330. enum : int {
  2331. kDatabaseFieldNumber = 1,
  2332. kTransactionFieldNumber = 2,
  2333. };
  2334. // string database = 1;
  2335. void clear_database();
  2336. const std::string& database() const;
  2337. void set_database(const std::string& value);
  2338. void set_database(std::string&& value);
  2339. void set_database(const char* value);
  2340. void set_database(const char* value, size_t size);
  2341. std::string* mutable_database();
  2342. std::string* release_database();
  2343. void set_allocated_database(std::string* database);
  2344. private:
  2345. const std::string& _internal_database() const;
  2346. void _internal_set_database(const std::string& value);
  2347. std::string* _internal_mutable_database();
  2348. public:
  2349. // bytes transaction = 2;
  2350. void clear_transaction();
  2351. const std::string& transaction() const;
  2352. void set_transaction(const std::string& value);
  2353. void set_transaction(std::string&& value);
  2354. void set_transaction(const char* value);
  2355. void set_transaction(const void* value, size_t size);
  2356. std::string* mutable_transaction();
  2357. std::string* release_transaction();
  2358. void set_allocated_transaction(std::string* transaction);
  2359. private:
  2360. const std::string& _internal_transaction() const;
  2361. void _internal_set_transaction(const std::string& value);
  2362. std::string* _internal_mutable_transaction();
  2363. public:
  2364. // @@protoc_insertion_point(class_scope:google.firestore.v1.RollbackRequest)
  2365. private:
  2366. class _Internal;
  2367. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2368. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2369. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2370. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2371. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2372. };
  2373. // -------------------------------------------------------------------
  2374. class RunQueryRequest :
  2375. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryRequest) */ {
  2376. public:
  2377. RunQueryRequest();
  2378. virtual ~RunQueryRequest();
  2379. RunQueryRequest(const RunQueryRequest& from);
  2380. RunQueryRequest(RunQueryRequest&& from) noexcept
  2381. : RunQueryRequest() {
  2382. *this = ::std::move(from);
  2383. }
  2384. inline RunQueryRequest& operator=(const RunQueryRequest& from) {
  2385. CopyFrom(from);
  2386. return *this;
  2387. }
  2388. inline RunQueryRequest& operator=(RunQueryRequest&& from) noexcept {
  2389. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2390. if (this != &from) InternalSwap(&from);
  2391. } else {
  2392. CopyFrom(from);
  2393. }
  2394. return *this;
  2395. }
  2396. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2397. return GetDescriptor();
  2398. }
  2399. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2400. return GetMetadataStatic().descriptor;
  2401. }
  2402. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2403. return GetMetadataStatic().reflection;
  2404. }
  2405. static const RunQueryRequest& default_instance();
  2406. enum QueryTypeCase {
  2407. kStructuredQuery = 2,
  2408. QUERY_TYPE_NOT_SET = 0,
  2409. };
  2410. enum ConsistencySelectorCase {
  2411. kTransaction = 5,
  2412. kNewTransaction = 6,
  2413. kReadTime = 7,
  2414. CONSISTENCY_SELECTOR_NOT_SET = 0,
  2415. };
  2416. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2417. static inline const RunQueryRequest* internal_default_instance() {
  2418. return reinterpret_cast<const RunQueryRequest*>(
  2419. &_RunQueryRequest_default_instance_);
  2420. }
  2421. static constexpr int kIndexInFileMessages =
  2422. 13;
  2423. friend void swap(RunQueryRequest& a, RunQueryRequest& b) {
  2424. a.Swap(&b);
  2425. }
  2426. inline void Swap(RunQueryRequest* other) {
  2427. if (other == this) return;
  2428. InternalSwap(other);
  2429. }
  2430. // implements Message ----------------------------------------------
  2431. inline RunQueryRequest* New() const final {
  2432. return CreateMaybeMessage<RunQueryRequest>(nullptr);
  2433. }
  2434. RunQueryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2435. return CreateMaybeMessage<RunQueryRequest>(arena);
  2436. }
  2437. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2438. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2439. void CopyFrom(const RunQueryRequest& from);
  2440. void MergeFrom(const RunQueryRequest& from);
  2441. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2442. bool IsInitialized() const final;
  2443. size_t ByteSizeLong() const final;
  2444. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2445. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2446. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2447. int GetCachedSize() const final { return _cached_size_.Get(); }
  2448. private:
  2449. inline void SharedCtor();
  2450. inline void SharedDtor();
  2451. void SetCachedSize(int size) const final;
  2452. void InternalSwap(RunQueryRequest* other);
  2453. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2454. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2455. return "google.firestore.v1.RunQueryRequest";
  2456. }
  2457. private:
  2458. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2459. return nullptr;
  2460. }
  2461. inline void* MaybeArenaPtr() const {
  2462. return nullptr;
  2463. }
  2464. public:
  2465. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2466. private:
  2467. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2468. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2469. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2470. }
  2471. public:
  2472. // nested types ----------------------------------------------------
  2473. // accessors -------------------------------------------------------
  2474. enum : int {
  2475. kParentFieldNumber = 1,
  2476. kStructuredQueryFieldNumber = 2,
  2477. kTransactionFieldNumber = 5,
  2478. kNewTransactionFieldNumber = 6,
  2479. kReadTimeFieldNumber = 7,
  2480. };
  2481. // string parent = 1;
  2482. void clear_parent();
  2483. const std::string& parent() const;
  2484. void set_parent(const std::string& value);
  2485. void set_parent(std::string&& value);
  2486. void set_parent(const char* value);
  2487. void set_parent(const char* value, size_t size);
  2488. std::string* mutable_parent();
  2489. std::string* release_parent();
  2490. void set_allocated_parent(std::string* parent);
  2491. private:
  2492. const std::string& _internal_parent() const;
  2493. void _internal_set_parent(const std::string& value);
  2494. std::string* _internal_mutable_parent();
  2495. public:
  2496. // .google.firestore.v1.StructuredQuery structured_query = 2;
  2497. bool has_structured_query() const;
  2498. private:
  2499. bool _internal_has_structured_query() const;
  2500. public:
  2501. void clear_structured_query();
  2502. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  2503. ::google::firestore::v1::StructuredQuery* release_structured_query();
  2504. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  2505. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  2506. private:
  2507. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  2508. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  2509. public:
  2510. // bytes transaction = 5;
  2511. private:
  2512. bool _internal_has_transaction() const;
  2513. public:
  2514. void clear_transaction();
  2515. const std::string& transaction() const;
  2516. void set_transaction(const std::string& value);
  2517. void set_transaction(std::string&& value);
  2518. void set_transaction(const char* value);
  2519. void set_transaction(const void* value, size_t size);
  2520. std::string* mutable_transaction();
  2521. std::string* release_transaction();
  2522. void set_allocated_transaction(std::string* transaction);
  2523. private:
  2524. const std::string& _internal_transaction() const;
  2525. void _internal_set_transaction(const std::string& value);
  2526. std::string* _internal_mutable_transaction();
  2527. public:
  2528. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  2529. bool has_new_transaction() const;
  2530. private:
  2531. bool _internal_has_new_transaction() const;
  2532. public:
  2533. void clear_new_transaction();
  2534. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  2535. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  2536. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  2537. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  2538. private:
  2539. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  2540. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  2541. public:
  2542. // .google.protobuf.Timestamp read_time = 7;
  2543. bool has_read_time() const;
  2544. private:
  2545. bool _internal_has_read_time() const;
  2546. public:
  2547. void clear_read_time();
  2548. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2549. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2550. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2551. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2552. private:
  2553. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  2554. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  2555. public:
  2556. void clear_query_type();
  2557. QueryTypeCase query_type_case() const;
  2558. void clear_consistency_selector();
  2559. ConsistencySelectorCase consistency_selector_case() const;
  2560. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryRequest)
  2561. private:
  2562. class _Internal;
  2563. void set_has_structured_query();
  2564. void set_has_transaction();
  2565. void set_has_new_transaction();
  2566. void set_has_read_time();
  2567. inline bool has_query_type() const;
  2568. inline void clear_has_query_type();
  2569. inline bool has_consistency_selector() const;
  2570. inline void clear_has_consistency_selector();
  2571. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2572. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  2573. union QueryTypeUnion {
  2574. QueryTypeUnion() {}
  2575. ::google::firestore::v1::StructuredQuery* structured_query_;
  2576. } query_type_;
  2577. union ConsistencySelectorUnion {
  2578. ConsistencySelectorUnion() {}
  2579. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2580. ::google::firestore::v1::TransactionOptions* new_transaction_;
  2581. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2582. } consistency_selector_;
  2583. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2584. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  2585. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2586. };
  2587. // -------------------------------------------------------------------
  2588. class RunQueryResponse :
  2589. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryResponse) */ {
  2590. public:
  2591. RunQueryResponse();
  2592. virtual ~RunQueryResponse();
  2593. RunQueryResponse(const RunQueryResponse& from);
  2594. RunQueryResponse(RunQueryResponse&& from) noexcept
  2595. : RunQueryResponse() {
  2596. *this = ::std::move(from);
  2597. }
  2598. inline RunQueryResponse& operator=(const RunQueryResponse& from) {
  2599. CopyFrom(from);
  2600. return *this;
  2601. }
  2602. inline RunQueryResponse& operator=(RunQueryResponse&& from) noexcept {
  2603. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2604. if (this != &from) InternalSwap(&from);
  2605. } else {
  2606. CopyFrom(from);
  2607. }
  2608. return *this;
  2609. }
  2610. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2611. return GetDescriptor();
  2612. }
  2613. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2614. return GetMetadataStatic().descriptor;
  2615. }
  2616. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2617. return GetMetadataStatic().reflection;
  2618. }
  2619. static const RunQueryResponse& default_instance();
  2620. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2621. static inline const RunQueryResponse* internal_default_instance() {
  2622. return reinterpret_cast<const RunQueryResponse*>(
  2623. &_RunQueryResponse_default_instance_);
  2624. }
  2625. static constexpr int kIndexInFileMessages =
  2626. 14;
  2627. friend void swap(RunQueryResponse& a, RunQueryResponse& b) {
  2628. a.Swap(&b);
  2629. }
  2630. inline void Swap(RunQueryResponse* other) {
  2631. if (other == this) return;
  2632. InternalSwap(other);
  2633. }
  2634. // implements Message ----------------------------------------------
  2635. inline RunQueryResponse* New() const final {
  2636. return CreateMaybeMessage<RunQueryResponse>(nullptr);
  2637. }
  2638. RunQueryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2639. return CreateMaybeMessage<RunQueryResponse>(arena);
  2640. }
  2641. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2642. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2643. void CopyFrom(const RunQueryResponse& from);
  2644. void MergeFrom(const RunQueryResponse& from);
  2645. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2646. bool IsInitialized() const final;
  2647. size_t ByteSizeLong() const final;
  2648. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2649. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2650. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2651. int GetCachedSize() const final { return _cached_size_.Get(); }
  2652. private:
  2653. inline void SharedCtor();
  2654. inline void SharedDtor();
  2655. void SetCachedSize(int size) const final;
  2656. void InternalSwap(RunQueryResponse* other);
  2657. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2658. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2659. return "google.firestore.v1.RunQueryResponse";
  2660. }
  2661. private:
  2662. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2663. return nullptr;
  2664. }
  2665. inline void* MaybeArenaPtr() const {
  2666. return nullptr;
  2667. }
  2668. public:
  2669. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2670. private:
  2671. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2672. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2673. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2674. }
  2675. public:
  2676. // nested types ----------------------------------------------------
  2677. // accessors -------------------------------------------------------
  2678. enum : int {
  2679. kTransactionFieldNumber = 2,
  2680. kDocumentFieldNumber = 1,
  2681. kReadTimeFieldNumber = 3,
  2682. kSkippedResultsFieldNumber = 4,
  2683. };
  2684. // bytes transaction = 2;
  2685. void clear_transaction();
  2686. const std::string& transaction() const;
  2687. void set_transaction(const std::string& value);
  2688. void set_transaction(std::string&& value);
  2689. void set_transaction(const char* value);
  2690. void set_transaction(const void* value, size_t size);
  2691. std::string* mutable_transaction();
  2692. std::string* release_transaction();
  2693. void set_allocated_transaction(std::string* transaction);
  2694. private:
  2695. const std::string& _internal_transaction() const;
  2696. void _internal_set_transaction(const std::string& value);
  2697. std::string* _internal_mutable_transaction();
  2698. public:
  2699. // .google.firestore.v1.Document document = 1;
  2700. bool has_document() const;
  2701. private:
  2702. bool _internal_has_document() const;
  2703. public:
  2704. void clear_document();
  2705. const ::google::firestore::v1::Document& document() const;
  2706. ::google::firestore::v1::Document* release_document();
  2707. ::google::firestore::v1::Document* mutable_document();
  2708. void set_allocated_document(::google::firestore::v1::Document* document);
  2709. private:
  2710. const ::google::firestore::v1::Document& _internal_document() const;
  2711. ::google::firestore::v1::Document* _internal_mutable_document();
  2712. public:
  2713. // .google.protobuf.Timestamp read_time = 3;
  2714. bool has_read_time() const;
  2715. private:
  2716. bool _internal_has_read_time() const;
  2717. public:
  2718. void clear_read_time();
  2719. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2720. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2721. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2722. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2723. private:
  2724. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  2725. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  2726. public:
  2727. // int32 skipped_results = 4;
  2728. void clear_skipped_results();
  2729. ::PROTOBUF_NAMESPACE_ID::int32 skipped_results() const;
  2730. void set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value);
  2731. private:
  2732. ::PROTOBUF_NAMESPACE_ID::int32 _internal_skipped_results() const;
  2733. void _internal_set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value);
  2734. public:
  2735. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryResponse)
  2736. private:
  2737. class _Internal;
  2738. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2739. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2740. ::google::firestore::v1::Document* document_;
  2741. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2742. ::PROTOBUF_NAMESPACE_ID::int32 skipped_results_;
  2743. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2744. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2745. };
  2746. // -------------------------------------------------------------------
  2747. class RunAggregationQueryRequest :
  2748. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunAggregationQueryRequest) */ {
  2749. public:
  2750. RunAggregationQueryRequest();
  2751. virtual ~RunAggregationQueryRequest();
  2752. RunAggregationQueryRequest(const RunAggregationQueryRequest& from);
  2753. RunAggregationQueryRequest(RunAggregationQueryRequest&& from) noexcept
  2754. : RunAggregationQueryRequest() {
  2755. *this = ::std::move(from);
  2756. }
  2757. inline RunAggregationQueryRequest& operator=(const RunAggregationQueryRequest& from) {
  2758. CopyFrom(from);
  2759. return *this;
  2760. }
  2761. inline RunAggregationQueryRequest& operator=(RunAggregationQueryRequest&& from) noexcept {
  2762. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2763. if (this != &from) InternalSwap(&from);
  2764. } else {
  2765. CopyFrom(from);
  2766. }
  2767. return *this;
  2768. }
  2769. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2770. return GetDescriptor();
  2771. }
  2772. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2773. return GetMetadataStatic().descriptor;
  2774. }
  2775. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2776. return GetMetadataStatic().reflection;
  2777. }
  2778. static const RunAggregationQueryRequest& default_instance();
  2779. enum QueryTypeCase {
  2780. kStructuredAggregationQuery = 2,
  2781. QUERY_TYPE_NOT_SET = 0,
  2782. };
  2783. enum ConsistencySelectorCase {
  2784. kTransaction = 4,
  2785. kNewTransaction = 5,
  2786. kReadTime = 6,
  2787. CONSISTENCY_SELECTOR_NOT_SET = 0,
  2788. };
  2789. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2790. static inline const RunAggregationQueryRequest* internal_default_instance() {
  2791. return reinterpret_cast<const RunAggregationQueryRequest*>(
  2792. &_RunAggregationQueryRequest_default_instance_);
  2793. }
  2794. static constexpr int kIndexInFileMessages =
  2795. 15;
  2796. friend void swap(RunAggregationQueryRequest& a, RunAggregationQueryRequest& b) {
  2797. a.Swap(&b);
  2798. }
  2799. inline void Swap(RunAggregationQueryRequest* other) {
  2800. if (other == this) return;
  2801. InternalSwap(other);
  2802. }
  2803. // implements Message ----------------------------------------------
  2804. inline RunAggregationQueryRequest* New() const final {
  2805. return CreateMaybeMessage<RunAggregationQueryRequest>(nullptr);
  2806. }
  2807. RunAggregationQueryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2808. return CreateMaybeMessage<RunAggregationQueryRequest>(arena);
  2809. }
  2810. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2811. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2812. void CopyFrom(const RunAggregationQueryRequest& from);
  2813. void MergeFrom(const RunAggregationQueryRequest& from);
  2814. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2815. bool IsInitialized() const final;
  2816. size_t ByteSizeLong() const final;
  2817. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2818. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  2819. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2820. int GetCachedSize() const final { return _cached_size_.Get(); }
  2821. private:
  2822. inline void SharedCtor();
  2823. inline void SharedDtor();
  2824. void SetCachedSize(int size) const final;
  2825. void InternalSwap(RunAggregationQueryRequest* other);
  2826. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2827. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2828. return "google.firestore.v1.RunAggregationQueryRequest";
  2829. }
  2830. private:
  2831. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2832. return nullptr;
  2833. }
  2834. inline void* MaybeArenaPtr() const {
  2835. return nullptr;
  2836. }
  2837. public:
  2838. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2839. private:
  2840. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2841. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2842. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2843. }
  2844. public:
  2845. // nested types ----------------------------------------------------
  2846. // accessors -------------------------------------------------------
  2847. enum : int {
  2848. kParentFieldNumber = 1,
  2849. kStructuredAggregationQueryFieldNumber = 2,
  2850. kTransactionFieldNumber = 4,
  2851. kNewTransactionFieldNumber = 5,
  2852. kReadTimeFieldNumber = 6,
  2853. };
  2854. // string parent = 1;
  2855. void clear_parent();
  2856. const std::string& parent() const;
  2857. void set_parent(const std::string& value);
  2858. void set_parent(std::string&& value);
  2859. void set_parent(const char* value);
  2860. void set_parent(const char* value, size_t size);
  2861. std::string* mutable_parent();
  2862. std::string* release_parent();
  2863. void set_allocated_parent(std::string* parent);
  2864. private:
  2865. const std::string& _internal_parent() const;
  2866. void _internal_set_parent(const std::string& value);
  2867. std::string* _internal_mutable_parent();
  2868. public:
  2869. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  2870. bool has_structured_aggregation_query() const;
  2871. private:
  2872. bool _internal_has_structured_aggregation_query() const;
  2873. public:
  2874. void clear_structured_aggregation_query();
  2875. const ::google::firestore::v1::StructuredAggregationQuery& structured_aggregation_query() const;
  2876. ::google::firestore::v1::StructuredAggregationQuery* release_structured_aggregation_query();
  2877. ::google::firestore::v1::StructuredAggregationQuery* mutable_structured_aggregation_query();
  2878. void set_allocated_structured_aggregation_query(::google::firestore::v1::StructuredAggregationQuery* structured_aggregation_query);
  2879. private:
  2880. const ::google::firestore::v1::StructuredAggregationQuery& _internal_structured_aggregation_query() const;
  2881. ::google::firestore::v1::StructuredAggregationQuery* _internal_mutable_structured_aggregation_query();
  2882. public:
  2883. // bytes transaction = 4;
  2884. private:
  2885. bool _internal_has_transaction() const;
  2886. public:
  2887. void clear_transaction();
  2888. const std::string& transaction() const;
  2889. void set_transaction(const std::string& value);
  2890. void set_transaction(std::string&& value);
  2891. void set_transaction(const char* value);
  2892. void set_transaction(const void* value, size_t size);
  2893. std::string* mutable_transaction();
  2894. std::string* release_transaction();
  2895. void set_allocated_transaction(std::string* transaction);
  2896. private:
  2897. const std::string& _internal_transaction() const;
  2898. void _internal_set_transaction(const std::string& value);
  2899. std::string* _internal_mutable_transaction();
  2900. public:
  2901. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  2902. bool has_new_transaction() const;
  2903. private:
  2904. bool _internal_has_new_transaction() const;
  2905. public:
  2906. void clear_new_transaction();
  2907. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  2908. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  2909. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  2910. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  2911. private:
  2912. const ::google::firestore::v1::TransactionOptions& _internal_new_transaction() const;
  2913. ::google::firestore::v1::TransactionOptions* _internal_mutable_new_transaction();
  2914. public:
  2915. // .google.protobuf.Timestamp read_time = 6;
  2916. bool has_read_time() const;
  2917. private:
  2918. bool _internal_has_read_time() const;
  2919. public:
  2920. void clear_read_time();
  2921. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2922. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2923. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2924. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2925. private:
  2926. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  2927. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  2928. public:
  2929. void clear_query_type();
  2930. QueryTypeCase query_type_case() const;
  2931. void clear_consistency_selector();
  2932. ConsistencySelectorCase consistency_selector_case() const;
  2933. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunAggregationQueryRequest)
  2934. private:
  2935. class _Internal;
  2936. void set_has_structured_aggregation_query();
  2937. void set_has_transaction();
  2938. void set_has_new_transaction();
  2939. void set_has_read_time();
  2940. inline bool has_query_type() const;
  2941. inline void clear_has_query_type();
  2942. inline bool has_consistency_selector() const;
  2943. inline void clear_has_consistency_selector();
  2944. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2945. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  2946. union QueryTypeUnion {
  2947. QueryTypeUnion() {}
  2948. ::google::firestore::v1::StructuredAggregationQuery* structured_aggregation_query_;
  2949. } query_type_;
  2950. union ConsistencySelectorUnion {
  2951. ConsistencySelectorUnion() {}
  2952. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2953. ::google::firestore::v1::TransactionOptions* new_transaction_;
  2954. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2955. } consistency_selector_;
  2956. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2957. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  2958. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2959. };
  2960. // -------------------------------------------------------------------
  2961. class RunAggregationQueryResponse :
  2962. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunAggregationQueryResponse) */ {
  2963. public:
  2964. RunAggregationQueryResponse();
  2965. virtual ~RunAggregationQueryResponse();
  2966. RunAggregationQueryResponse(const RunAggregationQueryResponse& from);
  2967. RunAggregationQueryResponse(RunAggregationQueryResponse&& from) noexcept
  2968. : RunAggregationQueryResponse() {
  2969. *this = ::std::move(from);
  2970. }
  2971. inline RunAggregationQueryResponse& operator=(const RunAggregationQueryResponse& from) {
  2972. CopyFrom(from);
  2973. return *this;
  2974. }
  2975. inline RunAggregationQueryResponse& operator=(RunAggregationQueryResponse&& 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 RunAggregationQueryResponse& default_instance();
  2993. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2994. static inline const RunAggregationQueryResponse* internal_default_instance() {
  2995. return reinterpret_cast<const RunAggregationQueryResponse*>(
  2996. &_RunAggregationQueryResponse_default_instance_);
  2997. }
  2998. static constexpr int kIndexInFileMessages =
  2999. 16;
  3000. friend void swap(RunAggregationQueryResponse& a, RunAggregationQueryResponse& b) {
  3001. a.Swap(&b);
  3002. }
  3003. inline void Swap(RunAggregationQueryResponse* other) {
  3004. if (other == this) return;
  3005. InternalSwap(other);
  3006. }
  3007. // implements Message ----------------------------------------------
  3008. inline RunAggregationQueryResponse* New() const final {
  3009. return CreateMaybeMessage<RunAggregationQueryResponse>(nullptr);
  3010. }
  3011. RunAggregationQueryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3012. return CreateMaybeMessage<RunAggregationQueryResponse>(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 RunAggregationQueryResponse& from);
  3017. void MergeFrom(const RunAggregationQueryResponse& 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(RunAggregationQueryResponse* other);
  3030. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3031. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3032. return "google.firestore.v1.RunAggregationQueryResponse";
  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. kTransactionFieldNumber = 2,
  3053. kResultFieldNumber = 1,
  3054. kReadTimeFieldNumber = 3,
  3055. };
  3056. // bytes transaction = 2;
  3057. void clear_transaction();
  3058. const std::string& transaction() const;
  3059. void set_transaction(const std::string& value);
  3060. void set_transaction(std::string&& value);
  3061. void set_transaction(const char* value);
  3062. void set_transaction(const void* value, size_t size);
  3063. std::string* mutable_transaction();
  3064. std::string* release_transaction();
  3065. void set_allocated_transaction(std::string* transaction);
  3066. private:
  3067. const std::string& _internal_transaction() const;
  3068. void _internal_set_transaction(const std::string& value);
  3069. std::string* _internal_mutable_transaction();
  3070. public:
  3071. // .google.firestore.v1.AggregationResult result = 1;
  3072. bool has_result() const;
  3073. private:
  3074. bool _internal_has_result() const;
  3075. public:
  3076. void clear_result();
  3077. const ::google::firestore::v1::AggregationResult& result() const;
  3078. ::google::firestore::v1::AggregationResult* release_result();
  3079. ::google::firestore::v1::AggregationResult* mutable_result();
  3080. void set_allocated_result(::google::firestore::v1::AggregationResult* result);
  3081. private:
  3082. const ::google::firestore::v1::AggregationResult& _internal_result() const;
  3083. ::google::firestore::v1::AggregationResult* _internal_mutable_result();
  3084. public:
  3085. // .google.protobuf.Timestamp read_time = 3;
  3086. bool has_read_time() const;
  3087. private:
  3088. bool _internal_has_read_time() const;
  3089. public:
  3090. void clear_read_time();
  3091. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  3092. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  3093. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  3094. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  3095. private:
  3096. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  3097. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  3098. public:
  3099. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunAggregationQueryResponse)
  3100. private:
  3101. class _Internal;
  3102. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3103. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  3104. ::google::firestore::v1::AggregationResult* result_;
  3105. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  3106. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3107. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3108. };
  3109. // -------------------------------------------------------------------
  3110. class WriteRequest_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
  3111. std::string, std::string,
  3112. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3113. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3114. 0 > {
  3115. public:
  3116. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
  3117. std::string, std::string,
  3118. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3119. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3120. 0 > SuperType;
  3121. WriteRequest_LabelsEntry_DoNotUse();
  3122. WriteRequest_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3123. void MergeFrom(const WriteRequest_LabelsEntry_DoNotUse& other);
  3124. static const WriteRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const WriteRequest_LabelsEntry_DoNotUse*>(&_WriteRequest_LabelsEntry_DoNotUse_default_instance_); }
  3125. static bool ValidateKey(std::string* s) {
  3126. 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");
  3127. }
  3128. static bool ValidateValue(std::string* s) {
  3129. 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");
  3130. }
  3131. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  3132. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3133. private:
  3134. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3135. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3136. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[17];
  3137. }
  3138. public:
  3139. };
  3140. // -------------------------------------------------------------------
  3141. class WriteRequest :
  3142. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteRequest) */ {
  3143. public:
  3144. WriteRequest();
  3145. virtual ~WriteRequest();
  3146. WriteRequest(const WriteRequest& from);
  3147. WriteRequest(WriteRequest&& from) noexcept
  3148. : WriteRequest() {
  3149. *this = ::std::move(from);
  3150. }
  3151. inline WriteRequest& operator=(const WriteRequest& from) {
  3152. CopyFrom(from);
  3153. return *this;
  3154. }
  3155. inline WriteRequest& operator=(WriteRequest&& from) noexcept {
  3156. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3157. if (this != &from) InternalSwap(&from);
  3158. } else {
  3159. CopyFrom(from);
  3160. }
  3161. return *this;
  3162. }
  3163. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3164. return GetDescriptor();
  3165. }
  3166. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3167. return GetMetadataStatic().descriptor;
  3168. }
  3169. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3170. return GetMetadataStatic().reflection;
  3171. }
  3172. static const WriteRequest& default_instance();
  3173. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3174. static inline const WriteRequest* internal_default_instance() {
  3175. return reinterpret_cast<const WriteRequest*>(
  3176. &_WriteRequest_default_instance_);
  3177. }
  3178. static constexpr int kIndexInFileMessages =
  3179. 18;
  3180. friend void swap(WriteRequest& a, WriteRequest& b) {
  3181. a.Swap(&b);
  3182. }
  3183. inline void Swap(WriteRequest* other) {
  3184. if (other == this) return;
  3185. InternalSwap(other);
  3186. }
  3187. // implements Message ----------------------------------------------
  3188. inline WriteRequest* New() const final {
  3189. return CreateMaybeMessage<WriteRequest>(nullptr);
  3190. }
  3191. WriteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3192. return CreateMaybeMessage<WriteRequest>(arena);
  3193. }
  3194. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3195. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3196. void CopyFrom(const WriteRequest& from);
  3197. void MergeFrom(const WriteRequest& from);
  3198. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3199. bool IsInitialized() const final;
  3200. size_t ByteSizeLong() const final;
  3201. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3202. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3203. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3204. int GetCachedSize() const final { return _cached_size_.Get(); }
  3205. private:
  3206. inline void SharedCtor();
  3207. inline void SharedDtor();
  3208. void SetCachedSize(int size) const final;
  3209. void InternalSwap(WriteRequest* other);
  3210. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3211. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3212. return "google.firestore.v1.WriteRequest";
  3213. }
  3214. private:
  3215. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3216. return nullptr;
  3217. }
  3218. inline void* MaybeArenaPtr() const {
  3219. return nullptr;
  3220. }
  3221. public:
  3222. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3223. private:
  3224. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3225. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3226. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3227. }
  3228. public:
  3229. // nested types ----------------------------------------------------
  3230. // accessors -------------------------------------------------------
  3231. enum : int {
  3232. kWritesFieldNumber = 3,
  3233. kLabelsFieldNumber = 5,
  3234. kDatabaseFieldNumber = 1,
  3235. kStreamIdFieldNumber = 2,
  3236. kStreamTokenFieldNumber = 4,
  3237. };
  3238. // repeated .google.firestore.v1.Write writes = 3;
  3239. int writes_size() const;
  3240. private:
  3241. int _internal_writes_size() const;
  3242. public:
  3243. void clear_writes();
  3244. ::google::firestore::v1::Write* mutable_writes(int index);
  3245. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  3246. mutable_writes();
  3247. private:
  3248. const ::google::firestore::v1::Write& _internal_writes(int index) const;
  3249. ::google::firestore::v1::Write* _internal_add_writes();
  3250. public:
  3251. const ::google::firestore::v1::Write& writes(int index) const;
  3252. ::google::firestore::v1::Write* add_writes();
  3253. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  3254. writes() const;
  3255. // map<string, string> labels = 5;
  3256. int labels_size() const;
  3257. private:
  3258. int _internal_labels_size() const;
  3259. public:
  3260. void clear_labels();
  3261. private:
  3262. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3263. _internal_labels() const;
  3264. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3265. _internal_mutable_labels();
  3266. public:
  3267. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3268. labels() const;
  3269. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3270. mutable_labels();
  3271. // string database = 1;
  3272. void clear_database();
  3273. const std::string& database() const;
  3274. void set_database(const std::string& value);
  3275. void set_database(std::string&& value);
  3276. void set_database(const char* value);
  3277. void set_database(const char* value, size_t size);
  3278. std::string* mutable_database();
  3279. std::string* release_database();
  3280. void set_allocated_database(std::string* database);
  3281. private:
  3282. const std::string& _internal_database() const;
  3283. void _internal_set_database(const std::string& value);
  3284. std::string* _internal_mutable_database();
  3285. public:
  3286. // string stream_id = 2;
  3287. void clear_stream_id();
  3288. const std::string& stream_id() const;
  3289. void set_stream_id(const std::string& value);
  3290. void set_stream_id(std::string&& value);
  3291. void set_stream_id(const char* value);
  3292. void set_stream_id(const char* value, size_t size);
  3293. std::string* mutable_stream_id();
  3294. std::string* release_stream_id();
  3295. void set_allocated_stream_id(std::string* stream_id);
  3296. private:
  3297. const std::string& _internal_stream_id() const;
  3298. void _internal_set_stream_id(const std::string& value);
  3299. std::string* _internal_mutable_stream_id();
  3300. public:
  3301. // bytes stream_token = 4;
  3302. void clear_stream_token();
  3303. const std::string& stream_token() const;
  3304. void set_stream_token(const std::string& value);
  3305. void set_stream_token(std::string&& value);
  3306. void set_stream_token(const char* value);
  3307. void set_stream_token(const void* value, size_t size);
  3308. std::string* mutable_stream_token();
  3309. std::string* release_stream_token();
  3310. void set_allocated_stream_token(std::string* stream_token);
  3311. private:
  3312. const std::string& _internal_stream_token() const;
  3313. void _internal_set_stream_token(const std::string& value);
  3314. std::string* _internal_mutable_stream_token();
  3315. public:
  3316. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteRequest)
  3317. private:
  3318. class _Internal;
  3319. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3320. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  3321. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  3322. WriteRequest_LabelsEntry_DoNotUse,
  3323. std::string, std::string,
  3324. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3325. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3326. 0 > labels_;
  3327. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  3328. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_id_;
  3329. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_token_;
  3330. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3331. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3332. };
  3333. // -------------------------------------------------------------------
  3334. class WriteResponse :
  3335. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteResponse) */ {
  3336. public:
  3337. WriteResponse();
  3338. virtual ~WriteResponse();
  3339. WriteResponse(const WriteResponse& from);
  3340. WriteResponse(WriteResponse&& from) noexcept
  3341. : WriteResponse() {
  3342. *this = ::std::move(from);
  3343. }
  3344. inline WriteResponse& operator=(const WriteResponse& from) {
  3345. CopyFrom(from);
  3346. return *this;
  3347. }
  3348. inline WriteResponse& operator=(WriteResponse&& from) noexcept {
  3349. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3350. if (this != &from) InternalSwap(&from);
  3351. } else {
  3352. CopyFrom(from);
  3353. }
  3354. return *this;
  3355. }
  3356. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3357. return GetDescriptor();
  3358. }
  3359. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3360. return GetMetadataStatic().descriptor;
  3361. }
  3362. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3363. return GetMetadataStatic().reflection;
  3364. }
  3365. static const WriteResponse& default_instance();
  3366. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3367. static inline const WriteResponse* internal_default_instance() {
  3368. return reinterpret_cast<const WriteResponse*>(
  3369. &_WriteResponse_default_instance_);
  3370. }
  3371. static constexpr int kIndexInFileMessages =
  3372. 19;
  3373. friend void swap(WriteResponse& a, WriteResponse& b) {
  3374. a.Swap(&b);
  3375. }
  3376. inline void Swap(WriteResponse* other) {
  3377. if (other == this) return;
  3378. InternalSwap(other);
  3379. }
  3380. // implements Message ----------------------------------------------
  3381. inline WriteResponse* New() const final {
  3382. return CreateMaybeMessage<WriteResponse>(nullptr);
  3383. }
  3384. WriteResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3385. return CreateMaybeMessage<WriteResponse>(arena);
  3386. }
  3387. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3388. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3389. void CopyFrom(const WriteResponse& from);
  3390. void MergeFrom(const WriteResponse& from);
  3391. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3392. bool IsInitialized() const final;
  3393. size_t ByteSizeLong() const final;
  3394. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3395. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3396. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3397. int GetCachedSize() const final { return _cached_size_.Get(); }
  3398. private:
  3399. inline void SharedCtor();
  3400. inline void SharedDtor();
  3401. void SetCachedSize(int size) const final;
  3402. void InternalSwap(WriteResponse* other);
  3403. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3404. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3405. return "google.firestore.v1.WriteResponse";
  3406. }
  3407. private:
  3408. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3409. return nullptr;
  3410. }
  3411. inline void* MaybeArenaPtr() const {
  3412. return nullptr;
  3413. }
  3414. public:
  3415. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3416. private:
  3417. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3418. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3419. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3420. }
  3421. public:
  3422. // nested types ----------------------------------------------------
  3423. // accessors -------------------------------------------------------
  3424. enum : int {
  3425. kWriteResultsFieldNumber = 3,
  3426. kStreamIdFieldNumber = 1,
  3427. kStreamTokenFieldNumber = 2,
  3428. kCommitTimeFieldNumber = 4,
  3429. };
  3430. // repeated .google.firestore.v1.WriteResult write_results = 3;
  3431. int write_results_size() const;
  3432. private:
  3433. int _internal_write_results_size() const;
  3434. public:
  3435. void clear_write_results();
  3436. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  3437. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  3438. mutable_write_results();
  3439. private:
  3440. const ::google::firestore::v1::WriteResult& _internal_write_results(int index) const;
  3441. ::google::firestore::v1::WriteResult* _internal_add_write_results();
  3442. public:
  3443. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  3444. ::google::firestore::v1::WriteResult* add_write_results();
  3445. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  3446. write_results() const;
  3447. // string stream_id = 1;
  3448. void clear_stream_id();
  3449. const std::string& stream_id() const;
  3450. void set_stream_id(const std::string& value);
  3451. void set_stream_id(std::string&& value);
  3452. void set_stream_id(const char* value);
  3453. void set_stream_id(const char* value, size_t size);
  3454. std::string* mutable_stream_id();
  3455. std::string* release_stream_id();
  3456. void set_allocated_stream_id(std::string* stream_id);
  3457. private:
  3458. const std::string& _internal_stream_id() const;
  3459. void _internal_set_stream_id(const std::string& value);
  3460. std::string* _internal_mutable_stream_id();
  3461. public:
  3462. // bytes stream_token = 2;
  3463. void clear_stream_token();
  3464. const std::string& stream_token() const;
  3465. void set_stream_token(const std::string& value);
  3466. void set_stream_token(std::string&& value);
  3467. void set_stream_token(const char* value);
  3468. void set_stream_token(const void* value, size_t size);
  3469. std::string* mutable_stream_token();
  3470. std::string* release_stream_token();
  3471. void set_allocated_stream_token(std::string* stream_token);
  3472. private:
  3473. const std::string& _internal_stream_token() const;
  3474. void _internal_set_stream_token(const std::string& value);
  3475. std::string* _internal_mutable_stream_token();
  3476. public:
  3477. // .google.protobuf.Timestamp commit_time = 4;
  3478. bool has_commit_time() const;
  3479. private:
  3480. bool _internal_has_commit_time() const;
  3481. public:
  3482. void clear_commit_time();
  3483. const PROTOBUF_NAMESPACE_ID::Timestamp& commit_time() const;
  3484. PROTOBUF_NAMESPACE_ID::Timestamp* release_commit_time();
  3485. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_commit_time();
  3486. void set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time);
  3487. private:
  3488. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_commit_time() const;
  3489. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_commit_time();
  3490. public:
  3491. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteResponse)
  3492. private:
  3493. class _Internal;
  3494. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3495. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  3496. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_id_;
  3497. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_token_;
  3498. PROTOBUF_NAMESPACE_ID::Timestamp* commit_time_;
  3499. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3500. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3501. };
  3502. // -------------------------------------------------------------------
  3503. class ListenRequest_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
  3504. std::string, std::string,
  3505. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3506. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3507. 0 > {
  3508. public:
  3509. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
  3510. std::string, std::string,
  3511. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3512. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3513. 0 > SuperType;
  3514. ListenRequest_LabelsEntry_DoNotUse();
  3515. ListenRequest_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3516. void MergeFrom(const ListenRequest_LabelsEntry_DoNotUse& other);
  3517. static const ListenRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const ListenRequest_LabelsEntry_DoNotUse*>(&_ListenRequest_LabelsEntry_DoNotUse_default_instance_); }
  3518. static bool ValidateKey(std::string* s) {
  3519. 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");
  3520. }
  3521. static bool ValidateValue(std::string* s) {
  3522. 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");
  3523. }
  3524. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  3525. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3526. private:
  3527. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3528. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3529. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[20];
  3530. }
  3531. public:
  3532. };
  3533. // -------------------------------------------------------------------
  3534. class ListenRequest :
  3535. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenRequest) */ {
  3536. public:
  3537. ListenRequest();
  3538. virtual ~ListenRequest();
  3539. ListenRequest(const ListenRequest& from);
  3540. ListenRequest(ListenRequest&& from) noexcept
  3541. : ListenRequest() {
  3542. *this = ::std::move(from);
  3543. }
  3544. inline ListenRequest& operator=(const ListenRequest& from) {
  3545. CopyFrom(from);
  3546. return *this;
  3547. }
  3548. inline ListenRequest& operator=(ListenRequest&& from) noexcept {
  3549. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3550. if (this != &from) InternalSwap(&from);
  3551. } else {
  3552. CopyFrom(from);
  3553. }
  3554. return *this;
  3555. }
  3556. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3557. return GetDescriptor();
  3558. }
  3559. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3560. return GetMetadataStatic().descriptor;
  3561. }
  3562. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3563. return GetMetadataStatic().reflection;
  3564. }
  3565. static const ListenRequest& default_instance();
  3566. enum TargetChangeCase {
  3567. kAddTarget = 2,
  3568. kRemoveTarget = 3,
  3569. TARGET_CHANGE_NOT_SET = 0,
  3570. };
  3571. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3572. static inline const ListenRequest* internal_default_instance() {
  3573. return reinterpret_cast<const ListenRequest*>(
  3574. &_ListenRequest_default_instance_);
  3575. }
  3576. static constexpr int kIndexInFileMessages =
  3577. 21;
  3578. friend void swap(ListenRequest& a, ListenRequest& b) {
  3579. a.Swap(&b);
  3580. }
  3581. inline void Swap(ListenRequest* other) {
  3582. if (other == this) return;
  3583. InternalSwap(other);
  3584. }
  3585. // implements Message ----------------------------------------------
  3586. inline ListenRequest* New() const final {
  3587. return CreateMaybeMessage<ListenRequest>(nullptr);
  3588. }
  3589. ListenRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3590. return CreateMaybeMessage<ListenRequest>(arena);
  3591. }
  3592. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3593. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3594. void CopyFrom(const ListenRequest& from);
  3595. void MergeFrom(const ListenRequest& from);
  3596. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3597. bool IsInitialized() const final;
  3598. size_t ByteSizeLong() const final;
  3599. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3600. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3601. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3602. int GetCachedSize() const final { return _cached_size_.Get(); }
  3603. private:
  3604. inline void SharedCtor();
  3605. inline void SharedDtor();
  3606. void SetCachedSize(int size) const final;
  3607. void InternalSwap(ListenRequest* other);
  3608. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3609. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3610. return "google.firestore.v1.ListenRequest";
  3611. }
  3612. private:
  3613. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3614. return nullptr;
  3615. }
  3616. inline void* MaybeArenaPtr() const {
  3617. return nullptr;
  3618. }
  3619. public:
  3620. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3621. private:
  3622. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3623. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3624. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3625. }
  3626. public:
  3627. // nested types ----------------------------------------------------
  3628. // accessors -------------------------------------------------------
  3629. enum : int {
  3630. kLabelsFieldNumber = 4,
  3631. kDatabaseFieldNumber = 1,
  3632. kAddTargetFieldNumber = 2,
  3633. kRemoveTargetFieldNumber = 3,
  3634. };
  3635. // map<string, string> labels = 4;
  3636. int labels_size() const;
  3637. private:
  3638. int _internal_labels_size() const;
  3639. public:
  3640. void clear_labels();
  3641. private:
  3642. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3643. _internal_labels() const;
  3644. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3645. _internal_mutable_labels();
  3646. public:
  3647. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3648. labels() const;
  3649. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3650. mutable_labels();
  3651. // string database = 1;
  3652. void clear_database();
  3653. const std::string& database() const;
  3654. void set_database(const std::string& value);
  3655. void set_database(std::string&& value);
  3656. void set_database(const char* value);
  3657. void set_database(const char* value, size_t size);
  3658. std::string* mutable_database();
  3659. std::string* release_database();
  3660. void set_allocated_database(std::string* database);
  3661. private:
  3662. const std::string& _internal_database() const;
  3663. void _internal_set_database(const std::string& value);
  3664. std::string* _internal_mutable_database();
  3665. public:
  3666. // .google.firestore.v1.Target add_target = 2;
  3667. bool has_add_target() const;
  3668. private:
  3669. bool _internal_has_add_target() const;
  3670. public:
  3671. void clear_add_target();
  3672. const ::google::firestore::v1::Target& add_target() const;
  3673. ::google::firestore::v1::Target* release_add_target();
  3674. ::google::firestore::v1::Target* mutable_add_target();
  3675. void set_allocated_add_target(::google::firestore::v1::Target* add_target);
  3676. private:
  3677. const ::google::firestore::v1::Target& _internal_add_target() const;
  3678. ::google::firestore::v1::Target* _internal_mutable_add_target();
  3679. public:
  3680. // int32 remove_target = 3;
  3681. private:
  3682. bool _internal_has_remove_target() const;
  3683. public:
  3684. void clear_remove_target();
  3685. ::PROTOBUF_NAMESPACE_ID::int32 remove_target() const;
  3686. void set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value);
  3687. private:
  3688. ::PROTOBUF_NAMESPACE_ID::int32 _internal_remove_target() const;
  3689. void _internal_set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value);
  3690. public:
  3691. void clear_target_change();
  3692. TargetChangeCase target_change_case() const;
  3693. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenRequest)
  3694. private:
  3695. class _Internal;
  3696. void set_has_add_target();
  3697. void set_has_remove_target();
  3698. inline bool has_target_change() const;
  3699. inline void clear_has_target_change();
  3700. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3701. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  3702. ListenRequest_LabelsEntry_DoNotUse,
  3703. std::string, std::string,
  3704. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3705. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3706. 0 > labels_;
  3707. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  3708. union TargetChangeUnion {
  3709. TargetChangeUnion() {}
  3710. ::google::firestore::v1::Target* add_target_;
  3711. ::PROTOBUF_NAMESPACE_ID::int32 remove_target_;
  3712. } target_change_;
  3713. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3714. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3715. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3716. };
  3717. // -------------------------------------------------------------------
  3718. class ListenResponse :
  3719. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenResponse) */ {
  3720. public:
  3721. ListenResponse();
  3722. virtual ~ListenResponse();
  3723. ListenResponse(const ListenResponse& from);
  3724. ListenResponse(ListenResponse&& from) noexcept
  3725. : ListenResponse() {
  3726. *this = ::std::move(from);
  3727. }
  3728. inline ListenResponse& operator=(const ListenResponse& from) {
  3729. CopyFrom(from);
  3730. return *this;
  3731. }
  3732. inline ListenResponse& operator=(ListenResponse&& from) noexcept {
  3733. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3734. if (this != &from) InternalSwap(&from);
  3735. } else {
  3736. CopyFrom(from);
  3737. }
  3738. return *this;
  3739. }
  3740. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3741. return GetDescriptor();
  3742. }
  3743. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3744. return GetMetadataStatic().descriptor;
  3745. }
  3746. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3747. return GetMetadataStatic().reflection;
  3748. }
  3749. static const ListenResponse& default_instance();
  3750. enum ResponseTypeCase {
  3751. kTargetChange = 2,
  3752. kDocumentChange = 3,
  3753. kDocumentDelete = 4,
  3754. kDocumentRemove = 6,
  3755. kFilter = 5,
  3756. RESPONSE_TYPE_NOT_SET = 0,
  3757. };
  3758. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3759. static inline const ListenResponse* internal_default_instance() {
  3760. return reinterpret_cast<const ListenResponse*>(
  3761. &_ListenResponse_default_instance_);
  3762. }
  3763. static constexpr int kIndexInFileMessages =
  3764. 22;
  3765. friend void swap(ListenResponse& a, ListenResponse& b) {
  3766. a.Swap(&b);
  3767. }
  3768. inline void Swap(ListenResponse* other) {
  3769. if (other == this) return;
  3770. InternalSwap(other);
  3771. }
  3772. // implements Message ----------------------------------------------
  3773. inline ListenResponse* New() const final {
  3774. return CreateMaybeMessage<ListenResponse>(nullptr);
  3775. }
  3776. ListenResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3777. return CreateMaybeMessage<ListenResponse>(arena);
  3778. }
  3779. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3780. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3781. void CopyFrom(const ListenResponse& from);
  3782. void MergeFrom(const ListenResponse& from);
  3783. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3784. bool IsInitialized() const final;
  3785. size_t ByteSizeLong() const final;
  3786. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3787. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3788. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3789. int GetCachedSize() const final { return _cached_size_.Get(); }
  3790. private:
  3791. inline void SharedCtor();
  3792. inline void SharedDtor();
  3793. void SetCachedSize(int size) const final;
  3794. void InternalSwap(ListenResponse* other);
  3795. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3796. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3797. return "google.firestore.v1.ListenResponse";
  3798. }
  3799. private:
  3800. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3801. return nullptr;
  3802. }
  3803. inline void* MaybeArenaPtr() const {
  3804. return nullptr;
  3805. }
  3806. public:
  3807. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3808. private:
  3809. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3810. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3811. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3812. }
  3813. public:
  3814. // nested types ----------------------------------------------------
  3815. // accessors -------------------------------------------------------
  3816. enum : int {
  3817. kTargetChangeFieldNumber = 2,
  3818. kDocumentChangeFieldNumber = 3,
  3819. kDocumentDeleteFieldNumber = 4,
  3820. kDocumentRemoveFieldNumber = 6,
  3821. kFilterFieldNumber = 5,
  3822. };
  3823. // .google.firestore.v1.TargetChange target_change = 2;
  3824. bool has_target_change() const;
  3825. private:
  3826. bool _internal_has_target_change() const;
  3827. public:
  3828. void clear_target_change();
  3829. const ::google::firestore::v1::TargetChange& target_change() const;
  3830. ::google::firestore::v1::TargetChange* release_target_change();
  3831. ::google::firestore::v1::TargetChange* mutable_target_change();
  3832. void set_allocated_target_change(::google::firestore::v1::TargetChange* target_change);
  3833. private:
  3834. const ::google::firestore::v1::TargetChange& _internal_target_change() const;
  3835. ::google::firestore::v1::TargetChange* _internal_mutable_target_change();
  3836. public:
  3837. // .google.firestore.v1.DocumentChange document_change = 3;
  3838. bool has_document_change() const;
  3839. private:
  3840. bool _internal_has_document_change() const;
  3841. public:
  3842. void clear_document_change();
  3843. const ::google::firestore::v1::DocumentChange& document_change() const;
  3844. ::google::firestore::v1::DocumentChange* release_document_change();
  3845. ::google::firestore::v1::DocumentChange* mutable_document_change();
  3846. void set_allocated_document_change(::google::firestore::v1::DocumentChange* document_change);
  3847. private:
  3848. const ::google::firestore::v1::DocumentChange& _internal_document_change() const;
  3849. ::google::firestore::v1::DocumentChange* _internal_mutable_document_change();
  3850. public:
  3851. // .google.firestore.v1.DocumentDelete document_delete = 4;
  3852. bool has_document_delete() const;
  3853. private:
  3854. bool _internal_has_document_delete() const;
  3855. public:
  3856. void clear_document_delete();
  3857. const ::google::firestore::v1::DocumentDelete& document_delete() const;
  3858. ::google::firestore::v1::DocumentDelete* release_document_delete();
  3859. ::google::firestore::v1::DocumentDelete* mutable_document_delete();
  3860. void set_allocated_document_delete(::google::firestore::v1::DocumentDelete* document_delete);
  3861. private:
  3862. const ::google::firestore::v1::DocumentDelete& _internal_document_delete() const;
  3863. ::google::firestore::v1::DocumentDelete* _internal_mutable_document_delete();
  3864. public:
  3865. // .google.firestore.v1.DocumentRemove document_remove = 6;
  3866. bool has_document_remove() const;
  3867. private:
  3868. bool _internal_has_document_remove() const;
  3869. public:
  3870. void clear_document_remove();
  3871. const ::google::firestore::v1::DocumentRemove& document_remove() const;
  3872. ::google::firestore::v1::DocumentRemove* release_document_remove();
  3873. ::google::firestore::v1::DocumentRemove* mutable_document_remove();
  3874. void set_allocated_document_remove(::google::firestore::v1::DocumentRemove* document_remove);
  3875. private:
  3876. const ::google::firestore::v1::DocumentRemove& _internal_document_remove() const;
  3877. ::google::firestore::v1::DocumentRemove* _internal_mutable_document_remove();
  3878. public:
  3879. // .google.firestore.v1.ExistenceFilter filter = 5;
  3880. bool has_filter() const;
  3881. private:
  3882. bool _internal_has_filter() const;
  3883. public:
  3884. void clear_filter();
  3885. const ::google::firestore::v1::ExistenceFilter& filter() const;
  3886. ::google::firestore::v1::ExistenceFilter* release_filter();
  3887. ::google::firestore::v1::ExistenceFilter* mutable_filter();
  3888. void set_allocated_filter(::google::firestore::v1::ExistenceFilter* filter);
  3889. private:
  3890. const ::google::firestore::v1::ExistenceFilter& _internal_filter() const;
  3891. ::google::firestore::v1::ExistenceFilter* _internal_mutable_filter();
  3892. public:
  3893. void clear_response_type();
  3894. ResponseTypeCase response_type_case() const;
  3895. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenResponse)
  3896. private:
  3897. class _Internal;
  3898. void set_has_target_change();
  3899. void set_has_document_change();
  3900. void set_has_document_delete();
  3901. void set_has_document_remove();
  3902. void set_has_filter();
  3903. inline bool has_response_type() const;
  3904. inline void clear_has_response_type();
  3905. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3906. union ResponseTypeUnion {
  3907. ResponseTypeUnion() {}
  3908. ::google::firestore::v1::TargetChange* target_change_;
  3909. ::google::firestore::v1::DocumentChange* document_change_;
  3910. ::google::firestore::v1::DocumentDelete* document_delete_;
  3911. ::google::firestore::v1::DocumentRemove* document_remove_;
  3912. ::google::firestore::v1::ExistenceFilter* filter_;
  3913. } response_type_;
  3914. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3915. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3916. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3917. };
  3918. // -------------------------------------------------------------------
  3919. class Target_DocumentsTarget :
  3920. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.DocumentsTarget) */ {
  3921. public:
  3922. Target_DocumentsTarget();
  3923. virtual ~Target_DocumentsTarget();
  3924. Target_DocumentsTarget(const Target_DocumentsTarget& from);
  3925. Target_DocumentsTarget(Target_DocumentsTarget&& from) noexcept
  3926. : Target_DocumentsTarget() {
  3927. *this = ::std::move(from);
  3928. }
  3929. inline Target_DocumentsTarget& operator=(const Target_DocumentsTarget& from) {
  3930. CopyFrom(from);
  3931. return *this;
  3932. }
  3933. inline Target_DocumentsTarget& operator=(Target_DocumentsTarget&& from) noexcept {
  3934. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3935. if (this != &from) InternalSwap(&from);
  3936. } else {
  3937. CopyFrom(from);
  3938. }
  3939. return *this;
  3940. }
  3941. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3942. return GetDescriptor();
  3943. }
  3944. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3945. return GetMetadataStatic().descriptor;
  3946. }
  3947. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3948. return GetMetadataStatic().reflection;
  3949. }
  3950. static const Target_DocumentsTarget& default_instance();
  3951. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3952. static inline const Target_DocumentsTarget* internal_default_instance() {
  3953. return reinterpret_cast<const Target_DocumentsTarget*>(
  3954. &_Target_DocumentsTarget_default_instance_);
  3955. }
  3956. static constexpr int kIndexInFileMessages =
  3957. 23;
  3958. friend void swap(Target_DocumentsTarget& a, Target_DocumentsTarget& b) {
  3959. a.Swap(&b);
  3960. }
  3961. inline void Swap(Target_DocumentsTarget* other) {
  3962. if (other == this) return;
  3963. InternalSwap(other);
  3964. }
  3965. // implements Message ----------------------------------------------
  3966. inline Target_DocumentsTarget* New() const final {
  3967. return CreateMaybeMessage<Target_DocumentsTarget>(nullptr);
  3968. }
  3969. Target_DocumentsTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3970. return CreateMaybeMessage<Target_DocumentsTarget>(arena);
  3971. }
  3972. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3973. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3974. void CopyFrom(const Target_DocumentsTarget& from);
  3975. void MergeFrom(const Target_DocumentsTarget& from);
  3976. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3977. bool IsInitialized() const final;
  3978. size_t ByteSizeLong() const final;
  3979. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3980. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  3981. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3982. int GetCachedSize() const final { return _cached_size_.Get(); }
  3983. private:
  3984. inline void SharedCtor();
  3985. inline void SharedDtor();
  3986. void SetCachedSize(int size) const final;
  3987. void InternalSwap(Target_DocumentsTarget* other);
  3988. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3989. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3990. return "google.firestore.v1.Target.DocumentsTarget";
  3991. }
  3992. private:
  3993. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3994. return nullptr;
  3995. }
  3996. inline void* MaybeArenaPtr() const {
  3997. return nullptr;
  3998. }
  3999. public:
  4000. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4001. private:
  4002. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4003. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4004. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4005. }
  4006. public:
  4007. // nested types ----------------------------------------------------
  4008. // accessors -------------------------------------------------------
  4009. enum : int {
  4010. kDocumentsFieldNumber = 2,
  4011. };
  4012. // repeated string documents = 2;
  4013. int documents_size() const;
  4014. private:
  4015. int _internal_documents_size() const;
  4016. public:
  4017. void clear_documents();
  4018. const std::string& documents(int index) const;
  4019. std::string* mutable_documents(int index);
  4020. void set_documents(int index, const std::string& value);
  4021. void set_documents(int index, std::string&& value);
  4022. void set_documents(int index, const char* value);
  4023. void set_documents(int index, const char* value, size_t size);
  4024. std::string* add_documents();
  4025. void add_documents(const std::string& value);
  4026. void add_documents(std::string&& value);
  4027. void add_documents(const char* value);
  4028. void add_documents(const char* value, size_t size);
  4029. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& documents() const;
  4030. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_documents();
  4031. private:
  4032. const std::string& _internal_documents(int index) const;
  4033. std::string* _internal_add_documents();
  4034. public:
  4035. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.DocumentsTarget)
  4036. private:
  4037. class _Internal;
  4038. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4039. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> documents_;
  4040. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4041. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4042. };
  4043. // -------------------------------------------------------------------
  4044. class Target_QueryTarget :
  4045. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.QueryTarget) */ {
  4046. public:
  4047. Target_QueryTarget();
  4048. virtual ~Target_QueryTarget();
  4049. Target_QueryTarget(const Target_QueryTarget& from);
  4050. Target_QueryTarget(Target_QueryTarget&& from) noexcept
  4051. : Target_QueryTarget() {
  4052. *this = ::std::move(from);
  4053. }
  4054. inline Target_QueryTarget& operator=(const Target_QueryTarget& from) {
  4055. CopyFrom(from);
  4056. return *this;
  4057. }
  4058. inline Target_QueryTarget& operator=(Target_QueryTarget&& from) noexcept {
  4059. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4060. if (this != &from) InternalSwap(&from);
  4061. } else {
  4062. CopyFrom(from);
  4063. }
  4064. return *this;
  4065. }
  4066. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4067. return GetDescriptor();
  4068. }
  4069. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4070. return GetMetadataStatic().descriptor;
  4071. }
  4072. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4073. return GetMetadataStatic().reflection;
  4074. }
  4075. static const Target_QueryTarget& default_instance();
  4076. enum QueryTypeCase {
  4077. kStructuredQuery = 2,
  4078. QUERY_TYPE_NOT_SET = 0,
  4079. };
  4080. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4081. static inline const Target_QueryTarget* internal_default_instance() {
  4082. return reinterpret_cast<const Target_QueryTarget*>(
  4083. &_Target_QueryTarget_default_instance_);
  4084. }
  4085. static constexpr int kIndexInFileMessages =
  4086. 24;
  4087. friend void swap(Target_QueryTarget& a, Target_QueryTarget& b) {
  4088. a.Swap(&b);
  4089. }
  4090. inline void Swap(Target_QueryTarget* other) {
  4091. if (other == this) return;
  4092. InternalSwap(other);
  4093. }
  4094. // implements Message ----------------------------------------------
  4095. inline Target_QueryTarget* New() const final {
  4096. return CreateMaybeMessage<Target_QueryTarget>(nullptr);
  4097. }
  4098. Target_QueryTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4099. return CreateMaybeMessage<Target_QueryTarget>(arena);
  4100. }
  4101. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4102. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4103. void CopyFrom(const Target_QueryTarget& from);
  4104. void MergeFrom(const Target_QueryTarget& from);
  4105. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4106. bool IsInitialized() const final;
  4107. size_t ByteSizeLong() const final;
  4108. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4109. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4110. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4111. int GetCachedSize() const final { return _cached_size_.Get(); }
  4112. private:
  4113. inline void SharedCtor();
  4114. inline void SharedDtor();
  4115. void SetCachedSize(int size) const final;
  4116. void InternalSwap(Target_QueryTarget* other);
  4117. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4118. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4119. return "google.firestore.v1.Target.QueryTarget";
  4120. }
  4121. private:
  4122. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4123. return nullptr;
  4124. }
  4125. inline void* MaybeArenaPtr() const {
  4126. return nullptr;
  4127. }
  4128. public:
  4129. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4130. private:
  4131. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4132. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4133. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4134. }
  4135. public:
  4136. // nested types ----------------------------------------------------
  4137. // accessors -------------------------------------------------------
  4138. enum : int {
  4139. kParentFieldNumber = 1,
  4140. kStructuredQueryFieldNumber = 2,
  4141. };
  4142. // string parent = 1;
  4143. void clear_parent();
  4144. const std::string& parent() const;
  4145. void set_parent(const std::string& value);
  4146. void set_parent(std::string&& value);
  4147. void set_parent(const char* value);
  4148. void set_parent(const char* value, size_t size);
  4149. std::string* mutable_parent();
  4150. std::string* release_parent();
  4151. void set_allocated_parent(std::string* parent);
  4152. private:
  4153. const std::string& _internal_parent() const;
  4154. void _internal_set_parent(const std::string& value);
  4155. std::string* _internal_mutable_parent();
  4156. public:
  4157. // .google.firestore.v1.StructuredQuery structured_query = 2;
  4158. bool has_structured_query() const;
  4159. private:
  4160. bool _internal_has_structured_query() const;
  4161. public:
  4162. void clear_structured_query();
  4163. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  4164. ::google::firestore::v1::StructuredQuery* release_structured_query();
  4165. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  4166. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  4167. private:
  4168. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  4169. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  4170. public:
  4171. void clear_query_type();
  4172. QueryTypeCase query_type_case() const;
  4173. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.QueryTarget)
  4174. private:
  4175. class _Internal;
  4176. void set_has_structured_query();
  4177. inline bool has_query_type() const;
  4178. inline void clear_has_query_type();
  4179. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4180. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  4181. union QueryTypeUnion {
  4182. QueryTypeUnion() {}
  4183. ::google::firestore::v1::StructuredQuery* structured_query_;
  4184. } query_type_;
  4185. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4186. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  4187. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4188. };
  4189. // -------------------------------------------------------------------
  4190. class Target :
  4191. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target) */ {
  4192. public:
  4193. Target();
  4194. virtual ~Target();
  4195. Target(const Target& from);
  4196. Target(Target&& from) noexcept
  4197. : Target() {
  4198. *this = ::std::move(from);
  4199. }
  4200. inline Target& operator=(const Target& from) {
  4201. CopyFrom(from);
  4202. return *this;
  4203. }
  4204. inline Target& operator=(Target&& from) noexcept {
  4205. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4206. if (this != &from) InternalSwap(&from);
  4207. } else {
  4208. CopyFrom(from);
  4209. }
  4210. return *this;
  4211. }
  4212. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4213. return GetDescriptor();
  4214. }
  4215. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4216. return GetMetadataStatic().descriptor;
  4217. }
  4218. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4219. return GetMetadataStatic().reflection;
  4220. }
  4221. static const Target& default_instance();
  4222. enum TargetTypeCase {
  4223. kQuery = 2,
  4224. kDocuments = 3,
  4225. TARGET_TYPE_NOT_SET = 0,
  4226. };
  4227. enum ResumeTypeCase {
  4228. kResumeToken = 4,
  4229. kReadTime = 11,
  4230. RESUME_TYPE_NOT_SET = 0,
  4231. };
  4232. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4233. static inline const Target* internal_default_instance() {
  4234. return reinterpret_cast<const Target*>(
  4235. &_Target_default_instance_);
  4236. }
  4237. static constexpr int kIndexInFileMessages =
  4238. 25;
  4239. friend void swap(Target& a, Target& b) {
  4240. a.Swap(&b);
  4241. }
  4242. inline void Swap(Target* other) {
  4243. if (other == this) return;
  4244. InternalSwap(other);
  4245. }
  4246. // implements Message ----------------------------------------------
  4247. inline Target* New() const final {
  4248. return CreateMaybeMessage<Target>(nullptr);
  4249. }
  4250. Target* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4251. return CreateMaybeMessage<Target>(arena);
  4252. }
  4253. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4254. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4255. void CopyFrom(const Target& from);
  4256. void MergeFrom(const Target& from);
  4257. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4258. bool IsInitialized() const final;
  4259. size_t ByteSizeLong() const final;
  4260. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4261. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4262. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4263. int GetCachedSize() const final { return _cached_size_.Get(); }
  4264. private:
  4265. inline void SharedCtor();
  4266. inline void SharedDtor();
  4267. void SetCachedSize(int size) const final;
  4268. void InternalSwap(Target* other);
  4269. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4270. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4271. return "google.firestore.v1.Target";
  4272. }
  4273. private:
  4274. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4275. return nullptr;
  4276. }
  4277. inline void* MaybeArenaPtr() const {
  4278. return nullptr;
  4279. }
  4280. public:
  4281. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4282. private:
  4283. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4284. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4285. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4286. }
  4287. public:
  4288. // nested types ----------------------------------------------------
  4289. typedef Target_DocumentsTarget DocumentsTarget;
  4290. typedef Target_QueryTarget QueryTarget;
  4291. // accessors -------------------------------------------------------
  4292. enum : int {
  4293. kExpectedCountFieldNumber = 12,
  4294. kTargetIdFieldNumber = 5,
  4295. kOnceFieldNumber = 6,
  4296. kQueryFieldNumber = 2,
  4297. kDocumentsFieldNumber = 3,
  4298. kResumeTokenFieldNumber = 4,
  4299. kReadTimeFieldNumber = 11,
  4300. };
  4301. // .google.protobuf.Int32Value expected_count = 12;
  4302. bool has_expected_count() const;
  4303. private:
  4304. bool _internal_has_expected_count() const;
  4305. public:
  4306. void clear_expected_count();
  4307. const PROTOBUF_NAMESPACE_ID::Int32Value& expected_count() const;
  4308. PROTOBUF_NAMESPACE_ID::Int32Value* release_expected_count();
  4309. PROTOBUF_NAMESPACE_ID::Int32Value* mutable_expected_count();
  4310. void set_allocated_expected_count(PROTOBUF_NAMESPACE_ID::Int32Value* expected_count);
  4311. private:
  4312. const PROTOBUF_NAMESPACE_ID::Int32Value& _internal_expected_count() const;
  4313. PROTOBUF_NAMESPACE_ID::Int32Value* _internal_mutable_expected_count();
  4314. public:
  4315. // int32 target_id = 5;
  4316. void clear_target_id();
  4317. ::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
  4318. void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  4319. private:
  4320. ::PROTOBUF_NAMESPACE_ID::int32 _internal_target_id() const;
  4321. void _internal_set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  4322. public:
  4323. // bool once = 6;
  4324. void clear_once();
  4325. bool once() const;
  4326. void set_once(bool value);
  4327. private:
  4328. bool _internal_once() const;
  4329. void _internal_set_once(bool value);
  4330. public:
  4331. // .google.firestore.v1.Target.QueryTarget query = 2;
  4332. bool has_query() const;
  4333. private:
  4334. bool _internal_has_query() const;
  4335. public:
  4336. void clear_query();
  4337. const ::google::firestore::v1::Target_QueryTarget& query() const;
  4338. ::google::firestore::v1::Target_QueryTarget* release_query();
  4339. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  4340. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* query);
  4341. private:
  4342. const ::google::firestore::v1::Target_QueryTarget& _internal_query() const;
  4343. ::google::firestore::v1::Target_QueryTarget* _internal_mutable_query();
  4344. public:
  4345. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  4346. bool has_documents() const;
  4347. private:
  4348. bool _internal_has_documents() const;
  4349. public:
  4350. void clear_documents();
  4351. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  4352. ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  4353. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  4354. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* documents);
  4355. private:
  4356. const ::google::firestore::v1::Target_DocumentsTarget& _internal_documents() const;
  4357. ::google::firestore::v1::Target_DocumentsTarget* _internal_mutable_documents();
  4358. public:
  4359. // bytes resume_token = 4;
  4360. private:
  4361. bool _internal_has_resume_token() const;
  4362. public:
  4363. void clear_resume_token();
  4364. const std::string& resume_token() const;
  4365. void set_resume_token(const std::string& value);
  4366. void set_resume_token(std::string&& value);
  4367. void set_resume_token(const char* value);
  4368. void set_resume_token(const void* value, size_t size);
  4369. std::string* mutable_resume_token();
  4370. std::string* release_resume_token();
  4371. void set_allocated_resume_token(std::string* resume_token);
  4372. private:
  4373. const std::string& _internal_resume_token() const;
  4374. void _internal_set_resume_token(const std::string& value);
  4375. std::string* _internal_mutable_resume_token();
  4376. public:
  4377. // .google.protobuf.Timestamp read_time = 11;
  4378. bool has_read_time() const;
  4379. private:
  4380. bool _internal_has_read_time() const;
  4381. public:
  4382. void clear_read_time();
  4383. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  4384. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  4385. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  4386. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  4387. private:
  4388. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  4389. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  4390. public:
  4391. void clear_target_type();
  4392. TargetTypeCase target_type_case() const;
  4393. void clear_resume_type();
  4394. ResumeTypeCase resume_type_case() const;
  4395. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target)
  4396. private:
  4397. class _Internal;
  4398. void set_has_query();
  4399. void set_has_documents();
  4400. void set_has_resume_token();
  4401. void set_has_read_time();
  4402. inline bool has_target_type() const;
  4403. inline void clear_has_target_type();
  4404. inline bool has_resume_type() const;
  4405. inline void clear_has_resume_type();
  4406. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4407. PROTOBUF_NAMESPACE_ID::Int32Value* expected_count_;
  4408. ::PROTOBUF_NAMESPACE_ID::int32 target_id_;
  4409. bool once_;
  4410. union TargetTypeUnion {
  4411. TargetTypeUnion() {}
  4412. ::google::firestore::v1::Target_QueryTarget* query_;
  4413. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  4414. } target_type_;
  4415. union ResumeTypeUnion {
  4416. ResumeTypeUnion() {}
  4417. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  4418. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  4419. } resume_type_;
  4420. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4421. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  4422. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4423. };
  4424. // -------------------------------------------------------------------
  4425. class TargetChange :
  4426. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TargetChange) */ {
  4427. public:
  4428. TargetChange();
  4429. virtual ~TargetChange();
  4430. TargetChange(const TargetChange& from);
  4431. TargetChange(TargetChange&& from) noexcept
  4432. : TargetChange() {
  4433. *this = ::std::move(from);
  4434. }
  4435. inline TargetChange& operator=(const TargetChange& from) {
  4436. CopyFrom(from);
  4437. return *this;
  4438. }
  4439. inline TargetChange& operator=(TargetChange&& from) noexcept {
  4440. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4441. if (this != &from) InternalSwap(&from);
  4442. } else {
  4443. CopyFrom(from);
  4444. }
  4445. return *this;
  4446. }
  4447. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4448. return GetDescriptor();
  4449. }
  4450. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4451. return GetMetadataStatic().descriptor;
  4452. }
  4453. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4454. return GetMetadataStatic().reflection;
  4455. }
  4456. static const TargetChange& default_instance();
  4457. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4458. static inline const TargetChange* internal_default_instance() {
  4459. return reinterpret_cast<const TargetChange*>(
  4460. &_TargetChange_default_instance_);
  4461. }
  4462. static constexpr int kIndexInFileMessages =
  4463. 26;
  4464. friend void swap(TargetChange& a, TargetChange& b) {
  4465. a.Swap(&b);
  4466. }
  4467. inline void Swap(TargetChange* other) {
  4468. if (other == this) return;
  4469. InternalSwap(other);
  4470. }
  4471. // implements Message ----------------------------------------------
  4472. inline TargetChange* New() const final {
  4473. return CreateMaybeMessage<TargetChange>(nullptr);
  4474. }
  4475. TargetChange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4476. return CreateMaybeMessage<TargetChange>(arena);
  4477. }
  4478. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4479. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4480. void CopyFrom(const TargetChange& from);
  4481. void MergeFrom(const TargetChange& from);
  4482. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4483. bool IsInitialized() const final;
  4484. size_t ByteSizeLong() const final;
  4485. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4486. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4487. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4488. int GetCachedSize() const final { return _cached_size_.Get(); }
  4489. private:
  4490. inline void SharedCtor();
  4491. inline void SharedDtor();
  4492. void SetCachedSize(int size) const final;
  4493. void InternalSwap(TargetChange* other);
  4494. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4495. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4496. return "google.firestore.v1.TargetChange";
  4497. }
  4498. private:
  4499. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4500. return nullptr;
  4501. }
  4502. inline void* MaybeArenaPtr() const {
  4503. return nullptr;
  4504. }
  4505. public:
  4506. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4507. private:
  4508. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4509. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4510. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4511. }
  4512. public:
  4513. // nested types ----------------------------------------------------
  4514. typedef TargetChange_TargetChangeType TargetChangeType;
  4515. static constexpr TargetChangeType NO_CHANGE =
  4516. TargetChange_TargetChangeType_NO_CHANGE;
  4517. static constexpr TargetChangeType ADD =
  4518. TargetChange_TargetChangeType_ADD;
  4519. static constexpr TargetChangeType REMOVE =
  4520. TargetChange_TargetChangeType_REMOVE;
  4521. static constexpr TargetChangeType CURRENT =
  4522. TargetChange_TargetChangeType_CURRENT;
  4523. static constexpr TargetChangeType RESET =
  4524. TargetChange_TargetChangeType_RESET;
  4525. static inline bool TargetChangeType_IsValid(int value) {
  4526. return TargetChange_TargetChangeType_IsValid(value);
  4527. }
  4528. static constexpr TargetChangeType TargetChangeType_MIN =
  4529. TargetChange_TargetChangeType_TargetChangeType_MIN;
  4530. static constexpr TargetChangeType TargetChangeType_MAX =
  4531. TargetChange_TargetChangeType_TargetChangeType_MAX;
  4532. static constexpr int TargetChangeType_ARRAYSIZE =
  4533. TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE;
  4534. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4535. TargetChangeType_descriptor() {
  4536. return TargetChange_TargetChangeType_descriptor();
  4537. }
  4538. template<typename T>
  4539. static inline const std::string& TargetChangeType_Name(T enum_t_value) {
  4540. static_assert(::std::is_same<T, TargetChangeType>::value ||
  4541. ::std::is_integral<T>::value,
  4542. "Incorrect type passed to function TargetChangeType_Name.");
  4543. return TargetChange_TargetChangeType_Name(enum_t_value);
  4544. }
  4545. static inline bool TargetChangeType_Parse(const std::string& name,
  4546. TargetChangeType* value) {
  4547. return TargetChange_TargetChangeType_Parse(name, value);
  4548. }
  4549. // accessors -------------------------------------------------------
  4550. enum : int {
  4551. kTargetIdsFieldNumber = 2,
  4552. kResumeTokenFieldNumber = 4,
  4553. kCauseFieldNumber = 3,
  4554. kReadTimeFieldNumber = 6,
  4555. kTargetChangeTypeFieldNumber = 1,
  4556. };
  4557. // repeated int32 target_ids = 2;
  4558. int target_ids_size() const;
  4559. private:
  4560. int _internal_target_ids_size() const;
  4561. public:
  4562. void clear_target_ids();
  4563. private:
  4564. ::PROTOBUF_NAMESPACE_ID::int32 _internal_target_ids(int index) const;
  4565. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  4566. _internal_target_ids() const;
  4567. void _internal_add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  4568. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  4569. _internal_mutable_target_ids();
  4570. public:
  4571. ::PROTOBUF_NAMESPACE_ID::int32 target_ids(int index) const;
  4572. void set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  4573. void add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  4574. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  4575. target_ids() const;
  4576. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  4577. mutable_target_ids();
  4578. // bytes resume_token = 4;
  4579. void clear_resume_token();
  4580. const std::string& resume_token() const;
  4581. void set_resume_token(const std::string& value);
  4582. void set_resume_token(std::string&& value);
  4583. void set_resume_token(const char* value);
  4584. void set_resume_token(const void* value, size_t size);
  4585. std::string* mutable_resume_token();
  4586. std::string* release_resume_token();
  4587. void set_allocated_resume_token(std::string* resume_token);
  4588. private:
  4589. const std::string& _internal_resume_token() const;
  4590. void _internal_set_resume_token(const std::string& value);
  4591. std::string* _internal_mutable_resume_token();
  4592. public:
  4593. // .google.rpc.Status cause = 3;
  4594. bool has_cause() const;
  4595. private:
  4596. bool _internal_has_cause() const;
  4597. public:
  4598. void clear_cause();
  4599. const ::google::rpc::Status& cause() const;
  4600. ::google::rpc::Status* release_cause();
  4601. ::google::rpc::Status* mutable_cause();
  4602. void set_allocated_cause(::google::rpc::Status* cause);
  4603. private:
  4604. const ::google::rpc::Status& _internal_cause() const;
  4605. ::google::rpc::Status* _internal_mutable_cause();
  4606. public:
  4607. // .google.protobuf.Timestamp read_time = 6;
  4608. bool has_read_time() const;
  4609. private:
  4610. bool _internal_has_read_time() const;
  4611. public:
  4612. void clear_read_time();
  4613. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  4614. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  4615. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  4616. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  4617. private:
  4618. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  4619. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  4620. public:
  4621. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  4622. void clear_target_change_type();
  4623. ::google::firestore::v1::TargetChange_TargetChangeType target_change_type() const;
  4624. void set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  4625. private:
  4626. ::google::firestore::v1::TargetChange_TargetChangeType _internal_target_change_type() const;
  4627. void _internal_set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  4628. public:
  4629. // @@protoc_insertion_point(class_scope:google.firestore.v1.TargetChange)
  4630. private:
  4631. class _Internal;
  4632. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4633. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > target_ids_;
  4634. mutable std::atomic<int> _target_ids_cached_byte_size_;
  4635. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  4636. ::google::rpc::Status* cause_;
  4637. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  4638. int target_change_type_;
  4639. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4640. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4641. };
  4642. // -------------------------------------------------------------------
  4643. class ListCollectionIdsRequest :
  4644. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsRequest) */ {
  4645. public:
  4646. ListCollectionIdsRequest();
  4647. virtual ~ListCollectionIdsRequest();
  4648. ListCollectionIdsRequest(const ListCollectionIdsRequest& from);
  4649. ListCollectionIdsRequest(ListCollectionIdsRequest&& from) noexcept
  4650. : ListCollectionIdsRequest() {
  4651. *this = ::std::move(from);
  4652. }
  4653. inline ListCollectionIdsRequest& operator=(const ListCollectionIdsRequest& from) {
  4654. CopyFrom(from);
  4655. return *this;
  4656. }
  4657. inline ListCollectionIdsRequest& operator=(ListCollectionIdsRequest&& from) noexcept {
  4658. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4659. if (this != &from) InternalSwap(&from);
  4660. } else {
  4661. CopyFrom(from);
  4662. }
  4663. return *this;
  4664. }
  4665. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4666. return GetDescriptor();
  4667. }
  4668. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4669. return GetMetadataStatic().descriptor;
  4670. }
  4671. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4672. return GetMetadataStatic().reflection;
  4673. }
  4674. static const ListCollectionIdsRequest& default_instance();
  4675. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4676. static inline const ListCollectionIdsRequest* internal_default_instance() {
  4677. return reinterpret_cast<const ListCollectionIdsRequest*>(
  4678. &_ListCollectionIdsRequest_default_instance_);
  4679. }
  4680. static constexpr int kIndexInFileMessages =
  4681. 27;
  4682. friend void swap(ListCollectionIdsRequest& a, ListCollectionIdsRequest& b) {
  4683. a.Swap(&b);
  4684. }
  4685. inline void Swap(ListCollectionIdsRequest* other) {
  4686. if (other == this) return;
  4687. InternalSwap(other);
  4688. }
  4689. // implements Message ----------------------------------------------
  4690. inline ListCollectionIdsRequest* New() const final {
  4691. return CreateMaybeMessage<ListCollectionIdsRequest>(nullptr);
  4692. }
  4693. ListCollectionIdsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4694. return CreateMaybeMessage<ListCollectionIdsRequest>(arena);
  4695. }
  4696. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4697. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4698. void CopyFrom(const ListCollectionIdsRequest& from);
  4699. void MergeFrom(const ListCollectionIdsRequest& from);
  4700. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4701. bool IsInitialized() const final;
  4702. size_t ByteSizeLong() const final;
  4703. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4704. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4705. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4706. int GetCachedSize() const final { return _cached_size_.Get(); }
  4707. private:
  4708. inline void SharedCtor();
  4709. inline void SharedDtor();
  4710. void SetCachedSize(int size) const final;
  4711. void InternalSwap(ListCollectionIdsRequest* other);
  4712. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4713. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4714. return "google.firestore.v1.ListCollectionIdsRequest";
  4715. }
  4716. private:
  4717. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4718. return nullptr;
  4719. }
  4720. inline void* MaybeArenaPtr() const {
  4721. return nullptr;
  4722. }
  4723. public:
  4724. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4725. private:
  4726. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4727. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4728. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4729. }
  4730. public:
  4731. // nested types ----------------------------------------------------
  4732. // accessors -------------------------------------------------------
  4733. enum : int {
  4734. kParentFieldNumber = 1,
  4735. kPageTokenFieldNumber = 3,
  4736. kPageSizeFieldNumber = 2,
  4737. };
  4738. // string parent = 1;
  4739. void clear_parent();
  4740. const std::string& parent() const;
  4741. void set_parent(const std::string& value);
  4742. void set_parent(std::string&& value);
  4743. void set_parent(const char* value);
  4744. void set_parent(const char* value, size_t size);
  4745. std::string* mutable_parent();
  4746. std::string* release_parent();
  4747. void set_allocated_parent(std::string* parent);
  4748. private:
  4749. const std::string& _internal_parent() const;
  4750. void _internal_set_parent(const std::string& value);
  4751. std::string* _internal_mutable_parent();
  4752. public:
  4753. // string page_token = 3;
  4754. void clear_page_token();
  4755. const std::string& page_token() const;
  4756. void set_page_token(const std::string& value);
  4757. void set_page_token(std::string&& value);
  4758. void set_page_token(const char* value);
  4759. void set_page_token(const char* value, size_t size);
  4760. std::string* mutable_page_token();
  4761. std::string* release_page_token();
  4762. void set_allocated_page_token(std::string* page_token);
  4763. private:
  4764. const std::string& _internal_page_token() const;
  4765. void _internal_set_page_token(const std::string& value);
  4766. std::string* _internal_mutable_page_token();
  4767. public:
  4768. // int32 page_size = 2;
  4769. void clear_page_size();
  4770. ::PROTOBUF_NAMESPACE_ID::int32 page_size() const;
  4771. void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  4772. private:
  4773. ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const;
  4774. void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  4775. public:
  4776. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsRequest)
  4777. private:
  4778. class _Internal;
  4779. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4780. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  4781. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_;
  4782. ::PROTOBUF_NAMESPACE_ID::int32 page_size_;
  4783. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4784. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4785. };
  4786. // -------------------------------------------------------------------
  4787. class ListCollectionIdsResponse :
  4788. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsResponse) */ {
  4789. public:
  4790. ListCollectionIdsResponse();
  4791. virtual ~ListCollectionIdsResponse();
  4792. ListCollectionIdsResponse(const ListCollectionIdsResponse& from);
  4793. ListCollectionIdsResponse(ListCollectionIdsResponse&& from) noexcept
  4794. : ListCollectionIdsResponse() {
  4795. *this = ::std::move(from);
  4796. }
  4797. inline ListCollectionIdsResponse& operator=(const ListCollectionIdsResponse& from) {
  4798. CopyFrom(from);
  4799. return *this;
  4800. }
  4801. inline ListCollectionIdsResponse& operator=(ListCollectionIdsResponse&& from) noexcept {
  4802. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4803. if (this != &from) InternalSwap(&from);
  4804. } else {
  4805. CopyFrom(from);
  4806. }
  4807. return *this;
  4808. }
  4809. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4810. return GetDescriptor();
  4811. }
  4812. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4813. return GetMetadataStatic().descriptor;
  4814. }
  4815. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4816. return GetMetadataStatic().reflection;
  4817. }
  4818. static const ListCollectionIdsResponse& default_instance();
  4819. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4820. static inline const ListCollectionIdsResponse* internal_default_instance() {
  4821. return reinterpret_cast<const ListCollectionIdsResponse*>(
  4822. &_ListCollectionIdsResponse_default_instance_);
  4823. }
  4824. static constexpr int kIndexInFileMessages =
  4825. 28;
  4826. friend void swap(ListCollectionIdsResponse& a, ListCollectionIdsResponse& b) {
  4827. a.Swap(&b);
  4828. }
  4829. inline void Swap(ListCollectionIdsResponse* other) {
  4830. if (other == this) return;
  4831. InternalSwap(other);
  4832. }
  4833. // implements Message ----------------------------------------------
  4834. inline ListCollectionIdsResponse* New() const final {
  4835. return CreateMaybeMessage<ListCollectionIdsResponse>(nullptr);
  4836. }
  4837. ListCollectionIdsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4838. return CreateMaybeMessage<ListCollectionIdsResponse>(arena);
  4839. }
  4840. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4841. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4842. void CopyFrom(const ListCollectionIdsResponse& from);
  4843. void MergeFrom(const ListCollectionIdsResponse& from);
  4844. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4845. bool IsInitialized() const final;
  4846. size_t ByteSizeLong() const final;
  4847. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4848. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  4849. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4850. int GetCachedSize() const final { return _cached_size_.Get(); }
  4851. private:
  4852. inline void SharedCtor();
  4853. inline void SharedDtor();
  4854. void SetCachedSize(int size) const final;
  4855. void InternalSwap(ListCollectionIdsResponse* other);
  4856. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4857. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4858. return "google.firestore.v1.ListCollectionIdsResponse";
  4859. }
  4860. private:
  4861. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4862. return nullptr;
  4863. }
  4864. inline void* MaybeArenaPtr() const {
  4865. return nullptr;
  4866. }
  4867. public:
  4868. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4869. private:
  4870. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4871. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4872. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4873. }
  4874. public:
  4875. // nested types ----------------------------------------------------
  4876. // accessors -------------------------------------------------------
  4877. enum : int {
  4878. kCollectionIdsFieldNumber = 1,
  4879. kNextPageTokenFieldNumber = 2,
  4880. };
  4881. // repeated string collection_ids = 1;
  4882. int collection_ids_size() const;
  4883. private:
  4884. int _internal_collection_ids_size() const;
  4885. public:
  4886. void clear_collection_ids();
  4887. const std::string& collection_ids(int index) const;
  4888. std::string* mutable_collection_ids(int index);
  4889. void set_collection_ids(int index, const std::string& value);
  4890. void set_collection_ids(int index, std::string&& value);
  4891. void set_collection_ids(int index, const char* value);
  4892. void set_collection_ids(int index, const char* value, size_t size);
  4893. std::string* add_collection_ids();
  4894. void add_collection_ids(const std::string& value);
  4895. void add_collection_ids(std::string&& value);
  4896. void add_collection_ids(const char* value);
  4897. void add_collection_ids(const char* value, size_t size);
  4898. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& collection_ids() const;
  4899. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_collection_ids();
  4900. private:
  4901. const std::string& _internal_collection_ids(int index) const;
  4902. std::string* _internal_add_collection_ids();
  4903. public:
  4904. // string next_page_token = 2;
  4905. void clear_next_page_token();
  4906. const std::string& next_page_token() const;
  4907. void set_next_page_token(const std::string& value);
  4908. void set_next_page_token(std::string&& value);
  4909. void set_next_page_token(const char* value);
  4910. void set_next_page_token(const char* value, size_t size);
  4911. std::string* mutable_next_page_token();
  4912. std::string* release_next_page_token();
  4913. void set_allocated_next_page_token(std::string* next_page_token);
  4914. private:
  4915. const std::string& _internal_next_page_token() const;
  4916. void _internal_set_next_page_token(const std::string& value);
  4917. std::string* _internal_mutable_next_page_token();
  4918. public:
  4919. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsResponse)
  4920. private:
  4921. class _Internal;
  4922. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4923. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> collection_ids_;
  4924. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_;
  4925. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4926. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4927. };
  4928. // ===================================================================
  4929. // ===================================================================
  4930. #ifdef __GNUC__
  4931. #pragma GCC diagnostic push
  4932. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  4933. #endif // __GNUC__
  4934. // GetDocumentRequest
  4935. // string name = 1;
  4936. inline void GetDocumentRequest::clear_name() {
  4937. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4938. }
  4939. inline const std::string& GetDocumentRequest::name() const {
  4940. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.name)
  4941. return _internal_name();
  4942. }
  4943. inline void GetDocumentRequest::set_name(const std::string& value) {
  4944. _internal_set_name(value);
  4945. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.name)
  4946. }
  4947. inline std::string* GetDocumentRequest::mutable_name() {
  4948. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.name)
  4949. return _internal_mutable_name();
  4950. }
  4951. inline const std::string& GetDocumentRequest::_internal_name() const {
  4952. return name_.GetNoArena();
  4953. }
  4954. inline void GetDocumentRequest::_internal_set_name(const std::string& value) {
  4955. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4956. }
  4957. inline void GetDocumentRequest::set_name(std::string&& value) {
  4958. name_.SetNoArena(
  4959. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4960. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.GetDocumentRequest.name)
  4961. }
  4962. inline void GetDocumentRequest::set_name(const char* value) {
  4963. GOOGLE_DCHECK(value != nullptr);
  4964. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4965. // @@protoc_insertion_point(field_set_char:google.firestore.v1.GetDocumentRequest.name)
  4966. }
  4967. inline void GetDocumentRequest::set_name(const char* value, size_t size) {
  4968. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4969. ::std::string(reinterpret_cast<const char*>(value), size));
  4970. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.GetDocumentRequest.name)
  4971. }
  4972. inline std::string* GetDocumentRequest::_internal_mutable_name() {
  4973. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4974. }
  4975. inline std::string* GetDocumentRequest::release_name() {
  4976. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.name)
  4977. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4978. }
  4979. inline void GetDocumentRequest::set_allocated_name(std::string* name) {
  4980. if (name != nullptr) {
  4981. } else {
  4982. }
  4983. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  4984. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.name)
  4985. }
  4986. // .google.firestore.v1.DocumentMask mask = 2;
  4987. inline bool GetDocumentRequest::_internal_has_mask() const {
  4988. return this != internal_default_instance() && mask_ != nullptr;
  4989. }
  4990. inline bool GetDocumentRequest::has_mask() const {
  4991. return _internal_has_mask();
  4992. }
  4993. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::_internal_mask() const {
  4994. const ::google::firestore::v1::DocumentMask* p = mask_;
  4995. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  4996. &::google::firestore::v1::_DocumentMask_default_instance_);
  4997. }
  4998. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::mask() const {
  4999. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.mask)
  5000. return _internal_mask();
  5001. }
  5002. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::release_mask() {
  5003. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.mask)
  5004. ::google::firestore::v1::DocumentMask* temp = mask_;
  5005. mask_ = nullptr;
  5006. return temp;
  5007. }
  5008. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::_internal_mutable_mask() {
  5009. if (mask_ == nullptr) {
  5010. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5011. mask_ = p;
  5012. }
  5013. return mask_;
  5014. }
  5015. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::mutable_mask() {
  5016. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.mask)
  5017. return _internal_mutable_mask();
  5018. }
  5019. inline void GetDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5020. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5021. if (message_arena == nullptr) {
  5022. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5023. }
  5024. if (mask) {
  5025. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5026. if (message_arena != submessage_arena) {
  5027. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5028. message_arena, mask, submessage_arena);
  5029. }
  5030. } else {
  5031. }
  5032. mask_ = mask;
  5033. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.mask)
  5034. }
  5035. // bytes transaction = 3;
  5036. inline bool GetDocumentRequest::_internal_has_transaction() const {
  5037. return consistency_selector_case() == kTransaction;
  5038. }
  5039. inline void GetDocumentRequest::set_has_transaction() {
  5040. _oneof_case_[0] = kTransaction;
  5041. }
  5042. inline void GetDocumentRequest::clear_transaction() {
  5043. if (_internal_has_transaction()) {
  5044. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5045. clear_has_consistency_selector();
  5046. }
  5047. }
  5048. inline const std::string& GetDocumentRequest::transaction() const {
  5049. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.transaction)
  5050. return _internal_transaction();
  5051. }
  5052. inline void GetDocumentRequest::set_transaction(const std::string& value) {
  5053. _internal_set_transaction(value);
  5054. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  5055. }
  5056. inline std::string* GetDocumentRequest::mutable_transaction() {
  5057. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.transaction)
  5058. return _internal_mutable_transaction();
  5059. }
  5060. inline const std::string& GetDocumentRequest::_internal_transaction() const {
  5061. if (_internal_has_transaction()) {
  5062. return consistency_selector_.transaction_.GetNoArena();
  5063. }
  5064. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  5065. }
  5066. inline void GetDocumentRequest::_internal_set_transaction(const std::string& value) {
  5067. if (!_internal_has_transaction()) {
  5068. clear_consistency_selector();
  5069. set_has_transaction();
  5070. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5071. }
  5072. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5073. }
  5074. inline void GetDocumentRequest::set_transaction(std::string&& value) {
  5075. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  5076. if (!_internal_has_transaction()) {
  5077. clear_consistency_selector();
  5078. set_has_transaction();
  5079. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5080. }
  5081. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5082. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.GetDocumentRequest.transaction)
  5083. }
  5084. inline void GetDocumentRequest::set_transaction(const char* value) {
  5085. GOOGLE_DCHECK(value != nullptr);
  5086. if (!_internal_has_transaction()) {
  5087. clear_consistency_selector();
  5088. set_has_transaction();
  5089. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5090. }
  5091. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5092. ::std::string(value));
  5093. // @@protoc_insertion_point(field_set_char:google.firestore.v1.GetDocumentRequest.transaction)
  5094. }
  5095. inline void GetDocumentRequest::set_transaction(const void* value, size_t size) {
  5096. if (!_internal_has_transaction()) {
  5097. clear_consistency_selector();
  5098. set_has_transaction();
  5099. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5100. }
  5101. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5102. reinterpret_cast<const char*>(value), size));
  5103. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.GetDocumentRequest.transaction)
  5104. }
  5105. inline std::string* GetDocumentRequest::_internal_mutable_transaction() {
  5106. if (!_internal_has_transaction()) {
  5107. clear_consistency_selector();
  5108. set_has_transaction();
  5109. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5110. }
  5111. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5112. }
  5113. inline std::string* GetDocumentRequest::release_transaction() {
  5114. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.transaction)
  5115. if (_internal_has_transaction()) {
  5116. clear_has_consistency_selector();
  5117. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5118. } else {
  5119. return nullptr;
  5120. }
  5121. }
  5122. inline void GetDocumentRequest::set_allocated_transaction(std::string* transaction) {
  5123. if (has_consistency_selector()) {
  5124. clear_consistency_selector();
  5125. }
  5126. if (transaction != nullptr) {
  5127. set_has_transaction();
  5128. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  5129. }
  5130. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.transaction)
  5131. }
  5132. // .google.protobuf.Timestamp read_time = 5;
  5133. inline bool GetDocumentRequest::_internal_has_read_time() const {
  5134. return consistency_selector_case() == kReadTime;
  5135. }
  5136. inline bool GetDocumentRequest::has_read_time() const {
  5137. return _internal_has_read_time();
  5138. }
  5139. inline void GetDocumentRequest::set_has_read_time() {
  5140. _oneof_case_[0] = kReadTime;
  5141. }
  5142. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::release_read_time() {
  5143. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.read_time)
  5144. if (_internal_has_read_time()) {
  5145. clear_has_consistency_selector();
  5146. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  5147. consistency_selector_.read_time_ = nullptr;
  5148. return temp;
  5149. } else {
  5150. return nullptr;
  5151. }
  5152. }
  5153. inline const PROTOBUF_NAMESPACE_ID::Timestamp& GetDocumentRequest::_internal_read_time() const {
  5154. return _internal_has_read_time()
  5155. ? *consistency_selector_.read_time_
  5156. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  5157. }
  5158. inline const PROTOBUF_NAMESPACE_ID::Timestamp& GetDocumentRequest::read_time() const {
  5159. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.read_time)
  5160. return _internal_read_time();
  5161. }
  5162. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::_internal_mutable_read_time() {
  5163. if (!_internal_has_read_time()) {
  5164. clear_consistency_selector();
  5165. set_has_read_time();
  5166. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  5167. GetArenaNoVirtual());
  5168. }
  5169. return consistency_selector_.read_time_;
  5170. }
  5171. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::mutable_read_time() {
  5172. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.read_time)
  5173. return _internal_mutable_read_time();
  5174. }
  5175. inline bool GetDocumentRequest::has_consistency_selector() const {
  5176. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  5177. }
  5178. inline void GetDocumentRequest::clear_has_consistency_selector() {
  5179. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  5180. }
  5181. inline GetDocumentRequest::ConsistencySelectorCase GetDocumentRequest::consistency_selector_case() const {
  5182. return GetDocumentRequest::ConsistencySelectorCase(_oneof_case_[0]);
  5183. }
  5184. // -------------------------------------------------------------------
  5185. // ListDocumentsRequest
  5186. // string parent = 1;
  5187. inline void ListDocumentsRequest::clear_parent() {
  5188. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5189. }
  5190. inline const std::string& ListDocumentsRequest::parent() const {
  5191. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.parent)
  5192. return _internal_parent();
  5193. }
  5194. inline void ListDocumentsRequest::set_parent(const std::string& value) {
  5195. _internal_set_parent(value);
  5196. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.parent)
  5197. }
  5198. inline std::string* ListDocumentsRequest::mutable_parent() {
  5199. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.parent)
  5200. return _internal_mutable_parent();
  5201. }
  5202. inline const std::string& ListDocumentsRequest::_internal_parent() const {
  5203. return parent_.GetNoArena();
  5204. }
  5205. inline void ListDocumentsRequest::_internal_set_parent(const std::string& value) {
  5206. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5207. }
  5208. inline void ListDocumentsRequest::set_parent(std::string&& value) {
  5209. parent_.SetNoArena(
  5210. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5211. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.parent)
  5212. }
  5213. inline void ListDocumentsRequest::set_parent(const char* value) {
  5214. GOOGLE_DCHECK(value != nullptr);
  5215. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5216. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.parent)
  5217. }
  5218. inline void ListDocumentsRequest::set_parent(const char* value, size_t size) {
  5219. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5220. ::std::string(reinterpret_cast<const char*>(value), size));
  5221. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.parent)
  5222. }
  5223. inline std::string* ListDocumentsRequest::_internal_mutable_parent() {
  5224. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5225. }
  5226. inline std::string* ListDocumentsRequest::release_parent() {
  5227. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.parent)
  5228. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5229. }
  5230. inline void ListDocumentsRequest::set_allocated_parent(std::string* parent) {
  5231. if (parent != nullptr) {
  5232. } else {
  5233. }
  5234. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  5235. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.parent)
  5236. }
  5237. // string collection_id = 2;
  5238. inline void ListDocumentsRequest::clear_collection_id() {
  5239. collection_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5240. }
  5241. inline const std::string& ListDocumentsRequest::collection_id() const {
  5242. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.collection_id)
  5243. return _internal_collection_id();
  5244. }
  5245. inline void ListDocumentsRequest::set_collection_id(const std::string& value) {
  5246. _internal_set_collection_id(value);
  5247. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.collection_id)
  5248. }
  5249. inline std::string* ListDocumentsRequest::mutable_collection_id() {
  5250. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.collection_id)
  5251. return _internal_mutable_collection_id();
  5252. }
  5253. inline const std::string& ListDocumentsRequest::_internal_collection_id() const {
  5254. return collection_id_.GetNoArena();
  5255. }
  5256. inline void ListDocumentsRequest::_internal_set_collection_id(const std::string& value) {
  5257. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5258. }
  5259. inline void ListDocumentsRequest::set_collection_id(std::string&& value) {
  5260. collection_id_.SetNoArena(
  5261. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5262. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.collection_id)
  5263. }
  5264. inline void ListDocumentsRequest::set_collection_id(const char* value) {
  5265. GOOGLE_DCHECK(value != nullptr);
  5266. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5267. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.collection_id)
  5268. }
  5269. inline void ListDocumentsRequest::set_collection_id(const char* value, size_t size) {
  5270. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5271. ::std::string(reinterpret_cast<const char*>(value), size));
  5272. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.collection_id)
  5273. }
  5274. inline std::string* ListDocumentsRequest::_internal_mutable_collection_id() {
  5275. return collection_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5276. }
  5277. inline std::string* ListDocumentsRequest::release_collection_id() {
  5278. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.collection_id)
  5279. return collection_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5280. }
  5281. inline void ListDocumentsRequest::set_allocated_collection_id(std::string* collection_id) {
  5282. if (collection_id != nullptr) {
  5283. } else {
  5284. }
  5285. collection_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_id);
  5286. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.collection_id)
  5287. }
  5288. // int32 page_size = 3;
  5289. inline void ListDocumentsRequest::clear_page_size() {
  5290. page_size_ = 0;
  5291. }
  5292. inline ::PROTOBUF_NAMESPACE_ID::int32 ListDocumentsRequest::_internal_page_size() const {
  5293. return page_size_;
  5294. }
  5295. inline ::PROTOBUF_NAMESPACE_ID::int32 ListDocumentsRequest::page_size() const {
  5296. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_size)
  5297. return _internal_page_size();
  5298. }
  5299. inline void ListDocumentsRequest::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  5300. page_size_ = value;
  5301. }
  5302. inline void ListDocumentsRequest::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  5303. _internal_set_page_size(value);
  5304. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_size)
  5305. }
  5306. // string page_token = 4;
  5307. inline void ListDocumentsRequest::clear_page_token() {
  5308. page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5309. }
  5310. inline const std::string& ListDocumentsRequest::page_token() const {
  5311. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_token)
  5312. return _internal_page_token();
  5313. }
  5314. inline void ListDocumentsRequest::set_page_token(const std::string& value) {
  5315. _internal_set_page_token(value);
  5316. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_token)
  5317. }
  5318. inline std::string* ListDocumentsRequest::mutable_page_token() {
  5319. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.page_token)
  5320. return _internal_mutable_page_token();
  5321. }
  5322. inline const std::string& ListDocumentsRequest::_internal_page_token() const {
  5323. return page_token_.GetNoArena();
  5324. }
  5325. inline void ListDocumentsRequest::_internal_set_page_token(const std::string& value) {
  5326. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5327. }
  5328. inline void ListDocumentsRequest::set_page_token(std::string&& value) {
  5329. page_token_.SetNoArena(
  5330. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5331. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.page_token)
  5332. }
  5333. inline void ListDocumentsRequest::set_page_token(const char* value) {
  5334. GOOGLE_DCHECK(value != nullptr);
  5335. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5336. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.page_token)
  5337. }
  5338. inline void ListDocumentsRequest::set_page_token(const char* value, size_t size) {
  5339. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5340. ::std::string(reinterpret_cast<const char*>(value), size));
  5341. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.page_token)
  5342. }
  5343. inline std::string* ListDocumentsRequest::_internal_mutable_page_token() {
  5344. return page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5345. }
  5346. inline std::string* ListDocumentsRequest::release_page_token() {
  5347. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.page_token)
  5348. return page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5349. }
  5350. inline void ListDocumentsRequest::set_allocated_page_token(std::string* page_token) {
  5351. if (page_token != nullptr) {
  5352. } else {
  5353. }
  5354. page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token);
  5355. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.page_token)
  5356. }
  5357. // string order_by = 6;
  5358. inline void ListDocumentsRequest::clear_order_by() {
  5359. order_by_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5360. }
  5361. inline const std::string& ListDocumentsRequest::order_by() const {
  5362. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.order_by)
  5363. return _internal_order_by();
  5364. }
  5365. inline void ListDocumentsRequest::set_order_by(const std::string& value) {
  5366. _internal_set_order_by(value);
  5367. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.order_by)
  5368. }
  5369. inline std::string* ListDocumentsRequest::mutable_order_by() {
  5370. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.order_by)
  5371. return _internal_mutable_order_by();
  5372. }
  5373. inline const std::string& ListDocumentsRequest::_internal_order_by() const {
  5374. return order_by_.GetNoArena();
  5375. }
  5376. inline void ListDocumentsRequest::_internal_set_order_by(const std::string& value) {
  5377. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5378. }
  5379. inline void ListDocumentsRequest::set_order_by(std::string&& value) {
  5380. order_by_.SetNoArena(
  5381. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5382. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.order_by)
  5383. }
  5384. inline void ListDocumentsRequest::set_order_by(const char* value) {
  5385. GOOGLE_DCHECK(value != nullptr);
  5386. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5387. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.order_by)
  5388. }
  5389. inline void ListDocumentsRequest::set_order_by(const char* value, size_t size) {
  5390. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5391. ::std::string(reinterpret_cast<const char*>(value), size));
  5392. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.order_by)
  5393. }
  5394. inline std::string* ListDocumentsRequest::_internal_mutable_order_by() {
  5395. return order_by_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5396. }
  5397. inline std::string* ListDocumentsRequest::release_order_by() {
  5398. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.order_by)
  5399. return order_by_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5400. }
  5401. inline void ListDocumentsRequest::set_allocated_order_by(std::string* order_by) {
  5402. if (order_by != nullptr) {
  5403. } else {
  5404. }
  5405. order_by_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_by);
  5406. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.order_by)
  5407. }
  5408. // .google.firestore.v1.DocumentMask mask = 7;
  5409. inline bool ListDocumentsRequest::_internal_has_mask() const {
  5410. return this != internal_default_instance() && mask_ != nullptr;
  5411. }
  5412. inline bool ListDocumentsRequest::has_mask() const {
  5413. return _internal_has_mask();
  5414. }
  5415. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::_internal_mask() const {
  5416. const ::google::firestore::v1::DocumentMask* p = mask_;
  5417. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5418. &::google::firestore::v1::_DocumentMask_default_instance_);
  5419. }
  5420. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::mask() const {
  5421. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.mask)
  5422. return _internal_mask();
  5423. }
  5424. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::release_mask() {
  5425. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.mask)
  5426. ::google::firestore::v1::DocumentMask* temp = mask_;
  5427. mask_ = nullptr;
  5428. return temp;
  5429. }
  5430. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::_internal_mutable_mask() {
  5431. if (mask_ == nullptr) {
  5432. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5433. mask_ = p;
  5434. }
  5435. return mask_;
  5436. }
  5437. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::mutable_mask() {
  5438. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.mask)
  5439. return _internal_mutable_mask();
  5440. }
  5441. inline void ListDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5442. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5443. if (message_arena == nullptr) {
  5444. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5445. }
  5446. if (mask) {
  5447. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5448. if (message_arena != submessage_arena) {
  5449. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5450. message_arena, mask, submessage_arena);
  5451. }
  5452. } else {
  5453. }
  5454. mask_ = mask;
  5455. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.mask)
  5456. }
  5457. // bytes transaction = 8;
  5458. inline bool ListDocumentsRequest::_internal_has_transaction() const {
  5459. return consistency_selector_case() == kTransaction;
  5460. }
  5461. inline void ListDocumentsRequest::set_has_transaction() {
  5462. _oneof_case_[0] = kTransaction;
  5463. }
  5464. inline void ListDocumentsRequest::clear_transaction() {
  5465. if (_internal_has_transaction()) {
  5466. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5467. clear_has_consistency_selector();
  5468. }
  5469. }
  5470. inline const std::string& ListDocumentsRequest::transaction() const {
  5471. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.transaction)
  5472. return _internal_transaction();
  5473. }
  5474. inline void ListDocumentsRequest::set_transaction(const std::string& value) {
  5475. _internal_set_transaction(value);
  5476. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  5477. }
  5478. inline std::string* ListDocumentsRequest::mutable_transaction() {
  5479. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.transaction)
  5480. return _internal_mutable_transaction();
  5481. }
  5482. inline const std::string& ListDocumentsRequest::_internal_transaction() const {
  5483. if (_internal_has_transaction()) {
  5484. return consistency_selector_.transaction_.GetNoArena();
  5485. }
  5486. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  5487. }
  5488. inline void ListDocumentsRequest::_internal_set_transaction(const std::string& value) {
  5489. if (!_internal_has_transaction()) {
  5490. clear_consistency_selector();
  5491. set_has_transaction();
  5492. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5493. }
  5494. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5495. }
  5496. inline void ListDocumentsRequest::set_transaction(std::string&& value) {
  5497. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  5498. if (!_internal_has_transaction()) {
  5499. clear_consistency_selector();
  5500. set_has_transaction();
  5501. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5502. }
  5503. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5504. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.transaction)
  5505. }
  5506. inline void ListDocumentsRequest::set_transaction(const char* value) {
  5507. GOOGLE_DCHECK(value != nullptr);
  5508. if (!_internal_has_transaction()) {
  5509. clear_consistency_selector();
  5510. set_has_transaction();
  5511. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5512. }
  5513. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5514. ::std::string(value));
  5515. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.transaction)
  5516. }
  5517. inline void ListDocumentsRequest::set_transaction(const void* value, size_t size) {
  5518. if (!_internal_has_transaction()) {
  5519. clear_consistency_selector();
  5520. set_has_transaction();
  5521. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5522. }
  5523. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5524. reinterpret_cast<const char*>(value), size));
  5525. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.transaction)
  5526. }
  5527. inline std::string* ListDocumentsRequest::_internal_mutable_transaction() {
  5528. if (!_internal_has_transaction()) {
  5529. clear_consistency_selector();
  5530. set_has_transaction();
  5531. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5532. }
  5533. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5534. }
  5535. inline std::string* ListDocumentsRequest::release_transaction() {
  5536. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.transaction)
  5537. if (_internal_has_transaction()) {
  5538. clear_has_consistency_selector();
  5539. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5540. } else {
  5541. return nullptr;
  5542. }
  5543. }
  5544. inline void ListDocumentsRequest::set_allocated_transaction(std::string* transaction) {
  5545. if (has_consistency_selector()) {
  5546. clear_consistency_selector();
  5547. }
  5548. if (transaction != nullptr) {
  5549. set_has_transaction();
  5550. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  5551. }
  5552. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.transaction)
  5553. }
  5554. // .google.protobuf.Timestamp read_time = 10;
  5555. inline bool ListDocumentsRequest::_internal_has_read_time() const {
  5556. return consistency_selector_case() == kReadTime;
  5557. }
  5558. inline bool ListDocumentsRequest::has_read_time() const {
  5559. return _internal_has_read_time();
  5560. }
  5561. inline void ListDocumentsRequest::set_has_read_time() {
  5562. _oneof_case_[0] = kReadTime;
  5563. }
  5564. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::release_read_time() {
  5565. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.read_time)
  5566. if (_internal_has_read_time()) {
  5567. clear_has_consistency_selector();
  5568. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  5569. consistency_selector_.read_time_ = nullptr;
  5570. return temp;
  5571. } else {
  5572. return nullptr;
  5573. }
  5574. }
  5575. inline const PROTOBUF_NAMESPACE_ID::Timestamp& ListDocumentsRequest::_internal_read_time() const {
  5576. return _internal_has_read_time()
  5577. ? *consistency_selector_.read_time_
  5578. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  5579. }
  5580. inline const PROTOBUF_NAMESPACE_ID::Timestamp& ListDocumentsRequest::read_time() const {
  5581. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.read_time)
  5582. return _internal_read_time();
  5583. }
  5584. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::_internal_mutable_read_time() {
  5585. if (!_internal_has_read_time()) {
  5586. clear_consistency_selector();
  5587. set_has_read_time();
  5588. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  5589. GetArenaNoVirtual());
  5590. }
  5591. return consistency_selector_.read_time_;
  5592. }
  5593. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::mutable_read_time() {
  5594. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.read_time)
  5595. return _internal_mutable_read_time();
  5596. }
  5597. // bool show_missing = 12;
  5598. inline void ListDocumentsRequest::clear_show_missing() {
  5599. show_missing_ = false;
  5600. }
  5601. inline bool ListDocumentsRequest::_internal_show_missing() const {
  5602. return show_missing_;
  5603. }
  5604. inline bool ListDocumentsRequest::show_missing() const {
  5605. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.show_missing)
  5606. return _internal_show_missing();
  5607. }
  5608. inline void ListDocumentsRequest::_internal_set_show_missing(bool value) {
  5609. show_missing_ = value;
  5610. }
  5611. inline void ListDocumentsRequest::set_show_missing(bool value) {
  5612. _internal_set_show_missing(value);
  5613. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.show_missing)
  5614. }
  5615. inline bool ListDocumentsRequest::has_consistency_selector() const {
  5616. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  5617. }
  5618. inline void ListDocumentsRequest::clear_has_consistency_selector() {
  5619. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  5620. }
  5621. inline ListDocumentsRequest::ConsistencySelectorCase ListDocumentsRequest::consistency_selector_case() const {
  5622. return ListDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
  5623. }
  5624. // -------------------------------------------------------------------
  5625. // ListDocumentsResponse
  5626. // repeated .google.firestore.v1.Document documents = 1;
  5627. inline int ListDocumentsResponse::_internal_documents_size() const {
  5628. return documents_.size();
  5629. }
  5630. inline int ListDocumentsResponse::documents_size() const {
  5631. return _internal_documents_size();
  5632. }
  5633. inline ::google::firestore::v1::Document* ListDocumentsResponse::mutable_documents(int index) {
  5634. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.documents)
  5635. return documents_.Mutable(index);
  5636. }
  5637. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >*
  5638. ListDocumentsResponse::mutable_documents() {
  5639. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListDocumentsResponse.documents)
  5640. return &documents_;
  5641. }
  5642. inline const ::google::firestore::v1::Document& ListDocumentsResponse::_internal_documents(int index) const {
  5643. return documents_.Get(index);
  5644. }
  5645. inline const ::google::firestore::v1::Document& ListDocumentsResponse::documents(int index) const {
  5646. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.documents)
  5647. return _internal_documents(index);
  5648. }
  5649. inline ::google::firestore::v1::Document* ListDocumentsResponse::_internal_add_documents() {
  5650. return documents_.Add();
  5651. }
  5652. inline ::google::firestore::v1::Document* ListDocumentsResponse::add_documents() {
  5653. // @@protoc_insertion_point(field_add:google.firestore.v1.ListDocumentsResponse.documents)
  5654. return _internal_add_documents();
  5655. }
  5656. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >&
  5657. ListDocumentsResponse::documents() const {
  5658. // @@protoc_insertion_point(field_list:google.firestore.v1.ListDocumentsResponse.documents)
  5659. return documents_;
  5660. }
  5661. // string next_page_token = 2;
  5662. inline void ListDocumentsResponse::clear_next_page_token() {
  5663. next_page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5664. }
  5665. inline const std::string& ListDocumentsResponse::next_page_token() const {
  5666. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5667. return _internal_next_page_token();
  5668. }
  5669. inline void ListDocumentsResponse::set_next_page_token(const std::string& value) {
  5670. _internal_set_next_page_token(value);
  5671. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5672. }
  5673. inline std::string* ListDocumentsResponse::mutable_next_page_token() {
  5674. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5675. return _internal_mutable_next_page_token();
  5676. }
  5677. inline const std::string& ListDocumentsResponse::_internal_next_page_token() const {
  5678. return next_page_token_.GetNoArena();
  5679. }
  5680. inline void ListDocumentsResponse::_internal_set_next_page_token(const std::string& value) {
  5681. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5682. }
  5683. inline void ListDocumentsResponse::set_next_page_token(std::string&& value) {
  5684. next_page_token_.SetNoArena(
  5685. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5686. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5687. }
  5688. inline void ListDocumentsResponse::set_next_page_token(const char* value) {
  5689. GOOGLE_DCHECK(value != nullptr);
  5690. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5691. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5692. }
  5693. inline void ListDocumentsResponse::set_next_page_token(const char* value, size_t size) {
  5694. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5695. ::std::string(reinterpret_cast<const char*>(value), size));
  5696. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5697. }
  5698. inline std::string* ListDocumentsResponse::_internal_mutable_next_page_token() {
  5699. return next_page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5700. }
  5701. inline std::string* ListDocumentsResponse::release_next_page_token() {
  5702. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5703. return next_page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5704. }
  5705. inline void ListDocumentsResponse::set_allocated_next_page_token(std::string* next_page_token) {
  5706. if (next_page_token != nullptr) {
  5707. } else {
  5708. }
  5709. next_page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token);
  5710. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsResponse.next_page_token)
  5711. }
  5712. // -------------------------------------------------------------------
  5713. // CreateDocumentRequest
  5714. // string parent = 1;
  5715. inline void CreateDocumentRequest::clear_parent() {
  5716. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5717. }
  5718. inline const std::string& CreateDocumentRequest::parent() const {
  5719. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.parent)
  5720. return _internal_parent();
  5721. }
  5722. inline void CreateDocumentRequest::set_parent(const std::string& value) {
  5723. _internal_set_parent(value);
  5724. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.parent)
  5725. }
  5726. inline std::string* CreateDocumentRequest::mutable_parent() {
  5727. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.parent)
  5728. return _internal_mutable_parent();
  5729. }
  5730. inline const std::string& CreateDocumentRequest::_internal_parent() const {
  5731. return parent_.GetNoArena();
  5732. }
  5733. inline void CreateDocumentRequest::_internal_set_parent(const std::string& value) {
  5734. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5735. }
  5736. inline void CreateDocumentRequest::set_parent(std::string&& value) {
  5737. parent_.SetNoArena(
  5738. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5739. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.parent)
  5740. }
  5741. inline void CreateDocumentRequest::set_parent(const char* value) {
  5742. GOOGLE_DCHECK(value != nullptr);
  5743. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5744. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.parent)
  5745. }
  5746. inline void CreateDocumentRequest::set_parent(const char* value, size_t size) {
  5747. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5748. ::std::string(reinterpret_cast<const char*>(value), size));
  5749. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.parent)
  5750. }
  5751. inline std::string* CreateDocumentRequest::_internal_mutable_parent() {
  5752. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5753. }
  5754. inline std::string* CreateDocumentRequest::release_parent() {
  5755. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.parent)
  5756. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5757. }
  5758. inline void CreateDocumentRequest::set_allocated_parent(std::string* parent) {
  5759. if (parent != nullptr) {
  5760. } else {
  5761. }
  5762. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  5763. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.parent)
  5764. }
  5765. // string collection_id = 2;
  5766. inline void CreateDocumentRequest::clear_collection_id() {
  5767. collection_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5768. }
  5769. inline const std::string& CreateDocumentRequest::collection_id() const {
  5770. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.collection_id)
  5771. return _internal_collection_id();
  5772. }
  5773. inline void CreateDocumentRequest::set_collection_id(const std::string& value) {
  5774. _internal_set_collection_id(value);
  5775. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.collection_id)
  5776. }
  5777. inline std::string* CreateDocumentRequest::mutable_collection_id() {
  5778. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.collection_id)
  5779. return _internal_mutable_collection_id();
  5780. }
  5781. inline const std::string& CreateDocumentRequest::_internal_collection_id() const {
  5782. return collection_id_.GetNoArena();
  5783. }
  5784. inline void CreateDocumentRequest::_internal_set_collection_id(const std::string& value) {
  5785. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5786. }
  5787. inline void CreateDocumentRequest::set_collection_id(std::string&& value) {
  5788. collection_id_.SetNoArena(
  5789. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5790. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.collection_id)
  5791. }
  5792. inline void CreateDocumentRequest::set_collection_id(const char* value) {
  5793. GOOGLE_DCHECK(value != nullptr);
  5794. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5795. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.collection_id)
  5796. }
  5797. inline void CreateDocumentRequest::set_collection_id(const char* value, size_t size) {
  5798. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5799. ::std::string(reinterpret_cast<const char*>(value), size));
  5800. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.collection_id)
  5801. }
  5802. inline std::string* CreateDocumentRequest::_internal_mutable_collection_id() {
  5803. return collection_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5804. }
  5805. inline std::string* CreateDocumentRequest::release_collection_id() {
  5806. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.collection_id)
  5807. return collection_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5808. }
  5809. inline void CreateDocumentRequest::set_allocated_collection_id(std::string* collection_id) {
  5810. if (collection_id != nullptr) {
  5811. } else {
  5812. }
  5813. collection_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_id);
  5814. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.collection_id)
  5815. }
  5816. // string document_id = 3;
  5817. inline void CreateDocumentRequest::clear_document_id() {
  5818. document_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5819. }
  5820. inline const std::string& CreateDocumentRequest::document_id() const {
  5821. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document_id)
  5822. return _internal_document_id();
  5823. }
  5824. inline void CreateDocumentRequest::set_document_id(const std::string& value) {
  5825. _internal_set_document_id(value);
  5826. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.document_id)
  5827. }
  5828. inline std::string* CreateDocumentRequest::mutable_document_id() {
  5829. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document_id)
  5830. return _internal_mutable_document_id();
  5831. }
  5832. inline const std::string& CreateDocumentRequest::_internal_document_id() const {
  5833. return document_id_.GetNoArena();
  5834. }
  5835. inline void CreateDocumentRequest::_internal_set_document_id(const std::string& value) {
  5836. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5837. }
  5838. inline void CreateDocumentRequest::set_document_id(std::string&& value) {
  5839. document_id_.SetNoArena(
  5840. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5841. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.document_id)
  5842. }
  5843. inline void CreateDocumentRequest::set_document_id(const char* value) {
  5844. GOOGLE_DCHECK(value != nullptr);
  5845. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5846. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.document_id)
  5847. }
  5848. inline void CreateDocumentRequest::set_document_id(const char* value, size_t size) {
  5849. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5850. ::std::string(reinterpret_cast<const char*>(value), size));
  5851. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.document_id)
  5852. }
  5853. inline std::string* CreateDocumentRequest::_internal_mutable_document_id() {
  5854. return document_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5855. }
  5856. inline std::string* CreateDocumentRequest::release_document_id() {
  5857. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document_id)
  5858. return document_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5859. }
  5860. inline void CreateDocumentRequest::set_allocated_document_id(std::string* document_id) {
  5861. if (document_id != nullptr) {
  5862. } else {
  5863. }
  5864. document_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document_id);
  5865. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document_id)
  5866. }
  5867. // .google.firestore.v1.Document document = 4;
  5868. inline bool CreateDocumentRequest::_internal_has_document() const {
  5869. return this != internal_default_instance() && document_ != nullptr;
  5870. }
  5871. inline bool CreateDocumentRequest::has_document() const {
  5872. return _internal_has_document();
  5873. }
  5874. inline const ::google::firestore::v1::Document& CreateDocumentRequest::_internal_document() const {
  5875. const ::google::firestore::v1::Document* p = document_;
  5876. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  5877. &::google::firestore::v1::_Document_default_instance_);
  5878. }
  5879. inline const ::google::firestore::v1::Document& CreateDocumentRequest::document() const {
  5880. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document)
  5881. return _internal_document();
  5882. }
  5883. inline ::google::firestore::v1::Document* CreateDocumentRequest::release_document() {
  5884. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document)
  5885. ::google::firestore::v1::Document* temp = document_;
  5886. document_ = nullptr;
  5887. return temp;
  5888. }
  5889. inline ::google::firestore::v1::Document* CreateDocumentRequest::_internal_mutable_document() {
  5890. if (document_ == nullptr) {
  5891. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  5892. document_ = p;
  5893. }
  5894. return document_;
  5895. }
  5896. inline ::google::firestore::v1::Document* CreateDocumentRequest::mutable_document() {
  5897. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document)
  5898. return _internal_mutable_document();
  5899. }
  5900. inline void CreateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* document) {
  5901. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5902. if (message_arena == nullptr) {
  5903. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  5904. }
  5905. if (document) {
  5906. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5907. if (message_arena != submessage_arena) {
  5908. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5909. message_arena, document, submessage_arena);
  5910. }
  5911. } else {
  5912. }
  5913. document_ = document;
  5914. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document)
  5915. }
  5916. // .google.firestore.v1.DocumentMask mask = 5;
  5917. inline bool CreateDocumentRequest::_internal_has_mask() const {
  5918. return this != internal_default_instance() && mask_ != nullptr;
  5919. }
  5920. inline bool CreateDocumentRequest::has_mask() const {
  5921. return _internal_has_mask();
  5922. }
  5923. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::_internal_mask() const {
  5924. const ::google::firestore::v1::DocumentMask* p = mask_;
  5925. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5926. &::google::firestore::v1::_DocumentMask_default_instance_);
  5927. }
  5928. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::mask() const {
  5929. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.mask)
  5930. return _internal_mask();
  5931. }
  5932. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::release_mask() {
  5933. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.mask)
  5934. ::google::firestore::v1::DocumentMask* temp = mask_;
  5935. mask_ = nullptr;
  5936. return temp;
  5937. }
  5938. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::_internal_mutable_mask() {
  5939. if (mask_ == nullptr) {
  5940. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5941. mask_ = p;
  5942. }
  5943. return mask_;
  5944. }
  5945. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::mutable_mask() {
  5946. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.mask)
  5947. return _internal_mutable_mask();
  5948. }
  5949. inline void CreateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5950. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5951. if (message_arena == nullptr) {
  5952. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5953. }
  5954. if (mask) {
  5955. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5956. if (message_arena != submessage_arena) {
  5957. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5958. message_arena, mask, submessage_arena);
  5959. }
  5960. } else {
  5961. }
  5962. mask_ = mask;
  5963. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.mask)
  5964. }
  5965. // -------------------------------------------------------------------
  5966. // UpdateDocumentRequest
  5967. // .google.firestore.v1.Document document = 1;
  5968. inline bool UpdateDocumentRequest::_internal_has_document() const {
  5969. return this != internal_default_instance() && document_ != nullptr;
  5970. }
  5971. inline bool UpdateDocumentRequest::has_document() const {
  5972. return _internal_has_document();
  5973. }
  5974. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::_internal_document() const {
  5975. const ::google::firestore::v1::Document* p = document_;
  5976. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  5977. &::google::firestore::v1::_Document_default_instance_);
  5978. }
  5979. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::document() const {
  5980. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.document)
  5981. return _internal_document();
  5982. }
  5983. inline ::google::firestore::v1::Document* UpdateDocumentRequest::release_document() {
  5984. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.document)
  5985. ::google::firestore::v1::Document* temp = document_;
  5986. document_ = nullptr;
  5987. return temp;
  5988. }
  5989. inline ::google::firestore::v1::Document* UpdateDocumentRequest::_internal_mutable_document() {
  5990. if (document_ == nullptr) {
  5991. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  5992. document_ = p;
  5993. }
  5994. return document_;
  5995. }
  5996. inline ::google::firestore::v1::Document* UpdateDocumentRequest::mutable_document() {
  5997. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.document)
  5998. return _internal_mutable_document();
  5999. }
  6000. inline void UpdateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* document) {
  6001. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6002. if (message_arena == nullptr) {
  6003. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  6004. }
  6005. if (document) {
  6006. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6007. if (message_arena != submessage_arena) {
  6008. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6009. message_arena, document, submessage_arena);
  6010. }
  6011. } else {
  6012. }
  6013. document_ = document;
  6014. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.document)
  6015. }
  6016. // .google.firestore.v1.DocumentMask update_mask = 2;
  6017. inline bool UpdateDocumentRequest::_internal_has_update_mask() const {
  6018. return this != internal_default_instance() && update_mask_ != nullptr;
  6019. }
  6020. inline bool UpdateDocumentRequest::has_update_mask() const {
  6021. return _internal_has_update_mask();
  6022. }
  6023. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_internal_update_mask() const {
  6024. const ::google::firestore::v1::DocumentMask* p = update_mask_;
  6025. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  6026. &::google::firestore::v1::_DocumentMask_default_instance_);
  6027. }
  6028. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::update_mask() const {
  6029. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.update_mask)
  6030. return _internal_update_mask();
  6031. }
  6032. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_update_mask() {
  6033. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.update_mask)
  6034. ::google::firestore::v1::DocumentMask* temp = update_mask_;
  6035. update_mask_ = nullptr;
  6036. return temp;
  6037. }
  6038. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::_internal_mutable_update_mask() {
  6039. if (update_mask_ == nullptr) {
  6040. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  6041. update_mask_ = p;
  6042. }
  6043. return update_mask_;
  6044. }
  6045. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_update_mask() {
  6046. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.update_mask)
  6047. return _internal_mutable_update_mask();
  6048. }
  6049. inline void UpdateDocumentRequest::set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask) {
  6050. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6051. if (message_arena == nullptr) {
  6052. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask_);
  6053. }
  6054. if (update_mask) {
  6055. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6056. if (message_arena != submessage_arena) {
  6057. update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6058. message_arena, update_mask, submessage_arena);
  6059. }
  6060. } else {
  6061. }
  6062. update_mask_ = update_mask;
  6063. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.update_mask)
  6064. }
  6065. // .google.firestore.v1.DocumentMask mask = 3;
  6066. inline bool UpdateDocumentRequest::_internal_has_mask() const {
  6067. return this != internal_default_instance() && mask_ != nullptr;
  6068. }
  6069. inline bool UpdateDocumentRequest::has_mask() const {
  6070. return _internal_has_mask();
  6071. }
  6072. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::_internal_mask() const {
  6073. const ::google::firestore::v1::DocumentMask* p = mask_;
  6074. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  6075. &::google::firestore::v1::_DocumentMask_default_instance_);
  6076. }
  6077. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::mask() const {
  6078. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.mask)
  6079. return _internal_mask();
  6080. }
  6081. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_mask() {
  6082. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.mask)
  6083. ::google::firestore::v1::DocumentMask* temp = mask_;
  6084. mask_ = nullptr;
  6085. return temp;
  6086. }
  6087. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::_internal_mutable_mask() {
  6088. if (mask_ == nullptr) {
  6089. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  6090. mask_ = p;
  6091. }
  6092. return mask_;
  6093. }
  6094. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_mask() {
  6095. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.mask)
  6096. return _internal_mutable_mask();
  6097. }
  6098. inline void UpdateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  6099. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6100. if (message_arena == nullptr) {
  6101. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  6102. }
  6103. if (mask) {
  6104. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6105. if (message_arena != submessage_arena) {
  6106. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6107. message_arena, mask, submessage_arena);
  6108. }
  6109. } else {
  6110. }
  6111. mask_ = mask;
  6112. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.mask)
  6113. }
  6114. // .google.firestore.v1.Precondition current_document = 4;
  6115. inline bool UpdateDocumentRequest::_internal_has_current_document() const {
  6116. return this != internal_default_instance() && current_document_ != nullptr;
  6117. }
  6118. inline bool UpdateDocumentRequest::has_current_document() const {
  6119. return _internal_has_current_document();
  6120. }
  6121. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::_internal_current_document() const {
  6122. const ::google::firestore::v1::Precondition* p = current_document_;
  6123. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  6124. &::google::firestore::v1::_Precondition_default_instance_);
  6125. }
  6126. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::current_document() const {
  6127. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.current_document)
  6128. return _internal_current_document();
  6129. }
  6130. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::release_current_document() {
  6131. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.current_document)
  6132. ::google::firestore::v1::Precondition* temp = current_document_;
  6133. current_document_ = nullptr;
  6134. return temp;
  6135. }
  6136. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::_internal_mutable_current_document() {
  6137. if (current_document_ == nullptr) {
  6138. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  6139. current_document_ = p;
  6140. }
  6141. return current_document_;
  6142. }
  6143. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::mutable_current_document() {
  6144. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.current_document)
  6145. return _internal_mutable_current_document();
  6146. }
  6147. inline void UpdateDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  6148. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6149. if (message_arena == nullptr) {
  6150. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  6151. }
  6152. if (current_document) {
  6153. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6154. if (message_arena != submessage_arena) {
  6155. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6156. message_arena, current_document, submessage_arena);
  6157. }
  6158. } else {
  6159. }
  6160. current_document_ = current_document;
  6161. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.current_document)
  6162. }
  6163. // -------------------------------------------------------------------
  6164. // DeleteDocumentRequest
  6165. // string name = 1;
  6166. inline void DeleteDocumentRequest::clear_name() {
  6167. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6168. }
  6169. inline const std::string& DeleteDocumentRequest::name() const {
  6170. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.name)
  6171. return _internal_name();
  6172. }
  6173. inline void DeleteDocumentRequest::set_name(const std::string& value) {
  6174. _internal_set_name(value);
  6175. // @@protoc_insertion_point(field_set:google.firestore.v1.DeleteDocumentRequest.name)
  6176. }
  6177. inline std::string* DeleteDocumentRequest::mutable_name() {
  6178. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.name)
  6179. return _internal_mutable_name();
  6180. }
  6181. inline const std::string& DeleteDocumentRequest::_internal_name() const {
  6182. return name_.GetNoArena();
  6183. }
  6184. inline void DeleteDocumentRequest::_internal_set_name(const std::string& value) {
  6185. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6186. }
  6187. inline void DeleteDocumentRequest::set_name(std::string&& value) {
  6188. name_.SetNoArena(
  6189. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6190. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DeleteDocumentRequest.name)
  6191. }
  6192. inline void DeleteDocumentRequest::set_name(const char* value) {
  6193. GOOGLE_DCHECK(value != nullptr);
  6194. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6195. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DeleteDocumentRequest.name)
  6196. }
  6197. inline void DeleteDocumentRequest::set_name(const char* value, size_t size) {
  6198. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6199. ::std::string(reinterpret_cast<const char*>(value), size));
  6200. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DeleteDocumentRequest.name)
  6201. }
  6202. inline std::string* DeleteDocumentRequest::_internal_mutable_name() {
  6203. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6204. }
  6205. inline std::string* DeleteDocumentRequest::release_name() {
  6206. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.name)
  6207. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6208. }
  6209. inline void DeleteDocumentRequest::set_allocated_name(std::string* name) {
  6210. if (name != nullptr) {
  6211. } else {
  6212. }
  6213. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  6214. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.name)
  6215. }
  6216. // .google.firestore.v1.Precondition current_document = 2;
  6217. inline bool DeleteDocumentRequest::_internal_has_current_document() const {
  6218. return this != internal_default_instance() && current_document_ != nullptr;
  6219. }
  6220. inline bool DeleteDocumentRequest::has_current_document() const {
  6221. return _internal_has_current_document();
  6222. }
  6223. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::_internal_current_document() const {
  6224. const ::google::firestore::v1::Precondition* p = current_document_;
  6225. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  6226. &::google::firestore::v1::_Precondition_default_instance_);
  6227. }
  6228. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::current_document() const {
  6229. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.current_document)
  6230. return _internal_current_document();
  6231. }
  6232. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::release_current_document() {
  6233. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.current_document)
  6234. ::google::firestore::v1::Precondition* temp = current_document_;
  6235. current_document_ = nullptr;
  6236. return temp;
  6237. }
  6238. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::_internal_mutable_current_document() {
  6239. if (current_document_ == nullptr) {
  6240. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  6241. current_document_ = p;
  6242. }
  6243. return current_document_;
  6244. }
  6245. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::mutable_current_document() {
  6246. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.current_document)
  6247. return _internal_mutable_current_document();
  6248. }
  6249. inline void DeleteDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  6250. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6251. if (message_arena == nullptr) {
  6252. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  6253. }
  6254. if (current_document) {
  6255. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6256. if (message_arena != submessage_arena) {
  6257. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6258. message_arena, current_document, submessage_arena);
  6259. }
  6260. } else {
  6261. }
  6262. current_document_ = current_document;
  6263. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.current_document)
  6264. }
  6265. // -------------------------------------------------------------------
  6266. // BatchGetDocumentsRequest
  6267. // string database = 1;
  6268. inline void BatchGetDocumentsRequest::clear_database() {
  6269. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6270. }
  6271. inline const std::string& BatchGetDocumentsRequest::database() const {
  6272. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.database)
  6273. return _internal_database();
  6274. }
  6275. inline void BatchGetDocumentsRequest::set_database(const std::string& value) {
  6276. _internal_set_database(value);
  6277. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.database)
  6278. }
  6279. inline std::string* BatchGetDocumentsRequest::mutable_database() {
  6280. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.database)
  6281. return _internal_mutable_database();
  6282. }
  6283. inline const std::string& BatchGetDocumentsRequest::_internal_database() const {
  6284. return database_.GetNoArena();
  6285. }
  6286. inline void BatchGetDocumentsRequest::_internal_set_database(const std::string& value) {
  6287. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6288. }
  6289. inline void BatchGetDocumentsRequest::set_database(std::string&& value) {
  6290. database_.SetNoArena(
  6291. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6292. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsRequest.database)
  6293. }
  6294. inline void BatchGetDocumentsRequest::set_database(const char* value) {
  6295. GOOGLE_DCHECK(value != nullptr);
  6296. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6297. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.database)
  6298. }
  6299. inline void BatchGetDocumentsRequest::set_database(const char* value, size_t size) {
  6300. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6301. ::std::string(reinterpret_cast<const char*>(value), size));
  6302. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.database)
  6303. }
  6304. inline std::string* BatchGetDocumentsRequest::_internal_mutable_database() {
  6305. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6306. }
  6307. inline std::string* BatchGetDocumentsRequest::release_database() {
  6308. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.database)
  6309. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6310. }
  6311. inline void BatchGetDocumentsRequest::set_allocated_database(std::string* database) {
  6312. if (database != nullptr) {
  6313. } else {
  6314. }
  6315. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6316. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.database)
  6317. }
  6318. // repeated string documents = 2;
  6319. inline int BatchGetDocumentsRequest::_internal_documents_size() const {
  6320. return documents_.size();
  6321. }
  6322. inline int BatchGetDocumentsRequest::documents_size() const {
  6323. return _internal_documents_size();
  6324. }
  6325. inline void BatchGetDocumentsRequest::clear_documents() {
  6326. documents_.Clear();
  6327. }
  6328. inline std::string* BatchGetDocumentsRequest::add_documents() {
  6329. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6330. return _internal_add_documents();
  6331. }
  6332. inline const std::string& BatchGetDocumentsRequest::_internal_documents(int index) const {
  6333. return documents_.Get(index);
  6334. }
  6335. inline const std::string& BatchGetDocumentsRequest::documents(int index) const {
  6336. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6337. return _internal_documents(index);
  6338. }
  6339. inline std::string* BatchGetDocumentsRequest::mutable_documents(int index) {
  6340. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6341. return documents_.Mutable(index);
  6342. }
  6343. inline void BatchGetDocumentsRequest::set_documents(int index, const std::string& value) {
  6344. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6345. documents_.Mutable(index)->assign(value);
  6346. }
  6347. inline void BatchGetDocumentsRequest::set_documents(int index, std::string&& value) {
  6348. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6349. documents_.Mutable(index)->assign(std::move(value));
  6350. }
  6351. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value) {
  6352. GOOGLE_DCHECK(value != nullptr);
  6353. documents_.Mutable(index)->assign(value);
  6354. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6355. }
  6356. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value, size_t size) {
  6357. documents_.Mutable(index)->assign(
  6358. reinterpret_cast<const char*>(value), size);
  6359. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6360. }
  6361. inline std::string* BatchGetDocumentsRequest::_internal_add_documents() {
  6362. return documents_.Add();
  6363. }
  6364. inline void BatchGetDocumentsRequest::add_documents(const std::string& value) {
  6365. documents_.Add()->assign(value);
  6366. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6367. }
  6368. inline void BatchGetDocumentsRequest::add_documents(std::string&& value) {
  6369. documents_.Add(std::move(value));
  6370. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6371. }
  6372. inline void BatchGetDocumentsRequest::add_documents(const char* value) {
  6373. GOOGLE_DCHECK(value != nullptr);
  6374. documents_.Add()->assign(value);
  6375. // @@protoc_insertion_point(field_add_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6376. }
  6377. inline void BatchGetDocumentsRequest::add_documents(const char* value, size_t size) {
  6378. documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6379. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6380. }
  6381. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  6382. BatchGetDocumentsRequest::documents() const {
  6383. // @@protoc_insertion_point(field_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6384. return documents_;
  6385. }
  6386. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  6387. BatchGetDocumentsRequest::mutable_documents() {
  6388. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  6389. return &documents_;
  6390. }
  6391. // .google.firestore.v1.DocumentMask mask = 3;
  6392. inline bool BatchGetDocumentsRequest::_internal_has_mask() const {
  6393. return this != internal_default_instance() && mask_ != nullptr;
  6394. }
  6395. inline bool BatchGetDocumentsRequest::has_mask() const {
  6396. return _internal_has_mask();
  6397. }
  6398. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::_internal_mask() const {
  6399. const ::google::firestore::v1::DocumentMask* p = mask_;
  6400. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  6401. &::google::firestore::v1::_DocumentMask_default_instance_);
  6402. }
  6403. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::mask() const {
  6404. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6405. return _internal_mask();
  6406. }
  6407. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::release_mask() {
  6408. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6409. ::google::firestore::v1::DocumentMask* temp = mask_;
  6410. mask_ = nullptr;
  6411. return temp;
  6412. }
  6413. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::_internal_mutable_mask() {
  6414. if (mask_ == nullptr) {
  6415. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  6416. mask_ = p;
  6417. }
  6418. return mask_;
  6419. }
  6420. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::mutable_mask() {
  6421. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6422. return _internal_mutable_mask();
  6423. }
  6424. inline void BatchGetDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  6425. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6426. if (message_arena == nullptr) {
  6427. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  6428. }
  6429. if (mask) {
  6430. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6431. if (message_arena != submessage_arena) {
  6432. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6433. message_arena, mask, submessage_arena);
  6434. }
  6435. } else {
  6436. }
  6437. mask_ = mask;
  6438. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.mask)
  6439. }
  6440. // bytes transaction = 4;
  6441. inline bool BatchGetDocumentsRequest::_internal_has_transaction() const {
  6442. return consistency_selector_case() == kTransaction;
  6443. }
  6444. inline void BatchGetDocumentsRequest::set_has_transaction() {
  6445. _oneof_case_[0] = kTransaction;
  6446. }
  6447. inline void BatchGetDocumentsRequest::clear_transaction() {
  6448. if (_internal_has_transaction()) {
  6449. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6450. clear_has_consistency_selector();
  6451. }
  6452. }
  6453. inline const std::string& BatchGetDocumentsRequest::transaction() const {
  6454. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6455. return _internal_transaction();
  6456. }
  6457. inline void BatchGetDocumentsRequest::set_transaction(const std::string& value) {
  6458. _internal_set_transaction(value);
  6459. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6460. }
  6461. inline std::string* BatchGetDocumentsRequest::mutable_transaction() {
  6462. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6463. return _internal_mutable_transaction();
  6464. }
  6465. inline const std::string& BatchGetDocumentsRequest::_internal_transaction() const {
  6466. if (_internal_has_transaction()) {
  6467. return consistency_selector_.transaction_.GetNoArena();
  6468. }
  6469. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  6470. }
  6471. inline void BatchGetDocumentsRequest::_internal_set_transaction(const std::string& value) {
  6472. if (!_internal_has_transaction()) {
  6473. clear_consistency_selector();
  6474. set_has_transaction();
  6475. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6476. }
  6477. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6478. }
  6479. inline void BatchGetDocumentsRequest::set_transaction(std::string&& value) {
  6480. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6481. if (!_internal_has_transaction()) {
  6482. clear_consistency_selector();
  6483. set_has_transaction();
  6484. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6485. }
  6486. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6487. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6488. }
  6489. inline void BatchGetDocumentsRequest::set_transaction(const char* value) {
  6490. GOOGLE_DCHECK(value != nullptr);
  6491. if (!_internal_has_transaction()) {
  6492. clear_consistency_selector();
  6493. set_has_transaction();
  6494. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6495. }
  6496. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6497. ::std::string(value));
  6498. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6499. }
  6500. inline void BatchGetDocumentsRequest::set_transaction(const void* value, size_t size) {
  6501. if (!_internal_has_transaction()) {
  6502. clear_consistency_selector();
  6503. set_has_transaction();
  6504. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6505. }
  6506. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6507. reinterpret_cast<const char*>(value), size));
  6508. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6509. }
  6510. inline std::string* BatchGetDocumentsRequest::_internal_mutable_transaction() {
  6511. if (!_internal_has_transaction()) {
  6512. clear_consistency_selector();
  6513. set_has_transaction();
  6514. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6515. }
  6516. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6517. }
  6518. inline std::string* BatchGetDocumentsRequest::release_transaction() {
  6519. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6520. if (_internal_has_transaction()) {
  6521. clear_has_consistency_selector();
  6522. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6523. } else {
  6524. return nullptr;
  6525. }
  6526. }
  6527. inline void BatchGetDocumentsRequest::set_allocated_transaction(std::string* transaction) {
  6528. if (has_consistency_selector()) {
  6529. clear_consistency_selector();
  6530. }
  6531. if (transaction != nullptr) {
  6532. set_has_transaction();
  6533. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  6534. }
  6535. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  6536. }
  6537. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  6538. inline bool BatchGetDocumentsRequest::_internal_has_new_transaction() const {
  6539. return consistency_selector_case() == kNewTransaction;
  6540. }
  6541. inline bool BatchGetDocumentsRequest::has_new_transaction() const {
  6542. return _internal_has_new_transaction();
  6543. }
  6544. inline void BatchGetDocumentsRequest::set_has_new_transaction() {
  6545. _oneof_case_[0] = kNewTransaction;
  6546. }
  6547. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::release_new_transaction() {
  6548. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6549. if (_internal_has_new_transaction()) {
  6550. clear_has_consistency_selector();
  6551. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  6552. consistency_selector_.new_transaction_ = nullptr;
  6553. return temp;
  6554. } else {
  6555. return nullptr;
  6556. }
  6557. }
  6558. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::_internal_new_transaction() const {
  6559. return _internal_has_new_transaction()
  6560. ? *consistency_selector_.new_transaction_
  6561. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  6562. }
  6563. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::new_transaction() const {
  6564. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6565. return _internal_new_transaction();
  6566. }
  6567. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::_internal_mutable_new_transaction() {
  6568. if (!_internal_has_new_transaction()) {
  6569. clear_consistency_selector();
  6570. set_has_new_transaction();
  6571. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  6572. GetArenaNoVirtual());
  6573. }
  6574. return consistency_selector_.new_transaction_;
  6575. }
  6576. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::mutable_new_transaction() {
  6577. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  6578. return _internal_mutable_new_transaction();
  6579. }
  6580. // .google.protobuf.Timestamp read_time = 7;
  6581. inline bool BatchGetDocumentsRequest::_internal_has_read_time() const {
  6582. return consistency_selector_case() == kReadTime;
  6583. }
  6584. inline bool BatchGetDocumentsRequest::has_read_time() const {
  6585. return _internal_has_read_time();
  6586. }
  6587. inline void BatchGetDocumentsRequest::set_has_read_time() {
  6588. _oneof_case_[0] = kReadTime;
  6589. }
  6590. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::release_read_time() {
  6591. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6592. if (_internal_has_read_time()) {
  6593. clear_has_consistency_selector();
  6594. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  6595. consistency_selector_.read_time_ = nullptr;
  6596. return temp;
  6597. } else {
  6598. return nullptr;
  6599. }
  6600. }
  6601. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsRequest::_internal_read_time() const {
  6602. return _internal_has_read_time()
  6603. ? *consistency_selector_.read_time_
  6604. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6605. }
  6606. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsRequest::read_time() const {
  6607. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6608. return _internal_read_time();
  6609. }
  6610. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::_internal_mutable_read_time() {
  6611. if (!_internal_has_read_time()) {
  6612. clear_consistency_selector();
  6613. set_has_read_time();
  6614. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  6615. GetArenaNoVirtual());
  6616. }
  6617. return consistency_selector_.read_time_;
  6618. }
  6619. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::mutable_read_time() {
  6620. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  6621. return _internal_mutable_read_time();
  6622. }
  6623. inline bool BatchGetDocumentsRequest::has_consistency_selector() const {
  6624. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  6625. }
  6626. inline void BatchGetDocumentsRequest::clear_has_consistency_selector() {
  6627. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  6628. }
  6629. inline BatchGetDocumentsRequest::ConsistencySelectorCase BatchGetDocumentsRequest::consistency_selector_case() const {
  6630. return BatchGetDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
  6631. }
  6632. // -------------------------------------------------------------------
  6633. // BatchGetDocumentsResponse
  6634. // .google.firestore.v1.Document found = 1;
  6635. inline bool BatchGetDocumentsResponse::_internal_has_found() const {
  6636. return result_case() == kFound;
  6637. }
  6638. inline bool BatchGetDocumentsResponse::has_found() const {
  6639. return _internal_has_found();
  6640. }
  6641. inline void BatchGetDocumentsResponse::set_has_found() {
  6642. _oneof_case_[0] = kFound;
  6643. }
  6644. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::release_found() {
  6645. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.found)
  6646. if (_internal_has_found()) {
  6647. clear_has_result();
  6648. ::google::firestore::v1::Document* temp = result_.found_;
  6649. result_.found_ = nullptr;
  6650. return temp;
  6651. } else {
  6652. return nullptr;
  6653. }
  6654. }
  6655. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::_internal_found() const {
  6656. return _internal_has_found()
  6657. ? *result_.found_
  6658. : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
  6659. }
  6660. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::found() const {
  6661. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.found)
  6662. return _internal_found();
  6663. }
  6664. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::_internal_mutable_found() {
  6665. if (!_internal_has_found()) {
  6666. clear_result();
  6667. set_has_found();
  6668. result_.found_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
  6669. GetArenaNoVirtual());
  6670. }
  6671. return result_.found_;
  6672. }
  6673. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::mutable_found() {
  6674. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.found)
  6675. return _internal_mutable_found();
  6676. }
  6677. // string missing = 2;
  6678. inline bool BatchGetDocumentsResponse::_internal_has_missing() const {
  6679. return result_case() == kMissing;
  6680. }
  6681. inline void BatchGetDocumentsResponse::set_has_missing() {
  6682. _oneof_case_[0] = kMissing;
  6683. }
  6684. inline void BatchGetDocumentsResponse::clear_missing() {
  6685. if (_internal_has_missing()) {
  6686. result_.missing_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6687. clear_has_result();
  6688. }
  6689. }
  6690. inline const std::string& BatchGetDocumentsResponse::missing() const {
  6691. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6692. return _internal_missing();
  6693. }
  6694. inline void BatchGetDocumentsResponse::set_missing(const std::string& value) {
  6695. _internal_set_missing(value);
  6696. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6697. }
  6698. inline std::string* BatchGetDocumentsResponse::mutable_missing() {
  6699. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6700. return _internal_mutable_missing();
  6701. }
  6702. inline const std::string& BatchGetDocumentsResponse::_internal_missing() const {
  6703. if (_internal_has_missing()) {
  6704. return result_.missing_.GetNoArena();
  6705. }
  6706. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  6707. }
  6708. inline void BatchGetDocumentsResponse::_internal_set_missing(const std::string& value) {
  6709. if (!_internal_has_missing()) {
  6710. clear_result();
  6711. set_has_missing();
  6712. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6713. }
  6714. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6715. }
  6716. inline void BatchGetDocumentsResponse::set_missing(std::string&& value) {
  6717. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6718. if (!_internal_has_missing()) {
  6719. clear_result();
  6720. set_has_missing();
  6721. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6722. }
  6723. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6724. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6725. }
  6726. inline void BatchGetDocumentsResponse::set_missing(const char* value) {
  6727. GOOGLE_DCHECK(value != nullptr);
  6728. if (!_internal_has_missing()) {
  6729. clear_result();
  6730. set_has_missing();
  6731. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6732. }
  6733. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6734. ::std::string(value));
  6735. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6736. }
  6737. inline void BatchGetDocumentsResponse::set_missing(const char* value, size_t size) {
  6738. if (!_internal_has_missing()) {
  6739. clear_result();
  6740. set_has_missing();
  6741. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6742. }
  6743. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6744. reinterpret_cast<const char*>(value), size));
  6745. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6746. }
  6747. inline std::string* BatchGetDocumentsResponse::_internal_mutable_missing() {
  6748. if (!_internal_has_missing()) {
  6749. clear_result();
  6750. set_has_missing();
  6751. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6752. }
  6753. return result_.missing_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6754. }
  6755. inline std::string* BatchGetDocumentsResponse::release_missing() {
  6756. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6757. if (_internal_has_missing()) {
  6758. clear_has_result();
  6759. return result_.missing_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6760. } else {
  6761. return nullptr;
  6762. }
  6763. }
  6764. inline void BatchGetDocumentsResponse::set_allocated_missing(std::string* missing) {
  6765. if (has_result()) {
  6766. clear_result();
  6767. }
  6768. if (missing != nullptr) {
  6769. set_has_missing();
  6770. result_.missing_.UnsafeSetDefault(missing);
  6771. }
  6772. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.missing)
  6773. }
  6774. // bytes transaction = 3;
  6775. inline void BatchGetDocumentsResponse::clear_transaction() {
  6776. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6777. }
  6778. inline const std::string& BatchGetDocumentsResponse::transaction() const {
  6779. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6780. return _internal_transaction();
  6781. }
  6782. inline void BatchGetDocumentsResponse::set_transaction(const std::string& value) {
  6783. _internal_set_transaction(value);
  6784. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6785. }
  6786. inline std::string* BatchGetDocumentsResponse::mutable_transaction() {
  6787. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6788. return _internal_mutable_transaction();
  6789. }
  6790. inline const std::string& BatchGetDocumentsResponse::_internal_transaction() const {
  6791. return transaction_.GetNoArena();
  6792. }
  6793. inline void BatchGetDocumentsResponse::_internal_set_transaction(const std::string& value) {
  6794. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6795. }
  6796. inline void BatchGetDocumentsResponse::set_transaction(std::string&& value) {
  6797. transaction_.SetNoArena(
  6798. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6799. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6800. }
  6801. inline void BatchGetDocumentsResponse::set_transaction(const char* value) {
  6802. GOOGLE_DCHECK(value != nullptr);
  6803. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6804. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6805. }
  6806. inline void BatchGetDocumentsResponse::set_transaction(const void* value, size_t size) {
  6807. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6808. ::std::string(reinterpret_cast<const char*>(value), size));
  6809. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6810. }
  6811. inline std::string* BatchGetDocumentsResponse::_internal_mutable_transaction() {
  6812. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6813. }
  6814. inline std::string* BatchGetDocumentsResponse::release_transaction() {
  6815. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6816. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6817. }
  6818. inline void BatchGetDocumentsResponse::set_allocated_transaction(std::string* transaction) {
  6819. if (transaction != nullptr) {
  6820. } else {
  6821. }
  6822. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6823. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  6824. }
  6825. // .google.protobuf.Timestamp read_time = 4;
  6826. inline bool BatchGetDocumentsResponse::_internal_has_read_time() const {
  6827. return this != internal_default_instance() && read_time_ != nullptr;
  6828. }
  6829. inline bool BatchGetDocumentsResponse::has_read_time() const {
  6830. return _internal_has_read_time();
  6831. }
  6832. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsResponse::_internal_read_time() const {
  6833. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  6834. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  6835. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6836. }
  6837. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsResponse::read_time() const {
  6838. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6839. return _internal_read_time();
  6840. }
  6841. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::release_read_time() {
  6842. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6843. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  6844. read_time_ = nullptr;
  6845. return temp;
  6846. }
  6847. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::_internal_mutable_read_time() {
  6848. if (read_time_ == nullptr) {
  6849. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  6850. read_time_ = p;
  6851. }
  6852. return read_time_;
  6853. }
  6854. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::mutable_read_time() {
  6855. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6856. return _internal_mutable_read_time();
  6857. }
  6858. inline void BatchGetDocumentsResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  6859. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6860. if (message_arena == nullptr) {
  6861. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  6862. }
  6863. if (read_time) {
  6864. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  6865. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  6866. if (message_arena != submessage_arena) {
  6867. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6868. message_arena, read_time, submessage_arena);
  6869. }
  6870. } else {
  6871. }
  6872. read_time_ = read_time;
  6873. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  6874. }
  6875. inline bool BatchGetDocumentsResponse::has_result() const {
  6876. return result_case() != RESULT_NOT_SET;
  6877. }
  6878. inline void BatchGetDocumentsResponse::clear_has_result() {
  6879. _oneof_case_[0] = RESULT_NOT_SET;
  6880. }
  6881. inline BatchGetDocumentsResponse::ResultCase BatchGetDocumentsResponse::result_case() const {
  6882. return BatchGetDocumentsResponse::ResultCase(_oneof_case_[0]);
  6883. }
  6884. // -------------------------------------------------------------------
  6885. // BeginTransactionRequest
  6886. // string database = 1;
  6887. inline void BeginTransactionRequest::clear_database() {
  6888. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6889. }
  6890. inline const std::string& BeginTransactionRequest::database() const {
  6891. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.database)
  6892. return _internal_database();
  6893. }
  6894. inline void BeginTransactionRequest::set_database(const std::string& value) {
  6895. _internal_set_database(value);
  6896. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionRequest.database)
  6897. }
  6898. inline std::string* BeginTransactionRequest::mutable_database() {
  6899. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.database)
  6900. return _internal_mutable_database();
  6901. }
  6902. inline const std::string& BeginTransactionRequest::_internal_database() const {
  6903. return database_.GetNoArena();
  6904. }
  6905. inline void BeginTransactionRequest::_internal_set_database(const std::string& value) {
  6906. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6907. }
  6908. inline void BeginTransactionRequest::set_database(std::string&& value) {
  6909. database_.SetNoArena(
  6910. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6911. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BeginTransactionRequest.database)
  6912. }
  6913. inline void BeginTransactionRequest::set_database(const char* value) {
  6914. GOOGLE_DCHECK(value != nullptr);
  6915. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6916. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BeginTransactionRequest.database)
  6917. }
  6918. inline void BeginTransactionRequest::set_database(const char* value, size_t size) {
  6919. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6920. ::std::string(reinterpret_cast<const char*>(value), size));
  6921. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BeginTransactionRequest.database)
  6922. }
  6923. inline std::string* BeginTransactionRequest::_internal_mutable_database() {
  6924. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6925. }
  6926. inline std::string* BeginTransactionRequest::release_database() {
  6927. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.database)
  6928. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6929. }
  6930. inline void BeginTransactionRequest::set_allocated_database(std::string* database) {
  6931. if (database != nullptr) {
  6932. } else {
  6933. }
  6934. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6935. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.database)
  6936. }
  6937. // .google.firestore.v1.TransactionOptions options = 2;
  6938. inline bool BeginTransactionRequest::_internal_has_options() const {
  6939. return this != internal_default_instance() && options_ != nullptr;
  6940. }
  6941. inline bool BeginTransactionRequest::has_options() const {
  6942. return _internal_has_options();
  6943. }
  6944. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::_internal_options() const {
  6945. const ::google::firestore::v1::TransactionOptions* p = options_;
  6946. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::TransactionOptions*>(
  6947. &::google::firestore::v1::_TransactionOptions_default_instance_);
  6948. }
  6949. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::options() const {
  6950. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.options)
  6951. return _internal_options();
  6952. }
  6953. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::release_options() {
  6954. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.options)
  6955. ::google::firestore::v1::TransactionOptions* temp = options_;
  6956. options_ = nullptr;
  6957. return temp;
  6958. }
  6959. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::_internal_mutable_options() {
  6960. if (options_ == nullptr) {
  6961. auto* p = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(GetArenaNoVirtual());
  6962. options_ = p;
  6963. }
  6964. return options_;
  6965. }
  6966. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::mutable_options() {
  6967. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.options)
  6968. return _internal_mutable_options();
  6969. }
  6970. inline void BeginTransactionRequest::set_allocated_options(::google::firestore::v1::TransactionOptions* options) {
  6971. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6972. if (message_arena == nullptr) {
  6973. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  6974. }
  6975. if (options) {
  6976. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6977. if (message_arena != submessage_arena) {
  6978. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6979. message_arena, options, submessage_arena);
  6980. }
  6981. } else {
  6982. }
  6983. options_ = options;
  6984. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.options)
  6985. }
  6986. // -------------------------------------------------------------------
  6987. // BeginTransactionResponse
  6988. // bytes transaction = 1;
  6989. inline void BeginTransactionResponse::clear_transaction() {
  6990. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6991. }
  6992. inline const std::string& BeginTransactionResponse::transaction() const {
  6993. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionResponse.transaction)
  6994. return _internal_transaction();
  6995. }
  6996. inline void BeginTransactionResponse::set_transaction(const std::string& value) {
  6997. _internal_set_transaction(value);
  6998. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionResponse.transaction)
  6999. }
  7000. inline std::string* BeginTransactionResponse::mutable_transaction() {
  7001. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionResponse.transaction)
  7002. return _internal_mutable_transaction();
  7003. }
  7004. inline const std::string& BeginTransactionResponse::_internal_transaction() const {
  7005. return transaction_.GetNoArena();
  7006. }
  7007. inline void BeginTransactionResponse::_internal_set_transaction(const std::string& value) {
  7008. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7009. }
  7010. inline void BeginTransactionResponse::set_transaction(std::string&& value) {
  7011. transaction_.SetNoArena(
  7012. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7013. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BeginTransactionResponse.transaction)
  7014. }
  7015. inline void BeginTransactionResponse::set_transaction(const char* value) {
  7016. GOOGLE_DCHECK(value != nullptr);
  7017. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7018. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BeginTransactionResponse.transaction)
  7019. }
  7020. inline void BeginTransactionResponse::set_transaction(const void* value, size_t size) {
  7021. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7022. ::std::string(reinterpret_cast<const char*>(value), size));
  7023. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BeginTransactionResponse.transaction)
  7024. }
  7025. inline std::string* BeginTransactionResponse::_internal_mutable_transaction() {
  7026. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7027. }
  7028. inline std::string* BeginTransactionResponse::release_transaction() {
  7029. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionResponse.transaction)
  7030. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7031. }
  7032. inline void BeginTransactionResponse::set_allocated_transaction(std::string* transaction) {
  7033. if (transaction != nullptr) {
  7034. } else {
  7035. }
  7036. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7037. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionResponse.transaction)
  7038. }
  7039. // -------------------------------------------------------------------
  7040. // CommitRequest
  7041. // string database = 1;
  7042. inline void CommitRequest::clear_database() {
  7043. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7044. }
  7045. inline const std::string& CommitRequest::database() const {
  7046. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.database)
  7047. return _internal_database();
  7048. }
  7049. inline void CommitRequest::set_database(const std::string& value) {
  7050. _internal_set_database(value);
  7051. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.database)
  7052. }
  7053. inline std::string* CommitRequest::mutable_database() {
  7054. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.database)
  7055. return _internal_mutable_database();
  7056. }
  7057. inline const std::string& CommitRequest::_internal_database() const {
  7058. return database_.GetNoArena();
  7059. }
  7060. inline void CommitRequest::_internal_set_database(const std::string& value) {
  7061. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7062. }
  7063. inline void CommitRequest::set_database(std::string&& value) {
  7064. database_.SetNoArena(
  7065. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7066. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CommitRequest.database)
  7067. }
  7068. inline void CommitRequest::set_database(const char* value) {
  7069. GOOGLE_DCHECK(value != nullptr);
  7070. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7071. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CommitRequest.database)
  7072. }
  7073. inline void CommitRequest::set_database(const char* value, size_t size) {
  7074. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7075. ::std::string(reinterpret_cast<const char*>(value), size));
  7076. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CommitRequest.database)
  7077. }
  7078. inline std::string* CommitRequest::_internal_mutable_database() {
  7079. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7080. }
  7081. inline std::string* CommitRequest::release_database() {
  7082. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.database)
  7083. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7084. }
  7085. inline void CommitRequest::set_allocated_database(std::string* database) {
  7086. if (database != nullptr) {
  7087. } else {
  7088. }
  7089. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  7090. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.database)
  7091. }
  7092. // repeated .google.firestore.v1.Write writes = 2;
  7093. inline int CommitRequest::_internal_writes_size() const {
  7094. return writes_.size();
  7095. }
  7096. inline int CommitRequest::writes_size() const {
  7097. return _internal_writes_size();
  7098. }
  7099. inline ::google::firestore::v1::Write* CommitRequest::mutable_writes(int index) {
  7100. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.writes)
  7101. return writes_.Mutable(index);
  7102. }
  7103. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  7104. CommitRequest::mutable_writes() {
  7105. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitRequest.writes)
  7106. return &writes_;
  7107. }
  7108. inline const ::google::firestore::v1::Write& CommitRequest::_internal_writes(int index) const {
  7109. return writes_.Get(index);
  7110. }
  7111. inline const ::google::firestore::v1::Write& CommitRequest::writes(int index) const {
  7112. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.writes)
  7113. return _internal_writes(index);
  7114. }
  7115. inline ::google::firestore::v1::Write* CommitRequest::_internal_add_writes() {
  7116. return writes_.Add();
  7117. }
  7118. inline ::google::firestore::v1::Write* CommitRequest::add_writes() {
  7119. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitRequest.writes)
  7120. return _internal_add_writes();
  7121. }
  7122. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  7123. CommitRequest::writes() const {
  7124. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitRequest.writes)
  7125. return writes_;
  7126. }
  7127. // bytes transaction = 3;
  7128. inline void CommitRequest::clear_transaction() {
  7129. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7130. }
  7131. inline const std::string& CommitRequest::transaction() const {
  7132. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.transaction)
  7133. return _internal_transaction();
  7134. }
  7135. inline void CommitRequest::set_transaction(const std::string& value) {
  7136. _internal_set_transaction(value);
  7137. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.transaction)
  7138. }
  7139. inline std::string* CommitRequest::mutable_transaction() {
  7140. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.transaction)
  7141. return _internal_mutable_transaction();
  7142. }
  7143. inline const std::string& CommitRequest::_internal_transaction() const {
  7144. return transaction_.GetNoArena();
  7145. }
  7146. inline void CommitRequest::_internal_set_transaction(const std::string& value) {
  7147. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7148. }
  7149. inline void CommitRequest::set_transaction(std::string&& value) {
  7150. transaction_.SetNoArena(
  7151. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7152. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CommitRequest.transaction)
  7153. }
  7154. inline void CommitRequest::set_transaction(const char* value) {
  7155. GOOGLE_DCHECK(value != nullptr);
  7156. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7157. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CommitRequest.transaction)
  7158. }
  7159. inline void CommitRequest::set_transaction(const void* value, size_t size) {
  7160. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7161. ::std::string(reinterpret_cast<const char*>(value), size));
  7162. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CommitRequest.transaction)
  7163. }
  7164. inline std::string* CommitRequest::_internal_mutable_transaction() {
  7165. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7166. }
  7167. inline std::string* CommitRequest::release_transaction() {
  7168. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.transaction)
  7169. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7170. }
  7171. inline void CommitRequest::set_allocated_transaction(std::string* transaction) {
  7172. if (transaction != nullptr) {
  7173. } else {
  7174. }
  7175. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7176. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.transaction)
  7177. }
  7178. // -------------------------------------------------------------------
  7179. // CommitResponse
  7180. // repeated .google.firestore.v1.WriteResult write_results = 1;
  7181. inline int CommitResponse::_internal_write_results_size() const {
  7182. return write_results_.size();
  7183. }
  7184. inline int CommitResponse::write_results_size() const {
  7185. return _internal_write_results_size();
  7186. }
  7187. inline ::google::firestore::v1::WriteResult* CommitResponse::mutable_write_results(int index) {
  7188. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.write_results)
  7189. return write_results_.Mutable(index);
  7190. }
  7191. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  7192. CommitResponse::mutable_write_results() {
  7193. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitResponse.write_results)
  7194. return &write_results_;
  7195. }
  7196. inline const ::google::firestore::v1::WriteResult& CommitResponse::_internal_write_results(int index) const {
  7197. return write_results_.Get(index);
  7198. }
  7199. inline const ::google::firestore::v1::WriteResult& CommitResponse::write_results(int index) const {
  7200. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.write_results)
  7201. return _internal_write_results(index);
  7202. }
  7203. inline ::google::firestore::v1::WriteResult* CommitResponse::_internal_add_write_results() {
  7204. return write_results_.Add();
  7205. }
  7206. inline ::google::firestore::v1::WriteResult* CommitResponse::add_write_results() {
  7207. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitResponse.write_results)
  7208. return _internal_add_write_results();
  7209. }
  7210. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  7211. CommitResponse::write_results() const {
  7212. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitResponse.write_results)
  7213. return write_results_;
  7214. }
  7215. // .google.protobuf.Timestamp commit_time = 2;
  7216. inline bool CommitResponse::_internal_has_commit_time() const {
  7217. return this != internal_default_instance() && commit_time_ != nullptr;
  7218. }
  7219. inline bool CommitResponse::has_commit_time() const {
  7220. return _internal_has_commit_time();
  7221. }
  7222. inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommitResponse::_internal_commit_time() const {
  7223. const PROTOBUF_NAMESPACE_ID::Timestamp* p = commit_time_;
  7224. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  7225. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7226. }
  7227. inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommitResponse::commit_time() const {
  7228. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.commit_time)
  7229. return _internal_commit_time();
  7230. }
  7231. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::release_commit_time() {
  7232. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitResponse.commit_time)
  7233. PROTOBUF_NAMESPACE_ID::Timestamp* temp = commit_time_;
  7234. commit_time_ = nullptr;
  7235. return temp;
  7236. }
  7237. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::_internal_mutable_commit_time() {
  7238. if (commit_time_ == nullptr) {
  7239. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  7240. commit_time_ = p;
  7241. }
  7242. return commit_time_;
  7243. }
  7244. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::mutable_commit_time() {
  7245. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.commit_time)
  7246. return _internal_mutable_commit_time();
  7247. }
  7248. inline void CommitResponse::set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time) {
  7249. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7250. if (message_arena == nullptr) {
  7251. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time_);
  7252. }
  7253. if (commit_time) {
  7254. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7255. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time)->GetArena();
  7256. if (message_arena != submessage_arena) {
  7257. commit_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7258. message_arena, commit_time, submessage_arena);
  7259. }
  7260. } else {
  7261. }
  7262. commit_time_ = commit_time;
  7263. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitResponse.commit_time)
  7264. }
  7265. // -------------------------------------------------------------------
  7266. // RollbackRequest
  7267. // string database = 1;
  7268. inline void RollbackRequest::clear_database() {
  7269. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7270. }
  7271. inline const std::string& RollbackRequest::database() const {
  7272. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.database)
  7273. return _internal_database();
  7274. }
  7275. inline void RollbackRequest::set_database(const std::string& value) {
  7276. _internal_set_database(value);
  7277. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.database)
  7278. }
  7279. inline std::string* RollbackRequest::mutable_database() {
  7280. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.database)
  7281. return _internal_mutable_database();
  7282. }
  7283. inline const std::string& RollbackRequest::_internal_database() const {
  7284. return database_.GetNoArena();
  7285. }
  7286. inline void RollbackRequest::_internal_set_database(const std::string& value) {
  7287. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7288. }
  7289. inline void RollbackRequest::set_database(std::string&& value) {
  7290. database_.SetNoArena(
  7291. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7292. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RollbackRequest.database)
  7293. }
  7294. inline void RollbackRequest::set_database(const char* value) {
  7295. GOOGLE_DCHECK(value != nullptr);
  7296. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7297. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RollbackRequest.database)
  7298. }
  7299. inline void RollbackRequest::set_database(const char* value, size_t size) {
  7300. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7301. ::std::string(reinterpret_cast<const char*>(value), size));
  7302. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RollbackRequest.database)
  7303. }
  7304. inline std::string* RollbackRequest::_internal_mutable_database() {
  7305. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7306. }
  7307. inline std::string* RollbackRequest::release_database() {
  7308. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.database)
  7309. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7310. }
  7311. inline void RollbackRequest::set_allocated_database(std::string* database) {
  7312. if (database != nullptr) {
  7313. } else {
  7314. }
  7315. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  7316. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.database)
  7317. }
  7318. // bytes transaction = 2;
  7319. inline void RollbackRequest::clear_transaction() {
  7320. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7321. }
  7322. inline const std::string& RollbackRequest::transaction() const {
  7323. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.transaction)
  7324. return _internal_transaction();
  7325. }
  7326. inline void RollbackRequest::set_transaction(const std::string& value) {
  7327. _internal_set_transaction(value);
  7328. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.transaction)
  7329. }
  7330. inline std::string* RollbackRequest::mutable_transaction() {
  7331. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.transaction)
  7332. return _internal_mutable_transaction();
  7333. }
  7334. inline const std::string& RollbackRequest::_internal_transaction() const {
  7335. return transaction_.GetNoArena();
  7336. }
  7337. inline void RollbackRequest::_internal_set_transaction(const std::string& value) {
  7338. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7339. }
  7340. inline void RollbackRequest::set_transaction(std::string&& value) {
  7341. transaction_.SetNoArena(
  7342. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7343. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RollbackRequest.transaction)
  7344. }
  7345. inline void RollbackRequest::set_transaction(const char* value) {
  7346. GOOGLE_DCHECK(value != nullptr);
  7347. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7348. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RollbackRequest.transaction)
  7349. }
  7350. inline void RollbackRequest::set_transaction(const void* value, size_t size) {
  7351. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7352. ::std::string(reinterpret_cast<const char*>(value), size));
  7353. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RollbackRequest.transaction)
  7354. }
  7355. inline std::string* RollbackRequest::_internal_mutable_transaction() {
  7356. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7357. }
  7358. inline std::string* RollbackRequest::release_transaction() {
  7359. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.transaction)
  7360. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7361. }
  7362. inline void RollbackRequest::set_allocated_transaction(std::string* transaction) {
  7363. if (transaction != nullptr) {
  7364. } else {
  7365. }
  7366. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7367. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.transaction)
  7368. }
  7369. // -------------------------------------------------------------------
  7370. // RunQueryRequest
  7371. // string parent = 1;
  7372. inline void RunQueryRequest::clear_parent() {
  7373. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7374. }
  7375. inline const std::string& RunQueryRequest::parent() const {
  7376. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.parent)
  7377. return _internal_parent();
  7378. }
  7379. inline void RunQueryRequest::set_parent(const std::string& value) {
  7380. _internal_set_parent(value);
  7381. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.parent)
  7382. }
  7383. inline std::string* RunQueryRequest::mutable_parent() {
  7384. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.parent)
  7385. return _internal_mutable_parent();
  7386. }
  7387. inline const std::string& RunQueryRequest::_internal_parent() const {
  7388. return parent_.GetNoArena();
  7389. }
  7390. inline void RunQueryRequest::_internal_set_parent(const std::string& value) {
  7391. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7392. }
  7393. inline void RunQueryRequest::set_parent(std::string&& value) {
  7394. parent_.SetNoArena(
  7395. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7396. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryRequest.parent)
  7397. }
  7398. inline void RunQueryRequest::set_parent(const char* value) {
  7399. GOOGLE_DCHECK(value != nullptr);
  7400. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7401. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryRequest.parent)
  7402. }
  7403. inline void RunQueryRequest::set_parent(const char* value, size_t size) {
  7404. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7405. ::std::string(reinterpret_cast<const char*>(value), size));
  7406. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryRequest.parent)
  7407. }
  7408. inline std::string* RunQueryRequest::_internal_mutable_parent() {
  7409. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7410. }
  7411. inline std::string* RunQueryRequest::release_parent() {
  7412. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.parent)
  7413. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7414. }
  7415. inline void RunQueryRequest::set_allocated_parent(std::string* parent) {
  7416. if (parent != nullptr) {
  7417. } else {
  7418. }
  7419. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  7420. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.parent)
  7421. }
  7422. // .google.firestore.v1.StructuredQuery structured_query = 2;
  7423. inline bool RunQueryRequest::_internal_has_structured_query() const {
  7424. return query_type_case() == kStructuredQuery;
  7425. }
  7426. inline bool RunQueryRequest::has_structured_query() const {
  7427. return _internal_has_structured_query();
  7428. }
  7429. inline void RunQueryRequest::set_has_structured_query() {
  7430. _oneof_case_[0] = kStructuredQuery;
  7431. }
  7432. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::release_structured_query() {
  7433. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.structured_query)
  7434. if (_internal_has_structured_query()) {
  7435. clear_has_query_type();
  7436. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  7437. query_type_.structured_query_ = nullptr;
  7438. return temp;
  7439. } else {
  7440. return nullptr;
  7441. }
  7442. }
  7443. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::_internal_structured_query() const {
  7444. return _internal_has_structured_query()
  7445. ? *query_type_.structured_query_
  7446. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  7447. }
  7448. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::structured_query() const {
  7449. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.structured_query)
  7450. return _internal_structured_query();
  7451. }
  7452. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::_internal_mutable_structured_query() {
  7453. if (!_internal_has_structured_query()) {
  7454. clear_query_type();
  7455. set_has_structured_query();
  7456. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  7457. GetArenaNoVirtual());
  7458. }
  7459. return query_type_.structured_query_;
  7460. }
  7461. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::mutable_structured_query() {
  7462. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.structured_query)
  7463. return _internal_mutable_structured_query();
  7464. }
  7465. // bytes transaction = 5;
  7466. inline bool RunQueryRequest::_internal_has_transaction() const {
  7467. return consistency_selector_case() == kTransaction;
  7468. }
  7469. inline void RunQueryRequest::set_has_transaction() {
  7470. _oneof_case_[1] = kTransaction;
  7471. }
  7472. inline void RunQueryRequest::clear_transaction() {
  7473. if (_internal_has_transaction()) {
  7474. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7475. clear_has_consistency_selector();
  7476. }
  7477. }
  7478. inline const std::string& RunQueryRequest::transaction() const {
  7479. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.transaction)
  7480. return _internal_transaction();
  7481. }
  7482. inline void RunQueryRequest::set_transaction(const std::string& value) {
  7483. _internal_set_transaction(value);
  7484. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  7485. }
  7486. inline std::string* RunQueryRequest::mutable_transaction() {
  7487. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.transaction)
  7488. return _internal_mutable_transaction();
  7489. }
  7490. inline const std::string& RunQueryRequest::_internal_transaction() const {
  7491. if (_internal_has_transaction()) {
  7492. return consistency_selector_.transaction_.GetNoArena();
  7493. }
  7494. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  7495. }
  7496. inline void RunQueryRequest::_internal_set_transaction(const std::string& value) {
  7497. if (!_internal_has_transaction()) {
  7498. clear_consistency_selector();
  7499. set_has_transaction();
  7500. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7501. }
  7502. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7503. }
  7504. inline void RunQueryRequest::set_transaction(std::string&& value) {
  7505. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  7506. if (!_internal_has_transaction()) {
  7507. clear_consistency_selector();
  7508. set_has_transaction();
  7509. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7510. }
  7511. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7512. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryRequest.transaction)
  7513. }
  7514. inline void RunQueryRequest::set_transaction(const char* value) {
  7515. GOOGLE_DCHECK(value != nullptr);
  7516. if (!_internal_has_transaction()) {
  7517. clear_consistency_selector();
  7518. set_has_transaction();
  7519. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7520. }
  7521. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7522. ::std::string(value));
  7523. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryRequest.transaction)
  7524. }
  7525. inline void RunQueryRequest::set_transaction(const void* value, size_t size) {
  7526. if (!_internal_has_transaction()) {
  7527. clear_consistency_selector();
  7528. set_has_transaction();
  7529. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7530. }
  7531. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7532. reinterpret_cast<const char*>(value), size));
  7533. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryRequest.transaction)
  7534. }
  7535. inline std::string* RunQueryRequest::_internal_mutable_transaction() {
  7536. if (!_internal_has_transaction()) {
  7537. clear_consistency_selector();
  7538. set_has_transaction();
  7539. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7540. }
  7541. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7542. }
  7543. inline std::string* RunQueryRequest::release_transaction() {
  7544. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.transaction)
  7545. if (_internal_has_transaction()) {
  7546. clear_has_consistency_selector();
  7547. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7548. } else {
  7549. return nullptr;
  7550. }
  7551. }
  7552. inline void RunQueryRequest::set_allocated_transaction(std::string* transaction) {
  7553. if (has_consistency_selector()) {
  7554. clear_consistency_selector();
  7555. }
  7556. if (transaction != nullptr) {
  7557. set_has_transaction();
  7558. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  7559. }
  7560. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.transaction)
  7561. }
  7562. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  7563. inline bool RunQueryRequest::_internal_has_new_transaction() const {
  7564. return consistency_selector_case() == kNewTransaction;
  7565. }
  7566. inline bool RunQueryRequest::has_new_transaction() const {
  7567. return _internal_has_new_transaction();
  7568. }
  7569. inline void RunQueryRequest::set_has_new_transaction() {
  7570. _oneof_case_[1] = kNewTransaction;
  7571. }
  7572. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::release_new_transaction() {
  7573. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.new_transaction)
  7574. if (_internal_has_new_transaction()) {
  7575. clear_has_consistency_selector();
  7576. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  7577. consistency_selector_.new_transaction_ = nullptr;
  7578. return temp;
  7579. } else {
  7580. return nullptr;
  7581. }
  7582. }
  7583. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::_internal_new_transaction() const {
  7584. return _internal_has_new_transaction()
  7585. ? *consistency_selector_.new_transaction_
  7586. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  7587. }
  7588. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::new_transaction() const {
  7589. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.new_transaction)
  7590. return _internal_new_transaction();
  7591. }
  7592. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::_internal_mutable_new_transaction() {
  7593. if (!_internal_has_new_transaction()) {
  7594. clear_consistency_selector();
  7595. set_has_new_transaction();
  7596. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  7597. GetArenaNoVirtual());
  7598. }
  7599. return consistency_selector_.new_transaction_;
  7600. }
  7601. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::mutable_new_transaction() {
  7602. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.new_transaction)
  7603. return _internal_mutable_new_transaction();
  7604. }
  7605. // .google.protobuf.Timestamp read_time = 7;
  7606. inline bool RunQueryRequest::_internal_has_read_time() const {
  7607. return consistency_selector_case() == kReadTime;
  7608. }
  7609. inline bool RunQueryRequest::has_read_time() const {
  7610. return _internal_has_read_time();
  7611. }
  7612. inline void RunQueryRequest::set_has_read_time() {
  7613. _oneof_case_[1] = kReadTime;
  7614. }
  7615. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::release_read_time() {
  7616. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.read_time)
  7617. if (_internal_has_read_time()) {
  7618. clear_has_consistency_selector();
  7619. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  7620. consistency_selector_.read_time_ = nullptr;
  7621. return temp;
  7622. } else {
  7623. return nullptr;
  7624. }
  7625. }
  7626. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryRequest::_internal_read_time() const {
  7627. return _internal_has_read_time()
  7628. ? *consistency_selector_.read_time_
  7629. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7630. }
  7631. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryRequest::read_time() const {
  7632. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.read_time)
  7633. return _internal_read_time();
  7634. }
  7635. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::_internal_mutable_read_time() {
  7636. if (!_internal_has_read_time()) {
  7637. clear_consistency_selector();
  7638. set_has_read_time();
  7639. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  7640. GetArenaNoVirtual());
  7641. }
  7642. return consistency_selector_.read_time_;
  7643. }
  7644. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::mutable_read_time() {
  7645. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.read_time)
  7646. return _internal_mutable_read_time();
  7647. }
  7648. inline bool RunQueryRequest::has_query_type() const {
  7649. return query_type_case() != QUERY_TYPE_NOT_SET;
  7650. }
  7651. inline void RunQueryRequest::clear_has_query_type() {
  7652. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  7653. }
  7654. inline bool RunQueryRequest::has_consistency_selector() const {
  7655. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  7656. }
  7657. inline void RunQueryRequest::clear_has_consistency_selector() {
  7658. _oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  7659. }
  7660. inline RunQueryRequest::QueryTypeCase RunQueryRequest::query_type_case() const {
  7661. return RunQueryRequest::QueryTypeCase(_oneof_case_[0]);
  7662. }
  7663. inline RunQueryRequest::ConsistencySelectorCase RunQueryRequest::consistency_selector_case() const {
  7664. return RunQueryRequest::ConsistencySelectorCase(_oneof_case_[1]);
  7665. }
  7666. // -------------------------------------------------------------------
  7667. // RunQueryResponse
  7668. // bytes transaction = 2;
  7669. inline void RunQueryResponse::clear_transaction() {
  7670. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7671. }
  7672. inline const std::string& RunQueryResponse::transaction() const {
  7673. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.transaction)
  7674. return _internal_transaction();
  7675. }
  7676. inline void RunQueryResponse::set_transaction(const std::string& value) {
  7677. _internal_set_transaction(value);
  7678. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.transaction)
  7679. }
  7680. inline std::string* RunQueryResponse::mutable_transaction() {
  7681. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.transaction)
  7682. return _internal_mutable_transaction();
  7683. }
  7684. inline const std::string& RunQueryResponse::_internal_transaction() const {
  7685. return transaction_.GetNoArena();
  7686. }
  7687. inline void RunQueryResponse::_internal_set_transaction(const std::string& value) {
  7688. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7689. }
  7690. inline void RunQueryResponse::set_transaction(std::string&& value) {
  7691. transaction_.SetNoArena(
  7692. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7693. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryResponse.transaction)
  7694. }
  7695. inline void RunQueryResponse::set_transaction(const char* value) {
  7696. GOOGLE_DCHECK(value != nullptr);
  7697. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7698. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryResponse.transaction)
  7699. }
  7700. inline void RunQueryResponse::set_transaction(const void* value, size_t size) {
  7701. transaction_.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.RunQueryResponse.transaction)
  7704. }
  7705. inline std::string* RunQueryResponse::_internal_mutable_transaction() {
  7706. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7707. }
  7708. inline std::string* RunQueryResponse::release_transaction() {
  7709. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.transaction)
  7710. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7711. }
  7712. inline void RunQueryResponse::set_allocated_transaction(std::string* transaction) {
  7713. if (transaction != nullptr) {
  7714. } else {
  7715. }
  7716. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  7717. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.transaction)
  7718. }
  7719. // .google.firestore.v1.Document document = 1;
  7720. inline bool RunQueryResponse::_internal_has_document() const {
  7721. return this != internal_default_instance() && document_ != nullptr;
  7722. }
  7723. inline bool RunQueryResponse::has_document() const {
  7724. return _internal_has_document();
  7725. }
  7726. inline const ::google::firestore::v1::Document& RunQueryResponse::_internal_document() const {
  7727. const ::google::firestore::v1::Document* p = document_;
  7728. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  7729. &::google::firestore::v1::_Document_default_instance_);
  7730. }
  7731. inline const ::google::firestore::v1::Document& RunQueryResponse::document() const {
  7732. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.document)
  7733. return _internal_document();
  7734. }
  7735. inline ::google::firestore::v1::Document* RunQueryResponse::release_document() {
  7736. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.document)
  7737. ::google::firestore::v1::Document* temp = document_;
  7738. document_ = nullptr;
  7739. return temp;
  7740. }
  7741. inline ::google::firestore::v1::Document* RunQueryResponse::_internal_mutable_document() {
  7742. if (document_ == nullptr) {
  7743. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  7744. document_ = p;
  7745. }
  7746. return document_;
  7747. }
  7748. inline ::google::firestore::v1::Document* RunQueryResponse::mutable_document() {
  7749. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.document)
  7750. return _internal_mutable_document();
  7751. }
  7752. inline void RunQueryResponse::set_allocated_document(::google::firestore::v1::Document* document) {
  7753. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7754. if (message_arena == nullptr) {
  7755. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  7756. }
  7757. if (document) {
  7758. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  7759. if (message_arena != submessage_arena) {
  7760. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7761. message_arena, document, submessage_arena);
  7762. }
  7763. } else {
  7764. }
  7765. document_ = document;
  7766. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.document)
  7767. }
  7768. // .google.protobuf.Timestamp read_time = 3;
  7769. inline bool RunQueryResponse::_internal_has_read_time() const {
  7770. return this != internal_default_instance() && read_time_ != nullptr;
  7771. }
  7772. inline bool RunQueryResponse::has_read_time() const {
  7773. return _internal_has_read_time();
  7774. }
  7775. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryResponse::_internal_read_time() const {
  7776. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  7777. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  7778. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7779. }
  7780. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryResponse::read_time() const {
  7781. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.read_time)
  7782. return _internal_read_time();
  7783. }
  7784. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::release_read_time() {
  7785. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.read_time)
  7786. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  7787. read_time_ = nullptr;
  7788. return temp;
  7789. }
  7790. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::_internal_mutable_read_time() {
  7791. if (read_time_ == nullptr) {
  7792. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  7793. read_time_ = p;
  7794. }
  7795. return read_time_;
  7796. }
  7797. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::mutable_read_time() {
  7798. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.read_time)
  7799. return _internal_mutable_read_time();
  7800. }
  7801. inline void RunQueryResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  7802. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7803. if (message_arena == nullptr) {
  7804. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  7805. }
  7806. if (read_time) {
  7807. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7808. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  7809. if (message_arena != submessage_arena) {
  7810. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7811. message_arena, read_time, submessage_arena);
  7812. }
  7813. } else {
  7814. }
  7815. read_time_ = read_time;
  7816. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.read_time)
  7817. }
  7818. // int32 skipped_results = 4;
  7819. inline void RunQueryResponse::clear_skipped_results() {
  7820. skipped_results_ = 0;
  7821. }
  7822. inline ::PROTOBUF_NAMESPACE_ID::int32 RunQueryResponse::_internal_skipped_results() const {
  7823. return skipped_results_;
  7824. }
  7825. inline ::PROTOBUF_NAMESPACE_ID::int32 RunQueryResponse::skipped_results() const {
  7826. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.skipped_results)
  7827. return _internal_skipped_results();
  7828. }
  7829. inline void RunQueryResponse::_internal_set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7830. skipped_results_ = value;
  7831. }
  7832. inline void RunQueryResponse::set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7833. _internal_set_skipped_results(value);
  7834. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.skipped_results)
  7835. }
  7836. // -------------------------------------------------------------------
  7837. // RunAggregationQueryRequest
  7838. // string parent = 1;
  7839. inline void RunAggregationQueryRequest::clear_parent() {
  7840. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7841. }
  7842. inline const std::string& RunAggregationQueryRequest::parent() const {
  7843. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.parent)
  7844. return _internal_parent();
  7845. }
  7846. inline void RunAggregationQueryRequest::set_parent(const std::string& value) {
  7847. _internal_set_parent(value);
  7848. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryRequest.parent)
  7849. }
  7850. inline std::string* RunAggregationQueryRequest::mutable_parent() {
  7851. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.parent)
  7852. return _internal_mutable_parent();
  7853. }
  7854. inline const std::string& RunAggregationQueryRequest::_internal_parent() const {
  7855. return parent_.GetNoArena();
  7856. }
  7857. inline void RunAggregationQueryRequest::_internal_set_parent(const std::string& value) {
  7858. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7859. }
  7860. inline void RunAggregationQueryRequest::set_parent(std::string&& value) {
  7861. parent_.SetNoArena(
  7862. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7863. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunAggregationQueryRequest.parent)
  7864. }
  7865. inline void RunAggregationQueryRequest::set_parent(const char* value) {
  7866. GOOGLE_DCHECK(value != nullptr);
  7867. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7868. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunAggregationQueryRequest.parent)
  7869. }
  7870. inline void RunAggregationQueryRequest::set_parent(const char* value, size_t size) {
  7871. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7872. ::std::string(reinterpret_cast<const char*>(value), size));
  7873. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunAggregationQueryRequest.parent)
  7874. }
  7875. inline std::string* RunAggregationQueryRequest::_internal_mutable_parent() {
  7876. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7877. }
  7878. inline std::string* RunAggregationQueryRequest::release_parent() {
  7879. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.parent)
  7880. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7881. }
  7882. inline void RunAggregationQueryRequest::set_allocated_parent(std::string* parent) {
  7883. if (parent != nullptr) {
  7884. } else {
  7885. }
  7886. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  7887. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.parent)
  7888. }
  7889. // .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
  7890. inline bool RunAggregationQueryRequest::_internal_has_structured_aggregation_query() const {
  7891. return query_type_case() == kStructuredAggregationQuery;
  7892. }
  7893. inline bool RunAggregationQueryRequest::has_structured_aggregation_query() const {
  7894. return _internal_has_structured_aggregation_query();
  7895. }
  7896. inline void RunAggregationQueryRequest::set_has_structured_aggregation_query() {
  7897. _oneof_case_[0] = kStructuredAggregationQuery;
  7898. }
  7899. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::release_structured_aggregation_query() {
  7900. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  7901. if (_internal_has_structured_aggregation_query()) {
  7902. clear_has_query_type();
  7903. ::google::firestore::v1::StructuredAggregationQuery* temp = query_type_.structured_aggregation_query_;
  7904. query_type_.structured_aggregation_query_ = nullptr;
  7905. return temp;
  7906. } else {
  7907. return nullptr;
  7908. }
  7909. }
  7910. inline const ::google::firestore::v1::StructuredAggregationQuery& RunAggregationQueryRequest::_internal_structured_aggregation_query() const {
  7911. return _internal_has_structured_aggregation_query()
  7912. ? *query_type_.structured_aggregation_query_
  7913. : *reinterpret_cast< ::google::firestore::v1::StructuredAggregationQuery*>(&::google::firestore::v1::_StructuredAggregationQuery_default_instance_);
  7914. }
  7915. inline const ::google::firestore::v1::StructuredAggregationQuery& RunAggregationQueryRequest::structured_aggregation_query() const {
  7916. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  7917. return _internal_structured_aggregation_query();
  7918. }
  7919. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::_internal_mutable_structured_aggregation_query() {
  7920. if (!_internal_has_structured_aggregation_query()) {
  7921. clear_query_type();
  7922. set_has_structured_aggregation_query();
  7923. query_type_.structured_aggregation_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredAggregationQuery >(
  7924. GetArenaNoVirtual());
  7925. }
  7926. return query_type_.structured_aggregation_query_;
  7927. }
  7928. inline ::google::firestore::v1::StructuredAggregationQuery* RunAggregationQueryRequest::mutable_structured_aggregation_query() {
  7929. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.structured_aggregation_query)
  7930. return _internal_mutable_structured_aggregation_query();
  7931. }
  7932. // bytes transaction = 4;
  7933. inline bool RunAggregationQueryRequest::_internal_has_transaction() const {
  7934. return consistency_selector_case() == kTransaction;
  7935. }
  7936. inline void RunAggregationQueryRequest::set_has_transaction() {
  7937. _oneof_case_[1] = kTransaction;
  7938. }
  7939. inline void RunAggregationQueryRequest::clear_transaction() {
  7940. if (_internal_has_transaction()) {
  7941. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7942. clear_has_consistency_selector();
  7943. }
  7944. }
  7945. inline const std::string& RunAggregationQueryRequest::transaction() const {
  7946. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7947. return _internal_transaction();
  7948. }
  7949. inline void RunAggregationQueryRequest::set_transaction(const std::string& value) {
  7950. _internal_set_transaction(value);
  7951. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7952. }
  7953. inline std::string* RunAggregationQueryRequest::mutable_transaction() {
  7954. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7955. return _internal_mutable_transaction();
  7956. }
  7957. inline const std::string& RunAggregationQueryRequest::_internal_transaction() const {
  7958. if (_internal_has_transaction()) {
  7959. return consistency_selector_.transaction_.GetNoArena();
  7960. }
  7961. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  7962. }
  7963. inline void RunAggregationQueryRequest::_internal_set_transaction(const std::string& value) {
  7964. if (!_internal_has_transaction()) {
  7965. clear_consistency_selector();
  7966. set_has_transaction();
  7967. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7968. }
  7969. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7970. }
  7971. inline void RunAggregationQueryRequest::set_transaction(std::string&& value) {
  7972. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7973. if (!_internal_has_transaction()) {
  7974. clear_consistency_selector();
  7975. set_has_transaction();
  7976. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7977. }
  7978. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7979. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7980. }
  7981. inline void RunAggregationQueryRequest::set_transaction(const char* value) {
  7982. GOOGLE_DCHECK(value != nullptr);
  7983. if (!_internal_has_transaction()) {
  7984. clear_consistency_selector();
  7985. set_has_transaction();
  7986. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7987. }
  7988. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7989. ::std::string(value));
  7990. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunAggregationQueryRequest.transaction)
  7991. }
  7992. inline void RunAggregationQueryRequest::set_transaction(const void* value, size_t size) {
  7993. if (!_internal_has_transaction()) {
  7994. clear_consistency_selector();
  7995. set_has_transaction();
  7996. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7997. }
  7998. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7999. reinterpret_cast<const char*>(value), size));
  8000. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunAggregationQueryRequest.transaction)
  8001. }
  8002. inline std::string* RunAggregationQueryRequest::_internal_mutable_transaction() {
  8003. if (!_internal_has_transaction()) {
  8004. clear_consistency_selector();
  8005. set_has_transaction();
  8006. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8007. }
  8008. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8009. }
  8010. inline std::string* RunAggregationQueryRequest::release_transaction() {
  8011. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.transaction)
  8012. if (_internal_has_transaction()) {
  8013. clear_has_consistency_selector();
  8014. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8015. } else {
  8016. return nullptr;
  8017. }
  8018. }
  8019. inline void RunAggregationQueryRequest::set_allocated_transaction(std::string* transaction) {
  8020. if (has_consistency_selector()) {
  8021. clear_consistency_selector();
  8022. }
  8023. if (transaction != nullptr) {
  8024. set_has_transaction();
  8025. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  8026. }
  8027. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryRequest.transaction)
  8028. }
  8029. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  8030. inline bool RunAggregationQueryRequest::_internal_has_new_transaction() const {
  8031. return consistency_selector_case() == kNewTransaction;
  8032. }
  8033. inline bool RunAggregationQueryRequest::has_new_transaction() const {
  8034. return _internal_has_new_transaction();
  8035. }
  8036. inline void RunAggregationQueryRequest::set_has_new_transaction() {
  8037. _oneof_case_[1] = kNewTransaction;
  8038. }
  8039. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::release_new_transaction() {
  8040. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  8041. if (_internal_has_new_transaction()) {
  8042. clear_has_consistency_selector();
  8043. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  8044. consistency_selector_.new_transaction_ = nullptr;
  8045. return temp;
  8046. } else {
  8047. return nullptr;
  8048. }
  8049. }
  8050. inline const ::google::firestore::v1::TransactionOptions& RunAggregationQueryRequest::_internal_new_transaction() const {
  8051. return _internal_has_new_transaction()
  8052. ? *consistency_selector_.new_transaction_
  8053. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  8054. }
  8055. inline const ::google::firestore::v1::TransactionOptions& RunAggregationQueryRequest::new_transaction() const {
  8056. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  8057. return _internal_new_transaction();
  8058. }
  8059. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::_internal_mutable_new_transaction() {
  8060. if (!_internal_has_new_transaction()) {
  8061. clear_consistency_selector();
  8062. set_has_new_transaction();
  8063. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  8064. GetArenaNoVirtual());
  8065. }
  8066. return consistency_selector_.new_transaction_;
  8067. }
  8068. inline ::google::firestore::v1::TransactionOptions* RunAggregationQueryRequest::mutable_new_transaction() {
  8069. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.new_transaction)
  8070. return _internal_mutable_new_transaction();
  8071. }
  8072. // .google.protobuf.Timestamp read_time = 6;
  8073. inline bool RunAggregationQueryRequest::_internal_has_read_time() const {
  8074. return consistency_selector_case() == kReadTime;
  8075. }
  8076. inline bool RunAggregationQueryRequest::has_read_time() const {
  8077. return _internal_has_read_time();
  8078. }
  8079. inline void RunAggregationQueryRequest::set_has_read_time() {
  8080. _oneof_case_[1] = kReadTime;
  8081. }
  8082. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryRequest::release_read_time() {
  8083. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryRequest.read_time)
  8084. if (_internal_has_read_time()) {
  8085. clear_has_consistency_selector();
  8086. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  8087. consistency_selector_.read_time_ = nullptr;
  8088. return temp;
  8089. } else {
  8090. return nullptr;
  8091. }
  8092. }
  8093. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunAggregationQueryRequest::_internal_read_time() const {
  8094. return _internal_has_read_time()
  8095. ? *consistency_selector_.read_time_
  8096. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  8097. }
  8098. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunAggregationQueryRequest::read_time() const {
  8099. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryRequest.read_time)
  8100. return _internal_read_time();
  8101. }
  8102. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryRequest::_internal_mutable_read_time() {
  8103. if (!_internal_has_read_time()) {
  8104. clear_consistency_selector();
  8105. set_has_read_time();
  8106. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  8107. GetArenaNoVirtual());
  8108. }
  8109. return consistency_selector_.read_time_;
  8110. }
  8111. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryRequest::mutable_read_time() {
  8112. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryRequest.read_time)
  8113. return _internal_mutable_read_time();
  8114. }
  8115. inline bool RunAggregationQueryRequest::has_query_type() const {
  8116. return query_type_case() != QUERY_TYPE_NOT_SET;
  8117. }
  8118. inline void RunAggregationQueryRequest::clear_has_query_type() {
  8119. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  8120. }
  8121. inline bool RunAggregationQueryRequest::has_consistency_selector() const {
  8122. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  8123. }
  8124. inline void RunAggregationQueryRequest::clear_has_consistency_selector() {
  8125. _oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  8126. }
  8127. inline RunAggregationQueryRequest::QueryTypeCase RunAggregationQueryRequest::query_type_case() const {
  8128. return RunAggregationQueryRequest::QueryTypeCase(_oneof_case_[0]);
  8129. }
  8130. inline RunAggregationQueryRequest::ConsistencySelectorCase RunAggregationQueryRequest::consistency_selector_case() const {
  8131. return RunAggregationQueryRequest::ConsistencySelectorCase(_oneof_case_[1]);
  8132. }
  8133. // -------------------------------------------------------------------
  8134. // RunAggregationQueryResponse
  8135. // .google.firestore.v1.AggregationResult result = 1;
  8136. inline bool RunAggregationQueryResponse::_internal_has_result() const {
  8137. return this != internal_default_instance() && result_ != nullptr;
  8138. }
  8139. inline bool RunAggregationQueryResponse::has_result() const {
  8140. return _internal_has_result();
  8141. }
  8142. inline const ::google::firestore::v1::AggregationResult& RunAggregationQueryResponse::_internal_result() const {
  8143. const ::google::firestore::v1::AggregationResult* p = result_;
  8144. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::AggregationResult*>(
  8145. &::google::firestore::v1::_AggregationResult_default_instance_);
  8146. }
  8147. inline const ::google::firestore::v1::AggregationResult& RunAggregationQueryResponse::result() const {
  8148. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.result)
  8149. return _internal_result();
  8150. }
  8151. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::release_result() {
  8152. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.result)
  8153. ::google::firestore::v1::AggregationResult* temp = result_;
  8154. result_ = nullptr;
  8155. return temp;
  8156. }
  8157. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::_internal_mutable_result() {
  8158. if (result_ == nullptr) {
  8159. auto* p = CreateMaybeMessage<::google::firestore::v1::AggregationResult>(GetArenaNoVirtual());
  8160. result_ = p;
  8161. }
  8162. return result_;
  8163. }
  8164. inline ::google::firestore::v1::AggregationResult* RunAggregationQueryResponse::mutable_result() {
  8165. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.result)
  8166. return _internal_mutable_result();
  8167. }
  8168. inline void RunAggregationQueryResponse::set_allocated_result(::google::firestore::v1::AggregationResult* result) {
  8169. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8170. if (message_arena == nullptr) {
  8171. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_);
  8172. }
  8173. if (result) {
  8174. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  8175. if (message_arena != submessage_arena) {
  8176. result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8177. message_arena, result, submessage_arena);
  8178. }
  8179. } else {
  8180. }
  8181. result_ = result;
  8182. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.result)
  8183. }
  8184. // bytes transaction = 2;
  8185. inline void RunAggregationQueryResponse::clear_transaction() {
  8186. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8187. }
  8188. inline const std::string& RunAggregationQueryResponse::transaction() const {
  8189. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8190. return _internal_transaction();
  8191. }
  8192. inline void RunAggregationQueryResponse::set_transaction(const std::string& value) {
  8193. _internal_set_transaction(value);
  8194. // @@protoc_insertion_point(field_set:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8195. }
  8196. inline std::string* RunAggregationQueryResponse::mutable_transaction() {
  8197. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8198. return _internal_mutable_transaction();
  8199. }
  8200. inline const std::string& RunAggregationQueryResponse::_internal_transaction() const {
  8201. return transaction_.GetNoArena();
  8202. }
  8203. inline void RunAggregationQueryResponse::_internal_set_transaction(const std::string& value) {
  8204. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8205. }
  8206. inline void RunAggregationQueryResponse::set_transaction(std::string&& value) {
  8207. transaction_.SetNoArena(
  8208. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8209. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8210. }
  8211. inline void RunAggregationQueryResponse::set_transaction(const char* value) {
  8212. GOOGLE_DCHECK(value != nullptr);
  8213. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8214. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8215. }
  8216. inline void RunAggregationQueryResponse::set_transaction(const void* value, size_t size) {
  8217. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8218. ::std::string(reinterpret_cast<const char*>(value), size));
  8219. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8220. }
  8221. inline std::string* RunAggregationQueryResponse::_internal_mutable_transaction() {
  8222. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8223. }
  8224. inline std::string* RunAggregationQueryResponse::release_transaction() {
  8225. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8226. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8227. }
  8228. inline void RunAggregationQueryResponse::set_allocated_transaction(std::string* transaction) {
  8229. if (transaction != nullptr) {
  8230. } else {
  8231. }
  8232. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  8233. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.transaction)
  8234. }
  8235. // .google.protobuf.Timestamp read_time = 3;
  8236. inline bool RunAggregationQueryResponse::_internal_has_read_time() const {
  8237. return this != internal_default_instance() && read_time_ != nullptr;
  8238. }
  8239. inline bool RunAggregationQueryResponse::has_read_time() const {
  8240. return _internal_has_read_time();
  8241. }
  8242. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunAggregationQueryResponse::_internal_read_time() const {
  8243. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  8244. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  8245. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  8246. }
  8247. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunAggregationQueryResponse::read_time() const {
  8248. // @@protoc_insertion_point(field_get:google.firestore.v1.RunAggregationQueryResponse.read_time)
  8249. return _internal_read_time();
  8250. }
  8251. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryResponse::release_read_time() {
  8252. // @@protoc_insertion_point(field_release:google.firestore.v1.RunAggregationQueryResponse.read_time)
  8253. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  8254. read_time_ = nullptr;
  8255. return temp;
  8256. }
  8257. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryResponse::_internal_mutable_read_time() {
  8258. if (read_time_ == nullptr) {
  8259. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  8260. read_time_ = p;
  8261. }
  8262. return read_time_;
  8263. }
  8264. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunAggregationQueryResponse::mutable_read_time() {
  8265. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunAggregationQueryResponse.read_time)
  8266. return _internal_mutable_read_time();
  8267. }
  8268. inline void RunAggregationQueryResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  8269. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8270. if (message_arena == nullptr) {
  8271. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  8272. }
  8273. if (read_time) {
  8274. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8275. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  8276. if (message_arena != submessage_arena) {
  8277. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8278. message_arena, read_time, submessage_arena);
  8279. }
  8280. } else {
  8281. }
  8282. read_time_ = read_time;
  8283. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunAggregationQueryResponse.read_time)
  8284. }
  8285. // -------------------------------------------------------------------
  8286. // -------------------------------------------------------------------
  8287. // WriteRequest
  8288. // string database = 1;
  8289. inline void WriteRequest::clear_database() {
  8290. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8291. }
  8292. inline const std::string& WriteRequest::database() const {
  8293. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.database)
  8294. return _internal_database();
  8295. }
  8296. inline void WriteRequest::set_database(const std::string& value) {
  8297. _internal_set_database(value);
  8298. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.database)
  8299. }
  8300. inline std::string* WriteRequest::mutable_database() {
  8301. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.database)
  8302. return _internal_mutable_database();
  8303. }
  8304. inline const std::string& WriteRequest::_internal_database() const {
  8305. return database_.GetNoArena();
  8306. }
  8307. inline void WriteRequest::_internal_set_database(const std::string& value) {
  8308. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8309. }
  8310. inline void WriteRequest::set_database(std::string&& value) {
  8311. database_.SetNoArena(
  8312. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8313. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.database)
  8314. }
  8315. inline void WriteRequest::set_database(const char* value) {
  8316. GOOGLE_DCHECK(value != nullptr);
  8317. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8318. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.database)
  8319. }
  8320. inline void WriteRequest::set_database(const char* value, size_t size) {
  8321. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8322. ::std::string(reinterpret_cast<const char*>(value), size));
  8323. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.database)
  8324. }
  8325. inline std::string* WriteRequest::_internal_mutable_database() {
  8326. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8327. }
  8328. inline std::string* WriteRequest::release_database() {
  8329. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.database)
  8330. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8331. }
  8332. inline void WriteRequest::set_allocated_database(std::string* database) {
  8333. if (database != nullptr) {
  8334. } else {
  8335. }
  8336. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  8337. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.database)
  8338. }
  8339. // string stream_id = 2;
  8340. inline void WriteRequest::clear_stream_id() {
  8341. stream_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8342. }
  8343. inline const std::string& WriteRequest::stream_id() const {
  8344. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_id)
  8345. return _internal_stream_id();
  8346. }
  8347. inline void WriteRequest::set_stream_id(const std::string& value) {
  8348. _internal_set_stream_id(value);
  8349. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_id)
  8350. }
  8351. inline std::string* WriteRequest::mutable_stream_id() {
  8352. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_id)
  8353. return _internal_mutable_stream_id();
  8354. }
  8355. inline const std::string& WriteRequest::_internal_stream_id() const {
  8356. return stream_id_.GetNoArena();
  8357. }
  8358. inline void WriteRequest::_internal_set_stream_id(const std::string& value) {
  8359. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8360. }
  8361. inline void WriteRequest::set_stream_id(std::string&& value) {
  8362. stream_id_.SetNoArena(
  8363. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8364. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.stream_id)
  8365. }
  8366. inline void WriteRequest::set_stream_id(const char* value) {
  8367. GOOGLE_DCHECK(value != nullptr);
  8368. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8369. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.stream_id)
  8370. }
  8371. inline void WriteRequest::set_stream_id(const char* value, size_t size) {
  8372. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8373. ::std::string(reinterpret_cast<const char*>(value), size));
  8374. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.stream_id)
  8375. }
  8376. inline std::string* WriteRequest::_internal_mutable_stream_id() {
  8377. return stream_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8378. }
  8379. inline std::string* WriteRequest::release_stream_id() {
  8380. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_id)
  8381. return stream_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8382. }
  8383. inline void WriteRequest::set_allocated_stream_id(std::string* stream_id) {
  8384. if (stream_id != nullptr) {
  8385. } else {
  8386. }
  8387. stream_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_id);
  8388. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_id)
  8389. }
  8390. // repeated .google.firestore.v1.Write writes = 3;
  8391. inline int WriteRequest::_internal_writes_size() const {
  8392. return writes_.size();
  8393. }
  8394. inline int WriteRequest::writes_size() const {
  8395. return _internal_writes_size();
  8396. }
  8397. inline ::google::firestore::v1::Write* WriteRequest::mutable_writes(int index) {
  8398. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.writes)
  8399. return writes_.Mutable(index);
  8400. }
  8401. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  8402. WriteRequest::mutable_writes() {
  8403. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteRequest.writes)
  8404. return &writes_;
  8405. }
  8406. inline const ::google::firestore::v1::Write& WriteRequest::_internal_writes(int index) const {
  8407. return writes_.Get(index);
  8408. }
  8409. inline const ::google::firestore::v1::Write& WriteRequest::writes(int index) const {
  8410. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.writes)
  8411. return _internal_writes(index);
  8412. }
  8413. inline ::google::firestore::v1::Write* WriteRequest::_internal_add_writes() {
  8414. return writes_.Add();
  8415. }
  8416. inline ::google::firestore::v1::Write* WriteRequest::add_writes() {
  8417. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteRequest.writes)
  8418. return _internal_add_writes();
  8419. }
  8420. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  8421. WriteRequest::writes() const {
  8422. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteRequest.writes)
  8423. return writes_;
  8424. }
  8425. // bytes stream_token = 4;
  8426. inline void WriteRequest::clear_stream_token() {
  8427. stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8428. }
  8429. inline const std::string& WriteRequest::stream_token() const {
  8430. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_token)
  8431. return _internal_stream_token();
  8432. }
  8433. inline void WriteRequest::set_stream_token(const std::string& value) {
  8434. _internal_set_stream_token(value);
  8435. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_token)
  8436. }
  8437. inline std::string* WriteRequest::mutable_stream_token() {
  8438. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_token)
  8439. return _internal_mutable_stream_token();
  8440. }
  8441. inline const std::string& WriteRequest::_internal_stream_token() const {
  8442. return stream_token_.GetNoArena();
  8443. }
  8444. inline void WriteRequest::_internal_set_stream_token(const std::string& value) {
  8445. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8446. }
  8447. inline void WriteRequest::set_stream_token(std::string&& value) {
  8448. stream_token_.SetNoArena(
  8449. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8450. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.stream_token)
  8451. }
  8452. inline void WriteRequest::set_stream_token(const char* value) {
  8453. GOOGLE_DCHECK(value != nullptr);
  8454. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8455. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.stream_token)
  8456. }
  8457. inline void WriteRequest::set_stream_token(const void* value, size_t size) {
  8458. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8459. ::std::string(reinterpret_cast<const char*>(value), size));
  8460. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.stream_token)
  8461. }
  8462. inline std::string* WriteRequest::_internal_mutable_stream_token() {
  8463. return stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8464. }
  8465. inline std::string* WriteRequest::release_stream_token() {
  8466. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_token)
  8467. return stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8468. }
  8469. inline void WriteRequest::set_allocated_stream_token(std::string* stream_token) {
  8470. if (stream_token != nullptr) {
  8471. } else {
  8472. }
  8473. stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_token);
  8474. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_token)
  8475. }
  8476. // map<string, string> labels = 5;
  8477. inline int WriteRequest::_internal_labels_size() const {
  8478. return labels_.size();
  8479. }
  8480. inline int WriteRequest::labels_size() const {
  8481. return _internal_labels_size();
  8482. }
  8483. inline void WriteRequest::clear_labels() {
  8484. labels_.Clear();
  8485. }
  8486. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8487. WriteRequest::_internal_labels() const {
  8488. return labels_.GetMap();
  8489. }
  8490. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8491. WriteRequest::labels() const {
  8492. // @@protoc_insertion_point(field_map:google.firestore.v1.WriteRequest.labels)
  8493. return _internal_labels();
  8494. }
  8495. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8496. WriteRequest::_internal_mutable_labels() {
  8497. return labels_.MutableMap();
  8498. }
  8499. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8500. WriteRequest::mutable_labels() {
  8501. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.WriteRequest.labels)
  8502. return _internal_mutable_labels();
  8503. }
  8504. // -------------------------------------------------------------------
  8505. // WriteResponse
  8506. // string stream_id = 1;
  8507. inline void WriteResponse::clear_stream_id() {
  8508. stream_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8509. }
  8510. inline const std::string& WriteResponse::stream_id() const {
  8511. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_id)
  8512. return _internal_stream_id();
  8513. }
  8514. inline void WriteResponse::set_stream_id(const std::string& value) {
  8515. _internal_set_stream_id(value);
  8516. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_id)
  8517. }
  8518. inline std::string* WriteResponse::mutable_stream_id() {
  8519. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_id)
  8520. return _internal_mutable_stream_id();
  8521. }
  8522. inline const std::string& WriteResponse::_internal_stream_id() const {
  8523. return stream_id_.GetNoArena();
  8524. }
  8525. inline void WriteResponse::_internal_set_stream_id(const std::string& value) {
  8526. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8527. }
  8528. inline void WriteResponse::set_stream_id(std::string&& value) {
  8529. stream_id_.SetNoArena(
  8530. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8531. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteResponse.stream_id)
  8532. }
  8533. inline void WriteResponse::set_stream_id(const char* value) {
  8534. GOOGLE_DCHECK(value != nullptr);
  8535. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8536. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteResponse.stream_id)
  8537. }
  8538. inline void WriteResponse::set_stream_id(const char* value, size_t size) {
  8539. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8540. ::std::string(reinterpret_cast<const char*>(value), size));
  8541. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteResponse.stream_id)
  8542. }
  8543. inline std::string* WriteResponse::_internal_mutable_stream_id() {
  8544. return stream_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8545. }
  8546. inline std::string* WriteResponse::release_stream_id() {
  8547. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_id)
  8548. return stream_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8549. }
  8550. inline void WriteResponse::set_allocated_stream_id(std::string* stream_id) {
  8551. if (stream_id != nullptr) {
  8552. } else {
  8553. }
  8554. stream_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_id);
  8555. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_id)
  8556. }
  8557. // bytes stream_token = 2;
  8558. inline void WriteResponse::clear_stream_token() {
  8559. stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8560. }
  8561. inline const std::string& WriteResponse::stream_token() const {
  8562. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_token)
  8563. return _internal_stream_token();
  8564. }
  8565. inline void WriteResponse::set_stream_token(const std::string& value) {
  8566. _internal_set_stream_token(value);
  8567. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_token)
  8568. }
  8569. inline std::string* WriteResponse::mutable_stream_token() {
  8570. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_token)
  8571. return _internal_mutable_stream_token();
  8572. }
  8573. inline const std::string& WriteResponse::_internal_stream_token() const {
  8574. return stream_token_.GetNoArena();
  8575. }
  8576. inline void WriteResponse::_internal_set_stream_token(const std::string& value) {
  8577. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8578. }
  8579. inline void WriteResponse::set_stream_token(std::string&& value) {
  8580. stream_token_.SetNoArena(
  8581. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8582. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteResponse.stream_token)
  8583. }
  8584. inline void WriteResponse::set_stream_token(const char* value) {
  8585. GOOGLE_DCHECK(value != nullptr);
  8586. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8587. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteResponse.stream_token)
  8588. }
  8589. inline void WriteResponse::set_stream_token(const void* value, size_t size) {
  8590. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8591. ::std::string(reinterpret_cast<const char*>(value), size));
  8592. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteResponse.stream_token)
  8593. }
  8594. inline std::string* WriteResponse::_internal_mutable_stream_token() {
  8595. return stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8596. }
  8597. inline std::string* WriteResponse::release_stream_token() {
  8598. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_token)
  8599. return stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8600. }
  8601. inline void WriteResponse::set_allocated_stream_token(std::string* stream_token) {
  8602. if (stream_token != nullptr) {
  8603. } else {
  8604. }
  8605. stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_token);
  8606. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_token)
  8607. }
  8608. // repeated .google.firestore.v1.WriteResult write_results = 3;
  8609. inline int WriteResponse::_internal_write_results_size() const {
  8610. return write_results_.size();
  8611. }
  8612. inline int WriteResponse::write_results_size() const {
  8613. return _internal_write_results_size();
  8614. }
  8615. inline ::google::firestore::v1::WriteResult* WriteResponse::mutable_write_results(int index) {
  8616. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.write_results)
  8617. return write_results_.Mutable(index);
  8618. }
  8619. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  8620. WriteResponse::mutable_write_results() {
  8621. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteResponse.write_results)
  8622. return &write_results_;
  8623. }
  8624. inline const ::google::firestore::v1::WriteResult& WriteResponse::_internal_write_results(int index) const {
  8625. return write_results_.Get(index);
  8626. }
  8627. inline const ::google::firestore::v1::WriteResult& WriteResponse::write_results(int index) const {
  8628. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.write_results)
  8629. return _internal_write_results(index);
  8630. }
  8631. inline ::google::firestore::v1::WriteResult* WriteResponse::_internal_add_write_results() {
  8632. return write_results_.Add();
  8633. }
  8634. inline ::google::firestore::v1::WriteResult* WriteResponse::add_write_results() {
  8635. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteResponse.write_results)
  8636. return _internal_add_write_results();
  8637. }
  8638. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  8639. WriteResponse::write_results() const {
  8640. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteResponse.write_results)
  8641. return write_results_;
  8642. }
  8643. // .google.protobuf.Timestamp commit_time = 4;
  8644. inline bool WriteResponse::_internal_has_commit_time() const {
  8645. return this != internal_default_instance() && commit_time_ != nullptr;
  8646. }
  8647. inline bool WriteResponse::has_commit_time() const {
  8648. return _internal_has_commit_time();
  8649. }
  8650. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResponse::_internal_commit_time() const {
  8651. const PROTOBUF_NAMESPACE_ID::Timestamp* p = commit_time_;
  8652. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  8653. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  8654. }
  8655. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResponse::commit_time() const {
  8656. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.commit_time)
  8657. return _internal_commit_time();
  8658. }
  8659. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::release_commit_time() {
  8660. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.commit_time)
  8661. PROTOBUF_NAMESPACE_ID::Timestamp* temp = commit_time_;
  8662. commit_time_ = nullptr;
  8663. return temp;
  8664. }
  8665. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::_internal_mutable_commit_time() {
  8666. if (commit_time_ == nullptr) {
  8667. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  8668. commit_time_ = p;
  8669. }
  8670. return commit_time_;
  8671. }
  8672. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::mutable_commit_time() {
  8673. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.commit_time)
  8674. return _internal_mutable_commit_time();
  8675. }
  8676. inline void WriteResponse::set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time) {
  8677. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8678. if (message_arena == nullptr) {
  8679. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time_);
  8680. }
  8681. if (commit_time) {
  8682. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8683. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time)->GetArena();
  8684. if (message_arena != submessage_arena) {
  8685. commit_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8686. message_arena, commit_time, submessage_arena);
  8687. }
  8688. } else {
  8689. }
  8690. commit_time_ = commit_time;
  8691. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.commit_time)
  8692. }
  8693. // -------------------------------------------------------------------
  8694. // -------------------------------------------------------------------
  8695. // ListenRequest
  8696. // string database = 1;
  8697. inline void ListenRequest::clear_database() {
  8698. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8699. }
  8700. inline const std::string& ListenRequest::database() const {
  8701. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.database)
  8702. return _internal_database();
  8703. }
  8704. inline void ListenRequest::set_database(const std::string& value) {
  8705. _internal_set_database(value);
  8706. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.database)
  8707. }
  8708. inline std::string* ListenRequest::mutable_database() {
  8709. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.database)
  8710. return _internal_mutable_database();
  8711. }
  8712. inline const std::string& ListenRequest::_internal_database() const {
  8713. return database_.GetNoArena();
  8714. }
  8715. inline void ListenRequest::_internal_set_database(const std::string& value) {
  8716. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  8717. }
  8718. inline void ListenRequest::set_database(std::string&& value) {
  8719. database_.SetNoArena(
  8720. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  8721. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListenRequest.database)
  8722. }
  8723. inline void ListenRequest::set_database(const char* value) {
  8724. GOOGLE_DCHECK(value != nullptr);
  8725. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8726. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListenRequest.database)
  8727. }
  8728. inline void ListenRequest::set_database(const char* value, size_t size) {
  8729. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8730. ::std::string(reinterpret_cast<const char*>(value), size));
  8731. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListenRequest.database)
  8732. }
  8733. inline std::string* ListenRequest::_internal_mutable_database() {
  8734. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8735. }
  8736. inline std::string* ListenRequest::release_database() {
  8737. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.database)
  8738. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8739. }
  8740. inline void ListenRequest::set_allocated_database(std::string* database) {
  8741. if (database != nullptr) {
  8742. } else {
  8743. }
  8744. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  8745. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenRequest.database)
  8746. }
  8747. // .google.firestore.v1.Target add_target = 2;
  8748. inline bool ListenRequest::_internal_has_add_target() const {
  8749. return target_change_case() == kAddTarget;
  8750. }
  8751. inline bool ListenRequest::has_add_target() const {
  8752. return _internal_has_add_target();
  8753. }
  8754. inline void ListenRequest::set_has_add_target() {
  8755. _oneof_case_[0] = kAddTarget;
  8756. }
  8757. inline void ListenRequest::clear_add_target() {
  8758. if (_internal_has_add_target()) {
  8759. delete target_change_.add_target_;
  8760. clear_has_target_change();
  8761. }
  8762. }
  8763. inline ::google::firestore::v1::Target* ListenRequest::release_add_target() {
  8764. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.add_target)
  8765. if (_internal_has_add_target()) {
  8766. clear_has_target_change();
  8767. ::google::firestore::v1::Target* temp = target_change_.add_target_;
  8768. target_change_.add_target_ = nullptr;
  8769. return temp;
  8770. } else {
  8771. return nullptr;
  8772. }
  8773. }
  8774. inline const ::google::firestore::v1::Target& ListenRequest::_internal_add_target() const {
  8775. return _internal_has_add_target()
  8776. ? *target_change_.add_target_
  8777. : *reinterpret_cast< ::google::firestore::v1::Target*>(&::google::firestore::v1::_Target_default_instance_);
  8778. }
  8779. inline const ::google::firestore::v1::Target& ListenRequest::add_target() const {
  8780. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.add_target)
  8781. return _internal_add_target();
  8782. }
  8783. inline ::google::firestore::v1::Target* ListenRequest::_internal_mutable_add_target() {
  8784. if (!_internal_has_add_target()) {
  8785. clear_target_change();
  8786. set_has_add_target();
  8787. target_change_.add_target_ = CreateMaybeMessage< ::google::firestore::v1::Target >(
  8788. GetArenaNoVirtual());
  8789. }
  8790. return target_change_.add_target_;
  8791. }
  8792. inline ::google::firestore::v1::Target* ListenRequest::mutable_add_target() {
  8793. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.add_target)
  8794. return _internal_mutable_add_target();
  8795. }
  8796. // int32 remove_target = 3;
  8797. inline bool ListenRequest::_internal_has_remove_target() const {
  8798. return target_change_case() == kRemoveTarget;
  8799. }
  8800. inline void ListenRequest::set_has_remove_target() {
  8801. _oneof_case_[0] = kRemoveTarget;
  8802. }
  8803. inline void ListenRequest::clear_remove_target() {
  8804. if (_internal_has_remove_target()) {
  8805. target_change_.remove_target_ = 0;
  8806. clear_has_target_change();
  8807. }
  8808. }
  8809. inline ::PROTOBUF_NAMESPACE_ID::int32 ListenRequest::_internal_remove_target() const {
  8810. if (_internal_has_remove_target()) {
  8811. return target_change_.remove_target_;
  8812. }
  8813. return 0;
  8814. }
  8815. inline void ListenRequest::_internal_set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8816. if (!_internal_has_remove_target()) {
  8817. clear_target_change();
  8818. set_has_remove_target();
  8819. }
  8820. target_change_.remove_target_ = value;
  8821. }
  8822. inline ::PROTOBUF_NAMESPACE_ID::int32 ListenRequest::remove_target() const {
  8823. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.remove_target)
  8824. return _internal_remove_target();
  8825. }
  8826. inline void ListenRequest::set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8827. _internal_set_remove_target(value);
  8828. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.remove_target)
  8829. }
  8830. // map<string, string> labels = 4;
  8831. inline int ListenRequest::_internal_labels_size() const {
  8832. return labels_.size();
  8833. }
  8834. inline int ListenRequest::labels_size() const {
  8835. return _internal_labels_size();
  8836. }
  8837. inline void ListenRequest::clear_labels() {
  8838. labels_.Clear();
  8839. }
  8840. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8841. ListenRequest::_internal_labels() const {
  8842. return labels_.GetMap();
  8843. }
  8844. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  8845. ListenRequest::labels() const {
  8846. // @@protoc_insertion_point(field_map:google.firestore.v1.ListenRequest.labels)
  8847. return _internal_labels();
  8848. }
  8849. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8850. ListenRequest::_internal_mutable_labels() {
  8851. return labels_.MutableMap();
  8852. }
  8853. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  8854. ListenRequest::mutable_labels() {
  8855. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.ListenRequest.labels)
  8856. return _internal_mutable_labels();
  8857. }
  8858. inline bool ListenRequest::has_target_change() const {
  8859. return target_change_case() != TARGET_CHANGE_NOT_SET;
  8860. }
  8861. inline void ListenRequest::clear_has_target_change() {
  8862. _oneof_case_[0] = TARGET_CHANGE_NOT_SET;
  8863. }
  8864. inline ListenRequest::TargetChangeCase ListenRequest::target_change_case() const {
  8865. return ListenRequest::TargetChangeCase(_oneof_case_[0]);
  8866. }
  8867. // -------------------------------------------------------------------
  8868. // ListenResponse
  8869. // .google.firestore.v1.TargetChange target_change = 2;
  8870. inline bool ListenResponse::_internal_has_target_change() const {
  8871. return response_type_case() == kTargetChange;
  8872. }
  8873. inline bool ListenResponse::has_target_change() const {
  8874. return _internal_has_target_change();
  8875. }
  8876. inline void ListenResponse::set_has_target_change() {
  8877. _oneof_case_[0] = kTargetChange;
  8878. }
  8879. inline void ListenResponse::clear_target_change() {
  8880. if (_internal_has_target_change()) {
  8881. delete response_type_.target_change_;
  8882. clear_has_response_type();
  8883. }
  8884. }
  8885. inline ::google::firestore::v1::TargetChange* ListenResponse::release_target_change() {
  8886. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.target_change)
  8887. if (_internal_has_target_change()) {
  8888. clear_has_response_type();
  8889. ::google::firestore::v1::TargetChange* temp = response_type_.target_change_;
  8890. response_type_.target_change_ = nullptr;
  8891. return temp;
  8892. } else {
  8893. return nullptr;
  8894. }
  8895. }
  8896. inline const ::google::firestore::v1::TargetChange& ListenResponse::_internal_target_change() const {
  8897. return _internal_has_target_change()
  8898. ? *response_type_.target_change_
  8899. : *reinterpret_cast< ::google::firestore::v1::TargetChange*>(&::google::firestore::v1::_TargetChange_default_instance_);
  8900. }
  8901. inline const ::google::firestore::v1::TargetChange& ListenResponse::target_change() const {
  8902. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.target_change)
  8903. return _internal_target_change();
  8904. }
  8905. inline ::google::firestore::v1::TargetChange* ListenResponse::_internal_mutable_target_change() {
  8906. if (!_internal_has_target_change()) {
  8907. clear_response_type();
  8908. set_has_target_change();
  8909. response_type_.target_change_ = CreateMaybeMessage< ::google::firestore::v1::TargetChange >(
  8910. GetArenaNoVirtual());
  8911. }
  8912. return response_type_.target_change_;
  8913. }
  8914. inline ::google::firestore::v1::TargetChange* ListenResponse::mutable_target_change() {
  8915. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.target_change)
  8916. return _internal_mutable_target_change();
  8917. }
  8918. // .google.firestore.v1.DocumentChange document_change = 3;
  8919. inline bool ListenResponse::_internal_has_document_change() const {
  8920. return response_type_case() == kDocumentChange;
  8921. }
  8922. inline bool ListenResponse::has_document_change() const {
  8923. return _internal_has_document_change();
  8924. }
  8925. inline void ListenResponse::set_has_document_change() {
  8926. _oneof_case_[0] = kDocumentChange;
  8927. }
  8928. inline ::google::firestore::v1::DocumentChange* ListenResponse::release_document_change() {
  8929. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_change)
  8930. if (_internal_has_document_change()) {
  8931. clear_has_response_type();
  8932. ::google::firestore::v1::DocumentChange* temp = response_type_.document_change_;
  8933. response_type_.document_change_ = nullptr;
  8934. return temp;
  8935. } else {
  8936. return nullptr;
  8937. }
  8938. }
  8939. inline const ::google::firestore::v1::DocumentChange& ListenResponse::_internal_document_change() const {
  8940. return _internal_has_document_change()
  8941. ? *response_type_.document_change_
  8942. : *reinterpret_cast< ::google::firestore::v1::DocumentChange*>(&::google::firestore::v1::_DocumentChange_default_instance_);
  8943. }
  8944. inline const ::google::firestore::v1::DocumentChange& ListenResponse::document_change() const {
  8945. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_change)
  8946. return _internal_document_change();
  8947. }
  8948. inline ::google::firestore::v1::DocumentChange* ListenResponse::_internal_mutable_document_change() {
  8949. if (!_internal_has_document_change()) {
  8950. clear_response_type();
  8951. set_has_document_change();
  8952. response_type_.document_change_ = CreateMaybeMessage< ::google::firestore::v1::DocumentChange >(
  8953. GetArenaNoVirtual());
  8954. }
  8955. return response_type_.document_change_;
  8956. }
  8957. inline ::google::firestore::v1::DocumentChange* ListenResponse::mutable_document_change() {
  8958. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_change)
  8959. return _internal_mutable_document_change();
  8960. }
  8961. // .google.firestore.v1.DocumentDelete document_delete = 4;
  8962. inline bool ListenResponse::_internal_has_document_delete() const {
  8963. return response_type_case() == kDocumentDelete;
  8964. }
  8965. inline bool ListenResponse::has_document_delete() const {
  8966. return _internal_has_document_delete();
  8967. }
  8968. inline void ListenResponse::set_has_document_delete() {
  8969. _oneof_case_[0] = kDocumentDelete;
  8970. }
  8971. inline ::google::firestore::v1::DocumentDelete* ListenResponse::release_document_delete() {
  8972. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_delete)
  8973. if (_internal_has_document_delete()) {
  8974. clear_has_response_type();
  8975. ::google::firestore::v1::DocumentDelete* temp = response_type_.document_delete_;
  8976. response_type_.document_delete_ = nullptr;
  8977. return temp;
  8978. } else {
  8979. return nullptr;
  8980. }
  8981. }
  8982. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::_internal_document_delete() const {
  8983. return _internal_has_document_delete()
  8984. ? *response_type_.document_delete_
  8985. : *reinterpret_cast< ::google::firestore::v1::DocumentDelete*>(&::google::firestore::v1::_DocumentDelete_default_instance_);
  8986. }
  8987. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::document_delete() const {
  8988. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_delete)
  8989. return _internal_document_delete();
  8990. }
  8991. inline ::google::firestore::v1::DocumentDelete* ListenResponse::_internal_mutable_document_delete() {
  8992. if (!_internal_has_document_delete()) {
  8993. clear_response_type();
  8994. set_has_document_delete();
  8995. response_type_.document_delete_ = CreateMaybeMessage< ::google::firestore::v1::DocumentDelete >(
  8996. GetArenaNoVirtual());
  8997. }
  8998. return response_type_.document_delete_;
  8999. }
  9000. inline ::google::firestore::v1::DocumentDelete* ListenResponse::mutable_document_delete() {
  9001. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_delete)
  9002. return _internal_mutable_document_delete();
  9003. }
  9004. // .google.firestore.v1.DocumentRemove document_remove = 6;
  9005. inline bool ListenResponse::_internal_has_document_remove() const {
  9006. return response_type_case() == kDocumentRemove;
  9007. }
  9008. inline bool ListenResponse::has_document_remove() const {
  9009. return _internal_has_document_remove();
  9010. }
  9011. inline void ListenResponse::set_has_document_remove() {
  9012. _oneof_case_[0] = kDocumentRemove;
  9013. }
  9014. inline ::google::firestore::v1::DocumentRemove* ListenResponse::release_document_remove() {
  9015. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_remove)
  9016. if (_internal_has_document_remove()) {
  9017. clear_has_response_type();
  9018. ::google::firestore::v1::DocumentRemove* temp = response_type_.document_remove_;
  9019. response_type_.document_remove_ = nullptr;
  9020. return temp;
  9021. } else {
  9022. return nullptr;
  9023. }
  9024. }
  9025. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::_internal_document_remove() const {
  9026. return _internal_has_document_remove()
  9027. ? *response_type_.document_remove_
  9028. : *reinterpret_cast< ::google::firestore::v1::DocumentRemove*>(&::google::firestore::v1::_DocumentRemove_default_instance_);
  9029. }
  9030. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::document_remove() const {
  9031. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_remove)
  9032. return _internal_document_remove();
  9033. }
  9034. inline ::google::firestore::v1::DocumentRemove* ListenResponse::_internal_mutable_document_remove() {
  9035. if (!_internal_has_document_remove()) {
  9036. clear_response_type();
  9037. set_has_document_remove();
  9038. response_type_.document_remove_ = CreateMaybeMessage< ::google::firestore::v1::DocumentRemove >(
  9039. GetArenaNoVirtual());
  9040. }
  9041. return response_type_.document_remove_;
  9042. }
  9043. inline ::google::firestore::v1::DocumentRemove* ListenResponse::mutable_document_remove() {
  9044. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_remove)
  9045. return _internal_mutable_document_remove();
  9046. }
  9047. // .google.firestore.v1.ExistenceFilter filter = 5;
  9048. inline bool ListenResponse::_internal_has_filter() const {
  9049. return response_type_case() == kFilter;
  9050. }
  9051. inline bool ListenResponse::has_filter() const {
  9052. return _internal_has_filter();
  9053. }
  9054. inline void ListenResponse::set_has_filter() {
  9055. _oneof_case_[0] = kFilter;
  9056. }
  9057. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::release_filter() {
  9058. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.filter)
  9059. if (_internal_has_filter()) {
  9060. clear_has_response_type();
  9061. ::google::firestore::v1::ExistenceFilter* temp = response_type_.filter_;
  9062. response_type_.filter_ = nullptr;
  9063. return temp;
  9064. } else {
  9065. return nullptr;
  9066. }
  9067. }
  9068. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::_internal_filter() const {
  9069. return _internal_has_filter()
  9070. ? *response_type_.filter_
  9071. : *reinterpret_cast< ::google::firestore::v1::ExistenceFilter*>(&::google::firestore::v1::_ExistenceFilter_default_instance_);
  9072. }
  9073. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::filter() const {
  9074. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.filter)
  9075. return _internal_filter();
  9076. }
  9077. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::_internal_mutable_filter() {
  9078. if (!_internal_has_filter()) {
  9079. clear_response_type();
  9080. set_has_filter();
  9081. response_type_.filter_ = CreateMaybeMessage< ::google::firestore::v1::ExistenceFilter >(
  9082. GetArenaNoVirtual());
  9083. }
  9084. return response_type_.filter_;
  9085. }
  9086. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::mutable_filter() {
  9087. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.filter)
  9088. return _internal_mutable_filter();
  9089. }
  9090. inline bool ListenResponse::has_response_type() const {
  9091. return response_type_case() != RESPONSE_TYPE_NOT_SET;
  9092. }
  9093. inline void ListenResponse::clear_has_response_type() {
  9094. _oneof_case_[0] = RESPONSE_TYPE_NOT_SET;
  9095. }
  9096. inline ListenResponse::ResponseTypeCase ListenResponse::response_type_case() const {
  9097. return ListenResponse::ResponseTypeCase(_oneof_case_[0]);
  9098. }
  9099. // -------------------------------------------------------------------
  9100. // Target_DocumentsTarget
  9101. // repeated string documents = 2;
  9102. inline int Target_DocumentsTarget::_internal_documents_size() const {
  9103. return documents_.size();
  9104. }
  9105. inline int Target_DocumentsTarget::documents_size() const {
  9106. return _internal_documents_size();
  9107. }
  9108. inline void Target_DocumentsTarget::clear_documents() {
  9109. documents_.Clear();
  9110. }
  9111. inline std::string* Target_DocumentsTarget::add_documents() {
  9112. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  9113. return _internal_add_documents();
  9114. }
  9115. inline const std::string& Target_DocumentsTarget::_internal_documents(int index) const {
  9116. return documents_.Get(index);
  9117. }
  9118. inline const std::string& Target_DocumentsTarget::documents(int index) const {
  9119. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.DocumentsTarget.documents)
  9120. return _internal_documents(index);
  9121. }
  9122. inline std::string* Target_DocumentsTarget::mutable_documents(int index) {
  9123. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  9124. return documents_.Mutable(index);
  9125. }
  9126. inline void Target_DocumentsTarget::set_documents(int index, const std::string& value) {
  9127. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  9128. documents_.Mutable(index)->assign(value);
  9129. }
  9130. inline void Target_DocumentsTarget::set_documents(int index, std::string&& value) {
  9131. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  9132. documents_.Mutable(index)->assign(std::move(value));
  9133. }
  9134. inline void Target_DocumentsTarget::set_documents(int index, const char* value) {
  9135. GOOGLE_DCHECK(value != nullptr);
  9136. documents_.Mutable(index)->assign(value);
  9137. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.DocumentsTarget.documents)
  9138. }
  9139. inline void Target_DocumentsTarget::set_documents(int index, const char* value, size_t size) {
  9140. documents_.Mutable(index)->assign(
  9141. reinterpret_cast<const char*>(value), size);
  9142. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  9143. }
  9144. inline std::string* Target_DocumentsTarget::_internal_add_documents() {
  9145. return documents_.Add();
  9146. }
  9147. inline void Target_DocumentsTarget::add_documents(const std::string& value) {
  9148. documents_.Add()->assign(value);
  9149. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  9150. }
  9151. inline void Target_DocumentsTarget::add_documents(std::string&& value) {
  9152. documents_.Add(std::move(value));
  9153. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  9154. }
  9155. inline void Target_DocumentsTarget::add_documents(const char* value) {
  9156. GOOGLE_DCHECK(value != nullptr);
  9157. documents_.Add()->assign(value);
  9158. // @@protoc_insertion_point(field_add_char:google.firestore.v1.Target.DocumentsTarget.documents)
  9159. }
  9160. inline void Target_DocumentsTarget::add_documents(const char* value, size_t size) {
  9161. documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9162. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  9163. }
  9164. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9165. Target_DocumentsTarget::documents() const {
  9166. // @@protoc_insertion_point(field_list:google.firestore.v1.Target.DocumentsTarget.documents)
  9167. return documents_;
  9168. }
  9169. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9170. Target_DocumentsTarget::mutable_documents() {
  9171. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Target.DocumentsTarget.documents)
  9172. return &documents_;
  9173. }
  9174. // -------------------------------------------------------------------
  9175. // Target_QueryTarget
  9176. // string parent = 1;
  9177. inline void Target_QueryTarget::clear_parent() {
  9178. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9179. }
  9180. inline const std::string& Target_QueryTarget::parent() const {
  9181. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.parent)
  9182. return _internal_parent();
  9183. }
  9184. inline void Target_QueryTarget::set_parent(const std::string& value) {
  9185. _internal_set_parent(value);
  9186. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.QueryTarget.parent)
  9187. }
  9188. inline std::string* Target_QueryTarget::mutable_parent() {
  9189. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.parent)
  9190. return _internal_mutable_parent();
  9191. }
  9192. inline const std::string& Target_QueryTarget::_internal_parent() const {
  9193. return parent_.GetNoArena();
  9194. }
  9195. inline void Target_QueryTarget::_internal_set_parent(const std::string& value) {
  9196. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9197. }
  9198. inline void Target_QueryTarget::set_parent(std::string&& value) {
  9199. parent_.SetNoArena(
  9200. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9201. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Target.QueryTarget.parent)
  9202. }
  9203. inline void Target_QueryTarget::set_parent(const char* value) {
  9204. GOOGLE_DCHECK(value != nullptr);
  9205. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9206. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.QueryTarget.parent)
  9207. }
  9208. inline void Target_QueryTarget::set_parent(const char* value, size_t size) {
  9209. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9210. ::std::string(reinterpret_cast<const char*>(value), size));
  9211. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.QueryTarget.parent)
  9212. }
  9213. inline std::string* Target_QueryTarget::_internal_mutable_parent() {
  9214. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9215. }
  9216. inline std::string* Target_QueryTarget::release_parent() {
  9217. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.parent)
  9218. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9219. }
  9220. inline void Target_QueryTarget::set_allocated_parent(std::string* parent) {
  9221. if (parent != nullptr) {
  9222. } else {
  9223. }
  9224. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  9225. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.QueryTarget.parent)
  9226. }
  9227. // .google.firestore.v1.StructuredQuery structured_query = 2;
  9228. inline bool Target_QueryTarget::_internal_has_structured_query() const {
  9229. return query_type_case() == kStructuredQuery;
  9230. }
  9231. inline bool Target_QueryTarget::has_structured_query() const {
  9232. return _internal_has_structured_query();
  9233. }
  9234. inline void Target_QueryTarget::set_has_structured_query() {
  9235. _oneof_case_[0] = kStructuredQuery;
  9236. }
  9237. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::release_structured_query() {
  9238. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.structured_query)
  9239. if (_internal_has_structured_query()) {
  9240. clear_has_query_type();
  9241. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  9242. query_type_.structured_query_ = nullptr;
  9243. return temp;
  9244. } else {
  9245. return nullptr;
  9246. }
  9247. }
  9248. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::_internal_structured_query() const {
  9249. return _internal_has_structured_query()
  9250. ? *query_type_.structured_query_
  9251. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  9252. }
  9253. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::structured_query() const {
  9254. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.structured_query)
  9255. return _internal_structured_query();
  9256. }
  9257. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::_internal_mutable_structured_query() {
  9258. if (!_internal_has_structured_query()) {
  9259. clear_query_type();
  9260. set_has_structured_query();
  9261. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  9262. GetArenaNoVirtual());
  9263. }
  9264. return query_type_.structured_query_;
  9265. }
  9266. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::mutable_structured_query() {
  9267. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.structured_query)
  9268. return _internal_mutable_structured_query();
  9269. }
  9270. inline bool Target_QueryTarget::has_query_type() const {
  9271. return query_type_case() != QUERY_TYPE_NOT_SET;
  9272. }
  9273. inline void Target_QueryTarget::clear_has_query_type() {
  9274. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  9275. }
  9276. inline Target_QueryTarget::QueryTypeCase Target_QueryTarget::query_type_case() const {
  9277. return Target_QueryTarget::QueryTypeCase(_oneof_case_[0]);
  9278. }
  9279. // -------------------------------------------------------------------
  9280. // Target
  9281. // .google.firestore.v1.Target.QueryTarget query = 2;
  9282. inline bool Target::_internal_has_query() const {
  9283. return target_type_case() == kQuery;
  9284. }
  9285. inline bool Target::has_query() const {
  9286. return _internal_has_query();
  9287. }
  9288. inline void Target::set_has_query() {
  9289. _oneof_case_[0] = kQuery;
  9290. }
  9291. inline void Target::clear_query() {
  9292. if (_internal_has_query()) {
  9293. delete target_type_.query_;
  9294. clear_has_target_type();
  9295. }
  9296. }
  9297. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  9298. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.query)
  9299. if (_internal_has_query()) {
  9300. clear_has_target_type();
  9301. ::google::firestore::v1::Target_QueryTarget* temp = target_type_.query_;
  9302. target_type_.query_ = nullptr;
  9303. return temp;
  9304. } else {
  9305. return nullptr;
  9306. }
  9307. }
  9308. inline const ::google::firestore::v1::Target_QueryTarget& Target::_internal_query() const {
  9309. return _internal_has_query()
  9310. ? *target_type_.query_
  9311. : *reinterpret_cast< ::google::firestore::v1::Target_QueryTarget*>(&::google::firestore::v1::_Target_QueryTarget_default_instance_);
  9312. }
  9313. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const {
  9314. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.query)
  9315. return _internal_query();
  9316. }
  9317. inline ::google::firestore::v1::Target_QueryTarget* Target::_internal_mutable_query() {
  9318. if (!_internal_has_query()) {
  9319. clear_target_type();
  9320. set_has_query();
  9321. target_type_.query_ = CreateMaybeMessage< ::google::firestore::v1::Target_QueryTarget >(
  9322. GetArenaNoVirtual());
  9323. }
  9324. return target_type_.query_;
  9325. }
  9326. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() {
  9327. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.query)
  9328. return _internal_mutable_query();
  9329. }
  9330. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  9331. inline bool Target::_internal_has_documents() const {
  9332. return target_type_case() == kDocuments;
  9333. }
  9334. inline bool Target::has_documents() const {
  9335. return _internal_has_documents();
  9336. }
  9337. inline void Target::set_has_documents() {
  9338. _oneof_case_[0] = kDocuments;
  9339. }
  9340. inline void Target::clear_documents() {
  9341. if (_internal_has_documents()) {
  9342. delete target_type_.documents_;
  9343. clear_has_target_type();
  9344. }
  9345. }
  9346. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  9347. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.documents)
  9348. if (_internal_has_documents()) {
  9349. clear_has_target_type();
  9350. ::google::firestore::v1::Target_DocumentsTarget* temp = target_type_.documents_;
  9351. target_type_.documents_ = nullptr;
  9352. return temp;
  9353. } else {
  9354. return nullptr;
  9355. }
  9356. }
  9357. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::_internal_documents() const {
  9358. return _internal_has_documents()
  9359. ? *target_type_.documents_
  9360. : *reinterpret_cast< ::google::firestore::v1::Target_DocumentsTarget*>(&::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  9361. }
  9362. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const {
  9363. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.documents)
  9364. return _internal_documents();
  9365. }
  9366. inline ::google::firestore::v1::Target_DocumentsTarget* Target::_internal_mutable_documents() {
  9367. if (!_internal_has_documents()) {
  9368. clear_target_type();
  9369. set_has_documents();
  9370. target_type_.documents_ = CreateMaybeMessage< ::google::firestore::v1::Target_DocumentsTarget >(
  9371. GetArenaNoVirtual());
  9372. }
  9373. return target_type_.documents_;
  9374. }
  9375. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() {
  9376. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.documents)
  9377. return _internal_mutable_documents();
  9378. }
  9379. // bytes resume_token = 4;
  9380. inline bool Target::_internal_has_resume_token() const {
  9381. return resume_type_case() == kResumeToken;
  9382. }
  9383. inline void Target::set_has_resume_token() {
  9384. _oneof_case_[1] = kResumeToken;
  9385. }
  9386. inline void Target::clear_resume_token() {
  9387. if (_internal_has_resume_token()) {
  9388. resume_type_.resume_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9389. clear_has_resume_type();
  9390. }
  9391. }
  9392. inline const std::string& Target::resume_token() const {
  9393. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.resume_token)
  9394. return _internal_resume_token();
  9395. }
  9396. inline void Target::set_resume_token(const std::string& value) {
  9397. _internal_set_resume_token(value);
  9398. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  9399. }
  9400. inline std::string* Target::mutable_resume_token() {
  9401. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.resume_token)
  9402. return _internal_mutable_resume_token();
  9403. }
  9404. inline const std::string& Target::_internal_resume_token() const {
  9405. if (_internal_has_resume_token()) {
  9406. return resume_type_.resume_token_.GetNoArena();
  9407. }
  9408. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  9409. }
  9410. inline void Target::_internal_set_resume_token(const std::string& value) {
  9411. if (!_internal_has_resume_token()) {
  9412. clear_resume_type();
  9413. set_has_resume_token();
  9414. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9415. }
  9416. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9417. }
  9418. inline void Target::set_resume_token(std::string&& value) {
  9419. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  9420. if (!_internal_has_resume_token()) {
  9421. clear_resume_type();
  9422. set_has_resume_token();
  9423. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9424. }
  9425. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9426. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Target.resume_token)
  9427. }
  9428. inline void Target::set_resume_token(const char* value) {
  9429. GOOGLE_DCHECK(value != nullptr);
  9430. if (!_internal_has_resume_token()) {
  9431. clear_resume_type();
  9432. set_has_resume_token();
  9433. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9434. }
  9435. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9436. ::std::string(value));
  9437. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.resume_token)
  9438. }
  9439. inline void Target::set_resume_token(const void* value, size_t size) {
  9440. if (!_internal_has_resume_token()) {
  9441. clear_resume_type();
  9442. set_has_resume_token();
  9443. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9444. }
  9445. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9446. reinterpret_cast<const char*>(value), size));
  9447. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.resume_token)
  9448. }
  9449. inline std::string* Target::_internal_mutable_resume_token() {
  9450. if (!_internal_has_resume_token()) {
  9451. clear_resume_type();
  9452. set_has_resume_token();
  9453. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9454. }
  9455. return resume_type_.resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9456. }
  9457. inline std::string* Target::release_resume_token() {
  9458. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.resume_token)
  9459. if (_internal_has_resume_token()) {
  9460. clear_has_resume_type();
  9461. return resume_type_.resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9462. } else {
  9463. return nullptr;
  9464. }
  9465. }
  9466. inline void Target::set_allocated_resume_token(std::string* resume_token) {
  9467. if (has_resume_type()) {
  9468. clear_resume_type();
  9469. }
  9470. if (resume_token != nullptr) {
  9471. set_has_resume_token();
  9472. resume_type_.resume_token_.UnsafeSetDefault(resume_token);
  9473. }
  9474. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.resume_token)
  9475. }
  9476. // .google.protobuf.Timestamp read_time = 11;
  9477. inline bool Target::_internal_has_read_time() const {
  9478. return resume_type_case() == kReadTime;
  9479. }
  9480. inline bool Target::has_read_time() const {
  9481. return _internal_has_read_time();
  9482. }
  9483. inline void Target::set_has_read_time() {
  9484. _oneof_case_[1] = kReadTime;
  9485. }
  9486. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_read_time() {
  9487. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.read_time)
  9488. if (_internal_has_read_time()) {
  9489. clear_has_resume_type();
  9490. PROTOBUF_NAMESPACE_ID::Timestamp* temp = resume_type_.read_time_;
  9491. resume_type_.read_time_ = nullptr;
  9492. return temp;
  9493. } else {
  9494. return nullptr;
  9495. }
  9496. }
  9497. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::_internal_read_time() const {
  9498. return _internal_has_read_time()
  9499. ? *resume_type_.read_time_
  9500. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  9501. }
  9502. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::read_time() const {
  9503. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.read_time)
  9504. return _internal_read_time();
  9505. }
  9506. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::_internal_mutable_read_time() {
  9507. if (!_internal_has_read_time()) {
  9508. clear_resume_type();
  9509. set_has_read_time();
  9510. resume_type_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  9511. GetArenaNoVirtual());
  9512. }
  9513. return resume_type_.read_time_;
  9514. }
  9515. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_read_time() {
  9516. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.read_time)
  9517. return _internal_mutable_read_time();
  9518. }
  9519. // int32 target_id = 5;
  9520. inline void Target::clear_target_id() {
  9521. target_id_ = 0;
  9522. }
  9523. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::_internal_target_id() const {
  9524. return target_id_;
  9525. }
  9526. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::target_id() const {
  9527. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.target_id)
  9528. return _internal_target_id();
  9529. }
  9530. inline void Target::_internal_set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9531. target_id_ = value;
  9532. }
  9533. inline void Target::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9534. _internal_set_target_id(value);
  9535. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.target_id)
  9536. }
  9537. // bool once = 6;
  9538. inline void Target::clear_once() {
  9539. once_ = false;
  9540. }
  9541. inline bool Target::_internal_once() const {
  9542. return once_;
  9543. }
  9544. inline bool Target::once() const {
  9545. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.once)
  9546. return _internal_once();
  9547. }
  9548. inline void Target::_internal_set_once(bool value) {
  9549. once_ = value;
  9550. }
  9551. inline void Target::set_once(bool value) {
  9552. _internal_set_once(value);
  9553. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.once)
  9554. }
  9555. // .google.protobuf.Int32Value expected_count = 12;
  9556. inline bool Target::_internal_has_expected_count() const {
  9557. return this != internal_default_instance() && expected_count_ != nullptr;
  9558. }
  9559. inline bool Target::has_expected_count() const {
  9560. return _internal_has_expected_count();
  9561. }
  9562. inline const PROTOBUF_NAMESPACE_ID::Int32Value& Target::_internal_expected_count() const {
  9563. const PROTOBUF_NAMESPACE_ID::Int32Value* p = expected_count_;
  9564. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Int32Value*>(
  9565. &PROTOBUF_NAMESPACE_ID::_Int32Value_default_instance_);
  9566. }
  9567. inline const PROTOBUF_NAMESPACE_ID::Int32Value& Target::expected_count() const {
  9568. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.expected_count)
  9569. return _internal_expected_count();
  9570. }
  9571. inline PROTOBUF_NAMESPACE_ID::Int32Value* Target::release_expected_count() {
  9572. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.expected_count)
  9573. PROTOBUF_NAMESPACE_ID::Int32Value* temp = expected_count_;
  9574. expected_count_ = nullptr;
  9575. return temp;
  9576. }
  9577. inline PROTOBUF_NAMESPACE_ID::Int32Value* Target::_internal_mutable_expected_count() {
  9578. if (expected_count_ == nullptr) {
  9579. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Int32Value>(GetArenaNoVirtual());
  9580. expected_count_ = p;
  9581. }
  9582. return expected_count_;
  9583. }
  9584. inline PROTOBUF_NAMESPACE_ID::Int32Value* Target::mutable_expected_count() {
  9585. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.expected_count)
  9586. return _internal_mutable_expected_count();
  9587. }
  9588. inline void Target::set_allocated_expected_count(PROTOBUF_NAMESPACE_ID::Int32Value* expected_count) {
  9589. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9590. if (message_arena == nullptr) {
  9591. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(expected_count_);
  9592. }
  9593. if (expected_count) {
  9594. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9595. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expected_count)->GetArena();
  9596. if (message_arena != submessage_arena) {
  9597. expected_count = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9598. message_arena, expected_count, submessage_arena);
  9599. }
  9600. } else {
  9601. }
  9602. expected_count_ = expected_count;
  9603. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.expected_count)
  9604. }
  9605. inline bool Target::has_target_type() const {
  9606. return target_type_case() != TARGET_TYPE_NOT_SET;
  9607. }
  9608. inline void Target::clear_has_target_type() {
  9609. _oneof_case_[0] = TARGET_TYPE_NOT_SET;
  9610. }
  9611. inline bool Target::has_resume_type() const {
  9612. return resume_type_case() != RESUME_TYPE_NOT_SET;
  9613. }
  9614. inline void Target::clear_has_resume_type() {
  9615. _oneof_case_[1] = RESUME_TYPE_NOT_SET;
  9616. }
  9617. inline Target::TargetTypeCase Target::target_type_case() const {
  9618. return Target::TargetTypeCase(_oneof_case_[0]);
  9619. }
  9620. inline Target::ResumeTypeCase Target::resume_type_case() const {
  9621. return Target::ResumeTypeCase(_oneof_case_[1]);
  9622. }
  9623. // -------------------------------------------------------------------
  9624. // TargetChange
  9625. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  9626. inline void TargetChange::clear_target_change_type() {
  9627. target_change_type_ = 0;
  9628. }
  9629. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::_internal_target_change_type() const {
  9630. return static_cast< ::google::firestore::v1::TargetChange_TargetChangeType >(target_change_type_);
  9631. }
  9632. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::target_change_type() const {
  9633. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_change_type)
  9634. return _internal_target_change_type();
  9635. }
  9636. inline void TargetChange::_internal_set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  9637. target_change_type_ = value;
  9638. }
  9639. inline void TargetChange::set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  9640. _internal_set_target_change_type(value);
  9641. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_change_type)
  9642. }
  9643. // repeated int32 target_ids = 2;
  9644. inline int TargetChange::_internal_target_ids_size() const {
  9645. return target_ids_.size();
  9646. }
  9647. inline int TargetChange::target_ids_size() const {
  9648. return _internal_target_ids_size();
  9649. }
  9650. inline void TargetChange::clear_target_ids() {
  9651. target_ids_.Clear();
  9652. }
  9653. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetChange::_internal_target_ids(int index) const {
  9654. return target_ids_.Get(index);
  9655. }
  9656. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetChange::target_ids(int index) const {
  9657. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_ids)
  9658. return _internal_target_ids(index);
  9659. }
  9660. inline void TargetChange::set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  9661. target_ids_.Set(index, value);
  9662. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_ids)
  9663. }
  9664. inline void TargetChange::_internal_add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9665. target_ids_.Add(value);
  9666. }
  9667. inline void TargetChange::add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9668. _internal_add_target_ids(value);
  9669. // @@protoc_insertion_point(field_add:google.firestore.v1.TargetChange.target_ids)
  9670. }
  9671. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  9672. TargetChange::_internal_target_ids() const {
  9673. return target_ids_;
  9674. }
  9675. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  9676. TargetChange::target_ids() const {
  9677. // @@protoc_insertion_point(field_list:google.firestore.v1.TargetChange.target_ids)
  9678. return _internal_target_ids();
  9679. }
  9680. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  9681. TargetChange::_internal_mutable_target_ids() {
  9682. return &target_ids_;
  9683. }
  9684. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  9685. TargetChange::mutable_target_ids() {
  9686. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.TargetChange.target_ids)
  9687. return _internal_mutable_target_ids();
  9688. }
  9689. // .google.rpc.Status cause = 3;
  9690. inline bool TargetChange::_internal_has_cause() const {
  9691. return this != internal_default_instance() && cause_ != nullptr;
  9692. }
  9693. inline bool TargetChange::has_cause() const {
  9694. return _internal_has_cause();
  9695. }
  9696. inline const ::google::rpc::Status& TargetChange::_internal_cause() const {
  9697. const ::google::rpc::Status* p = cause_;
  9698. return p != nullptr ? *p : *reinterpret_cast<const ::google::rpc::Status*>(
  9699. &::google::rpc::_Status_default_instance_);
  9700. }
  9701. inline const ::google::rpc::Status& TargetChange::cause() const {
  9702. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.cause)
  9703. return _internal_cause();
  9704. }
  9705. inline ::google::rpc::Status* TargetChange::release_cause() {
  9706. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.cause)
  9707. ::google::rpc::Status* temp = cause_;
  9708. cause_ = nullptr;
  9709. return temp;
  9710. }
  9711. inline ::google::rpc::Status* TargetChange::_internal_mutable_cause() {
  9712. if (cause_ == nullptr) {
  9713. auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArenaNoVirtual());
  9714. cause_ = p;
  9715. }
  9716. return cause_;
  9717. }
  9718. inline ::google::rpc::Status* TargetChange::mutable_cause() {
  9719. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.cause)
  9720. return _internal_mutable_cause();
  9721. }
  9722. inline void TargetChange::set_allocated_cause(::google::rpc::Status* cause) {
  9723. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9724. if (message_arena == nullptr) {
  9725. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cause_);
  9726. }
  9727. if (cause) {
  9728. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  9729. if (message_arena != submessage_arena) {
  9730. cause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9731. message_arena, cause, submessage_arena);
  9732. }
  9733. } else {
  9734. }
  9735. cause_ = cause;
  9736. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.cause)
  9737. }
  9738. // bytes resume_token = 4;
  9739. inline void TargetChange::clear_resume_token() {
  9740. resume_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9741. }
  9742. inline const std::string& TargetChange::resume_token() const {
  9743. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.resume_token)
  9744. return _internal_resume_token();
  9745. }
  9746. inline void TargetChange::set_resume_token(const std::string& value) {
  9747. _internal_set_resume_token(value);
  9748. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.resume_token)
  9749. }
  9750. inline std::string* TargetChange::mutable_resume_token() {
  9751. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.resume_token)
  9752. return _internal_mutable_resume_token();
  9753. }
  9754. inline const std::string& TargetChange::_internal_resume_token() const {
  9755. return resume_token_.GetNoArena();
  9756. }
  9757. inline void TargetChange::_internal_set_resume_token(const std::string& value) {
  9758. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9759. }
  9760. inline void TargetChange::set_resume_token(std::string&& value) {
  9761. resume_token_.SetNoArena(
  9762. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9763. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.TargetChange.resume_token)
  9764. }
  9765. inline void TargetChange::set_resume_token(const char* value) {
  9766. GOOGLE_DCHECK(value != nullptr);
  9767. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9768. // @@protoc_insertion_point(field_set_char:google.firestore.v1.TargetChange.resume_token)
  9769. }
  9770. inline void TargetChange::set_resume_token(const void* value, size_t size) {
  9771. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9772. ::std::string(reinterpret_cast<const char*>(value), size));
  9773. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.TargetChange.resume_token)
  9774. }
  9775. inline std::string* TargetChange::_internal_mutable_resume_token() {
  9776. return resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9777. }
  9778. inline std::string* TargetChange::release_resume_token() {
  9779. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.resume_token)
  9780. return resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9781. }
  9782. inline void TargetChange::set_allocated_resume_token(std::string* resume_token) {
  9783. if (resume_token != nullptr) {
  9784. } else {
  9785. }
  9786. resume_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resume_token);
  9787. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.resume_token)
  9788. }
  9789. // .google.protobuf.Timestamp read_time = 6;
  9790. inline bool TargetChange::_internal_has_read_time() const {
  9791. return this != internal_default_instance() && read_time_ != nullptr;
  9792. }
  9793. inline bool TargetChange::has_read_time() const {
  9794. return _internal_has_read_time();
  9795. }
  9796. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetChange::_internal_read_time() const {
  9797. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  9798. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  9799. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  9800. }
  9801. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetChange::read_time() const {
  9802. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.read_time)
  9803. return _internal_read_time();
  9804. }
  9805. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::release_read_time() {
  9806. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.read_time)
  9807. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  9808. read_time_ = nullptr;
  9809. return temp;
  9810. }
  9811. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::_internal_mutable_read_time() {
  9812. if (read_time_ == nullptr) {
  9813. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  9814. read_time_ = p;
  9815. }
  9816. return read_time_;
  9817. }
  9818. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::mutable_read_time() {
  9819. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.read_time)
  9820. return _internal_mutable_read_time();
  9821. }
  9822. inline void TargetChange::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  9823. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9824. if (message_arena == nullptr) {
  9825. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  9826. }
  9827. if (read_time) {
  9828. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9829. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  9830. if (message_arena != submessage_arena) {
  9831. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9832. message_arena, read_time, submessage_arena);
  9833. }
  9834. } else {
  9835. }
  9836. read_time_ = read_time;
  9837. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.read_time)
  9838. }
  9839. // -------------------------------------------------------------------
  9840. // ListCollectionIdsRequest
  9841. // string parent = 1;
  9842. inline void ListCollectionIdsRequest::clear_parent() {
  9843. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9844. }
  9845. inline const std::string& ListCollectionIdsRequest::parent() const {
  9846. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.parent)
  9847. return _internal_parent();
  9848. }
  9849. inline void ListCollectionIdsRequest::set_parent(const std::string& value) {
  9850. _internal_set_parent(value);
  9851. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.parent)
  9852. }
  9853. inline std::string* ListCollectionIdsRequest::mutable_parent() {
  9854. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.parent)
  9855. return _internal_mutable_parent();
  9856. }
  9857. inline const std::string& ListCollectionIdsRequest::_internal_parent() const {
  9858. return parent_.GetNoArena();
  9859. }
  9860. inline void ListCollectionIdsRequest::_internal_set_parent(const std::string& value) {
  9861. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9862. }
  9863. inline void ListCollectionIdsRequest::set_parent(std::string&& value) {
  9864. parent_.SetNoArena(
  9865. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9866. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsRequest.parent)
  9867. }
  9868. inline void ListCollectionIdsRequest::set_parent(const char* value) {
  9869. GOOGLE_DCHECK(value != nullptr);
  9870. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9871. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsRequest.parent)
  9872. }
  9873. inline void ListCollectionIdsRequest::set_parent(const char* value, size_t size) {
  9874. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9875. ::std::string(reinterpret_cast<const char*>(value), size));
  9876. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsRequest.parent)
  9877. }
  9878. inline std::string* ListCollectionIdsRequest::_internal_mutable_parent() {
  9879. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9880. }
  9881. inline std::string* ListCollectionIdsRequest::release_parent() {
  9882. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.parent)
  9883. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9884. }
  9885. inline void ListCollectionIdsRequest::set_allocated_parent(std::string* parent) {
  9886. if (parent != nullptr) {
  9887. } else {
  9888. }
  9889. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  9890. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.parent)
  9891. }
  9892. // int32 page_size = 2;
  9893. inline void ListCollectionIdsRequest::clear_page_size() {
  9894. page_size_ = 0;
  9895. }
  9896. inline ::PROTOBUF_NAMESPACE_ID::int32 ListCollectionIdsRequest::_internal_page_size() const {
  9897. return page_size_;
  9898. }
  9899. inline ::PROTOBUF_NAMESPACE_ID::int32 ListCollectionIdsRequest::page_size() const {
  9900. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_size)
  9901. return _internal_page_size();
  9902. }
  9903. inline void ListCollectionIdsRequest::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9904. page_size_ = value;
  9905. }
  9906. inline void ListCollectionIdsRequest::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9907. _internal_set_page_size(value);
  9908. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_size)
  9909. }
  9910. // string page_token = 3;
  9911. inline void ListCollectionIdsRequest::clear_page_token() {
  9912. page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9913. }
  9914. inline const std::string& ListCollectionIdsRequest::page_token() const {
  9915. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9916. return _internal_page_token();
  9917. }
  9918. inline void ListCollectionIdsRequest::set_page_token(const std::string& value) {
  9919. _internal_set_page_token(value);
  9920. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9921. }
  9922. inline std::string* ListCollectionIdsRequest::mutable_page_token() {
  9923. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9924. return _internal_mutable_page_token();
  9925. }
  9926. inline const std::string& ListCollectionIdsRequest::_internal_page_token() const {
  9927. return page_token_.GetNoArena();
  9928. }
  9929. inline void ListCollectionIdsRequest::_internal_set_page_token(const std::string& value) {
  9930. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  9931. }
  9932. inline void ListCollectionIdsRequest::set_page_token(std::string&& value) {
  9933. page_token_.SetNoArena(
  9934. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9935. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9936. }
  9937. inline void ListCollectionIdsRequest::set_page_token(const char* value) {
  9938. GOOGLE_DCHECK(value != nullptr);
  9939. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9940. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9941. }
  9942. inline void ListCollectionIdsRequest::set_page_token(const char* value, size_t size) {
  9943. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9944. ::std::string(reinterpret_cast<const char*>(value), size));
  9945. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9946. }
  9947. inline std::string* ListCollectionIdsRequest::_internal_mutable_page_token() {
  9948. return page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9949. }
  9950. inline std::string* ListCollectionIdsRequest::release_page_token() {
  9951. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9952. return page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9953. }
  9954. inline void ListCollectionIdsRequest::set_allocated_page_token(std::string* page_token) {
  9955. if (page_token != nullptr) {
  9956. } else {
  9957. }
  9958. page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token);
  9959. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.page_token)
  9960. }
  9961. // -------------------------------------------------------------------
  9962. // ListCollectionIdsResponse
  9963. // repeated string collection_ids = 1;
  9964. inline int ListCollectionIdsResponse::_internal_collection_ids_size() const {
  9965. return collection_ids_.size();
  9966. }
  9967. inline int ListCollectionIdsResponse::collection_ids_size() const {
  9968. return _internal_collection_ids_size();
  9969. }
  9970. inline void ListCollectionIdsResponse::clear_collection_ids() {
  9971. collection_ids_.Clear();
  9972. }
  9973. inline std::string* ListCollectionIdsResponse::add_collection_ids() {
  9974. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9975. return _internal_add_collection_ids();
  9976. }
  9977. inline const std::string& ListCollectionIdsResponse::_internal_collection_ids(int index) const {
  9978. return collection_ids_.Get(index);
  9979. }
  9980. inline const std::string& ListCollectionIdsResponse::collection_ids(int index) const {
  9981. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9982. return _internal_collection_ids(index);
  9983. }
  9984. inline std::string* ListCollectionIdsResponse::mutable_collection_ids(int index) {
  9985. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9986. return collection_ids_.Mutable(index);
  9987. }
  9988. inline void ListCollectionIdsResponse::set_collection_ids(int index, const std::string& value) {
  9989. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9990. collection_ids_.Mutable(index)->assign(value);
  9991. }
  9992. inline void ListCollectionIdsResponse::set_collection_ids(int index, std::string&& value) {
  9993. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  9994. collection_ids_.Mutable(index)->assign(std::move(value));
  9995. }
  9996. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value) {
  9997. GOOGLE_DCHECK(value != nullptr);
  9998. collection_ids_.Mutable(index)->assign(value);
  9999. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  10000. }
  10001. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value, size_t size) {
  10002. collection_ids_.Mutable(index)->assign(
  10003. reinterpret_cast<const char*>(value), size);
  10004. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  10005. }
  10006. inline std::string* ListCollectionIdsResponse::_internal_add_collection_ids() {
  10007. return collection_ids_.Add();
  10008. }
  10009. inline void ListCollectionIdsResponse::add_collection_ids(const std::string& value) {
  10010. collection_ids_.Add()->assign(value);
  10011. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  10012. }
  10013. inline void ListCollectionIdsResponse::add_collection_ids(std::string&& value) {
  10014. collection_ids_.Add(std::move(value));
  10015. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  10016. }
  10017. inline void ListCollectionIdsResponse::add_collection_ids(const char* value) {
  10018. GOOGLE_DCHECK(value != nullptr);
  10019. collection_ids_.Add()->assign(value);
  10020. // @@protoc_insertion_point(field_add_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  10021. }
  10022. inline void ListCollectionIdsResponse::add_collection_ids(const char* value, size_t size) {
  10023. collection_ids_.Add()->assign(reinterpret_cast<const char*>(value), size);
  10024. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  10025. }
  10026. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  10027. ListCollectionIdsResponse::collection_ids() const {
  10028. // @@protoc_insertion_point(field_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  10029. return collection_ids_;
  10030. }
  10031. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  10032. ListCollectionIdsResponse::mutable_collection_ids() {
  10033. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  10034. return &collection_ids_;
  10035. }
  10036. // string next_page_token = 2;
  10037. inline void ListCollectionIdsResponse::clear_next_page_token() {
  10038. next_page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10039. }
  10040. inline const std::string& ListCollectionIdsResponse::next_page_token() const {
  10041. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10042. return _internal_next_page_token();
  10043. }
  10044. inline void ListCollectionIdsResponse::set_next_page_token(const std::string& value) {
  10045. _internal_set_next_page_token(value);
  10046. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10047. }
  10048. inline std::string* ListCollectionIdsResponse::mutable_next_page_token() {
  10049. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10050. return _internal_mutable_next_page_token();
  10051. }
  10052. inline const std::string& ListCollectionIdsResponse::_internal_next_page_token() const {
  10053. return next_page_token_.GetNoArena();
  10054. }
  10055. inline void ListCollectionIdsResponse::_internal_set_next_page_token(const std::string& value) {
  10056. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  10057. }
  10058. inline void ListCollectionIdsResponse::set_next_page_token(std::string&& value) {
  10059. next_page_token_.SetNoArena(
  10060. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  10061. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10062. }
  10063. inline void ListCollectionIdsResponse::set_next_page_token(const char* value) {
  10064. GOOGLE_DCHECK(value != nullptr);
  10065. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  10066. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10067. }
  10068. inline void ListCollectionIdsResponse::set_next_page_token(const char* value, size_t size) {
  10069. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10070. ::std::string(reinterpret_cast<const char*>(value), size));
  10071. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10072. }
  10073. inline std::string* ListCollectionIdsResponse::_internal_mutable_next_page_token() {
  10074. return next_page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10075. }
  10076. inline std::string* ListCollectionIdsResponse::release_next_page_token() {
  10077. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10078. return next_page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10079. }
  10080. inline void ListCollectionIdsResponse::set_allocated_next_page_token(std::string* next_page_token) {
  10081. if (next_page_token != nullptr) {
  10082. } else {
  10083. }
  10084. next_page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token);
  10085. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  10086. }
  10087. #ifdef __GNUC__
  10088. #pragma GCC diagnostic pop
  10089. #endif // __GNUC__
  10090. // -------------------------------------------------------------------
  10091. // -------------------------------------------------------------------
  10092. // -------------------------------------------------------------------
  10093. // -------------------------------------------------------------------
  10094. // -------------------------------------------------------------------
  10095. // -------------------------------------------------------------------
  10096. // -------------------------------------------------------------------
  10097. // -------------------------------------------------------------------
  10098. // -------------------------------------------------------------------
  10099. // -------------------------------------------------------------------
  10100. // -------------------------------------------------------------------
  10101. // -------------------------------------------------------------------
  10102. // -------------------------------------------------------------------
  10103. // -------------------------------------------------------------------
  10104. // -------------------------------------------------------------------
  10105. // -------------------------------------------------------------------
  10106. // -------------------------------------------------------------------
  10107. // -------------------------------------------------------------------
  10108. // -------------------------------------------------------------------
  10109. // -------------------------------------------------------------------
  10110. // -------------------------------------------------------------------
  10111. // -------------------------------------------------------------------
  10112. // -------------------------------------------------------------------
  10113. // -------------------------------------------------------------------
  10114. // -------------------------------------------------------------------
  10115. // -------------------------------------------------------------------
  10116. // -------------------------------------------------------------------
  10117. // -------------------------------------------------------------------
  10118. // @@protoc_insertion_point(namespace_scope)
  10119. } // namespace v1
  10120. } // namespace firestore
  10121. } // namespace google
  10122. PROTOBUF_NAMESPACE_OPEN
  10123. template <> struct is_proto_enum< ::google::firestore::v1::TargetChange_TargetChangeType> : ::std::true_type {};
  10124. template <>
  10125. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::TargetChange_TargetChangeType>() {
  10126. return ::google::firestore::v1::TargetChange_TargetChangeType_descriptor();
  10127. }
  10128. PROTOBUF_NAMESPACE_CLOSE
  10129. // @@protoc_insertion_point(global_scope)
  10130. #include <google/protobuf/port_undef.inc>
  10131. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto