firestore.pb.h 371 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124
  1. /*
  2. * Copyright 2018 Google
  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 < 3009000
  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 3009002 < PROTOBUF_MIN_PROTOC_VERSION
  29. #error This file was generated by an older version of protoc which is
  30. #error incompatible with your Protocol Buffer headers. Please
  31. #error regenerate this file with a newer version of protoc.
  32. #endif
  33. #include <google/protobuf/port_undef.inc>
  34. #include <google/protobuf/io/coded_stream.h>
  35. #include <google/protobuf/arena.h>
  36. #include <google/protobuf/arenastring.h>
  37. #include <google/protobuf/generated_message_table_driven.h>
  38. #include <google/protobuf/generated_message_util.h>
  39. #include <google/protobuf/inlined_string_field.h>
  40. #include <google/protobuf/metadata.h>
  41. #include <google/protobuf/generated_message_reflection.h>
  42. #include <google/protobuf/message.h>
  43. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  44. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  45. #include <google/protobuf/map.h> // IWYU pragma: export
  46. #include <google/protobuf/map_entry.h>
  47. #include <google/protobuf/map_field_inl.h>
  48. #include <google/protobuf/generated_enum_reflection.h>
  49. #include <google/protobuf/unknown_field_set.h>
  50. #include "google/api/annotations.pb.h"
  51. #include "google/firestore/v1/common.pb.h"
  52. #include "google/firestore/v1/document.pb.h"
  53. #include "google/firestore/v1/query.pb.h"
  54. #include "google/firestore/v1/write.pb.h"
  55. #include <google/protobuf/empty.pb.h>
  56. #include <google/protobuf/timestamp.pb.h>
  57. #include "google/rpc/status.pb.h"
  58. // @@protoc_insertion_point(includes)
  59. #include <google/protobuf/port_def.inc>
  60. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto
  61. PROTOBUF_NAMESPACE_OPEN
  62. namespace internal {
  63. class AnyMetadata;
  64. } // namespace internal
  65. PROTOBUF_NAMESPACE_CLOSE
  66. // Internal implementation detail -- do not use these members.
  67. struct TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto {
  68. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  69. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  70. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  71. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  72. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[27]
  73. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  74. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  75. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  76. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  77. };
  78. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto;
  79. namespace google {
  80. namespace firestore {
  81. namespace v1 {
  82. class BatchGetDocumentsRequest;
  83. class BatchGetDocumentsRequestDefaultTypeInternal;
  84. extern BatchGetDocumentsRequestDefaultTypeInternal _BatchGetDocumentsRequest_default_instance_;
  85. class BatchGetDocumentsResponse;
  86. class BatchGetDocumentsResponseDefaultTypeInternal;
  87. extern BatchGetDocumentsResponseDefaultTypeInternal _BatchGetDocumentsResponse_default_instance_;
  88. class BeginTransactionRequest;
  89. class BeginTransactionRequestDefaultTypeInternal;
  90. extern BeginTransactionRequestDefaultTypeInternal _BeginTransactionRequest_default_instance_;
  91. class BeginTransactionResponse;
  92. class BeginTransactionResponseDefaultTypeInternal;
  93. extern BeginTransactionResponseDefaultTypeInternal _BeginTransactionResponse_default_instance_;
  94. class CommitRequest;
  95. class CommitRequestDefaultTypeInternal;
  96. extern CommitRequestDefaultTypeInternal _CommitRequest_default_instance_;
  97. class CommitResponse;
  98. class CommitResponseDefaultTypeInternal;
  99. extern CommitResponseDefaultTypeInternal _CommitResponse_default_instance_;
  100. class CreateDocumentRequest;
  101. class CreateDocumentRequestDefaultTypeInternal;
  102. extern CreateDocumentRequestDefaultTypeInternal _CreateDocumentRequest_default_instance_;
  103. class DeleteDocumentRequest;
  104. class DeleteDocumentRequestDefaultTypeInternal;
  105. extern DeleteDocumentRequestDefaultTypeInternal _DeleteDocumentRequest_default_instance_;
  106. class GetDocumentRequest;
  107. class GetDocumentRequestDefaultTypeInternal;
  108. extern GetDocumentRequestDefaultTypeInternal _GetDocumentRequest_default_instance_;
  109. class ListCollectionIdsRequest;
  110. class ListCollectionIdsRequestDefaultTypeInternal;
  111. extern ListCollectionIdsRequestDefaultTypeInternal _ListCollectionIdsRequest_default_instance_;
  112. class ListCollectionIdsResponse;
  113. class ListCollectionIdsResponseDefaultTypeInternal;
  114. extern ListCollectionIdsResponseDefaultTypeInternal _ListCollectionIdsResponse_default_instance_;
  115. class ListDocumentsRequest;
  116. class ListDocumentsRequestDefaultTypeInternal;
  117. extern ListDocumentsRequestDefaultTypeInternal _ListDocumentsRequest_default_instance_;
  118. class ListDocumentsResponse;
  119. class ListDocumentsResponseDefaultTypeInternal;
  120. extern ListDocumentsResponseDefaultTypeInternal _ListDocumentsResponse_default_instance_;
  121. class ListenRequest;
  122. class ListenRequestDefaultTypeInternal;
  123. extern ListenRequestDefaultTypeInternal _ListenRequest_default_instance_;
  124. class ListenRequest_LabelsEntry_DoNotUse;
  125. class ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  126. extern ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal _ListenRequest_LabelsEntry_DoNotUse_default_instance_;
  127. class ListenResponse;
  128. class ListenResponseDefaultTypeInternal;
  129. extern ListenResponseDefaultTypeInternal _ListenResponse_default_instance_;
  130. class RollbackRequest;
  131. class RollbackRequestDefaultTypeInternal;
  132. extern RollbackRequestDefaultTypeInternal _RollbackRequest_default_instance_;
  133. class RunQueryRequest;
  134. class RunQueryRequestDefaultTypeInternal;
  135. extern RunQueryRequestDefaultTypeInternal _RunQueryRequest_default_instance_;
  136. class RunQueryResponse;
  137. class RunQueryResponseDefaultTypeInternal;
  138. extern RunQueryResponseDefaultTypeInternal _RunQueryResponse_default_instance_;
  139. class Target;
  140. class TargetDefaultTypeInternal;
  141. extern TargetDefaultTypeInternal _Target_default_instance_;
  142. class TargetChange;
  143. class TargetChangeDefaultTypeInternal;
  144. extern TargetChangeDefaultTypeInternal _TargetChange_default_instance_;
  145. class Target_DocumentsTarget;
  146. class Target_DocumentsTargetDefaultTypeInternal;
  147. extern Target_DocumentsTargetDefaultTypeInternal _Target_DocumentsTarget_default_instance_;
  148. class Target_QueryTarget;
  149. class Target_QueryTargetDefaultTypeInternal;
  150. extern Target_QueryTargetDefaultTypeInternal _Target_QueryTarget_default_instance_;
  151. class UpdateDocumentRequest;
  152. class UpdateDocumentRequestDefaultTypeInternal;
  153. extern UpdateDocumentRequestDefaultTypeInternal _UpdateDocumentRequest_default_instance_;
  154. class WriteRequest;
  155. class WriteRequestDefaultTypeInternal;
  156. extern WriteRequestDefaultTypeInternal _WriteRequest_default_instance_;
  157. class WriteRequest_LabelsEntry_DoNotUse;
  158. class WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
  159. extern WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal _WriteRequest_LabelsEntry_DoNotUse_default_instance_;
  160. class WriteResponse;
  161. class WriteResponseDefaultTypeInternal;
  162. extern WriteResponseDefaultTypeInternal _WriteResponse_default_instance_;
  163. } // namespace v1
  164. } // namespace firestore
  165. } // namespace google
  166. PROTOBUF_NAMESPACE_OPEN
  167. template<> ::google::firestore::v1::BatchGetDocumentsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::BatchGetDocumentsRequest>(Arena*);
  168. template<> ::google::firestore::v1::BatchGetDocumentsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::BatchGetDocumentsResponse>(Arena*);
  169. template<> ::google::firestore::v1::BeginTransactionRequest* Arena::CreateMaybeMessage<::google::firestore::v1::BeginTransactionRequest>(Arena*);
  170. template<> ::google::firestore::v1::BeginTransactionResponse* Arena::CreateMaybeMessage<::google::firestore::v1::BeginTransactionResponse>(Arena*);
  171. template<> ::google::firestore::v1::CommitRequest* Arena::CreateMaybeMessage<::google::firestore::v1::CommitRequest>(Arena*);
  172. template<> ::google::firestore::v1::CommitResponse* Arena::CreateMaybeMessage<::google::firestore::v1::CommitResponse>(Arena*);
  173. template<> ::google::firestore::v1::CreateDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::CreateDocumentRequest>(Arena*);
  174. template<> ::google::firestore::v1::DeleteDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::DeleteDocumentRequest>(Arena*);
  175. template<> ::google::firestore::v1::GetDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::GetDocumentRequest>(Arena*);
  176. template<> ::google::firestore::v1::ListCollectionIdsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListCollectionIdsRequest>(Arena*);
  177. template<> ::google::firestore::v1::ListCollectionIdsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListCollectionIdsResponse>(Arena*);
  178. template<> ::google::firestore::v1::ListDocumentsRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListDocumentsRequest>(Arena*);
  179. template<> ::google::firestore::v1::ListDocumentsResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListDocumentsResponse>(Arena*);
  180. template<> ::google::firestore::v1::ListenRequest* Arena::CreateMaybeMessage<::google::firestore::v1::ListenRequest>(Arena*);
  181. template<> ::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::ListenRequest_LabelsEntry_DoNotUse>(Arena*);
  182. template<> ::google::firestore::v1::ListenResponse* Arena::CreateMaybeMessage<::google::firestore::v1::ListenResponse>(Arena*);
  183. template<> ::google::firestore::v1::RollbackRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RollbackRequest>(Arena*);
  184. template<> ::google::firestore::v1::RunQueryRequest* Arena::CreateMaybeMessage<::google::firestore::v1::RunQueryRequest>(Arena*);
  185. template<> ::google::firestore::v1::RunQueryResponse* Arena::CreateMaybeMessage<::google::firestore::v1::RunQueryResponse>(Arena*);
  186. template<> ::google::firestore::v1::Target* Arena::CreateMaybeMessage<::google::firestore::v1::Target>(Arena*);
  187. template<> ::google::firestore::v1::TargetChange* Arena::CreateMaybeMessage<::google::firestore::v1::TargetChange>(Arena*);
  188. template<> ::google::firestore::v1::Target_DocumentsTarget* Arena::CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(Arena*);
  189. template<> ::google::firestore::v1::Target_QueryTarget* Arena::CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(Arena*);
  190. template<> ::google::firestore::v1::UpdateDocumentRequest* Arena::CreateMaybeMessage<::google::firestore::v1::UpdateDocumentRequest>(Arena*);
  191. template<> ::google::firestore::v1::WriteRequest* Arena::CreateMaybeMessage<::google::firestore::v1::WriteRequest>(Arena*);
  192. template<> ::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::WriteRequest_LabelsEntry_DoNotUse>(Arena*);
  193. template<> ::google::firestore::v1::WriteResponse* Arena::CreateMaybeMessage<::google::firestore::v1::WriteResponse>(Arena*);
  194. PROTOBUF_NAMESPACE_CLOSE
  195. namespace google {
  196. namespace firestore {
  197. namespace v1 {
  198. enum TargetChange_TargetChangeType : int {
  199. TargetChange_TargetChangeType_NO_CHANGE = 0,
  200. TargetChange_TargetChangeType_ADD = 1,
  201. TargetChange_TargetChangeType_REMOVE = 2,
  202. TargetChange_TargetChangeType_CURRENT = 3,
  203. TargetChange_TargetChangeType_RESET = 4,
  204. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  205. TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  206. };
  207. bool TargetChange_TargetChangeType_IsValid(int value);
  208. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MIN = TargetChange_TargetChangeType_NO_CHANGE;
  209. constexpr TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MAX = TargetChange_TargetChangeType_RESET;
  210. constexpr int TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE = TargetChange_TargetChangeType_TargetChangeType_MAX + 1;
  211. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TargetChange_TargetChangeType_descriptor();
  212. template<typename T>
  213. inline const std::string& TargetChange_TargetChangeType_Name(T enum_t_value) {
  214. static_assert(::std::is_same<T, TargetChange_TargetChangeType>::value ||
  215. ::std::is_integral<T>::value,
  216. "Incorrect type passed to function TargetChange_TargetChangeType_Name.");
  217. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  218. TargetChange_TargetChangeType_descriptor(), enum_t_value);
  219. }
  220. inline bool TargetChange_TargetChangeType_Parse(
  221. const std::string& name, TargetChange_TargetChangeType* value) {
  222. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TargetChange_TargetChangeType>(
  223. TargetChange_TargetChangeType_descriptor(), name, value);
  224. }
  225. // ===================================================================
  226. class GetDocumentRequest :
  227. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.GetDocumentRequest) */ {
  228. public:
  229. GetDocumentRequest();
  230. virtual ~GetDocumentRequest();
  231. GetDocumentRequest(const GetDocumentRequest& from);
  232. GetDocumentRequest(GetDocumentRequest&& from) noexcept
  233. : GetDocumentRequest() {
  234. *this = ::std::move(from);
  235. }
  236. inline GetDocumentRequest& operator=(const GetDocumentRequest& from) {
  237. CopyFrom(from);
  238. return *this;
  239. }
  240. inline GetDocumentRequest& operator=(GetDocumentRequest&& from) noexcept {
  241. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  242. if (this != &from) InternalSwap(&from);
  243. } else {
  244. CopyFrom(from);
  245. }
  246. return *this;
  247. }
  248. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  249. return GetDescriptor();
  250. }
  251. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  252. return GetMetadataStatic().descriptor;
  253. }
  254. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  255. return GetMetadataStatic().reflection;
  256. }
  257. static const GetDocumentRequest& default_instance();
  258. enum ConsistencySelectorCase {
  259. kTransaction = 3,
  260. kReadTime = 5,
  261. CONSISTENCY_SELECTOR_NOT_SET = 0,
  262. };
  263. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  264. static inline const GetDocumentRequest* internal_default_instance() {
  265. return reinterpret_cast<const GetDocumentRequest*>(
  266. &_GetDocumentRequest_default_instance_);
  267. }
  268. static constexpr int kIndexInFileMessages =
  269. 0;
  270. friend void swap(GetDocumentRequest& a, GetDocumentRequest& b) {
  271. a.Swap(&b);
  272. }
  273. inline void Swap(GetDocumentRequest* other) {
  274. if (other == this) return;
  275. InternalSwap(other);
  276. }
  277. // implements Message ----------------------------------------------
  278. inline GetDocumentRequest* New() const final {
  279. return CreateMaybeMessage<GetDocumentRequest>(nullptr);
  280. }
  281. GetDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  282. return CreateMaybeMessage<GetDocumentRequest>(arena);
  283. }
  284. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  285. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  286. void CopyFrom(const GetDocumentRequest& from);
  287. void MergeFrom(const GetDocumentRequest& from);
  288. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  289. bool IsInitialized() const final;
  290. size_t ByteSizeLong() const final;
  291. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  292. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  293. #else
  294. bool MergePartialFromCodedStream(
  295. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  296. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  297. void SerializeWithCachedSizes(
  298. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  299. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  300. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  301. int GetCachedSize() const final { return _cached_size_.Get(); }
  302. private:
  303. inline void SharedCtor();
  304. inline void SharedDtor();
  305. void SetCachedSize(int size) const final;
  306. void InternalSwap(GetDocumentRequest* other);
  307. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  308. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  309. return "google.firestore.v1.GetDocumentRequest";
  310. }
  311. private:
  312. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  313. return nullptr;
  314. }
  315. inline void* MaybeArenaPtr() const {
  316. return nullptr;
  317. }
  318. public:
  319. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  320. private:
  321. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  322. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  323. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  324. }
  325. public:
  326. // nested types ----------------------------------------------------
  327. // accessors -------------------------------------------------------
  328. enum : int {
  329. kNameFieldNumber = 1,
  330. kMaskFieldNumber = 2,
  331. kTransactionFieldNumber = 3,
  332. kReadTimeFieldNumber = 5,
  333. };
  334. // string name = 1;
  335. void clear_name();
  336. const std::string& name() const;
  337. void set_name(const std::string& value);
  338. void set_name(std::string&& value);
  339. void set_name(const char* value);
  340. void set_name(const char* value, size_t size);
  341. std::string* mutable_name();
  342. std::string* release_name();
  343. void set_allocated_name(std::string* name);
  344. // .google.firestore.v1.DocumentMask mask = 2;
  345. bool has_mask() const;
  346. void clear_mask();
  347. const ::google::firestore::v1::DocumentMask& mask() const;
  348. ::google::firestore::v1::DocumentMask* release_mask();
  349. ::google::firestore::v1::DocumentMask* mutable_mask();
  350. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  351. // bytes transaction = 3;
  352. private:
  353. bool has_transaction() const;
  354. public:
  355. void clear_transaction();
  356. const std::string& transaction() const;
  357. void set_transaction(const std::string& value);
  358. void set_transaction(std::string&& value);
  359. void set_transaction(const char* value);
  360. void set_transaction(const void* value, size_t size);
  361. std::string* mutable_transaction();
  362. std::string* release_transaction();
  363. void set_allocated_transaction(std::string* transaction);
  364. // .google.protobuf.Timestamp read_time = 5;
  365. bool has_read_time() const;
  366. void clear_read_time();
  367. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  368. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  369. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  370. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  371. void clear_consistency_selector();
  372. ConsistencySelectorCase consistency_selector_case() const;
  373. // @@protoc_insertion_point(class_scope:google.firestore.v1.GetDocumentRequest)
  374. private:
  375. class _Internal;
  376. void set_has_transaction();
  377. void set_has_read_time();
  378. inline bool has_consistency_selector() const;
  379. inline void clear_has_consistency_selector();
  380. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  381. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  382. ::google::firestore::v1::DocumentMask* mask_;
  383. union ConsistencySelectorUnion {
  384. ConsistencySelectorUnion() {}
  385. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  386. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  387. } consistency_selector_;
  388. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  389. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  390. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  391. };
  392. // -------------------------------------------------------------------
  393. class ListDocumentsRequest :
  394. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsRequest) */ {
  395. public:
  396. ListDocumentsRequest();
  397. virtual ~ListDocumentsRequest();
  398. ListDocumentsRequest(const ListDocumentsRequest& from);
  399. ListDocumentsRequest(ListDocumentsRequest&& from) noexcept
  400. : ListDocumentsRequest() {
  401. *this = ::std::move(from);
  402. }
  403. inline ListDocumentsRequest& operator=(const ListDocumentsRequest& from) {
  404. CopyFrom(from);
  405. return *this;
  406. }
  407. inline ListDocumentsRequest& operator=(ListDocumentsRequest&& from) noexcept {
  408. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  409. if (this != &from) InternalSwap(&from);
  410. } else {
  411. CopyFrom(from);
  412. }
  413. return *this;
  414. }
  415. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  416. return GetDescriptor();
  417. }
  418. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  419. return GetMetadataStatic().descriptor;
  420. }
  421. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  422. return GetMetadataStatic().reflection;
  423. }
  424. static const ListDocumentsRequest& default_instance();
  425. enum ConsistencySelectorCase {
  426. kTransaction = 8,
  427. kReadTime = 10,
  428. CONSISTENCY_SELECTOR_NOT_SET = 0,
  429. };
  430. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  431. static inline const ListDocumentsRequest* internal_default_instance() {
  432. return reinterpret_cast<const ListDocumentsRequest*>(
  433. &_ListDocumentsRequest_default_instance_);
  434. }
  435. static constexpr int kIndexInFileMessages =
  436. 1;
  437. friend void swap(ListDocumentsRequest& a, ListDocumentsRequest& b) {
  438. a.Swap(&b);
  439. }
  440. inline void Swap(ListDocumentsRequest* other) {
  441. if (other == this) return;
  442. InternalSwap(other);
  443. }
  444. // implements Message ----------------------------------------------
  445. inline ListDocumentsRequest* New() const final {
  446. return CreateMaybeMessage<ListDocumentsRequest>(nullptr);
  447. }
  448. ListDocumentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  449. return CreateMaybeMessage<ListDocumentsRequest>(arena);
  450. }
  451. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  452. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  453. void CopyFrom(const ListDocumentsRequest& from);
  454. void MergeFrom(const ListDocumentsRequest& from);
  455. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  456. bool IsInitialized() const final;
  457. size_t ByteSizeLong() const final;
  458. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  459. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  460. #else
  461. bool MergePartialFromCodedStream(
  462. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  463. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  464. void SerializeWithCachedSizes(
  465. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  466. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  467. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  468. int GetCachedSize() const final { return _cached_size_.Get(); }
  469. private:
  470. inline void SharedCtor();
  471. inline void SharedDtor();
  472. void SetCachedSize(int size) const final;
  473. void InternalSwap(ListDocumentsRequest* other);
  474. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  475. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  476. return "google.firestore.v1.ListDocumentsRequest";
  477. }
  478. private:
  479. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  480. return nullptr;
  481. }
  482. inline void* MaybeArenaPtr() const {
  483. return nullptr;
  484. }
  485. public:
  486. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  487. private:
  488. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  489. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  490. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  491. }
  492. public:
  493. // nested types ----------------------------------------------------
  494. // accessors -------------------------------------------------------
  495. enum : int {
  496. kParentFieldNumber = 1,
  497. kCollectionIdFieldNumber = 2,
  498. kPageTokenFieldNumber = 4,
  499. kOrderByFieldNumber = 6,
  500. kMaskFieldNumber = 7,
  501. kPageSizeFieldNumber = 3,
  502. kShowMissingFieldNumber = 12,
  503. kTransactionFieldNumber = 8,
  504. kReadTimeFieldNumber = 10,
  505. };
  506. // string parent = 1;
  507. void clear_parent();
  508. const std::string& parent() const;
  509. void set_parent(const std::string& value);
  510. void set_parent(std::string&& value);
  511. void set_parent(const char* value);
  512. void set_parent(const char* value, size_t size);
  513. std::string* mutable_parent();
  514. std::string* release_parent();
  515. void set_allocated_parent(std::string* parent);
  516. // string collection_id = 2;
  517. void clear_collection_id();
  518. const std::string& collection_id() const;
  519. void set_collection_id(const std::string& value);
  520. void set_collection_id(std::string&& value);
  521. void set_collection_id(const char* value);
  522. void set_collection_id(const char* value, size_t size);
  523. std::string* mutable_collection_id();
  524. std::string* release_collection_id();
  525. void set_allocated_collection_id(std::string* collection_id);
  526. // string page_token = 4;
  527. void clear_page_token();
  528. const std::string& page_token() const;
  529. void set_page_token(const std::string& value);
  530. void set_page_token(std::string&& value);
  531. void set_page_token(const char* value);
  532. void set_page_token(const char* value, size_t size);
  533. std::string* mutable_page_token();
  534. std::string* release_page_token();
  535. void set_allocated_page_token(std::string* page_token);
  536. // string order_by = 6;
  537. void clear_order_by();
  538. const std::string& order_by() const;
  539. void set_order_by(const std::string& value);
  540. void set_order_by(std::string&& value);
  541. void set_order_by(const char* value);
  542. void set_order_by(const char* value, size_t size);
  543. std::string* mutable_order_by();
  544. std::string* release_order_by();
  545. void set_allocated_order_by(std::string* order_by);
  546. // .google.firestore.v1.DocumentMask mask = 7;
  547. bool has_mask() const;
  548. void clear_mask();
  549. const ::google::firestore::v1::DocumentMask& mask() const;
  550. ::google::firestore::v1::DocumentMask* release_mask();
  551. ::google::firestore::v1::DocumentMask* mutable_mask();
  552. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  553. // int32 page_size = 3;
  554. void clear_page_size();
  555. ::PROTOBUF_NAMESPACE_ID::int32 page_size() const;
  556. void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  557. // bool show_missing = 12;
  558. void clear_show_missing();
  559. bool show_missing() const;
  560. void set_show_missing(bool value);
  561. // bytes transaction = 8;
  562. private:
  563. bool has_transaction() const;
  564. public:
  565. void clear_transaction();
  566. const std::string& transaction() const;
  567. void set_transaction(const std::string& value);
  568. void set_transaction(std::string&& value);
  569. void set_transaction(const char* value);
  570. void set_transaction(const void* value, size_t size);
  571. std::string* mutable_transaction();
  572. std::string* release_transaction();
  573. void set_allocated_transaction(std::string* transaction);
  574. // .google.protobuf.Timestamp read_time = 10;
  575. bool has_read_time() const;
  576. void clear_read_time();
  577. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  578. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  579. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  580. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  581. void clear_consistency_selector();
  582. ConsistencySelectorCase consistency_selector_case() const;
  583. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsRequest)
  584. private:
  585. class _Internal;
  586. void set_has_transaction();
  587. void set_has_read_time();
  588. inline bool has_consistency_selector() const;
  589. inline void clear_has_consistency_selector();
  590. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  591. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  592. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_id_;
  593. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_;
  594. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_by_;
  595. ::google::firestore::v1::DocumentMask* mask_;
  596. ::PROTOBUF_NAMESPACE_ID::int32 page_size_;
  597. bool show_missing_;
  598. union ConsistencySelectorUnion {
  599. ConsistencySelectorUnion() {}
  600. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  601. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  602. } consistency_selector_;
  603. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  604. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  605. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  606. };
  607. // -------------------------------------------------------------------
  608. class ListDocumentsResponse :
  609. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListDocumentsResponse) */ {
  610. public:
  611. ListDocumentsResponse();
  612. virtual ~ListDocumentsResponse();
  613. ListDocumentsResponse(const ListDocumentsResponse& from);
  614. ListDocumentsResponse(ListDocumentsResponse&& from) noexcept
  615. : ListDocumentsResponse() {
  616. *this = ::std::move(from);
  617. }
  618. inline ListDocumentsResponse& operator=(const ListDocumentsResponse& from) {
  619. CopyFrom(from);
  620. return *this;
  621. }
  622. inline ListDocumentsResponse& operator=(ListDocumentsResponse&& from) noexcept {
  623. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  624. if (this != &from) InternalSwap(&from);
  625. } else {
  626. CopyFrom(from);
  627. }
  628. return *this;
  629. }
  630. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  631. return GetDescriptor();
  632. }
  633. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  634. return GetMetadataStatic().descriptor;
  635. }
  636. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  637. return GetMetadataStatic().reflection;
  638. }
  639. static const ListDocumentsResponse& default_instance();
  640. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  641. static inline const ListDocumentsResponse* internal_default_instance() {
  642. return reinterpret_cast<const ListDocumentsResponse*>(
  643. &_ListDocumentsResponse_default_instance_);
  644. }
  645. static constexpr int kIndexInFileMessages =
  646. 2;
  647. friend void swap(ListDocumentsResponse& a, ListDocumentsResponse& b) {
  648. a.Swap(&b);
  649. }
  650. inline void Swap(ListDocumentsResponse* other) {
  651. if (other == this) return;
  652. InternalSwap(other);
  653. }
  654. // implements Message ----------------------------------------------
  655. inline ListDocumentsResponse* New() const final {
  656. return CreateMaybeMessage<ListDocumentsResponse>(nullptr);
  657. }
  658. ListDocumentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  659. return CreateMaybeMessage<ListDocumentsResponse>(arena);
  660. }
  661. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  662. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  663. void CopyFrom(const ListDocumentsResponse& from);
  664. void MergeFrom(const ListDocumentsResponse& from);
  665. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  666. bool IsInitialized() const final;
  667. size_t ByteSizeLong() const final;
  668. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  669. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  670. #else
  671. bool MergePartialFromCodedStream(
  672. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  673. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  674. void SerializeWithCachedSizes(
  675. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  676. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  677. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  678. int GetCachedSize() const final { return _cached_size_.Get(); }
  679. private:
  680. inline void SharedCtor();
  681. inline void SharedDtor();
  682. void SetCachedSize(int size) const final;
  683. void InternalSwap(ListDocumentsResponse* other);
  684. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  685. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  686. return "google.firestore.v1.ListDocumentsResponse";
  687. }
  688. private:
  689. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  690. return nullptr;
  691. }
  692. inline void* MaybeArenaPtr() const {
  693. return nullptr;
  694. }
  695. public:
  696. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  697. private:
  698. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  699. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  700. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  701. }
  702. public:
  703. // nested types ----------------------------------------------------
  704. // accessors -------------------------------------------------------
  705. enum : int {
  706. kDocumentsFieldNumber = 1,
  707. kNextPageTokenFieldNumber = 2,
  708. };
  709. // repeated .google.firestore.v1.Document documents = 1;
  710. int documents_size() const;
  711. void clear_documents();
  712. ::google::firestore::v1::Document* mutable_documents(int index);
  713. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >*
  714. mutable_documents();
  715. const ::google::firestore::v1::Document& documents(int index) const;
  716. ::google::firestore::v1::Document* add_documents();
  717. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >&
  718. documents() const;
  719. // string next_page_token = 2;
  720. void clear_next_page_token();
  721. const std::string& next_page_token() const;
  722. void set_next_page_token(const std::string& value);
  723. void set_next_page_token(std::string&& value);
  724. void set_next_page_token(const char* value);
  725. void set_next_page_token(const char* value, size_t size);
  726. std::string* mutable_next_page_token();
  727. std::string* release_next_page_token();
  728. void set_allocated_next_page_token(std::string* next_page_token);
  729. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListDocumentsResponse)
  730. private:
  731. class _Internal;
  732. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  733. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document > documents_;
  734. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_;
  735. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  736. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  737. };
  738. // -------------------------------------------------------------------
  739. class CreateDocumentRequest :
  740. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CreateDocumentRequest) */ {
  741. public:
  742. CreateDocumentRequest();
  743. virtual ~CreateDocumentRequest();
  744. CreateDocumentRequest(const CreateDocumentRequest& from);
  745. CreateDocumentRequest(CreateDocumentRequest&& from) noexcept
  746. : CreateDocumentRequest() {
  747. *this = ::std::move(from);
  748. }
  749. inline CreateDocumentRequest& operator=(const CreateDocumentRequest& from) {
  750. CopyFrom(from);
  751. return *this;
  752. }
  753. inline CreateDocumentRequest& operator=(CreateDocumentRequest&& from) noexcept {
  754. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  755. if (this != &from) InternalSwap(&from);
  756. } else {
  757. CopyFrom(from);
  758. }
  759. return *this;
  760. }
  761. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  762. return GetDescriptor();
  763. }
  764. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  765. return GetMetadataStatic().descriptor;
  766. }
  767. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  768. return GetMetadataStatic().reflection;
  769. }
  770. static const CreateDocumentRequest& default_instance();
  771. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  772. static inline const CreateDocumentRequest* internal_default_instance() {
  773. return reinterpret_cast<const CreateDocumentRequest*>(
  774. &_CreateDocumentRequest_default_instance_);
  775. }
  776. static constexpr int kIndexInFileMessages =
  777. 3;
  778. friend void swap(CreateDocumentRequest& a, CreateDocumentRequest& b) {
  779. a.Swap(&b);
  780. }
  781. inline void Swap(CreateDocumentRequest* other) {
  782. if (other == this) return;
  783. InternalSwap(other);
  784. }
  785. // implements Message ----------------------------------------------
  786. inline CreateDocumentRequest* New() const final {
  787. return CreateMaybeMessage<CreateDocumentRequest>(nullptr);
  788. }
  789. CreateDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  790. return CreateMaybeMessage<CreateDocumentRequest>(arena);
  791. }
  792. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  793. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  794. void CopyFrom(const CreateDocumentRequest& from);
  795. void MergeFrom(const CreateDocumentRequest& from);
  796. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  797. bool IsInitialized() const final;
  798. size_t ByteSizeLong() const final;
  799. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  800. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  801. #else
  802. bool MergePartialFromCodedStream(
  803. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  804. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  805. void SerializeWithCachedSizes(
  806. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  807. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  808. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  809. int GetCachedSize() const final { return _cached_size_.Get(); }
  810. private:
  811. inline void SharedCtor();
  812. inline void SharedDtor();
  813. void SetCachedSize(int size) const final;
  814. void InternalSwap(CreateDocumentRequest* other);
  815. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  816. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  817. return "google.firestore.v1.CreateDocumentRequest";
  818. }
  819. private:
  820. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  821. return nullptr;
  822. }
  823. inline void* MaybeArenaPtr() const {
  824. return nullptr;
  825. }
  826. public:
  827. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  828. private:
  829. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  830. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  831. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  832. }
  833. public:
  834. // nested types ----------------------------------------------------
  835. // accessors -------------------------------------------------------
  836. enum : int {
  837. kParentFieldNumber = 1,
  838. kCollectionIdFieldNumber = 2,
  839. kDocumentIdFieldNumber = 3,
  840. kDocumentFieldNumber = 4,
  841. kMaskFieldNumber = 5,
  842. };
  843. // string parent = 1;
  844. void clear_parent();
  845. const std::string& parent() const;
  846. void set_parent(const std::string& value);
  847. void set_parent(std::string&& value);
  848. void set_parent(const char* value);
  849. void set_parent(const char* value, size_t size);
  850. std::string* mutable_parent();
  851. std::string* release_parent();
  852. void set_allocated_parent(std::string* parent);
  853. // string collection_id = 2;
  854. void clear_collection_id();
  855. const std::string& collection_id() const;
  856. void set_collection_id(const std::string& value);
  857. void set_collection_id(std::string&& value);
  858. void set_collection_id(const char* value);
  859. void set_collection_id(const char* value, size_t size);
  860. std::string* mutable_collection_id();
  861. std::string* release_collection_id();
  862. void set_allocated_collection_id(std::string* collection_id);
  863. // string document_id = 3;
  864. void clear_document_id();
  865. const std::string& document_id() const;
  866. void set_document_id(const std::string& value);
  867. void set_document_id(std::string&& value);
  868. void set_document_id(const char* value);
  869. void set_document_id(const char* value, size_t size);
  870. std::string* mutable_document_id();
  871. std::string* release_document_id();
  872. void set_allocated_document_id(std::string* document_id);
  873. // .google.firestore.v1.Document document = 4;
  874. bool has_document() const;
  875. void clear_document();
  876. const ::google::firestore::v1::Document& document() const;
  877. ::google::firestore::v1::Document* release_document();
  878. ::google::firestore::v1::Document* mutable_document();
  879. void set_allocated_document(::google::firestore::v1::Document* document);
  880. // .google.firestore.v1.DocumentMask mask = 5;
  881. bool has_mask() const;
  882. void clear_mask();
  883. const ::google::firestore::v1::DocumentMask& mask() const;
  884. ::google::firestore::v1::DocumentMask* release_mask();
  885. ::google::firestore::v1::DocumentMask* mutable_mask();
  886. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  887. // @@protoc_insertion_point(class_scope:google.firestore.v1.CreateDocumentRequest)
  888. private:
  889. class _Internal;
  890. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  891. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  892. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_id_;
  893. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_id_;
  894. ::google::firestore::v1::Document* document_;
  895. ::google::firestore::v1::DocumentMask* mask_;
  896. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  897. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  898. };
  899. // -------------------------------------------------------------------
  900. class UpdateDocumentRequest :
  901. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.UpdateDocumentRequest) */ {
  902. public:
  903. UpdateDocumentRequest();
  904. virtual ~UpdateDocumentRequest();
  905. UpdateDocumentRequest(const UpdateDocumentRequest& from);
  906. UpdateDocumentRequest(UpdateDocumentRequest&& from) noexcept
  907. : UpdateDocumentRequest() {
  908. *this = ::std::move(from);
  909. }
  910. inline UpdateDocumentRequest& operator=(const UpdateDocumentRequest& from) {
  911. CopyFrom(from);
  912. return *this;
  913. }
  914. inline UpdateDocumentRequest& operator=(UpdateDocumentRequest&& from) noexcept {
  915. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  916. if (this != &from) InternalSwap(&from);
  917. } else {
  918. CopyFrom(from);
  919. }
  920. return *this;
  921. }
  922. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  923. return GetDescriptor();
  924. }
  925. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  926. return GetMetadataStatic().descriptor;
  927. }
  928. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  929. return GetMetadataStatic().reflection;
  930. }
  931. static const UpdateDocumentRequest& default_instance();
  932. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  933. static inline const UpdateDocumentRequest* internal_default_instance() {
  934. return reinterpret_cast<const UpdateDocumentRequest*>(
  935. &_UpdateDocumentRequest_default_instance_);
  936. }
  937. static constexpr int kIndexInFileMessages =
  938. 4;
  939. friend void swap(UpdateDocumentRequest& a, UpdateDocumentRequest& b) {
  940. a.Swap(&b);
  941. }
  942. inline void Swap(UpdateDocumentRequest* other) {
  943. if (other == this) return;
  944. InternalSwap(other);
  945. }
  946. // implements Message ----------------------------------------------
  947. inline UpdateDocumentRequest* New() const final {
  948. return CreateMaybeMessage<UpdateDocumentRequest>(nullptr);
  949. }
  950. UpdateDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  951. return CreateMaybeMessage<UpdateDocumentRequest>(arena);
  952. }
  953. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  954. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  955. void CopyFrom(const UpdateDocumentRequest& from);
  956. void MergeFrom(const UpdateDocumentRequest& from);
  957. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  958. bool IsInitialized() const final;
  959. size_t ByteSizeLong() const final;
  960. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  961. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  962. #else
  963. bool MergePartialFromCodedStream(
  964. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  965. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  966. void SerializeWithCachedSizes(
  967. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  968. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  969. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  970. int GetCachedSize() const final { return _cached_size_.Get(); }
  971. private:
  972. inline void SharedCtor();
  973. inline void SharedDtor();
  974. void SetCachedSize(int size) const final;
  975. void InternalSwap(UpdateDocumentRequest* other);
  976. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  977. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  978. return "google.firestore.v1.UpdateDocumentRequest";
  979. }
  980. private:
  981. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  982. return nullptr;
  983. }
  984. inline void* MaybeArenaPtr() const {
  985. return nullptr;
  986. }
  987. public:
  988. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  989. private:
  990. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  991. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  992. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  993. }
  994. public:
  995. // nested types ----------------------------------------------------
  996. // accessors -------------------------------------------------------
  997. enum : int {
  998. kDocumentFieldNumber = 1,
  999. kUpdateMaskFieldNumber = 2,
  1000. kMaskFieldNumber = 3,
  1001. kCurrentDocumentFieldNumber = 4,
  1002. };
  1003. // .google.firestore.v1.Document document = 1;
  1004. bool has_document() const;
  1005. void clear_document();
  1006. const ::google::firestore::v1::Document& document() const;
  1007. ::google::firestore::v1::Document* release_document();
  1008. ::google::firestore::v1::Document* mutable_document();
  1009. void set_allocated_document(::google::firestore::v1::Document* document);
  1010. // .google.firestore.v1.DocumentMask update_mask = 2;
  1011. bool has_update_mask() const;
  1012. void clear_update_mask();
  1013. const ::google::firestore::v1::DocumentMask& update_mask() const;
  1014. ::google::firestore::v1::DocumentMask* release_update_mask();
  1015. ::google::firestore::v1::DocumentMask* mutable_update_mask();
  1016. void set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask);
  1017. // .google.firestore.v1.DocumentMask mask = 3;
  1018. bool has_mask() const;
  1019. void clear_mask();
  1020. const ::google::firestore::v1::DocumentMask& mask() const;
  1021. ::google::firestore::v1::DocumentMask* release_mask();
  1022. ::google::firestore::v1::DocumentMask* mutable_mask();
  1023. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  1024. // .google.firestore.v1.Precondition current_document = 4;
  1025. bool has_current_document() const;
  1026. void clear_current_document();
  1027. const ::google::firestore::v1::Precondition& current_document() const;
  1028. ::google::firestore::v1::Precondition* release_current_document();
  1029. ::google::firestore::v1::Precondition* mutable_current_document();
  1030. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  1031. // @@protoc_insertion_point(class_scope:google.firestore.v1.UpdateDocumentRequest)
  1032. private:
  1033. class _Internal;
  1034. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1035. ::google::firestore::v1::Document* document_;
  1036. ::google::firestore::v1::DocumentMask* update_mask_;
  1037. ::google::firestore::v1::DocumentMask* mask_;
  1038. ::google::firestore::v1::Precondition* current_document_;
  1039. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1040. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1041. };
  1042. // -------------------------------------------------------------------
  1043. class DeleteDocumentRequest :
  1044. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DeleteDocumentRequest) */ {
  1045. public:
  1046. DeleteDocumentRequest();
  1047. virtual ~DeleteDocumentRequest();
  1048. DeleteDocumentRequest(const DeleteDocumentRequest& from);
  1049. DeleteDocumentRequest(DeleteDocumentRequest&& from) noexcept
  1050. : DeleteDocumentRequest() {
  1051. *this = ::std::move(from);
  1052. }
  1053. inline DeleteDocumentRequest& operator=(const DeleteDocumentRequest& from) {
  1054. CopyFrom(from);
  1055. return *this;
  1056. }
  1057. inline DeleteDocumentRequest& operator=(DeleteDocumentRequest&& from) noexcept {
  1058. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1059. if (this != &from) InternalSwap(&from);
  1060. } else {
  1061. CopyFrom(from);
  1062. }
  1063. return *this;
  1064. }
  1065. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1066. return GetDescriptor();
  1067. }
  1068. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1069. return GetMetadataStatic().descriptor;
  1070. }
  1071. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1072. return GetMetadataStatic().reflection;
  1073. }
  1074. static const DeleteDocumentRequest& default_instance();
  1075. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1076. static inline const DeleteDocumentRequest* internal_default_instance() {
  1077. return reinterpret_cast<const DeleteDocumentRequest*>(
  1078. &_DeleteDocumentRequest_default_instance_);
  1079. }
  1080. static constexpr int kIndexInFileMessages =
  1081. 5;
  1082. friend void swap(DeleteDocumentRequest& a, DeleteDocumentRequest& b) {
  1083. a.Swap(&b);
  1084. }
  1085. inline void Swap(DeleteDocumentRequest* other) {
  1086. if (other == this) return;
  1087. InternalSwap(other);
  1088. }
  1089. // implements Message ----------------------------------------------
  1090. inline DeleteDocumentRequest* New() const final {
  1091. return CreateMaybeMessage<DeleteDocumentRequest>(nullptr);
  1092. }
  1093. DeleteDocumentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1094. return CreateMaybeMessage<DeleteDocumentRequest>(arena);
  1095. }
  1096. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1097. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1098. void CopyFrom(const DeleteDocumentRequest& from);
  1099. void MergeFrom(const DeleteDocumentRequest& from);
  1100. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1101. bool IsInitialized() const final;
  1102. size_t ByteSizeLong() const final;
  1103. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1104. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1105. #else
  1106. bool MergePartialFromCodedStream(
  1107. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1108. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1109. void SerializeWithCachedSizes(
  1110. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1111. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1112. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1113. int GetCachedSize() const final { return _cached_size_.Get(); }
  1114. private:
  1115. inline void SharedCtor();
  1116. inline void SharedDtor();
  1117. void SetCachedSize(int size) const final;
  1118. void InternalSwap(DeleteDocumentRequest* other);
  1119. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1120. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1121. return "google.firestore.v1.DeleteDocumentRequest";
  1122. }
  1123. private:
  1124. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1125. return nullptr;
  1126. }
  1127. inline void* MaybeArenaPtr() const {
  1128. return nullptr;
  1129. }
  1130. public:
  1131. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1132. private:
  1133. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1134. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1135. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1136. }
  1137. public:
  1138. // nested types ----------------------------------------------------
  1139. // accessors -------------------------------------------------------
  1140. enum : int {
  1141. kNameFieldNumber = 1,
  1142. kCurrentDocumentFieldNumber = 2,
  1143. };
  1144. // string name = 1;
  1145. void clear_name();
  1146. const std::string& name() const;
  1147. void set_name(const std::string& value);
  1148. void set_name(std::string&& value);
  1149. void set_name(const char* value);
  1150. void set_name(const char* value, size_t size);
  1151. std::string* mutable_name();
  1152. std::string* release_name();
  1153. void set_allocated_name(std::string* name);
  1154. // .google.firestore.v1.Precondition current_document = 2;
  1155. bool has_current_document() const;
  1156. void clear_current_document();
  1157. const ::google::firestore::v1::Precondition& current_document() const;
  1158. ::google::firestore::v1::Precondition* release_current_document();
  1159. ::google::firestore::v1::Precondition* mutable_current_document();
  1160. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  1161. // @@protoc_insertion_point(class_scope:google.firestore.v1.DeleteDocumentRequest)
  1162. private:
  1163. class _Internal;
  1164. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1165. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1166. ::google::firestore::v1::Precondition* current_document_;
  1167. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1168. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1169. };
  1170. // -------------------------------------------------------------------
  1171. class BatchGetDocumentsRequest :
  1172. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsRequest) */ {
  1173. public:
  1174. BatchGetDocumentsRequest();
  1175. virtual ~BatchGetDocumentsRequest();
  1176. BatchGetDocumentsRequest(const BatchGetDocumentsRequest& from);
  1177. BatchGetDocumentsRequest(BatchGetDocumentsRequest&& from) noexcept
  1178. : BatchGetDocumentsRequest() {
  1179. *this = ::std::move(from);
  1180. }
  1181. inline BatchGetDocumentsRequest& operator=(const BatchGetDocumentsRequest& from) {
  1182. CopyFrom(from);
  1183. return *this;
  1184. }
  1185. inline BatchGetDocumentsRequest& operator=(BatchGetDocumentsRequest&& from) noexcept {
  1186. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1187. if (this != &from) InternalSwap(&from);
  1188. } else {
  1189. CopyFrom(from);
  1190. }
  1191. return *this;
  1192. }
  1193. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1194. return GetDescriptor();
  1195. }
  1196. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1197. return GetMetadataStatic().descriptor;
  1198. }
  1199. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1200. return GetMetadataStatic().reflection;
  1201. }
  1202. static const BatchGetDocumentsRequest& default_instance();
  1203. enum ConsistencySelectorCase {
  1204. kTransaction = 4,
  1205. kNewTransaction = 5,
  1206. kReadTime = 7,
  1207. CONSISTENCY_SELECTOR_NOT_SET = 0,
  1208. };
  1209. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1210. static inline const BatchGetDocumentsRequest* internal_default_instance() {
  1211. return reinterpret_cast<const BatchGetDocumentsRequest*>(
  1212. &_BatchGetDocumentsRequest_default_instance_);
  1213. }
  1214. static constexpr int kIndexInFileMessages =
  1215. 6;
  1216. friend void swap(BatchGetDocumentsRequest& a, BatchGetDocumentsRequest& b) {
  1217. a.Swap(&b);
  1218. }
  1219. inline void Swap(BatchGetDocumentsRequest* other) {
  1220. if (other == this) return;
  1221. InternalSwap(other);
  1222. }
  1223. // implements Message ----------------------------------------------
  1224. inline BatchGetDocumentsRequest* New() const final {
  1225. return CreateMaybeMessage<BatchGetDocumentsRequest>(nullptr);
  1226. }
  1227. BatchGetDocumentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1228. return CreateMaybeMessage<BatchGetDocumentsRequest>(arena);
  1229. }
  1230. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1231. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1232. void CopyFrom(const BatchGetDocumentsRequest& from);
  1233. void MergeFrom(const BatchGetDocumentsRequest& from);
  1234. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1235. bool IsInitialized() const final;
  1236. size_t ByteSizeLong() const final;
  1237. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1238. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1239. #else
  1240. bool MergePartialFromCodedStream(
  1241. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1242. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1243. void SerializeWithCachedSizes(
  1244. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1245. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1246. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1247. int GetCachedSize() const final { return _cached_size_.Get(); }
  1248. private:
  1249. inline void SharedCtor();
  1250. inline void SharedDtor();
  1251. void SetCachedSize(int size) const final;
  1252. void InternalSwap(BatchGetDocumentsRequest* other);
  1253. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1254. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1255. return "google.firestore.v1.BatchGetDocumentsRequest";
  1256. }
  1257. private:
  1258. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1259. return nullptr;
  1260. }
  1261. inline void* MaybeArenaPtr() const {
  1262. return nullptr;
  1263. }
  1264. public:
  1265. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1266. private:
  1267. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1268. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1269. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1270. }
  1271. public:
  1272. // nested types ----------------------------------------------------
  1273. // accessors -------------------------------------------------------
  1274. enum : int {
  1275. kDocumentsFieldNumber = 2,
  1276. kDatabaseFieldNumber = 1,
  1277. kMaskFieldNumber = 3,
  1278. kTransactionFieldNumber = 4,
  1279. kNewTransactionFieldNumber = 5,
  1280. kReadTimeFieldNumber = 7,
  1281. };
  1282. // repeated string documents = 2;
  1283. int documents_size() const;
  1284. void clear_documents();
  1285. const std::string& documents(int index) const;
  1286. std::string* mutable_documents(int index);
  1287. void set_documents(int index, const std::string& value);
  1288. void set_documents(int index, std::string&& value);
  1289. void set_documents(int index, const char* value);
  1290. void set_documents(int index, const char* value, size_t size);
  1291. std::string* add_documents();
  1292. void add_documents(const std::string& value);
  1293. void add_documents(std::string&& value);
  1294. void add_documents(const char* value);
  1295. void add_documents(const char* value, size_t size);
  1296. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& documents() const;
  1297. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_documents();
  1298. // string database = 1;
  1299. void clear_database();
  1300. const std::string& database() const;
  1301. void set_database(const std::string& value);
  1302. void set_database(std::string&& value);
  1303. void set_database(const char* value);
  1304. void set_database(const char* value, size_t size);
  1305. std::string* mutable_database();
  1306. std::string* release_database();
  1307. void set_allocated_database(std::string* database);
  1308. // .google.firestore.v1.DocumentMask mask = 3;
  1309. bool has_mask() const;
  1310. void clear_mask();
  1311. const ::google::firestore::v1::DocumentMask& mask() const;
  1312. ::google::firestore::v1::DocumentMask* release_mask();
  1313. ::google::firestore::v1::DocumentMask* mutable_mask();
  1314. void set_allocated_mask(::google::firestore::v1::DocumentMask* mask);
  1315. // bytes transaction = 4;
  1316. private:
  1317. bool has_transaction() const;
  1318. public:
  1319. void clear_transaction();
  1320. const std::string& transaction() const;
  1321. void set_transaction(const std::string& value);
  1322. void set_transaction(std::string&& value);
  1323. void set_transaction(const char* value);
  1324. void set_transaction(const void* value, size_t size);
  1325. std::string* mutable_transaction();
  1326. std::string* release_transaction();
  1327. void set_allocated_transaction(std::string* transaction);
  1328. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  1329. bool has_new_transaction() const;
  1330. void clear_new_transaction();
  1331. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  1332. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  1333. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  1334. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  1335. // .google.protobuf.Timestamp read_time = 7;
  1336. bool has_read_time() const;
  1337. void clear_read_time();
  1338. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1339. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1340. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1341. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1342. void clear_consistency_selector();
  1343. ConsistencySelectorCase consistency_selector_case() const;
  1344. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsRequest)
  1345. private:
  1346. class _Internal;
  1347. void set_has_transaction();
  1348. void set_has_new_transaction();
  1349. void set_has_read_time();
  1350. inline bool has_consistency_selector() const;
  1351. inline void clear_has_consistency_selector();
  1352. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1353. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> documents_;
  1354. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1355. ::google::firestore::v1::DocumentMask* mask_;
  1356. union ConsistencySelectorUnion {
  1357. ConsistencySelectorUnion() {}
  1358. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1359. ::google::firestore::v1::TransactionOptions* new_transaction_;
  1360. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1361. } consistency_selector_;
  1362. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1363. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  1364. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1365. };
  1366. // -------------------------------------------------------------------
  1367. class BatchGetDocumentsResponse :
  1368. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BatchGetDocumentsResponse) */ {
  1369. public:
  1370. BatchGetDocumentsResponse();
  1371. virtual ~BatchGetDocumentsResponse();
  1372. BatchGetDocumentsResponse(const BatchGetDocumentsResponse& from);
  1373. BatchGetDocumentsResponse(BatchGetDocumentsResponse&& from) noexcept
  1374. : BatchGetDocumentsResponse() {
  1375. *this = ::std::move(from);
  1376. }
  1377. inline BatchGetDocumentsResponse& operator=(const BatchGetDocumentsResponse& from) {
  1378. CopyFrom(from);
  1379. return *this;
  1380. }
  1381. inline BatchGetDocumentsResponse& operator=(BatchGetDocumentsResponse&& from) noexcept {
  1382. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1383. if (this != &from) InternalSwap(&from);
  1384. } else {
  1385. CopyFrom(from);
  1386. }
  1387. return *this;
  1388. }
  1389. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1390. return GetDescriptor();
  1391. }
  1392. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1393. return GetMetadataStatic().descriptor;
  1394. }
  1395. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1396. return GetMetadataStatic().reflection;
  1397. }
  1398. static const BatchGetDocumentsResponse& default_instance();
  1399. enum ResultCase {
  1400. kFound = 1,
  1401. kMissing = 2,
  1402. RESULT_NOT_SET = 0,
  1403. };
  1404. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1405. static inline const BatchGetDocumentsResponse* internal_default_instance() {
  1406. return reinterpret_cast<const BatchGetDocumentsResponse*>(
  1407. &_BatchGetDocumentsResponse_default_instance_);
  1408. }
  1409. static constexpr int kIndexInFileMessages =
  1410. 7;
  1411. friend void swap(BatchGetDocumentsResponse& a, BatchGetDocumentsResponse& b) {
  1412. a.Swap(&b);
  1413. }
  1414. inline void Swap(BatchGetDocumentsResponse* other) {
  1415. if (other == this) return;
  1416. InternalSwap(other);
  1417. }
  1418. // implements Message ----------------------------------------------
  1419. inline BatchGetDocumentsResponse* New() const final {
  1420. return CreateMaybeMessage<BatchGetDocumentsResponse>(nullptr);
  1421. }
  1422. BatchGetDocumentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1423. return CreateMaybeMessage<BatchGetDocumentsResponse>(arena);
  1424. }
  1425. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1426. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1427. void CopyFrom(const BatchGetDocumentsResponse& from);
  1428. void MergeFrom(const BatchGetDocumentsResponse& from);
  1429. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1430. bool IsInitialized() const final;
  1431. size_t ByteSizeLong() const final;
  1432. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1433. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1434. #else
  1435. bool MergePartialFromCodedStream(
  1436. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1437. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1438. void SerializeWithCachedSizes(
  1439. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1440. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1441. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1442. int GetCachedSize() const final { return _cached_size_.Get(); }
  1443. private:
  1444. inline void SharedCtor();
  1445. inline void SharedDtor();
  1446. void SetCachedSize(int size) const final;
  1447. void InternalSwap(BatchGetDocumentsResponse* other);
  1448. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1449. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1450. return "google.firestore.v1.BatchGetDocumentsResponse";
  1451. }
  1452. private:
  1453. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1454. return nullptr;
  1455. }
  1456. inline void* MaybeArenaPtr() const {
  1457. return nullptr;
  1458. }
  1459. public:
  1460. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1461. private:
  1462. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1463. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1464. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1465. }
  1466. public:
  1467. // nested types ----------------------------------------------------
  1468. // accessors -------------------------------------------------------
  1469. enum : int {
  1470. kTransactionFieldNumber = 3,
  1471. kReadTimeFieldNumber = 4,
  1472. kFoundFieldNumber = 1,
  1473. kMissingFieldNumber = 2,
  1474. };
  1475. // bytes transaction = 3;
  1476. void clear_transaction();
  1477. const std::string& transaction() const;
  1478. void set_transaction(const std::string& value);
  1479. void set_transaction(std::string&& value);
  1480. void set_transaction(const char* value);
  1481. void set_transaction(const void* value, size_t size);
  1482. std::string* mutable_transaction();
  1483. std::string* release_transaction();
  1484. void set_allocated_transaction(std::string* transaction);
  1485. // .google.protobuf.Timestamp read_time = 4;
  1486. bool has_read_time() const;
  1487. void clear_read_time();
  1488. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1489. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1490. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1491. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1492. // .google.firestore.v1.Document found = 1;
  1493. bool has_found() const;
  1494. void clear_found();
  1495. const ::google::firestore::v1::Document& found() const;
  1496. ::google::firestore::v1::Document* release_found();
  1497. ::google::firestore::v1::Document* mutable_found();
  1498. void set_allocated_found(::google::firestore::v1::Document* found);
  1499. // string missing = 2;
  1500. private:
  1501. bool has_missing() const;
  1502. public:
  1503. void clear_missing();
  1504. const std::string& missing() const;
  1505. void set_missing(const std::string& value);
  1506. void set_missing(std::string&& value);
  1507. void set_missing(const char* value);
  1508. void set_missing(const char* value, size_t size);
  1509. std::string* mutable_missing();
  1510. std::string* release_missing();
  1511. void set_allocated_missing(std::string* missing);
  1512. void clear_result();
  1513. ResultCase result_case() const;
  1514. // @@protoc_insertion_point(class_scope:google.firestore.v1.BatchGetDocumentsResponse)
  1515. private:
  1516. class _Internal;
  1517. void set_has_found();
  1518. void set_has_missing();
  1519. inline bool has_result() const;
  1520. inline void clear_has_result();
  1521. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1522. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1523. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1524. union ResultUnion {
  1525. ResultUnion() {}
  1526. ::google::firestore::v1::Document* found_;
  1527. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr missing_;
  1528. } result_;
  1529. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1530. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  1531. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1532. };
  1533. // -------------------------------------------------------------------
  1534. class BeginTransactionRequest :
  1535. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionRequest) */ {
  1536. public:
  1537. BeginTransactionRequest();
  1538. virtual ~BeginTransactionRequest();
  1539. BeginTransactionRequest(const BeginTransactionRequest& from);
  1540. BeginTransactionRequest(BeginTransactionRequest&& from) noexcept
  1541. : BeginTransactionRequest() {
  1542. *this = ::std::move(from);
  1543. }
  1544. inline BeginTransactionRequest& operator=(const BeginTransactionRequest& from) {
  1545. CopyFrom(from);
  1546. return *this;
  1547. }
  1548. inline BeginTransactionRequest& operator=(BeginTransactionRequest&& from) noexcept {
  1549. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1550. if (this != &from) InternalSwap(&from);
  1551. } else {
  1552. CopyFrom(from);
  1553. }
  1554. return *this;
  1555. }
  1556. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1557. return GetDescriptor();
  1558. }
  1559. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1560. return GetMetadataStatic().descriptor;
  1561. }
  1562. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1563. return GetMetadataStatic().reflection;
  1564. }
  1565. static const BeginTransactionRequest& default_instance();
  1566. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1567. static inline const BeginTransactionRequest* internal_default_instance() {
  1568. return reinterpret_cast<const BeginTransactionRequest*>(
  1569. &_BeginTransactionRequest_default_instance_);
  1570. }
  1571. static constexpr int kIndexInFileMessages =
  1572. 8;
  1573. friend void swap(BeginTransactionRequest& a, BeginTransactionRequest& b) {
  1574. a.Swap(&b);
  1575. }
  1576. inline void Swap(BeginTransactionRequest* other) {
  1577. if (other == this) return;
  1578. InternalSwap(other);
  1579. }
  1580. // implements Message ----------------------------------------------
  1581. inline BeginTransactionRequest* New() const final {
  1582. return CreateMaybeMessage<BeginTransactionRequest>(nullptr);
  1583. }
  1584. BeginTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1585. return CreateMaybeMessage<BeginTransactionRequest>(arena);
  1586. }
  1587. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1588. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1589. void CopyFrom(const BeginTransactionRequest& from);
  1590. void MergeFrom(const BeginTransactionRequest& from);
  1591. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1592. bool IsInitialized() const final;
  1593. size_t ByteSizeLong() const final;
  1594. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1595. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1596. #else
  1597. bool MergePartialFromCodedStream(
  1598. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1599. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1600. void SerializeWithCachedSizes(
  1601. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1602. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1603. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1604. int GetCachedSize() const final { return _cached_size_.Get(); }
  1605. private:
  1606. inline void SharedCtor();
  1607. inline void SharedDtor();
  1608. void SetCachedSize(int size) const final;
  1609. void InternalSwap(BeginTransactionRequest* other);
  1610. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1611. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1612. return "google.firestore.v1.BeginTransactionRequest";
  1613. }
  1614. private:
  1615. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1616. return nullptr;
  1617. }
  1618. inline void* MaybeArenaPtr() const {
  1619. return nullptr;
  1620. }
  1621. public:
  1622. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1623. private:
  1624. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1625. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1626. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1627. }
  1628. public:
  1629. // nested types ----------------------------------------------------
  1630. // accessors -------------------------------------------------------
  1631. enum : int {
  1632. kDatabaseFieldNumber = 1,
  1633. kOptionsFieldNumber = 2,
  1634. };
  1635. // string database = 1;
  1636. void clear_database();
  1637. const std::string& database() const;
  1638. void set_database(const std::string& value);
  1639. void set_database(std::string&& value);
  1640. void set_database(const char* value);
  1641. void set_database(const char* value, size_t size);
  1642. std::string* mutable_database();
  1643. std::string* release_database();
  1644. void set_allocated_database(std::string* database);
  1645. // .google.firestore.v1.TransactionOptions options = 2;
  1646. bool has_options() const;
  1647. void clear_options();
  1648. const ::google::firestore::v1::TransactionOptions& options() const;
  1649. ::google::firestore::v1::TransactionOptions* release_options();
  1650. ::google::firestore::v1::TransactionOptions* mutable_options();
  1651. void set_allocated_options(::google::firestore::v1::TransactionOptions* options);
  1652. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionRequest)
  1653. private:
  1654. class _Internal;
  1655. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1656. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1657. ::google::firestore::v1::TransactionOptions* options_;
  1658. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1659. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1660. };
  1661. // -------------------------------------------------------------------
  1662. class BeginTransactionResponse :
  1663. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BeginTransactionResponse) */ {
  1664. public:
  1665. BeginTransactionResponse();
  1666. virtual ~BeginTransactionResponse();
  1667. BeginTransactionResponse(const BeginTransactionResponse& from);
  1668. BeginTransactionResponse(BeginTransactionResponse&& from) noexcept
  1669. : BeginTransactionResponse() {
  1670. *this = ::std::move(from);
  1671. }
  1672. inline BeginTransactionResponse& operator=(const BeginTransactionResponse& from) {
  1673. CopyFrom(from);
  1674. return *this;
  1675. }
  1676. inline BeginTransactionResponse& operator=(BeginTransactionResponse&& from) noexcept {
  1677. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1678. if (this != &from) InternalSwap(&from);
  1679. } else {
  1680. CopyFrom(from);
  1681. }
  1682. return *this;
  1683. }
  1684. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1685. return GetDescriptor();
  1686. }
  1687. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1688. return GetMetadataStatic().descriptor;
  1689. }
  1690. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1691. return GetMetadataStatic().reflection;
  1692. }
  1693. static const BeginTransactionResponse& default_instance();
  1694. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1695. static inline const BeginTransactionResponse* internal_default_instance() {
  1696. return reinterpret_cast<const BeginTransactionResponse*>(
  1697. &_BeginTransactionResponse_default_instance_);
  1698. }
  1699. static constexpr int kIndexInFileMessages =
  1700. 9;
  1701. friend void swap(BeginTransactionResponse& a, BeginTransactionResponse& b) {
  1702. a.Swap(&b);
  1703. }
  1704. inline void Swap(BeginTransactionResponse* other) {
  1705. if (other == this) return;
  1706. InternalSwap(other);
  1707. }
  1708. // implements Message ----------------------------------------------
  1709. inline BeginTransactionResponse* New() const final {
  1710. return CreateMaybeMessage<BeginTransactionResponse>(nullptr);
  1711. }
  1712. BeginTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1713. return CreateMaybeMessage<BeginTransactionResponse>(arena);
  1714. }
  1715. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1716. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1717. void CopyFrom(const BeginTransactionResponse& from);
  1718. void MergeFrom(const BeginTransactionResponse& from);
  1719. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1720. bool IsInitialized() const final;
  1721. size_t ByteSizeLong() const final;
  1722. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1723. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1724. #else
  1725. bool MergePartialFromCodedStream(
  1726. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1727. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1728. void SerializeWithCachedSizes(
  1729. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1730. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1731. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1732. int GetCachedSize() const final { return _cached_size_.Get(); }
  1733. private:
  1734. inline void SharedCtor();
  1735. inline void SharedDtor();
  1736. void SetCachedSize(int size) const final;
  1737. void InternalSwap(BeginTransactionResponse* other);
  1738. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1739. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1740. return "google.firestore.v1.BeginTransactionResponse";
  1741. }
  1742. private:
  1743. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1744. return nullptr;
  1745. }
  1746. inline void* MaybeArenaPtr() const {
  1747. return nullptr;
  1748. }
  1749. public:
  1750. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1751. private:
  1752. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1753. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1754. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1755. }
  1756. public:
  1757. // nested types ----------------------------------------------------
  1758. // accessors -------------------------------------------------------
  1759. enum : int {
  1760. kTransactionFieldNumber = 1,
  1761. };
  1762. // bytes transaction = 1;
  1763. void clear_transaction();
  1764. const std::string& transaction() const;
  1765. void set_transaction(const std::string& value);
  1766. void set_transaction(std::string&& value);
  1767. void set_transaction(const char* value);
  1768. void set_transaction(const void* value, size_t size);
  1769. std::string* mutable_transaction();
  1770. std::string* release_transaction();
  1771. void set_allocated_transaction(std::string* transaction);
  1772. // @@protoc_insertion_point(class_scope:google.firestore.v1.BeginTransactionResponse)
  1773. private:
  1774. class _Internal;
  1775. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1776. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1777. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1778. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1779. };
  1780. // -------------------------------------------------------------------
  1781. class CommitRequest :
  1782. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitRequest) */ {
  1783. public:
  1784. CommitRequest();
  1785. virtual ~CommitRequest();
  1786. CommitRequest(const CommitRequest& from);
  1787. CommitRequest(CommitRequest&& from) noexcept
  1788. : CommitRequest() {
  1789. *this = ::std::move(from);
  1790. }
  1791. inline CommitRequest& operator=(const CommitRequest& from) {
  1792. CopyFrom(from);
  1793. return *this;
  1794. }
  1795. inline CommitRequest& operator=(CommitRequest&& from) noexcept {
  1796. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1797. if (this != &from) InternalSwap(&from);
  1798. } else {
  1799. CopyFrom(from);
  1800. }
  1801. return *this;
  1802. }
  1803. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1804. return GetDescriptor();
  1805. }
  1806. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1807. return GetMetadataStatic().descriptor;
  1808. }
  1809. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1810. return GetMetadataStatic().reflection;
  1811. }
  1812. static const CommitRequest& default_instance();
  1813. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1814. static inline const CommitRequest* internal_default_instance() {
  1815. return reinterpret_cast<const CommitRequest*>(
  1816. &_CommitRequest_default_instance_);
  1817. }
  1818. static constexpr int kIndexInFileMessages =
  1819. 10;
  1820. friend void swap(CommitRequest& a, CommitRequest& b) {
  1821. a.Swap(&b);
  1822. }
  1823. inline void Swap(CommitRequest* other) {
  1824. if (other == this) return;
  1825. InternalSwap(other);
  1826. }
  1827. // implements Message ----------------------------------------------
  1828. inline CommitRequest* New() const final {
  1829. return CreateMaybeMessage<CommitRequest>(nullptr);
  1830. }
  1831. CommitRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1832. return CreateMaybeMessage<CommitRequest>(arena);
  1833. }
  1834. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1835. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1836. void CopyFrom(const CommitRequest& from);
  1837. void MergeFrom(const CommitRequest& from);
  1838. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1839. bool IsInitialized() const final;
  1840. size_t ByteSizeLong() const final;
  1841. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1842. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1843. #else
  1844. bool MergePartialFromCodedStream(
  1845. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1846. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1847. void SerializeWithCachedSizes(
  1848. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1849. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1850. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1851. int GetCachedSize() const final { return _cached_size_.Get(); }
  1852. private:
  1853. inline void SharedCtor();
  1854. inline void SharedDtor();
  1855. void SetCachedSize(int size) const final;
  1856. void InternalSwap(CommitRequest* other);
  1857. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1858. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1859. return "google.firestore.v1.CommitRequest";
  1860. }
  1861. private:
  1862. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1863. return nullptr;
  1864. }
  1865. inline void* MaybeArenaPtr() const {
  1866. return nullptr;
  1867. }
  1868. public:
  1869. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1870. private:
  1871. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1872. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  1873. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  1874. }
  1875. public:
  1876. // nested types ----------------------------------------------------
  1877. // accessors -------------------------------------------------------
  1878. enum : int {
  1879. kWritesFieldNumber = 2,
  1880. kDatabaseFieldNumber = 1,
  1881. kTransactionFieldNumber = 3,
  1882. };
  1883. // repeated .google.firestore.v1.Write writes = 2;
  1884. int writes_size() const;
  1885. void clear_writes();
  1886. ::google::firestore::v1::Write* mutable_writes(int index);
  1887. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  1888. mutable_writes();
  1889. const ::google::firestore::v1::Write& writes(int index) const;
  1890. ::google::firestore::v1::Write* add_writes();
  1891. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  1892. writes() const;
  1893. // string database = 1;
  1894. void clear_database();
  1895. const std::string& database() const;
  1896. void set_database(const std::string& value);
  1897. void set_database(std::string&& value);
  1898. void set_database(const char* value);
  1899. void set_database(const char* value, size_t size);
  1900. std::string* mutable_database();
  1901. std::string* release_database();
  1902. void set_allocated_database(std::string* database);
  1903. // bytes transaction = 3;
  1904. void clear_transaction();
  1905. const std::string& transaction() const;
  1906. void set_transaction(const std::string& value);
  1907. void set_transaction(std::string&& value);
  1908. void set_transaction(const char* value);
  1909. void set_transaction(const void* value, size_t size);
  1910. std::string* mutable_transaction();
  1911. std::string* release_transaction();
  1912. void set_allocated_transaction(std::string* transaction);
  1913. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitRequest)
  1914. private:
  1915. class _Internal;
  1916. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1917. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  1918. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  1919. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  1920. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1921. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  1922. };
  1923. // -------------------------------------------------------------------
  1924. class CommitResponse :
  1925. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.CommitResponse) */ {
  1926. public:
  1927. CommitResponse();
  1928. virtual ~CommitResponse();
  1929. CommitResponse(const CommitResponse& from);
  1930. CommitResponse(CommitResponse&& from) noexcept
  1931. : CommitResponse() {
  1932. *this = ::std::move(from);
  1933. }
  1934. inline CommitResponse& operator=(const CommitResponse& from) {
  1935. CopyFrom(from);
  1936. return *this;
  1937. }
  1938. inline CommitResponse& operator=(CommitResponse&& from) noexcept {
  1939. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1940. if (this != &from) InternalSwap(&from);
  1941. } else {
  1942. CopyFrom(from);
  1943. }
  1944. return *this;
  1945. }
  1946. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1947. return GetDescriptor();
  1948. }
  1949. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1950. return GetMetadataStatic().descriptor;
  1951. }
  1952. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1953. return GetMetadataStatic().reflection;
  1954. }
  1955. static const CommitResponse& default_instance();
  1956. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1957. static inline const CommitResponse* internal_default_instance() {
  1958. return reinterpret_cast<const CommitResponse*>(
  1959. &_CommitResponse_default_instance_);
  1960. }
  1961. static constexpr int kIndexInFileMessages =
  1962. 11;
  1963. friend void swap(CommitResponse& a, CommitResponse& b) {
  1964. a.Swap(&b);
  1965. }
  1966. inline void Swap(CommitResponse* other) {
  1967. if (other == this) return;
  1968. InternalSwap(other);
  1969. }
  1970. // implements Message ----------------------------------------------
  1971. inline CommitResponse* New() const final {
  1972. return CreateMaybeMessage<CommitResponse>(nullptr);
  1973. }
  1974. CommitResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1975. return CreateMaybeMessage<CommitResponse>(arena);
  1976. }
  1977. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1978. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1979. void CopyFrom(const CommitResponse& from);
  1980. void MergeFrom(const CommitResponse& from);
  1981. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1982. bool IsInitialized() const final;
  1983. size_t ByteSizeLong() const final;
  1984. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1985. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1986. #else
  1987. bool MergePartialFromCodedStream(
  1988. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1989. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1990. void SerializeWithCachedSizes(
  1991. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1992. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1993. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1994. int GetCachedSize() const final { return _cached_size_.Get(); }
  1995. private:
  1996. inline void SharedCtor();
  1997. inline void SharedDtor();
  1998. void SetCachedSize(int size) const final;
  1999. void InternalSwap(CommitResponse* other);
  2000. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2001. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2002. return "google.firestore.v1.CommitResponse";
  2003. }
  2004. private:
  2005. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2006. return nullptr;
  2007. }
  2008. inline void* MaybeArenaPtr() const {
  2009. return nullptr;
  2010. }
  2011. public:
  2012. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2013. private:
  2014. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2015. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2016. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2017. }
  2018. public:
  2019. // nested types ----------------------------------------------------
  2020. // accessors -------------------------------------------------------
  2021. enum : int {
  2022. kWriteResultsFieldNumber = 1,
  2023. kCommitTimeFieldNumber = 2,
  2024. };
  2025. // repeated .google.firestore.v1.WriteResult write_results = 1;
  2026. int write_results_size() const;
  2027. void clear_write_results();
  2028. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  2029. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  2030. mutable_write_results();
  2031. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  2032. ::google::firestore::v1::WriteResult* add_write_results();
  2033. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  2034. write_results() const;
  2035. // .google.protobuf.Timestamp commit_time = 2;
  2036. bool has_commit_time() const;
  2037. void clear_commit_time();
  2038. const PROTOBUF_NAMESPACE_ID::Timestamp& commit_time() const;
  2039. PROTOBUF_NAMESPACE_ID::Timestamp* release_commit_time();
  2040. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_commit_time();
  2041. void set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time);
  2042. // @@protoc_insertion_point(class_scope:google.firestore.v1.CommitResponse)
  2043. private:
  2044. class _Internal;
  2045. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2046. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  2047. PROTOBUF_NAMESPACE_ID::Timestamp* commit_time_;
  2048. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2049. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2050. };
  2051. // -------------------------------------------------------------------
  2052. class RollbackRequest :
  2053. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RollbackRequest) */ {
  2054. public:
  2055. RollbackRequest();
  2056. virtual ~RollbackRequest();
  2057. RollbackRequest(const RollbackRequest& from);
  2058. RollbackRequest(RollbackRequest&& from) noexcept
  2059. : RollbackRequest() {
  2060. *this = ::std::move(from);
  2061. }
  2062. inline RollbackRequest& operator=(const RollbackRequest& from) {
  2063. CopyFrom(from);
  2064. return *this;
  2065. }
  2066. inline RollbackRequest& operator=(RollbackRequest&& from) noexcept {
  2067. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2068. if (this != &from) InternalSwap(&from);
  2069. } else {
  2070. CopyFrom(from);
  2071. }
  2072. return *this;
  2073. }
  2074. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2075. return GetDescriptor();
  2076. }
  2077. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2078. return GetMetadataStatic().descriptor;
  2079. }
  2080. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2081. return GetMetadataStatic().reflection;
  2082. }
  2083. static const RollbackRequest& default_instance();
  2084. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2085. static inline const RollbackRequest* internal_default_instance() {
  2086. return reinterpret_cast<const RollbackRequest*>(
  2087. &_RollbackRequest_default_instance_);
  2088. }
  2089. static constexpr int kIndexInFileMessages =
  2090. 12;
  2091. friend void swap(RollbackRequest& a, RollbackRequest& b) {
  2092. a.Swap(&b);
  2093. }
  2094. inline void Swap(RollbackRequest* other) {
  2095. if (other == this) return;
  2096. InternalSwap(other);
  2097. }
  2098. // implements Message ----------------------------------------------
  2099. inline RollbackRequest* New() const final {
  2100. return CreateMaybeMessage<RollbackRequest>(nullptr);
  2101. }
  2102. RollbackRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2103. return CreateMaybeMessage<RollbackRequest>(arena);
  2104. }
  2105. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2106. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2107. void CopyFrom(const RollbackRequest& from);
  2108. void MergeFrom(const RollbackRequest& from);
  2109. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2110. bool IsInitialized() const final;
  2111. size_t ByteSizeLong() const final;
  2112. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2113. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2114. #else
  2115. bool MergePartialFromCodedStream(
  2116. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  2117. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2118. void SerializeWithCachedSizes(
  2119. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  2120. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2121. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  2122. int GetCachedSize() const final { return _cached_size_.Get(); }
  2123. private:
  2124. inline void SharedCtor();
  2125. inline void SharedDtor();
  2126. void SetCachedSize(int size) const final;
  2127. void InternalSwap(RollbackRequest* other);
  2128. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2129. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2130. return "google.firestore.v1.RollbackRequest";
  2131. }
  2132. private:
  2133. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2134. return nullptr;
  2135. }
  2136. inline void* MaybeArenaPtr() const {
  2137. return nullptr;
  2138. }
  2139. public:
  2140. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2141. private:
  2142. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2143. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2144. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2145. }
  2146. public:
  2147. // nested types ----------------------------------------------------
  2148. // accessors -------------------------------------------------------
  2149. enum : int {
  2150. kDatabaseFieldNumber = 1,
  2151. kTransactionFieldNumber = 2,
  2152. };
  2153. // string database = 1;
  2154. void clear_database();
  2155. const std::string& database() const;
  2156. void set_database(const std::string& value);
  2157. void set_database(std::string&& value);
  2158. void set_database(const char* value);
  2159. void set_database(const char* value, size_t size);
  2160. std::string* mutable_database();
  2161. std::string* release_database();
  2162. void set_allocated_database(std::string* database);
  2163. // bytes transaction = 2;
  2164. void clear_transaction();
  2165. const std::string& transaction() const;
  2166. void set_transaction(const std::string& value);
  2167. void set_transaction(std::string&& value);
  2168. void set_transaction(const char* value);
  2169. void set_transaction(const void* value, size_t size);
  2170. std::string* mutable_transaction();
  2171. std::string* release_transaction();
  2172. void set_allocated_transaction(std::string* transaction);
  2173. // @@protoc_insertion_point(class_scope:google.firestore.v1.RollbackRequest)
  2174. private:
  2175. class _Internal;
  2176. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2177. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2178. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2179. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2180. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2181. };
  2182. // -------------------------------------------------------------------
  2183. class RunQueryRequest :
  2184. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryRequest) */ {
  2185. public:
  2186. RunQueryRequest();
  2187. virtual ~RunQueryRequest();
  2188. RunQueryRequest(const RunQueryRequest& from);
  2189. RunQueryRequest(RunQueryRequest&& from) noexcept
  2190. : RunQueryRequest() {
  2191. *this = ::std::move(from);
  2192. }
  2193. inline RunQueryRequest& operator=(const RunQueryRequest& from) {
  2194. CopyFrom(from);
  2195. return *this;
  2196. }
  2197. inline RunQueryRequest& operator=(RunQueryRequest&& from) noexcept {
  2198. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2199. if (this != &from) InternalSwap(&from);
  2200. } else {
  2201. CopyFrom(from);
  2202. }
  2203. return *this;
  2204. }
  2205. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2206. return GetDescriptor();
  2207. }
  2208. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2209. return GetMetadataStatic().descriptor;
  2210. }
  2211. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2212. return GetMetadataStatic().reflection;
  2213. }
  2214. static const RunQueryRequest& default_instance();
  2215. enum QueryTypeCase {
  2216. kStructuredQuery = 2,
  2217. QUERY_TYPE_NOT_SET = 0,
  2218. };
  2219. enum ConsistencySelectorCase {
  2220. kTransaction = 5,
  2221. kNewTransaction = 6,
  2222. kReadTime = 7,
  2223. CONSISTENCY_SELECTOR_NOT_SET = 0,
  2224. };
  2225. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2226. static inline const RunQueryRequest* internal_default_instance() {
  2227. return reinterpret_cast<const RunQueryRequest*>(
  2228. &_RunQueryRequest_default_instance_);
  2229. }
  2230. static constexpr int kIndexInFileMessages =
  2231. 13;
  2232. friend void swap(RunQueryRequest& a, RunQueryRequest& b) {
  2233. a.Swap(&b);
  2234. }
  2235. inline void Swap(RunQueryRequest* other) {
  2236. if (other == this) return;
  2237. InternalSwap(other);
  2238. }
  2239. // implements Message ----------------------------------------------
  2240. inline RunQueryRequest* New() const final {
  2241. return CreateMaybeMessage<RunQueryRequest>(nullptr);
  2242. }
  2243. RunQueryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2244. return CreateMaybeMessage<RunQueryRequest>(arena);
  2245. }
  2246. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2247. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2248. void CopyFrom(const RunQueryRequest& from);
  2249. void MergeFrom(const RunQueryRequest& from);
  2250. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2251. bool IsInitialized() const final;
  2252. size_t ByteSizeLong() const final;
  2253. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2254. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2255. #else
  2256. bool MergePartialFromCodedStream(
  2257. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  2258. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2259. void SerializeWithCachedSizes(
  2260. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  2261. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2262. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  2263. int GetCachedSize() const final { return _cached_size_.Get(); }
  2264. private:
  2265. inline void SharedCtor();
  2266. inline void SharedDtor();
  2267. void SetCachedSize(int size) const final;
  2268. void InternalSwap(RunQueryRequest* other);
  2269. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2270. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2271. return "google.firestore.v1.RunQueryRequest";
  2272. }
  2273. private:
  2274. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2275. return nullptr;
  2276. }
  2277. inline void* MaybeArenaPtr() const {
  2278. return nullptr;
  2279. }
  2280. public:
  2281. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2282. private:
  2283. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2284. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2285. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2286. }
  2287. public:
  2288. // nested types ----------------------------------------------------
  2289. // accessors -------------------------------------------------------
  2290. enum : int {
  2291. kParentFieldNumber = 1,
  2292. kStructuredQueryFieldNumber = 2,
  2293. kTransactionFieldNumber = 5,
  2294. kNewTransactionFieldNumber = 6,
  2295. kReadTimeFieldNumber = 7,
  2296. };
  2297. // string parent = 1;
  2298. void clear_parent();
  2299. const std::string& parent() const;
  2300. void set_parent(const std::string& value);
  2301. void set_parent(std::string&& value);
  2302. void set_parent(const char* value);
  2303. void set_parent(const char* value, size_t size);
  2304. std::string* mutable_parent();
  2305. std::string* release_parent();
  2306. void set_allocated_parent(std::string* parent);
  2307. // .google.firestore.v1.StructuredQuery structured_query = 2;
  2308. bool has_structured_query() const;
  2309. void clear_structured_query();
  2310. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  2311. ::google::firestore::v1::StructuredQuery* release_structured_query();
  2312. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  2313. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  2314. // bytes transaction = 5;
  2315. private:
  2316. bool has_transaction() const;
  2317. public:
  2318. void clear_transaction();
  2319. const std::string& transaction() const;
  2320. void set_transaction(const std::string& value);
  2321. void set_transaction(std::string&& value);
  2322. void set_transaction(const char* value);
  2323. void set_transaction(const void* value, size_t size);
  2324. std::string* mutable_transaction();
  2325. std::string* release_transaction();
  2326. void set_allocated_transaction(std::string* transaction);
  2327. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  2328. bool has_new_transaction() const;
  2329. void clear_new_transaction();
  2330. const ::google::firestore::v1::TransactionOptions& new_transaction() const;
  2331. ::google::firestore::v1::TransactionOptions* release_new_transaction();
  2332. ::google::firestore::v1::TransactionOptions* mutable_new_transaction();
  2333. void set_allocated_new_transaction(::google::firestore::v1::TransactionOptions* new_transaction);
  2334. // .google.protobuf.Timestamp read_time = 7;
  2335. bool has_read_time() const;
  2336. void clear_read_time();
  2337. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2338. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2339. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2340. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2341. void clear_query_type();
  2342. QueryTypeCase query_type_case() const;
  2343. void clear_consistency_selector();
  2344. ConsistencySelectorCase consistency_selector_case() const;
  2345. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryRequest)
  2346. private:
  2347. class _Internal;
  2348. void set_has_structured_query();
  2349. void set_has_transaction();
  2350. void set_has_new_transaction();
  2351. void set_has_read_time();
  2352. inline bool has_query_type() const;
  2353. inline void clear_has_query_type();
  2354. inline bool has_consistency_selector() const;
  2355. inline void clear_has_consistency_selector();
  2356. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2357. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  2358. union QueryTypeUnion {
  2359. QueryTypeUnion() {}
  2360. ::google::firestore::v1::StructuredQuery* structured_query_;
  2361. } query_type_;
  2362. union ConsistencySelectorUnion {
  2363. ConsistencySelectorUnion() {}
  2364. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2365. ::google::firestore::v1::TransactionOptions* new_transaction_;
  2366. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2367. } consistency_selector_;
  2368. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2369. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  2370. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2371. };
  2372. // -------------------------------------------------------------------
  2373. class RunQueryResponse :
  2374. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.RunQueryResponse) */ {
  2375. public:
  2376. RunQueryResponse();
  2377. virtual ~RunQueryResponse();
  2378. RunQueryResponse(const RunQueryResponse& from);
  2379. RunQueryResponse(RunQueryResponse&& from) noexcept
  2380. : RunQueryResponse() {
  2381. *this = ::std::move(from);
  2382. }
  2383. inline RunQueryResponse& operator=(const RunQueryResponse& from) {
  2384. CopyFrom(from);
  2385. return *this;
  2386. }
  2387. inline RunQueryResponse& operator=(RunQueryResponse&& from) noexcept {
  2388. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2389. if (this != &from) InternalSwap(&from);
  2390. } else {
  2391. CopyFrom(from);
  2392. }
  2393. return *this;
  2394. }
  2395. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2396. return GetDescriptor();
  2397. }
  2398. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2399. return GetMetadataStatic().descriptor;
  2400. }
  2401. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2402. return GetMetadataStatic().reflection;
  2403. }
  2404. static const RunQueryResponse& default_instance();
  2405. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2406. static inline const RunQueryResponse* internal_default_instance() {
  2407. return reinterpret_cast<const RunQueryResponse*>(
  2408. &_RunQueryResponse_default_instance_);
  2409. }
  2410. static constexpr int kIndexInFileMessages =
  2411. 14;
  2412. friend void swap(RunQueryResponse& a, RunQueryResponse& b) {
  2413. a.Swap(&b);
  2414. }
  2415. inline void Swap(RunQueryResponse* other) {
  2416. if (other == this) return;
  2417. InternalSwap(other);
  2418. }
  2419. // implements Message ----------------------------------------------
  2420. inline RunQueryResponse* New() const final {
  2421. return CreateMaybeMessage<RunQueryResponse>(nullptr);
  2422. }
  2423. RunQueryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2424. return CreateMaybeMessage<RunQueryResponse>(arena);
  2425. }
  2426. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2427. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2428. void CopyFrom(const RunQueryResponse& from);
  2429. void MergeFrom(const RunQueryResponse& from);
  2430. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2431. bool IsInitialized() const final;
  2432. size_t ByteSizeLong() const final;
  2433. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2434. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2435. #else
  2436. bool MergePartialFromCodedStream(
  2437. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  2438. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2439. void SerializeWithCachedSizes(
  2440. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  2441. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2442. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  2443. int GetCachedSize() const final { return _cached_size_.Get(); }
  2444. private:
  2445. inline void SharedCtor();
  2446. inline void SharedDtor();
  2447. void SetCachedSize(int size) const final;
  2448. void InternalSwap(RunQueryResponse* other);
  2449. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2450. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2451. return "google.firestore.v1.RunQueryResponse";
  2452. }
  2453. private:
  2454. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2455. return nullptr;
  2456. }
  2457. inline void* MaybeArenaPtr() const {
  2458. return nullptr;
  2459. }
  2460. public:
  2461. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2462. private:
  2463. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2464. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2465. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2466. }
  2467. public:
  2468. // nested types ----------------------------------------------------
  2469. // accessors -------------------------------------------------------
  2470. enum : int {
  2471. kTransactionFieldNumber = 2,
  2472. kDocumentFieldNumber = 1,
  2473. kReadTimeFieldNumber = 3,
  2474. kSkippedResultsFieldNumber = 4,
  2475. };
  2476. // bytes transaction = 2;
  2477. void clear_transaction();
  2478. const std::string& transaction() const;
  2479. void set_transaction(const std::string& value);
  2480. void set_transaction(std::string&& value);
  2481. void set_transaction(const char* value);
  2482. void set_transaction(const void* value, size_t size);
  2483. std::string* mutable_transaction();
  2484. std::string* release_transaction();
  2485. void set_allocated_transaction(std::string* transaction);
  2486. // .google.firestore.v1.Document document = 1;
  2487. bool has_document() const;
  2488. void clear_document();
  2489. const ::google::firestore::v1::Document& document() const;
  2490. ::google::firestore::v1::Document* release_document();
  2491. ::google::firestore::v1::Document* mutable_document();
  2492. void set_allocated_document(::google::firestore::v1::Document* document);
  2493. // .google.protobuf.Timestamp read_time = 3;
  2494. bool has_read_time() const;
  2495. void clear_read_time();
  2496. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  2497. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  2498. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  2499. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  2500. // int32 skipped_results = 4;
  2501. void clear_skipped_results();
  2502. ::PROTOBUF_NAMESPACE_ID::int32 skipped_results() const;
  2503. void set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value);
  2504. // @@protoc_insertion_point(class_scope:google.firestore.v1.RunQueryResponse)
  2505. private:
  2506. class _Internal;
  2507. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2508. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_;
  2509. ::google::firestore::v1::Document* document_;
  2510. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  2511. ::PROTOBUF_NAMESPACE_ID::int32 skipped_results_;
  2512. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2513. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2514. };
  2515. // -------------------------------------------------------------------
  2516. class WriteRequest_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
  2517. std::string, std::string,
  2518. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2519. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2520. 0 > {
  2521. public:
  2522. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
  2523. std::string, std::string,
  2524. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2525. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2526. 0 > SuperType;
  2527. WriteRequest_LabelsEntry_DoNotUse();
  2528. WriteRequest_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2529. void MergeFrom(const WriteRequest_LabelsEntry_DoNotUse& other);
  2530. static const WriteRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const WriteRequest_LabelsEntry_DoNotUse*>(&_WriteRequest_LabelsEntry_DoNotUse_default_instance_); }
  2531. static bool ValidateKey(std::string* s) {
  2532. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.WriteRequest.LabelsEntry.key");
  2533. }
  2534. static bool ValidateValue(std::string* s) {
  2535. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.WriteRequest.LabelsEntry.value");
  2536. }
  2537. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  2538. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2539. private:
  2540. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2541. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2542. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[15];
  2543. }
  2544. public:
  2545. };
  2546. // -------------------------------------------------------------------
  2547. class WriteRequest :
  2548. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteRequest) */ {
  2549. public:
  2550. WriteRequest();
  2551. virtual ~WriteRequest();
  2552. WriteRequest(const WriteRequest& from);
  2553. WriteRequest(WriteRequest&& from) noexcept
  2554. : WriteRequest() {
  2555. *this = ::std::move(from);
  2556. }
  2557. inline WriteRequest& operator=(const WriteRequest& from) {
  2558. CopyFrom(from);
  2559. return *this;
  2560. }
  2561. inline WriteRequest& operator=(WriteRequest&& from) noexcept {
  2562. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2563. if (this != &from) InternalSwap(&from);
  2564. } else {
  2565. CopyFrom(from);
  2566. }
  2567. return *this;
  2568. }
  2569. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2570. return GetDescriptor();
  2571. }
  2572. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2573. return GetMetadataStatic().descriptor;
  2574. }
  2575. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2576. return GetMetadataStatic().reflection;
  2577. }
  2578. static const WriteRequest& default_instance();
  2579. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2580. static inline const WriteRequest* internal_default_instance() {
  2581. return reinterpret_cast<const WriteRequest*>(
  2582. &_WriteRequest_default_instance_);
  2583. }
  2584. static constexpr int kIndexInFileMessages =
  2585. 16;
  2586. friend void swap(WriteRequest& a, WriteRequest& b) {
  2587. a.Swap(&b);
  2588. }
  2589. inline void Swap(WriteRequest* other) {
  2590. if (other == this) return;
  2591. InternalSwap(other);
  2592. }
  2593. // implements Message ----------------------------------------------
  2594. inline WriteRequest* New() const final {
  2595. return CreateMaybeMessage<WriteRequest>(nullptr);
  2596. }
  2597. WriteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2598. return CreateMaybeMessage<WriteRequest>(arena);
  2599. }
  2600. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2601. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2602. void CopyFrom(const WriteRequest& from);
  2603. void MergeFrom(const WriteRequest& from);
  2604. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2605. bool IsInitialized() const final;
  2606. size_t ByteSizeLong() const final;
  2607. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2608. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2609. #else
  2610. bool MergePartialFromCodedStream(
  2611. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  2612. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2613. void SerializeWithCachedSizes(
  2614. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  2615. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2616. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  2617. int GetCachedSize() const final { return _cached_size_.Get(); }
  2618. private:
  2619. inline void SharedCtor();
  2620. inline void SharedDtor();
  2621. void SetCachedSize(int size) const final;
  2622. void InternalSwap(WriteRequest* other);
  2623. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2624. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2625. return "google.firestore.v1.WriteRequest";
  2626. }
  2627. private:
  2628. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2629. return nullptr;
  2630. }
  2631. inline void* MaybeArenaPtr() const {
  2632. return nullptr;
  2633. }
  2634. public:
  2635. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2636. private:
  2637. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2638. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2639. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2640. }
  2641. public:
  2642. // nested types ----------------------------------------------------
  2643. // accessors -------------------------------------------------------
  2644. enum : int {
  2645. kWritesFieldNumber = 3,
  2646. kLabelsFieldNumber = 5,
  2647. kDatabaseFieldNumber = 1,
  2648. kStreamIdFieldNumber = 2,
  2649. kStreamTokenFieldNumber = 4,
  2650. };
  2651. // repeated .google.firestore.v1.Write writes = 3;
  2652. int writes_size() const;
  2653. void clear_writes();
  2654. ::google::firestore::v1::Write* mutable_writes(int index);
  2655. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  2656. mutable_writes();
  2657. const ::google::firestore::v1::Write& writes(int index) const;
  2658. ::google::firestore::v1::Write* add_writes();
  2659. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  2660. writes() const;
  2661. // map<string, string> labels = 5;
  2662. int labels_size() const;
  2663. void clear_labels();
  2664. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  2665. labels() const;
  2666. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  2667. mutable_labels();
  2668. // string database = 1;
  2669. void clear_database();
  2670. const std::string& database() const;
  2671. void set_database(const std::string& value);
  2672. void set_database(std::string&& value);
  2673. void set_database(const char* value);
  2674. void set_database(const char* value, size_t size);
  2675. std::string* mutable_database();
  2676. std::string* release_database();
  2677. void set_allocated_database(std::string* database);
  2678. // string stream_id = 2;
  2679. void clear_stream_id();
  2680. const std::string& stream_id() const;
  2681. void set_stream_id(const std::string& value);
  2682. void set_stream_id(std::string&& value);
  2683. void set_stream_id(const char* value);
  2684. void set_stream_id(const char* value, size_t size);
  2685. std::string* mutable_stream_id();
  2686. std::string* release_stream_id();
  2687. void set_allocated_stream_id(std::string* stream_id);
  2688. // bytes stream_token = 4;
  2689. void clear_stream_token();
  2690. const std::string& stream_token() const;
  2691. void set_stream_token(const std::string& value);
  2692. void set_stream_token(std::string&& value);
  2693. void set_stream_token(const char* value);
  2694. void set_stream_token(const void* value, size_t size);
  2695. std::string* mutable_stream_token();
  2696. std::string* release_stream_token();
  2697. void set_allocated_stream_token(std::string* stream_token);
  2698. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteRequest)
  2699. private:
  2700. class _Internal;
  2701. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2702. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  2703. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  2704. WriteRequest_LabelsEntry_DoNotUse,
  2705. std::string, std::string,
  2706. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2707. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2708. 0 > labels_;
  2709. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  2710. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_id_;
  2711. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_token_;
  2712. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2713. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2714. };
  2715. // -------------------------------------------------------------------
  2716. class WriteResponse :
  2717. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteResponse) */ {
  2718. public:
  2719. WriteResponse();
  2720. virtual ~WriteResponse();
  2721. WriteResponse(const WriteResponse& from);
  2722. WriteResponse(WriteResponse&& from) noexcept
  2723. : WriteResponse() {
  2724. *this = ::std::move(from);
  2725. }
  2726. inline WriteResponse& operator=(const WriteResponse& from) {
  2727. CopyFrom(from);
  2728. return *this;
  2729. }
  2730. inline WriteResponse& operator=(WriteResponse&& from) noexcept {
  2731. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2732. if (this != &from) InternalSwap(&from);
  2733. } else {
  2734. CopyFrom(from);
  2735. }
  2736. return *this;
  2737. }
  2738. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2739. return GetDescriptor();
  2740. }
  2741. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2742. return GetMetadataStatic().descriptor;
  2743. }
  2744. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2745. return GetMetadataStatic().reflection;
  2746. }
  2747. static const WriteResponse& default_instance();
  2748. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2749. static inline const WriteResponse* internal_default_instance() {
  2750. return reinterpret_cast<const WriteResponse*>(
  2751. &_WriteResponse_default_instance_);
  2752. }
  2753. static constexpr int kIndexInFileMessages =
  2754. 17;
  2755. friend void swap(WriteResponse& a, WriteResponse& b) {
  2756. a.Swap(&b);
  2757. }
  2758. inline void Swap(WriteResponse* other) {
  2759. if (other == this) return;
  2760. InternalSwap(other);
  2761. }
  2762. // implements Message ----------------------------------------------
  2763. inline WriteResponse* New() const final {
  2764. return CreateMaybeMessage<WriteResponse>(nullptr);
  2765. }
  2766. WriteResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2767. return CreateMaybeMessage<WriteResponse>(arena);
  2768. }
  2769. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2770. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2771. void CopyFrom(const WriteResponse& from);
  2772. void MergeFrom(const WriteResponse& from);
  2773. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2774. bool IsInitialized() const final;
  2775. size_t ByteSizeLong() const final;
  2776. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2777. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2778. #else
  2779. bool MergePartialFromCodedStream(
  2780. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  2781. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2782. void SerializeWithCachedSizes(
  2783. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  2784. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2785. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  2786. int GetCachedSize() const final { return _cached_size_.Get(); }
  2787. private:
  2788. inline void SharedCtor();
  2789. inline void SharedDtor();
  2790. void SetCachedSize(int size) const final;
  2791. void InternalSwap(WriteResponse* other);
  2792. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2793. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2794. return "google.firestore.v1.WriteResponse";
  2795. }
  2796. private:
  2797. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2798. return nullptr;
  2799. }
  2800. inline void* MaybeArenaPtr() const {
  2801. return nullptr;
  2802. }
  2803. public:
  2804. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2805. private:
  2806. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2807. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2808. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2809. }
  2810. public:
  2811. // nested types ----------------------------------------------------
  2812. // accessors -------------------------------------------------------
  2813. enum : int {
  2814. kWriteResultsFieldNumber = 3,
  2815. kStreamIdFieldNumber = 1,
  2816. kStreamTokenFieldNumber = 2,
  2817. kCommitTimeFieldNumber = 4,
  2818. };
  2819. // repeated .google.firestore.v1.WriteResult write_results = 3;
  2820. int write_results_size() const;
  2821. void clear_write_results();
  2822. ::google::firestore::v1::WriteResult* mutable_write_results(int index);
  2823. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  2824. mutable_write_results();
  2825. const ::google::firestore::v1::WriteResult& write_results(int index) const;
  2826. ::google::firestore::v1::WriteResult* add_write_results();
  2827. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  2828. write_results() const;
  2829. // string stream_id = 1;
  2830. void clear_stream_id();
  2831. const std::string& stream_id() const;
  2832. void set_stream_id(const std::string& value);
  2833. void set_stream_id(std::string&& value);
  2834. void set_stream_id(const char* value);
  2835. void set_stream_id(const char* value, size_t size);
  2836. std::string* mutable_stream_id();
  2837. std::string* release_stream_id();
  2838. void set_allocated_stream_id(std::string* stream_id);
  2839. // bytes stream_token = 2;
  2840. void clear_stream_token();
  2841. const std::string& stream_token() const;
  2842. void set_stream_token(const std::string& value);
  2843. void set_stream_token(std::string&& value);
  2844. void set_stream_token(const char* value);
  2845. void set_stream_token(const void* value, size_t size);
  2846. std::string* mutable_stream_token();
  2847. std::string* release_stream_token();
  2848. void set_allocated_stream_token(std::string* stream_token);
  2849. // .google.protobuf.Timestamp commit_time = 4;
  2850. bool has_commit_time() const;
  2851. void clear_commit_time();
  2852. const PROTOBUF_NAMESPACE_ID::Timestamp& commit_time() const;
  2853. PROTOBUF_NAMESPACE_ID::Timestamp* release_commit_time();
  2854. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_commit_time();
  2855. void set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time);
  2856. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteResponse)
  2857. private:
  2858. class _Internal;
  2859. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2860. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult > write_results_;
  2861. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_id_;
  2862. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_token_;
  2863. PROTOBUF_NAMESPACE_ID::Timestamp* commit_time_;
  2864. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2865. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  2866. };
  2867. // -------------------------------------------------------------------
  2868. class ListenRequest_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
  2869. std::string, std::string,
  2870. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2871. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2872. 0 > {
  2873. public:
  2874. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
  2875. std::string, std::string,
  2876. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2877. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  2878. 0 > SuperType;
  2879. ListenRequest_LabelsEntry_DoNotUse();
  2880. ListenRequest_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2881. void MergeFrom(const ListenRequest_LabelsEntry_DoNotUse& other);
  2882. static const ListenRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const ListenRequest_LabelsEntry_DoNotUse*>(&_ListenRequest_LabelsEntry_DoNotUse_default_instance_); }
  2883. static bool ValidateKey(std::string* s) {
  2884. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.ListenRequest.LabelsEntry.key");
  2885. }
  2886. static bool ValidateValue(std::string* s) {
  2887. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.ListenRequest.LabelsEntry.value");
  2888. }
  2889. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  2890. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2891. private:
  2892. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2893. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2894. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[18];
  2895. }
  2896. public:
  2897. };
  2898. // -------------------------------------------------------------------
  2899. class ListenRequest :
  2900. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenRequest) */ {
  2901. public:
  2902. ListenRequest();
  2903. virtual ~ListenRequest();
  2904. ListenRequest(const ListenRequest& from);
  2905. ListenRequest(ListenRequest&& from) noexcept
  2906. : ListenRequest() {
  2907. *this = ::std::move(from);
  2908. }
  2909. inline ListenRequest& operator=(const ListenRequest& from) {
  2910. CopyFrom(from);
  2911. return *this;
  2912. }
  2913. inline ListenRequest& operator=(ListenRequest&& from) noexcept {
  2914. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2915. if (this != &from) InternalSwap(&from);
  2916. } else {
  2917. CopyFrom(from);
  2918. }
  2919. return *this;
  2920. }
  2921. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2922. return GetDescriptor();
  2923. }
  2924. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2925. return GetMetadataStatic().descriptor;
  2926. }
  2927. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2928. return GetMetadataStatic().reflection;
  2929. }
  2930. static const ListenRequest& default_instance();
  2931. enum TargetChangeCase {
  2932. kAddTarget = 2,
  2933. kRemoveTarget = 3,
  2934. TARGET_CHANGE_NOT_SET = 0,
  2935. };
  2936. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2937. static inline const ListenRequest* internal_default_instance() {
  2938. return reinterpret_cast<const ListenRequest*>(
  2939. &_ListenRequest_default_instance_);
  2940. }
  2941. static constexpr int kIndexInFileMessages =
  2942. 19;
  2943. friend void swap(ListenRequest& a, ListenRequest& b) {
  2944. a.Swap(&b);
  2945. }
  2946. inline void Swap(ListenRequest* other) {
  2947. if (other == this) return;
  2948. InternalSwap(other);
  2949. }
  2950. // implements Message ----------------------------------------------
  2951. inline ListenRequest* New() const final {
  2952. return CreateMaybeMessage<ListenRequest>(nullptr);
  2953. }
  2954. ListenRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2955. return CreateMaybeMessage<ListenRequest>(arena);
  2956. }
  2957. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2958. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2959. void CopyFrom(const ListenRequest& from);
  2960. void MergeFrom(const ListenRequest& from);
  2961. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2962. bool IsInitialized() const final;
  2963. size_t ByteSizeLong() const final;
  2964. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2965. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2966. #else
  2967. bool MergePartialFromCodedStream(
  2968. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  2969. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  2970. void SerializeWithCachedSizes(
  2971. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  2972. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2973. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  2974. int GetCachedSize() const final { return _cached_size_.Get(); }
  2975. private:
  2976. inline void SharedCtor();
  2977. inline void SharedDtor();
  2978. void SetCachedSize(int size) const final;
  2979. void InternalSwap(ListenRequest* other);
  2980. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2981. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2982. return "google.firestore.v1.ListenRequest";
  2983. }
  2984. private:
  2985. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2986. return nullptr;
  2987. }
  2988. inline void* MaybeArenaPtr() const {
  2989. return nullptr;
  2990. }
  2991. public:
  2992. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2993. private:
  2994. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2995. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  2996. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  2997. }
  2998. public:
  2999. // nested types ----------------------------------------------------
  3000. // accessors -------------------------------------------------------
  3001. enum : int {
  3002. kLabelsFieldNumber = 4,
  3003. kDatabaseFieldNumber = 1,
  3004. kAddTargetFieldNumber = 2,
  3005. kRemoveTargetFieldNumber = 3,
  3006. };
  3007. // map<string, string> labels = 4;
  3008. int labels_size() const;
  3009. void clear_labels();
  3010. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  3011. labels() const;
  3012. ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  3013. mutable_labels();
  3014. // string database = 1;
  3015. void clear_database();
  3016. const std::string& database() const;
  3017. void set_database(const std::string& value);
  3018. void set_database(std::string&& value);
  3019. void set_database(const char* value);
  3020. void set_database(const char* value, size_t size);
  3021. std::string* mutable_database();
  3022. std::string* release_database();
  3023. void set_allocated_database(std::string* database);
  3024. // .google.firestore.v1.Target add_target = 2;
  3025. bool has_add_target() const;
  3026. void clear_add_target();
  3027. const ::google::firestore::v1::Target& add_target() const;
  3028. ::google::firestore::v1::Target* release_add_target();
  3029. ::google::firestore::v1::Target* mutable_add_target();
  3030. void set_allocated_add_target(::google::firestore::v1::Target* add_target);
  3031. // int32 remove_target = 3;
  3032. private:
  3033. bool has_remove_target() const;
  3034. public:
  3035. void clear_remove_target();
  3036. ::PROTOBUF_NAMESPACE_ID::int32 remove_target() const;
  3037. void set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value);
  3038. void clear_target_change();
  3039. TargetChangeCase target_change_case() const;
  3040. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenRequest)
  3041. private:
  3042. class _Internal;
  3043. void set_has_add_target();
  3044. void set_has_remove_target();
  3045. inline bool has_target_change() const;
  3046. inline void clear_has_target_change();
  3047. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3048. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  3049. ListenRequest_LabelsEntry_DoNotUse,
  3050. std::string, std::string,
  3051. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3052. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  3053. 0 > labels_;
  3054. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_;
  3055. union TargetChangeUnion {
  3056. TargetChangeUnion() {}
  3057. ::google::firestore::v1::Target* add_target_;
  3058. ::PROTOBUF_NAMESPACE_ID::int32 remove_target_;
  3059. } target_change_;
  3060. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3061. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3062. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3063. };
  3064. // -------------------------------------------------------------------
  3065. class ListenResponse :
  3066. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListenResponse) */ {
  3067. public:
  3068. ListenResponse();
  3069. virtual ~ListenResponse();
  3070. ListenResponse(const ListenResponse& from);
  3071. ListenResponse(ListenResponse&& from) noexcept
  3072. : ListenResponse() {
  3073. *this = ::std::move(from);
  3074. }
  3075. inline ListenResponse& operator=(const ListenResponse& from) {
  3076. CopyFrom(from);
  3077. return *this;
  3078. }
  3079. inline ListenResponse& operator=(ListenResponse&& from) noexcept {
  3080. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3081. if (this != &from) InternalSwap(&from);
  3082. } else {
  3083. CopyFrom(from);
  3084. }
  3085. return *this;
  3086. }
  3087. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3088. return GetDescriptor();
  3089. }
  3090. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3091. return GetMetadataStatic().descriptor;
  3092. }
  3093. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3094. return GetMetadataStatic().reflection;
  3095. }
  3096. static const ListenResponse& default_instance();
  3097. enum ResponseTypeCase {
  3098. kTargetChange = 2,
  3099. kDocumentChange = 3,
  3100. kDocumentDelete = 4,
  3101. kDocumentRemove = 6,
  3102. kFilter = 5,
  3103. RESPONSE_TYPE_NOT_SET = 0,
  3104. };
  3105. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3106. static inline const ListenResponse* internal_default_instance() {
  3107. return reinterpret_cast<const ListenResponse*>(
  3108. &_ListenResponse_default_instance_);
  3109. }
  3110. static constexpr int kIndexInFileMessages =
  3111. 20;
  3112. friend void swap(ListenResponse& a, ListenResponse& b) {
  3113. a.Swap(&b);
  3114. }
  3115. inline void Swap(ListenResponse* other) {
  3116. if (other == this) return;
  3117. InternalSwap(other);
  3118. }
  3119. // implements Message ----------------------------------------------
  3120. inline ListenResponse* New() const final {
  3121. return CreateMaybeMessage<ListenResponse>(nullptr);
  3122. }
  3123. ListenResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3124. return CreateMaybeMessage<ListenResponse>(arena);
  3125. }
  3126. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3127. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3128. void CopyFrom(const ListenResponse& from);
  3129. void MergeFrom(const ListenResponse& from);
  3130. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3131. bool IsInitialized() const final;
  3132. size_t ByteSizeLong() const final;
  3133. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3134. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3135. #else
  3136. bool MergePartialFromCodedStream(
  3137. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  3138. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3139. void SerializeWithCachedSizes(
  3140. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  3141. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3142. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  3143. int GetCachedSize() const final { return _cached_size_.Get(); }
  3144. private:
  3145. inline void SharedCtor();
  3146. inline void SharedDtor();
  3147. void SetCachedSize(int size) const final;
  3148. void InternalSwap(ListenResponse* other);
  3149. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3150. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3151. return "google.firestore.v1.ListenResponse";
  3152. }
  3153. private:
  3154. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3155. return nullptr;
  3156. }
  3157. inline void* MaybeArenaPtr() const {
  3158. return nullptr;
  3159. }
  3160. public:
  3161. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3162. private:
  3163. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3164. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3165. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3166. }
  3167. public:
  3168. // nested types ----------------------------------------------------
  3169. // accessors -------------------------------------------------------
  3170. enum : int {
  3171. kTargetChangeFieldNumber = 2,
  3172. kDocumentChangeFieldNumber = 3,
  3173. kDocumentDeleteFieldNumber = 4,
  3174. kDocumentRemoveFieldNumber = 6,
  3175. kFilterFieldNumber = 5,
  3176. };
  3177. // .google.firestore.v1.TargetChange target_change = 2;
  3178. bool has_target_change() const;
  3179. void clear_target_change();
  3180. const ::google::firestore::v1::TargetChange& target_change() const;
  3181. ::google::firestore::v1::TargetChange* release_target_change();
  3182. ::google::firestore::v1::TargetChange* mutable_target_change();
  3183. void set_allocated_target_change(::google::firestore::v1::TargetChange* target_change);
  3184. // .google.firestore.v1.DocumentChange document_change = 3;
  3185. bool has_document_change() const;
  3186. void clear_document_change();
  3187. const ::google::firestore::v1::DocumentChange& document_change() const;
  3188. ::google::firestore::v1::DocumentChange* release_document_change();
  3189. ::google::firestore::v1::DocumentChange* mutable_document_change();
  3190. void set_allocated_document_change(::google::firestore::v1::DocumentChange* document_change);
  3191. // .google.firestore.v1.DocumentDelete document_delete = 4;
  3192. bool has_document_delete() const;
  3193. void clear_document_delete();
  3194. const ::google::firestore::v1::DocumentDelete& document_delete() const;
  3195. ::google::firestore::v1::DocumentDelete* release_document_delete();
  3196. ::google::firestore::v1::DocumentDelete* mutable_document_delete();
  3197. void set_allocated_document_delete(::google::firestore::v1::DocumentDelete* document_delete);
  3198. // .google.firestore.v1.DocumentRemove document_remove = 6;
  3199. bool has_document_remove() const;
  3200. void clear_document_remove();
  3201. const ::google::firestore::v1::DocumentRemove& document_remove() const;
  3202. ::google::firestore::v1::DocumentRemove* release_document_remove();
  3203. ::google::firestore::v1::DocumentRemove* mutable_document_remove();
  3204. void set_allocated_document_remove(::google::firestore::v1::DocumentRemove* document_remove);
  3205. // .google.firestore.v1.ExistenceFilter filter = 5;
  3206. bool has_filter() const;
  3207. void clear_filter();
  3208. const ::google::firestore::v1::ExistenceFilter& filter() const;
  3209. ::google::firestore::v1::ExistenceFilter* release_filter();
  3210. ::google::firestore::v1::ExistenceFilter* mutable_filter();
  3211. void set_allocated_filter(::google::firestore::v1::ExistenceFilter* filter);
  3212. void clear_response_type();
  3213. ResponseTypeCase response_type_case() const;
  3214. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListenResponse)
  3215. private:
  3216. class _Internal;
  3217. void set_has_target_change();
  3218. void set_has_document_change();
  3219. void set_has_document_delete();
  3220. void set_has_document_remove();
  3221. void set_has_filter();
  3222. inline bool has_response_type() const;
  3223. inline void clear_has_response_type();
  3224. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3225. union ResponseTypeUnion {
  3226. ResponseTypeUnion() {}
  3227. ::google::firestore::v1::TargetChange* target_change_;
  3228. ::google::firestore::v1::DocumentChange* document_change_;
  3229. ::google::firestore::v1::DocumentDelete* document_delete_;
  3230. ::google::firestore::v1::DocumentRemove* document_remove_;
  3231. ::google::firestore::v1::ExistenceFilter* filter_;
  3232. } response_type_;
  3233. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3234. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3235. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3236. };
  3237. // -------------------------------------------------------------------
  3238. class Target_DocumentsTarget :
  3239. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.DocumentsTarget) */ {
  3240. public:
  3241. Target_DocumentsTarget();
  3242. virtual ~Target_DocumentsTarget();
  3243. Target_DocumentsTarget(const Target_DocumentsTarget& from);
  3244. Target_DocumentsTarget(Target_DocumentsTarget&& from) noexcept
  3245. : Target_DocumentsTarget() {
  3246. *this = ::std::move(from);
  3247. }
  3248. inline Target_DocumentsTarget& operator=(const Target_DocumentsTarget& from) {
  3249. CopyFrom(from);
  3250. return *this;
  3251. }
  3252. inline Target_DocumentsTarget& operator=(Target_DocumentsTarget&& from) noexcept {
  3253. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3254. if (this != &from) InternalSwap(&from);
  3255. } else {
  3256. CopyFrom(from);
  3257. }
  3258. return *this;
  3259. }
  3260. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3261. return GetDescriptor();
  3262. }
  3263. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3264. return GetMetadataStatic().descriptor;
  3265. }
  3266. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3267. return GetMetadataStatic().reflection;
  3268. }
  3269. static const Target_DocumentsTarget& default_instance();
  3270. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3271. static inline const Target_DocumentsTarget* internal_default_instance() {
  3272. return reinterpret_cast<const Target_DocumentsTarget*>(
  3273. &_Target_DocumentsTarget_default_instance_);
  3274. }
  3275. static constexpr int kIndexInFileMessages =
  3276. 21;
  3277. friend void swap(Target_DocumentsTarget& a, Target_DocumentsTarget& b) {
  3278. a.Swap(&b);
  3279. }
  3280. inline void Swap(Target_DocumentsTarget* other) {
  3281. if (other == this) return;
  3282. InternalSwap(other);
  3283. }
  3284. // implements Message ----------------------------------------------
  3285. inline Target_DocumentsTarget* New() const final {
  3286. return CreateMaybeMessage<Target_DocumentsTarget>(nullptr);
  3287. }
  3288. Target_DocumentsTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3289. return CreateMaybeMessage<Target_DocumentsTarget>(arena);
  3290. }
  3291. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3292. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3293. void CopyFrom(const Target_DocumentsTarget& from);
  3294. void MergeFrom(const Target_DocumentsTarget& from);
  3295. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3296. bool IsInitialized() const final;
  3297. size_t ByteSizeLong() const final;
  3298. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3299. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3300. #else
  3301. bool MergePartialFromCodedStream(
  3302. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  3303. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3304. void SerializeWithCachedSizes(
  3305. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  3306. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3307. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  3308. int GetCachedSize() const final { return _cached_size_.Get(); }
  3309. private:
  3310. inline void SharedCtor();
  3311. inline void SharedDtor();
  3312. void SetCachedSize(int size) const final;
  3313. void InternalSwap(Target_DocumentsTarget* other);
  3314. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3315. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3316. return "google.firestore.v1.Target.DocumentsTarget";
  3317. }
  3318. private:
  3319. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3320. return nullptr;
  3321. }
  3322. inline void* MaybeArenaPtr() const {
  3323. return nullptr;
  3324. }
  3325. public:
  3326. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3327. private:
  3328. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3329. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3330. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3331. }
  3332. public:
  3333. // nested types ----------------------------------------------------
  3334. // accessors -------------------------------------------------------
  3335. enum : int {
  3336. kDocumentsFieldNumber = 2,
  3337. };
  3338. // repeated string documents = 2;
  3339. int documents_size() const;
  3340. void clear_documents();
  3341. const std::string& documents(int index) const;
  3342. std::string* mutable_documents(int index);
  3343. void set_documents(int index, const std::string& value);
  3344. void set_documents(int index, std::string&& value);
  3345. void set_documents(int index, const char* value);
  3346. void set_documents(int index, const char* value, size_t size);
  3347. std::string* add_documents();
  3348. void add_documents(const std::string& value);
  3349. void add_documents(std::string&& value);
  3350. void add_documents(const char* value);
  3351. void add_documents(const char* value, size_t size);
  3352. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& documents() const;
  3353. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_documents();
  3354. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.DocumentsTarget)
  3355. private:
  3356. class _Internal;
  3357. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3358. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> documents_;
  3359. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3360. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3361. };
  3362. // -------------------------------------------------------------------
  3363. class Target_QueryTarget :
  3364. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target.QueryTarget) */ {
  3365. public:
  3366. Target_QueryTarget();
  3367. virtual ~Target_QueryTarget();
  3368. Target_QueryTarget(const Target_QueryTarget& from);
  3369. Target_QueryTarget(Target_QueryTarget&& from) noexcept
  3370. : Target_QueryTarget() {
  3371. *this = ::std::move(from);
  3372. }
  3373. inline Target_QueryTarget& operator=(const Target_QueryTarget& from) {
  3374. CopyFrom(from);
  3375. return *this;
  3376. }
  3377. inline Target_QueryTarget& operator=(Target_QueryTarget&& from) noexcept {
  3378. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3379. if (this != &from) InternalSwap(&from);
  3380. } else {
  3381. CopyFrom(from);
  3382. }
  3383. return *this;
  3384. }
  3385. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3386. return GetDescriptor();
  3387. }
  3388. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3389. return GetMetadataStatic().descriptor;
  3390. }
  3391. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3392. return GetMetadataStatic().reflection;
  3393. }
  3394. static const Target_QueryTarget& default_instance();
  3395. enum QueryTypeCase {
  3396. kStructuredQuery = 2,
  3397. QUERY_TYPE_NOT_SET = 0,
  3398. };
  3399. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3400. static inline const Target_QueryTarget* internal_default_instance() {
  3401. return reinterpret_cast<const Target_QueryTarget*>(
  3402. &_Target_QueryTarget_default_instance_);
  3403. }
  3404. static constexpr int kIndexInFileMessages =
  3405. 22;
  3406. friend void swap(Target_QueryTarget& a, Target_QueryTarget& b) {
  3407. a.Swap(&b);
  3408. }
  3409. inline void Swap(Target_QueryTarget* other) {
  3410. if (other == this) return;
  3411. InternalSwap(other);
  3412. }
  3413. // implements Message ----------------------------------------------
  3414. inline Target_QueryTarget* New() const final {
  3415. return CreateMaybeMessage<Target_QueryTarget>(nullptr);
  3416. }
  3417. Target_QueryTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3418. return CreateMaybeMessage<Target_QueryTarget>(arena);
  3419. }
  3420. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3421. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3422. void CopyFrom(const Target_QueryTarget& from);
  3423. void MergeFrom(const Target_QueryTarget& from);
  3424. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3425. bool IsInitialized() const final;
  3426. size_t ByteSizeLong() const final;
  3427. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3428. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3429. #else
  3430. bool MergePartialFromCodedStream(
  3431. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  3432. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3433. void SerializeWithCachedSizes(
  3434. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  3435. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3436. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  3437. int GetCachedSize() const final { return _cached_size_.Get(); }
  3438. private:
  3439. inline void SharedCtor();
  3440. inline void SharedDtor();
  3441. void SetCachedSize(int size) const final;
  3442. void InternalSwap(Target_QueryTarget* other);
  3443. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3444. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3445. return "google.firestore.v1.Target.QueryTarget";
  3446. }
  3447. private:
  3448. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3449. return nullptr;
  3450. }
  3451. inline void* MaybeArenaPtr() const {
  3452. return nullptr;
  3453. }
  3454. public:
  3455. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3456. private:
  3457. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3458. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3459. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3460. }
  3461. public:
  3462. // nested types ----------------------------------------------------
  3463. // accessors -------------------------------------------------------
  3464. enum : int {
  3465. kParentFieldNumber = 1,
  3466. kStructuredQueryFieldNumber = 2,
  3467. };
  3468. // string parent = 1;
  3469. void clear_parent();
  3470. const std::string& parent() const;
  3471. void set_parent(const std::string& value);
  3472. void set_parent(std::string&& value);
  3473. void set_parent(const char* value);
  3474. void set_parent(const char* value, size_t size);
  3475. std::string* mutable_parent();
  3476. std::string* release_parent();
  3477. void set_allocated_parent(std::string* parent);
  3478. // .google.firestore.v1.StructuredQuery structured_query = 2;
  3479. bool has_structured_query() const;
  3480. void clear_structured_query();
  3481. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  3482. ::google::firestore::v1::StructuredQuery* release_structured_query();
  3483. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  3484. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  3485. void clear_query_type();
  3486. QueryTypeCase query_type_case() const;
  3487. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target.QueryTarget)
  3488. private:
  3489. class _Internal;
  3490. void set_has_structured_query();
  3491. inline bool has_query_type() const;
  3492. inline void clear_has_query_type();
  3493. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3494. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  3495. union QueryTypeUnion {
  3496. QueryTypeUnion() {}
  3497. ::google::firestore::v1::StructuredQuery* structured_query_;
  3498. } query_type_;
  3499. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3500. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  3501. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3502. };
  3503. // -------------------------------------------------------------------
  3504. class Target :
  3505. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Target) */ {
  3506. public:
  3507. Target();
  3508. virtual ~Target();
  3509. Target(const Target& from);
  3510. Target(Target&& from) noexcept
  3511. : Target() {
  3512. *this = ::std::move(from);
  3513. }
  3514. inline Target& operator=(const Target& from) {
  3515. CopyFrom(from);
  3516. return *this;
  3517. }
  3518. inline Target& operator=(Target&& from) noexcept {
  3519. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3520. if (this != &from) InternalSwap(&from);
  3521. } else {
  3522. CopyFrom(from);
  3523. }
  3524. return *this;
  3525. }
  3526. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3527. return GetDescriptor();
  3528. }
  3529. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3530. return GetMetadataStatic().descriptor;
  3531. }
  3532. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3533. return GetMetadataStatic().reflection;
  3534. }
  3535. static const Target& default_instance();
  3536. enum TargetTypeCase {
  3537. kQuery = 2,
  3538. kDocuments = 3,
  3539. TARGET_TYPE_NOT_SET = 0,
  3540. };
  3541. enum ResumeTypeCase {
  3542. kResumeToken = 4,
  3543. kReadTime = 11,
  3544. RESUME_TYPE_NOT_SET = 0,
  3545. };
  3546. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3547. static inline const Target* internal_default_instance() {
  3548. return reinterpret_cast<const Target*>(
  3549. &_Target_default_instance_);
  3550. }
  3551. static constexpr int kIndexInFileMessages =
  3552. 23;
  3553. friend void swap(Target& a, Target& b) {
  3554. a.Swap(&b);
  3555. }
  3556. inline void Swap(Target* other) {
  3557. if (other == this) return;
  3558. InternalSwap(other);
  3559. }
  3560. // implements Message ----------------------------------------------
  3561. inline Target* New() const final {
  3562. return CreateMaybeMessage<Target>(nullptr);
  3563. }
  3564. Target* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3565. return CreateMaybeMessage<Target>(arena);
  3566. }
  3567. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3568. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3569. void CopyFrom(const Target& from);
  3570. void MergeFrom(const Target& from);
  3571. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3572. bool IsInitialized() const final;
  3573. size_t ByteSizeLong() const final;
  3574. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3575. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3576. #else
  3577. bool MergePartialFromCodedStream(
  3578. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  3579. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3580. void SerializeWithCachedSizes(
  3581. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  3582. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3583. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  3584. int GetCachedSize() const final { return _cached_size_.Get(); }
  3585. private:
  3586. inline void SharedCtor();
  3587. inline void SharedDtor();
  3588. void SetCachedSize(int size) const final;
  3589. void InternalSwap(Target* other);
  3590. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3591. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3592. return "google.firestore.v1.Target";
  3593. }
  3594. private:
  3595. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3596. return nullptr;
  3597. }
  3598. inline void* MaybeArenaPtr() const {
  3599. return nullptr;
  3600. }
  3601. public:
  3602. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3603. private:
  3604. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3605. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3606. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3607. }
  3608. public:
  3609. // nested types ----------------------------------------------------
  3610. typedef Target_DocumentsTarget DocumentsTarget;
  3611. typedef Target_QueryTarget QueryTarget;
  3612. // accessors -------------------------------------------------------
  3613. enum : int {
  3614. kTargetIdFieldNumber = 5,
  3615. kOnceFieldNumber = 6,
  3616. kQueryFieldNumber = 2,
  3617. kDocumentsFieldNumber = 3,
  3618. kResumeTokenFieldNumber = 4,
  3619. kReadTimeFieldNumber = 11,
  3620. };
  3621. // int32 target_id = 5;
  3622. void clear_target_id();
  3623. ::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
  3624. void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  3625. // bool once = 6;
  3626. void clear_once();
  3627. bool once() const;
  3628. void set_once(bool value);
  3629. // .google.firestore.v1.Target.QueryTarget query = 2;
  3630. bool has_query() const;
  3631. void clear_query();
  3632. const ::google::firestore::v1::Target_QueryTarget& query() const;
  3633. ::google::firestore::v1::Target_QueryTarget* release_query();
  3634. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  3635. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* query);
  3636. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  3637. bool has_documents() const;
  3638. void clear_documents();
  3639. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  3640. ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  3641. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  3642. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* documents);
  3643. // bytes resume_token = 4;
  3644. private:
  3645. bool has_resume_token() const;
  3646. public:
  3647. void clear_resume_token();
  3648. const std::string& resume_token() const;
  3649. void set_resume_token(const std::string& value);
  3650. void set_resume_token(std::string&& value);
  3651. void set_resume_token(const char* value);
  3652. void set_resume_token(const void* value, size_t size);
  3653. std::string* mutable_resume_token();
  3654. std::string* release_resume_token();
  3655. void set_allocated_resume_token(std::string* resume_token);
  3656. // .google.protobuf.Timestamp read_time = 11;
  3657. bool has_read_time() const;
  3658. void clear_read_time();
  3659. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  3660. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  3661. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  3662. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  3663. void clear_target_type();
  3664. TargetTypeCase target_type_case() const;
  3665. void clear_resume_type();
  3666. ResumeTypeCase resume_type_case() const;
  3667. // @@protoc_insertion_point(class_scope:google.firestore.v1.Target)
  3668. private:
  3669. class _Internal;
  3670. void set_has_query();
  3671. void set_has_documents();
  3672. void set_has_resume_token();
  3673. void set_has_read_time();
  3674. inline bool has_target_type() const;
  3675. inline void clear_has_target_type();
  3676. inline bool has_resume_type() const;
  3677. inline void clear_has_resume_type();
  3678. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3679. ::PROTOBUF_NAMESPACE_ID::int32 target_id_;
  3680. bool once_;
  3681. union TargetTypeUnion {
  3682. TargetTypeUnion() {}
  3683. ::google::firestore::v1::Target_QueryTarget* query_;
  3684. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  3685. } target_type_;
  3686. union ResumeTypeUnion {
  3687. ResumeTypeUnion() {}
  3688. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  3689. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  3690. } resume_type_;
  3691. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3692. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2];
  3693. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3694. };
  3695. // -------------------------------------------------------------------
  3696. class TargetChange :
  3697. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TargetChange) */ {
  3698. public:
  3699. TargetChange();
  3700. virtual ~TargetChange();
  3701. TargetChange(const TargetChange& from);
  3702. TargetChange(TargetChange&& from) noexcept
  3703. : TargetChange() {
  3704. *this = ::std::move(from);
  3705. }
  3706. inline TargetChange& operator=(const TargetChange& from) {
  3707. CopyFrom(from);
  3708. return *this;
  3709. }
  3710. inline TargetChange& operator=(TargetChange&& from) noexcept {
  3711. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3712. if (this != &from) InternalSwap(&from);
  3713. } else {
  3714. CopyFrom(from);
  3715. }
  3716. return *this;
  3717. }
  3718. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3719. return GetDescriptor();
  3720. }
  3721. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3722. return GetMetadataStatic().descriptor;
  3723. }
  3724. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3725. return GetMetadataStatic().reflection;
  3726. }
  3727. static const TargetChange& default_instance();
  3728. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3729. static inline const TargetChange* internal_default_instance() {
  3730. return reinterpret_cast<const TargetChange*>(
  3731. &_TargetChange_default_instance_);
  3732. }
  3733. static constexpr int kIndexInFileMessages =
  3734. 24;
  3735. friend void swap(TargetChange& a, TargetChange& b) {
  3736. a.Swap(&b);
  3737. }
  3738. inline void Swap(TargetChange* other) {
  3739. if (other == this) return;
  3740. InternalSwap(other);
  3741. }
  3742. // implements Message ----------------------------------------------
  3743. inline TargetChange* New() const final {
  3744. return CreateMaybeMessage<TargetChange>(nullptr);
  3745. }
  3746. TargetChange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3747. return CreateMaybeMessage<TargetChange>(arena);
  3748. }
  3749. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3750. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3751. void CopyFrom(const TargetChange& from);
  3752. void MergeFrom(const TargetChange& from);
  3753. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3754. bool IsInitialized() const final;
  3755. size_t ByteSizeLong() const final;
  3756. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3757. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3758. #else
  3759. bool MergePartialFromCodedStream(
  3760. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  3761. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3762. void SerializeWithCachedSizes(
  3763. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  3764. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3765. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  3766. int GetCachedSize() const final { return _cached_size_.Get(); }
  3767. private:
  3768. inline void SharedCtor();
  3769. inline void SharedDtor();
  3770. void SetCachedSize(int size) const final;
  3771. void InternalSwap(TargetChange* other);
  3772. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3773. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3774. return "google.firestore.v1.TargetChange";
  3775. }
  3776. private:
  3777. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3778. return nullptr;
  3779. }
  3780. inline void* MaybeArenaPtr() const {
  3781. return nullptr;
  3782. }
  3783. public:
  3784. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3785. private:
  3786. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3787. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3788. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3789. }
  3790. public:
  3791. // nested types ----------------------------------------------------
  3792. typedef TargetChange_TargetChangeType TargetChangeType;
  3793. static constexpr TargetChangeType NO_CHANGE =
  3794. TargetChange_TargetChangeType_NO_CHANGE;
  3795. static constexpr TargetChangeType ADD =
  3796. TargetChange_TargetChangeType_ADD;
  3797. static constexpr TargetChangeType REMOVE =
  3798. TargetChange_TargetChangeType_REMOVE;
  3799. static constexpr TargetChangeType CURRENT =
  3800. TargetChange_TargetChangeType_CURRENT;
  3801. static constexpr TargetChangeType RESET =
  3802. TargetChange_TargetChangeType_RESET;
  3803. static inline bool TargetChangeType_IsValid(int value) {
  3804. return TargetChange_TargetChangeType_IsValid(value);
  3805. }
  3806. static constexpr TargetChangeType TargetChangeType_MIN =
  3807. TargetChange_TargetChangeType_TargetChangeType_MIN;
  3808. static constexpr TargetChangeType TargetChangeType_MAX =
  3809. TargetChange_TargetChangeType_TargetChangeType_MAX;
  3810. static constexpr int TargetChangeType_ARRAYSIZE =
  3811. TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE;
  3812. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  3813. TargetChangeType_descriptor() {
  3814. return TargetChange_TargetChangeType_descriptor();
  3815. }
  3816. template<typename T>
  3817. static inline const std::string& TargetChangeType_Name(T enum_t_value) {
  3818. static_assert(::std::is_same<T, TargetChangeType>::value ||
  3819. ::std::is_integral<T>::value,
  3820. "Incorrect type passed to function TargetChangeType_Name.");
  3821. return TargetChange_TargetChangeType_Name(enum_t_value);
  3822. }
  3823. static inline bool TargetChangeType_Parse(const std::string& name,
  3824. TargetChangeType* value) {
  3825. return TargetChange_TargetChangeType_Parse(name, value);
  3826. }
  3827. // accessors -------------------------------------------------------
  3828. enum : int {
  3829. kTargetIdsFieldNumber = 2,
  3830. kResumeTokenFieldNumber = 4,
  3831. kCauseFieldNumber = 3,
  3832. kReadTimeFieldNumber = 6,
  3833. kTargetChangeTypeFieldNumber = 1,
  3834. };
  3835. // repeated int32 target_ids = 2;
  3836. int target_ids_size() const;
  3837. void clear_target_ids();
  3838. ::PROTOBUF_NAMESPACE_ID::int32 target_ids(int index) const;
  3839. void set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  3840. void add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  3841. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  3842. target_ids() const;
  3843. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  3844. mutable_target_ids();
  3845. // bytes resume_token = 4;
  3846. void clear_resume_token();
  3847. const std::string& resume_token() const;
  3848. void set_resume_token(const std::string& value);
  3849. void set_resume_token(std::string&& value);
  3850. void set_resume_token(const char* value);
  3851. void set_resume_token(const void* value, size_t size);
  3852. std::string* mutable_resume_token();
  3853. std::string* release_resume_token();
  3854. void set_allocated_resume_token(std::string* resume_token);
  3855. // .google.rpc.Status cause = 3;
  3856. bool has_cause() const;
  3857. void clear_cause();
  3858. const ::google::rpc::Status& cause() const;
  3859. ::google::rpc::Status* release_cause();
  3860. ::google::rpc::Status* mutable_cause();
  3861. void set_allocated_cause(::google::rpc::Status* cause);
  3862. // .google.protobuf.Timestamp read_time = 6;
  3863. bool has_read_time() const;
  3864. void clear_read_time();
  3865. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  3866. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  3867. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  3868. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  3869. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  3870. void clear_target_change_type();
  3871. ::google::firestore::v1::TargetChange_TargetChangeType target_change_type() const;
  3872. void set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value);
  3873. // @@protoc_insertion_point(class_scope:google.firestore.v1.TargetChange)
  3874. private:
  3875. class _Internal;
  3876. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3877. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > target_ids_;
  3878. mutable std::atomic<int> _target_ids_cached_byte_size_;
  3879. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  3880. ::google::rpc::Status* cause_;
  3881. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  3882. int target_change_type_;
  3883. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3884. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  3885. };
  3886. // -------------------------------------------------------------------
  3887. class ListCollectionIdsRequest :
  3888. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsRequest) */ {
  3889. public:
  3890. ListCollectionIdsRequest();
  3891. virtual ~ListCollectionIdsRequest();
  3892. ListCollectionIdsRequest(const ListCollectionIdsRequest& from);
  3893. ListCollectionIdsRequest(ListCollectionIdsRequest&& from) noexcept
  3894. : ListCollectionIdsRequest() {
  3895. *this = ::std::move(from);
  3896. }
  3897. inline ListCollectionIdsRequest& operator=(const ListCollectionIdsRequest& from) {
  3898. CopyFrom(from);
  3899. return *this;
  3900. }
  3901. inline ListCollectionIdsRequest& operator=(ListCollectionIdsRequest&& from) noexcept {
  3902. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3903. if (this != &from) InternalSwap(&from);
  3904. } else {
  3905. CopyFrom(from);
  3906. }
  3907. return *this;
  3908. }
  3909. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3910. return GetDescriptor();
  3911. }
  3912. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3913. return GetMetadataStatic().descriptor;
  3914. }
  3915. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3916. return GetMetadataStatic().reflection;
  3917. }
  3918. static const ListCollectionIdsRequest& default_instance();
  3919. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3920. static inline const ListCollectionIdsRequest* internal_default_instance() {
  3921. return reinterpret_cast<const ListCollectionIdsRequest*>(
  3922. &_ListCollectionIdsRequest_default_instance_);
  3923. }
  3924. static constexpr int kIndexInFileMessages =
  3925. 25;
  3926. friend void swap(ListCollectionIdsRequest& a, ListCollectionIdsRequest& b) {
  3927. a.Swap(&b);
  3928. }
  3929. inline void Swap(ListCollectionIdsRequest* other) {
  3930. if (other == this) return;
  3931. InternalSwap(other);
  3932. }
  3933. // implements Message ----------------------------------------------
  3934. inline ListCollectionIdsRequest* New() const final {
  3935. return CreateMaybeMessage<ListCollectionIdsRequest>(nullptr);
  3936. }
  3937. ListCollectionIdsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3938. return CreateMaybeMessage<ListCollectionIdsRequest>(arena);
  3939. }
  3940. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3941. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3942. void CopyFrom(const ListCollectionIdsRequest& from);
  3943. void MergeFrom(const ListCollectionIdsRequest& from);
  3944. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3945. bool IsInitialized() const final;
  3946. size_t ByteSizeLong() const final;
  3947. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3948. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3949. #else
  3950. bool MergePartialFromCodedStream(
  3951. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  3952. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  3953. void SerializeWithCachedSizes(
  3954. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  3955. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3956. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  3957. int GetCachedSize() const final { return _cached_size_.Get(); }
  3958. private:
  3959. inline void SharedCtor();
  3960. inline void SharedDtor();
  3961. void SetCachedSize(int size) const final;
  3962. void InternalSwap(ListCollectionIdsRequest* other);
  3963. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3964. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3965. return "google.firestore.v1.ListCollectionIdsRequest";
  3966. }
  3967. private:
  3968. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3969. return nullptr;
  3970. }
  3971. inline void* MaybeArenaPtr() const {
  3972. return nullptr;
  3973. }
  3974. public:
  3975. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3976. private:
  3977. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3978. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  3979. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  3980. }
  3981. public:
  3982. // nested types ----------------------------------------------------
  3983. // accessors -------------------------------------------------------
  3984. enum : int {
  3985. kParentFieldNumber = 1,
  3986. kPageTokenFieldNumber = 3,
  3987. kPageSizeFieldNumber = 2,
  3988. };
  3989. // string parent = 1;
  3990. void clear_parent();
  3991. const std::string& parent() const;
  3992. void set_parent(const std::string& value);
  3993. void set_parent(std::string&& value);
  3994. void set_parent(const char* value);
  3995. void set_parent(const char* value, size_t size);
  3996. std::string* mutable_parent();
  3997. std::string* release_parent();
  3998. void set_allocated_parent(std::string* parent);
  3999. // string page_token = 3;
  4000. void clear_page_token();
  4001. const std::string& page_token() const;
  4002. void set_page_token(const std::string& value);
  4003. void set_page_token(std::string&& value);
  4004. void set_page_token(const char* value);
  4005. void set_page_token(const char* value, size_t size);
  4006. std::string* mutable_page_token();
  4007. std::string* release_page_token();
  4008. void set_allocated_page_token(std::string* page_token);
  4009. // int32 page_size = 2;
  4010. void clear_page_size();
  4011. ::PROTOBUF_NAMESPACE_ID::int32 page_size() const;
  4012. void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value);
  4013. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsRequest)
  4014. private:
  4015. class _Internal;
  4016. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4017. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  4018. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_;
  4019. ::PROTOBUF_NAMESPACE_ID::int32 page_size_;
  4020. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4021. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4022. };
  4023. // -------------------------------------------------------------------
  4024. class ListCollectionIdsResponse :
  4025. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ListCollectionIdsResponse) */ {
  4026. public:
  4027. ListCollectionIdsResponse();
  4028. virtual ~ListCollectionIdsResponse();
  4029. ListCollectionIdsResponse(const ListCollectionIdsResponse& from);
  4030. ListCollectionIdsResponse(ListCollectionIdsResponse&& from) noexcept
  4031. : ListCollectionIdsResponse() {
  4032. *this = ::std::move(from);
  4033. }
  4034. inline ListCollectionIdsResponse& operator=(const ListCollectionIdsResponse& from) {
  4035. CopyFrom(from);
  4036. return *this;
  4037. }
  4038. inline ListCollectionIdsResponse& operator=(ListCollectionIdsResponse&& from) noexcept {
  4039. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4040. if (this != &from) InternalSwap(&from);
  4041. } else {
  4042. CopyFrom(from);
  4043. }
  4044. return *this;
  4045. }
  4046. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4047. return GetDescriptor();
  4048. }
  4049. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4050. return GetMetadataStatic().descriptor;
  4051. }
  4052. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4053. return GetMetadataStatic().reflection;
  4054. }
  4055. static const ListCollectionIdsResponse& default_instance();
  4056. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4057. static inline const ListCollectionIdsResponse* internal_default_instance() {
  4058. return reinterpret_cast<const ListCollectionIdsResponse*>(
  4059. &_ListCollectionIdsResponse_default_instance_);
  4060. }
  4061. static constexpr int kIndexInFileMessages =
  4062. 26;
  4063. friend void swap(ListCollectionIdsResponse& a, ListCollectionIdsResponse& b) {
  4064. a.Swap(&b);
  4065. }
  4066. inline void Swap(ListCollectionIdsResponse* other) {
  4067. if (other == this) return;
  4068. InternalSwap(other);
  4069. }
  4070. // implements Message ----------------------------------------------
  4071. inline ListCollectionIdsResponse* New() const final {
  4072. return CreateMaybeMessage<ListCollectionIdsResponse>(nullptr);
  4073. }
  4074. ListCollectionIdsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4075. return CreateMaybeMessage<ListCollectionIdsResponse>(arena);
  4076. }
  4077. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4078. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4079. void CopyFrom(const ListCollectionIdsResponse& from);
  4080. void MergeFrom(const ListCollectionIdsResponse& from);
  4081. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4082. bool IsInitialized() const final;
  4083. size_t ByteSizeLong() const final;
  4084. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  4085. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4086. #else
  4087. bool MergePartialFromCodedStream(
  4088. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  4089. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  4090. void SerializeWithCachedSizes(
  4091. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  4092. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  4093. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  4094. int GetCachedSize() const final { return _cached_size_.Get(); }
  4095. private:
  4096. inline void SharedCtor();
  4097. inline void SharedDtor();
  4098. void SetCachedSize(int size) const final;
  4099. void InternalSwap(ListCollectionIdsResponse* other);
  4100. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4101. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4102. return "google.firestore.v1.ListCollectionIdsResponse";
  4103. }
  4104. private:
  4105. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4106. return nullptr;
  4107. }
  4108. inline void* MaybeArenaPtr() const {
  4109. return nullptr;
  4110. }
  4111. public:
  4112. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4113. private:
  4114. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4115. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto);
  4116. return ::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto.file_level_metadata[kIndexInFileMessages];
  4117. }
  4118. public:
  4119. // nested types ----------------------------------------------------
  4120. // accessors -------------------------------------------------------
  4121. enum : int {
  4122. kCollectionIdsFieldNumber = 1,
  4123. kNextPageTokenFieldNumber = 2,
  4124. };
  4125. // repeated string collection_ids = 1;
  4126. int collection_ids_size() const;
  4127. void clear_collection_ids();
  4128. const std::string& collection_ids(int index) const;
  4129. std::string* mutable_collection_ids(int index);
  4130. void set_collection_ids(int index, const std::string& value);
  4131. void set_collection_ids(int index, std::string&& value);
  4132. void set_collection_ids(int index, const char* value);
  4133. void set_collection_ids(int index, const char* value, size_t size);
  4134. std::string* add_collection_ids();
  4135. void add_collection_ids(const std::string& value);
  4136. void add_collection_ids(std::string&& value);
  4137. void add_collection_ids(const char* value);
  4138. void add_collection_ids(const char* value, size_t size);
  4139. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& collection_ids() const;
  4140. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_collection_ids();
  4141. // string next_page_token = 2;
  4142. void clear_next_page_token();
  4143. const std::string& next_page_token() const;
  4144. void set_next_page_token(const std::string& value);
  4145. void set_next_page_token(std::string&& value);
  4146. void set_next_page_token(const char* value);
  4147. void set_next_page_token(const char* value, size_t size);
  4148. std::string* mutable_next_page_token();
  4149. std::string* release_next_page_token();
  4150. void set_allocated_next_page_token(std::string* next_page_token);
  4151. // @@protoc_insertion_point(class_scope:google.firestore.v1.ListCollectionIdsResponse)
  4152. private:
  4153. class _Internal;
  4154. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4155. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> collection_ids_;
  4156. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_;
  4157. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4158. friend struct ::TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto;
  4159. };
  4160. // ===================================================================
  4161. // ===================================================================
  4162. #ifdef __GNUC__
  4163. #pragma GCC diagnostic push
  4164. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  4165. #endif // __GNUC__
  4166. // GetDocumentRequest
  4167. // string name = 1;
  4168. inline void GetDocumentRequest::clear_name() {
  4169. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4170. }
  4171. inline const std::string& GetDocumentRequest::name() const {
  4172. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.name)
  4173. return name_.GetNoArena();
  4174. }
  4175. inline void GetDocumentRequest::set_name(const std::string& value) {
  4176. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4177. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.name)
  4178. }
  4179. inline void GetDocumentRequest::set_name(std::string&& value) {
  4180. name_.SetNoArena(
  4181. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4182. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.GetDocumentRequest.name)
  4183. }
  4184. inline void GetDocumentRequest::set_name(const char* value) {
  4185. GOOGLE_DCHECK(value != nullptr);
  4186. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4187. // @@protoc_insertion_point(field_set_char:google.firestore.v1.GetDocumentRequest.name)
  4188. }
  4189. inline void GetDocumentRequest::set_name(const char* value, size_t size) {
  4190. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4191. ::std::string(reinterpret_cast<const char*>(value), size));
  4192. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.GetDocumentRequest.name)
  4193. }
  4194. inline std::string* GetDocumentRequest::mutable_name() {
  4195. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.name)
  4196. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4197. }
  4198. inline std::string* GetDocumentRequest::release_name() {
  4199. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.name)
  4200. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4201. }
  4202. inline void GetDocumentRequest::set_allocated_name(std::string* name) {
  4203. if (name != nullptr) {
  4204. } else {
  4205. }
  4206. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  4207. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.name)
  4208. }
  4209. // .google.firestore.v1.DocumentMask mask = 2;
  4210. inline bool GetDocumentRequest::has_mask() const {
  4211. return this != internal_default_instance() && mask_ != nullptr;
  4212. }
  4213. inline const ::google::firestore::v1::DocumentMask& GetDocumentRequest::mask() const {
  4214. const ::google::firestore::v1::DocumentMask* p = mask_;
  4215. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.mask)
  4216. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  4217. &::google::firestore::v1::_DocumentMask_default_instance_);
  4218. }
  4219. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::release_mask() {
  4220. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.mask)
  4221. ::google::firestore::v1::DocumentMask* temp = mask_;
  4222. mask_ = nullptr;
  4223. return temp;
  4224. }
  4225. inline ::google::firestore::v1::DocumentMask* GetDocumentRequest::mutable_mask() {
  4226. if (mask_ == nullptr) {
  4227. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  4228. mask_ = p;
  4229. }
  4230. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.mask)
  4231. return mask_;
  4232. }
  4233. inline void GetDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  4234. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  4235. if (message_arena == nullptr) {
  4236. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  4237. }
  4238. if (mask) {
  4239. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  4240. if (message_arena != submessage_arena) {
  4241. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4242. message_arena, mask, submessage_arena);
  4243. }
  4244. } else {
  4245. }
  4246. mask_ = mask;
  4247. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.mask)
  4248. }
  4249. // bytes transaction = 3;
  4250. inline bool GetDocumentRequest::has_transaction() const {
  4251. return consistency_selector_case() == kTransaction;
  4252. }
  4253. inline void GetDocumentRequest::set_has_transaction() {
  4254. _oneof_case_[0] = kTransaction;
  4255. }
  4256. inline void GetDocumentRequest::clear_transaction() {
  4257. if (has_transaction()) {
  4258. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4259. clear_has_consistency_selector();
  4260. }
  4261. }
  4262. inline const std::string& GetDocumentRequest::transaction() const {
  4263. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.transaction)
  4264. if (has_transaction()) {
  4265. return consistency_selector_.transaction_.GetNoArena();
  4266. }
  4267. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  4268. }
  4269. inline void GetDocumentRequest::set_transaction(const std::string& value) {
  4270. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  4271. if (!has_transaction()) {
  4272. clear_consistency_selector();
  4273. set_has_transaction();
  4274. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4275. }
  4276. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4277. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  4278. }
  4279. inline void GetDocumentRequest::set_transaction(std::string&& value) {
  4280. // @@protoc_insertion_point(field_set:google.firestore.v1.GetDocumentRequest.transaction)
  4281. if (!has_transaction()) {
  4282. clear_consistency_selector();
  4283. set_has_transaction();
  4284. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4285. }
  4286. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4287. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.GetDocumentRequest.transaction)
  4288. }
  4289. inline void GetDocumentRequest::set_transaction(const char* value) {
  4290. GOOGLE_DCHECK(value != nullptr);
  4291. if (!has_transaction()) {
  4292. clear_consistency_selector();
  4293. set_has_transaction();
  4294. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4295. }
  4296. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4297. ::std::string(value));
  4298. // @@protoc_insertion_point(field_set_char:google.firestore.v1.GetDocumentRequest.transaction)
  4299. }
  4300. inline void GetDocumentRequest::set_transaction(const void* value, size_t size) {
  4301. if (!has_transaction()) {
  4302. clear_consistency_selector();
  4303. set_has_transaction();
  4304. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4305. }
  4306. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  4307. reinterpret_cast<const char*>(value), size));
  4308. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.GetDocumentRequest.transaction)
  4309. }
  4310. inline std::string* GetDocumentRequest::mutable_transaction() {
  4311. if (!has_transaction()) {
  4312. clear_consistency_selector();
  4313. set_has_transaction();
  4314. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4315. }
  4316. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.transaction)
  4317. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4318. }
  4319. inline std::string* GetDocumentRequest::release_transaction() {
  4320. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.transaction)
  4321. if (has_transaction()) {
  4322. clear_has_consistency_selector();
  4323. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4324. } else {
  4325. return nullptr;
  4326. }
  4327. }
  4328. inline void GetDocumentRequest::set_allocated_transaction(std::string* transaction) {
  4329. if (has_consistency_selector()) {
  4330. clear_consistency_selector();
  4331. }
  4332. if (transaction != nullptr) {
  4333. set_has_transaction();
  4334. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  4335. }
  4336. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.GetDocumentRequest.transaction)
  4337. }
  4338. // .google.protobuf.Timestamp read_time = 5;
  4339. inline bool GetDocumentRequest::has_read_time() const {
  4340. return consistency_selector_case() == kReadTime;
  4341. }
  4342. inline void GetDocumentRequest::set_has_read_time() {
  4343. _oneof_case_[0] = kReadTime;
  4344. }
  4345. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::release_read_time() {
  4346. // @@protoc_insertion_point(field_release:google.firestore.v1.GetDocumentRequest.read_time)
  4347. if (has_read_time()) {
  4348. clear_has_consistency_selector();
  4349. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  4350. consistency_selector_.read_time_ = nullptr;
  4351. return temp;
  4352. } else {
  4353. return nullptr;
  4354. }
  4355. }
  4356. inline const PROTOBUF_NAMESPACE_ID::Timestamp& GetDocumentRequest::read_time() const {
  4357. // @@protoc_insertion_point(field_get:google.firestore.v1.GetDocumentRequest.read_time)
  4358. return has_read_time()
  4359. ? *consistency_selector_.read_time_
  4360. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  4361. }
  4362. inline PROTOBUF_NAMESPACE_ID::Timestamp* GetDocumentRequest::mutable_read_time() {
  4363. if (!has_read_time()) {
  4364. clear_consistency_selector();
  4365. set_has_read_time();
  4366. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  4367. GetArenaNoVirtual());
  4368. }
  4369. // @@protoc_insertion_point(field_mutable:google.firestore.v1.GetDocumentRequest.read_time)
  4370. return consistency_selector_.read_time_;
  4371. }
  4372. inline bool GetDocumentRequest::has_consistency_selector() const {
  4373. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  4374. }
  4375. inline void GetDocumentRequest::clear_has_consistency_selector() {
  4376. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  4377. }
  4378. inline GetDocumentRequest::ConsistencySelectorCase GetDocumentRequest::consistency_selector_case() const {
  4379. return GetDocumentRequest::ConsistencySelectorCase(_oneof_case_[0]);
  4380. }
  4381. // -------------------------------------------------------------------
  4382. // ListDocumentsRequest
  4383. // string parent = 1;
  4384. inline void ListDocumentsRequest::clear_parent() {
  4385. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4386. }
  4387. inline const std::string& ListDocumentsRequest::parent() const {
  4388. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.parent)
  4389. return parent_.GetNoArena();
  4390. }
  4391. inline void ListDocumentsRequest::set_parent(const std::string& value) {
  4392. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4393. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.parent)
  4394. }
  4395. inline void ListDocumentsRequest::set_parent(std::string&& value) {
  4396. parent_.SetNoArena(
  4397. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4398. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.parent)
  4399. }
  4400. inline void ListDocumentsRequest::set_parent(const char* value) {
  4401. GOOGLE_DCHECK(value != nullptr);
  4402. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4403. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.parent)
  4404. }
  4405. inline void ListDocumentsRequest::set_parent(const char* value, size_t size) {
  4406. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4407. ::std::string(reinterpret_cast<const char*>(value), size));
  4408. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.parent)
  4409. }
  4410. inline std::string* ListDocumentsRequest::mutable_parent() {
  4411. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.parent)
  4412. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4413. }
  4414. inline std::string* ListDocumentsRequest::release_parent() {
  4415. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.parent)
  4416. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4417. }
  4418. inline void ListDocumentsRequest::set_allocated_parent(std::string* parent) {
  4419. if (parent != nullptr) {
  4420. } else {
  4421. }
  4422. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  4423. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.parent)
  4424. }
  4425. // string collection_id = 2;
  4426. inline void ListDocumentsRequest::clear_collection_id() {
  4427. collection_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4428. }
  4429. inline const std::string& ListDocumentsRequest::collection_id() const {
  4430. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.collection_id)
  4431. return collection_id_.GetNoArena();
  4432. }
  4433. inline void ListDocumentsRequest::set_collection_id(const std::string& value) {
  4434. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4435. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.collection_id)
  4436. }
  4437. inline void ListDocumentsRequest::set_collection_id(std::string&& value) {
  4438. collection_id_.SetNoArena(
  4439. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4440. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.collection_id)
  4441. }
  4442. inline void ListDocumentsRequest::set_collection_id(const char* value) {
  4443. GOOGLE_DCHECK(value != nullptr);
  4444. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4445. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.collection_id)
  4446. }
  4447. inline void ListDocumentsRequest::set_collection_id(const char* value, size_t size) {
  4448. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4449. ::std::string(reinterpret_cast<const char*>(value), size));
  4450. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.collection_id)
  4451. }
  4452. inline std::string* ListDocumentsRequest::mutable_collection_id() {
  4453. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.collection_id)
  4454. return collection_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4455. }
  4456. inline std::string* ListDocumentsRequest::release_collection_id() {
  4457. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.collection_id)
  4458. return collection_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4459. }
  4460. inline void ListDocumentsRequest::set_allocated_collection_id(std::string* collection_id) {
  4461. if (collection_id != nullptr) {
  4462. } else {
  4463. }
  4464. collection_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_id);
  4465. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.collection_id)
  4466. }
  4467. // int32 page_size = 3;
  4468. inline void ListDocumentsRequest::clear_page_size() {
  4469. page_size_ = 0;
  4470. }
  4471. inline ::PROTOBUF_NAMESPACE_ID::int32 ListDocumentsRequest::page_size() const {
  4472. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_size)
  4473. return page_size_;
  4474. }
  4475. inline void ListDocumentsRequest::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  4476. page_size_ = value;
  4477. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_size)
  4478. }
  4479. // string page_token = 4;
  4480. inline void ListDocumentsRequest::clear_page_token() {
  4481. page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4482. }
  4483. inline const std::string& ListDocumentsRequest::page_token() const {
  4484. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.page_token)
  4485. return page_token_.GetNoArena();
  4486. }
  4487. inline void ListDocumentsRequest::set_page_token(const std::string& value) {
  4488. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4489. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.page_token)
  4490. }
  4491. inline void ListDocumentsRequest::set_page_token(std::string&& value) {
  4492. page_token_.SetNoArena(
  4493. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4494. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.page_token)
  4495. }
  4496. inline void ListDocumentsRequest::set_page_token(const char* value) {
  4497. GOOGLE_DCHECK(value != nullptr);
  4498. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4499. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.page_token)
  4500. }
  4501. inline void ListDocumentsRequest::set_page_token(const char* value, size_t size) {
  4502. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4503. ::std::string(reinterpret_cast<const char*>(value), size));
  4504. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.page_token)
  4505. }
  4506. inline std::string* ListDocumentsRequest::mutable_page_token() {
  4507. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.page_token)
  4508. return page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4509. }
  4510. inline std::string* ListDocumentsRequest::release_page_token() {
  4511. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.page_token)
  4512. return page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4513. }
  4514. inline void ListDocumentsRequest::set_allocated_page_token(std::string* page_token) {
  4515. if (page_token != nullptr) {
  4516. } else {
  4517. }
  4518. page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token);
  4519. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.page_token)
  4520. }
  4521. // string order_by = 6;
  4522. inline void ListDocumentsRequest::clear_order_by() {
  4523. order_by_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4524. }
  4525. inline const std::string& ListDocumentsRequest::order_by() const {
  4526. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.order_by)
  4527. return order_by_.GetNoArena();
  4528. }
  4529. inline void ListDocumentsRequest::set_order_by(const std::string& value) {
  4530. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4531. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.order_by)
  4532. }
  4533. inline void ListDocumentsRequest::set_order_by(std::string&& value) {
  4534. order_by_.SetNoArena(
  4535. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4536. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.order_by)
  4537. }
  4538. inline void ListDocumentsRequest::set_order_by(const char* value) {
  4539. GOOGLE_DCHECK(value != nullptr);
  4540. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4541. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.order_by)
  4542. }
  4543. inline void ListDocumentsRequest::set_order_by(const char* value, size_t size) {
  4544. order_by_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4545. ::std::string(reinterpret_cast<const char*>(value), size));
  4546. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.order_by)
  4547. }
  4548. inline std::string* ListDocumentsRequest::mutable_order_by() {
  4549. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.order_by)
  4550. return order_by_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4551. }
  4552. inline std::string* ListDocumentsRequest::release_order_by() {
  4553. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.order_by)
  4554. return order_by_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4555. }
  4556. inline void ListDocumentsRequest::set_allocated_order_by(std::string* order_by) {
  4557. if (order_by != nullptr) {
  4558. } else {
  4559. }
  4560. order_by_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_by);
  4561. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.order_by)
  4562. }
  4563. // .google.firestore.v1.DocumentMask mask = 7;
  4564. inline bool ListDocumentsRequest::has_mask() const {
  4565. return this != internal_default_instance() && mask_ != nullptr;
  4566. }
  4567. inline const ::google::firestore::v1::DocumentMask& ListDocumentsRequest::mask() const {
  4568. const ::google::firestore::v1::DocumentMask* p = mask_;
  4569. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.mask)
  4570. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  4571. &::google::firestore::v1::_DocumentMask_default_instance_);
  4572. }
  4573. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::release_mask() {
  4574. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.mask)
  4575. ::google::firestore::v1::DocumentMask* temp = mask_;
  4576. mask_ = nullptr;
  4577. return temp;
  4578. }
  4579. inline ::google::firestore::v1::DocumentMask* ListDocumentsRequest::mutable_mask() {
  4580. if (mask_ == nullptr) {
  4581. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  4582. mask_ = p;
  4583. }
  4584. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.mask)
  4585. return mask_;
  4586. }
  4587. inline void ListDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  4588. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  4589. if (message_arena == nullptr) {
  4590. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  4591. }
  4592. if (mask) {
  4593. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  4594. if (message_arena != submessage_arena) {
  4595. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4596. message_arena, mask, submessage_arena);
  4597. }
  4598. } else {
  4599. }
  4600. mask_ = mask;
  4601. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.mask)
  4602. }
  4603. // bytes transaction = 8;
  4604. inline bool ListDocumentsRequest::has_transaction() const {
  4605. return consistency_selector_case() == kTransaction;
  4606. }
  4607. inline void ListDocumentsRequest::set_has_transaction() {
  4608. _oneof_case_[0] = kTransaction;
  4609. }
  4610. inline void ListDocumentsRequest::clear_transaction() {
  4611. if (has_transaction()) {
  4612. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4613. clear_has_consistency_selector();
  4614. }
  4615. }
  4616. inline const std::string& ListDocumentsRequest::transaction() const {
  4617. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.transaction)
  4618. if (has_transaction()) {
  4619. return consistency_selector_.transaction_.GetNoArena();
  4620. }
  4621. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  4622. }
  4623. inline void ListDocumentsRequest::set_transaction(const std::string& value) {
  4624. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  4625. if (!has_transaction()) {
  4626. clear_consistency_selector();
  4627. set_has_transaction();
  4628. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4629. }
  4630. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4631. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  4632. }
  4633. inline void ListDocumentsRequest::set_transaction(std::string&& value) {
  4634. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.transaction)
  4635. if (!has_transaction()) {
  4636. clear_consistency_selector();
  4637. set_has_transaction();
  4638. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4639. }
  4640. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4641. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsRequest.transaction)
  4642. }
  4643. inline void ListDocumentsRequest::set_transaction(const char* value) {
  4644. GOOGLE_DCHECK(value != nullptr);
  4645. if (!has_transaction()) {
  4646. clear_consistency_selector();
  4647. set_has_transaction();
  4648. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4649. }
  4650. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4651. ::std::string(value));
  4652. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsRequest.transaction)
  4653. }
  4654. inline void ListDocumentsRequest::set_transaction(const void* value, size_t size) {
  4655. if (!has_transaction()) {
  4656. clear_consistency_selector();
  4657. set_has_transaction();
  4658. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4659. }
  4660. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  4661. reinterpret_cast<const char*>(value), size));
  4662. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsRequest.transaction)
  4663. }
  4664. inline std::string* ListDocumentsRequest::mutable_transaction() {
  4665. if (!has_transaction()) {
  4666. clear_consistency_selector();
  4667. set_has_transaction();
  4668. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4669. }
  4670. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.transaction)
  4671. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4672. }
  4673. inline std::string* ListDocumentsRequest::release_transaction() {
  4674. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.transaction)
  4675. if (has_transaction()) {
  4676. clear_has_consistency_selector();
  4677. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4678. } else {
  4679. return nullptr;
  4680. }
  4681. }
  4682. inline void ListDocumentsRequest::set_allocated_transaction(std::string* transaction) {
  4683. if (has_consistency_selector()) {
  4684. clear_consistency_selector();
  4685. }
  4686. if (transaction != nullptr) {
  4687. set_has_transaction();
  4688. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  4689. }
  4690. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsRequest.transaction)
  4691. }
  4692. // .google.protobuf.Timestamp read_time = 10;
  4693. inline bool ListDocumentsRequest::has_read_time() const {
  4694. return consistency_selector_case() == kReadTime;
  4695. }
  4696. inline void ListDocumentsRequest::set_has_read_time() {
  4697. _oneof_case_[0] = kReadTime;
  4698. }
  4699. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::release_read_time() {
  4700. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsRequest.read_time)
  4701. if (has_read_time()) {
  4702. clear_has_consistency_selector();
  4703. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  4704. consistency_selector_.read_time_ = nullptr;
  4705. return temp;
  4706. } else {
  4707. return nullptr;
  4708. }
  4709. }
  4710. inline const PROTOBUF_NAMESPACE_ID::Timestamp& ListDocumentsRequest::read_time() const {
  4711. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.read_time)
  4712. return has_read_time()
  4713. ? *consistency_selector_.read_time_
  4714. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  4715. }
  4716. inline PROTOBUF_NAMESPACE_ID::Timestamp* ListDocumentsRequest::mutable_read_time() {
  4717. if (!has_read_time()) {
  4718. clear_consistency_selector();
  4719. set_has_read_time();
  4720. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  4721. GetArenaNoVirtual());
  4722. }
  4723. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsRequest.read_time)
  4724. return consistency_selector_.read_time_;
  4725. }
  4726. // bool show_missing = 12;
  4727. inline void ListDocumentsRequest::clear_show_missing() {
  4728. show_missing_ = false;
  4729. }
  4730. inline bool ListDocumentsRequest::show_missing() const {
  4731. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsRequest.show_missing)
  4732. return show_missing_;
  4733. }
  4734. inline void ListDocumentsRequest::set_show_missing(bool value) {
  4735. show_missing_ = value;
  4736. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsRequest.show_missing)
  4737. }
  4738. inline bool ListDocumentsRequest::has_consistency_selector() const {
  4739. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  4740. }
  4741. inline void ListDocumentsRequest::clear_has_consistency_selector() {
  4742. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  4743. }
  4744. inline ListDocumentsRequest::ConsistencySelectorCase ListDocumentsRequest::consistency_selector_case() const {
  4745. return ListDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
  4746. }
  4747. // -------------------------------------------------------------------
  4748. // ListDocumentsResponse
  4749. // repeated .google.firestore.v1.Document documents = 1;
  4750. inline int ListDocumentsResponse::documents_size() const {
  4751. return documents_.size();
  4752. }
  4753. inline ::google::firestore::v1::Document* ListDocumentsResponse::mutable_documents(int index) {
  4754. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.documents)
  4755. return documents_.Mutable(index);
  4756. }
  4757. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >*
  4758. ListDocumentsResponse::mutable_documents() {
  4759. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListDocumentsResponse.documents)
  4760. return &documents_;
  4761. }
  4762. inline const ::google::firestore::v1::Document& ListDocumentsResponse::documents(int index) const {
  4763. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.documents)
  4764. return documents_.Get(index);
  4765. }
  4766. inline ::google::firestore::v1::Document* ListDocumentsResponse::add_documents() {
  4767. // @@protoc_insertion_point(field_add:google.firestore.v1.ListDocumentsResponse.documents)
  4768. return documents_.Add();
  4769. }
  4770. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Document >&
  4771. ListDocumentsResponse::documents() const {
  4772. // @@protoc_insertion_point(field_list:google.firestore.v1.ListDocumentsResponse.documents)
  4773. return documents_;
  4774. }
  4775. // string next_page_token = 2;
  4776. inline void ListDocumentsResponse::clear_next_page_token() {
  4777. next_page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4778. }
  4779. inline const std::string& ListDocumentsResponse::next_page_token() const {
  4780. // @@protoc_insertion_point(field_get:google.firestore.v1.ListDocumentsResponse.next_page_token)
  4781. return next_page_token_.GetNoArena();
  4782. }
  4783. inline void ListDocumentsResponse::set_next_page_token(const std::string& value) {
  4784. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4785. // @@protoc_insertion_point(field_set:google.firestore.v1.ListDocumentsResponse.next_page_token)
  4786. }
  4787. inline void ListDocumentsResponse::set_next_page_token(std::string&& value) {
  4788. next_page_token_.SetNoArena(
  4789. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4790. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListDocumentsResponse.next_page_token)
  4791. }
  4792. inline void ListDocumentsResponse::set_next_page_token(const char* value) {
  4793. GOOGLE_DCHECK(value != nullptr);
  4794. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4795. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListDocumentsResponse.next_page_token)
  4796. }
  4797. inline void ListDocumentsResponse::set_next_page_token(const char* value, size_t size) {
  4798. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4799. ::std::string(reinterpret_cast<const char*>(value), size));
  4800. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListDocumentsResponse.next_page_token)
  4801. }
  4802. inline std::string* ListDocumentsResponse::mutable_next_page_token() {
  4803. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListDocumentsResponse.next_page_token)
  4804. return next_page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4805. }
  4806. inline std::string* ListDocumentsResponse::release_next_page_token() {
  4807. // @@protoc_insertion_point(field_release:google.firestore.v1.ListDocumentsResponse.next_page_token)
  4808. return next_page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4809. }
  4810. inline void ListDocumentsResponse::set_allocated_next_page_token(std::string* next_page_token) {
  4811. if (next_page_token != nullptr) {
  4812. } else {
  4813. }
  4814. next_page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token);
  4815. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListDocumentsResponse.next_page_token)
  4816. }
  4817. // -------------------------------------------------------------------
  4818. // CreateDocumentRequest
  4819. // string parent = 1;
  4820. inline void CreateDocumentRequest::clear_parent() {
  4821. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4822. }
  4823. inline const std::string& CreateDocumentRequest::parent() const {
  4824. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.parent)
  4825. return parent_.GetNoArena();
  4826. }
  4827. inline void CreateDocumentRequest::set_parent(const std::string& value) {
  4828. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4829. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.parent)
  4830. }
  4831. inline void CreateDocumentRequest::set_parent(std::string&& value) {
  4832. parent_.SetNoArena(
  4833. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4834. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.parent)
  4835. }
  4836. inline void CreateDocumentRequest::set_parent(const char* value) {
  4837. GOOGLE_DCHECK(value != nullptr);
  4838. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4839. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.parent)
  4840. }
  4841. inline void CreateDocumentRequest::set_parent(const char* value, size_t size) {
  4842. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4843. ::std::string(reinterpret_cast<const char*>(value), size));
  4844. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.parent)
  4845. }
  4846. inline std::string* CreateDocumentRequest::mutable_parent() {
  4847. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.parent)
  4848. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4849. }
  4850. inline std::string* CreateDocumentRequest::release_parent() {
  4851. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.parent)
  4852. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4853. }
  4854. inline void CreateDocumentRequest::set_allocated_parent(std::string* parent) {
  4855. if (parent != nullptr) {
  4856. } else {
  4857. }
  4858. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  4859. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.parent)
  4860. }
  4861. // string collection_id = 2;
  4862. inline void CreateDocumentRequest::clear_collection_id() {
  4863. collection_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4864. }
  4865. inline const std::string& CreateDocumentRequest::collection_id() const {
  4866. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.collection_id)
  4867. return collection_id_.GetNoArena();
  4868. }
  4869. inline void CreateDocumentRequest::set_collection_id(const std::string& value) {
  4870. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4871. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.collection_id)
  4872. }
  4873. inline void CreateDocumentRequest::set_collection_id(std::string&& value) {
  4874. collection_id_.SetNoArena(
  4875. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4876. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.collection_id)
  4877. }
  4878. inline void CreateDocumentRequest::set_collection_id(const char* value) {
  4879. GOOGLE_DCHECK(value != nullptr);
  4880. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4881. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.collection_id)
  4882. }
  4883. inline void CreateDocumentRequest::set_collection_id(const char* value, size_t size) {
  4884. collection_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4885. ::std::string(reinterpret_cast<const char*>(value), size));
  4886. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.collection_id)
  4887. }
  4888. inline std::string* CreateDocumentRequest::mutable_collection_id() {
  4889. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.collection_id)
  4890. return collection_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4891. }
  4892. inline std::string* CreateDocumentRequest::release_collection_id() {
  4893. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.collection_id)
  4894. return collection_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4895. }
  4896. inline void CreateDocumentRequest::set_allocated_collection_id(std::string* collection_id) {
  4897. if (collection_id != nullptr) {
  4898. } else {
  4899. }
  4900. collection_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_id);
  4901. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.collection_id)
  4902. }
  4903. // string document_id = 3;
  4904. inline void CreateDocumentRequest::clear_document_id() {
  4905. document_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4906. }
  4907. inline const std::string& CreateDocumentRequest::document_id() const {
  4908. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document_id)
  4909. return document_id_.GetNoArena();
  4910. }
  4911. inline void CreateDocumentRequest::set_document_id(const std::string& value) {
  4912. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  4913. // @@protoc_insertion_point(field_set:google.firestore.v1.CreateDocumentRequest.document_id)
  4914. }
  4915. inline void CreateDocumentRequest::set_document_id(std::string&& value) {
  4916. document_id_.SetNoArena(
  4917. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4918. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CreateDocumentRequest.document_id)
  4919. }
  4920. inline void CreateDocumentRequest::set_document_id(const char* value) {
  4921. GOOGLE_DCHECK(value != nullptr);
  4922. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4923. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CreateDocumentRequest.document_id)
  4924. }
  4925. inline void CreateDocumentRequest::set_document_id(const char* value, size_t size) {
  4926. document_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4927. ::std::string(reinterpret_cast<const char*>(value), size));
  4928. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CreateDocumentRequest.document_id)
  4929. }
  4930. inline std::string* CreateDocumentRequest::mutable_document_id() {
  4931. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document_id)
  4932. return document_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4933. }
  4934. inline std::string* CreateDocumentRequest::release_document_id() {
  4935. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document_id)
  4936. return document_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4937. }
  4938. inline void CreateDocumentRequest::set_allocated_document_id(std::string* document_id) {
  4939. if (document_id != nullptr) {
  4940. } else {
  4941. }
  4942. document_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document_id);
  4943. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document_id)
  4944. }
  4945. // .google.firestore.v1.Document document = 4;
  4946. inline bool CreateDocumentRequest::has_document() const {
  4947. return this != internal_default_instance() && document_ != nullptr;
  4948. }
  4949. inline const ::google::firestore::v1::Document& CreateDocumentRequest::document() const {
  4950. const ::google::firestore::v1::Document* p = document_;
  4951. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.document)
  4952. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  4953. &::google::firestore::v1::_Document_default_instance_);
  4954. }
  4955. inline ::google::firestore::v1::Document* CreateDocumentRequest::release_document() {
  4956. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.document)
  4957. ::google::firestore::v1::Document* temp = document_;
  4958. document_ = nullptr;
  4959. return temp;
  4960. }
  4961. inline ::google::firestore::v1::Document* CreateDocumentRequest::mutable_document() {
  4962. if (document_ == nullptr) {
  4963. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  4964. document_ = p;
  4965. }
  4966. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.document)
  4967. return document_;
  4968. }
  4969. inline void CreateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* document) {
  4970. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  4971. if (message_arena == nullptr) {
  4972. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  4973. }
  4974. if (document) {
  4975. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  4976. if (message_arena != submessage_arena) {
  4977. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4978. message_arena, document, submessage_arena);
  4979. }
  4980. } else {
  4981. }
  4982. document_ = document;
  4983. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.document)
  4984. }
  4985. // .google.firestore.v1.DocumentMask mask = 5;
  4986. inline bool CreateDocumentRequest::has_mask() const {
  4987. return this != internal_default_instance() && mask_ != nullptr;
  4988. }
  4989. inline const ::google::firestore::v1::DocumentMask& CreateDocumentRequest::mask() const {
  4990. const ::google::firestore::v1::DocumentMask* p = mask_;
  4991. // @@protoc_insertion_point(field_get:google.firestore.v1.CreateDocumentRequest.mask)
  4992. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  4993. &::google::firestore::v1::_DocumentMask_default_instance_);
  4994. }
  4995. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::release_mask() {
  4996. // @@protoc_insertion_point(field_release:google.firestore.v1.CreateDocumentRequest.mask)
  4997. ::google::firestore::v1::DocumentMask* temp = mask_;
  4998. mask_ = nullptr;
  4999. return temp;
  5000. }
  5001. inline ::google::firestore::v1::DocumentMask* CreateDocumentRequest::mutable_mask() {
  5002. if (mask_ == nullptr) {
  5003. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5004. mask_ = p;
  5005. }
  5006. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CreateDocumentRequest.mask)
  5007. return mask_;
  5008. }
  5009. inline void CreateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5010. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5011. if (message_arena == nullptr) {
  5012. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5013. }
  5014. if (mask) {
  5015. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5016. if (message_arena != submessage_arena) {
  5017. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5018. message_arena, mask, submessage_arena);
  5019. }
  5020. } else {
  5021. }
  5022. mask_ = mask;
  5023. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CreateDocumentRequest.mask)
  5024. }
  5025. // -------------------------------------------------------------------
  5026. // UpdateDocumentRequest
  5027. // .google.firestore.v1.Document document = 1;
  5028. inline bool UpdateDocumentRequest::has_document() const {
  5029. return this != internal_default_instance() && document_ != nullptr;
  5030. }
  5031. inline const ::google::firestore::v1::Document& UpdateDocumentRequest::document() const {
  5032. const ::google::firestore::v1::Document* p = document_;
  5033. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.document)
  5034. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  5035. &::google::firestore::v1::_Document_default_instance_);
  5036. }
  5037. inline ::google::firestore::v1::Document* UpdateDocumentRequest::release_document() {
  5038. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.document)
  5039. ::google::firestore::v1::Document* temp = document_;
  5040. document_ = nullptr;
  5041. return temp;
  5042. }
  5043. inline ::google::firestore::v1::Document* UpdateDocumentRequest::mutable_document() {
  5044. if (document_ == nullptr) {
  5045. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  5046. document_ = p;
  5047. }
  5048. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.document)
  5049. return document_;
  5050. }
  5051. inline void UpdateDocumentRequest::set_allocated_document(::google::firestore::v1::Document* document) {
  5052. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5053. if (message_arena == nullptr) {
  5054. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  5055. }
  5056. if (document) {
  5057. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5058. if (message_arena != submessage_arena) {
  5059. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5060. message_arena, document, submessage_arena);
  5061. }
  5062. } else {
  5063. }
  5064. document_ = document;
  5065. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.document)
  5066. }
  5067. // .google.firestore.v1.DocumentMask update_mask = 2;
  5068. inline bool UpdateDocumentRequest::has_update_mask() const {
  5069. return this != internal_default_instance() && update_mask_ != nullptr;
  5070. }
  5071. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::update_mask() const {
  5072. const ::google::firestore::v1::DocumentMask* p = update_mask_;
  5073. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.update_mask)
  5074. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5075. &::google::firestore::v1::_DocumentMask_default_instance_);
  5076. }
  5077. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_update_mask() {
  5078. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.update_mask)
  5079. ::google::firestore::v1::DocumentMask* temp = update_mask_;
  5080. update_mask_ = nullptr;
  5081. return temp;
  5082. }
  5083. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_update_mask() {
  5084. if (update_mask_ == nullptr) {
  5085. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5086. update_mask_ = p;
  5087. }
  5088. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.update_mask)
  5089. return update_mask_;
  5090. }
  5091. inline void UpdateDocumentRequest::set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask) {
  5092. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5093. if (message_arena == nullptr) {
  5094. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask_);
  5095. }
  5096. if (update_mask) {
  5097. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5098. if (message_arena != submessage_arena) {
  5099. update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5100. message_arena, update_mask, submessage_arena);
  5101. }
  5102. } else {
  5103. }
  5104. update_mask_ = update_mask;
  5105. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.update_mask)
  5106. }
  5107. // .google.firestore.v1.DocumentMask mask = 3;
  5108. inline bool UpdateDocumentRequest::has_mask() const {
  5109. return this != internal_default_instance() && mask_ != nullptr;
  5110. }
  5111. inline const ::google::firestore::v1::DocumentMask& UpdateDocumentRequest::mask() const {
  5112. const ::google::firestore::v1::DocumentMask* p = mask_;
  5113. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.mask)
  5114. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5115. &::google::firestore::v1::_DocumentMask_default_instance_);
  5116. }
  5117. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::release_mask() {
  5118. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.mask)
  5119. ::google::firestore::v1::DocumentMask* temp = mask_;
  5120. mask_ = nullptr;
  5121. return temp;
  5122. }
  5123. inline ::google::firestore::v1::DocumentMask* UpdateDocumentRequest::mutable_mask() {
  5124. if (mask_ == nullptr) {
  5125. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5126. mask_ = p;
  5127. }
  5128. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.mask)
  5129. return mask_;
  5130. }
  5131. inline void UpdateDocumentRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5132. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5133. if (message_arena == nullptr) {
  5134. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5135. }
  5136. if (mask) {
  5137. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5138. if (message_arena != submessage_arena) {
  5139. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5140. message_arena, mask, submessage_arena);
  5141. }
  5142. } else {
  5143. }
  5144. mask_ = mask;
  5145. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.mask)
  5146. }
  5147. // .google.firestore.v1.Precondition current_document = 4;
  5148. inline bool UpdateDocumentRequest::has_current_document() const {
  5149. return this != internal_default_instance() && current_document_ != nullptr;
  5150. }
  5151. inline const ::google::firestore::v1::Precondition& UpdateDocumentRequest::current_document() const {
  5152. const ::google::firestore::v1::Precondition* p = current_document_;
  5153. // @@protoc_insertion_point(field_get:google.firestore.v1.UpdateDocumentRequest.current_document)
  5154. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  5155. &::google::firestore::v1::_Precondition_default_instance_);
  5156. }
  5157. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::release_current_document() {
  5158. // @@protoc_insertion_point(field_release:google.firestore.v1.UpdateDocumentRequest.current_document)
  5159. ::google::firestore::v1::Precondition* temp = current_document_;
  5160. current_document_ = nullptr;
  5161. return temp;
  5162. }
  5163. inline ::google::firestore::v1::Precondition* UpdateDocumentRequest::mutable_current_document() {
  5164. if (current_document_ == nullptr) {
  5165. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  5166. current_document_ = p;
  5167. }
  5168. // @@protoc_insertion_point(field_mutable:google.firestore.v1.UpdateDocumentRequest.current_document)
  5169. return current_document_;
  5170. }
  5171. inline void UpdateDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  5172. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5173. if (message_arena == nullptr) {
  5174. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  5175. }
  5176. if (current_document) {
  5177. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5178. if (message_arena != submessage_arena) {
  5179. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5180. message_arena, current_document, submessage_arena);
  5181. }
  5182. } else {
  5183. }
  5184. current_document_ = current_document;
  5185. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.UpdateDocumentRequest.current_document)
  5186. }
  5187. // -------------------------------------------------------------------
  5188. // DeleteDocumentRequest
  5189. // string name = 1;
  5190. inline void DeleteDocumentRequest::clear_name() {
  5191. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5192. }
  5193. inline const std::string& DeleteDocumentRequest::name() const {
  5194. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.name)
  5195. return name_.GetNoArena();
  5196. }
  5197. inline void DeleteDocumentRequest::set_name(const std::string& value) {
  5198. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5199. // @@protoc_insertion_point(field_set:google.firestore.v1.DeleteDocumentRequest.name)
  5200. }
  5201. inline void DeleteDocumentRequest::set_name(std::string&& value) {
  5202. name_.SetNoArena(
  5203. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5204. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DeleteDocumentRequest.name)
  5205. }
  5206. inline void DeleteDocumentRequest::set_name(const char* value) {
  5207. GOOGLE_DCHECK(value != nullptr);
  5208. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5209. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DeleteDocumentRequest.name)
  5210. }
  5211. inline void DeleteDocumentRequest::set_name(const char* value, size_t size) {
  5212. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5213. ::std::string(reinterpret_cast<const char*>(value), size));
  5214. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DeleteDocumentRequest.name)
  5215. }
  5216. inline std::string* DeleteDocumentRequest::mutable_name() {
  5217. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.name)
  5218. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5219. }
  5220. inline std::string* DeleteDocumentRequest::release_name() {
  5221. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.name)
  5222. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5223. }
  5224. inline void DeleteDocumentRequest::set_allocated_name(std::string* name) {
  5225. if (name != nullptr) {
  5226. } else {
  5227. }
  5228. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  5229. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.name)
  5230. }
  5231. // .google.firestore.v1.Precondition current_document = 2;
  5232. inline bool DeleteDocumentRequest::has_current_document() const {
  5233. return this != internal_default_instance() && current_document_ != nullptr;
  5234. }
  5235. inline const ::google::firestore::v1::Precondition& DeleteDocumentRequest::current_document() const {
  5236. const ::google::firestore::v1::Precondition* p = current_document_;
  5237. // @@protoc_insertion_point(field_get:google.firestore.v1.DeleteDocumentRequest.current_document)
  5238. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  5239. &::google::firestore::v1::_Precondition_default_instance_);
  5240. }
  5241. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::release_current_document() {
  5242. // @@protoc_insertion_point(field_release:google.firestore.v1.DeleteDocumentRequest.current_document)
  5243. ::google::firestore::v1::Precondition* temp = current_document_;
  5244. current_document_ = nullptr;
  5245. return temp;
  5246. }
  5247. inline ::google::firestore::v1::Precondition* DeleteDocumentRequest::mutable_current_document() {
  5248. if (current_document_ == nullptr) {
  5249. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  5250. current_document_ = p;
  5251. }
  5252. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DeleteDocumentRequest.current_document)
  5253. return current_document_;
  5254. }
  5255. inline void DeleteDocumentRequest::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  5256. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5257. if (message_arena == nullptr) {
  5258. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  5259. }
  5260. if (current_document) {
  5261. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5262. if (message_arena != submessage_arena) {
  5263. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5264. message_arena, current_document, submessage_arena);
  5265. }
  5266. } else {
  5267. }
  5268. current_document_ = current_document;
  5269. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DeleteDocumentRequest.current_document)
  5270. }
  5271. // -------------------------------------------------------------------
  5272. // BatchGetDocumentsRequest
  5273. // string database = 1;
  5274. inline void BatchGetDocumentsRequest::clear_database() {
  5275. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5276. }
  5277. inline const std::string& BatchGetDocumentsRequest::database() const {
  5278. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.database)
  5279. return database_.GetNoArena();
  5280. }
  5281. inline void BatchGetDocumentsRequest::set_database(const std::string& value) {
  5282. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5283. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.database)
  5284. }
  5285. inline void BatchGetDocumentsRequest::set_database(std::string&& value) {
  5286. database_.SetNoArena(
  5287. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5288. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsRequest.database)
  5289. }
  5290. inline void BatchGetDocumentsRequest::set_database(const char* value) {
  5291. GOOGLE_DCHECK(value != nullptr);
  5292. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5293. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.database)
  5294. }
  5295. inline void BatchGetDocumentsRequest::set_database(const char* value, size_t size) {
  5296. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5297. ::std::string(reinterpret_cast<const char*>(value), size));
  5298. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.database)
  5299. }
  5300. inline std::string* BatchGetDocumentsRequest::mutable_database() {
  5301. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.database)
  5302. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5303. }
  5304. inline std::string* BatchGetDocumentsRequest::release_database() {
  5305. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.database)
  5306. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5307. }
  5308. inline void BatchGetDocumentsRequest::set_allocated_database(std::string* database) {
  5309. if (database != nullptr) {
  5310. } else {
  5311. }
  5312. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  5313. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.database)
  5314. }
  5315. // repeated string documents = 2;
  5316. inline int BatchGetDocumentsRequest::documents_size() const {
  5317. return documents_.size();
  5318. }
  5319. inline void BatchGetDocumentsRequest::clear_documents() {
  5320. documents_.Clear();
  5321. }
  5322. inline const std::string& BatchGetDocumentsRequest::documents(int index) const {
  5323. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5324. return documents_.Get(index);
  5325. }
  5326. inline std::string* BatchGetDocumentsRequest::mutable_documents(int index) {
  5327. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5328. return documents_.Mutable(index);
  5329. }
  5330. inline void BatchGetDocumentsRequest::set_documents(int index, const std::string& value) {
  5331. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5332. documents_.Mutable(index)->assign(value);
  5333. }
  5334. inline void BatchGetDocumentsRequest::set_documents(int index, std::string&& value) {
  5335. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5336. documents_.Mutable(index)->assign(std::move(value));
  5337. }
  5338. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value) {
  5339. GOOGLE_DCHECK(value != nullptr);
  5340. documents_.Mutable(index)->assign(value);
  5341. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5342. }
  5343. inline void BatchGetDocumentsRequest::set_documents(int index, const char* value, size_t size) {
  5344. documents_.Mutable(index)->assign(
  5345. reinterpret_cast<const char*>(value), size);
  5346. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5347. }
  5348. inline std::string* BatchGetDocumentsRequest::add_documents() {
  5349. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5350. return documents_.Add();
  5351. }
  5352. inline void BatchGetDocumentsRequest::add_documents(const std::string& value) {
  5353. documents_.Add()->assign(value);
  5354. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5355. }
  5356. inline void BatchGetDocumentsRequest::add_documents(std::string&& value) {
  5357. documents_.Add(std::move(value));
  5358. // @@protoc_insertion_point(field_add:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5359. }
  5360. inline void BatchGetDocumentsRequest::add_documents(const char* value) {
  5361. GOOGLE_DCHECK(value != nullptr);
  5362. documents_.Add()->assign(value);
  5363. // @@protoc_insertion_point(field_add_char:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5364. }
  5365. inline void BatchGetDocumentsRequest::add_documents(const char* value, size_t size) {
  5366. documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
  5367. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5368. }
  5369. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  5370. BatchGetDocumentsRequest::documents() const {
  5371. // @@protoc_insertion_point(field_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5372. return documents_;
  5373. }
  5374. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  5375. BatchGetDocumentsRequest::mutable_documents() {
  5376. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.BatchGetDocumentsRequest.documents)
  5377. return &documents_;
  5378. }
  5379. // .google.firestore.v1.DocumentMask mask = 3;
  5380. inline bool BatchGetDocumentsRequest::has_mask() const {
  5381. return this != internal_default_instance() && mask_ != nullptr;
  5382. }
  5383. inline const ::google::firestore::v1::DocumentMask& BatchGetDocumentsRequest::mask() const {
  5384. const ::google::firestore::v1::DocumentMask* p = mask_;
  5385. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.mask)
  5386. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  5387. &::google::firestore::v1::_DocumentMask_default_instance_);
  5388. }
  5389. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::release_mask() {
  5390. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.mask)
  5391. ::google::firestore::v1::DocumentMask* temp = mask_;
  5392. mask_ = nullptr;
  5393. return temp;
  5394. }
  5395. inline ::google::firestore::v1::DocumentMask* BatchGetDocumentsRequest::mutable_mask() {
  5396. if (mask_ == nullptr) {
  5397. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  5398. mask_ = p;
  5399. }
  5400. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.mask)
  5401. return mask_;
  5402. }
  5403. inline void BatchGetDocumentsRequest::set_allocated_mask(::google::firestore::v1::DocumentMask* mask) {
  5404. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5405. if (message_arena == nullptr) {
  5406. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mask_);
  5407. }
  5408. if (mask) {
  5409. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5410. if (message_arena != submessage_arena) {
  5411. mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5412. message_arena, mask, submessage_arena);
  5413. }
  5414. } else {
  5415. }
  5416. mask_ = mask;
  5417. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.mask)
  5418. }
  5419. // bytes transaction = 4;
  5420. inline bool BatchGetDocumentsRequest::has_transaction() const {
  5421. return consistency_selector_case() == kTransaction;
  5422. }
  5423. inline void BatchGetDocumentsRequest::set_has_transaction() {
  5424. _oneof_case_[0] = kTransaction;
  5425. }
  5426. inline void BatchGetDocumentsRequest::clear_transaction() {
  5427. if (has_transaction()) {
  5428. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5429. clear_has_consistency_selector();
  5430. }
  5431. }
  5432. inline const std::string& BatchGetDocumentsRequest::transaction() const {
  5433. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5434. if (has_transaction()) {
  5435. return consistency_selector_.transaction_.GetNoArena();
  5436. }
  5437. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  5438. }
  5439. inline void BatchGetDocumentsRequest::set_transaction(const std::string& value) {
  5440. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5441. if (!has_transaction()) {
  5442. clear_consistency_selector();
  5443. set_has_transaction();
  5444. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5445. }
  5446. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5447. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5448. }
  5449. inline void BatchGetDocumentsRequest::set_transaction(std::string&& value) {
  5450. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5451. if (!has_transaction()) {
  5452. clear_consistency_selector();
  5453. set_has_transaction();
  5454. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5455. }
  5456. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5457. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5458. }
  5459. inline void BatchGetDocumentsRequest::set_transaction(const char* value) {
  5460. GOOGLE_DCHECK(value != nullptr);
  5461. if (!has_transaction()) {
  5462. clear_consistency_selector();
  5463. set_has_transaction();
  5464. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5465. }
  5466. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5467. ::std::string(value));
  5468. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5469. }
  5470. inline void BatchGetDocumentsRequest::set_transaction(const void* value, size_t size) {
  5471. if (!has_transaction()) {
  5472. clear_consistency_selector();
  5473. set_has_transaction();
  5474. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5475. }
  5476. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5477. reinterpret_cast<const char*>(value), size));
  5478. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5479. }
  5480. inline std::string* BatchGetDocumentsRequest::mutable_transaction() {
  5481. if (!has_transaction()) {
  5482. clear_consistency_selector();
  5483. set_has_transaction();
  5484. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5485. }
  5486. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5487. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5488. }
  5489. inline std::string* BatchGetDocumentsRequest::release_transaction() {
  5490. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5491. if (has_transaction()) {
  5492. clear_has_consistency_selector();
  5493. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5494. } else {
  5495. return nullptr;
  5496. }
  5497. }
  5498. inline void BatchGetDocumentsRequest::set_allocated_transaction(std::string* transaction) {
  5499. if (has_consistency_selector()) {
  5500. clear_consistency_selector();
  5501. }
  5502. if (transaction != nullptr) {
  5503. set_has_transaction();
  5504. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  5505. }
  5506. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsRequest.transaction)
  5507. }
  5508. // .google.firestore.v1.TransactionOptions new_transaction = 5;
  5509. inline bool BatchGetDocumentsRequest::has_new_transaction() const {
  5510. return consistency_selector_case() == kNewTransaction;
  5511. }
  5512. inline void BatchGetDocumentsRequest::set_has_new_transaction() {
  5513. _oneof_case_[0] = kNewTransaction;
  5514. }
  5515. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::release_new_transaction() {
  5516. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  5517. if (has_new_transaction()) {
  5518. clear_has_consistency_selector();
  5519. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  5520. consistency_selector_.new_transaction_ = nullptr;
  5521. return temp;
  5522. } else {
  5523. return nullptr;
  5524. }
  5525. }
  5526. inline const ::google::firestore::v1::TransactionOptions& BatchGetDocumentsRequest::new_transaction() const {
  5527. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  5528. return has_new_transaction()
  5529. ? *consistency_selector_.new_transaction_
  5530. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  5531. }
  5532. inline ::google::firestore::v1::TransactionOptions* BatchGetDocumentsRequest::mutable_new_transaction() {
  5533. if (!has_new_transaction()) {
  5534. clear_consistency_selector();
  5535. set_has_new_transaction();
  5536. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  5537. GetArenaNoVirtual());
  5538. }
  5539. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.new_transaction)
  5540. return consistency_selector_.new_transaction_;
  5541. }
  5542. // .google.protobuf.Timestamp read_time = 7;
  5543. inline bool BatchGetDocumentsRequest::has_read_time() const {
  5544. return consistency_selector_case() == kReadTime;
  5545. }
  5546. inline void BatchGetDocumentsRequest::set_has_read_time() {
  5547. _oneof_case_[0] = kReadTime;
  5548. }
  5549. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::release_read_time() {
  5550. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  5551. if (has_read_time()) {
  5552. clear_has_consistency_selector();
  5553. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  5554. consistency_selector_.read_time_ = nullptr;
  5555. return temp;
  5556. } else {
  5557. return nullptr;
  5558. }
  5559. }
  5560. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsRequest::read_time() const {
  5561. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  5562. return has_read_time()
  5563. ? *consistency_selector_.read_time_
  5564. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  5565. }
  5566. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsRequest::mutable_read_time() {
  5567. if (!has_read_time()) {
  5568. clear_consistency_selector();
  5569. set_has_read_time();
  5570. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  5571. GetArenaNoVirtual());
  5572. }
  5573. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsRequest.read_time)
  5574. return consistency_selector_.read_time_;
  5575. }
  5576. inline bool BatchGetDocumentsRequest::has_consistency_selector() const {
  5577. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  5578. }
  5579. inline void BatchGetDocumentsRequest::clear_has_consistency_selector() {
  5580. _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  5581. }
  5582. inline BatchGetDocumentsRequest::ConsistencySelectorCase BatchGetDocumentsRequest::consistency_selector_case() const {
  5583. return BatchGetDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
  5584. }
  5585. // -------------------------------------------------------------------
  5586. // BatchGetDocumentsResponse
  5587. // .google.firestore.v1.Document found = 1;
  5588. inline bool BatchGetDocumentsResponse::has_found() const {
  5589. return result_case() == kFound;
  5590. }
  5591. inline void BatchGetDocumentsResponse::set_has_found() {
  5592. _oneof_case_[0] = kFound;
  5593. }
  5594. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::release_found() {
  5595. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.found)
  5596. if (has_found()) {
  5597. clear_has_result();
  5598. ::google::firestore::v1::Document* temp = result_.found_;
  5599. result_.found_ = nullptr;
  5600. return temp;
  5601. } else {
  5602. return nullptr;
  5603. }
  5604. }
  5605. inline const ::google::firestore::v1::Document& BatchGetDocumentsResponse::found() const {
  5606. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.found)
  5607. return has_found()
  5608. ? *result_.found_
  5609. : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
  5610. }
  5611. inline ::google::firestore::v1::Document* BatchGetDocumentsResponse::mutable_found() {
  5612. if (!has_found()) {
  5613. clear_result();
  5614. set_has_found();
  5615. result_.found_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
  5616. GetArenaNoVirtual());
  5617. }
  5618. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.found)
  5619. return result_.found_;
  5620. }
  5621. // string missing = 2;
  5622. inline bool BatchGetDocumentsResponse::has_missing() const {
  5623. return result_case() == kMissing;
  5624. }
  5625. inline void BatchGetDocumentsResponse::set_has_missing() {
  5626. _oneof_case_[0] = kMissing;
  5627. }
  5628. inline void BatchGetDocumentsResponse::clear_missing() {
  5629. if (has_missing()) {
  5630. result_.missing_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5631. clear_has_result();
  5632. }
  5633. }
  5634. inline const std::string& BatchGetDocumentsResponse::missing() const {
  5635. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5636. if (has_missing()) {
  5637. return result_.missing_.GetNoArena();
  5638. }
  5639. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  5640. }
  5641. inline void BatchGetDocumentsResponse::set_missing(const std::string& value) {
  5642. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5643. if (!has_missing()) {
  5644. clear_result();
  5645. set_has_missing();
  5646. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5647. }
  5648. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5649. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5650. }
  5651. inline void BatchGetDocumentsResponse::set_missing(std::string&& value) {
  5652. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5653. if (!has_missing()) {
  5654. clear_result();
  5655. set_has_missing();
  5656. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5657. }
  5658. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5659. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5660. }
  5661. inline void BatchGetDocumentsResponse::set_missing(const char* value) {
  5662. GOOGLE_DCHECK(value != nullptr);
  5663. if (!has_missing()) {
  5664. clear_result();
  5665. set_has_missing();
  5666. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5667. }
  5668. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5669. ::std::string(value));
  5670. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5671. }
  5672. inline void BatchGetDocumentsResponse::set_missing(const char* value, size_t size) {
  5673. if (!has_missing()) {
  5674. clear_result();
  5675. set_has_missing();
  5676. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5677. }
  5678. result_.missing_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5679. reinterpret_cast<const char*>(value), size));
  5680. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5681. }
  5682. inline std::string* BatchGetDocumentsResponse::mutable_missing() {
  5683. if (!has_missing()) {
  5684. clear_result();
  5685. set_has_missing();
  5686. result_.missing_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5687. }
  5688. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5689. return result_.missing_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5690. }
  5691. inline std::string* BatchGetDocumentsResponse::release_missing() {
  5692. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5693. if (has_missing()) {
  5694. clear_has_result();
  5695. return result_.missing_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5696. } else {
  5697. return nullptr;
  5698. }
  5699. }
  5700. inline void BatchGetDocumentsResponse::set_allocated_missing(std::string* missing) {
  5701. if (has_result()) {
  5702. clear_result();
  5703. }
  5704. if (missing != nullptr) {
  5705. set_has_missing();
  5706. result_.missing_.UnsafeSetDefault(missing);
  5707. }
  5708. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.missing)
  5709. }
  5710. // bytes transaction = 3;
  5711. inline void BatchGetDocumentsResponse::clear_transaction() {
  5712. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5713. }
  5714. inline const std::string& BatchGetDocumentsResponse::transaction() const {
  5715. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  5716. return transaction_.GetNoArena();
  5717. }
  5718. inline void BatchGetDocumentsResponse::set_transaction(const std::string& value) {
  5719. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5720. // @@protoc_insertion_point(field_set:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  5721. }
  5722. inline void BatchGetDocumentsResponse::set_transaction(std::string&& value) {
  5723. transaction_.SetNoArena(
  5724. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5725. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  5726. }
  5727. inline void BatchGetDocumentsResponse::set_transaction(const char* value) {
  5728. GOOGLE_DCHECK(value != nullptr);
  5729. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5730. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  5731. }
  5732. inline void BatchGetDocumentsResponse::set_transaction(const void* value, size_t size) {
  5733. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5734. ::std::string(reinterpret_cast<const char*>(value), size));
  5735. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  5736. }
  5737. inline std::string* BatchGetDocumentsResponse::mutable_transaction() {
  5738. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  5739. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5740. }
  5741. inline std::string* BatchGetDocumentsResponse::release_transaction() {
  5742. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  5743. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5744. }
  5745. inline void BatchGetDocumentsResponse::set_allocated_transaction(std::string* transaction) {
  5746. if (transaction != nullptr) {
  5747. } else {
  5748. }
  5749. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  5750. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.transaction)
  5751. }
  5752. // .google.protobuf.Timestamp read_time = 4;
  5753. inline bool BatchGetDocumentsResponse::has_read_time() const {
  5754. return this != internal_default_instance() && read_time_ != nullptr;
  5755. }
  5756. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BatchGetDocumentsResponse::read_time() const {
  5757. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  5758. // @@protoc_insertion_point(field_get:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  5759. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  5760. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  5761. }
  5762. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::release_read_time() {
  5763. // @@protoc_insertion_point(field_release:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  5764. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  5765. read_time_ = nullptr;
  5766. return temp;
  5767. }
  5768. inline PROTOBUF_NAMESPACE_ID::Timestamp* BatchGetDocumentsResponse::mutable_read_time() {
  5769. if (read_time_ == nullptr) {
  5770. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  5771. read_time_ = p;
  5772. }
  5773. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  5774. return read_time_;
  5775. }
  5776. inline void BatchGetDocumentsResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  5777. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5778. if (message_arena == nullptr) {
  5779. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  5780. }
  5781. if (read_time) {
  5782. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  5783. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  5784. if (message_arena != submessage_arena) {
  5785. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5786. message_arena, read_time, submessage_arena);
  5787. }
  5788. } else {
  5789. }
  5790. read_time_ = read_time;
  5791. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BatchGetDocumentsResponse.read_time)
  5792. }
  5793. inline bool BatchGetDocumentsResponse::has_result() const {
  5794. return result_case() != RESULT_NOT_SET;
  5795. }
  5796. inline void BatchGetDocumentsResponse::clear_has_result() {
  5797. _oneof_case_[0] = RESULT_NOT_SET;
  5798. }
  5799. inline BatchGetDocumentsResponse::ResultCase BatchGetDocumentsResponse::result_case() const {
  5800. return BatchGetDocumentsResponse::ResultCase(_oneof_case_[0]);
  5801. }
  5802. // -------------------------------------------------------------------
  5803. // BeginTransactionRequest
  5804. // string database = 1;
  5805. inline void BeginTransactionRequest::clear_database() {
  5806. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5807. }
  5808. inline const std::string& BeginTransactionRequest::database() const {
  5809. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.database)
  5810. return database_.GetNoArena();
  5811. }
  5812. inline void BeginTransactionRequest::set_database(const std::string& value) {
  5813. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5814. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionRequest.database)
  5815. }
  5816. inline void BeginTransactionRequest::set_database(std::string&& value) {
  5817. database_.SetNoArena(
  5818. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5819. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BeginTransactionRequest.database)
  5820. }
  5821. inline void BeginTransactionRequest::set_database(const char* value) {
  5822. GOOGLE_DCHECK(value != nullptr);
  5823. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5824. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BeginTransactionRequest.database)
  5825. }
  5826. inline void BeginTransactionRequest::set_database(const char* value, size_t size) {
  5827. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5828. ::std::string(reinterpret_cast<const char*>(value), size));
  5829. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BeginTransactionRequest.database)
  5830. }
  5831. inline std::string* BeginTransactionRequest::mutable_database() {
  5832. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.database)
  5833. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5834. }
  5835. inline std::string* BeginTransactionRequest::release_database() {
  5836. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.database)
  5837. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5838. }
  5839. inline void BeginTransactionRequest::set_allocated_database(std::string* database) {
  5840. if (database != nullptr) {
  5841. } else {
  5842. }
  5843. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  5844. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.database)
  5845. }
  5846. // .google.firestore.v1.TransactionOptions options = 2;
  5847. inline bool BeginTransactionRequest::has_options() const {
  5848. return this != internal_default_instance() && options_ != nullptr;
  5849. }
  5850. inline const ::google::firestore::v1::TransactionOptions& BeginTransactionRequest::options() const {
  5851. const ::google::firestore::v1::TransactionOptions* p = options_;
  5852. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionRequest.options)
  5853. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::TransactionOptions*>(
  5854. &::google::firestore::v1::_TransactionOptions_default_instance_);
  5855. }
  5856. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::release_options() {
  5857. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionRequest.options)
  5858. ::google::firestore::v1::TransactionOptions* temp = options_;
  5859. options_ = nullptr;
  5860. return temp;
  5861. }
  5862. inline ::google::firestore::v1::TransactionOptions* BeginTransactionRequest::mutable_options() {
  5863. if (options_ == nullptr) {
  5864. auto* p = CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(GetArenaNoVirtual());
  5865. options_ = p;
  5866. }
  5867. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionRequest.options)
  5868. return options_;
  5869. }
  5870. inline void BeginTransactionRequest::set_allocated_options(::google::firestore::v1::TransactionOptions* options) {
  5871. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  5872. if (message_arena == nullptr) {
  5873. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  5874. }
  5875. if (options) {
  5876. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  5877. if (message_arena != submessage_arena) {
  5878. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5879. message_arena, options, submessage_arena);
  5880. }
  5881. } else {
  5882. }
  5883. options_ = options;
  5884. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionRequest.options)
  5885. }
  5886. // -------------------------------------------------------------------
  5887. // BeginTransactionResponse
  5888. // bytes transaction = 1;
  5889. inline void BeginTransactionResponse::clear_transaction() {
  5890. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5891. }
  5892. inline const std::string& BeginTransactionResponse::transaction() const {
  5893. // @@protoc_insertion_point(field_get:google.firestore.v1.BeginTransactionResponse.transaction)
  5894. return transaction_.GetNoArena();
  5895. }
  5896. inline void BeginTransactionResponse::set_transaction(const std::string& value) {
  5897. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5898. // @@protoc_insertion_point(field_set:google.firestore.v1.BeginTransactionResponse.transaction)
  5899. }
  5900. inline void BeginTransactionResponse::set_transaction(std::string&& value) {
  5901. transaction_.SetNoArena(
  5902. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5903. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BeginTransactionResponse.transaction)
  5904. }
  5905. inline void BeginTransactionResponse::set_transaction(const char* value) {
  5906. GOOGLE_DCHECK(value != nullptr);
  5907. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5908. // @@protoc_insertion_point(field_set_char:google.firestore.v1.BeginTransactionResponse.transaction)
  5909. }
  5910. inline void BeginTransactionResponse::set_transaction(const void* value, size_t size) {
  5911. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5912. ::std::string(reinterpret_cast<const char*>(value), size));
  5913. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BeginTransactionResponse.transaction)
  5914. }
  5915. inline std::string* BeginTransactionResponse::mutable_transaction() {
  5916. // @@protoc_insertion_point(field_mutable:google.firestore.v1.BeginTransactionResponse.transaction)
  5917. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5918. }
  5919. inline std::string* BeginTransactionResponse::release_transaction() {
  5920. // @@protoc_insertion_point(field_release:google.firestore.v1.BeginTransactionResponse.transaction)
  5921. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5922. }
  5923. inline void BeginTransactionResponse::set_allocated_transaction(std::string* transaction) {
  5924. if (transaction != nullptr) {
  5925. } else {
  5926. }
  5927. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  5928. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BeginTransactionResponse.transaction)
  5929. }
  5930. // -------------------------------------------------------------------
  5931. // CommitRequest
  5932. // string database = 1;
  5933. inline void CommitRequest::clear_database() {
  5934. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5935. }
  5936. inline const std::string& CommitRequest::database() const {
  5937. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.database)
  5938. return database_.GetNoArena();
  5939. }
  5940. inline void CommitRequest::set_database(const std::string& value) {
  5941. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  5942. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.database)
  5943. }
  5944. inline void CommitRequest::set_database(std::string&& value) {
  5945. database_.SetNoArena(
  5946. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5947. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CommitRequest.database)
  5948. }
  5949. inline void CommitRequest::set_database(const char* value) {
  5950. GOOGLE_DCHECK(value != nullptr);
  5951. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5952. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CommitRequest.database)
  5953. }
  5954. inline void CommitRequest::set_database(const char* value, size_t size) {
  5955. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5956. ::std::string(reinterpret_cast<const char*>(value), size));
  5957. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CommitRequest.database)
  5958. }
  5959. inline std::string* CommitRequest::mutable_database() {
  5960. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.database)
  5961. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5962. }
  5963. inline std::string* CommitRequest::release_database() {
  5964. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.database)
  5965. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5966. }
  5967. inline void CommitRequest::set_allocated_database(std::string* database) {
  5968. if (database != nullptr) {
  5969. } else {
  5970. }
  5971. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  5972. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.database)
  5973. }
  5974. // repeated .google.firestore.v1.Write writes = 2;
  5975. inline int CommitRequest::writes_size() const {
  5976. return writes_.size();
  5977. }
  5978. inline ::google::firestore::v1::Write* CommitRequest::mutable_writes(int index) {
  5979. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.writes)
  5980. return writes_.Mutable(index);
  5981. }
  5982. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  5983. CommitRequest::mutable_writes() {
  5984. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitRequest.writes)
  5985. return &writes_;
  5986. }
  5987. inline const ::google::firestore::v1::Write& CommitRequest::writes(int index) const {
  5988. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.writes)
  5989. return writes_.Get(index);
  5990. }
  5991. inline ::google::firestore::v1::Write* CommitRequest::add_writes() {
  5992. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitRequest.writes)
  5993. return writes_.Add();
  5994. }
  5995. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  5996. CommitRequest::writes() const {
  5997. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitRequest.writes)
  5998. return writes_;
  5999. }
  6000. // bytes transaction = 3;
  6001. inline void CommitRequest::clear_transaction() {
  6002. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6003. }
  6004. inline const std::string& CommitRequest::transaction() const {
  6005. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitRequest.transaction)
  6006. return transaction_.GetNoArena();
  6007. }
  6008. inline void CommitRequest::set_transaction(const std::string& value) {
  6009. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6010. // @@protoc_insertion_point(field_set:google.firestore.v1.CommitRequest.transaction)
  6011. }
  6012. inline void CommitRequest::set_transaction(std::string&& value) {
  6013. transaction_.SetNoArena(
  6014. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6015. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.CommitRequest.transaction)
  6016. }
  6017. inline void CommitRequest::set_transaction(const char* value) {
  6018. GOOGLE_DCHECK(value != nullptr);
  6019. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6020. // @@protoc_insertion_point(field_set_char:google.firestore.v1.CommitRequest.transaction)
  6021. }
  6022. inline void CommitRequest::set_transaction(const void* value, size_t size) {
  6023. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6024. ::std::string(reinterpret_cast<const char*>(value), size));
  6025. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.CommitRequest.transaction)
  6026. }
  6027. inline std::string* CommitRequest::mutable_transaction() {
  6028. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitRequest.transaction)
  6029. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6030. }
  6031. inline std::string* CommitRequest::release_transaction() {
  6032. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitRequest.transaction)
  6033. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6034. }
  6035. inline void CommitRequest::set_allocated_transaction(std::string* transaction) {
  6036. if (transaction != nullptr) {
  6037. } else {
  6038. }
  6039. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6040. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitRequest.transaction)
  6041. }
  6042. // -------------------------------------------------------------------
  6043. // CommitResponse
  6044. // repeated .google.firestore.v1.WriteResult write_results = 1;
  6045. inline int CommitResponse::write_results_size() const {
  6046. return write_results_.size();
  6047. }
  6048. inline ::google::firestore::v1::WriteResult* CommitResponse::mutable_write_results(int index) {
  6049. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.write_results)
  6050. return write_results_.Mutable(index);
  6051. }
  6052. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  6053. CommitResponse::mutable_write_results() {
  6054. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.CommitResponse.write_results)
  6055. return &write_results_;
  6056. }
  6057. inline const ::google::firestore::v1::WriteResult& CommitResponse::write_results(int index) const {
  6058. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.write_results)
  6059. return write_results_.Get(index);
  6060. }
  6061. inline ::google::firestore::v1::WriteResult* CommitResponse::add_write_results() {
  6062. // @@protoc_insertion_point(field_add:google.firestore.v1.CommitResponse.write_results)
  6063. return write_results_.Add();
  6064. }
  6065. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  6066. CommitResponse::write_results() const {
  6067. // @@protoc_insertion_point(field_list:google.firestore.v1.CommitResponse.write_results)
  6068. return write_results_;
  6069. }
  6070. // .google.protobuf.Timestamp commit_time = 2;
  6071. inline bool CommitResponse::has_commit_time() const {
  6072. return this != internal_default_instance() && commit_time_ != nullptr;
  6073. }
  6074. inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommitResponse::commit_time() const {
  6075. const PROTOBUF_NAMESPACE_ID::Timestamp* p = commit_time_;
  6076. // @@protoc_insertion_point(field_get:google.firestore.v1.CommitResponse.commit_time)
  6077. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  6078. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6079. }
  6080. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::release_commit_time() {
  6081. // @@protoc_insertion_point(field_release:google.firestore.v1.CommitResponse.commit_time)
  6082. PROTOBUF_NAMESPACE_ID::Timestamp* temp = commit_time_;
  6083. commit_time_ = nullptr;
  6084. return temp;
  6085. }
  6086. inline PROTOBUF_NAMESPACE_ID::Timestamp* CommitResponse::mutable_commit_time() {
  6087. if (commit_time_ == nullptr) {
  6088. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  6089. commit_time_ = p;
  6090. }
  6091. // @@protoc_insertion_point(field_mutable:google.firestore.v1.CommitResponse.commit_time)
  6092. return commit_time_;
  6093. }
  6094. inline void CommitResponse::set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time) {
  6095. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6096. if (message_arena == nullptr) {
  6097. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time_);
  6098. }
  6099. if (commit_time) {
  6100. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  6101. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time)->GetArena();
  6102. if (message_arena != submessage_arena) {
  6103. commit_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6104. message_arena, commit_time, submessage_arena);
  6105. }
  6106. } else {
  6107. }
  6108. commit_time_ = commit_time;
  6109. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.CommitResponse.commit_time)
  6110. }
  6111. // -------------------------------------------------------------------
  6112. // RollbackRequest
  6113. // string database = 1;
  6114. inline void RollbackRequest::clear_database() {
  6115. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6116. }
  6117. inline const std::string& RollbackRequest::database() const {
  6118. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.database)
  6119. return database_.GetNoArena();
  6120. }
  6121. inline void RollbackRequest::set_database(const std::string& value) {
  6122. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6123. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.database)
  6124. }
  6125. inline void RollbackRequest::set_database(std::string&& value) {
  6126. database_.SetNoArena(
  6127. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6128. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RollbackRequest.database)
  6129. }
  6130. inline void RollbackRequest::set_database(const char* value) {
  6131. GOOGLE_DCHECK(value != nullptr);
  6132. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6133. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RollbackRequest.database)
  6134. }
  6135. inline void RollbackRequest::set_database(const char* value, size_t size) {
  6136. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6137. ::std::string(reinterpret_cast<const char*>(value), size));
  6138. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RollbackRequest.database)
  6139. }
  6140. inline std::string* RollbackRequest::mutable_database() {
  6141. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.database)
  6142. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6143. }
  6144. inline std::string* RollbackRequest::release_database() {
  6145. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.database)
  6146. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6147. }
  6148. inline void RollbackRequest::set_allocated_database(std::string* database) {
  6149. if (database != nullptr) {
  6150. } else {
  6151. }
  6152. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6153. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.database)
  6154. }
  6155. // bytes transaction = 2;
  6156. inline void RollbackRequest::clear_transaction() {
  6157. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6158. }
  6159. inline const std::string& RollbackRequest::transaction() const {
  6160. // @@protoc_insertion_point(field_get:google.firestore.v1.RollbackRequest.transaction)
  6161. return transaction_.GetNoArena();
  6162. }
  6163. inline void RollbackRequest::set_transaction(const std::string& value) {
  6164. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6165. // @@protoc_insertion_point(field_set:google.firestore.v1.RollbackRequest.transaction)
  6166. }
  6167. inline void RollbackRequest::set_transaction(std::string&& value) {
  6168. transaction_.SetNoArena(
  6169. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6170. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RollbackRequest.transaction)
  6171. }
  6172. inline void RollbackRequest::set_transaction(const char* value) {
  6173. GOOGLE_DCHECK(value != nullptr);
  6174. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6175. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RollbackRequest.transaction)
  6176. }
  6177. inline void RollbackRequest::set_transaction(const void* value, size_t size) {
  6178. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6179. ::std::string(reinterpret_cast<const char*>(value), size));
  6180. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RollbackRequest.transaction)
  6181. }
  6182. inline std::string* RollbackRequest::mutable_transaction() {
  6183. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RollbackRequest.transaction)
  6184. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6185. }
  6186. inline std::string* RollbackRequest::release_transaction() {
  6187. // @@protoc_insertion_point(field_release:google.firestore.v1.RollbackRequest.transaction)
  6188. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6189. }
  6190. inline void RollbackRequest::set_allocated_transaction(std::string* transaction) {
  6191. if (transaction != nullptr) {
  6192. } else {
  6193. }
  6194. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6195. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RollbackRequest.transaction)
  6196. }
  6197. // -------------------------------------------------------------------
  6198. // RunQueryRequest
  6199. // string parent = 1;
  6200. inline void RunQueryRequest::clear_parent() {
  6201. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6202. }
  6203. inline const std::string& RunQueryRequest::parent() const {
  6204. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.parent)
  6205. return parent_.GetNoArena();
  6206. }
  6207. inline void RunQueryRequest::set_parent(const std::string& value) {
  6208. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6209. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.parent)
  6210. }
  6211. inline void RunQueryRequest::set_parent(std::string&& value) {
  6212. parent_.SetNoArena(
  6213. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6214. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryRequest.parent)
  6215. }
  6216. inline void RunQueryRequest::set_parent(const char* value) {
  6217. GOOGLE_DCHECK(value != nullptr);
  6218. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6219. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryRequest.parent)
  6220. }
  6221. inline void RunQueryRequest::set_parent(const char* value, size_t size) {
  6222. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6223. ::std::string(reinterpret_cast<const char*>(value), size));
  6224. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryRequest.parent)
  6225. }
  6226. inline std::string* RunQueryRequest::mutable_parent() {
  6227. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.parent)
  6228. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6229. }
  6230. inline std::string* RunQueryRequest::release_parent() {
  6231. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.parent)
  6232. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6233. }
  6234. inline void RunQueryRequest::set_allocated_parent(std::string* parent) {
  6235. if (parent != nullptr) {
  6236. } else {
  6237. }
  6238. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  6239. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.parent)
  6240. }
  6241. // .google.firestore.v1.StructuredQuery structured_query = 2;
  6242. inline bool RunQueryRequest::has_structured_query() const {
  6243. return query_type_case() == kStructuredQuery;
  6244. }
  6245. inline void RunQueryRequest::set_has_structured_query() {
  6246. _oneof_case_[0] = kStructuredQuery;
  6247. }
  6248. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::release_structured_query() {
  6249. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.structured_query)
  6250. if (has_structured_query()) {
  6251. clear_has_query_type();
  6252. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  6253. query_type_.structured_query_ = nullptr;
  6254. return temp;
  6255. } else {
  6256. return nullptr;
  6257. }
  6258. }
  6259. inline const ::google::firestore::v1::StructuredQuery& RunQueryRequest::structured_query() const {
  6260. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.structured_query)
  6261. return has_structured_query()
  6262. ? *query_type_.structured_query_
  6263. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  6264. }
  6265. inline ::google::firestore::v1::StructuredQuery* RunQueryRequest::mutable_structured_query() {
  6266. if (!has_structured_query()) {
  6267. clear_query_type();
  6268. set_has_structured_query();
  6269. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  6270. GetArenaNoVirtual());
  6271. }
  6272. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.structured_query)
  6273. return query_type_.structured_query_;
  6274. }
  6275. // bytes transaction = 5;
  6276. inline bool RunQueryRequest::has_transaction() const {
  6277. return consistency_selector_case() == kTransaction;
  6278. }
  6279. inline void RunQueryRequest::set_has_transaction() {
  6280. _oneof_case_[1] = kTransaction;
  6281. }
  6282. inline void RunQueryRequest::clear_transaction() {
  6283. if (has_transaction()) {
  6284. consistency_selector_.transaction_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6285. clear_has_consistency_selector();
  6286. }
  6287. }
  6288. inline const std::string& RunQueryRequest::transaction() const {
  6289. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.transaction)
  6290. if (has_transaction()) {
  6291. return consistency_selector_.transaction_.GetNoArena();
  6292. }
  6293. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  6294. }
  6295. inline void RunQueryRequest::set_transaction(const std::string& value) {
  6296. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  6297. if (!has_transaction()) {
  6298. clear_consistency_selector();
  6299. set_has_transaction();
  6300. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6301. }
  6302. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6303. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  6304. }
  6305. inline void RunQueryRequest::set_transaction(std::string&& value) {
  6306. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryRequest.transaction)
  6307. if (!has_transaction()) {
  6308. clear_consistency_selector();
  6309. set_has_transaction();
  6310. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6311. }
  6312. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6313. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryRequest.transaction)
  6314. }
  6315. inline void RunQueryRequest::set_transaction(const char* value) {
  6316. GOOGLE_DCHECK(value != nullptr);
  6317. if (!has_transaction()) {
  6318. clear_consistency_selector();
  6319. set_has_transaction();
  6320. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6321. }
  6322. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6323. ::std::string(value));
  6324. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryRequest.transaction)
  6325. }
  6326. inline void RunQueryRequest::set_transaction(const void* value, size_t size) {
  6327. if (!has_transaction()) {
  6328. clear_consistency_selector();
  6329. set_has_transaction();
  6330. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6331. }
  6332. consistency_selector_.transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6333. reinterpret_cast<const char*>(value), size));
  6334. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryRequest.transaction)
  6335. }
  6336. inline std::string* RunQueryRequest::mutable_transaction() {
  6337. if (!has_transaction()) {
  6338. clear_consistency_selector();
  6339. set_has_transaction();
  6340. consistency_selector_.transaction_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6341. }
  6342. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.transaction)
  6343. return consistency_selector_.transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6344. }
  6345. inline std::string* RunQueryRequest::release_transaction() {
  6346. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.transaction)
  6347. if (has_transaction()) {
  6348. clear_has_consistency_selector();
  6349. return consistency_selector_.transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6350. } else {
  6351. return nullptr;
  6352. }
  6353. }
  6354. inline void RunQueryRequest::set_allocated_transaction(std::string* transaction) {
  6355. if (has_consistency_selector()) {
  6356. clear_consistency_selector();
  6357. }
  6358. if (transaction != nullptr) {
  6359. set_has_transaction();
  6360. consistency_selector_.transaction_.UnsafeSetDefault(transaction);
  6361. }
  6362. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryRequest.transaction)
  6363. }
  6364. // .google.firestore.v1.TransactionOptions new_transaction = 6;
  6365. inline bool RunQueryRequest::has_new_transaction() const {
  6366. return consistency_selector_case() == kNewTransaction;
  6367. }
  6368. inline void RunQueryRequest::set_has_new_transaction() {
  6369. _oneof_case_[1] = kNewTransaction;
  6370. }
  6371. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::release_new_transaction() {
  6372. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.new_transaction)
  6373. if (has_new_transaction()) {
  6374. clear_has_consistency_selector();
  6375. ::google::firestore::v1::TransactionOptions* temp = consistency_selector_.new_transaction_;
  6376. consistency_selector_.new_transaction_ = nullptr;
  6377. return temp;
  6378. } else {
  6379. return nullptr;
  6380. }
  6381. }
  6382. inline const ::google::firestore::v1::TransactionOptions& RunQueryRequest::new_transaction() const {
  6383. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.new_transaction)
  6384. return has_new_transaction()
  6385. ? *consistency_selector_.new_transaction_
  6386. : *reinterpret_cast< ::google::firestore::v1::TransactionOptions*>(&::google::firestore::v1::_TransactionOptions_default_instance_);
  6387. }
  6388. inline ::google::firestore::v1::TransactionOptions* RunQueryRequest::mutable_new_transaction() {
  6389. if (!has_new_transaction()) {
  6390. clear_consistency_selector();
  6391. set_has_new_transaction();
  6392. consistency_selector_.new_transaction_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions >(
  6393. GetArenaNoVirtual());
  6394. }
  6395. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.new_transaction)
  6396. return consistency_selector_.new_transaction_;
  6397. }
  6398. // .google.protobuf.Timestamp read_time = 7;
  6399. inline bool RunQueryRequest::has_read_time() const {
  6400. return consistency_selector_case() == kReadTime;
  6401. }
  6402. inline void RunQueryRequest::set_has_read_time() {
  6403. _oneof_case_[1] = kReadTime;
  6404. }
  6405. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::release_read_time() {
  6406. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryRequest.read_time)
  6407. if (has_read_time()) {
  6408. clear_has_consistency_selector();
  6409. PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
  6410. consistency_selector_.read_time_ = nullptr;
  6411. return temp;
  6412. } else {
  6413. return nullptr;
  6414. }
  6415. }
  6416. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryRequest::read_time() const {
  6417. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryRequest.read_time)
  6418. return has_read_time()
  6419. ? *consistency_selector_.read_time_
  6420. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6421. }
  6422. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryRequest::mutable_read_time() {
  6423. if (!has_read_time()) {
  6424. clear_consistency_selector();
  6425. set_has_read_time();
  6426. consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  6427. GetArenaNoVirtual());
  6428. }
  6429. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryRequest.read_time)
  6430. return consistency_selector_.read_time_;
  6431. }
  6432. inline bool RunQueryRequest::has_query_type() const {
  6433. return query_type_case() != QUERY_TYPE_NOT_SET;
  6434. }
  6435. inline void RunQueryRequest::clear_has_query_type() {
  6436. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  6437. }
  6438. inline bool RunQueryRequest::has_consistency_selector() const {
  6439. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  6440. }
  6441. inline void RunQueryRequest::clear_has_consistency_selector() {
  6442. _oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
  6443. }
  6444. inline RunQueryRequest::QueryTypeCase RunQueryRequest::query_type_case() const {
  6445. return RunQueryRequest::QueryTypeCase(_oneof_case_[0]);
  6446. }
  6447. inline RunQueryRequest::ConsistencySelectorCase RunQueryRequest::consistency_selector_case() const {
  6448. return RunQueryRequest::ConsistencySelectorCase(_oneof_case_[1]);
  6449. }
  6450. // -------------------------------------------------------------------
  6451. // RunQueryResponse
  6452. // bytes transaction = 2;
  6453. inline void RunQueryResponse::clear_transaction() {
  6454. transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6455. }
  6456. inline const std::string& RunQueryResponse::transaction() const {
  6457. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.transaction)
  6458. return transaction_.GetNoArena();
  6459. }
  6460. inline void RunQueryResponse::set_transaction(const std::string& value) {
  6461. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6462. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.transaction)
  6463. }
  6464. inline void RunQueryResponse::set_transaction(std::string&& value) {
  6465. transaction_.SetNoArena(
  6466. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6467. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.RunQueryResponse.transaction)
  6468. }
  6469. inline void RunQueryResponse::set_transaction(const char* value) {
  6470. GOOGLE_DCHECK(value != nullptr);
  6471. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6472. // @@protoc_insertion_point(field_set_char:google.firestore.v1.RunQueryResponse.transaction)
  6473. }
  6474. inline void RunQueryResponse::set_transaction(const void* value, size_t size) {
  6475. transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6476. ::std::string(reinterpret_cast<const char*>(value), size));
  6477. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.RunQueryResponse.transaction)
  6478. }
  6479. inline std::string* RunQueryResponse::mutable_transaction() {
  6480. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.transaction)
  6481. return transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6482. }
  6483. inline std::string* RunQueryResponse::release_transaction() {
  6484. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.transaction)
  6485. return transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6486. }
  6487. inline void RunQueryResponse::set_allocated_transaction(std::string* transaction) {
  6488. if (transaction != nullptr) {
  6489. } else {
  6490. }
  6491. transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction);
  6492. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.transaction)
  6493. }
  6494. // .google.firestore.v1.Document document = 1;
  6495. inline bool RunQueryResponse::has_document() const {
  6496. return this != internal_default_instance() && document_ != nullptr;
  6497. }
  6498. inline const ::google::firestore::v1::Document& RunQueryResponse::document() const {
  6499. const ::google::firestore::v1::Document* p = document_;
  6500. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.document)
  6501. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  6502. &::google::firestore::v1::_Document_default_instance_);
  6503. }
  6504. inline ::google::firestore::v1::Document* RunQueryResponse::release_document() {
  6505. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.document)
  6506. ::google::firestore::v1::Document* temp = document_;
  6507. document_ = nullptr;
  6508. return temp;
  6509. }
  6510. inline ::google::firestore::v1::Document* RunQueryResponse::mutable_document() {
  6511. if (document_ == nullptr) {
  6512. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  6513. document_ = p;
  6514. }
  6515. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.document)
  6516. return document_;
  6517. }
  6518. inline void RunQueryResponse::set_allocated_document(::google::firestore::v1::Document* document) {
  6519. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6520. if (message_arena == nullptr) {
  6521. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  6522. }
  6523. if (document) {
  6524. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  6525. if (message_arena != submessage_arena) {
  6526. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6527. message_arena, document, submessage_arena);
  6528. }
  6529. } else {
  6530. }
  6531. document_ = document;
  6532. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.document)
  6533. }
  6534. // .google.protobuf.Timestamp read_time = 3;
  6535. inline bool RunQueryResponse::has_read_time() const {
  6536. return this != internal_default_instance() && read_time_ != nullptr;
  6537. }
  6538. inline const PROTOBUF_NAMESPACE_ID::Timestamp& RunQueryResponse::read_time() const {
  6539. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  6540. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.read_time)
  6541. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  6542. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6543. }
  6544. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::release_read_time() {
  6545. // @@protoc_insertion_point(field_release:google.firestore.v1.RunQueryResponse.read_time)
  6546. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  6547. read_time_ = nullptr;
  6548. return temp;
  6549. }
  6550. inline PROTOBUF_NAMESPACE_ID::Timestamp* RunQueryResponse::mutable_read_time() {
  6551. if (read_time_ == nullptr) {
  6552. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  6553. read_time_ = p;
  6554. }
  6555. // @@protoc_insertion_point(field_mutable:google.firestore.v1.RunQueryResponse.read_time)
  6556. return read_time_;
  6557. }
  6558. inline void RunQueryResponse::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  6559. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6560. if (message_arena == nullptr) {
  6561. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  6562. }
  6563. if (read_time) {
  6564. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  6565. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  6566. if (message_arena != submessage_arena) {
  6567. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6568. message_arena, read_time, submessage_arena);
  6569. }
  6570. } else {
  6571. }
  6572. read_time_ = read_time;
  6573. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.RunQueryResponse.read_time)
  6574. }
  6575. // int32 skipped_results = 4;
  6576. inline void RunQueryResponse::clear_skipped_results() {
  6577. skipped_results_ = 0;
  6578. }
  6579. inline ::PROTOBUF_NAMESPACE_ID::int32 RunQueryResponse::skipped_results() const {
  6580. // @@protoc_insertion_point(field_get:google.firestore.v1.RunQueryResponse.skipped_results)
  6581. return skipped_results_;
  6582. }
  6583. inline void RunQueryResponse::set_skipped_results(::PROTOBUF_NAMESPACE_ID::int32 value) {
  6584. skipped_results_ = value;
  6585. // @@protoc_insertion_point(field_set:google.firestore.v1.RunQueryResponse.skipped_results)
  6586. }
  6587. // -------------------------------------------------------------------
  6588. // -------------------------------------------------------------------
  6589. // WriteRequest
  6590. // string database = 1;
  6591. inline void WriteRequest::clear_database() {
  6592. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6593. }
  6594. inline const std::string& WriteRequest::database() const {
  6595. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.database)
  6596. return database_.GetNoArena();
  6597. }
  6598. inline void WriteRequest::set_database(const std::string& value) {
  6599. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6600. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.database)
  6601. }
  6602. inline void WriteRequest::set_database(std::string&& value) {
  6603. database_.SetNoArena(
  6604. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6605. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.database)
  6606. }
  6607. inline void WriteRequest::set_database(const char* value) {
  6608. GOOGLE_DCHECK(value != nullptr);
  6609. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6610. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.database)
  6611. }
  6612. inline void WriteRequest::set_database(const char* value, size_t size) {
  6613. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6614. ::std::string(reinterpret_cast<const char*>(value), size));
  6615. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.database)
  6616. }
  6617. inline std::string* WriteRequest::mutable_database() {
  6618. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.database)
  6619. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6620. }
  6621. inline std::string* WriteRequest::release_database() {
  6622. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.database)
  6623. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6624. }
  6625. inline void WriteRequest::set_allocated_database(std::string* database) {
  6626. if (database != nullptr) {
  6627. } else {
  6628. }
  6629. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6630. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.database)
  6631. }
  6632. // string stream_id = 2;
  6633. inline void WriteRequest::clear_stream_id() {
  6634. stream_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6635. }
  6636. inline const std::string& WriteRequest::stream_id() const {
  6637. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_id)
  6638. return stream_id_.GetNoArena();
  6639. }
  6640. inline void WriteRequest::set_stream_id(const std::string& value) {
  6641. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6642. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_id)
  6643. }
  6644. inline void WriteRequest::set_stream_id(std::string&& value) {
  6645. stream_id_.SetNoArena(
  6646. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6647. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.stream_id)
  6648. }
  6649. inline void WriteRequest::set_stream_id(const char* value) {
  6650. GOOGLE_DCHECK(value != nullptr);
  6651. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6652. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.stream_id)
  6653. }
  6654. inline void WriteRequest::set_stream_id(const char* value, size_t size) {
  6655. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6656. ::std::string(reinterpret_cast<const char*>(value), size));
  6657. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.stream_id)
  6658. }
  6659. inline std::string* WriteRequest::mutable_stream_id() {
  6660. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_id)
  6661. return stream_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6662. }
  6663. inline std::string* WriteRequest::release_stream_id() {
  6664. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_id)
  6665. return stream_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6666. }
  6667. inline void WriteRequest::set_allocated_stream_id(std::string* stream_id) {
  6668. if (stream_id != nullptr) {
  6669. } else {
  6670. }
  6671. stream_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_id);
  6672. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_id)
  6673. }
  6674. // repeated .google.firestore.v1.Write writes = 3;
  6675. inline int WriteRequest::writes_size() const {
  6676. return writes_.size();
  6677. }
  6678. inline ::google::firestore::v1::Write* WriteRequest::mutable_writes(int index) {
  6679. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.writes)
  6680. return writes_.Mutable(index);
  6681. }
  6682. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  6683. WriteRequest::mutable_writes() {
  6684. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteRequest.writes)
  6685. return &writes_;
  6686. }
  6687. inline const ::google::firestore::v1::Write& WriteRequest::writes(int index) const {
  6688. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.writes)
  6689. return writes_.Get(index);
  6690. }
  6691. inline ::google::firestore::v1::Write* WriteRequest::add_writes() {
  6692. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteRequest.writes)
  6693. return writes_.Add();
  6694. }
  6695. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  6696. WriteRequest::writes() const {
  6697. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteRequest.writes)
  6698. return writes_;
  6699. }
  6700. // bytes stream_token = 4;
  6701. inline void WriteRequest::clear_stream_token() {
  6702. stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6703. }
  6704. inline const std::string& WriteRequest::stream_token() const {
  6705. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteRequest.stream_token)
  6706. return stream_token_.GetNoArena();
  6707. }
  6708. inline void WriteRequest::set_stream_token(const std::string& value) {
  6709. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6710. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteRequest.stream_token)
  6711. }
  6712. inline void WriteRequest::set_stream_token(std::string&& value) {
  6713. stream_token_.SetNoArena(
  6714. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6715. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteRequest.stream_token)
  6716. }
  6717. inline void WriteRequest::set_stream_token(const char* value) {
  6718. GOOGLE_DCHECK(value != nullptr);
  6719. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6720. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteRequest.stream_token)
  6721. }
  6722. inline void WriteRequest::set_stream_token(const void* value, size_t size) {
  6723. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6724. ::std::string(reinterpret_cast<const char*>(value), size));
  6725. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteRequest.stream_token)
  6726. }
  6727. inline std::string* WriteRequest::mutable_stream_token() {
  6728. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteRequest.stream_token)
  6729. return stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6730. }
  6731. inline std::string* WriteRequest::release_stream_token() {
  6732. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteRequest.stream_token)
  6733. return stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6734. }
  6735. inline void WriteRequest::set_allocated_stream_token(std::string* stream_token) {
  6736. if (stream_token != nullptr) {
  6737. } else {
  6738. }
  6739. stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_token);
  6740. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteRequest.stream_token)
  6741. }
  6742. // map<string, string> labels = 5;
  6743. inline int WriteRequest::labels_size() const {
  6744. return labels_.size();
  6745. }
  6746. inline void WriteRequest::clear_labels() {
  6747. labels_.Clear();
  6748. }
  6749. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  6750. WriteRequest::labels() const {
  6751. // @@protoc_insertion_point(field_map:google.firestore.v1.WriteRequest.labels)
  6752. return labels_.GetMap();
  6753. }
  6754. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  6755. WriteRequest::mutable_labels() {
  6756. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.WriteRequest.labels)
  6757. return labels_.MutableMap();
  6758. }
  6759. // -------------------------------------------------------------------
  6760. // WriteResponse
  6761. // string stream_id = 1;
  6762. inline void WriteResponse::clear_stream_id() {
  6763. stream_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6764. }
  6765. inline const std::string& WriteResponse::stream_id() const {
  6766. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_id)
  6767. return stream_id_.GetNoArena();
  6768. }
  6769. inline void WriteResponse::set_stream_id(const std::string& value) {
  6770. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6771. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_id)
  6772. }
  6773. inline void WriteResponse::set_stream_id(std::string&& value) {
  6774. stream_id_.SetNoArena(
  6775. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6776. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteResponse.stream_id)
  6777. }
  6778. inline void WriteResponse::set_stream_id(const char* value) {
  6779. GOOGLE_DCHECK(value != nullptr);
  6780. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6781. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteResponse.stream_id)
  6782. }
  6783. inline void WriteResponse::set_stream_id(const char* value, size_t size) {
  6784. stream_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6785. ::std::string(reinterpret_cast<const char*>(value), size));
  6786. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteResponse.stream_id)
  6787. }
  6788. inline std::string* WriteResponse::mutable_stream_id() {
  6789. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_id)
  6790. return stream_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6791. }
  6792. inline std::string* WriteResponse::release_stream_id() {
  6793. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_id)
  6794. return stream_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6795. }
  6796. inline void WriteResponse::set_allocated_stream_id(std::string* stream_id) {
  6797. if (stream_id != nullptr) {
  6798. } else {
  6799. }
  6800. stream_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_id);
  6801. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_id)
  6802. }
  6803. // bytes stream_token = 2;
  6804. inline void WriteResponse::clear_stream_token() {
  6805. stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6806. }
  6807. inline const std::string& WriteResponse::stream_token() const {
  6808. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.stream_token)
  6809. return stream_token_.GetNoArena();
  6810. }
  6811. inline void WriteResponse::set_stream_token(const std::string& value) {
  6812. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6813. // @@protoc_insertion_point(field_set:google.firestore.v1.WriteResponse.stream_token)
  6814. }
  6815. inline void WriteResponse::set_stream_token(std::string&& value) {
  6816. stream_token_.SetNoArena(
  6817. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6818. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.WriteResponse.stream_token)
  6819. }
  6820. inline void WriteResponse::set_stream_token(const char* value) {
  6821. GOOGLE_DCHECK(value != nullptr);
  6822. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6823. // @@protoc_insertion_point(field_set_char:google.firestore.v1.WriteResponse.stream_token)
  6824. }
  6825. inline void WriteResponse::set_stream_token(const void* value, size_t size) {
  6826. stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6827. ::std::string(reinterpret_cast<const char*>(value), size));
  6828. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.WriteResponse.stream_token)
  6829. }
  6830. inline std::string* WriteResponse::mutable_stream_token() {
  6831. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.stream_token)
  6832. return stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6833. }
  6834. inline std::string* WriteResponse::release_stream_token() {
  6835. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.stream_token)
  6836. return stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6837. }
  6838. inline void WriteResponse::set_allocated_stream_token(std::string* stream_token) {
  6839. if (stream_token != nullptr) {
  6840. } else {
  6841. }
  6842. stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream_token);
  6843. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.stream_token)
  6844. }
  6845. // repeated .google.firestore.v1.WriteResult write_results = 3;
  6846. inline int WriteResponse::write_results_size() const {
  6847. return write_results_.size();
  6848. }
  6849. inline ::google::firestore::v1::WriteResult* WriteResponse::mutable_write_results(int index) {
  6850. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.write_results)
  6851. return write_results_.Mutable(index);
  6852. }
  6853. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >*
  6854. WriteResponse::mutable_write_results() {
  6855. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteResponse.write_results)
  6856. return &write_results_;
  6857. }
  6858. inline const ::google::firestore::v1::WriteResult& WriteResponse::write_results(int index) const {
  6859. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.write_results)
  6860. return write_results_.Get(index);
  6861. }
  6862. inline ::google::firestore::v1::WriteResult* WriteResponse::add_write_results() {
  6863. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteResponse.write_results)
  6864. return write_results_.Add();
  6865. }
  6866. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::WriteResult >&
  6867. WriteResponse::write_results() const {
  6868. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteResponse.write_results)
  6869. return write_results_;
  6870. }
  6871. // .google.protobuf.Timestamp commit_time = 4;
  6872. inline bool WriteResponse::has_commit_time() const {
  6873. return this != internal_default_instance() && commit_time_ != nullptr;
  6874. }
  6875. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResponse::commit_time() const {
  6876. const PROTOBUF_NAMESPACE_ID::Timestamp* p = commit_time_;
  6877. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResponse.commit_time)
  6878. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  6879. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  6880. }
  6881. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::release_commit_time() {
  6882. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResponse.commit_time)
  6883. PROTOBUF_NAMESPACE_ID::Timestamp* temp = commit_time_;
  6884. commit_time_ = nullptr;
  6885. return temp;
  6886. }
  6887. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResponse::mutable_commit_time() {
  6888. if (commit_time_ == nullptr) {
  6889. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  6890. commit_time_ = p;
  6891. }
  6892. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResponse.commit_time)
  6893. return commit_time_;
  6894. }
  6895. inline void WriteResponse::set_allocated_commit_time(PROTOBUF_NAMESPACE_ID::Timestamp* commit_time) {
  6896. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  6897. if (message_arena == nullptr) {
  6898. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time_);
  6899. }
  6900. if (commit_time) {
  6901. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  6902. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(commit_time)->GetArena();
  6903. if (message_arena != submessage_arena) {
  6904. commit_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6905. message_arena, commit_time, submessage_arena);
  6906. }
  6907. } else {
  6908. }
  6909. commit_time_ = commit_time;
  6910. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResponse.commit_time)
  6911. }
  6912. // -------------------------------------------------------------------
  6913. // -------------------------------------------------------------------
  6914. // ListenRequest
  6915. // string database = 1;
  6916. inline void ListenRequest::clear_database() {
  6917. database_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6918. }
  6919. inline const std::string& ListenRequest::database() const {
  6920. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.database)
  6921. return database_.GetNoArena();
  6922. }
  6923. inline void ListenRequest::set_database(const std::string& value) {
  6924. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  6925. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.database)
  6926. }
  6927. inline void ListenRequest::set_database(std::string&& value) {
  6928. database_.SetNoArena(
  6929. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  6930. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListenRequest.database)
  6931. }
  6932. inline void ListenRequest::set_database(const char* value) {
  6933. GOOGLE_DCHECK(value != nullptr);
  6934. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6935. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListenRequest.database)
  6936. }
  6937. inline void ListenRequest::set_database(const char* value, size_t size) {
  6938. database_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6939. ::std::string(reinterpret_cast<const char*>(value), size));
  6940. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListenRequest.database)
  6941. }
  6942. inline std::string* ListenRequest::mutable_database() {
  6943. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.database)
  6944. return database_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6945. }
  6946. inline std::string* ListenRequest::release_database() {
  6947. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.database)
  6948. return database_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6949. }
  6950. inline void ListenRequest::set_allocated_database(std::string* database) {
  6951. if (database != nullptr) {
  6952. } else {
  6953. }
  6954. database_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database);
  6955. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListenRequest.database)
  6956. }
  6957. // .google.firestore.v1.Target add_target = 2;
  6958. inline bool ListenRequest::has_add_target() const {
  6959. return target_change_case() == kAddTarget;
  6960. }
  6961. inline void ListenRequest::set_has_add_target() {
  6962. _oneof_case_[0] = kAddTarget;
  6963. }
  6964. inline void ListenRequest::clear_add_target() {
  6965. if (has_add_target()) {
  6966. delete target_change_.add_target_;
  6967. clear_has_target_change();
  6968. }
  6969. }
  6970. inline ::google::firestore::v1::Target* ListenRequest::release_add_target() {
  6971. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenRequest.add_target)
  6972. if (has_add_target()) {
  6973. clear_has_target_change();
  6974. ::google::firestore::v1::Target* temp = target_change_.add_target_;
  6975. target_change_.add_target_ = nullptr;
  6976. return temp;
  6977. } else {
  6978. return nullptr;
  6979. }
  6980. }
  6981. inline const ::google::firestore::v1::Target& ListenRequest::add_target() const {
  6982. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.add_target)
  6983. return has_add_target()
  6984. ? *target_change_.add_target_
  6985. : *reinterpret_cast< ::google::firestore::v1::Target*>(&::google::firestore::v1::_Target_default_instance_);
  6986. }
  6987. inline ::google::firestore::v1::Target* ListenRequest::mutable_add_target() {
  6988. if (!has_add_target()) {
  6989. clear_target_change();
  6990. set_has_add_target();
  6991. target_change_.add_target_ = CreateMaybeMessage< ::google::firestore::v1::Target >(
  6992. GetArenaNoVirtual());
  6993. }
  6994. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenRequest.add_target)
  6995. return target_change_.add_target_;
  6996. }
  6997. // int32 remove_target = 3;
  6998. inline bool ListenRequest::has_remove_target() const {
  6999. return target_change_case() == kRemoveTarget;
  7000. }
  7001. inline void ListenRequest::set_has_remove_target() {
  7002. _oneof_case_[0] = kRemoveTarget;
  7003. }
  7004. inline void ListenRequest::clear_remove_target() {
  7005. if (has_remove_target()) {
  7006. target_change_.remove_target_ = 0;
  7007. clear_has_target_change();
  7008. }
  7009. }
  7010. inline ::PROTOBUF_NAMESPACE_ID::int32 ListenRequest::remove_target() const {
  7011. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenRequest.remove_target)
  7012. if (has_remove_target()) {
  7013. return target_change_.remove_target_;
  7014. }
  7015. return 0;
  7016. }
  7017. inline void ListenRequest::set_remove_target(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7018. if (!has_remove_target()) {
  7019. clear_target_change();
  7020. set_has_remove_target();
  7021. }
  7022. target_change_.remove_target_ = value;
  7023. // @@protoc_insertion_point(field_set:google.firestore.v1.ListenRequest.remove_target)
  7024. }
  7025. // map<string, string> labels = 4;
  7026. inline int ListenRequest::labels_size() const {
  7027. return labels_.size();
  7028. }
  7029. inline void ListenRequest::clear_labels() {
  7030. labels_.Clear();
  7031. }
  7032. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
  7033. ListenRequest::labels() const {
  7034. // @@protoc_insertion_point(field_map:google.firestore.v1.ListenRequest.labels)
  7035. return labels_.GetMap();
  7036. }
  7037. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
  7038. ListenRequest::mutable_labels() {
  7039. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.ListenRequest.labels)
  7040. return labels_.MutableMap();
  7041. }
  7042. inline bool ListenRequest::has_target_change() const {
  7043. return target_change_case() != TARGET_CHANGE_NOT_SET;
  7044. }
  7045. inline void ListenRequest::clear_has_target_change() {
  7046. _oneof_case_[0] = TARGET_CHANGE_NOT_SET;
  7047. }
  7048. inline ListenRequest::TargetChangeCase ListenRequest::target_change_case() const {
  7049. return ListenRequest::TargetChangeCase(_oneof_case_[0]);
  7050. }
  7051. // -------------------------------------------------------------------
  7052. // ListenResponse
  7053. // .google.firestore.v1.TargetChange target_change = 2;
  7054. inline bool ListenResponse::has_target_change() const {
  7055. return response_type_case() == kTargetChange;
  7056. }
  7057. inline void ListenResponse::set_has_target_change() {
  7058. _oneof_case_[0] = kTargetChange;
  7059. }
  7060. inline void ListenResponse::clear_target_change() {
  7061. if (has_target_change()) {
  7062. delete response_type_.target_change_;
  7063. clear_has_response_type();
  7064. }
  7065. }
  7066. inline ::google::firestore::v1::TargetChange* ListenResponse::release_target_change() {
  7067. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.target_change)
  7068. if (has_target_change()) {
  7069. clear_has_response_type();
  7070. ::google::firestore::v1::TargetChange* temp = response_type_.target_change_;
  7071. response_type_.target_change_ = nullptr;
  7072. return temp;
  7073. } else {
  7074. return nullptr;
  7075. }
  7076. }
  7077. inline const ::google::firestore::v1::TargetChange& ListenResponse::target_change() const {
  7078. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.target_change)
  7079. return has_target_change()
  7080. ? *response_type_.target_change_
  7081. : *reinterpret_cast< ::google::firestore::v1::TargetChange*>(&::google::firestore::v1::_TargetChange_default_instance_);
  7082. }
  7083. inline ::google::firestore::v1::TargetChange* ListenResponse::mutable_target_change() {
  7084. if (!has_target_change()) {
  7085. clear_response_type();
  7086. set_has_target_change();
  7087. response_type_.target_change_ = CreateMaybeMessage< ::google::firestore::v1::TargetChange >(
  7088. GetArenaNoVirtual());
  7089. }
  7090. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.target_change)
  7091. return response_type_.target_change_;
  7092. }
  7093. // .google.firestore.v1.DocumentChange document_change = 3;
  7094. inline bool ListenResponse::has_document_change() const {
  7095. return response_type_case() == kDocumentChange;
  7096. }
  7097. inline void ListenResponse::set_has_document_change() {
  7098. _oneof_case_[0] = kDocumentChange;
  7099. }
  7100. inline ::google::firestore::v1::DocumentChange* ListenResponse::release_document_change() {
  7101. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_change)
  7102. if (has_document_change()) {
  7103. clear_has_response_type();
  7104. ::google::firestore::v1::DocumentChange* temp = response_type_.document_change_;
  7105. response_type_.document_change_ = nullptr;
  7106. return temp;
  7107. } else {
  7108. return nullptr;
  7109. }
  7110. }
  7111. inline const ::google::firestore::v1::DocumentChange& ListenResponse::document_change() const {
  7112. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_change)
  7113. return has_document_change()
  7114. ? *response_type_.document_change_
  7115. : *reinterpret_cast< ::google::firestore::v1::DocumentChange*>(&::google::firestore::v1::_DocumentChange_default_instance_);
  7116. }
  7117. inline ::google::firestore::v1::DocumentChange* ListenResponse::mutable_document_change() {
  7118. if (!has_document_change()) {
  7119. clear_response_type();
  7120. set_has_document_change();
  7121. response_type_.document_change_ = CreateMaybeMessage< ::google::firestore::v1::DocumentChange >(
  7122. GetArenaNoVirtual());
  7123. }
  7124. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_change)
  7125. return response_type_.document_change_;
  7126. }
  7127. // .google.firestore.v1.DocumentDelete document_delete = 4;
  7128. inline bool ListenResponse::has_document_delete() const {
  7129. return response_type_case() == kDocumentDelete;
  7130. }
  7131. inline void ListenResponse::set_has_document_delete() {
  7132. _oneof_case_[0] = kDocumentDelete;
  7133. }
  7134. inline ::google::firestore::v1::DocumentDelete* ListenResponse::release_document_delete() {
  7135. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_delete)
  7136. if (has_document_delete()) {
  7137. clear_has_response_type();
  7138. ::google::firestore::v1::DocumentDelete* temp = response_type_.document_delete_;
  7139. response_type_.document_delete_ = nullptr;
  7140. return temp;
  7141. } else {
  7142. return nullptr;
  7143. }
  7144. }
  7145. inline const ::google::firestore::v1::DocumentDelete& ListenResponse::document_delete() const {
  7146. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_delete)
  7147. return has_document_delete()
  7148. ? *response_type_.document_delete_
  7149. : *reinterpret_cast< ::google::firestore::v1::DocumentDelete*>(&::google::firestore::v1::_DocumentDelete_default_instance_);
  7150. }
  7151. inline ::google::firestore::v1::DocumentDelete* ListenResponse::mutable_document_delete() {
  7152. if (!has_document_delete()) {
  7153. clear_response_type();
  7154. set_has_document_delete();
  7155. response_type_.document_delete_ = CreateMaybeMessage< ::google::firestore::v1::DocumentDelete >(
  7156. GetArenaNoVirtual());
  7157. }
  7158. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_delete)
  7159. return response_type_.document_delete_;
  7160. }
  7161. // .google.firestore.v1.DocumentRemove document_remove = 6;
  7162. inline bool ListenResponse::has_document_remove() const {
  7163. return response_type_case() == kDocumentRemove;
  7164. }
  7165. inline void ListenResponse::set_has_document_remove() {
  7166. _oneof_case_[0] = kDocumentRemove;
  7167. }
  7168. inline ::google::firestore::v1::DocumentRemove* ListenResponse::release_document_remove() {
  7169. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.document_remove)
  7170. if (has_document_remove()) {
  7171. clear_has_response_type();
  7172. ::google::firestore::v1::DocumentRemove* temp = response_type_.document_remove_;
  7173. response_type_.document_remove_ = nullptr;
  7174. return temp;
  7175. } else {
  7176. return nullptr;
  7177. }
  7178. }
  7179. inline const ::google::firestore::v1::DocumentRemove& ListenResponse::document_remove() const {
  7180. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.document_remove)
  7181. return has_document_remove()
  7182. ? *response_type_.document_remove_
  7183. : *reinterpret_cast< ::google::firestore::v1::DocumentRemove*>(&::google::firestore::v1::_DocumentRemove_default_instance_);
  7184. }
  7185. inline ::google::firestore::v1::DocumentRemove* ListenResponse::mutable_document_remove() {
  7186. if (!has_document_remove()) {
  7187. clear_response_type();
  7188. set_has_document_remove();
  7189. response_type_.document_remove_ = CreateMaybeMessage< ::google::firestore::v1::DocumentRemove >(
  7190. GetArenaNoVirtual());
  7191. }
  7192. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.document_remove)
  7193. return response_type_.document_remove_;
  7194. }
  7195. // .google.firestore.v1.ExistenceFilter filter = 5;
  7196. inline bool ListenResponse::has_filter() const {
  7197. return response_type_case() == kFilter;
  7198. }
  7199. inline void ListenResponse::set_has_filter() {
  7200. _oneof_case_[0] = kFilter;
  7201. }
  7202. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::release_filter() {
  7203. // @@protoc_insertion_point(field_release:google.firestore.v1.ListenResponse.filter)
  7204. if (has_filter()) {
  7205. clear_has_response_type();
  7206. ::google::firestore::v1::ExistenceFilter* temp = response_type_.filter_;
  7207. response_type_.filter_ = nullptr;
  7208. return temp;
  7209. } else {
  7210. return nullptr;
  7211. }
  7212. }
  7213. inline const ::google::firestore::v1::ExistenceFilter& ListenResponse::filter() const {
  7214. // @@protoc_insertion_point(field_get:google.firestore.v1.ListenResponse.filter)
  7215. return has_filter()
  7216. ? *response_type_.filter_
  7217. : *reinterpret_cast< ::google::firestore::v1::ExistenceFilter*>(&::google::firestore::v1::_ExistenceFilter_default_instance_);
  7218. }
  7219. inline ::google::firestore::v1::ExistenceFilter* ListenResponse::mutable_filter() {
  7220. if (!has_filter()) {
  7221. clear_response_type();
  7222. set_has_filter();
  7223. response_type_.filter_ = CreateMaybeMessage< ::google::firestore::v1::ExistenceFilter >(
  7224. GetArenaNoVirtual());
  7225. }
  7226. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListenResponse.filter)
  7227. return response_type_.filter_;
  7228. }
  7229. inline bool ListenResponse::has_response_type() const {
  7230. return response_type_case() != RESPONSE_TYPE_NOT_SET;
  7231. }
  7232. inline void ListenResponse::clear_has_response_type() {
  7233. _oneof_case_[0] = RESPONSE_TYPE_NOT_SET;
  7234. }
  7235. inline ListenResponse::ResponseTypeCase ListenResponse::response_type_case() const {
  7236. return ListenResponse::ResponseTypeCase(_oneof_case_[0]);
  7237. }
  7238. // -------------------------------------------------------------------
  7239. // Target_DocumentsTarget
  7240. // repeated string documents = 2;
  7241. inline int Target_DocumentsTarget::documents_size() const {
  7242. return documents_.size();
  7243. }
  7244. inline void Target_DocumentsTarget::clear_documents() {
  7245. documents_.Clear();
  7246. }
  7247. inline const std::string& Target_DocumentsTarget::documents(int index) const {
  7248. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.DocumentsTarget.documents)
  7249. return documents_.Get(index);
  7250. }
  7251. inline std::string* Target_DocumentsTarget::mutable_documents(int index) {
  7252. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  7253. return documents_.Mutable(index);
  7254. }
  7255. inline void Target_DocumentsTarget::set_documents(int index, const std::string& value) {
  7256. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  7257. documents_.Mutable(index)->assign(value);
  7258. }
  7259. inline void Target_DocumentsTarget::set_documents(int index, std::string&& value) {
  7260. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.DocumentsTarget.documents)
  7261. documents_.Mutable(index)->assign(std::move(value));
  7262. }
  7263. inline void Target_DocumentsTarget::set_documents(int index, const char* value) {
  7264. GOOGLE_DCHECK(value != nullptr);
  7265. documents_.Mutable(index)->assign(value);
  7266. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.DocumentsTarget.documents)
  7267. }
  7268. inline void Target_DocumentsTarget::set_documents(int index, const char* value, size_t size) {
  7269. documents_.Mutable(index)->assign(
  7270. reinterpret_cast<const char*>(value), size);
  7271. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  7272. }
  7273. inline std::string* Target_DocumentsTarget::add_documents() {
  7274. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.Target.DocumentsTarget.documents)
  7275. return documents_.Add();
  7276. }
  7277. inline void Target_DocumentsTarget::add_documents(const std::string& value) {
  7278. documents_.Add()->assign(value);
  7279. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  7280. }
  7281. inline void Target_DocumentsTarget::add_documents(std::string&& value) {
  7282. documents_.Add(std::move(value));
  7283. // @@protoc_insertion_point(field_add:google.firestore.v1.Target.DocumentsTarget.documents)
  7284. }
  7285. inline void Target_DocumentsTarget::add_documents(const char* value) {
  7286. GOOGLE_DCHECK(value != nullptr);
  7287. documents_.Add()->assign(value);
  7288. // @@protoc_insertion_point(field_add_char:google.firestore.v1.Target.DocumentsTarget.documents)
  7289. }
  7290. inline void Target_DocumentsTarget::add_documents(const char* value, size_t size) {
  7291. documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
  7292. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.Target.DocumentsTarget.documents)
  7293. }
  7294. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  7295. Target_DocumentsTarget::documents() const {
  7296. // @@protoc_insertion_point(field_list:google.firestore.v1.Target.DocumentsTarget.documents)
  7297. return documents_;
  7298. }
  7299. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  7300. Target_DocumentsTarget::mutable_documents() {
  7301. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Target.DocumentsTarget.documents)
  7302. return &documents_;
  7303. }
  7304. // -------------------------------------------------------------------
  7305. // Target_QueryTarget
  7306. // string parent = 1;
  7307. inline void Target_QueryTarget::clear_parent() {
  7308. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7309. }
  7310. inline const std::string& Target_QueryTarget::parent() const {
  7311. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.parent)
  7312. return parent_.GetNoArena();
  7313. }
  7314. inline void Target_QueryTarget::set_parent(const std::string& value) {
  7315. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7316. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.QueryTarget.parent)
  7317. }
  7318. inline void Target_QueryTarget::set_parent(std::string&& value) {
  7319. parent_.SetNoArena(
  7320. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7321. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Target.QueryTarget.parent)
  7322. }
  7323. inline void Target_QueryTarget::set_parent(const char* value) {
  7324. GOOGLE_DCHECK(value != nullptr);
  7325. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7326. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.QueryTarget.parent)
  7327. }
  7328. inline void Target_QueryTarget::set_parent(const char* value, size_t size) {
  7329. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7330. ::std::string(reinterpret_cast<const char*>(value), size));
  7331. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.QueryTarget.parent)
  7332. }
  7333. inline std::string* Target_QueryTarget::mutable_parent() {
  7334. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.parent)
  7335. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7336. }
  7337. inline std::string* Target_QueryTarget::release_parent() {
  7338. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.parent)
  7339. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7340. }
  7341. inline void Target_QueryTarget::set_allocated_parent(std::string* parent) {
  7342. if (parent != nullptr) {
  7343. } else {
  7344. }
  7345. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  7346. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.QueryTarget.parent)
  7347. }
  7348. // .google.firestore.v1.StructuredQuery structured_query = 2;
  7349. inline bool Target_QueryTarget::has_structured_query() const {
  7350. return query_type_case() == kStructuredQuery;
  7351. }
  7352. inline void Target_QueryTarget::set_has_structured_query() {
  7353. _oneof_case_[0] = kStructuredQuery;
  7354. }
  7355. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::release_structured_query() {
  7356. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.QueryTarget.structured_query)
  7357. if (has_structured_query()) {
  7358. clear_has_query_type();
  7359. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  7360. query_type_.structured_query_ = nullptr;
  7361. return temp;
  7362. } else {
  7363. return nullptr;
  7364. }
  7365. }
  7366. inline const ::google::firestore::v1::StructuredQuery& Target_QueryTarget::structured_query() const {
  7367. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.QueryTarget.structured_query)
  7368. return has_structured_query()
  7369. ? *query_type_.structured_query_
  7370. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  7371. }
  7372. inline ::google::firestore::v1::StructuredQuery* Target_QueryTarget::mutable_structured_query() {
  7373. if (!has_structured_query()) {
  7374. clear_query_type();
  7375. set_has_structured_query();
  7376. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  7377. GetArenaNoVirtual());
  7378. }
  7379. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.QueryTarget.structured_query)
  7380. return query_type_.structured_query_;
  7381. }
  7382. inline bool Target_QueryTarget::has_query_type() const {
  7383. return query_type_case() != QUERY_TYPE_NOT_SET;
  7384. }
  7385. inline void Target_QueryTarget::clear_has_query_type() {
  7386. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  7387. }
  7388. inline Target_QueryTarget::QueryTypeCase Target_QueryTarget::query_type_case() const {
  7389. return Target_QueryTarget::QueryTypeCase(_oneof_case_[0]);
  7390. }
  7391. // -------------------------------------------------------------------
  7392. // Target
  7393. // .google.firestore.v1.Target.QueryTarget query = 2;
  7394. inline bool Target::has_query() const {
  7395. return target_type_case() == kQuery;
  7396. }
  7397. inline void Target::set_has_query() {
  7398. _oneof_case_[0] = kQuery;
  7399. }
  7400. inline void Target::clear_query() {
  7401. if (has_query()) {
  7402. delete target_type_.query_;
  7403. clear_has_target_type();
  7404. }
  7405. }
  7406. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  7407. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.query)
  7408. if (has_query()) {
  7409. clear_has_target_type();
  7410. ::google::firestore::v1::Target_QueryTarget* temp = target_type_.query_;
  7411. target_type_.query_ = nullptr;
  7412. return temp;
  7413. } else {
  7414. return nullptr;
  7415. }
  7416. }
  7417. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const {
  7418. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.query)
  7419. return has_query()
  7420. ? *target_type_.query_
  7421. : *reinterpret_cast< ::google::firestore::v1::Target_QueryTarget*>(&::google::firestore::v1::_Target_QueryTarget_default_instance_);
  7422. }
  7423. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() {
  7424. if (!has_query()) {
  7425. clear_target_type();
  7426. set_has_query();
  7427. target_type_.query_ = CreateMaybeMessage< ::google::firestore::v1::Target_QueryTarget >(
  7428. GetArenaNoVirtual());
  7429. }
  7430. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.query)
  7431. return target_type_.query_;
  7432. }
  7433. // .google.firestore.v1.Target.DocumentsTarget documents = 3;
  7434. inline bool Target::has_documents() const {
  7435. return target_type_case() == kDocuments;
  7436. }
  7437. inline void Target::set_has_documents() {
  7438. _oneof_case_[0] = kDocuments;
  7439. }
  7440. inline void Target::clear_documents() {
  7441. if (has_documents()) {
  7442. delete target_type_.documents_;
  7443. clear_has_target_type();
  7444. }
  7445. }
  7446. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  7447. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.documents)
  7448. if (has_documents()) {
  7449. clear_has_target_type();
  7450. ::google::firestore::v1::Target_DocumentsTarget* temp = target_type_.documents_;
  7451. target_type_.documents_ = nullptr;
  7452. return temp;
  7453. } else {
  7454. return nullptr;
  7455. }
  7456. }
  7457. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const {
  7458. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.documents)
  7459. return has_documents()
  7460. ? *target_type_.documents_
  7461. : *reinterpret_cast< ::google::firestore::v1::Target_DocumentsTarget*>(&::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  7462. }
  7463. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() {
  7464. if (!has_documents()) {
  7465. clear_target_type();
  7466. set_has_documents();
  7467. target_type_.documents_ = CreateMaybeMessage< ::google::firestore::v1::Target_DocumentsTarget >(
  7468. GetArenaNoVirtual());
  7469. }
  7470. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.documents)
  7471. return target_type_.documents_;
  7472. }
  7473. // bytes resume_token = 4;
  7474. inline bool Target::has_resume_token() const {
  7475. return resume_type_case() == kResumeToken;
  7476. }
  7477. inline void Target::set_has_resume_token() {
  7478. _oneof_case_[1] = kResumeToken;
  7479. }
  7480. inline void Target::clear_resume_token() {
  7481. if (has_resume_token()) {
  7482. resume_type_.resume_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7483. clear_has_resume_type();
  7484. }
  7485. }
  7486. inline const std::string& Target::resume_token() const {
  7487. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.resume_token)
  7488. if (has_resume_token()) {
  7489. return resume_type_.resume_token_.GetNoArena();
  7490. }
  7491. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  7492. }
  7493. inline void Target::set_resume_token(const std::string& value) {
  7494. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  7495. if (!has_resume_token()) {
  7496. clear_resume_type();
  7497. set_has_resume_token();
  7498. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7499. }
  7500. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7501. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  7502. }
  7503. inline void Target::set_resume_token(std::string&& value) {
  7504. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.resume_token)
  7505. if (!has_resume_token()) {
  7506. clear_resume_type();
  7507. set_has_resume_token();
  7508. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7509. }
  7510. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7511. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Target.resume_token)
  7512. }
  7513. inline void Target::set_resume_token(const char* value) {
  7514. GOOGLE_DCHECK(value != nullptr);
  7515. if (!has_resume_token()) {
  7516. clear_resume_type();
  7517. set_has_resume_token();
  7518. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7519. }
  7520. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7521. ::std::string(value));
  7522. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Target.resume_token)
  7523. }
  7524. inline void Target::set_resume_token(const void* value, size_t size) {
  7525. if (!has_resume_token()) {
  7526. clear_resume_type();
  7527. set_has_resume_token();
  7528. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7529. }
  7530. resume_type_.resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7531. reinterpret_cast<const char*>(value), size));
  7532. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Target.resume_token)
  7533. }
  7534. inline std::string* Target::mutable_resume_token() {
  7535. if (!has_resume_token()) {
  7536. clear_resume_type();
  7537. set_has_resume_token();
  7538. resume_type_.resume_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7539. }
  7540. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.resume_token)
  7541. return resume_type_.resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7542. }
  7543. inline std::string* Target::release_resume_token() {
  7544. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.resume_token)
  7545. if (has_resume_token()) {
  7546. clear_has_resume_type();
  7547. return resume_type_.resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7548. } else {
  7549. return nullptr;
  7550. }
  7551. }
  7552. inline void Target::set_allocated_resume_token(std::string* resume_token) {
  7553. if (has_resume_type()) {
  7554. clear_resume_type();
  7555. }
  7556. if (resume_token != nullptr) {
  7557. set_has_resume_token();
  7558. resume_type_.resume_token_.UnsafeSetDefault(resume_token);
  7559. }
  7560. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.resume_token)
  7561. }
  7562. // .google.protobuf.Timestamp read_time = 11;
  7563. inline bool Target::has_read_time() const {
  7564. return resume_type_case() == kReadTime;
  7565. }
  7566. inline void Target::set_has_read_time() {
  7567. _oneof_case_[1] = kReadTime;
  7568. }
  7569. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_read_time() {
  7570. // @@protoc_insertion_point(field_release:google.firestore.v1.Target.read_time)
  7571. if (has_read_time()) {
  7572. clear_has_resume_type();
  7573. PROTOBUF_NAMESPACE_ID::Timestamp* temp = resume_type_.read_time_;
  7574. resume_type_.read_time_ = nullptr;
  7575. return temp;
  7576. } else {
  7577. return nullptr;
  7578. }
  7579. }
  7580. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::read_time() const {
  7581. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.read_time)
  7582. return has_read_time()
  7583. ? *resume_type_.read_time_
  7584. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7585. }
  7586. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_read_time() {
  7587. if (!has_read_time()) {
  7588. clear_resume_type();
  7589. set_has_read_time();
  7590. resume_type_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
  7591. GetArenaNoVirtual());
  7592. }
  7593. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.read_time)
  7594. return resume_type_.read_time_;
  7595. }
  7596. // int32 target_id = 5;
  7597. inline void Target::clear_target_id() {
  7598. target_id_ = 0;
  7599. }
  7600. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::target_id() const {
  7601. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.target_id)
  7602. return target_id_;
  7603. }
  7604. inline void Target::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7605. target_id_ = value;
  7606. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.target_id)
  7607. }
  7608. // bool once = 6;
  7609. inline void Target::clear_once() {
  7610. once_ = false;
  7611. }
  7612. inline bool Target::once() const {
  7613. // @@protoc_insertion_point(field_get:google.firestore.v1.Target.once)
  7614. return once_;
  7615. }
  7616. inline void Target::set_once(bool value) {
  7617. once_ = value;
  7618. // @@protoc_insertion_point(field_set:google.firestore.v1.Target.once)
  7619. }
  7620. inline bool Target::has_target_type() const {
  7621. return target_type_case() != TARGET_TYPE_NOT_SET;
  7622. }
  7623. inline void Target::clear_has_target_type() {
  7624. _oneof_case_[0] = TARGET_TYPE_NOT_SET;
  7625. }
  7626. inline bool Target::has_resume_type() const {
  7627. return resume_type_case() != RESUME_TYPE_NOT_SET;
  7628. }
  7629. inline void Target::clear_has_resume_type() {
  7630. _oneof_case_[1] = RESUME_TYPE_NOT_SET;
  7631. }
  7632. inline Target::TargetTypeCase Target::target_type_case() const {
  7633. return Target::TargetTypeCase(_oneof_case_[0]);
  7634. }
  7635. inline Target::ResumeTypeCase Target::resume_type_case() const {
  7636. return Target::ResumeTypeCase(_oneof_case_[1]);
  7637. }
  7638. // -------------------------------------------------------------------
  7639. // TargetChange
  7640. // .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
  7641. inline void TargetChange::clear_target_change_type() {
  7642. target_change_type_ = 0;
  7643. }
  7644. inline ::google::firestore::v1::TargetChange_TargetChangeType TargetChange::target_change_type() const {
  7645. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_change_type)
  7646. return static_cast< ::google::firestore::v1::TargetChange_TargetChangeType >(target_change_type_);
  7647. }
  7648. inline void TargetChange::set_target_change_type(::google::firestore::v1::TargetChange_TargetChangeType value) {
  7649. target_change_type_ = value;
  7650. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_change_type)
  7651. }
  7652. // repeated int32 target_ids = 2;
  7653. inline int TargetChange::target_ids_size() const {
  7654. return target_ids_.size();
  7655. }
  7656. inline void TargetChange::clear_target_ids() {
  7657. target_ids_.Clear();
  7658. }
  7659. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetChange::target_ids(int index) const {
  7660. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.target_ids)
  7661. return target_ids_.Get(index);
  7662. }
  7663. inline void TargetChange::set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  7664. target_ids_.Set(index, value);
  7665. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.target_ids)
  7666. }
  7667. inline void TargetChange::add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7668. target_ids_.Add(value);
  7669. // @@protoc_insertion_point(field_add:google.firestore.v1.TargetChange.target_ids)
  7670. }
  7671. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  7672. TargetChange::target_ids() const {
  7673. // @@protoc_insertion_point(field_list:google.firestore.v1.TargetChange.target_ids)
  7674. return target_ids_;
  7675. }
  7676. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  7677. TargetChange::mutable_target_ids() {
  7678. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.TargetChange.target_ids)
  7679. return &target_ids_;
  7680. }
  7681. // .google.rpc.Status cause = 3;
  7682. inline bool TargetChange::has_cause() const {
  7683. return this != internal_default_instance() && cause_ != nullptr;
  7684. }
  7685. inline const ::google::rpc::Status& TargetChange::cause() const {
  7686. const ::google::rpc::Status* p = cause_;
  7687. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.cause)
  7688. return p != nullptr ? *p : *reinterpret_cast<const ::google::rpc::Status*>(
  7689. &::google::rpc::_Status_default_instance_);
  7690. }
  7691. inline ::google::rpc::Status* TargetChange::release_cause() {
  7692. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.cause)
  7693. ::google::rpc::Status* temp = cause_;
  7694. cause_ = nullptr;
  7695. return temp;
  7696. }
  7697. inline ::google::rpc::Status* TargetChange::mutable_cause() {
  7698. if (cause_ == nullptr) {
  7699. auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArenaNoVirtual());
  7700. cause_ = p;
  7701. }
  7702. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.cause)
  7703. return cause_;
  7704. }
  7705. inline void TargetChange::set_allocated_cause(::google::rpc::Status* cause) {
  7706. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7707. if (message_arena == nullptr) {
  7708. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cause_);
  7709. }
  7710. if (cause) {
  7711. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  7712. if (message_arena != submessage_arena) {
  7713. cause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7714. message_arena, cause, submessage_arena);
  7715. }
  7716. } else {
  7717. }
  7718. cause_ = cause;
  7719. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.cause)
  7720. }
  7721. // bytes resume_token = 4;
  7722. inline void TargetChange::clear_resume_token() {
  7723. resume_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7724. }
  7725. inline const std::string& TargetChange::resume_token() const {
  7726. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.resume_token)
  7727. return resume_token_.GetNoArena();
  7728. }
  7729. inline void TargetChange::set_resume_token(const std::string& value) {
  7730. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7731. // @@protoc_insertion_point(field_set:google.firestore.v1.TargetChange.resume_token)
  7732. }
  7733. inline void TargetChange::set_resume_token(std::string&& value) {
  7734. resume_token_.SetNoArena(
  7735. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7736. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.TargetChange.resume_token)
  7737. }
  7738. inline void TargetChange::set_resume_token(const char* value) {
  7739. GOOGLE_DCHECK(value != nullptr);
  7740. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7741. // @@protoc_insertion_point(field_set_char:google.firestore.v1.TargetChange.resume_token)
  7742. }
  7743. inline void TargetChange::set_resume_token(const void* value, size_t size) {
  7744. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7745. ::std::string(reinterpret_cast<const char*>(value), size));
  7746. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.TargetChange.resume_token)
  7747. }
  7748. inline std::string* TargetChange::mutable_resume_token() {
  7749. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.resume_token)
  7750. return resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7751. }
  7752. inline std::string* TargetChange::release_resume_token() {
  7753. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.resume_token)
  7754. return resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7755. }
  7756. inline void TargetChange::set_allocated_resume_token(std::string* resume_token) {
  7757. if (resume_token != nullptr) {
  7758. } else {
  7759. }
  7760. resume_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resume_token);
  7761. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.resume_token)
  7762. }
  7763. // .google.protobuf.Timestamp read_time = 6;
  7764. inline bool TargetChange::has_read_time() const {
  7765. return this != internal_default_instance() && read_time_ != nullptr;
  7766. }
  7767. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetChange::read_time() const {
  7768. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  7769. // @@protoc_insertion_point(field_get:google.firestore.v1.TargetChange.read_time)
  7770. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  7771. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  7772. }
  7773. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::release_read_time() {
  7774. // @@protoc_insertion_point(field_release:google.firestore.v1.TargetChange.read_time)
  7775. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  7776. read_time_ = nullptr;
  7777. return temp;
  7778. }
  7779. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetChange::mutable_read_time() {
  7780. if (read_time_ == nullptr) {
  7781. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  7782. read_time_ = p;
  7783. }
  7784. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TargetChange.read_time)
  7785. return read_time_;
  7786. }
  7787. inline void TargetChange::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  7788. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7789. if (message_arena == nullptr) {
  7790. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  7791. }
  7792. if (read_time) {
  7793. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7794. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  7795. if (message_arena != submessage_arena) {
  7796. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7797. message_arena, read_time, submessage_arena);
  7798. }
  7799. } else {
  7800. }
  7801. read_time_ = read_time;
  7802. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TargetChange.read_time)
  7803. }
  7804. // -------------------------------------------------------------------
  7805. // ListCollectionIdsRequest
  7806. // string parent = 1;
  7807. inline void ListCollectionIdsRequest::clear_parent() {
  7808. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7809. }
  7810. inline const std::string& ListCollectionIdsRequest::parent() const {
  7811. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.parent)
  7812. return parent_.GetNoArena();
  7813. }
  7814. inline void ListCollectionIdsRequest::set_parent(const std::string& value) {
  7815. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7816. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.parent)
  7817. }
  7818. inline void ListCollectionIdsRequest::set_parent(std::string&& value) {
  7819. parent_.SetNoArena(
  7820. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7821. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsRequest.parent)
  7822. }
  7823. inline void ListCollectionIdsRequest::set_parent(const char* value) {
  7824. GOOGLE_DCHECK(value != nullptr);
  7825. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7826. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsRequest.parent)
  7827. }
  7828. inline void ListCollectionIdsRequest::set_parent(const char* value, size_t size) {
  7829. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7830. ::std::string(reinterpret_cast<const char*>(value), size));
  7831. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsRequest.parent)
  7832. }
  7833. inline std::string* ListCollectionIdsRequest::mutable_parent() {
  7834. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.parent)
  7835. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7836. }
  7837. inline std::string* ListCollectionIdsRequest::release_parent() {
  7838. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.parent)
  7839. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7840. }
  7841. inline void ListCollectionIdsRequest::set_allocated_parent(std::string* parent) {
  7842. if (parent != nullptr) {
  7843. } else {
  7844. }
  7845. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  7846. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.parent)
  7847. }
  7848. // int32 page_size = 2;
  7849. inline void ListCollectionIdsRequest::clear_page_size() {
  7850. page_size_ = 0;
  7851. }
  7852. inline ::PROTOBUF_NAMESPACE_ID::int32 ListCollectionIdsRequest::page_size() const {
  7853. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_size)
  7854. return page_size_;
  7855. }
  7856. inline void ListCollectionIdsRequest::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7857. page_size_ = value;
  7858. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_size)
  7859. }
  7860. // string page_token = 3;
  7861. inline void ListCollectionIdsRequest::clear_page_token() {
  7862. page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7863. }
  7864. inline const std::string& ListCollectionIdsRequest::page_token() const {
  7865. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsRequest.page_token)
  7866. return page_token_.GetNoArena();
  7867. }
  7868. inline void ListCollectionIdsRequest::set_page_token(const std::string& value) {
  7869. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7870. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsRequest.page_token)
  7871. }
  7872. inline void ListCollectionIdsRequest::set_page_token(std::string&& value) {
  7873. page_token_.SetNoArena(
  7874. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7875. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsRequest.page_token)
  7876. }
  7877. inline void ListCollectionIdsRequest::set_page_token(const char* value) {
  7878. GOOGLE_DCHECK(value != nullptr);
  7879. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7880. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsRequest.page_token)
  7881. }
  7882. inline void ListCollectionIdsRequest::set_page_token(const char* value, size_t size) {
  7883. page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7884. ::std::string(reinterpret_cast<const char*>(value), size));
  7885. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsRequest.page_token)
  7886. }
  7887. inline std::string* ListCollectionIdsRequest::mutable_page_token() {
  7888. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsRequest.page_token)
  7889. return page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7890. }
  7891. inline std::string* ListCollectionIdsRequest::release_page_token() {
  7892. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsRequest.page_token)
  7893. return page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7894. }
  7895. inline void ListCollectionIdsRequest::set_allocated_page_token(std::string* page_token) {
  7896. if (page_token != nullptr) {
  7897. } else {
  7898. }
  7899. page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token);
  7900. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsRequest.page_token)
  7901. }
  7902. // -------------------------------------------------------------------
  7903. // ListCollectionIdsResponse
  7904. // repeated string collection_ids = 1;
  7905. inline int ListCollectionIdsResponse::collection_ids_size() const {
  7906. return collection_ids_.size();
  7907. }
  7908. inline void ListCollectionIdsResponse::clear_collection_ids() {
  7909. collection_ids_.Clear();
  7910. }
  7911. inline const std::string& ListCollectionIdsResponse::collection_ids(int index) const {
  7912. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7913. return collection_ids_.Get(index);
  7914. }
  7915. inline std::string* ListCollectionIdsResponse::mutable_collection_ids(int index) {
  7916. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7917. return collection_ids_.Mutable(index);
  7918. }
  7919. inline void ListCollectionIdsResponse::set_collection_ids(int index, const std::string& value) {
  7920. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7921. collection_ids_.Mutable(index)->assign(value);
  7922. }
  7923. inline void ListCollectionIdsResponse::set_collection_ids(int index, std::string&& value) {
  7924. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7925. collection_ids_.Mutable(index)->assign(std::move(value));
  7926. }
  7927. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value) {
  7928. GOOGLE_DCHECK(value != nullptr);
  7929. collection_ids_.Mutable(index)->assign(value);
  7930. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7931. }
  7932. inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value, size_t size) {
  7933. collection_ids_.Mutable(index)->assign(
  7934. reinterpret_cast<const char*>(value), size);
  7935. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7936. }
  7937. inline std::string* ListCollectionIdsResponse::add_collection_ids() {
  7938. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7939. return collection_ids_.Add();
  7940. }
  7941. inline void ListCollectionIdsResponse::add_collection_ids(const std::string& value) {
  7942. collection_ids_.Add()->assign(value);
  7943. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7944. }
  7945. inline void ListCollectionIdsResponse::add_collection_ids(std::string&& value) {
  7946. collection_ids_.Add(std::move(value));
  7947. // @@protoc_insertion_point(field_add:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7948. }
  7949. inline void ListCollectionIdsResponse::add_collection_ids(const char* value) {
  7950. GOOGLE_DCHECK(value != nullptr);
  7951. collection_ids_.Add()->assign(value);
  7952. // @@protoc_insertion_point(field_add_char:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7953. }
  7954. inline void ListCollectionIdsResponse::add_collection_ids(const char* value, size_t size) {
  7955. collection_ids_.Add()->assign(reinterpret_cast<const char*>(value), size);
  7956. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7957. }
  7958. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  7959. ListCollectionIdsResponse::collection_ids() const {
  7960. // @@protoc_insertion_point(field_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7961. return collection_ids_;
  7962. }
  7963. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  7964. ListCollectionIdsResponse::mutable_collection_ids() {
  7965. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ListCollectionIdsResponse.collection_ids)
  7966. return &collection_ids_;
  7967. }
  7968. // string next_page_token = 2;
  7969. inline void ListCollectionIdsResponse::clear_next_page_token() {
  7970. next_page_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7971. }
  7972. inline const std::string& ListCollectionIdsResponse::next_page_token() const {
  7973. // @@protoc_insertion_point(field_get:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  7974. return next_page_token_.GetNoArena();
  7975. }
  7976. inline void ListCollectionIdsResponse::set_next_page_token(const std::string& value) {
  7977. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  7978. // @@protoc_insertion_point(field_set:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  7979. }
  7980. inline void ListCollectionIdsResponse::set_next_page_token(std::string&& value) {
  7981. next_page_token_.SetNoArena(
  7982. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7983. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  7984. }
  7985. inline void ListCollectionIdsResponse::set_next_page_token(const char* value) {
  7986. GOOGLE_DCHECK(value != nullptr);
  7987. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7988. // @@protoc_insertion_point(field_set_char:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  7989. }
  7990. inline void ListCollectionIdsResponse::set_next_page_token(const char* value, size_t size) {
  7991. next_page_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7992. ::std::string(reinterpret_cast<const char*>(value), size));
  7993. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  7994. }
  7995. inline std::string* ListCollectionIdsResponse::mutable_next_page_token() {
  7996. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  7997. return next_page_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7998. }
  7999. inline std::string* ListCollectionIdsResponse::release_next_page_token() {
  8000. // @@protoc_insertion_point(field_release:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  8001. return next_page_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8002. }
  8003. inline void ListCollectionIdsResponse::set_allocated_next_page_token(std::string* next_page_token) {
  8004. if (next_page_token != nullptr) {
  8005. } else {
  8006. }
  8007. next_page_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token);
  8008. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ListCollectionIdsResponse.next_page_token)
  8009. }
  8010. #ifdef __GNUC__
  8011. #pragma GCC diagnostic pop
  8012. #endif // __GNUC__
  8013. // -------------------------------------------------------------------
  8014. // -------------------------------------------------------------------
  8015. // -------------------------------------------------------------------
  8016. // -------------------------------------------------------------------
  8017. // -------------------------------------------------------------------
  8018. // -------------------------------------------------------------------
  8019. // -------------------------------------------------------------------
  8020. // -------------------------------------------------------------------
  8021. // -------------------------------------------------------------------
  8022. // -------------------------------------------------------------------
  8023. // -------------------------------------------------------------------
  8024. // -------------------------------------------------------------------
  8025. // -------------------------------------------------------------------
  8026. // -------------------------------------------------------------------
  8027. // -------------------------------------------------------------------
  8028. // -------------------------------------------------------------------
  8029. // -------------------------------------------------------------------
  8030. // -------------------------------------------------------------------
  8031. // -------------------------------------------------------------------
  8032. // -------------------------------------------------------------------
  8033. // -------------------------------------------------------------------
  8034. // -------------------------------------------------------------------
  8035. // -------------------------------------------------------------------
  8036. // -------------------------------------------------------------------
  8037. // -------------------------------------------------------------------
  8038. // -------------------------------------------------------------------
  8039. // @@protoc_insertion_point(namespace_scope)
  8040. } // namespace v1
  8041. } // namespace firestore
  8042. } // namespace google
  8043. PROTOBUF_NAMESPACE_OPEN
  8044. template <> struct is_proto_enum< ::google::firestore::v1::TargetChange_TargetChangeType> : ::std::true_type {};
  8045. template <>
  8046. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::TargetChange_TargetChangeType>() {
  8047. return ::google::firestore::v1::TargetChange_TargetChangeType_descriptor();
  8048. }
  8049. PROTOBUF_NAMESPACE_CLOSE
  8050. // @@protoc_insertion_point(global_scope)
  8051. #include <google/protobuf/port_undef.inc>
  8052. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2ffirestore_2eproto