query.pb.h 258 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947
  1. /*
  2. * Copyright 2024 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/query.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fquery_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fquery_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/generated_enum_reflection.h"
  48. #include "google/protobuf/unknown_field_set.h"
  49. #include "google/firestore/v1/document.pb.h"
  50. #include "google/protobuf/wrappers.pb.h"
  51. // @@protoc_insertion_point(includes)
  52. // Must be included last.
  53. #include "google/protobuf/port_def.inc"
  54. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fquery_2eproto
  55. namespace google {
  56. namespace protobuf {
  57. namespace internal {
  58. class AnyMetadata;
  59. } // namespace internal
  60. } // namespace protobuf
  61. } // namespace google
  62. // Internal implementation detail -- do not use these members.
  63. struct TableStruct_google_2ffirestore_2fv1_2fquery_2eproto {
  64. static const ::uint32_t offsets[];
  65. };
  66. extern const ::google::protobuf::internal::DescriptorTable
  67. descriptor_table_google_2ffirestore_2fv1_2fquery_2eproto;
  68. namespace google {
  69. namespace firestore {
  70. namespace v1 {
  71. class Cursor;
  72. struct CursorDefaultTypeInternal;
  73. extern CursorDefaultTypeInternal _Cursor_default_instance_;
  74. class StructuredAggregationQuery;
  75. struct StructuredAggregationQueryDefaultTypeInternal;
  76. extern StructuredAggregationQueryDefaultTypeInternal _StructuredAggregationQuery_default_instance_;
  77. class StructuredAggregationQuery_Aggregation;
  78. struct StructuredAggregationQuery_AggregationDefaultTypeInternal;
  79. extern StructuredAggregationQuery_AggregationDefaultTypeInternal _StructuredAggregationQuery_Aggregation_default_instance_;
  80. class StructuredAggregationQuery_Aggregation_Avg;
  81. struct StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal;
  82. extern StructuredAggregationQuery_Aggregation_AvgDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Avg_default_instance_;
  83. class StructuredAggregationQuery_Aggregation_Count;
  84. struct StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal;
  85. extern StructuredAggregationQuery_Aggregation_CountDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Count_default_instance_;
  86. class StructuredAggregationQuery_Aggregation_Sum;
  87. struct StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal;
  88. extern StructuredAggregationQuery_Aggregation_SumDefaultTypeInternal _StructuredAggregationQuery_Aggregation_Sum_default_instance_;
  89. class StructuredQuery;
  90. struct StructuredQueryDefaultTypeInternal;
  91. extern StructuredQueryDefaultTypeInternal _StructuredQuery_default_instance_;
  92. class StructuredQuery_CollectionSelector;
  93. struct StructuredQuery_CollectionSelectorDefaultTypeInternal;
  94. extern StructuredQuery_CollectionSelectorDefaultTypeInternal _StructuredQuery_CollectionSelector_default_instance_;
  95. class StructuredQuery_CompositeFilter;
  96. struct StructuredQuery_CompositeFilterDefaultTypeInternal;
  97. extern StructuredQuery_CompositeFilterDefaultTypeInternal _StructuredQuery_CompositeFilter_default_instance_;
  98. class StructuredQuery_FieldFilter;
  99. struct StructuredQuery_FieldFilterDefaultTypeInternal;
  100. extern StructuredQuery_FieldFilterDefaultTypeInternal _StructuredQuery_FieldFilter_default_instance_;
  101. class StructuredQuery_FieldReference;
  102. struct StructuredQuery_FieldReferenceDefaultTypeInternal;
  103. extern StructuredQuery_FieldReferenceDefaultTypeInternal _StructuredQuery_FieldReference_default_instance_;
  104. class StructuredQuery_Filter;
  105. struct StructuredQuery_FilterDefaultTypeInternal;
  106. extern StructuredQuery_FilterDefaultTypeInternal _StructuredQuery_Filter_default_instance_;
  107. class StructuredQuery_Order;
  108. struct StructuredQuery_OrderDefaultTypeInternal;
  109. extern StructuredQuery_OrderDefaultTypeInternal _StructuredQuery_Order_default_instance_;
  110. class StructuredQuery_Projection;
  111. struct StructuredQuery_ProjectionDefaultTypeInternal;
  112. extern StructuredQuery_ProjectionDefaultTypeInternal _StructuredQuery_Projection_default_instance_;
  113. class StructuredQuery_UnaryFilter;
  114. struct StructuredQuery_UnaryFilterDefaultTypeInternal;
  115. extern StructuredQuery_UnaryFilterDefaultTypeInternal _StructuredQuery_UnaryFilter_default_instance_;
  116. } // namespace v1
  117. } // namespace firestore
  118. namespace protobuf {
  119. } // namespace protobuf
  120. } // namespace google
  121. namespace google {
  122. namespace firestore {
  123. namespace v1 {
  124. enum StructuredQuery_CompositeFilter_Operator : int {
  125. StructuredQuery_CompositeFilter_Operator_OPERATOR_UNSPECIFIED = 0,
  126. StructuredQuery_CompositeFilter_Operator_AND = 1,
  127. StructuredQuery_CompositeFilter_Operator_OR = 2,
  128. StructuredQuery_CompositeFilter_Operator_StructuredQuery_CompositeFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ =
  129. std::numeric_limits<::int32_t>::min(),
  130. StructuredQuery_CompositeFilter_Operator_StructuredQuery_CompositeFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ =
  131. std::numeric_limits<::int32_t>::max(),
  132. };
  133. bool StructuredQuery_CompositeFilter_Operator_IsValid(int value);
  134. extern const uint32_t StructuredQuery_CompositeFilter_Operator_internal_data_[];
  135. constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter_Operator_Operator_MIN = static_cast<StructuredQuery_CompositeFilter_Operator>(0);
  136. constexpr StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter_Operator_Operator_MAX = static_cast<StructuredQuery_CompositeFilter_Operator>(2);
  137. constexpr int StructuredQuery_CompositeFilter_Operator_Operator_ARRAYSIZE = 2 + 1;
  138. const ::google::protobuf::EnumDescriptor*
  139. StructuredQuery_CompositeFilter_Operator_descriptor();
  140. template <typename T>
  141. const std::string& StructuredQuery_CompositeFilter_Operator_Name(T value) {
  142. static_assert(std::is_same<T, StructuredQuery_CompositeFilter_Operator>::value ||
  143. std::is_integral<T>::value,
  144. "Incorrect type passed to Operator_Name().");
  145. return StructuredQuery_CompositeFilter_Operator_Name(static_cast<StructuredQuery_CompositeFilter_Operator>(value));
  146. }
  147. template <>
  148. inline const std::string& StructuredQuery_CompositeFilter_Operator_Name(StructuredQuery_CompositeFilter_Operator value) {
  149. return ::google::protobuf::internal::NameOfDenseEnum<StructuredQuery_CompositeFilter_Operator_descriptor,
  150. 0, 2>(
  151. static_cast<int>(value));
  152. }
  153. inline bool StructuredQuery_CompositeFilter_Operator_Parse(absl::string_view name, StructuredQuery_CompositeFilter_Operator* value) {
  154. return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_CompositeFilter_Operator>(
  155. StructuredQuery_CompositeFilter_Operator_descriptor(), name, value);
  156. }
  157. enum StructuredQuery_FieldFilter_Operator : int {
  158. StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED = 0,
  159. StructuredQuery_FieldFilter_Operator_LESS_THAN = 1,
  160. StructuredQuery_FieldFilter_Operator_LESS_THAN_OR_EQUAL = 2,
  161. StructuredQuery_FieldFilter_Operator_GREATER_THAN = 3,
  162. StructuredQuery_FieldFilter_Operator_GREATER_THAN_OR_EQUAL = 4,
  163. StructuredQuery_FieldFilter_Operator_EQUAL = 5,
  164. StructuredQuery_FieldFilter_Operator_NOT_EQUAL = 6,
  165. StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS = 7,
  166. StructuredQuery_FieldFilter_Operator_IN = 8,
  167. StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS_ANY = 9,
  168. StructuredQuery_FieldFilter_Operator_NOT_IN = 10,
  169. StructuredQuery_FieldFilter_Operator_StructuredQuery_FieldFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ =
  170. std::numeric_limits<::int32_t>::min(),
  171. StructuredQuery_FieldFilter_Operator_StructuredQuery_FieldFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ =
  172. std::numeric_limits<::int32_t>::max(),
  173. };
  174. bool StructuredQuery_FieldFilter_Operator_IsValid(int value);
  175. extern const uint32_t StructuredQuery_FieldFilter_Operator_internal_data_[];
  176. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter_Operator_Operator_MIN = static_cast<StructuredQuery_FieldFilter_Operator>(0);
  177. constexpr StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter_Operator_Operator_MAX = static_cast<StructuredQuery_FieldFilter_Operator>(10);
  178. constexpr int StructuredQuery_FieldFilter_Operator_Operator_ARRAYSIZE = 10 + 1;
  179. const ::google::protobuf::EnumDescriptor*
  180. StructuredQuery_FieldFilter_Operator_descriptor();
  181. template <typename T>
  182. const std::string& StructuredQuery_FieldFilter_Operator_Name(T value) {
  183. static_assert(std::is_same<T, StructuredQuery_FieldFilter_Operator>::value ||
  184. std::is_integral<T>::value,
  185. "Incorrect type passed to Operator_Name().");
  186. return StructuredQuery_FieldFilter_Operator_Name(static_cast<StructuredQuery_FieldFilter_Operator>(value));
  187. }
  188. template <>
  189. inline const std::string& StructuredQuery_FieldFilter_Operator_Name(StructuredQuery_FieldFilter_Operator value) {
  190. return ::google::protobuf::internal::NameOfDenseEnum<StructuredQuery_FieldFilter_Operator_descriptor,
  191. 0, 10>(
  192. static_cast<int>(value));
  193. }
  194. inline bool StructuredQuery_FieldFilter_Operator_Parse(absl::string_view name, StructuredQuery_FieldFilter_Operator* value) {
  195. return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_FieldFilter_Operator>(
  196. StructuredQuery_FieldFilter_Operator_descriptor(), name, value);
  197. }
  198. enum StructuredQuery_UnaryFilter_Operator : int {
  199. StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED = 0,
  200. StructuredQuery_UnaryFilter_Operator_IS_NAN = 2,
  201. StructuredQuery_UnaryFilter_Operator_IS_NULL = 3,
  202. StructuredQuery_UnaryFilter_Operator_IS_NOT_NAN = 4,
  203. StructuredQuery_UnaryFilter_Operator_IS_NOT_NULL = 5,
  204. StructuredQuery_UnaryFilter_Operator_StructuredQuery_UnaryFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ =
  205. std::numeric_limits<::int32_t>::min(),
  206. StructuredQuery_UnaryFilter_Operator_StructuredQuery_UnaryFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ =
  207. std::numeric_limits<::int32_t>::max(),
  208. };
  209. bool StructuredQuery_UnaryFilter_Operator_IsValid(int value);
  210. extern const uint32_t StructuredQuery_UnaryFilter_Operator_internal_data_[];
  211. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter_Operator_Operator_MIN = static_cast<StructuredQuery_UnaryFilter_Operator>(0);
  212. constexpr StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter_Operator_Operator_MAX = static_cast<StructuredQuery_UnaryFilter_Operator>(5);
  213. constexpr int StructuredQuery_UnaryFilter_Operator_Operator_ARRAYSIZE = 5 + 1;
  214. const ::google::protobuf::EnumDescriptor*
  215. StructuredQuery_UnaryFilter_Operator_descriptor();
  216. template <typename T>
  217. const std::string& StructuredQuery_UnaryFilter_Operator_Name(T value) {
  218. static_assert(std::is_same<T, StructuredQuery_UnaryFilter_Operator>::value ||
  219. std::is_integral<T>::value,
  220. "Incorrect type passed to Operator_Name().");
  221. return StructuredQuery_UnaryFilter_Operator_Name(static_cast<StructuredQuery_UnaryFilter_Operator>(value));
  222. }
  223. template <>
  224. inline const std::string& StructuredQuery_UnaryFilter_Operator_Name(StructuredQuery_UnaryFilter_Operator value) {
  225. return ::google::protobuf::internal::NameOfDenseEnum<StructuredQuery_UnaryFilter_Operator_descriptor,
  226. 0, 5>(
  227. static_cast<int>(value));
  228. }
  229. inline bool StructuredQuery_UnaryFilter_Operator_Parse(absl::string_view name, StructuredQuery_UnaryFilter_Operator* value) {
  230. return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_UnaryFilter_Operator>(
  231. StructuredQuery_UnaryFilter_Operator_descriptor(), name, value);
  232. }
  233. enum StructuredQuery_Direction : int {
  234. StructuredQuery_Direction_DIRECTION_UNSPECIFIED = 0,
  235. StructuredQuery_Direction_ASCENDING = 1,
  236. StructuredQuery_Direction_DESCENDING = 2,
  237. StructuredQuery_Direction_StructuredQuery_Direction_INT_MIN_SENTINEL_DO_NOT_USE_ =
  238. std::numeric_limits<::int32_t>::min(),
  239. StructuredQuery_Direction_StructuredQuery_Direction_INT_MAX_SENTINEL_DO_NOT_USE_ =
  240. std::numeric_limits<::int32_t>::max(),
  241. };
  242. bool StructuredQuery_Direction_IsValid(int value);
  243. extern const uint32_t StructuredQuery_Direction_internal_data_[];
  244. constexpr StructuredQuery_Direction StructuredQuery_Direction_Direction_MIN = static_cast<StructuredQuery_Direction>(0);
  245. constexpr StructuredQuery_Direction StructuredQuery_Direction_Direction_MAX = static_cast<StructuredQuery_Direction>(2);
  246. constexpr int StructuredQuery_Direction_Direction_ARRAYSIZE = 2 + 1;
  247. const ::google::protobuf::EnumDescriptor*
  248. StructuredQuery_Direction_descriptor();
  249. template <typename T>
  250. const std::string& StructuredQuery_Direction_Name(T value) {
  251. static_assert(std::is_same<T, StructuredQuery_Direction>::value ||
  252. std::is_integral<T>::value,
  253. "Incorrect type passed to Direction_Name().");
  254. return StructuredQuery_Direction_Name(static_cast<StructuredQuery_Direction>(value));
  255. }
  256. template <>
  257. inline const std::string& StructuredQuery_Direction_Name(StructuredQuery_Direction value) {
  258. return ::google::protobuf::internal::NameOfDenseEnum<StructuredQuery_Direction_descriptor,
  259. 0, 2>(
  260. static_cast<int>(value));
  261. }
  262. inline bool StructuredQuery_Direction_Parse(absl::string_view name, StructuredQuery_Direction* value) {
  263. return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_Direction>(
  264. StructuredQuery_Direction_descriptor(), name, value);
  265. }
  266. // ===================================================================
  267. // -------------------------------------------------------------------
  268. class StructuredQuery_FieldReference final :
  269. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.FieldReference) */ {
  270. public:
  271. inline StructuredQuery_FieldReference() : StructuredQuery_FieldReference(nullptr) {}
  272. ~StructuredQuery_FieldReference() override;
  273. template<typename = void>
  274. explicit PROTOBUF_CONSTEXPR StructuredQuery_FieldReference(::google::protobuf::internal::ConstantInitialized);
  275. inline StructuredQuery_FieldReference(const StructuredQuery_FieldReference& from)
  276. : StructuredQuery_FieldReference(nullptr, from) {}
  277. StructuredQuery_FieldReference(StructuredQuery_FieldReference&& from) noexcept
  278. : StructuredQuery_FieldReference() {
  279. *this = ::std::move(from);
  280. }
  281. inline StructuredQuery_FieldReference& operator=(const StructuredQuery_FieldReference& from) {
  282. CopyFrom(from);
  283. return *this;
  284. }
  285. inline StructuredQuery_FieldReference& operator=(StructuredQuery_FieldReference&& from) noexcept {
  286. if (this == &from) return *this;
  287. if (GetArena() == from.GetArena()
  288. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  289. && GetArena() != nullptr
  290. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  291. ) {
  292. InternalSwap(&from);
  293. } else {
  294. CopyFrom(from);
  295. }
  296. return *this;
  297. }
  298. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  299. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  300. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  301. }
  302. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  303. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  304. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  305. }
  306. static const ::google::protobuf::Descriptor* descriptor() {
  307. return GetDescriptor();
  308. }
  309. static const ::google::protobuf::Descriptor* GetDescriptor() {
  310. return default_instance().GetMetadata().descriptor;
  311. }
  312. static const ::google::protobuf::Reflection* GetReflection() {
  313. return default_instance().GetMetadata().reflection;
  314. }
  315. static const StructuredQuery_FieldReference& default_instance() {
  316. return *internal_default_instance();
  317. }
  318. static inline const StructuredQuery_FieldReference* internal_default_instance() {
  319. return reinterpret_cast<const StructuredQuery_FieldReference*>(
  320. &_StructuredQuery_FieldReference_default_instance_);
  321. }
  322. static constexpr int kIndexInFileMessages =
  323. 6;
  324. friend void swap(StructuredQuery_FieldReference& a, StructuredQuery_FieldReference& b) {
  325. a.Swap(&b);
  326. }
  327. inline void Swap(StructuredQuery_FieldReference* other) {
  328. if (other == this) return;
  329. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  330. if (GetArena() != nullptr &&
  331. GetArena() == other->GetArena()) {
  332. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  333. if (GetArena() == other->GetArena()) {
  334. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  335. InternalSwap(other);
  336. } else {
  337. ::google::protobuf::internal::GenericSwap(this, other);
  338. }
  339. }
  340. void UnsafeArenaSwap(StructuredQuery_FieldReference* other) {
  341. if (other == this) return;
  342. ABSL_DCHECK(GetArena() == other->GetArena());
  343. InternalSwap(other);
  344. }
  345. // implements Message ----------------------------------------------
  346. StructuredQuery_FieldReference* New(::google::protobuf::Arena* arena = nullptr) const final {
  347. return CreateMaybeMessage<StructuredQuery_FieldReference>(arena);
  348. }
  349. using ::google::protobuf::Message::CopyFrom;
  350. void CopyFrom(const StructuredQuery_FieldReference& from);
  351. using ::google::protobuf::Message::MergeFrom;
  352. void MergeFrom( const StructuredQuery_FieldReference& from) {
  353. StructuredQuery_FieldReference::MergeImpl(*this, from);
  354. }
  355. private:
  356. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  357. public:
  358. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  359. bool IsInitialized() const final;
  360. ::size_t ByteSizeLong() const final;
  361. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  362. ::uint8_t* _InternalSerialize(
  363. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  364. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  365. private:
  366. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  367. void SharedCtor(::google::protobuf::Arena* arena);
  368. void SharedDtor();
  369. void InternalSwap(StructuredQuery_FieldReference* other);
  370. private:
  371. friend class ::google::protobuf::internal::AnyMetadata;
  372. static ::absl::string_view FullMessageName() {
  373. return "google.firestore.v1.StructuredQuery.FieldReference";
  374. }
  375. protected:
  376. explicit StructuredQuery_FieldReference(::google::protobuf::Arena* arena);
  377. StructuredQuery_FieldReference(::google::protobuf::Arena* arena, const StructuredQuery_FieldReference& from);
  378. public:
  379. static const ClassData _class_data_;
  380. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  381. ::google::protobuf::Metadata GetMetadata() const final;
  382. // nested types ----------------------------------------------------
  383. // accessors -------------------------------------------------------
  384. enum : int {
  385. kFieldPathFieldNumber = 2,
  386. };
  387. // string field_path = 2;
  388. void clear_field_path() ;
  389. const std::string& field_path() const;
  390. template <typename Arg_ = const std::string&, typename... Args_>
  391. void set_field_path(Arg_&& arg, Args_... args);
  392. std::string* mutable_field_path();
  393. PROTOBUF_NODISCARD std::string* release_field_path();
  394. void set_allocated_field_path(std::string* value);
  395. private:
  396. const std::string& _internal_field_path() const;
  397. inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_path(
  398. const std::string& value);
  399. std::string* _internal_mutable_field_path();
  400. public:
  401. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.FieldReference)
  402. private:
  403. class _Internal;
  404. friend class ::google::protobuf::internal::TcParser;
  405. static const ::google::protobuf::internal::TcParseTable<
  406. 0, 1, 0,
  407. 69, 2>
  408. _table_;
  409. friend class ::google::protobuf::MessageLite;
  410. friend class ::google::protobuf::Arena;
  411. template <typename T>
  412. friend class ::google::protobuf::Arena::InternalHelper;
  413. using InternalArenaConstructable_ = void;
  414. using DestructorSkippable_ = void;
  415. struct Impl_ {
  416. inline explicit constexpr Impl_(
  417. ::google::protobuf::internal::ConstantInitialized) noexcept;
  418. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  419. ::google::protobuf::Arena* arena);
  420. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  421. ::google::protobuf::Arena* arena, const Impl_& from);
  422. ::google::protobuf::internal::ArenaStringPtr field_path_;
  423. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  424. PROTOBUF_TSAN_DECLARE_MEMBER
  425. };
  426. union { Impl_ _impl_; };
  427. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  428. };// -------------------------------------------------------------------
  429. class StructuredQuery_CollectionSelector final :
  430. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.CollectionSelector) */ {
  431. public:
  432. inline StructuredQuery_CollectionSelector() : StructuredQuery_CollectionSelector(nullptr) {}
  433. ~StructuredQuery_CollectionSelector() override;
  434. template<typename = void>
  435. explicit PROTOBUF_CONSTEXPR StructuredQuery_CollectionSelector(::google::protobuf::internal::ConstantInitialized);
  436. inline StructuredQuery_CollectionSelector(const StructuredQuery_CollectionSelector& from)
  437. : StructuredQuery_CollectionSelector(nullptr, from) {}
  438. StructuredQuery_CollectionSelector(StructuredQuery_CollectionSelector&& from) noexcept
  439. : StructuredQuery_CollectionSelector() {
  440. *this = ::std::move(from);
  441. }
  442. inline StructuredQuery_CollectionSelector& operator=(const StructuredQuery_CollectionSelector& from) {
  443. CopyFrom(from);
  444. return *this;
  445. }
  446. inline StructuredQuery_CollectionSelector& operator=(StructuredQuery_CollectionSelector&& from) noexcept {
  447. if (this == &from) return *this;
  448. if (GetArena() == from.GetArena()
  449. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  450. && GetArena() != nullptr
  451. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  452. ) {
  453. InternalSwap(&from);
  454. } else {
  455. CopyFrom(from);
  456. }
  457. return *this;
  458. }
  459. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  460. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  461. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  462. }
  463. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  464. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  465. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  466. }
  467. static const ::google::protobuf::Descriptor* descriptor() {
  468. return GetDescriptor();
  469. }
  470. static const ::google::protobuf::Descriptor* GetDescriptor() {
  471. return default_instance().GetMetadata().descriptor;
  472. }
  473. static const ::google::protobuf::Reflection* GetReflection() {
  474. return default_instance().GetMetadata().reflection;
  475. }
  476. static const StructuredQuery_CollectionSelector& default_instance() {
  477. return *internal_default_instance();
  478. }
  479. static inline const StructuredQuery_CollectionSelector* internal_default_instance() {
  480. return reinterpret_cast<const StructuredQuery_CollectionSelector*>(
  481. &_StructuredQuery_CollectionSelector_default_instance_);
  482. }
  483. static constexpr int kIndexInFileMessages =
  484. 0;
  485. friend void swap(StructuredQuery_CollectionSelector& a, StructuredQuery_CollectionSelector& b) {
  486. a.Swap(&b);
  487. }
  488. inline void Swap(StructuredQuery_CollectionSelector* other) {
  489. if (other == this) return;
  490. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  491. if (GetArena() != nullptr &&
  492. GetArena() == other->GetArena()) {
  493. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  494. if (GetArena() == other->GetArena()) {
  495. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  496. InternalSwap(other);
  497. } else {
  498. ::google::protobuf::internal::GenericSwap(this, other);
  499. }
  500. }
  501. void UnsafeArenaSwap(StructuredQuery_CollectionSelector* other) {
  502. if (other == this) return;
  503. ABSL_DCHECK(GetArena() == other->GetArena());
  504. InternalSwap(other);
  505. }
  506. // implements Message ----------------------------------------------
  507. StructuredQuery_CollectionSelector* New(::google::protobuf::Arena* arena = nullptr) const final {
  508. return CreateMaybeMessage<StructuredQuery_CollectionSelector>(arena);
  509. }
  510. using ::google::protobuf::Message::CopyFrom;
  511. void CopyFrom(const StructuredQuery_CollectionSelector& from);
  512. using ::google::protobuf::Message::MergeFrom;
  513. void MergeFrom( const StructuredQuery_CollectionSelector& from) {
  514. StructuredQuery_CollectionSelector::MergeImpl(*this, from);
  515. }
  516. private:
  517. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  518. public:
  519. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  520. bool IsInitialized() const final;
  521. ::size_t ByteSizeLong() const final;
  522. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  523. ::uint8_t* _InternalSerialize(
  524. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  525. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  526. private:
  527. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  528. void SharedCtor(::google::protobuf::Arena* arena);
  529. void SharedDtor();
  530. void InternalSwap(StructuredQuery_CollectionSelector* other);
  531. private:
  532. friend class ::google::protobuf::internal::AnyMetadata;
  533. static ::absl::string_view FullMessageName() {
  534. return "google.firestore.v1.StructuredQuery.CollectionSelector";
  535. }
  536. protected:
  537. explicit StructuredQuery_CollectionSelector(::google::protobuf::Arena* arena);
  538. StructuredQuery_CollectionSelector(::google::protobuf::Arena* arena, const StructuredQuery_CollectionSelector& from);
  539. public:
  540. static const ClassData _class_data_;
  541. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  542. ::google::protobuf::Metadata GetMetadata() const final;
  543. // nested types ----------------------------------------------------
  544. // accessors -------------------------------------------------------
  545. enum : int {
  546. kCollectionIdFieldNumber = 2,
  547. kAllDescendantsFieldNumber = 3,
  548. };
  549. // string collection_id = 2;
  550. void clear_collection_id() ;
  551. const std::string& collection_id() const;
  552. template <typename Arg_ = const std::string&, typename... Args_>
  553. void set_collection_id(Arg_&& arg, Args_... args);
  554. std::string* mutable_collection_id();
  555. PROTOBUF_NODISCARD std::string* release_collection_id();
  556. void set_allocated_collection_id(std::string* value);
  557. private:
  558. const std::string& _internal_collection_id() const;
  559. inline PROTOBUF_ALWAYS_INLINE void _internal_set_collection_id(
  560. const std::string& value);
  561. std::string* _internal_mutable_collection_id();
  562. public:
  563. // bool all_descendants = 3;
  564. void clear_all_descendants() ;
  565. bool all_descendants() const;
  566. void set_all_descendants(bool value);
  567. private:
  568. bool _internal_all_descendants() const;
  569. void _internal_set_all_descendants(bool value);
  570. public:
  571. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.CollectionSelector)
  572. private:
  573. class _Internal;
  574. friend class ::google::protobuf::internal::TcParser;
  575. static const ::google::protobuf::internal::TcParseTable<
  576. 1, 2, 0,
  577. 76, 2>
  578. _table_;
  579. friend class ::google::protobuf::MessageLite;
  580. friend class ::google::protobuf::Arena;
  581. template <typename T>
  582. friend class ::google::protobuf::Arena::InternalHelper;
  583. using InternalArenaConstructable_ = void;
  584. using DestructorSkippable_ = void;
  585. struct Impl_ {
  586. inline explicit constexpr Impl_(
  587. ::google::protobuf::internal::ConstantInitialized) noexcept;
  588. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  589. ::google::protobuf::Arena* arena);
  590. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  591. ::google::protobuf::Arena* arena, const Impl_& from);
  592. ::google::protobuf::internal::ArenaStringPtr collection_id_;
  593. bool all_descendants_;
  594. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  595. PROTOBUF_TSAN_DECLARE_MEMBER
  596. };
  597. union { Impl_ _impl_; };
  598. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  599. };// -------------------------------------------------------------------
  600. class StructuredQuery_UnaryFilter final :
  601. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.UnaryFilter) */ {
  602. public:
  603. inline StructuredQuery_UnaryFilter() : StructuredQuery_UnaryFilter(nullptr) {}
  604. ~StructuredQuery_UnaryFilter() override;
  605. template<typename = void>
  606. explicit PROTOBUF_CONSTEXPR StructuredQuery_UnaryFilter(::google::protobuf::internal::ConstantInitialized);
  607. inline StructuredQuery_UnaryFilter(const StructuredQuery_UnaryFilter& from)
  608. : StructuredQuery_UnaryFilter(nullptr, from) {}
  609. StructuredQuery_UnaryFilter(StructuredQuery_UnaryFilter&& from) noexcept
  610. : StructuredQuery_UnaryFilter() {
  611. *this = ::std::move(from);
  612. }
  613. inline StructuredQuery_UnaryFilter& operator=(const StructuredQuery_UnaryFilter& from) {
  614. CopyFrom(from);
  615. return *this;
  616. }
  617. inline StructuredQuery_UnaryFilter& operator=(StructuredQuery_UnaryFilter&& from) noexcept {
  618. if (this == &from) return *this;
  619. if (GetArena() == from.GetArena()
  620. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  621. && GetArena() != nullptr
  622. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  623. ) {
  624. InternalSwap(&from);
  625. } else {
  626. CopyFrom(from);
  627. }
  628. return *this;
  629. }
  630. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  631. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  632. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  633. }
  634. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  635. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  636. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  637. }
  638. static const ::google::protobuf::Descriptor* descriptor() {
  639. return GetDescriptor();
  640. }
  641. static const ::google::protobuf::Descriptor* GetDescriptor() {
  642. return default_instance().GetMetadata().descriptor;
  643. }
  644. static const ::google::protobuf::Reflection* GetReflection() {
  645. return default_instance().GetMetadata().reflection;
  646. }
  647. static const StructuredQuery_UnaryFilter& default_instance() {
  648. return *internal_default_instance();
  649. }
  650. enum OperandTypeCase {
  651. kField = 2,
  652. OPERAND_TYPE_NOT_SET = 0,
  653. };
  654. static inline const StructuredQuery_UnaryFilter* internal_default_instance() {
  655. return reinterpret_cast<const StructuredQuery_UnaryFilter*>(
  656. &_StructuredQuery_UnaryFilter_default_instance_);
  657. }
  658. static constexpr int kIndexInFileMessages =
  659. 4;
  660. friend void swap(StructuredQuery_UnaryFilter& a, StructuredQuery_UnaryFilter& b) {
  661. a.Swap(&b);
  662. }
  663. inline void Swap(StructuredQuery_UnaryFilter* other) {
  664. if (other == this) return;
  665. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  666. if (GetArena() != nullptr &&
  667. GetArena() == other->GetArena()) {
  668. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  669. if (GetArena() == other->GetArena()) {
  670. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  671. InternalSwap(other);
  672. } else {
  673. ::google::protobuf::internal::GenericSwap(this, other);
  674. }
  675. }
  676. void UnsafeArenaSwap(StructuredQuery_UnaryFilter* other) {
  677. if (other == this) return;
  678. ABSL_DCHECK(GetArena() == other->GetArena());
  679. InternalSwap(other);
  680. }
  681. // implements Message ----------------------------------------------
  682. StructuredQuery_UnaryFilter* New(::google::protobuf::Arena* arena = nullptr) const final {
  683. return CreateMaybeMessage<StructuredQuery_UnaryFilter>(arena);
  684. }
  685. using ::google::protobuf::Message::CopyFrom;
  686. void CopyFrom(const StructuredQuery_UnaryFilter& from);
  687. using ::google::protobuf::Message::MergeFrom;
  688. void MergeFrom( const StructuredQuery_UnaryFilter& from) {
  689. StructuredQuery_UnaryFilter::MergeImpl(*this, from);
  690. }
  691. private:
  692. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  693. public:
  694. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  695. bool IsInitialized() const final;
  696. ::size_t ByteSizeLong() const final;
  697. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  698. ::uint8_t* _InternalSerialize(
  699. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  700. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  701. private:
  702. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  703. void SharedCtor(::google::protobuf::Arena* arena);
  704. void SharedDtor();
  705. void InternalSwap(StructuredQuery_UnaryFilter* other);
  706. private:
  707. friend class ::google::protobuf::internal::AnyMetadata;
  708. static ::absl::string_view FullMessageName() {
  709. return "google.firestore.v1.StructuredQuery.UnaryFilter";
  710. }
  711. protected:
  712. explicit StructuredQuery_UnaryFilter(::google::protobuf::Arena* arena);
  713. StructuredQuery_UnaryFilter(::google::protobuf::Arena* arena, const StructuredQuery_UnaryFilter& from);
  714. public:
  715. static const ClassData _class_data_;
  716. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  717. ::google::protobuf::Metadata GetMetadata() const final;
  718. // nested types ----------------------------------------------------
  719. using Operator = StructuredQuery_UnaryFilter_Operator;
  720. static constexpr Operator OPERATOR_UNSPECIFIED = StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED;
  721. static constexpr Operator IS_NAN = StructuredQuery_UnaryFilter_Operator_IS_NAN;
  722. static constexpr Operator IS_NULL = StructuredQuery_UnaryFilter_Operator_IS_NULL;
  723. static constexpr Operator IS_NOT_NAN = StructuredQuery_UnaryFilter_Operator_IS_NOT_NAN;
  724. static constexpr Operator IS_NOT_NULL = StructuredQuery_UnaryFilter_Operator_IS_NOT_NULL;
  725. static inline bool Operator_IsValid(int value) {
  726. return StructuredQuery_UnaryFilter_Operator_IsValid(value);
  727. }
  728. static constexpr Operator Operator_MIN = StructuredQuery_UnaryFilter_Operator_Operator_MIN;
  729. static constexpr Operator Operator_MAX = StructuredQuery_UnaryFilter_Operator_Operator_MAX;
  730. static constexpr int Operator_ARRAYSIZE = StructuredQuery_UnaryFilter_Operator_Operator_ARRAYSIZE;
  731. static inline const ::google::protobuf::EnumDescriptor* Operator_descriptor() {
  732. return StructuredQuery_UnaryFilter_Operator_descriptor();
  733. }
  734. template <typename T>
  735. static inline const std::string& Operator_Name(T value) {
  736. return StructuredQuery_UnaryFilter_Operator_Name(value);
  737. }
  738. static inline bool Operator_Parse(absl::string_view name, Operator* value) {
  739. return StructuredQuery_UnaryFilter_Operator_Parse(name, value);
  740. }
  741. // accessors -------------------------------------------------------
  742. enum : int {
  743. kOpFieldNumber = 1,
  744. kFieldFieldNumber = 2,
  745. };
  746. // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
  747. void clear_op() ;
  748. ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator op() const;
  749. void set_op(::google::firestore::v1::StructuredQuery_UnaryFilter_Operator value);
  750. private:
  751. ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator _internal_op() const;
  752. void _internal_set_op(::google::firestore::v1::StructuredQuery_UnaryFilter_Operator value);
  753. public:
  754. // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
  755. bool has_field() const;
  756. private:
  757. bool _internal_has_field() const;
  758. public:
  759. void clear_field() ;
  760. const ::google::firestore::v1::StructuredQuery_FieldReference& field() const;
  761. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_FieldReference* release_field();
  762. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_field();
  763. void set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  764. void unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  765. ::google::firestore::v1::StructuredQuery_FieldReference* unsafe_arena_release_field();
  766. private:
  767. const ::google::firestore::v1::StructuredQuery_FieldReference& _internal_field() const;
  768. ::google::firestore::v1::StructuredQuery_FieldReference* _internal_mutable_field();
  769. public:
  770. void clear_operand_type();
  771. OperandTypeCase operand_type_case() const;
  772. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.UnaryFilter)
  773. private:
  774. class _Internal;
  775. void set_has_field();
  776. inline bool has_operand_type() const;
  777. inline void clear_has_operand_type();
  778. friend class ::google::protobuf::internal::TcParser;
  779. static const ::google::protobuf::internal::TcParseTable<
  780. 0, 2, 1,
  781. 0, 2>
  782. _table_;
  783. friend class ::google::protobuf::MessageLite;
  784. friend class ::google::protobuf::Arena;
  785. template <typename T>
  786. friend class ::google::protobuf::Arena::InternalHelper;
  787. using InternalArenaConstructable_ = void;
  788. using DestructorSkippable_ = void;
  789. struct Impl_ {
  790. inline explicit constexpr Impl_(
  791. ::google::protobuf::internal::ConstantInitialized) noexcept;
  792. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  793. ::google::protobuf::Arena* arena);
  794. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  795. ::google::protobuf::Arena* arena, const Impl_& from);
  796. int op_;
  797. union OperandTypeUnion {
  798. constexpr OperandTypeUnion() : _constinit_{} {}
  799. ::google::protobuf::internal::ConstantInitialized _constinit_;
  800. ::google::firestore::v1::StructuredQuery_FieldReference* field_;
  801. } operand_type_;
  802. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  803. ::uint32_t _oneof_case_[1];
  804. PROTOBUF_TSAN_DECLARE_MEMBER
  805. };
  806. union { Impl_ _impl_; };
  807. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  808. };// -------------------------------------------------------------------
  809. class StructuredQuery_Projection final :
  810. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.Projection) */ {
  811. public:
  812. inline StructuredQuery_Projection() : StructuredQuery_Projection(nullptr) {}
  813. ~StructuredQuery_Projection() override;
  814. template<typename = void>
  815. explicit PROTOBUF_CONSTEXPR StructuredQuery_Projection(::google::protobuf::internal::ConstantInitialized);
  816. inline StructuredQuery_Projection(const StructuredQuery_Projection& from)
  817. : StructuredQuery_Projection(nullptr, from) {}
  818. StructuredQuery_Projection(StructuredQuery_Projection&& from) noexcept
  819. : StructuredQuery_Projection() {
  820. *this = ::std::move(from);
  821. }
  822. inline StructuredQuery_Projection& operator=(const StructuredQuery_Projection& from) {
  823. CopyFrom(from);
  824. return *this;
  825. }
  826. inline StructuredQuery_Projection& operator=(StructuredQuery_Projection&& from) noexcept {
  827. if (this == &from) return *this;
  828. if (GetArena() == from.GetArena()
  829. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  830. && GetArena() != nullptr
  831. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  832. ) {
  833. InternalSwap(&from);
  834. } else {
  835. CopyFrom(from);
  836. }
  837. return *this;
  838. }
  839. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  840. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  841. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  842. }
  843. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  844. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  845. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  846. }
  847. static const ::google::protobuf::Descriptor* descriptor() {
  848. return GetDescriptor();
  849. }
  850. static const ::google::protobuf::Descriptor* GetDescriptor() {
  851. return default_instance().GetMetadata().descriptor;
  852. }
  853. static const ::google::protobuf::Reflection* GetReflection() {
  854. return default_instance().GetMetadata().reflection;
  855. }
  856. static const StructuredQuery_Projection& default_instance() {
  857. return *internal_default_instance();
  858. }
  859. static inline const StructuredQuery_Projection* internal_default_instance() {
  860. return reinterpret_cast<const StructuredQuery_Projection*>(
  861. &_StructuredQuery_Projection_default_instance_);
  862. }
  863. static constexpr int kIndexInFileMessages =
  864. 7;
  865. friend void swap(StructuredQuery_Projection& a, StructuredQuery_Projection& b) {
  866. a.Swap(&b);
  867. }
  868. inline void Swap(StructuredQuery_Projection* other) {
  869. if (other == this) return;
  870. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  871. if (GetArena() != nullptr &&
  872. GetArena() == other->GetArena()) {
  873. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  874. if (GetArena() == other->GetArena()) {
  875. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  876. InternalSwap(other);
  877. } else {
  878. ::google::protobuf::internal::GenericSwap(this, other);
  879. }
  880. }
  881. void UnsafeArenaSwap(StructuredQuery_Projection* other) {
  882. if (other == this) return;
  883. ABSL_DCHECK(GetArena() == other->GetArena());
  884. InternalSwap(other);
  885. }
  886. // implements Message ----------------------------------------------
  887. StructuredQuery_Projection* New(::google::protobuf::Arena* arena = nullptr) const final {
  888. return CreateMaybeMessage<StructuredQuery_Projection>(arena);
  889. }
  890. using ::google::protobuf::Message::CopyFrom;
  891. void CopyFrom(const StructuredQuery_Projection& from);
  892. using ::google::protobuf::Message::MergeFrom;
  893. void MergeFrom( const StructuredQuery_Projection& from) {
  894. StructuredQuery_Projection::MergeImpl(*this, from);
  895. }
  896. private:
  897. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  898. public:
  899. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  900. bool IsInitialized() const final;
  901. ::size_t ByteSizeLong() const final;
  902. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  903. ::uint8_t* _InternalSerialize(
  904. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  905. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  906. private:
  907. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  908. void SharedCtor(::google::protobuf::Arena* arena);
  909. void SharedDtor();
  910. void InternalSwap(StructuredQuery_Projection* other);
  911. private:
  912. friend class ::google::protobuf::internal::AnyMetadata;
  913. static ::absl::string_view FullMessageName() {
  914. return "google.firestore.v1.StructuredQuery.Projection";
  915. }
  916. protected:
  917. explicit StructuredQuery_Projection(::google::protobuf::Arena* arena);
  918. StructuredQuery_Projection(::google::protobuf::Arena* arena, const StructuredQuery_Projection& from);
  919. public:
  920. static const ClassData _class_data_;
  921. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  922. ::google::protobuf::Metadata GetMetadata() const final;
  923. // nested types ----------------------------------------------------
  924. // accessors -------------------------------------------------------
  925. enum : int {
  926. kFieldsFieldNumber = 2,
  927. };
  928. // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
  929. int fields_size() const;
  930. private:
  931. int _internal_fields_size() const;
  932. public:
  933. void clear_fields() ;
  934. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_fields(int index);
  935. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_FieldReference >*
  936. mutable_fields();
  937. private:
  938. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_FieldReference>& _internal_fields() const;
  939. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_FieldReference>* _internal_mutable_fields();
  940. public:
  941. const ::google::firestore::v1::StructuredQuery_FieldReference& fields(int index) const;
  942. ::google::firestore::v1::StructuredQuery_FieldReference* add_fields();
  943. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_FieldReference >&
  944. fields() const;
  945. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.Projection)
  946. private:
  947. class _Internal;
  948. friend class ::google::protobuf::internal::TcParser;
  949. static const ::google::protobuf::internal::TcParseTable<
  950. 0, 1, 1,
  951. 0, 2>
  952. _table_;
  953. friend class ::google::protobuf::MessageLite;
  954. friend class ::google::protobuf::Arena;
  955. template <typename T>
  956. friend class ::google::protobuf::Arena::InternalHelper;
  957. using InternalArenaConstructable_ = void;
  958. using DestructorSkippable_ = void;
  959. struct Impl_ {
  960. inline explicit constexpr Impl_(
  961. ::google::protobuf::internal::ConstantInitialized) noexcept;
  962. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  963. ::google::protobuf::Arena* arena);
  964. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  965. ::google::protobuf::Arena* arena, const Impl_& from);
  966. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_FieldReference > fields_;
  967. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  968. PROTOBUF_TSAN_DECLARE_MEMBER
  969. };
  970. union { Impl_ _impl_; };
  971. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  972. };// -------------------------------------------------------------------
  973. class StructuredQuery_Order final :
  974. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.Order) */ {
  975. public:
  976. inline StructuredQuery_Order() : StructuredQuery_Order(nullptr) {}
  977. ~StructuredQuery_Order() override;
  978. template<typename = void>
  979. explicit PROTOBUF_CONSTEXPR StructuredQuery_Order(::google::protobuf::internal::ConstantInitialized);
  980. inline StructuredQuery_Order(const StructuredQuery_Order& from)
  981. : StructuredQuery_Order(nullptr, from) {}
  982. StructuredQuery_Order(StructuredQuery_Order&& from) noexcept
  983. : StructuredQuery_Order() {
  984. *this = ::std::move(from);
  985. }
  986. inline StructuredQuery_Order& operator=(const StructuredQuery_Order& from) {
  987. CopyFrom(from);
  988. return *this;
  989. }
  990. inline StructuredQuery_Order& operator=(StructuredQuery_Order&& from) noexcept {
  991. if (this == &from) return *this;
  992. if (GetArena() == from.GetArena()
  993. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  994. && GetArena() != nullptr
  995. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  996. ) {
  997. InternalSwap(&from);
  998. } else {
  999. CopyFrom(from);
  1000. }
  1001. return *this;
  1002. }
  1003. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1004. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1005. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1006. }
  1007. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1008. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1009. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1010. }
  1011. static const ::google::protobuf::Descriptor* descriptor() {
  1012. return GetDescriptor();
  1013. }
  1014. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1015. return default_instance().GetMetadata().descriptor;
  1016. }
  1017. static const ::google::protobuf::Reflection* GetReflection() {
  1018. return default_instance().GetMetadata().reflection;
  1019. }
  1020. static const StructuredQuery_Order& default_instance() {
  1021. return *internal_default_instance();
  1022. }
  1023. static inline const StructuredQuery_Order* internal_default_instance() {
  1024. return reinterpret_cast<const StructuredQuery_Order*>(
  1025. &_StructuredQuery_Order_default_instance_);
  1026. }
  1027. static constexpr int kIndexInFileMessages =
  1028. 5;
  1029. friend void swap(StructuredQuery_Order& a, StructuredQuery_Order& b) {
  1030. a.Swap(&b);
  1031. }
  1032. inline void Swap(StructuredQuery_Order* other) {
  1033. if (other == this) return;
  1034. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1035. if (GetArena() != nullptr &&
  1036. GetArena() == other->GetArena()) {
  1037. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1038. if (GetArena() == other->GetArena()) {
  1039. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1040. InternalSwap(other);
  1041. } else {
  1042. ::google::protobuf::internal::GenericSwap(this, other);
  1043. }
  1044. }
  1045. void UnsafeArenaSwap(StructuredQuery_Order* other) {
  1046. if (other == this) return;
  1047. ABSL_DCHECK(GetArena() == other->GetArena());
  1048. InternalSwap(other);
  1049. }
  1050. // implements Message ----------------------------------------------
  1051. StructuredQuery_Order* New(::google::protobuf::Arena* arena = nullptr) const final {
  1052. return CreateMaybeMessage<StructuredQuery_Order>(arena);
  1053. }
  1054. using ::google::protobuf::Message::CopyFrom;
  1055. void CopyFrom(const StructuredQuery_Order& from);
  1056. using ::google::protobuf::Message::MergeFrom;
  1057. void MergeFrom( const StructuredQuery_Order& from) {
  1058. StructuredQuery_Order::MergeImpl(*this, from);
  1059. }
  1060. private:
  1061. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1062. public:
  1063. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1064. bool IsInitialized() const final;
  1065. ::size_t ByteSizeLong() const final;
  1066. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1067. ::uint8_t* _InternalSerialize(
  1068. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1069. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1070. private:
  1071. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1072. void SharedCtor(::google::protobuf::Arena* arena);
  1073. void SharedDtor();
  1074. void InternalSwap(StructuredQuery_Order* other);
  1075. private:
  1076. friend class ::google::protobuf::internal::AnyMetadata;
  1077. static ::absl::string_view FullMessageName() {
  1078. return "google.firestore.v1.StructuredQuery.Order";
  1079. }
  1080. protected:
  1081. explicit StructuredQuery_Order(::google::protobuf::Arena* arena);
  1082. StructuredQuery_Order(::google::protobuf::Arena* arena, const StructuredQuery_Order& from);
  1083. public:
  1084. static const ClassData _class_data_;
  1085. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1086. ::google::protobuf::Metadata GetMetadata() const final;
  1087. // nested types ----------------------------------------------------
  1088. // accessors -------------------------------------------------------
  1089. enum : int {
  1090. kFieldFieldNumber = 1,
  1091. kDirectionFieldNumber = 2,
  1092. };
  1093. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1094. bool has_field() const;
  1095. void clear_field() ;
  1096. const ::google::firestore::v1::StructuredQuery_FieldReference& field() const;
  1097. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_FieldReference* release_field();
  1098. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_field();
  1099. void set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  1100. void unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  1101. ::google::firestore::v1::StructuredQuery_FieldReference* unsafe_arena_release_field();
  1102. private:
  1103. const ::google::firestore::v1::StructuredQuery_FieldReference& _internal_field() const;
  1104. ::google::firestore::v1::StructuredQuery_FieldReference* _internal_mutable_field();
  1105. public:
  1106. // .google.firestore.v1.StructuredQuery.Direction direction = 2;
  1107. void clear_direction() ;
  1108. ::google::firestore::v1::StructuredQuery_Direction direction() const;
  1109. void set_direction(::google::firestore::v1::StructuredQuery_Direction value);
  1110. private:
  1111. ::google::firestore::v1::StructuredQuery_Direction _internal_direction() const;
  1112. void _internal_set_direction(::google::firestore::v1::StructuredQuery_Direction value);
  1113. public:
  1114. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.Order)
  1115. private:
  1116. class _Internal;
  1117. friend class ::google::protobuf::internal::TcParser;
  1118. static const ::google::protobuf::internal::TcParseTable<
  1119. 1, 2, 1,
  1120. 0, 2>
  1121. _table_;
  1122. friend class ::google::protobuf::MessageLite;
  1123. friend class ::google::protobuf::Arena;
  1124. template <typename T>
  1125. friend class ::google::protobuf::Arena::InternalHelper;
  1126. using InternalArenaConstructable_ = void;
  1127. using DestructorSkippable_ = void;
  1128. struct Impl_ {
  1129. inline explicit constexpr Impl_(
  1130. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1131. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1132. ::google::protobuf::Arena* arena);
  1133. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1134. ::google::protobuf::Arena* arena, const Impl_& from);
  1135. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1136. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1137. ::google::firestore::v1::StructuredQuery_FieldReference* field_;
  1138. int direction_;
  1139. PROTOBUF_TSAN_DECLARE_MEMBER
  1140. };
  1141. union { Impl_ _impl_; };
  1142. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  1143. };// -------------------------------------------------------------------
  1144. class StructuredAggregationQuery_Aggregation_Sum final :
  1145. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) */ {
  1146. public:
  1147. inline StructuredAggregationQuery_Aggregation_Sum() : StructuredAggregationQuery_Aggregation_Sum(nullptr) {}
  1148. ~StructuredAggregationQuery_Aggregation_Sum() override;
  1149. template<typename = void>
  1150. explicit PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Sum(::google::protobuf::internal::ConstantInitialized);
  1151. inline StructuredAggregationQuery_Aggregation_Sum(const StructuredAggregationQuery_Aggregation_Sum& from)
  1152. : StructuredAggregationQuery_Aggregation_Sum(nullptr, from) {}
  1153. StructuredAggregationQuery_Aggregation_Sum(StructuredAggregationQuery_Aggregation_Sum&& from) noexcept
  1154. : StructuredAggregationQuery_Aggregation_Sum() {
  1155. *this = ::std::move(from);
  1156. }
  1157. inline StructuredAggregationQuery_Aggregation_Sum& operator=(const StructuredAggregationQuery_Aggregation_Sum& from) {
  1158. CopyFrom(from);
  1159. return *this;
  1160. }
  1161. inline StructuredAggregationQuery_Aggregation_Sum& operator=(StructuredAggregationQuery_Aggregation_Sum&& from) noexcept {
  1162. if (this == &from) return *this;
  1163. if (GetArena() == from.GetArena()
  1164. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1165. && GetArena() != nullptr
  1166. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1167. ) {
  1168. InternalSwap(&from);
  1169. } else {
  1170. CopyFrom(from);
  1171. }
  1172. return *this;
  1173. }
  1174. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1175. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1176. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1177. }
  1178. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1179. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1180. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1181. }
  1182. static const ::google::protobuf::Descriptor* descriptor() {
  1183. return GetDescriptor();
  1184. }
  1185. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1186. return default_instance().GetMetadata().descriptor;
  1187. }
  1188. static const ::google::protobuf::Reflection* GetReflection() {
  1189. return default_instance().GetMetadata().reflection;
  1190. }
  1191. static const StructuredAggregationQuery_Aggregation_Sum& default_instance() {
  1192. return *internal_default_instance();
  1193. }
  1194. static inline const StructuredAggregationQuery_Aggregation_Sum* internal_default_instance() {
  1195. return reinterpret_cast<const StructuredAggregationQuery_Aggregation_Sum*>(
  1196. &_StructuredAggregationQuery_Aggregation_Sum_default_instance_);
  1197. }
  1198. static constexpr int kIndexInFileMessages =
  1199. 10;
  1200. friend void swap(StructuredAggregationQuery_Aggregation_Sum& a, StructuredAggregationQuery_Aggregation_Sum& b) {
  1201. a.Swap(&b);
  1202. }
  1203. inline void Swap(StructuredAggregationQuery_Aggregation_Sum* other) {
  1204. if (other == this) return;
  1205. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1206. if (GetArena() != nullptr &&
  1207. GetArena() == other->GetArena()) {
  1208. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1209. if (GetArena() == other->GetArena()) {
  1210. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1211. InternalSwap(other);
  1212. } else {
  1213. ::google::protobuf::internal::GenericSwap(this, other);
  1214. }
  1215. }
  1216. void UnsafeArenaSwap(StructuredAggregationQuery_Aggregation_Sum* other) {
  1217. if (other == this) return;
  1218. ABSL_DCHECK(GetArena() == other->GetArena());
  1219. InternalSwap(other);
  1220. }
  1221. // implements Message ----------------------------------------------
  1222. StructuredAggregationQuery_Aggregation_Sum* New(::google::protobuf::Arena* arena = nullptr) const final {
  1223. return CreateMaybeMessage<StructuredAggregationQuery_Aggregation_Sum>(arena);
  1224. }
  1225. using ::google::protobuf::Message::CopyFrom;
  1226. void CopyFrom(const StructuredAggregationQuery_Aggregation_Sum& from);
  1227. using ::google::protobuf::Message::MergeFrom;
  1228. void MergeFrom( const StructuredAggregationQuery_Aggregation_Sum& from) {
  1229. StructuredAggregationQuery_Aggregation_Sum::MergeImpl(*this, from);
  1230. }
  1231. private:
  1232. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1233. public:
  1234. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1235. bool IsInitialized() const final;
  1236. ::size_t ByteSizeLong() const final;
  1237. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1238. ::uint8_t* _InternalSerialize(
  1239. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1240. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1241. private:
  1242. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1243. void SharedCtor(::google::protobuf::Arena* arena);
  1244. void SharedDtor();
  1245. void InternalSwap(StructuredAggregationQuery_Aggregation_Sum* other);
  1246. private:
  1247. friend class ::google::protobuf::internal::AnyMetadata;
  1248. static ::absl::string_view FullMessageName() {
  1249. return "google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum";
  1250. }
  1251. protected:
  1252. explicit StructuredAggregationQuery_Aggregation_Sum(::google::protobuf::Arena* arena);
  1253. StructuredAggregationQuery_Aggregation_Sum(::google::protobuf::Arena* arena, const StructuredAggregationQuery_Aggregation_Sum& from);
  1254. public:
  1255. static const ClassData _class_data_;
  1256. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1257. ::google::protobuf::Metadata GetMetadata() const final;
  1258. // nested types ----------------------------------------------------
  1259. // accessors -------------------------------------------------------
  1260. enum : int {
  1261. kFieldFieldNumber = 1,
  1262. };
  1263. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1264. bool has_field() const;
  1265. void clear_field() ;
  1266. const ::google::firestore::v1::StructuredQuery_FieldReference& field() const;
  1267. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_FieldReference* release_field();
  1268. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_field();
  1269. void set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  1270. void unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  1271. ::google::firestore::v1::StructuredQuery_FieldReference* unsafe_arena_release_field();
  1272. private:
  1273. const ::google::firestore::v1::StructuredQuery_FieldReference& _internal_field() const;
  1274. ::google::firestore::v1::StructuredQuery_FieldReference* _internal_mutable_field();
  1275. public:
  1276. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)
  1277. private:
  1278. class _Internal;
  1279. friend class ::google::protobuf::internal::TcParser;
  1280. static const ::google::protobuf::internal::TcParseTable<
  1281. 0, 1, 1,
  1282. 0, 2>
  1283. _table_;
  1284. friend class ::google::protobuf::MessageLite;
  1285. friend class ::google::protobuf::Arena;
  1286. template <typename T>
  1287. friend class ::google::protobuf::Arena::InternalHelper;
  1288. using InternalArenaConstructable_ = void;
  1289. using DestructorSkippable_ = void;
  1290. struct Impl_ {
  1291. inline explicit constexpr Impl_(
  1292. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1293. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1294. ::google::protobuf::Arena* arena);
  1295. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1296. ::google::protobuf::Arena* arena, const Impl_& from);
  1297. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1298. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1299. ::google::firestore::v1::StructuredQuery_FieldReference* field_;
  1300. PROTOBUF_TSAN_DECLARE_MEMBER
  1301. };
  1302. union { Impl_ _impl_; };
  1303. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  1304. };// -------------------------------------------------------------------
  1305. class StructuredAggregationQuery_Aggregation_Count final :
  1306. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) */ {
  1307. public:
  1308. inline StructuredAggregationQuery_Aggregation_Count() : StructuredAggregationQuery_Aggregation_Count(nullptr) {}
  1309. ~StructuredAggregationQuery_Aggregation_Count() override;
  1310. template<typename = void>
  1311. explicit PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Count(::google::protobuf::internal::ConstantInitialized);
  1312. inline StructuredAggregationQuery_Aggregation_Count(const StructuredAggregationQuery_Aggregation_Count& from)
  1313. : StructuredAggregationQuery_Aggregation_Count(nullptr, from) {}
  1314. StructuredAggregationQuery_Aggregation_Count(StructuredAggregationQuery_Aggregation_Count&& from) noexcept
  1315. : StructuredAggregationQuery_Aggregation_Count() {
  1316. *this = ::std::move(from);
  1317. }
  1318. inline StructuredAggregationQuery_Aggregation_Count& operator=(const StructuredAggregationQuery_Aggregation_Count& from) {
  1319. CopyFrom(from);
  1320. return *this;
  1321. }
  1322. inline StructuredAggregationQuery_Aggregation_Count& operator=(StructuredAggregationQuery_Aggregation_Count&& from) noexcept {
  1323. if (this == &from) return *this;
  1324. if (GetArena() == from.GetArena()
  1325. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1326. && GetArena() != nullptr
  1327. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1328. ) {
  1329. InternalSwap(&from);
  1330. } else {
  1331. CopyFrom(from);
  1332. }
  1333. return *this;
  1334. }
  1335. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1336. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1337. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1338. }
  1339. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1340. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1341. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1342. }
  1343. static const ::google::protobuf::Descriptor* descriptor() {
  1344. return GetDescriptor();
  1345. }
  1346. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1347. return default_instance().GetMetadata().descriptor;
  1348. }
  1349. static const ::google::protobuf::Reflection* GetReflection() {
  1350. return default_instance().GetMetadata().reflection;
  1351. }
  1352. static const StructuredAggregationQuery_Aggregation_Count& default_instance() {
  1353. return *internal_default_instance();
  1354. }
  1355. static inline const StructuredAggregationQuery_Aggregation_Count* internal_default_instance() {
  1356. return reinterpret_cast<const StructuredAggregationQuery_Aggregation_Count*>(
  1357. &_StructuredAggregationQuery_Aggregation_Count_default_instance_);
  1358. }
  1359. static constexpr int kIndexInFileMessages =
  1360. 9;
  1361. friend void swap(StructuredAggregationQuery_Aggregation_Count& a, StructuredAggregationQuery_Aggregation_Count& b) {
  1362. a.Swap(&b);
  1363. }
  1364. inline void Swap(StructuredAggregationQuery_Aggregation_Count* other) {
  1365. if (other == this) return;
  1366. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1367. if (GetArena() != nullptr &&
  1368. GetArena() == other->GetArena()) {
  1369. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1370. if (GetArena() == other->GetArena()) {
  1371. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1372. InternalSwap(other);
  1373. } else {
  1374. ::google::protobuf::internal::GenericSwap(this, other);
  1375. }
  1376. }
  1377. void UnsafeArenaSwap(StructuredAggregationQuery_Aggregation_Count* other) {
  1378. if (other == this) return;
  1379. ABSL_DCHECK(GetArena() == other->GetArena());
  1380. InternalSwap(other);
  1381. }
  1382. // implements Message ----------------------------------------------
  1383. StructuredAggregationQuery_Aggregation_Count* New(::google::protobuf::Arena* arena = nullptr) const final {
  1384. return CreateMaybeMessage<StructuredAggregationQuery_Aggregation_Count>(arena);
  1385. }
  1386. using ::google::protobuf::Message::CopyFrom;
  1387. void CopyFrom(const StructuredAggregationQuery_Aggregation_Count& from);
  1388. using ::google::protobuf::Message::MergeFrom;
  1389. void MergeFrom( const StructuredAggregationQuery_Aggregation_Count& from) {
  1390. StructuredAggregationQuery_Aggregation_Count::MergeImpl(*this, from);
  1391. }
  1392. private:
  1393. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1394. public:
  1395. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1396. bool IsInitialized() const final;
  1397. ::size_t ByteSizeLong() const final;
  1398. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1399. ::uint8_t* _InternalSerialize(
  1400. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1401. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1402. private:
  1403. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1404. void SharedCtor(::google::protobuf::Arena* arena);
  1405. void SharedDtor();
  1406. void InternalSwap(StructuredAggregationQuery_Aggregation_Count* other);
  1407. private:
  1408. friend class ::google::protobuf::internal::AnyMetadata;
  1409. static ::absl::string_view FullMessageName() {
  1410. return "google.firestore.v1.StructuredAggregationQuery.Aggregation.Count";
  1411. }
  1412. protected:
  1413. explicit StructuredAggregationQuery_Aggregation_Count(::google::protobuf::Arena* arena);
  1414. StructuredAggregationQuery_Aggregation_Count(::google::protobuf::Arena* arena, const StructuredAggregationQuery_Aggregation_Count& from);
  1415. public:
  1416. static const ClassData _class_data_;
  1417. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1418. ::google::protobuf::Metadata GetMetadata() const final;
  1419. // nested types ----------------------------------------------------
  1420. // accessors -------------------------------------------------------
  1421. enum : int {
  1422. kUpToFieldNumber = 1,
  1423. };
  1424. // .google.protobuf.Int64Value up_to = 1;
  1425. bool has_up_to() const;
  1426. void clear_up_to() ;
  1427. const ::google::protobuf::Int64Value& up_to() const;
  1428. PROTOBUF_NODISCARD ::google::protobuf::Int64Value* release_up_to();
  1429. ::google::protobuf::Int64Value* mutable_up_to();
  1430. void set_allocated_up_to(::google::protobuf::Int64Value* value);
  1431. void unsafe_arena_set_allocated_up_to(::google::protobuf::Int64Value* value);
  1432. ::google::protobuf::Int64Value* unsafe_arena_release_up_to();
  1433. private:
  1434. const ::google::protobuf::Int64Value& _internal_up_to() const;
  1435. ::google::protobuf::Int64Value* _internal_mutable_up_to();
  1436. public:
  1437. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count)
  1438. private:
  1439. class _Internal;
  1440. friend class ::google::protobuf::internal::TcParser;
  1441. static const ::google::protobuf::internal::TcParseTable<
  1442. 0, 1, 1,
  1443. 0, 2>
  1444. _table_;
  1445. friend class ::google::protobuf::MessageLite;
  1446. friend class ::google::protobuf::Arena;
  1447. template <typename T>
  1448. friend class ::google::protobuf::Arena::InternalHelper;
  1449. using InternalArenaConstructable_ = void;
  1450. using DestructorSkippable_ = void;
  1451. struct Impl_ {
  1452. inline explicit constexpr Impl_(
  1453. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1454. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1455. ::google::protobuf::Arena* arena);
  1456. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1457. ::google::protobuf::Arena* arena, const Impl_& from);
  1458. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1459. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1460. ::google::protobuf::Int64Value* up_to_;
  1461. PROTOBUF_TSAN_DECLARE_MEMBER
  1462. };
  1463. union { Impl_ _impl_; };
  1464. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  1465. };// -------------------------------------------------------------------
  1466. class StructuredAggregationQuery_Aggregation_Avg final :
  1467. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) */ {
  1468. public:
  1469. inline StructuredAggregationQuery_Aggregation_Avg() : StructuredAggregationQuery_Aggregation_Avg(nullptr) {}
  1470. ~StructuredAggregationQuery_Aggregation_Avg() override;
  1471. template<typename = void>
  1472. explicit PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation_Avg(::google::protobuf::internal::ConstantInitialized);
  1473. inline StructuredAggregationQuery_Aggregation_Avg(const StructuredAggregationQuery_Aggregation_Avg& from)
  1474. : StructuredAggregationQuery_Aggregation_Avg(nullptr, from) {}
  1475. StructuredAggregationQuery_Aggregation_Avg(StructuredAggregationQuery_Aggregation_Avg&& from) noexcept
  1476. : StructuredAggregationQuery_Aggregation_Avg() {
  1477. *this = ::std::move(from);
  1478. }
  1479. inline StructuredAggregationQuery_Aggregation_Avg& operator=(const StructuredAggregationQuery_Aggregation_Avg& from) {
  1480. CopyFrom(from);
  1481. return *this;
  1482. }
  1483. inline StructuredAggregationQuery_Aggregation_Avg& operator=(StructuredAggregationQuery_Aggregation_Avg&& from) noexcept {
  1484. if (this == &from) return *this;
  1485. if (GetArena() == from.GetArena()
  1486. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1487. && GetArena() != nullptr
  1488. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1489. ) {
  1490. InternalSwap(&from);
  1491. } else {
  1492. CopyFrom(from);
  1493. }
  1494. return *this;
  1495. }
  1496. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1497. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1498. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1499. }
  1500. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1501. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1502. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1503. }
  1504. static const ::google::protobuf::Descriptor* descriptor() {
  1505. return GetDescriptor();
  1506. }
  1507. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1508. return default_instance().GetMetadata().descriptor;
  1509. }
  1510. static const ::google::protobuf::Reflection* GetReflection() {
  1511. return default_instance().GetMetadata().reflection;
  1512. }
  1513. static const StructuredAggregationQuery_Aggregation_Avg& default_instance() {
  1514. return *internal_default_instance();
  1515. }
  1516. static inline const StructuredAggregationQuery_Aggregation_Avg* internal_default_instance() {
  1517. return reinterpret_cast<const StructuredAggregationQuery_Aggregation_Avg*>(
  1518. &_StructuredAggregationQuery_Aggregation_Avg_default_instance_);
  1519. }
  1520. static constexpr int kIndexInFileMessages =
  1521. 11;
  1522. friend void swap(StructuredAggregationQuery_Aggregation_Avg& a, StructuredAggregationQuery_Aggregation_Avg& b) {
  1523. a.Swap(&b);
  1524. }
  1525. inline void Swap(StructuredAggregationQuery_Aggregation_Avg* other) {
  1526. if (other == this) return;
  1527. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1528. if (GetArena() != nullptr &&
  1529. GetArena() == other->GetArena()) {
  1530. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1531. if (GetArena() == other->GetArena()) {
  1532. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1533. InternalSwap(other);
  1534. } else {
  1535. ::google::protobuf::internal::GenericSwap(this, other);
  1536. }
  1537. }
  1538. void UnsafeArenaSwap(StructuredAggregationQuery_Aggregation_Avg* other) {
  1539. if (other == this) return;
  1540. ABSL_DCHECK(GetArena() == other->GetArena());
  1541. InternalSwap(other);
  1542. }
  1543. // implements Message ----------------------------------------------
  1544. StructuredAggregationQuery_Aggregation_Avg* New(::google::protobuf::Arena* arena = nullptr) const final {
  1545. return CreateMaybeMessage<StructuredAggregationQuery_Aggregation_Avg>(arena);
  1546. }
  1547. using ::google::protobuf::Message::CopyFrom;
  1548. void CopyFrom(const StructuredAggregationQuery_Aggregation_Avg& from);
  1549. using ::google::protobuf::Message::MergeFrom;
  1550. void MergeFrom( const StructuredAggregationQuery_Aggregation_Avg& from) {
  1551. StructuredAggregationQuery_Aggregation_Avg::MergeImpl(*this, from);
  1552. }
  1553. private:
  1554. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1555. public:
  1556. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1557. bool IsInitialized() const final;
  1558. ::size_t ByteSizeLong() const final;
  1559. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1560. ::uint8_t* _InternalSerialize(
  1561. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1562. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1563. private:
  1564. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1565. void SharedCtor(::google::protobuf::Arena* arena);
  1566. void SharedDtor();
  1567. void InternalSwap(StructuredAggregationQuery_Aggregation_Avg* other);
  1568. private:
  1569. friend class ::google::protobuf::internal::AnyMetadata;
  1570. static ::absl::string_view FullMessageName() {
  1571. return "google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg";
  1572. }
  1573. protected:
  1574. explicit StructuredAggregationQuery_Aggregation_Avg(::google::protobuf::Arena* arena);
  1575. StructuredAggregationQuery_Aggregation_Avg(::google::protobuf::Arena* arena, const StructuredAggregationQuery_Aggregation_Avg& from);
  1576. public:
  1577. static const ClassData _class_data_;
  1578. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1579. ::google::protobuf::Metadata GetMetadata() const final;
  1580. // nested types ----------------------------------------------------
  1581. // accessors -------------------------------------------------------
  1582. enum : int {
  1583. kFieldFieldNumber = 1,
  1584. };
  1585. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1586. bool has_field() const;
  1587. void clear_field() ;
  1588. const ::google::firestore::v1::StructuredQuery_FieldReference& field() const;
  1589. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_FieldReference* release_field();
  1590. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_field();
  1591. void set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  1592. void unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  1593. ::google::firestore::v1::StructuredQuery_FieldReference* unsafe_arena_release_field();
  1594. private:
  1595. const ::google::firestore::v1::StructuredQuery_FieldReference& _internal_field() const;
  1596. ::google::firestore::v1::StructuredQuery_FieldReference* _internal_mutable_field();
  1597. public:
  1598. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)
  1599. private:
  1600. class _Internal;
  1601. friend class ::google::protobuf::internal::TcParser;
  1602. static const ::google::protobuf::internal::TcParseTable<
  1603. 0, 1, 1,
  1604. 0, 2>
  1605. _table_;
  1606. friend class ::google::protobuf::MessageLite;
  1607. friend class ::google::protobuf::Arena;
  1608. template <typename T>
  1609. friend class ::google::protobuf::Arena::InternalHelper;
  1610. using InternalArenaConstructable_ = void;
  1611. using DestructorSkippable_ = void;
  1612. struct Impl_ {
  1613. inline explicit constexpr Impl_(
  1614. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1615. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1616. ::google::protobuf::Arena* arena);
  1617. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1618. ::google::protobuf::Arena* arena, const Impl_& from);
  1619. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1620. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1621. ::google::firestore::v1::StructuredQuery_FieldReference* field_;
  1622. PROTOBUF_TSAN_DECLARE_MEMBER
  1623. };
  1624. union { Impl_ _impl_; };
  1625. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  1626. };// -------------------------------------------------------------------
  1627. class StructuredQuery_FieldFilter final :
  1628. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.FieldFilter) */ {
  1629. public:
  1630. inline StructuredQuery_FieldFilter() : StructuredQuery_FieldFilter(nullptr) {}
  1631. ~StructuredQuery_FieldFilter() override;
  1632. template<typename = void>
  1633. explicit PROTOBUF_CONSTEXPR StructuredQuery_FieldFilter(::google::protobuf::internal::ConstantInitialized);
  1634. inline StructuredQuery_FieldFilter(const StructuredQuery_FieldFilter& from)
  1635. : StructuredQuery_FieldFilter(nullptr, from) {}
  1636. StructuredQuery_FieldFilter(StructuredQuery_FieldFilter&& from) noexcept
  1637. : StructuredQuery_FieldFilter() {
  1638. *this = ::std::move(from);
  1639. }
  1640. inline StructuredQuery_FieldFilter& operator=(const StructuredQuery_FieldFilter& from) {
  1641. CopyFrom(from);
  1642. return *this;
  1643. }
  1644. inline StructuredQuery_FieldFilter& operator=(StructuredQuery_FieldFilter&& from) noexcept {
  1645. if (this == &from) return *this;
  1646. if (GetArena() == from.GetArena()
  1647. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1648. && GetArena() != nullptr
  1649. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1650. ) {
  1651. InternalSwap(&from);
  1652. } else {
  1653. CopyFrom(from);
  1654. }
  1655. return *this;
  1656. }
  1657. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1658. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1659. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1660. }
  1661. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1662. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1663. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1664. }
  1665. static const ::google::protobuf::Descriptor* descriptor() {
  1666. return GetDescriptor();
  1667. }
  1668. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1669. return default_instance().GetMetadata().descriptor;
  1670. }
  1671. static const ::google::protobuf::Reflection* GetReflection() {
  1672. return default_instance().GetMetadata().reflection;
  1673. }
  1674. static const StructuredQuery_FieldFilter& default_instance() {
  1675. return *internal_default_instance();
  1676. }
  1677. static inline const StructuredQuery_FieldFilter* internal_default_instance() {
  1678. return reinterpret_cast<const StructuredQuery_FieldFilter*>(
  1679. &_StructuredQuery_FieldFilter_default_instance_);
  1680. }
  1681. static constexpr int kIndexInFileMessages =
  1682. 3;
  1683. friend void swap(StructuredQuery_FieldFilter& a, StructuredQuery_FieldFilter& b) {
  1684. a.Swap(&b);
  1685. }
  1686. inline void Swap(StructuredQuery_FieldFilter* other) {
  1687. if (other == this) return;
  1688. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1689. if (GetArena() != nullptr &&
  1690. GetArena() == other->GetArena()) {
  1691. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1692. if (GetArena() == other->GetArena()) {
  1693. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1694. InternalSwap(other);
  1695. } else {
  1696. ::google::protobuf::internal::GenericSwap(this, other);
  1697. }
  1698. }
  1699. void UnsafeArenaSwap(StructuredQuery_FieldFilter* other) {
  1700. if (other == this) return;
  1701. ABSL_DCHECK(GetArena() == other->GetArena());
  1702. InternalSwap(other);
  1703. }
  1704. // implements Message ----------------------------------------------
  1705. StructuredQuery_FieldFilter* New(::google::protobuf::Arena* arena = nullptr) const final {
  1706. return CreateMaybeMessage<StructuredQuery_FieldFilter>(arena);
  1707. }
  1708. using ::google::protobuf::Message::CopyFrom;
  1709. void CopyFrom(const StructuredQuery_FieldFilter& from);
  1710. using ::google::protobuf::Message::MergeFrom;
  1711. void MergeFrom( const StructuredQuery_FieldFilter& from) {
  1712. StructuredQuery_FieldFilter::MergeImpl(*this, from);
  1713. }
  1714. private:
  1715. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1716. public:
  1717. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1718. bool IsInitialized() const final;
  1719. ::size_t ByteSizeLong() const final;
  1720. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1721. ::uint8_t* _InternalSerialize(
  1722. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1723. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1724. private:
  1725. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1726. void SharedCtor(::google::protobuf::Arena* arena);
  1727. void SharedDtor();
  1728. void InternalSwap(StructuredQuery_FieldFilter* other);
  1729. private:
  1730. friend class ::google::protobuf::internal::AnyMetadata;
  1731. static ::absl::string_view FullMessageName() {
  1732. return "google.firestore.v1.StructuredQuery.FieldFilter";
  1733. }
  1734. protected:
  1735. explicit StructuredQuery_FieldFilter(::google::protobuf::Arena* arena);
  1736. StructuredQuery_FieldFilter(::google::protobuf::Arena* arena, const StructuredQuery_FieldFilter& from);
  1737. public:
  1738. static const ClassData _class_data_;
  1739. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1740. ::google::protobuf::Metadata GetMetadata() const final;
  1741. // nested types ----------------------------------------------------
  1742. using Operator = StructuredQuery_FieldFilter_Operator;
  1743. static constexpr Operator OPERATOR_UNSPECIFIED = StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED;
  1744. static constexpr Operator LESS_THAN = StructuredQuery_FieldFilter_Operator_LESS_THAN;
  1745. static constexpr Operator LESS_THAN_OR_EQUAL = StructuredQuery_FieldFilter_Operator_LESS_THAN_OR_EQUAL;
  1746. static constexpr Operator GREATER_THAN = StructuredQuery_FieldFilter_Operator_GREATER_THAN;
  1747. static constexpr Operator GREATER_THAN_OR_EQUAL = StructuredQuery_FieldFilter_Operator_GREATER_THAN_OR_EQUAL;
  1748. static constexpr Operator EQUAL = StructuredQuery_FieldFilter_Operator_EQUAL;
  1749. static constexpr Operator NOT_EQUAL = StructuredQuery_FieldFilter_Operator_NOT_EQUAL;
  1750. static constexpr Operator ARRAY_CONTAINS = StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS;
  1751. static constexpr Operator IN_ = StructuredQuery_FieldFilter_Operator_IN;
  1752. static constexpr Operator ARRAY_CONTAINS_ANY = StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS_ANY;
  1753. static constexpr Operator NOT_IN = StructuredQuery_FieldFilter_Operator_NOT_IN;
  1754. static inline bool Operator_IsValid(int value) {
  1755. return StructuredQuery_FieldFilter_Operator_IsValid(value);
  1756. }
  1757. static constexpr Operator Operator_MIN = StructuredQuery_FieldFilter_Operator_Operator_MIN;
  1758. static constexpr Operator Operator_MAX = StructuredQuery_FieldFilter_Operator_Operator_MAX;
  1759. static constexpr int Operator_ARRAYSIZE = StructuredQuery_FieldFilter_Operator_Operator_ARRAYSIZE;
  1760. static inline const ::google::protobuf::EnumDescriptor* Operator_descriptor() {
  1761. return StructuredQuery_FieldFilter_Operator_descriptor();
  1762. }
  1763. template <typename T>
  1764. static inline const std::string& Operator_Name(T value) {
  1765. return StructuredQuery_FieldFilter_Operator_Name(value);
  1766. }
  1767. static inline bool Operator_Parse(absl::string_view name, Operator* value) {
  1768. return StructuredQuery_FieldFilter_Operator_Parse(name, value);
  1769. }
  1770. // accessors -------------------------------------------------------
  1771. enum : int {
  1772. kFieldFieldNumber = 1,
  1773. kValueFieldNumber = 3,
  1774. kOpFieldNumber = 2,
  1775. };
  1776. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1777. bool has_field() const;
  1778. void clear_field() ;
  1779. const ::google::firestore::v1::StructuredQuery_FieldReference& field() const;
  1780. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_FieldReference* release_field();
  1781. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_field();
  1782. void set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  1783. void unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value);
  1784. ::google::firestore::v1::StructuredQuery_FieldReference* unsafe_arena_release_field();
  1785. private:
  1786. const ::google::firestore::v1::StructuredQuery_FieldReference& _internal_field() const;
  1787. ::google::firestore::v1::StructuredQuery_FieldReference* _internal_mutable_field();
  1788. public:
  1789. // .google.firestore.v1.Value value = 3;
  1790. bool has_value() const;
  1791. void clear_value() ;
  1792. const ::google::firestore::v1::Value& value() const;
  1793. PROTOBUF_NODISCARD ::google::firestore::v1::Value* release_value();
  1794. ::google::firestore::v1::Value* mutable_value();
  1795. void set_allocated_value(::google::firestore::v1::Value* value);
  1796. void unsafe_arena_set_allocated_value(::google::firestore::v1::Value* value);
  1797. ::google::firestore::v1::Value* unsafe_arena_release_value();
  1798. private:
  1799. const ::google::firestore::v1::Value& _internal_value() const;
  1800. ::google::firestore::v1::Value* _internal_mutable_value();
  1801. public:
  1802. // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
  1803. void clear_op() ;
  1804. ::google::firestore::v1::StructuredQuery_FieldFilter_Operator op() const;
  1805. void set_op(::google::firestore::v1::StructuredQuery_FieldFilter_Operator value);
  1806. private:
  1807. ::google::firestore::v1::StructuredQuery_FieldFilter_Operator _internal_op() const;
  1808. void _internal_set_op(::google::firestore::v1::StructuredQuery_FieldFilter_Operator value);
  1809. public:
  1810. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.FieldFilter)
  1811. private:
  1812. class _Internal;
  1813. friend class ::google::protobuf::internal::TcParser;
  1814. static const ::google::protobuf::internal::TcParseTable<
  1815. 2, 3, 2,
  1816. 0, 2>
  1817. _table_;
  1818. friend class ::google::protobuf::MessageLite;
  1819. friend class ::google::protobuf::Arena;
  1820. template <typename T>
  1821. friend class ::google::protobuf::Arena::InternalHelper;
  1822. using InternalArenaConstructable_ = void;
  1823. using DestructorSkippable_ = void;
  1824. struct Impl_ {
  1825. inline explicit constexpr Impl_(
  1826. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1827. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1828. ::google::protobuf::Arena* arena);
  1829. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1830. ::google::protobuf::Arena* arena, const Impl_& from);
  1831. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1832. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1833. ::google::firestore::v1::StructuredQuery_FieldReference* field_;
  1834. ::google::firestore::v1::Value* value_;
  1835. int op_;
  1836. PROTOBUF_TSAN_DECLARE_MEMBER
  1837. };
  1838. union { Impl_ _impl_; };
  1839. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  1840. };// -------------------------------------------------------------------
  1841. class StructuredAggregationQuery_Aggregation final :
  1842. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredAggregationQuery.Aggregation) */ {
  1843. public:
  1844. inline StructuredAggregationQuery_Aggregation() : StructuredAggregationQuery_Aggregation(nullptr) {}
  1845. ~StructuredAggregationQuery_Aggregation() override;
  1846. template<typename = void>
  1847. explicit PROTOBUF_CONSTEXPR StructuredAggregationQuery_Aggregation(::google::protobuf::internal::ConstantInitialized);
  1848. inline StructuredAggregationQuery_Aggregation(const StructuredAggregationQuery_Aggregation& from)
  1849. : StructuredAggregationQuery_Aggregation(nullptr, from) {}
  1850. StructuredAggregationQuery_Aggregation(StructuredAggregationQuery_Aggregation&& from) noexcept
  1851. : StructuredAggregationQuery_Aggregation() {
  1852. *this = ::std::move(from);
  1853. }
  1854. inline StructuredAggregationQuery_Aggregation& operator=(const StructuredAggregationQuery_Aggregation& from) {
  1855. CopyFrom(from);
  1856. return *this;
  1857. }
  1858. inline StructuredAggregationQuery_Aggregation& operator=(StructuredAggregationQuery_Aggregation&& from) noexcept {
  1859. if (this == &from) return *this;
  1860. if (GetArena() == from.GetArena()
  1861. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1862. && GetArena() != nullptr
  1863. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1864. ) {
  1865. InternalSwap(&from);
  1866. } else {
  1867. CopyFrom(from);
  1868. }
  1869. return *this;
  1870. }
  1871. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1872. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1873. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1874. }
  1875. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1876. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1877. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1878. }
  1879. static const ::google::protobuf::Descriptor* descriptor() {
  1880. return GetDescriptor();
  1881. }
  1882. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1883. return default_instance().GetMetadata().descriptor;
  1884. }
  1885. static const ::google::protobuf::Reflection* GetReflection() {
  1886. return default_instance().GetMetadata().reflection;
  1887. }
  1888. static const StructuredAggregationQuery_Aggregation& default_instance() {
  1889. return *internal_default_instance();
  1890. }
  1891. enum OperatorCase {
  1892. kCount = 1,
  1893. kSum = 2,
  1894. kAvg = 3,
  1895. OPERATOR_NOT_SET = 0,
  1896. };
  1897. static inline const StructuredAggregationQuery_Aggregation* internal_default_instance() {
  1898. return reinterpret_cast<const StructuredAggregationQuery_Aggregation*>(
  1899. &_StructuredAggregationQuery_Aggregation_default_instance_);
  1900. }
  1901. static constexpr int kIndexInFileMessages =
  1902. 12;
  1903. friend void swap(StructuredAggregationQuery_Aggregation& a, StructuredAggregationQuery_Aggregation& b) {
  1904. a.Swap(&b);
  1905. }
  1906. inline void Swap(StructuredAggregationQuery_Aggregation* other) {
  1907. if (other == this) return;
  1908. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1909. if (GetArena() != nullptr &&
  1910. GetArena() == other->GetArena()) {
  1911. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1912. if (GetArena() == other->GetArena()) {
  1913. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1914. InternalSwap(other);
  1915. } else {
  1916. ::google::protobuf::internal::GenericSwap(this, other);
  1917. }
  1918. }
  1919. void UnsafeArenaSwap(StructuredAggregationQuery_Aggregation* other) {
  1920. if (other == this) return;
  1921. ABSL_DCHECK(GetArena() == other->GetArena());
  1922. InternalSwap(other);
  1923. }
  1924. // implements Message ----------------------------------------------
  1925. StructuredAggregationQuery_Aggregation* New(::google::protobuf::Arena* arena = nullptr) const final {
  1926. return CreateMaybeMessage<StructuredAggregationQuery_Aggregation>(arena);
  1927. }
  1928. using ::google::protobuf::Message::CopyFrom;
  1929. void CopyFrom(const StructuredAggregationQuery_Aggregation& from);
  1930. using ::google::protobuf::Message::MergeFrom;
  1931. void MergeFrom( const StructuredAggregationQuery_Aggregation& from) {
  1932. StructuredAggregationQuery_Aggregation::MergeImpl(*this, from);
  1933. }
  1934. private:
  1935. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1936. public:
  1937. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1938. bool IsInitialized() const final;
  1939. ::size_t ByteSizeLong() const final;
  1940. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1941. ::uint8_t* _InternalSerialize(
  1942. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1943. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1944. private:
  1945. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1946. void SharedCtor(::google::protobuf::Arena* arena);
  1947. void SharedDtor();
  1948. void InternalSwap(StructuredAggregationQuery_Aggregation* other);
  1949. private:
  1950. friend class ::google::protobuf::internal::AnyMetadata;
  1951. static ::absl::string_view FullMessageName() {
  1952. return "google.firestore.v1.StructuredAggregationQuery.Aggregation";
  1953. }
  1954. protected:
  1955. explicit StructuredAggregationQuery_Aggregation(::google::protobuf::Arena* arena);
  1956. StructuredAggregationQuery_Aggregation(::google::protobuf::Arena* arena, const StructuredAggregationQuery_Aggregation& from);
  1957. public:
  1958. static const ClassData _class_data_;
  1959. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1960. ::google::protobuf::Metadata GetMetadata() const final;
  1961. // nested types ----------------------------------------------------
  1962. using Count = StructuredAggregationQuery_Aggregation_Count;
  1963. using Sum = StructuredAggregationQuery_Aggregation_Sum;
  1964. using Avg = StructuredAggregationQuery_Aggregation_Avg;
  1965. // accessors -------------------------------------------------------
  1966. enum : int {
  1967. kAliasFieldNumber = 7,
  1968. kCountFieldNumber = 1,
  1969. kSumFieldNumber = 2,
  1970. kAvgFieldNumber = 3,
  1971. };
  1972. // string alias = 7;
  1973. void clear_alias() ;
  1974. const std::string& alias() const;
  1975. template <typename Arg_ = const std::string&, typename... Args_>
  1976. void set_alias(Arg_&& arg, Args_... args);
  1977. std::string* mutable_alias();
  1978. PROTOBUF_NODISCARD std::string* release_alias();
  1979. void set_allocated_alias(std::string* value);
  1980. private:
  1981. const std::string& _internal_alias() const;
  1982. inline PROTOBUF_ALWAYS_INLINE void _internal_set_alias(
  1983. const std::string& value);
  1984. std::string* _internal_mutable_alias();
  1985. public:
  1986. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1;
  1987. bool has_count() const;
  1988. private:
  1989. bool _internal_has_count() const;
  1990. public:
  1991. void clear_count() ;
  1992. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count& count() const;
  1993. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* release_count();
  1994. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* mutable_count();
  1995. void set_allocated_count(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* value);
  1996. void unsafe_arena_set_allocated_count(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* value);
  1997. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* unsafe_arena_release_count();
  1998. private:
  1999. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count& _internal_count() const;
  2000. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* _internal_mutable_count();
  2001. public:
  2002. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2;
  2003. bool has_sum() const;
  2004. private:
  2005. bool _internal_has_sum() const;
  2006. public:
  2007. void clear_sum() ;
  2008. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum& sum() const;
  2009. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* release_sum();
  2010. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* mutable_sum();
  2011. void set_allocated_sum(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* value);
  2012. void unsafe_arena_set_allocated_sum(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* value);
  2013. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* unsafe_arena_release_sum();
  2014. private:
  2015. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum& _internal_sum() const;
  2016. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* _internal_mutable_sum();
  2017. public:
  2018. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3;
  2019. bool has_avg() const;
  2020. private:
  2021. bool _internal_has_avg() const;
  2022. public:
  2023. void clear_avg() ;
  2024. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg& avg() const;
  2025. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* release_avg();
  2026. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* mutable_avg();
  2027. void set_allocated_avg(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* value);
  2028. void unsafe_arena_set_allocated_avg(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* value);
  2029. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* unsafe_arena_release_avg();
  2030. private:
  2031. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg& _internal_avg() const;
  2032. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* _internal_mutable_avg();
  2033. public:
  2034. void clear_operator();
  2035. OperatorCase operator_case() const;
  2036. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredAggregationQuery.Aggregation)
  2037. private:
  2038. class _Internal;
  2039. void set_has_count();
  2040. void set_has_sum();
  2041. void set_has_avg();
  2042. inline bool has_operator() const;
  2043. inline void clear_has_operator();
  2044. friend class ::google::protobuf::internal::TcParser;
  2045. static const ::google::protobuf::internal::TcParseTable<
  2046. 0, 4, 3,
  2047. 72, 2>
  2048. _table_;
  2049. friend class ::google::protobuf::MessageLite;
  2050. friend class ::google::protobuf::Arena;
  2051. template <typename T>
  2052. friend class ::google::protobuf::Arena::InternalHelper;
  2053. using InternalArenaConstructable_ = void;
  2054. using DestructorSkippable_ = void;
  2055. struct Impl_ {
  2056. inline explicit constexpr Impl_(
  2057. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2058. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2059. ::google::protobuf::Arena* arena);
  2060. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2061. ::google::protobuf::Arena* arena, const Impl_& from);
  2062. ::google::protobuf::internal::ArenaStringPtr alias_;
  2063. union OperatorUnion {
  2064. constexpr OperatorUnion() : _constinit_{} {}
  2065. ::google::protobuf::internal::ConstantInitialized _constinit_;
  2066. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* count_;
  2067. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* sum_;
  2068. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* avg_;
  2069. } operator_;
  2070. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2071. ::uint32_t _oneof_case_[1];
  2072. PROTOBUF_TSAN_DECLARE_MEMBER
  2073. };
  2074. union { Impl_ _impl_; };
  2075. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  2076. };// -------------------------------------------------------------------
  2077. class Cursor final :
  2078. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Cursor) */ {
  2079. public:
  2080. inline Cursor() : Cursor(nullptr) {}
  2081. ~Cursor() override;
  2082. template<typename = void>
  2083. explicit PROTOBUF_CONSTEXPR Cursor(::google::protobuf::internal::ConstantInitialized);
  2084. inline Cursor(const Cursor& from)
  2085. : Cursor(nullptr, from) {}
  2086. Cursor(Cursor&& from) noexcept
  2087. : Cursor() {
  2088. *this = ::std::move(from);
  2089. }
  2090. inline Cursor& operator=(const Cursor& from) {
  2091. CopyFrom(from);
  2092. return *this;
  2093. }
  2094. inline Cursor& operator=(Cursor&& from) noexcept {
  2095. if (this == &from) return *this;
  2096. if (GetArena() == from.GetArena()
  2097. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2098. && GetArena() != nullptr
  2099. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2100. ) {
  2101. InternalSwap(&from);
  2102. } else {
  2103. CopyFrom(from);
  2104. }
  2105. return *this;
  2106. }
  2107. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2108. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2109. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2110. }
  2111. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2112. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2113. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2114. }
  2115. static const ::google::protobuf::Descriptor* descriptor() {
  2116. return GetDescriptor();
  2117. }
  2118. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2119. return default_instance().GetMetadata().descriptor;
  2120. }
  2121. static const ::google::protobuf::Reflection* GetReflection() {
  2122. return default_instance().GetMetadata().reflection;
  2123. }
  2124. static const Cursor& default_instance() {
  2125. return *internal_default_instance();
  2126. }
  2127. static inline const Cursor* internal_default_instance() {
  2128. return reinterpret_cast<const Cursor*>(
  2129. &_Cursor_default_instance_);
  2130. }
  2131. static constexpr int kIndexInFileMessages =
  2132. 14;
  2133. friend void swap(Cursor& a, Cursor& b) {
  2134. a.Swap(&b);
  2135. }
  2136. inline void Swap(Cursor* other) {
  2137. if (other == this) return;
  2138. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2139. if (GetArena() != nullptr &&
  2140. GetArena() == other->GetArena()) {
  2141. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2142. if (GetArena() == other->GetArena()) {
  2143. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2144. InternalSwap(other);
  2145. } else {
  2146. ::google::protobuf::internal::GenericSwap(this, other);
  2147. }
  2148. }
  2149. void UnsafeArenaSwap(Cursor* other) {
  2150. if (other == this) return;
  2151. ABSL_DCHECK(GetArena() == other->GetArena());
  2152. InternalSwap(other);
  2153. }
  2154. // implements Message ----------------------------------------------
  2155. Cursor* New(::google::protobuf::Arena* arena = nullptr) const final {
  2156. return CreateMaybeMessage<Cursor>(arena);
  2157. }
  2158. using ::google::protobuf::Message::CopyFrom;
  2159. void CopyFrom(const Cursor& from);
  2160. using ::google::protobuf::Message::MergeFrom;
  2161. void MergeFrom( const Cursor& from) {
  2162. Cursor::MergeImpl(*this, from);
  2163. }
  2164. private:
  2165. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2166. public:
  2167. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2168. bool IsInitialized() const final;
  2169. ::size_t ByteSizeLong() const final;
  2170. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2171. ::uint8_t* _InternalSerialize(
  2172. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2173. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2174. private:
  2175. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2176. void SharedCtor(::google::protobuf::Arena* arena);
  2177. void SharedDtor();
  2178. void InternalSwap(Cursor* other);
  2179. private:
  2180. friend class ::google::protobuf::internal::AnyMetadata;
  2181. static ::absl::string_view FullMessageName() {
  2182. return "google.firestore.v1.Cursor";
  2183. }
  2184. protected:
  2185. explicit Cursor(::google::protobuf::Arena* arena);
  2186. Cursor(::google::protobuf::Arena* arena, const Cursor& from);
  2187. public:
  2188. static const ClassData _class_data_;
  2189. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2190. ::google::protobuf::Metadata GetMetadata() const final;
  2191. // nested types ----------------------------------------------------
  2192. // accessors -------------------------------------------------------
  2193. enum : int {
  2194. kValuesFieldNumber = 1,
  2195. kBeforeFieldNumber = 2,
  2196. };
  2197. // repeated .google.firestore.v1.Value values = 1;
  2198. int values_size() const;
  2199. private:
  2200. int _internal_values_size() const;
  2201. public:
  2202. void clear_values() ;
  2203. ::google::firestore::v1::Value* mutable_values(int index);
  2204. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  2205. mutable_values();
  2206. private:
  2207. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& _internal_values() const;
  2208. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* _internal_mutable_values();
  2209. public:
  2210. const ::google::firestore::v1::Value& values(int index) const;
  2211. ::google::firestore::v1::Value* add_values();
  2212. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  2213. values() const;
  2214. // bool before = 2;
  2215. void clear_before() ;
  2216. bool before() const;
  2217. void set_before(bool value);
  2218. private:
  2219. bool _internal_before() const;
  2220. void _internal_set_before(bool value);
  2221. public:
  2222. // @@protoc_insertion_point(class_scope:google.firestore.v1.Cursor)
  2223. private:
  2224. class _Internal;
  2225. friend class ::google::protobuf::internal::TcParser;
  2226. static const ::google::protobuf::internal::TcParseTable<
  2227. 1, 2, 1,
  2228. 0, 2>
  2229. _table_;
  2230. friend class ::google::protobuf::MessageLite;
  2231. friend class ::google::protobuf::Arena;
  2232. template <typename T>
  2233. friend class ::google::protobuf::Arena::InternalHelper;
  2234. using InternalArenaConstructable_ = void;
  2235. using DestructorSkippable_ = void;
  2236. struct Impl_ {
  2237. inline explicit constexpr Impl_(
  2238. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2239. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2240. ::google::protobuf::Arena* arena);
  2241. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2242. ::google::protobuf::Arena* arena, const Impl_& from);
  2243. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value > values_;
  2244. bool before_;
  2245. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2246. PROTOBUF_TSAN_DECLARE_MEMBER
  2247. };
  2248. union { Impl_ _impl_; };
  2249. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  2250. };// -------------------------------------------------------------------
  2251. class StructuredQuery_CompositeFilter final :
  2252. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.CompositeFilter) */ {
  2253. public:
  2254. inline StructuredQuery_CompositeFilter() : StructuredQuery_CompositeFilter(nullptr) {}
  2255. ~StructuredQuery_CompositeFilter() override;
  2256. template<typename = void>
  2257. explicit PROTOBUF_CONSTEXPR StructuredQuery_CompositeFilter(::google::protobuf::internal::ConstantInitialized);
  2258. inline StructuredQuery_CompositeFilter(const StructuredQuery_CompositeFilter& from)
  2259. : StructuredQuery_CompositeFilter(nullptr, from) {}
  2260. StructuredQuery_CompositeFilter(StructuredQuery_CompositeFilter&& from) noexcept
  2261. : StructuredQuery_CompositeFilter() {
  2262. *this = ::std::move(from);
  2263. }
  2264. inline StructuredQuery_CompositeFilter& operator=(const StructuredQuery_CompositeFilter& from) {
  2265. CopyFrom(from);
  2266. return *this;
  2267. }
  2268. inline StructuredQuery_CompositeFilter& operator=(StructuredQuery_CompositeFilter&& from) noexcept {
  2269. if (this == &from) return *this;
  2270. if (GetArena() == from.GetArena()
  2271. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2272. && GetArena() != nullptr
  2273. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2274. ) {
  2275. InternalSwap(&from);
  2276. } else {
  2277. CopyFrom(from);
  2278. }
  2279. return *this;
  2280. }
  2281. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2282. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2283. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2284. }
  2285. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2286. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2287. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2288. }
  2289. static const ::google::protobuf::Descriptor* descriptor() {
  2290. return GetDescriptor();
  2291. }
  2292. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2293. return default_instance().GetMetadata().descriptor;
  2294. }
  2295. static const ::google::protobuf::Reflection* GetReflection() {
  2296. return default_instance().GetMetadata().reflection;
  2297. }
  2298. static const StructuredQuery_CompositeFilter& default_instance() {
  2299. return *internal_default_instance();
  2300. }
  2301. static inline const StructuredQuery_CompositeFilter* internal_default_instance() {
  2302. return reinterpret_cast<const StructuredQuery_CompositeFilter*>(
  2303. &_StructuredQuery_CompositeFilter_default_instance_);
  2304. }
  2305. static constexpr int kIndexInFileMessages =
  2306. 2;
  2307. friend void swap(StructuredQuery_CompositeFilter& a, StructuredQuery_CompositeFilter& b) {
  2308. a.Swap(&b);
  2309. }
  2310. inline void Swap(StructuredQuery_CompositeFilter* other) {
  2311. if (other == this) return;
  2312. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2313. if (GetArena() != nullptr &&
  2314. GetArena() == other->GetArena()) {
  2315. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2316. if (GetArena() == other->GetArena()) {
  2317. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2318. InternalSwap(other);
  2319. } else {
  2320. ::google::protobuf::internal::GenericSwap(this, other);
  2321. }
  2322. }
  2323. void UnsafeArenaSwap(StructuredQuery_CompositeFilter* other) {
  2324. if (other == this) return;
  2325. ABSL_DCHECK(GetArena() == other->GetArena());
  2326. InternalSwap(other);
  2327. }
  2328. // implements Message ----------------------------------------------
  2329. StructuredQuery_CompositeFilter* New(::google::protobuf::Arena* arena = nullptr) const final {
  2330. return CreateMaybeMessage<StructuredQuery_CompositeFilter>(arena);
  2331. }
  2332. using ::google::protobuf::Message::CopyFrom;
  2333. void CopyFrom(const StructuredQuery_CompositeFilter& from);
  2334. using ::google::protobuf::Message::MergeFrom;
  2335. void MergeFrom( const StructuredQuery_CompositeFilter& from) {
  2336. StructuredQuery_CompositeFilter::MergeImpl(*this, from);
  2337. }
  2338. private:
  2339. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2340. public:
  2341. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2342. bool IsInitialized() const final;
  2343. ::size_t ByteSizeLong() const final;
  2344. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2345. ::uint8_t* _InternalSerialize(
  2346. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2347. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2348. private:
  2349. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2350. void SharedCtor(::google::protobuf::Arena* arena);
  2351. void SharedDtor();
  2352. void InternalSwap(StructuredQuery_CompositeFilter* other);
  2353. private:
  2354. friend class ::google::protobuf::internal::AnyMetadata;
  2355. static ::absl::string_view FullMessageName() {
  2356. return "google.firestore.v1.StructuredQuery.CompositeFilter";
  2357. }
  2358. protected:
  2359. explicit StructuredQuery_CompositeFilter(::google::protobuf::Arena* arena);
  2360. StructuredQuery_CompositeFilter(::google::protobuf::Arena* arena, const StructuredQuery_CompositeFilter& from);
  2361. public:
  2362. static const ClassData _class_data_;
  2363. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2364. ::google::protobuf::Metadata GetMetadata() const final;
  2365. // nested types ----------------------------------------------------
  2366. using Operator = StructuredQuery_CompositeFilter_Operator;
  2367. static constexpr Operator OPERATOR_UNSPECIFIED = StructuredQuery_CompositeFilter_Operator_OPERATOR_UNSPECIFIED;
  2368. static constexpr Operator AND = StructuredQuery_CompositeFilter_Operator_AND;
  2369. static constexpr Operator OR = StructuredQuery_CompositeFilter_Operator_OR;
  2370. static inline bool Operator_IsValid(int value) {
  2371. return StructuredQuery_CompositeFilter_Operator_IsValid(value);
  2372. }
  2373. static constexpr Operator Operator_MIN = StructuredQuery_CompositeFilter_Operator_Operator_MIN;
  2374. static constexpr Operator Operator_MAX = StructuredQuery_CompositeFilter_Operator_Operator_MAX;
  2375. static constexpr int Operator_ARRAYSIZE = StructuredQuery_CompositeFilter_Operator_Operator_ARRAYSIZE;
  2376. static inline const ::google::protobuf::EnumDescriptor* Operator_descriptor() {
  2377. return StructuredQuery_CompositeFilter_Operator_descriptor();
  2378. }
  2379. template <typename T>
  2380. static inline const std::string& Operator_Name(T value) {
  2381. return StructuredQuery_CompositeFilter_Operator_Name(value);
  2382. }
  2383. static inline bool Operator_Parse(absl::string_view name, Operator* value) {
  2384. return StructuredQuery_CompositeFilter_Operator_Parse(name, value);
  2385. }
  2386. // accessors -------------------------------------------------------
  2387. enum : int {
  2388. kFiltersFieldNumber = 2,
  2389. kOpFieldNumber = 1,
  2390. };
  2391. // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
  2392. int filters_size() const;
  2393. private:
  2394. int _internal_filters_size() const;
  2395. public:
  2396. void clear_filters() ;
  2397. ::google::firestore::v1::StructuredQuery_Filter* mutable_filters(int index);
  2398. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Filter >*
  2399. mutable_filters();
  2400. private:
  2401. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Filter>& _internal_filters() const;
  2402. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Filter>* _internal_mutable_filters();
  2403. public:
  2404. const ::google::firestore::v1::StructuredQuery_Filter& filters(int index) const;
  2405. ::google::firestore::v1::StructuredQuery_Filter* add_filters();
  2406. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Filter >&
  2407. filters() const;
  2408. // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
  2409. void clear_op() ;
  2410. ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator op() const;
  2411. void set_op(::google::firestore::v1::StructuredQuery_CompositeFilter_Operator value);
  2412. private:
  2413. ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator _internal_op() const;
  2414. void _internal_set_op(::google::firestore::v1::StructuredQuery_CompositeFilter_Operator value);
  2415. public:
  2416. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.CompositeFilter)
  2417. private:
  2418. class _Internal;
  2419. friend class ::google::protobuf::internal::TcParser;
  2420. static const ::google::protobuf::internal::TcParseTable<
  2421. 1, 2, 1,
  2422. 0, 2>
  2423. _table_;
  2424. friend class ::google::protobuf::MessageLite;
  2425. friend class ::google::protobuf::Arena;
  2426. template <typename T>
  2427. friend class ::google::protobuf::Arena::InternalHelper;
  2428. using InternalArenaConstructable_ = void;
  2429. using DestructorSkippable_ = void;
  2430. struct Impl_ {
  2431. inline explicit constexpr Impl_(
  2432. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2433. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2434. ::google::protobuf::Arena* arena);
  2435. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2436. ::google::protobuf::Arena* arena, const Impl_& from);
  2437. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Filter > filters_;
  2438. int op_;
  2439. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2440. PROTOBUF_TSAN_DECLARE_MEMBER
  2441. };
  2442. union { Impl_ _impl_; };
  2443. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  2444. };// -------------------------------------------------------------------
  2445. class StructuredQuery_Filter final :
  2446. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.Filter) */ {
  2447. public:
  2448. inline StructuredQuery_Filter() : StructuredQuery_Filter(nullptr) {}
  2449. ~StructuredQuery_Filter() override;
  2450. template<typename = void>
  2451. explicit PROTOBUF_CONSTEXPR StructuredQuery_Filter(::google::protobuf::internal::ConstantInitialized);
  2452. inline StructuredQuery_Filter(const StructuredQuery_Filter& from)
  2453. : StructuredQuery_Filter(nullptr, from) {}
  2454. StructuredQuery_Filter(StructuredQuery_Filter&& from) noexcept
  2455. : StructuredQuery_Filter() {
  2456. *this = ::std::move(from);
  2457. }
  2458. inline StructuredQuery_Filter& operator=(const StructuredQuery_Filter& from) {
  2459. CopyFrom(from);
  2460. return *this;
  2461. }
  2462. inline StructuredQuery_Filter& operator=(StructuredQuery_Filter&& from) noexcept {
  2463. if (this == &from) return *this;
  2464. if (GetArena() == from.GetArena()
  2465. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2466. && GetArena() != nullptr
  2467. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2468. ) {
  2469. InternalSwap(&from);
  2470. } else {
  2471. CopyFrom(from);
  2472. }
  2473. return *this;
  2474. }
  2475. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2476. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2477. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2478. }
  2479. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2480. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2481. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2482. }
  2483. static const ::google::protobuf::Descriptor* descriptor() {
  2484. return GetDescriptor();
  2485. }
  2486. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2487. return default_instance().GetMetadata().descriptor;
  2488. }
  2489. static const ::google::protobuf::Reflection* GetReflection() {
  2490. return default_instance().GetMetadata().reflection;
  2491. }
  2492. static const StructuredQuery_Filter& default_instance() {
  2493. return *internal_default_instance();
  2494. }
  2495. enum FilterTypeCase {
  2496. kCompositeFilter = 1,
  2497. kFieldFilter = 2,
  2498. kUnaryFilter = 3,
  2499. FILTER_TYPE_NOT_SET = 0,
  2500. };
  2501. static inline const StructuredQuery_Filter* internal_default_instance() {
  2502. return reinterpret_cast<const StructuredQuery_Filter*>(
  2503. &_StructuredQuery_Filter_default_instance_);
  2504. }
  2505. static constexpr int kIndexInFileMessages =
  2506. 1;
  2507. friend void swap(StructuredQuery_Filter& a, StructuredQuery_Filter& b) {
  2508. a.Swap(&b);
  2509. }
  2510. inline void Swap(StructuredQuery_Filter* other) {
  2511. if (other == this) return;
  2512. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2513. if (GetArena() != nullptr &&
  2514. GetArena() == other->GetArena()) {
  2515. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2516. if (GetArena() == other->GetArena()) {
  2517. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2518. InternalSwap(other);
  2519. } else {
  2520. ::google::protobuf::internal::GenericSwap(this, other);
  2521. }
  2522. }
  2523. void UnsafeArenaSwap(StructuredQuery_Filter* other) {
  2524. if (other == this) return;
  2525. ABSL_DCHECK(GetArena() == other->GetArena());
  2526. InternalSwap(other);
  2527. }
  2528. // implements Message ----------------------------------------------
  2529. StructuredQuery_Filter* New(::google::protobuf::Arena* arena = nullptr) const final {
  2530. return CreateMaybeMessage<StructuredQuery_Filter>(arena);
  2531. }
  2532. using ::google::protobuf::Message::CopyFrom;
  2533. void CopyFrom(const StructuredQuery_Filter& from);
  2534. using ::google::protobuf::Message::MergeFrom;
  2535. void MergeFrom( const StructuredQuery_Filter& from) {
  2536. StructuredQuery_Filter::MergeImpl(*this, from);
  2537. }
  2538. private:
  2539. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2540. public:
  2541. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2542. bool IsInitialized() const final;
  2543. ::size_t ByteSizeLong() const final;
  2544. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2545. ::uint8_t* _InternalSerialize(
  2546. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2547. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2548. private:
  2549. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2550. void SharedCtor(::google::protobuf::Arena* arena);
  2551. void SharedDtor();
  2552. void InternalSwap(StructuredQuery_Filter* other);
  2553. private:
  2554. friend class ::google::protobuf::internal::AnyMetadata;
  2555. static ::absl::string_view FullMessageName() {
  2556. return "google.firestore.v1.StructuredQuery.Filter";
  2557. }
  2558. protected:
  2559. explicit StructuredQuery_Filter(::google::protobuf::Arena* arena);
  2560. StructuredQuery_Filter(::google::protobuf::Arena* arena, const StructuredQuery_Filter& from);
  2561. public:
  2562. static const ClassData _class_data_;
  2563. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2564. ::google::protobuf::Metadata GetMetadata() const final;
  2565. // nested types ----------------------------------------------------
  2566. // accessors -------------------------------------------------------
  2567. enum : int {
  2568. kCompositeFilterFieldNumber = 1,
  2569. kFieldFilterFieldNumber = 2,
  2570. kUnaryFilterFieldNumber = 3,
  2571. };
  2572. // .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
  2573. bool has_composite_filter() const;
  2574. private:
  2575. bool _internal_has_composite_filter() const;
  2576. public:
  2577. void clear_composite_filter() ;
  2578. const ::google::firestore::v1::StructuredQuery_CompositeFilter& composite_filter() const;
  2579. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_CompositeFilter* release_composite_filter();
  2580. ::google::firestore::v1::StructuredQuery_CompositeFilter* mutable_composite_filter();
  2581. void set_allocated_composite_filter(::google::firestore::v1::StructuredQuery_CompositeFilter* value);
  2582. void unsafe_arena_set_allocated_composite_filter(::google::firestore::v1::StructuredQuery_CompositeFilter* value);
  2583. ::google::firestore::v1::StructuredQuery_CompositeFilter* unsafe_arena_release_composite_filter();
  2584. private:
  2585. const ::google::firestore::v1::StructuredQuery_CompositeFilter& _internal_composite_filter() const;
  2586. ::google::firestore::v1::StructuredQuery_CompositeFilter* _internal_mutable_composite_filter();
  2587. public:
  2588. // .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
  2589. bool has_field_filter() const;
  2590. private:
  2591. bool _internal_has_field_filter() const;
  2592. public:
  2593. void clear_field_filter() ;
  2594. const ::google::firestore::v1::StructuredQuery_FieldFilter& field_filter() const;
  2595. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_FieldFilter* release_field_filter();
  2596. ::google::firestore::v1::StructuredQuery_FieldFilter* mutable_field_filter();
  2597. void set_allocated_field_filter(::google::firestore::v1::StructuredQuery_FieldFilter* value);
  2598. void unsafe_arena_set_allocated_field_filter(::google::firestore::v1::StructuredQuery_FieldFilter* value);
  2599. ::google::firestore::v1::StructuredQuery_FieldFilter* unsafe_arena_release_field_filter();
  2600. private:
  2601. const ::google::firestore::v1::StructuredQuery_FieldFilter& _internal_field_filter() const;
  2602. ::google::firestore::v1::StructuredQuery_FieldFilter* _internal_mutable_field_filter();
  2603. public:
  2604. // .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
  2605. bool has_unary_filter() const;
  2606. private:
  2607. bool _internal_has_unary_filter() const;
  2608. public:
  2609. void clear_unary_filter() ;
  2610. const ::google::firestore::v1::StructuredQuery_UnaryFilter& unary_filter() const;
  2611. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_UnaryFilter* release_unary_filter();
  2612. ::google::firestore::v1::StructuredQuery_UnaryFilter* mutable_unary_filter();
  2613. void set_allocated_unary_filter(::google::firestore::v1::StructuredQuery_UnaryFilter* value);
  2614. void unsafe_arena_set_allocated_unary_filter(::google::firestore::v1::StructuredQuery_UnaryFilter* value);
  2615. ::google::firestore::v1::StructuredQuery_UnaryFilter* unsafe_arena_release_unary_filter();
  2616. private:
  2617. const ::google::firestore::v1::StructuredQuery_UnaryFilter& _internal_unary_filter() const;
  2618. ::google::firestore::v1::StructuredQuery_UnaryFilter* _internal_mutable_unary_filter();
  2619. public:
  2620. void clear_filter_type();
  2621. FilterTypeCase filter_type_case() const;
  2622. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.Filter)
  2623. private:
  2624. class _Internal;
  2625. void set_has_composite_filter();
  2626. void set_has_field_filter();
  2627. void set_has_unary_filter();
  2628. inline bool has_filter_type() const;
  2629. inline void clear_has_filter_type();
  2630. friend class ::google::protobuf::internal::TcParser;
  2631. static const ::google::protobuf::internal::TcParseTable<
  2632. 0, 3, 3,
  2633. 0, 2>
  2634. _table_;
  2635. friend class ::google::protobuf::MessageLite;
  2636. friend class ::google::protobuf::Arena;
  2637. template <typename T>
  2638. friend class ::google::protobuf::Arena::InternalHelper;
  2639. using InternalArenaConstructable_ = void;
  2640. using DestructorSkippable_ = void;
  2641. struct Impl_ {
  2642. inline explicit constexpr Impl_(
  2643. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2644. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2645. ::google::protobuf::Arena* arena);
  2646. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2647. ::google::protobuf::Arena* arena, const Impl_& from);
  2648. union FilterTypeUnion {
  2649. constexpr FilterTypeUnion() : _constinit_{} {}
  2650. ::google::protobuf::internal::ConstantInitialized _constinit_;
  2651. ::google::firestore::v1::StructuredQuery_CompositeFilter* composite_filter_;
  2652. ::google::firestore::v1::StructuredQuery_FieldFilter* field_filter_;
  2653. ::google::firestore::v1::StructuredQuery_UnaryFilter* unary_filter_;
  2654. } filter_type_;
  2655. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2656. ::uint32_t _oneof_case_[1];
  2657. PROTOBUF_TSAN_DECLARE_MEMBER
  2658. };
  2659. union { Impl_ _impl_; };
  2660. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  2661. };// -------------------------------------------------------------------
  2662. class StructuredQuery final :
  2663. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery) */ {
  2664. public:
  2665. inline StructuredQuery() : StructuredQuery(nullptr) {}
  2666. ~StructuredQuery() override;
  2667. template<typename = void>
  2668. explicit PROTOBUF_CONSTEXPR StructuredQuery(::google::protobuf::internal::ConstantInitialized);
  2669. inline StructuredQuery(const StructuredQuery& from)
  2670. : StructuredQuery(nullptr, from) {}
  2671. StructuredQuery(StructuredQuery&& from) noexcept
  2672. : StructuredQuery() {
  2673. *this = ::std::move(from);
  2674. }
  2675. inline StructuredQuery& operator=(const StructuredQuery& from) {
  2676. CopyFrom(from);
  2677. return *this;
  2678. }
  2679. inline StructuredQuery& operator=(StructuredQuery&& from) noexcept {
  2680. if (this == &from) return *this;
  2681. if (GetArena() == from.GetArena()
  2682. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2683. && GetArena() != nullptr
  2684. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2685. ) {
  2686. InternalSwap(&from);
  2687. } else {
  2688. CopyFrom(from);
  2689. }
  2690. return *this;
  2691. }
  2692. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2693. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2694. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2695. }
  2696. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2697. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2698. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2699. }
  2700. static const ::google::protobuf::Descriptor* descriptor() {
  2701. return GetDescriptor();
  2702. }
  2703. static const ::google::protobuf::Descriptor* GetDescriptor() {
  2704. return default_instance().GetMetadata().descriptor;
  2705. }
  2706. static const ::google::protobuf::Reflection* GetReflection() {
  2707. return default_instance().GetMetadata().reflection;
  2708. }
  2709. static const StructuredQuery& default_instance() {
  2710. return *internal_default_instance();
  2711. }
  2712. static inline const StructuredQuery* internal_default_instance() {
  2713. return reinterpret_cast<const StructuredQuery*>(
  2714. &_StructuredQuery_default_instance_);
  2715. }
  2716. static constexpr int kIndexInFileMessages =
  2717. 8;
  2718. friend void swap(StructuredQuery& a, StructuredQuery& b) {
  2719. a.Swap(&b);
  2720. }
  2721. inline void Swap(StructuredQuery* other) {
  2722. if (other == this) return;
  2723. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2724. if (GetArena() != nullptr &&
  2725. GetArena() == other->GetArena()) {
  2726. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2727. if (GetArena() == other->GetArena()) {
  2728. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2729. InternalSwap(other);
  2730. } else {
  2731. ::google::protobuf::internal::GenericSwap(this, other);
  2732. }
  2733. }
  2734. void UnsafeArenaSwap(StructuredQuery* other) {
  2735. if (other == this) return;
  2736. ABSL_DCHECK(GetArena() == other->GetArena());
  2737. InternalSwap(other);
  2738. }
  2739. // implements Message ----------------------------------------------
  2740. StructuredQuery* New(::google::protobuf::Arena* arena = nullptr) const final {
  2741. return CreateMaybeMessage<StructuredQuery>(arena);
  2742. }
  2743. using ::google::protobuf::Message::CopyFrom;
  2744. void CopyFrom(const StructuredQuery& from);
  2745. using ::google::protobuf::Message::MergeFrom;
  2746. void MergeFrom( const StructuredQuery& from) {
  2747. StructuredQuery::MergeImpl(*this, from);
  2748. }
  2749. private:
  2750. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  2751. public:
  2752. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2753. bool IsInitialized() const final;
  2754. ::size_t ByteSizeLong() const final;
  2755. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  2756. ::uint8_t* _InternalSerialize(
  2757. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  2758. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  2759. private:
  2760. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  2761. void SharedCtor(::google::protobuf::Arena* arena);
  2762. void SharedDtor();
  2763. void InternalSwap(StructuredQuery* other);
  2764. private:
  2765. friend class ::google::protobuf::internal::AnyMetadata;
  2766. static ::absl::string_view FullMessageName() {
  2767. return "google.firestore.v1.StructuredQuery";
  2768. }
  2769. protected:
  2770. explicit StructuredQuery(::google::protobuf::Arena* arena);
  2771. StructuredQuery(::google::protobuf::Arena* arena, const StructuredQuery& from);
  2772. public:
  2773. static const ClassData _class_data_;
  2774. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  2775. ::google::protobuf::Metadata GetMetadata() const final;
  2776. // nested types ----------------------------------------------------
  2777. using CollectionSelector = StructuredQuery_CollectionSelector;
  2778. using Filter = StructuredQuery_Filter;
  2779. using CompositeFilter = StructuredQuery_CompositeFilter;
  2780. using FieldFilter = StructuredQuery_FieldFilter;
  2781. using UnaryFilter = StructuredQuery_UnaryFilter;
  2782. using Order = StructuredQuery_Order;
  2783. using FieldReference = StructuredQuery_FieldReference;
  2784. using Projection = StructuredQuery_Projection;
  2785. using Direction = StructuredQuery_Direction;
  2786. static constexpr Direction DIRECTION_UNSPECIFIED = StructuredQuery_Direction_DIRECTION_UNSPECIFIED;
  2787. static constexpr Direction ASCENDING = StructuredQuery_Direction_ASCENDING;
  2788. static constexpr Direction DESCENDING = StructuredQuery_Direction_DESCENDING;
  2789. static inline bool Direction_IsValid(int value) {
  2790. return StructuredQuery_Direction_IsValid(value);
  2791. }
  2792. static constexpr Direction Direction_MIN = StructuredQuery_Direction_Direction_MIN;
  2793. static constexpr Direction Direction_MAX = StructuredQuery_Direction_Direction_MAX;
  2794. static constexpr int Direction_ARRAYSIZE = StructuredQuery_Direction_Direction_ARRAYSIZE;
  2795. static inline const ::google::protobuf::EnumDescriptor* Direction_descriptor() {
  2796. return StructuredQuery_Direction_descriptor();
  2797. }
  2798. template <typename T>
  2799. static inline const std::string& Direction_Name(T value) {
  2800. return StructuredQuery_Direction_Name(value);
  2801. }
  2802. static inline bool Direction_Parse(absl::string_view name, Direction* value) {
  2803. return StructuredQuery_Direction_Parse(name, value);
  2804. }
  2805. // accessors -------------------------------------------------------
  2806. enum : int {
  2807. kFromFieldNumber = 2,
  2808. kOrderByFieldNumber = 4,
  2809. kSelectFieldNumber = 1,
  2810. kWhereFieldNumber = 3,
  2811. kLimitFieldNumber = 5,
  2812. kStartAtFieldNumber = 7,
  2813. kEndAtFieldNumber = 8,
  2814. kOffsetFieldNumber = 6,
  2815. };
  2816. // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
  2817. int from_size() const;
  2818. private:
  2819. int _internal_from_size() const;
  2820. public:
  2821. void clear_from() ;
  2822. ::google::firestore::v1::StructuredQuery_CollectionSelector* mutable_from(int index);
  2823. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_CollectionSelector >*
  2824. mutable_from();
  2825. private:
  2826. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_CollectionSelector>& _internal_from() const;
  2827. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_CollectionSelector>* _internal_mutable_from();
  2828. public:
  2829. const ::google::firestore::v1::StructuredQuery_CollectionSelector& from(int index) const;
  2830. ::google::firestore::v1::StructuredQuery_CollectionSelector* add_from();
  2831. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_CollectionSelector >&
  2832. from() const;
  2833. // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
  2834. int order_by_size() const;
  2835. private:
  2836. int _internal_order_by_size() const;
  2837. public:
  2838. void clear_order_by() ;
  2839. ::google::firestore::v1::StructuredQuery_Order* mutable_order_by(int index);
  2840. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Order >*
  2841. mutable_order_by();
  2842. private:
  2843. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Order>& _internal_order_by() const;
  2844. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Order>* _internal_mutable_order_by();
  2845. public:
  2846. const ::google::firestore::v1::StructuredQuery_Order& order_by(int index) const;
  2847. ::google::firestore::v1::StructuredQuery_Order* add_order_by();
  2848. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Order >&
  2849. order_by() const;
  2850. // .google.firestore.v1.StructuredQuery.Projection select = 1;
  2851. bool has_select() const;
  2852. void clear_select() ;
  2853. const ::google::firestore::v1::StructuredQuery_Projection& select() const;
  2854. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_Projection* release_select();
  2855. ::google::firestore::v1::StructuredQuery_Projection* mutable_select();
  2856. void set_allocated_select(::google::firestore::v1::StructuredQuery_Projection* value);
  2857. void unsafe_arena_set_allocated_select(::google::firestore::v1::StructuredQuery_Projection* value);
  2858. ::google::firestore::v1::StructuredQuery_Projection* unsafe_arena_release_select();
  2859. private:
  2860. const ::google::firestore::v1::StructuredQuery_Projection& _internal_select() const;
  2861. ::google::firestore::v1::StructuredQuery_Projection* _internal_mutable_select();
  2862. public:
  2863. // .google.firestore.v1.StructuredQuery.Filter where = 3;
  2864. bool has_where() const;
  2865. void clear_where() ;
  2866. const ::google::firestore::v1::StructuredQuery_Filter& where() const;
  2867. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery_Filter* release_where();
  2868. ::google::firestore::v1::StructuredQuery_Filter* mutable_where();
  2869. void set_allocated_where(::google::firestore::v1::StructuredQuery_Filter* value);
  2870. void unsafe_arena_set_allocated_where(::google::firestore::v1::StructuredQuery_Filter* value);
  2871. ::google::firestore::v1::StructuredQuery_Filter* unsafe_arena_release_where();
  2872. private:
  2873. const ::google::firestore::v1::StructuredQuery_Filter& _internal_where() const;
  2874. ::google::firestore::v1::StructuredQuery_Filter* _internal_mutable_where();
  2875. public:
  2876. // .google.protobuf.Int32Value limit = 5;
  2877. bool has_limit() const;
  2878. void clear_limit() ;
  2879. const ::google::protobuf::Int32Value& limit() const;
  2880. PROTOBUF_NODISCARD ::google::protobuf::Int32Value* release_limit();
  2881. ::google::protobuf::Int32Value* mutable_limit();
  2882. void set_allocated_limit(::google::protobuf::Int32Value* value);
  2883. void unsafe_arena_set_allocated_limit(::google::protobuf::Int32Value* value);
  2884. ::google::protobuf::Int32Value* unsafe_arena_release_limit();
  2885. private:
  2886. const ::google::protobuf::Int32Value& _internal_limit() const;
  2887. ::google::protobuf::Int32Value* _internal_mutable_limit();
  2888. public:
  2889. // .google.firestore.v1.Cursor start_at = 7;
  2890. bool has_start_at() const;
  2891. void clear_start_at() ;
  2892. const ::google::firestore::v1::Cursor& start_at() const;
  2893. PROTOBUF_NODISCARD ::google::firestore::v1::Cursor* release_start_at();
  2894. ::google::firestore::v1::Cursor* mutable_start_at();
  2895. void set_allocated_start_at(::google::firestore::v1::Cursor* value);
  2896. void unsafe_arena_set_allocated_start_at(::google::firestore::v1::Cursor* value);
  2897. ::google::firestore::v1::Cursor* unsafe_arena_release_start_at();
  2898. private:
  2899. const ::google::firestore::v1::Cursor& _internal_start_at() const;
  2900. ::google::firestore::v1::Cursor* _internal_mutable_start_at();
  2901. public:
  2902. // .google.firestore.v1.Cursor end_at = 8;
  2903. bool has_end_at() const;
  2904. void clear_end_at() ;
  2905. const ::google::firestore::v1::Cursor& end_at() const;
  2906. PROTOBUF_NODISCARD ::google::firestore::v1::Cursor* release_end_at();
  2907. ::google::firestore::v1::Cursor* mutable_end_at();
  2908. void set_allocated_end_at(::google::firestore::v1::Cursor* value);
  2909. void unsafe_arena_set_allocated_end_at(::google::firestore::v1::Cursor* value);
  2910. ::google::firestore::v1::Cursor* unsafe_arena_release_end_at();
  2911. private:
  2912. const ::google::firestore::v1::Cursor& _internal_end_at() const;
  2913. ::google::firestore::v1::Cursor* _internal_mutable_end_at();
  2914. public:
  2915. // int32 offset = 6;
  2916. void clear_offset() ;
  2917. ::int32_t offset() const;
  2918. void set_offset(::int32_t value);
  2919. private:
  2920. ::int32_t _internal_offset() const;
  2921. void _internal_set_offset(::int32_t value);
  2922. public:
  2923. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery)
  2924. private:
  2925. class _Internal;
  2926. friend class ::google::protobuf::internal::TcParser;
  2927. static const ::google::protobuf::internal::TcParseTable<
  2928. 3, 8, 7,
  2929. 0, 2>
  2930. _table_;
  2931. friend class ::google::protobuf::MessageLite;
  2932. friend class ::google::protobuf::Arena;
  2933. template <typename T>
  2934. friend class ::google::protobuf::Arena::InternalHelper;
  2935. using InternalArenaConstructable_ = void;
  2936. using DestructorSkippable_ = void;
  2937. struct Impl_ {
  2938. inline explicit constexpr Impl_(
  2939. ::google::protobuf::internal::ConstantInitialized) noexcept;
  2940. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2941. ::google::protobuf::Arena* arena);
  2942. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  2943. ::google::protobuf::Arena* arena, const Impl_& from);
  2944. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2945. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2946. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_CollectionSelector > from_;
  2947. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Order > order_by_;
  2948. ::google::firestore::v1::StructuredQuery_Projection* select_;
  2949. ::google::firestore::v1::StructuredQuery_Filter* where_;
  2950. ::google::protobuf::Int32Value* limit_;
  2951. ::google::firestore::v1::Cursor* start_at_;
  2952. ::google::firestore::v1::Cursor* end_at_;
  2953. ::int32_t offset_;
  2954. PROTOBUF_TSAN_DECLARE_MEMBER
  2955. };
  2956. union { Impl_ _impl_; };
  2957. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  2958. };// -------------------------------------------------------------------
  2959. class StructuredAggregationQuery final :
  2960. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredAggregationQuery) */ {
  2961. public:
  2962. inline StructuredAggregationQuery() : StructuredAggregationQuery(nullptr) {}
  2963. ~StructuredAggregationQuery() override;
  2964. template<typename = void>
  2965. explicit PROTOBUF_CONSTEXPR StructuredAggregationQuery(::google::protobuf::internal::ConstantInitialized);
  2966. inline StructuredAggregationQuery(const StructuredAggregationQuery& from)
  2967. : StructuredAggregationQuery(nullptr, from) {}
  2968. StructuredAggregationQuery(StructuredAggregationQuery&& from) noexcept
  2969. : StructuredAggregationQuery() {
  2970. *this = ::std::move(from);
  2971. }
  2972. inline StructuredAggregationQuery& operator=(const StructuredAggregationQuery& from) {
  2973. CopyFrom(from);
  2974. return *this;
  2975. }
  2976. inline StructuredAggregationQuery& operator=(StructuredAggregationQuery&& from) noexcept {
  2977. if (this == &from) return *this;
  2978. if (GetArena() == from.GetArena()
  2979. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2980. && GetArena() != nullptr
  2981. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2982. ) {
  2983. InternalSwap(&from);
  2984. } else {
  2985. CopyFrom(from);
  2986. }
  2987. return *this;
  2988. }
  2989. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  2990. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2991. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  2992. }
  2993. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  2994. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2995. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  2996. }
  2997. static const ::google::protobuf::Descriptor* descriptor() {
  2998. return GetDescriptor();
  2999. }
  3000. static const ::google::protobuf::Descriptor* GetDescriptor() {
  3001. return default_instance().GetMetadata().descriptor;
  3002. }
  3003. static const ::google::protobuf::Reflection* GetReflection() {
  3004. return default_instance().GetMetadata().reflection;
  3005. }
  3006. static const StructuredAggregationQuery& default_instance() {
  3007. return *internal_default_instance();
  3008. }
  3009. enum QueryTypeCase {
  3010. kStructuredQuery = 1,
  3011. QUERY_TYPE_NOT_SET = 0,
  3012. };
  3013. static inline const StructuredAggregationQuery* internal_default_instance() {
  3014. return reinterpret_cast<const StructuredAggregationQuery*>(
  3015. &_StructuredAggregationQuery_default_instance_);
  3016. }
  3017. static constexpr int kIndexInFileMessages =
  3018. 13;
  3019. friend void swap(StructuredAggregationQuery& a, StructuredAggregationQuery& b) {
  3020. a.Swap(&b);
  3021. }
  3022. inline void Swap(StructuredAggregationQuery* other) {
  3023. if (other == this) return;
  3024. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3025. if (GetArena() != nullptr &&
  3026. GetArena() == other->GetArena()) {
  3027. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3028. if (GetArena() == other->GetArena()) {
  3029. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3030. InternalSwap(other);
  3031. } else {
  3032. ::google::protobuf::internal::GenericSwap(this, other);
  3033. }
  3034. }
  3035. void UnsafeArenaSwap(StructuredAggregationQuery* other) {
  3036. if (other == this) return;
  3037. ABSL_DCHECK(GetArena() == other->GetArena());
  3038. InternalSwap(other);
  3039. }
  3040. // implements Message ----------------------------------------------
  3041. StructuredAggregationQuery* New(::google::protobuf::Arena* arena = nullptr) const final {
  3042. return CreateMaybeMessage<StructuredAggregationQuery>(arena);
  3043. }
  3044. using ::google::protobuf::Message::CopyFrom;
  3045. void CopyFrom(const StructuredAggregationQuery& from);
  3046. using ::google::protobuf::Message::MergeFrom;
  3047. void MergeFrom( const StructuredAggregationQuery& from) {
  3048. StructuredAggregationQuery::MergeImpl(*this, from);
  3049. }
  3050. private:
  3051. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  3052. public:
  3053. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3054. bool IsInitialized() const final;
  3055. ::size_t ByteSizeLong() const final;
  3056. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  3057. ::uint8_t* _InternalSerialize(
  3058. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  3059. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  3060. private:
  3061. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  3062. void SharedCtor(::google::protobuf::Arena* arena);
  3063. void SharedDtor();
  3064. void InternalSwap(StructuredAggregationQuery* other);
  3065. private:
  3066. friend class ::google::protobuf::internal::AnyMetadata;
  3067. static ::absl::string_view FullMessageName() {
  3068. return "google.firestore.v1.StructuredAggregationQuery";
  3069. }
  3070. protected:
  3071. explicit StructuredAggregationQuery(::google::protobuf::Arena* arena);
  3072. StructuredAggregationQuery(::google::protobuf::Arena* arena, const StructuredAggregationQuery& from);
  3073. public:
  3074. static const ClassData _class_data_;
  3075. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  3076. ::google::protobuf::Metadata GetMetadata() const final;
  3077. // nested types ----------------------------------------------------
  3078. using Aggregation = StructuredAggregationQuery_Aggregation;
  3079. // accessors -------------------------------------------------------
  3080. enum : int {
  3081. kAggregationsFieldNumber = 3,
  3082. kStructuredQueryFieldNumber = 1,
  3083. };
  3084. // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
  3085. int aggregations_size() const;
  3086. private:
  3087. int _internal_aggregations_size() const;
  3088. public:
  3089. void clear_aggregations() ;
  3090. ::google::firestore::v1::StructuredAggregationQuery_Aggregation* mutable_aggregations(int index);
  3091. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredAggregationQuery_Aggregation >*
  3092. mutable_aggregations();
  3093. private:
  3094. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredAggregationQuery_Aggregation>& _internal_aggregations() const;
  3095. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredAggregationQuery_Aggregation>* _internal_mutable_aggregations();
  3096. public:
  3097. const ::google::firestore::v1::StructuredAggregationQuery_Aggregation& aggregations(int index) const;
  3098. ::google::firestore::v1::StructuredAggregationQuery_Aggregation* add_aggregations();
  3099. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredAggregationQuery_Aggregation >&
  3100. aggregations() const;
  3101. // .google.firestore.v1.StructuredQuery structured_query = 1;
  3102. bool has_structured_query() const;
  3103. private:
  3104. bool _internal_has_structured_query() const;
  3105. public:
  3106. void clear_structured_query() ;
  3107. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  3108. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery* release_structured_query();
  3109. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  3110. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value);
  3111. void unsafe_arena_set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value);
  3112. ::google::firestore::v1::StructuredQuery* unsafe_arena_release_structured_query();
  3113. private:
  3114. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  3115. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  3116. public:
  3117. void clear_query_type();
  3118. QueryTypeCase query_type_case() const;
  3119. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredAggregationQuery)
  3120. private:
  3121. class _Internal;
  3122. void set_has_structured_query();
  3123. inline bool has_query_type() const;
  3124. inline void clear_has_query_type();
  3125. friend class ::google::protobuf::internal::TcParser;
  3126. static const ::google::protobuf::internal::TcParseTable<
  3127. 0, 2, 2,
  3128. 0, 2>
  3129. _table_;
  3130. friend class ::google::protobuf::MessageLite;
  3131. friend class ::google::protobuf::Arena;
  3132. template <typename T>
  3133. friend class ::google::protobuf::Arena::InternalHelper;
  3134. using InternalArenaConstructable_ = void;
  3135. using DestructorSkippable_ = void;
  3136. struct Impl_ {
  3137. inline explicit constexpr Impl_(
  3138. ::google::protobuf::internal::ConstantInitialized) noexcept;
  3139. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3140. ::google::protobuf::Arena* arena);
  3141. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  3142. ::google::protobuf::Arena* arena, const Impl_& from);
  3143. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredAggregationQuery_Aggregation > aggregations_;
  3144. union QueryTypeUnion {
  3145. constexpr QueryTypeUnion() : _constinit_{} {}
  3146. ::google::protobuf::internal::ConstantInitialized _constinit_;
  3147. ::google::firestore::v1::StructuredQuery* structured_query_;
  3148. } query_type_;
  3149. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3150. ::uint32_t _oneof_case_[1];
  3151. PROTOBUF_TSAN_DECLARE_MEMBER
  3152. };
  3153. union { Impl_ _impl_; };
  3154. friend struct ::TableStruct_google_2ffirestore_2fv1_2fquery_2eproto;
  3155. };
  3156. // ===================================================================
  3157. // ===================================================================
  3158. #ifdef __GNUC__
  3159. #pragma GCC diagnostic push
  3160. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  3161. #endif // __GNUC__
  3162. // -------------------------------------------------------------------
  3163. // StructuredQuery_CollectionSelector
  3164. // string collection_id = 2;
  3165. inline void StructuredQuery_CollectionSelector::clear_collection_id() {
  3166. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3167. _impl_.collection_id_.ClearToEmpty();
  3168. }
  3169. inline const std::string& StructuredQuery_CollectionSelector::collection_id() const
  3170. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3171. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  3172. return _internal_collection_id();
  3173. }
  3174. template <typename Arg_, typename... Args_>
  3175. inline PROTOBUF_ALWAYS_INLINE void StructuredQuery_CollectionSelector::set_collection_id(Arg_&& arg,
  3176. Args_... args) {
  3177. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3178. ;
  3179. _impl_.collection_id_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  3180. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  3181. }
  3182. inline std::string* StructuredQuery_CollectionSelector::mutable_collection_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3183. std::string* _s = _internal_mutable_collection_id();
  3184. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  3185. return _s;
  3186. }
  3187. inline const std::string& StructuredQuery_CollectionSelector::_internal_collection_id() const {
  3188. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3189. return _impl_.collection_id_.Get();
  3190. }
  3191. inline void StructuredQuery_CollectionSelector::_internal_set_collection_id(const std::string& value) {
  3192. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3193. ;
  3194. _impl_.collection_id_.Set(value, GetArena());
  3195. }
  3196. inline std::string* StructuredQuery_CollectionSelector::_internal_mutable_collection_id() {
  3197. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3198. ;
  3199. return _impl_.collection_id_.Mutable( GetArena());
  3200. }
  3201. inline std::string* StructuredQuery_CollectionSelector::release_collection_id() {
  3202. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3203. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  3204. return _impl_.collection_id_.Release();
  3205. }
  3206. inline void StructuredQuery_CollectionSelector::set_allocated_collection_id(std::string* value) {
  3207. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3208. _impl_.collection_id_.SetAllocated(value, GetArena());
  3209. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3210. if (_impl_.collection_id_.IsDefault()) {
  3211. _impl_.collection_id_.Set("", GetArena());
  3212. }
  3213. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3214. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  3215. }
  3216. // bool all_descendants = 3;
  3217. inline void StructuredQuery_CollectionSelector::clear_all_descendants() {
  3218. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3219. _impl_.all_descendants_ = false;
  3220. }
  3221. inline bool StructuredQuery_CollectionSelector::all_descendants() const {
  3222. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.CollectionSelector.all_descendants)
  3223. return _internal_all_descendants();
  3224. }
  3225. inline void StructuredQuery_CollectionSelector::set_all_descendants(bool value) {
  3226. _internal_set_all_descendants(value);
  3227. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.CollectionSelector.all_descendants)
  3228. }
  3229. inline bool StructuredQuery_CollectionSelector::_internal_all_descendants() const {
  3230. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3231. return _impl_.all_descendants_;
  3232. }
  3233. inline void StructuredQuery_CollectionSelector::_internal_set_all_descendants(bool value) {
  3234. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3235. ;
  3236. _impl_.all_descendants_ = value;
  3237. }
  3238. // -------------------------------------------------------------------
  3239. // StructuredQuery_Filter
  3240. // .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
  3241. inline bool StructuredQuery_Filter::has_composite_filter() const {
  3242. return filter_type_case() == kCompositeFilter;
  3243. }
  3244. inline bool StructuredQuery_Filter::_internal_has_composite_filter() const {
  3245. return filter_type_case() == kCompositeFilter;
  3246. }
  3247. inline void StructuredQuery_Filter::set_has_composite_filter() {
  3248. _impl_._oneof_case_[0] = kCompositeFilter;
  3249. }
  3250. inline void StructuredQuery_Filter::clear_composite_filter() {
  3251. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3252. if (filter_type_case() == kCompositeFilter) {
  3253. if (GetArena() == nullptr) {
  3254. delete _impl_.filter_type_.composite_filter_;
  3255. }
  3256. clear_has_filter_type();
  3257. }
  3258. }
  3259. inline ::google::firestore::v1::StructuredQuery_CompositeFilter* StructuredQuery_Filter::release_composite_filter() {
  3260. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  3261. if (filter_type_case() == kCompositeFilter) {
  3262. clear_has_filter_type();
  3263. auto* temp = _impl_.filter_type_.composite_filter_;
  3264. if (GetArena() != nullptr) {
  3265. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  3266. }
  3267. _impl_.filter_type_.composite_filter_ = nullptr;
  3268. return temp;
  3269. } else {
  3270. return nullptr;
  3271. }
  3272. }
  3273. inline const ::google::firestore::v1::StructuredQuery_CompositeFilter& StructuredQuery_Filter::_internal_composite_filter() const {
  3274. return filter_type_case() == kCompositeFilter ? *_impl_.filter_type_.composite_filter_ : reinterpret_cast<::google::firestore::v1::StructuredQuery_CompositeFilter&>(::google::firestore::v1::_StructuredQuery_CompositeFilter_default_instance_);
  3275. }
  3276. inline const ::google::firestore::v1::StructuredQuery_CompositeFilter& StructuredQuery_Filter::composite_filter() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3277. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  3278. return _internal_composite_filter();
  3279. }
  3280. inline ::google::firestore::v1::StructuredQuery_CompositeFilter* StructuredQuery_Filter::unsafe_arena_release_composite_filter() {
  3281. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  3282. if (filter_type_case() == kCompositeFilter) {
  3283. clear_has_filter_type();
  3284. auto* temp = _impl_.filter_type_.composite_filter_;
  3285. _impl_.filter_type_.composite_filter_ = nullptr;
  3286. return temp;
  3287. } else {
  3288. return nullptr;
  3289. }
  3290. }
  3291. inline void StructuredQuery_Filter::unsafe_arena_set_allocated_composite_filter(::google::firestore::v1::StructuredQuery_CompositeFilter* value) {
  3292. // We rely on the oneof clear method to free the earlier contents
  3293. // of this oneof. We can directly use the pointer we're given to
  3294. // set the new value.
  3295. clear_filter_type();
  3296. if (value) {
  3297. set_has_composite_filter();
  3298. _impl_.filter_type_.composite_filter_ = value;
  3299. }
  3300. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  3301. }
  3302. inline ::google::firestore::v1::StructuredQuery_CompositeFilter* StructuredQuery_Filter::_internal_mutable_composite_filter() {
  3303. if (filter_type_case() != kCompositeFilter) {
  3304. clear_filter_type();
  3305. set_has_composite_filter();
  3306. _impl_.filter_type_.composite_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_CompositeFilter>(GetArena());
  3307. }
  3308. return _impl_.filter_type_.composite_filter_;
  3309. }
  3310. inline ::google::firestore::v1::StructuredQuery_CompositeFilter* StructuredQuery_Filter::mutable_composite_filter() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3311. ::google::firestore::v1::StructuredQuery_CompositeFilter* _msg = _internal_mutable_composite_filter();
  3312. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  3313. return _msg;
  3314. }
  3315. // .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
  3316. inline bool StructuredQuery_Filter::has_field_filter() const {
  3317. return filter_type_case() == kFieldFilter;
  3318. }
  3319. inline bool StructuredQuery_Filter::_internal_has_field_filter() const {
  3320. return filter_type_case() == kFieldFilter;
  3321. }
  3322. inline void StructuredQuery_Filter::set_has_field_filter() {
  3323. _impl_._oneof_case_[0] = kFieldFilter;
  3324. }
  3325. inline void StructuredQuery_Filter::clear_field_filter() {
  3326. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3327. if (filter_type_case() == kFieldFilter) {
  3328. if (GetArena() == nullptr) {
  3329. delete _impl_.filter_type_.field_filter_;
  3330. }
  3331. clear_has_filter_type();
  3332. }
  3333. }
  3334. inline ::google::firestore::v1::StructuredQuery_FieldFilter* StructuredQuery_Filter::release_field_filter() {
  3335. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.Filter.field_filter)
  3336. if (filter_type_case() == kFieldFilter) {
  3337. clear_has_filter_type();
  3338. auto* temp = _impl_.filter_type_.field_filter_;
  3339. if (GetArena() != nullptr) {
  3340. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  3341. }
  3342. _impl_.filter_type_.field_filter_ = nullptr;
  3343. return temp;
  3344. } else {
  3345. return nullptr;
  3346. }
  3347. }
  3348. inline const ::google::firestore::v1::StructuredQuery_FieldFilter& StructuredQuery_Filter::_internal_field_filter() const {
  3349. return filter_type_case() == kFieldFilter ? *_impl_.filter_type_.field_filter_ : reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldFilter&>(::google::firestore::v1::_StructuredQuery_FieldFilter_default_instance_);
  3350. }
  3351. inline const ::google::firestore::v1::StructuredQuery_FieldFilter& StructuredQuery_Filter::field_filter() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3352. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Filter.field_filter)
  3353. return _internal_field_filter();
  3354. }
  3355. inline ::google::firestore::v1::StructuredQuery_FieldFilter* StructuredQuery_Filter::unsafe_arena_release_field_filter() {
  3356. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.StructuredQuery.Filter.field_filter)
  3357. if (filter_type_case() == kFieldFilter) {
  3358. clear_has_filter_type();
  3359. auto* temp = _impl_.filter_type_.field_filter_;
  3360. _impl_.filter_type_.field_filter_ = nullptr;
  3361. return temp;
  3362. } else {
  3363. return nullptr;
  3364. }
  3365. }
  3366. inline void StructuredQuery_Filter::unsafe_arena_set_allocated_field_filter(::google::firestore::v1::StructuredQuery_FieldFilter* value) {
  3367. // We rely on the oneof clear method to free the earlier contents
  3368. // of this oneof. We can directly use the pointer we're given to
  3369. // set the new value.
  3370. clear_filter_type();
  3371. if (value) {
  3372. set_has_field_filter();
  3373. _impl_.filter_type_.field_filter_ = value;
  3374. }
  3375. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.Filter.field_filter)
  3376. }
  3377. inline ::google::firestore::v1::StructuredQuery_FieldFilter* StructuredQuery_Filter::_internal_mutable_field_filter() {
  3378. if (filter_type_case() != kFieldFilter) {
  3379. clear_filter_type();
  3380. set_has_field_filter();
  3381. _impl_.filter_type_.field_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldFilter>(GetArena());
  3382. }
  3383. return _impl_.filter_type_.field_filter_;
  3384. }
  3385. inline ::google::firestore::v1::StructuredQuery_FieldFilter* StructuredQuery_Filter::mutable_field_filter() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3386. ::google::firestore::v1::StructuredQuery_FieldFilter* _msg = _internal_mutable_field_filter();
  3387. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Filter.field_filter)
  3388. return _msg;
  3389. }
  3390. // .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
  3391. inline bool StructuredQuery_Filter::has_unary_filter() const {
  3392. return filter_type_case() == kUnaryFilter;
  3393. }
  3394. inline bool StructuredQuery_Filter::_internal_has_unary_filter() const {
  3395. return filter_type_case() == kUnaryFilter;
  3396. }
  3397. inline void StructuredQuery_Filter::set_has_unary_filter() {
  3398. _impl_._oneof_case_[0] = kUnaryFilter;
  3399. }
  3400. inline void StructuredQuery_Filter::clear_unary_filter() {
  3401. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3402. if (filter_type_case() == kUnaryFilter) {
  3403. if (GetArena() == nullptr) {
  3404. delete _impl_.filter_type_.unary_filter_;
  3405. }
  3406. clear_has_filter_type();
  3407. }
  3408. }
  3409. inline ::google::firestore::v1::StructuredQuery_UnaryFilter* StructuredQuery_Filter::release_unary_filter() {
  3410. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  3411. if (filter_type_case() == kUnaryFilter) {
  3412. clear_has_filter_type();
  3413. auto* temp = _impl_.filter_type_.unary_filter_;
  3414. if (GetArena() != nullptr) {
  3415. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  3416. }
  3417. _impl_.filter_type_.unary_filter_ = nullptr;
  3418. return temp;
  3419. } else {
  3420. return nullptr;
  3421. }
  3422. }
  3423. inline const ::google::firestore::v1::StructuredQuery_UnaryFilter& StructuredQuery_Filter::_internal_unary_filter() const {
  3424. return filter_type_case() == kUnaryFilter ? *_impl_.filter_type_.unary_filter_ : reinterpret_cast<::google::firestore::v1::StructuredQuery_UnaryFilter&>(::google::firestore::v1::_StructuredQuery_UnaryFilter_default_instance_);
  3425. }
  3426. inline const ::google::firestore::v1::StructuredQuery_UnaryFilter& StructuredQuery_Filter::unary_filter() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3427. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  3428. return _internal_unary_filter();
  3429. }
  3430. inline ::google::firestore::v1::StructuredQuery_UnaryFilter* StructuredQuery_Filter::unsafe_arena_release_unary_filter() {
  3431. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  3432. if (filter_type_case() == kUnaryFilter) {
  3433. clear_has_filter_type();
  3434. auto* temp = _impl_.filter_type_.unary_filter_;
  3435. _impl_.filter_type_.unary_filter_ = nullptr;
  3436. return temp;
  3437. } else {
  3438. return nullptr;
  3439. }
  3440. }
  3441. inline void StructuredQuery_Filter::unsafe_arena_set_allocated_unary_filter(::google::firestore::v1::StructuredQuery_UnaryFilter* value) {
  3442. // We rely on the oneof clear method to free the earlier contents
  3443. // of this oneof. We can directly use the pointer we're given to
  3444. // set the new value.
  3445. clear_filter_type();
  3446. if (value) {
  3447. set_has_unary_filter();
  3448. _impl_.filter_type_.unary_filter_ = value;
  3449. }
  3450. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  3451. }
  3452. inline ::google::firestore::v1::StructuredQuery_UnaryFilter* StructuredQuery_Filter::_internal_mutable_unary_filter() {
  3453. if (filter_type_case() != kUnaryFilter) {
  3454. clear_filter_type();
  3455. set_has_unary_filter();
  3456. _impl_.filter_type_.unary_filter_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_UnaryFilter>(GetArena());
  3457. }
  3458. return _impl_.filter_type_.unary_filter_;
  3459. }
  3460. inline ::google::firestore::v1::StructuredQuery_UnaryFilter* StructuredQuery_Filter::mutable_unary_filter() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3461. ::google::firestore::v1::StructuredQuery_UnaryFilter* _msg = _internal_mutable_unary_filter();
  3462. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  3463. return _msg;
  3464. }
  3465. inline bool StructuredQuery_Filter::has_filter_type() const {
  3466. return filter_type_case() != FILTER_TYPE_NOT_SET;
  3467. }
  3468. inline void StructuredQuery_Filter::clear_has_filter_type() {
  3469. _impl_._oneof_case_[0] = FILTER_TYPE_NOT_SET;
  3470. }
  3471. inline StructuredQuery_Filter::FilterTypeCase StructuredQuery_Filter::filter_type_case() const {
  3472. return StructuredQuery_Filter::FilterTypeCase(_impl_._oneof_case_[0]);
  3473. }
  3474. // -------------------------------------------------------------------
  3475. // StructuredQuery_CompositeFilter
  3476. // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
  3477. inline void StructuredQuery_CompositeFilter::clear_op() {
  3478. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3479. _impl_.op_ = 0;
  3480. }
  3481. inline ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::op() const {
  3482. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.CompositeFilter.op)
  3483. return _internal_op();
  3484. }
  3485. inline void StructuredQuery_CompositeFilter::set_op(::google::firestore::v1::StructuredQuery_CompositeFilter_Operator value) {
  3486. _internal_set_op(value);
  3487. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.CompositeFilter.op)
  3488. }
  3489. inline ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::_internal_op() const {
  3490. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3491. return static_cast<::google::firestore::v1::StructuredQuery_CompositeFilter_Operator>(_impl_.op_);
  3492. }
  3493. inline void StructuredQuery_CompositeFilter::_internal_set_op(::google::firestore::v1::StructuredQuery_CompositeFilter_Operator value) {
  3494. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3495. ;
  3496. _impl_.op_ = value;
  3497. }
  3498. // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
  3499. inline int StructuredQuery_CompositeFilter::_internal_filters_size() const {
  3500. return _internal_filters().size();
  3501. }
  3502. inline int StructuredQuery_CompositeFilter::filters_size() const {
  3503. return _internal_filters_size();
  3504. }
  3505. inline void StructuredQuery_CompositeFilter::clear_filters() {
  3506. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3507. _impl_.filters_.Clear();
  3508. }
  3509. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery_CompositeFilter::mutable_filters(int index)
  3510. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3511. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  3512. return _internal_mutable_filters()->Mutable(index);
  3513. }
  3514. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Filter>* StructuredQuery_CompositeFilter::mutable_filters()
  3515. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3516. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  3517. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3518. return _internal_mutable_filters();
  3519. }
  3520. inline const ::google::firestore::v1::StructuredQuery_Filter& StructuredQuery_CompositeFilter::filters(int index) const
  3521. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3522. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  3523. return _internal_filters().Get(index);
  3524. }
  3525. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery_CompositeFilter::add_filters() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3526. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3527. ::google::firestore::v1::StructuredQuery_Filter* _add = _internal_mutable_filters()->Add();
  3528. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  3529. return _add;
  3530. }
  3531. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Filter>& StructuredQuery_CompositeFilter::filters() const
  3532. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3533. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  3534. return _internal_filters();
  3535. }
  3536. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Filter>&
  3537. StructuredQuery_CompositeFilter::_internal_filters() const {
  3538. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3539. return _impl_.filters_;
  3540. }
  3541. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Filter>*
  3542. StructuredQuery_CompositeFilter::_internal_mutable_filters() {
  3543. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3544. return &_impl_.filters_;
  3545. }
  3546. // -------------------------------------------------------------------
  3547. // StructuredQuery_FieldFilter
  3548. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3549. inline bool StructuredQuery_FieldFilter::has_field() const {
  3550. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  3551. PROTOBUF_ASSUME(!value || _impl_.field_ != nullptr);
  3552. return value;
  3553. }
  3554. inline void StructuredQuery_FieldFilter::clear_field() {
  3555. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3556. if (_impl_.field_ != nullptr) _impl_.field_->Clear();
  3557. _impl_._has_bits_[0] &= ~0x00000001u;
  3558. }
  3559. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_FieldFilter::_internal_field() const {
  3560. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3561. const ::google::firestore::v1::StructuredQuery_FieldReference* p = _impl_.field_;
  3562. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::StructuredQuery_FieldReference&>(::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_);
  3563. }
  3564. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_FieldFilter::field() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3565. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.FieldFilter.field)
  3566. return _internal_field();
  3567. }
  3568. inline void StructuredQuery_FieldFilter::unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  3569. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3570. if (GetArena() == nullptr) {
  3571. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.field_);
  3572. }
  3573. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value);
  3574. if (value != nullptr) {
  3575. _impl_._has_bits_[0] |= 0x00000001u;
  3576. } else {
  3577. _impl_._has_bits_[0] &= ~0x00000001u;
  3578. }
  3579. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.FieldFilter.field)
  3580. }
  3581. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_FieldFilter::release_field() {
  3582. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3583. _impl_._has_bits_[0] &= ~0x00000001u;
  3584. ::google::firestore::v1::StructuredQuery_FieldReference* released = _impl_.field_;
  3585. _impl_.field_ = nullptr;
  3586. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  3587. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  3588. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  3589. if (GetArena() == nullptr) {
  3590. delete old;
  3591. }
  3592. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  3593. if (GetArena() != nullptr) {
  3594. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  3595. }
  3596. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  3597. return released;
  3598. }
  3599. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_FieldFilter::unsafe_arena_release_field() {
  3600. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3601. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.FieldFilter.field)
  3602. _impl_._has_bits_[0] &= ~0x00000001u;
  3603. ::google::firestore::v1::StructuredQuery_FieldReference* temp = _impl_.field_;
  3604. _impl_.field_ = nullptr;
  3605. return temp;
  3606. }
  3607. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_FieldFilter::_internal_mutable_field() {
  3608. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3609. _impl_._has_bits_[0] |= 0x00000001u;
  3610. if (_impl_.field_ == nullptr) {
  3611. auto* p = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(GetArena());
  3612. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(p);
  3613. }
  3614. return _impl_.field_;
  3615. }
  3616. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_FieldFilter::mutable_field() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3617. ::google::firestore::v1::StructuredQuery_FieldReference* _msg = _internal_mutable_field();
  3618. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.FieldFilter.field)
  3619. return _msg;
  3620. }
  3621. inline void StructuredQuery_FieldFilter::set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  3622. ::google::protobuf::Arena* message_arena = GetArena();
  3623. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3624. if (message_arena == nullptr) {
  3625. delete reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(_impl_.field_);
  3626. }
  3627. if (value != nullptr) {
  3628. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value)->GetArena();
  3629. if (message_arena != submessage_arena) {
  3630. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  3631. }
  3632. _impl_._has_bits_[0] |= 0x00000001u;
  3633. } else {
  3634. _impl_._has_bits_[0] &= ~0x00000001u;
  3635. }
  3636. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value);
  3637. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.FieldFilter.field)
  3638. }
  3639. // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
  3640. inline void StructuredQuery_FieldFilter::clear_op() {
  3641. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3642. _impl_.op_ = 0;
  3643. }
  3644. inline ::google::firestore::v1::StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::op() const {
  3645. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.FieldFilter.op)
  3646. return _internal_op();
  3647. }
  3648. inline void StructuredQuery_FieldFilter::set_op(::google::firestore::v1::StructuredQuery_FieldFilter_Operator value) {
  3649. _internal_set_op(value);
  3650. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.FieldFilter.op)
  3651. }
  3652. inline ::google::firestore::v1::StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::_internal_op() const {
  3653. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3654. return static_cast<::google::firestore::v1::StructuredQuery_FieldFilter_Operator>(_impl_.op_);
  3655. }
  3656. inline void StructuredQuery_FieldFilter::_internal_set_op(::google::firestore::v1::StructuredQuery_FieldFilter_Operator value) {
  3657. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3658. ;
  3659. _impl_.op_ = value;
  3660. }
  3661. // .google.firestore.v1.Value value = 3;
  3662. inline bool StructuredQuery_FieldFilter::has_value() const {
  3663. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  3664. PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr);
  3665. return value;
  3666. }
  3667. inline const ::google::firestore::v1::Value& StructuredQuery_FieldFilter::_internal_value() const {
  3668. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3669. const ::google::firestore::v1::Value* p = _impl_.value_;
  3670. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::Value&>(::google::firestore::v1::_Value_default_instance_);
  3671. }
  3672. inline const ::google::firestore::v1::Value& StructuredQuery_FieldFilter::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3673. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.FieldFilter.value)
  3674. return _internal_value();
  3675. }
  3676. inline void StructuredQuery_FieldFilter::unsafe_arena_set_allocated_value(::google::firestore::v1::Value* value) {
  3677. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3678. if (GetArena() == nullptr) {
  3679. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_);
  3680. }
  3681. _impl_.value_ = reinterpret_cast<::google::firestore::v1::Value*>(value);
  3682. if (value != nullptr) {
  3683. _impl_._has_bits_[0] |= 0x00000002u;
  3684. } else {
  3685. _impl_._has_bits_[0] &= ~0x00000002u;
  3686. }
  3687. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.FieldFilter.value)
  3688. }
  3689. inline ::google::firestore::v1::Value* StructuredQuery_FieldFilter::release_value() {
  3690. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3691. _impl_._has_bits_[0] &= ~0x00000002u;
  3692. ::google::firestore::v1::Value* released = _impl_.value_;
  3693. _impl_.value_ = nullptr;
  3694. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  3695. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  3696. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  3697. if (GetArena() == nullptr) {
  3698. delete old;
  3699. }
  3700. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  3701. if (GetArena() != nullptr) {
  3702. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  3703. }
  3704. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  3705. return released;
  3706. }
  3707. inline ::google::firestore::v1::Value* StructuredQuery_FieldFilter::unsafe_arena_release_value() {
  3708. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3709. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.FieldFilter.value)
  3710. _impl_._has_bits_[0] &= ~0x00000002u;
  3711. ::google::firestore::v1::Value* temp = _impl_.value_;
  3712. _impl_.value_ = nullptr;
  3713. return temp;
  3714. }
  3715. inline ::google::firestore::v1::Value* StructuredQuery_FieldFilter::_internal_mutable_value() {
  3716. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3717. _impl_._has_bits_[0] |= 0x00000002u;
  3718. if (_impl_.value_ == nullptr) {
  3719. auto* p = CreateMaybeMessage<::google::firestore::v1::Value>(GetArena());
  3720. _impl_.value_ = reinterpret_cast<::google::firestore::v1::Value*>(p);
  3721. }
  3722. return _impl_.value_;
  3723. }
  3724. inline ::google::firestore::v1::Value* StructuredQuery_FieldFilter::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3725. ::google::firestore::v1::Value* _msg = _internal_mutable_value();
  3726. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.FieldFilter.value)
  3727. return _msg;
  3728. }
  3729. inline void StructuredQuery_FieldFilter::set_allocated_value(::google::firestore::v1::Value* value) {
  3730. ::google::protobuf::Arena* message_arena = GetArena();
  3731. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3732. if (message_arena == nullptr) {
  3733. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_);
  3734. }
  3735. if (value != nullptr) {
  3736. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  3737. if (message_arena != submessage_arena) {
  3738. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  3739. }
  3740. _impl_._has_bits_[0] |= 0x00000002u;
  3741. } else {
  3742. _impl_._has_bits_[0] &= ~0x00000002u;
  3743. }
  3744. _impl_.value_ = reinterpret_cast<::google::firestore::v1::Value*>(value);
  3745. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.FieldFilter.value)
  3746. }
  3747. // -------------------------------------------------------------------
  3748. // StructuredQuery_UnaryFilter
  3749. // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
  3750. inline void StructuredQuery_UnaryFilter::clear_op() {
  3751. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3752. _impl_.op_ = 0;
  3753. }
  3754. inline ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::op() const {
  3755. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.UnaryFilter.op)
  3756. return _internal_op();
  3757. }
  3758. inline void StructuredQuery_UnaryFilter::set_op(::google::firestore::v1::StructuredQuery_UnaryFilter_Operator value) {
  3759. _internal_set_op(value);
  3760. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.UnaryFilter.op)
  3761. }
  3762. inline ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::_internal_op() const {
  3763. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3764. return static_cast<::google::firestore::v1::StructuredQuery_UnaryFilter_Operator>(_impl_.op_);
  3765. }
  3766. inline void StructuredQuery_UnaryFilter::_internal_set_op(::google::firestore::v1::StructuredQuery_UnaryFilter_Operator value) {
  3767. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3768. ;
  3769. _impl_.op_ = value;
  3770. }
  3771. // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
  3772. inline bool StructuredQuery_UnaryFilter::has_field() const {
  3773. return operand_type_case() == kField;
  3774. }
  3775. inline bool StructuredQuery_UnaryFilter::_internal_has_field() const {
  3776. return operand_type_case() == kField;
  3777. }
  3778. inline void StructuredQuery_UnaryFilter::set_has_field() {
  3779. _impl_._oneof_case_[0] = kField;
  3780. }
  3781. inline void StructuredQuery_UnaryFilter::clear_field() {
  3782. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3783. if (operand_type_case() == kField) {
  3784. if (GetArena() == nullptr) {
  3785. delete _impl_.operand_type_.field_;
  3786. }
  3787. clear_has_operand_type();
  3788. }
  3789. }
  3790. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_UnaryFilter::release_field() {
  3791. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  3792. if (operand_type_case() == kField) {
  3793. clear_has_operand_type();
  3794. auto* temp = _impl_.operand_type_.field_;
  3795. if (GetArena() != nullptr) {
  3796. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  3797. }
  3798. _impl_.operand_type_.field_ = nullptr;
  3799. return temp;
  3800. } else {
  3801. return nullptr;
  3802. }
  3803. }
  3804. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_UnaryFilter::_internal_field() const {
  3805. return operand_type_case() == kField ? *_impl_.operand_type_.field_ : reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference&>(::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_);
  3806. }
  3807. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_UnaryFilter::field() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3808. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  3809. return _internal_field();
  3810. }
  3811. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_UnaryFilter::unsafe_arena_release_field() {
  3812. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  3813. if (operand_type_case() == kField) {
  3814. clear_has_operand_type();
  3815. auto* temp = _impl_.operand_type_.field_;
  3816. _impl_.operand_type_.field_ = nullptr;
  3817. return temp;
  3818. } else {
  3819. return nullptr;
  3820. }
  3821. }
  3822. inline void StructuredQuery_UnaryFilter::unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  3823. // We rely on the oneof clear method to free the earlier contents
  3824. // of this oneof. We can directly use the pointer we're given to
  3825. // set the new value.
  3826. clear_operand_type();
  3827. if (value) {
  3828. set_has_field();
  3829. _impl_.operand_type_.field_ = value;
  3830. }
  3831. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  3832. }
  3833. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_UnaryFilter::_internal_mutable_field() {
  3834. if (operand_type_case() != kField) {
  3835. clear_operand_type();
  3836. set_has_field();
  3837. _impl_.operand_type_.field_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(GetArena());
  3838. }
  3839. return _impl_.operand_type_.field_;
  3840. }
  3841. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_UnaryFilter::mutable_field() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3842. ::google::firestore::v1::StructuredQuery_FieldReference* _msg = _internal_mutable_field();
  3843. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  3844. return _msg;
  3845. }
  3846. inline bool StructuredQuery_UnaryFilter::has_operand_type() const {
  3847. return operand_type_case() != OPERAND_TYPE_NOT_SET;
  3848. }
  3849. inline void StructuredQuery_UnaryFilter::clear_has_operand_type() {
  3850. _impl_._oneof_case_[0] = OPERAND_TYPE_NOT_SET;
  3851. }
  3852. inline StructuredQuery_UnaryFilter::OperandTypeCase StructuredQuery_UnaryFilter::operand_type_case() const {
  3853. return StructuredQuery_UnaryFilter::OperandTypeCase(_impl_._oneof_case_[0]);
  3854. }
  3855. // -------------------------------------------------------------------
  3856. // StructuredQuery_Order
  3857. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  3858. inline bool StructuredQuery_Order::has_field() const {
  3859. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  3860. PROTOBUF_ASSUME(!value || _impl_.field_ != nullptr);
  3861. return value;
  3862. }
  3863. inline void StructuredQuery_Order::clear_field() {
  3864. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3865. if (_impl_.field_ != nullptr) _impl_.field_->Clear();
  3866. _impl_._has_bits_[0] &= ~0x00000001u;
  3867. }
  3868. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_Order::_internal_field() const {
  3869. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3870. const ::google::firestore::v1::StructuredQuery_FieldReference* p = _impl_.field_;
  3871. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::StructuredQuery_FieldReference&>(::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_);
  3872. }
  3873. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_Order::field() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3874. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Order.field)
  3875. return _internal_field();
  3876. }
  3877. inline void StructuredQuery_Order::unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  3878. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3879. if (GetArena() == nullptr) {
  3880. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.field_);
  3881. }
  3882. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value);
  3883. if (value != nullptr) {
  3884. _impl_._has_bits_[0] |= 0x00000001u;
  3885. } else {
  3886. _impl_._has_bits_[0] &= ~0x00000001u;
  3887. }
  3888. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.Order.field)
  3889. }
  3890. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Order::release_field() {
  3891. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3892. _impl_._has_bits_[0] &= ~0x00000001u;
  3893. ::google::firestore::v1::StructuredQuery_FieldReference* released = _impl_.field_;
  3894. _impl_.field_ = nullptr;
  3895. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  3896. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  3897. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  3898. if (GetArena() == nullptr) {
  3899. delete old;
  3900. }
  3901. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  3902. if (GetArena() != nullptr) {
  3903. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  3904. }
  3905. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  3906. return released;
  3907. }
  3908. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Order::unsafe_arena_release_field() {
  3909. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3910. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.Order.field)
  3911. _impl_._has_bits_[0] &= ~0x00000001u;
  3912. ::google::firestore::v1::StructuredQuery_FieldReference* temp = _impl_.field_;
  3913. _impl_.field_ = nullptr;
  3914. return temp;
  3915. }
  3916. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Order::_internal_mutable_field() {
  3917. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3918. _impl_._has_bits_[0] |= 0x00000001u;
  3919. if (_impl_.field_ == nullptr) {
  3920. auto* p = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(GetArena());
  3921. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(p);
  3922. }
  3923. return _impl_.field_;
  3924. }
  3925. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Order::mutable_field() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3926. ::google::firestore::v1::StructuredQuery_FieldReference* _msg = _internal_mutable_field();
  3927. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Order.field)
  3928. return _msg;
  3929. }
  3930. inline void StructuredQuery_Order::set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  3931. ::google::protobuf::Arena* message_arena = GetArena();
  3932. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3933. if (message_arena == nullptr) {
  3934. delete reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(_impl_.field_);
  3935. }
  3936. if (value != nullptr) {
  3937. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value)->GetArena();
  3938. if (message_arena != submessage_arena) {
  3939. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  3940. }
  3941. _impl_._has_bits_[0] |= 0x00000001u;
  3942. } else {
  3943. _impl_._has_bits_[0] &= ~0x00000001u;
  3944. }
  3945. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value);
  3946. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.Order.field)
  3947. }
  3948. // .google.firestore.v1.StructuredQuery.Direction direction = 2;
  3949. inline void StructuredQuery_Order::clear_direction() {
  3950. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3951. _impl_.direction_ = 0;
  3952. }
  3953. inline ::google::firestore::v1::StructuredQuery_Direction StructuredQuery_Order::direction() const {
  3954. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Order.direction)
  3955. return _internal_direction();
  3956. }
  3957. inline void StructuredQuery_Order::set_direction(::google::firestore::v1::StructuredQuery_Direction value) {
  3958. _internal_set_direction(value);
  3959. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.Order.direction)
  3960. }
  3961. inline ::google::firestore::v1::StructuredQuery_Direction StructuredQuery_Order::_internal_direction() const {
  3962. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3963. return static_cast<::google::firestore::v1::StructuredQuery_Direction>(_impl_.direction_);
  3964. }
  3965. inline void StructuredQuery_Order::_internal_set_direction(::google::firestore::v1::StructuredQuery_Direction value) {
  3966. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3967. ;
  3968. _impl_.direction_ = value;
  3969. }
  3970. // -------------------------------------------------------------------
  3971. // StructuredQuery_FieldReference
  3972. // string field_path = 2;
  3973. inline void StructuredQuery_FieldReference::clear_field_path() {
  3974. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3975. _impl_.field_path_.ClearToEmpty();
  3976. }
  3977. inline const std::string& StructuredQuery_FieldReference::field_path() const
  3978. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3979. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  3980. return _internal_field_path();
  3981. }
  3982. template <typename Arg_, typename... Args_>
  3983. inline PROTOBUF_ALWAYS_INLINE void StructuredQuery_FieldReference::set_field_path(Arg_&& arg,
  3984. Args_... args) {
  3985. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3986. ;
  3987. _impl_.field_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  3988. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  3989. }
  3990. inline std::string* StructuredQuery_FieldReference::mutable_field_path() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3991. std::string* _s = _internal_mutable_field_path();
  3992. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  3993. return _s;
  3994. }
  3995. inline const std::string& StructuredQuery_FieldReference::_internal_field_path() const {
  3996. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3997. return _impl_.field_path_.Get();
  3998. }
  3999. inline void StructuredQuery_FieldReference::_internal_set_field_path(const std::string& value) {
  4000. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4001. ;
  4002. _impl_.field_path_.Set(value, GetArena());
  4003. }
  4004. inline std::string* StructuredQuery_FieldReference::_internal_mutable_field_path() {
  4005. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4006. ;
  4007. return _impl_.field_path_.Mutable( GetArena());
  4008. }
  4009. inline std::string* StructuredQuery_FieldReference::release_field_path() {
  4010. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4011. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  4012. return _impl_.field_path_.Release();
  4013. }
  4014. inline void StructuredQuery_FieldReference::set_allocated_field_path(std::string* value) {
  4015. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4016. _impl_.field_path_.SetAllocated(value, GetArena());
  4017. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4018. if (_impl_.field_path_.IsDefault()) {
  4019. _impl_.field_path_.Set("", GetArena());
  4020. }
  4021. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4022. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  4023. }
  4024. // -------------------------------------------------------------------
  4025. // StructuredQuery_Projection
  4026. // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
  4027. inline int StructuredQuery_Projection::_internal_fields_size() const {
  4028. return _internal_fields().size();
  4029. }
  4030. inline int StructuredQuery_Projection::fields_size() const {
  4031. return _internal_fields_size();
  4032. }
  4033. inline void StructuredQuery_Projection::clear_fields() {
  4034. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4035. _impl_.fields_.Clear();
  4036. }
  4037. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Projection::mutable_fields(int index)
  4038. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4039. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Projection.fields)
  4040. return _internal_mutable_fields()->Mutable(index);
  4041. }
  4042. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_FieldReference>* StructuredQuery_Projection::mutable_fields()
  4043. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4044. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredQuery.Projection.fields)
  4045. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4046. return _internal_mutable_fields();
  4047. }
  4048. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_Projection::fields(int index) const
  4049. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4050. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Projection.fields)
  4051. return _internal_fields().Get(index);
  4052. }
  4053. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Projection::add_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4054. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4055. ::google::firestore::v1::StructuredQuery_FieldReference* _add = _internal_mutable_fields()->Add();
  4056. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredQuery.Projection.fields)
  4057. return _add;
  4058. }
  4059. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_FieldReference>& StructuredQuery_Projection::fields() const
  4060. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4061. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredQuery.Projection.fields)
  4062. return _internal_fields();
  4063. }
  4064. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_FieldReference>&
  4065. StructuredQuery_Projection::_internal_fields() const {
  4066. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4067. return _impl_.fields_;
  4068. }
  4069. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_FieldReference>*
  4070. StructuredQuery_Projection::_internal_mutable_fields() {
  4071. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4072. return &_impl_.fields_;
  4073. }
  4074. // -------------------------------------------------------------------
  4075. // StructuredQuery
  4076. // .google.firestore.v1.StructuredQuery.Projection select = 1;
  4077. inline bool StructuredQuery::has_select() const {
  4078. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  4079. PROTOBUF_ASSUME(!value || _impl_.select_ != nullptr);
  4080. return value;
  4081. }
  4082. inline void StructuredQuery::clear_select() {
  4083. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4084. if (_impl_.select_ != nullptr) _impl_.select_->Clear();
  4085. _impl_._has_bits_[0] &= ~0x00000001u;
  4086. }
  4087. inline const ::google::firestore::v1::StructuredQuery_Projection& StructuredQuery::_internal_select() const {
  4088. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4089. const ::google::firestore::v1::StructuredQuery_Projection* p = _impl_.select_;
  4090. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::StructuredQuery_Projection&>(::google::firestore::v1::_StructuredQuery_Projection_default_instance_);
  4091. }
  4092. inline const ::google::firestore::v1::StructuredQuery_Projection& StructuredQuery::select() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4093. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.select)
  4094. return _internal_select();
  4095. }
  4096. inline void StructuredQuery::unsafe_arena_set_allocated_select(::google::firestore::v1::StructuredQuery_Projection* value) {
  4097. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4098. if (GetArena() == nullptr) {
  4099. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.select_);
  4100. }
  4101. _impl_.select_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_Projection*>(value);
  4102. if (value != nullptr) {
  4103. _impl_._has_bits_[0] |= 0x00000001u;
  4104. } else {
  4105. _impl_._has_bits_[0] &= ~0x00000001u;
  4106. }
  4107. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.select)
  4108. }
  4109. inline ::google::firestore::v1::StructuredQuery_Projection* StructuredQuery::release_select() {
  4110. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4111. _impl_._has_bits_[0] &= ~0x00000001u;
  4112. ::google::firestore::v1::StructuredQuery_Projection* released = _impl_.select_;
  4113. _impl_.select_ = nullptr;
  4114. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4115. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  4116. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4117. if (GetArena() == nullptr) {
  4118. delete old;
  4119. }
  4120. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4121. if (GetArena() != nullptr) {
  4122. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4123. }
  4124. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4125. return released;
  4126. }
  4127. inline ::google::firestore::v1::StructuredQuery_Projection* StructuredQuery::unsafe_arena_release_select() {
  4128. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4129. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.select)
  4130. _impl_._has_bits_[0] &= ~0x00000001u;
  4131. ::google::firestore::v1::StructuredQuery_Projection* temp = _impl_.select_;
  4132. _impl_.select_ = nullptr;
  4133. return temp;
  4134. }
  4135. inline ::google::firestore::v1::StructuredQuery_Projection* StructuredQuery::_internal_mutable_select() {
  4136. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4137. _impl_._has_bits_[0] |= 0x00000001u;
  4138. if (_impl_.select_ == nullptr) {
  4139. auto* p = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_Projection>(GetArena());
  4140. _impl_.select_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_Projection*>(p);
  4141. }
  4142. return _impl_.select_;
  4143. }
  4144. inline ::google::firestore::v1::StructuredQuery_Projection* StructuredQuery::mutable_select() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4145. ::google::firestore::v1::StructuredQuery_Projection* _msg = _internal_mutable_select();
  4146. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.select)
  4147. return _msg;
  4148. }
  4149. inline void StructuredQuery::set_allocated_select(::google::firestore::v1::StructuredQuery_Projection* value) {
  4150. ::google::protobuf::Arena* message_arena = GetArena();
  4151. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4152. if (message_arena == nullptr) {
  4153. delete reinterpret_cast<::google::firestore::v1::StructuredQuery_Projection*>(_impl_.select_);
  4154. }
  4155. if (value != nullptr) {
  4156. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::firestore::v1::StructuredQuery_Projection*>(value)->GetArena();
  4157. if (message_arena != submessage_arena) {
  4158. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  4159. }
  4160. _impl_._has_bits_[0] |= 0x00000001u;
  4161. } else {
  4162. _impl_._has_bits_[0] &= ~0x00000001u;
  4163. }
  4164. _impl_.select_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_Projection*>(value);
  4165. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.select)
  4166. }
  4167. // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
  4168. inline int StructuredQuery::_internal_from_size() const {
  4169. return _internal_from().size();
  4170. }
  4171. inline int StructuredQuery::from_size() const {
  4172. return _internal_from_size();
  4173. }
  4174. inline void StructuredQuery::clear_from() {
  4175. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4176. _impl_.from_.Clear();
  4177. }
  4178. inline ::google::firestore::v1::StructuredQuery_CollectionSelector* StructuredQuery::mutable_from(int index)
  4179. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4180. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.from)
  4181. return _internal_mutable_from()->Mutable(index);
  4182. }
  4183. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_CollectionSelector>* StructuredQuery::mutable_from()
  4184. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4185. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredQuery.from)
  4186. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4187. return _internal_mutable_from();
  4188. }
  4189. inline const ::google::firestore::v1::StructuredQuery_CollectionSelector& StructuredQuery::from(int index) const
  4190. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4191. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.from)
  4192. return _internal_from().Get(index);
  4193. }
  4194. inline ::google::firestore::v1::StructuredQuery_CollectionSelector* StructuredQuery::add_from() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4195. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4196. ::google::firestore::v1::StructuredQuery_CollectionSelector* _add = _internal_mutable_from()->Add();
  4197. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredQuery.from)
  4198. return _add;
  4199. }
  4200. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_CollectionSelector>& StructuredQuery::from() const
  4201. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4202. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredQuery.from)
  4203. return _internal_from();
  4204. }
  4205. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_CollectionSelector>&
  4206. StructuredQuery::_internal_from() const {
  4207. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4208. return _impl_.from_;
  4209. }
  4210. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_CollectionSelector>*
  4211. StructuredQuery::_internal_mutable_from() {
  4212. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4213. return &_impl_.from_;
  4214. }
  4215. // .google.firestore.v1.StructuredQuery.Filter where = 3;
  4216. inline bool StructuredQuery::has_where() const {
  4217. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  4218. PROTOBUF_ASSUME(!value || _impl_.where_ != nullptr);
  4219. return value;
  4220. }
  4221. inline void StructuredQuery::clear_where() {
  4222. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4223. if (_impl_.where_ != nullptr) _impl_.where_->Clear();
  4224. _impl_._has_bits_[0] &= ~0x00000002u;
  4225. }
  4226. inline const ::google::firestore::v1::StructuredQuery_Filter& StructuredQuery::_internal_where() const {
  4227. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4228. const ::google::firestore::v1::StructuredQuery_Filter* p = _impl_.where_;
  4229. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::StructuredQuery_Filter&>(::google::firestore::v1::_StructuredQuery_Filter_default_instance_);
  4230. }
  4231. inline const ::google::firestore::v1::StructuredQuery_Filter& StructuredQuery::where() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4232. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.where)
  4233. return _internal_where();
  4234. }
  4235. inline void StructuredQuery::unsafe_arena_set_allocated_where(::google::firestore::v1::StructuredQuery_Filter* value) {
  4236. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4237. if (GetArena() == nullptr) {
  4238. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.where_);
  4239. }
  4240. _impl_.where_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_Filter*>(value);
  4241. if (value != nullptr) {
  4242. _impl_._has_bits_[0] |= 0x00000002u;
  4243. } else {
  4244. _impl_._has_bits_[0] &= ~0x00000002u;
  4245. }
  4246. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.where)
  4247. }
  4248. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery::release_where() {
  4249. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4250. _impl_._has_bits_[0] &= ~0x00000002u;
  4251. ::google::firestore::v1::StructuredQuery_Filter* released = _impl_.where_;
  4252. _impl_.where_ = nullptr;
  4253. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4254. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  4255. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4256. if (GetArena() == nullptr) {
  4257. delete old;
  4258. }
  4259. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4260. if (GetArena() != nullptr) {
  4261. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4262. }
  4263. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4264. return released;
  4265. }
  4266. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery::unsafe_arena_release_where() {
  4267. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4268. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.where)
  4269. _impl_._has_bits_[0] &= ~0x00000002u;
  4270. ::google::firestore::v1::StructuredQuery_Filter* temp = _impl_.where_;
  4271. _impl_.where_ = nullptr;
  4272. return temp;
  4273. }
  4274. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery::_internal_mutable_where() {
  4275. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4276. _impl_._has_bits_[0] |= 0x00000002u;
  4277. if (_impl_.where_ == nullptr) {
  4278. auto* p = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_Filter>(GetArena());
  4279. _impl_.where_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_Filter*>(p);
  4280. }
  4281. return _impl_.where_;
  4282. }
  4283. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery::mutable_where() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4284. ::google::firestore::v1::StructuredQuery_Filter* _msg = _internal_mutable_where();
  4285. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.where)
  4286. return _msg;
  4287. }
  4288. inline void StructuredQuery::set_allocated_where(::google::firestore::v1::StructuredQuery_Filter* value) {
  4289. ::google::protobuf::Arena* message_arena = GetArena();
  4290. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4291. if (message_arena == nullptr) {
  4292. delete reinterpret_cast<::google::firestore::v1::StructuredQuery_Filter*>(_impl_.where_);
  4293. }
  4294. if (value != nullptr) {
  4295. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::firestore::v1::StructuredQuery_Filter*>(value)->GetArena();
  4296. if (message_arena != submessage_arena) {
  4297. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  4298. }
  4299. _impl_._has_bits_[0] |= 0x00000002u;
  4300. } else {
  4301. _impl_._has_bits_[0] &= ~0x00000002u;
  4302. }
  4303. _impl_.where_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_Filter*>(value);
  4304. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.where)
  4305. }
  4306. // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
  4307. inline int StructuredQuery::_internal_order_by_size() const {
  4308. return _internal_order_by().size();
  4309. }
  4310. inline int StructuredQuery::order_by_size() const {
  4311. return _internal_order_by_size();
  4312. }
  4313. inline void StructuredQuery::clear_order_by() {
  4314. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4315. _impl_.order_by_.Clear();
  4316. }
  4317. inline ::google::firestore::v1::StructuredQuery_Order* StructuredQuery::mutable_order_by(int index)
  4318. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4319. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.order_by)
  4320. return _internal_mutable_order_by()->Mutable(index);
  4321. }
  4322. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Order>* StructuredQuery::mutable_order_by()
  4323. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4324. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredQuery.order_by)
  4325. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4326. return _internal_mutable_order_by();
  4327. }
  4328. inline const ::google::firestore::v1::StructuredQuery_Order& StructuredQuery::order_by(int index) const
  4329. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4330. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.order_by)
  4331. return _internal_order_by().Get(index);
  4332. }
  4333. inline ::google::firestore::v1::StructuredQuery_Order* StructuredQuery::add_order_by() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4334. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4335. ::google::firestore::v1::StructuredQuery_Order* _add = _internal_mutable_order_by()->Add();
  4336. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredQuery.order_by)
  4337. return _add;
  4338. }
  4339. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Order>& StructuredQuery::order_by() const
  4340. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4341. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredQuery.order_by)
  4342. return _internal_order_by();
  4343. }
  4344. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Order>&
  4345. StructuredQuery::_internal_order_by() const {
  4346. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4347. return _impl_.order_by_;
  4348. }
  4349. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredQuery_Order>*
  4350. StructuredQuery::_internal_mutable_order_by() {
  4351. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4352. return &_impl_.order_by_;
  4353. }
  4354. // .google.firestore.v1.Cursor start_at = 7;
  4355. inline bool StructuredQuery::has_start_at() const {
  4356. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  4357. PROTOBUF_ASSUME(!value || _impl_.start_at_ != nullptr);
  4358. return value;
  4359. }
  4360. inline void StructuredQuery::clear_start_at() {
  4361. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4362. if (_impl_.start_at_ != nullptr) _impl_.start_at_->Clear();
  4363. _impl_._has_bits_[0] &= ~0x00000008u;
  4364. }
  4365. inline const ::google::firestore::v1::Cursor& StructuredQuery::_internal_start_at() const {
  4366. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4367. const ::google::firestore::v1::Cursor* p = _impl_.start_at_;
  4368. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::Cursor&>(::google::firestore::v1::_Cursor_default_instance_);
  4369. }
  4370. inline const ::google::firestore::v1::Cursor& StructuredQuery::start_at() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4371. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.start_at)
  4372. return _internal_start_at();
  4373. }
  4374. inline void StructuredQuery::unsafe_arena_set_allocated_start_at(::google::firestore::v1::Cursor* value) {
  4375. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4376. if (GetArena() == nullptr) {
  4377. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.start_at_);
  4378. }
  4379. _impl_.start_at_ = reinterpret_cast<::google::firestore::v1::Cursor*>(value);
  4380. if (value != nullptr) {
  4381. _impl_._has_bits_[0] |= 0x00000008u;
  4382. } else {
  4383. _impl_._has_bits_[0] &= ~0x00000008u;
  4384. }
  4385. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.start_at)
  4386. }
  4387. inline ::google::firestore::v1::Cursor* StructuredQuery::release_start_at() {
  4388. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4389. _impl_._has_bits_[0] &= ~0x00000008u;
  4390. ::google::firestore::v1::Cursor* released = _impl_.start_at_;
  4391. _impl_.start_at_ = nullptr;
  4392. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4393. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  4394. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4395. if (GetArena() == nullptr) {
  4396. delete old;
  4397. }
  4398. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4399. if (GetArena() != nullptr) {
  4400. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4401. }
  4402. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4403. return released;
  4404. }
  4405. inline ::google::firestore::v1::Cursor* StructuredQuery::unsafe_arena_release_start_at() {
  4406. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4407. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.start_at)
  4408. _impl_._has_bits_[0] &= ~0x00000008u;
  4409. ::google::firestore::v1::Cursor* temp = _impl_.start_at_;
  4410. _impl_.start_at_ = nullptr;
  4411. return temp;
  4412. }
  4413. inline ::google::firestore::v1::Cursor* StructuredQuery::_internal_mutable_start_at() {
  4414. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4415. _impl_._has_bits_[0] |= 0x00000008u;
  4416. if (_impl_.start_at_ == nullptr) {
  4417. auto* p = CreateMaybeMessage<::google::firestore::v1::Cursor>(GetArena());
  4418. _impl_.start_at_ = reinterpret_cast<::google::firestore::v1::Cursor*>(p);
  4419. }
  4420. return _impl_.start_at_;
  4421. }
  4422. inline ::google::firestore::v1::Cursor* StructuredQuery::mutable_start_at() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4423. ::google::firestore::v1::Cursor* _msg = _internal_mutable_start_at();
  4424. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.start_at)
  4425. return _msg;
  4426. }
  4427. inline void StructuredQuery::set_allocated_start_at(::google::firestore::v1::Cursor* value) {
  4428. ::google::protobuf::Arena* message_arena = GetArena();
  4429. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4430. if (message_arena == nullptr) {
  4431. delete reinterpret_cast<::google::firestore::v1::Cursor*>(_impl_.start_at_);
  4432. }
  4433. if (value != nullptr) {
  4434. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::firestore::v1::Cursor*>(value)->GetArena();
  4435. if (message_arena != submessage_arena) {
  4436. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  4437. }
  4438. _impl_._has_bits_[0] |= 0x00000008u;
  4439. } else {
  4440. _impl_._has_bits_[0] &= ~0x00000008u;
  4441. }
  4442. _impl_.start_at_ = reinterpret_cast<::google::firestore::v1::Cursor*>(value);
  4443. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.start_at)
  4444. }
  4445. // .google.firestore.v1.Cursor end_at = 8;
  4446. inline bool StructuredQuery::has_end_at() const {
  4447. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  4448. PROTOBUF_ASSUME(!value || _impl_.end_at_ != nullptr);
  4449. return value;
  4450. }
  4451. inline void StructuredQuery::clear_end_at() {
  4452. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4453. if (_impl_.end_at_ != nullptr) _impl_.end_at_->Clear();
  4454. _impl_._has_bits_[0] &= ~0x00000010u;
  4455. }
  4456. inline const ::google::firestore::v1::Cursor& StructuredQuery::_internal_end_at() const {
  4457. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4458. const ::google::firestore::v1::Cursor* p = _impl_.end_at_;
  4459. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::Cursor&>(::google::firestore::v1::_Cursor_default_instance_);
  4460. }
  4461. inline const ::google::firestore::v1::Cursor& StructuredQuery::end_at() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4462. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.end_at)
  4463. return _internal_end_at();
  4464. }
  4465. inline void StructuredQuery::unsafe_arena_set_allocated_end_at(::google::firestore::v1::Cursor* value) {
  4466. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4467. if (GetArena() == nullptr) {
  4468. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.end_at_);
  4469. }
  4470. _impl_.end_at_ = reinterpret_cast<::google::firestore::v1::Cursor*>(value);
  4471. if (value != nullptr) {
  4472. _impl_._has_bits_[0] |= 0x00000010u;
  4473. } else {
  4474. _impl_._has_bits_[0] &= ~0x00000010u;
  4475. }
  4476. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.end_at)
  4477. }
  4478. inline ::google::firestore::v1::Cursor* StructuredQuery::release_end_at() {
  4479. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4480. _impl_._has_bits_[0] &= ~0x00000010u;
  4481. ::google::firestore::v1::Cursor* released = _impl_.end_at_;
  4482. _impl_.end_at_ = nullptr;
  4483. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4484. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  4485. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4486. if (GetArena() == nullptr) {
  4487. delete old;
  4488. }
  4489. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4490. if (GetArena() != nullptr) {
  4491. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4492. }
  4493. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4494. return released;
  4495. }
  4496. inline ::google::firestore::v1::Cursor* StructuredQuery::unsafe_arena_release_end_at() {
  4497. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4498. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.end_at)
  4499. _impl_._has_bits_[0] &= ~0x00000010u;
  4500. ::google::firestore::v1::Cursor* temp = _impl_.end_at_;
  4501. _impl_.end_at_ = nullptr;
  4502. return temp;
  4503. }
  4504. inline ::google::firestore::v1::Cursor* StructuredQuery::_internal_mutable_end_at() {
  4505. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4506. _impl_._has_bits_[0] |= 0x00000010u;
  4507. if (_impl_.end_at_ == nullptr) {
  4508. auto* p = CreateMaybeMessage<::google::firestore::v1::Cursor>(GetArena());
  4509. _impl_.end_at_ = reinterpret_cast<::google::firestore::v1::Cursor*>(p);
  4510. }
  4511. return _impl_.end_at_;
  4512. }
  4513. inline ::google::firestore::v1::Cursor* StructuredQuery::mutable_end_at() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4514. ::google::firestore::v1::Cursor* _msg = _internal_mutable_end_at();
  4515. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.end_at)
  4516. return _msg;
  4517. }
  4518. inline void StructuredQuery::set_allocated_end_at(::google::firestore::v1::Cursor* value) {
  4519. ::google::protobuf::Arena* message_arena = GetArena();
  4520. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4521. if (message_arena == nullptr) {
  4522. delete reinterpret_cast<::google::firestore::v1::Cursor*>(_impl_.end_at_);
  4523. }
  4524. if (value != nullptr) {
  4525. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::firestore::v1::Cursor*>(value)->GetArena();
  4526. if (message_arena != submessage_arena) {
  4527. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  4528. }
  4529. _impl_._has_bits_[0] |= 0x00000010u;
  4530. } else {
  4531. _impl_._has_bits_[0] &= ~0x00000010u;
  4532. }
  4533. _impl_.end_at_ = reinterpret_cast<::google::firestore::v1::Cursor*>(value);
  4534. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.end_at)
  4535. }
  4536. // int32 offset = 6;
  4537. inline void StructuredQuery::clear_offset() {
  4538. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4539. _impl_.offset_ = 0;
  4540. }
  4541. inline ::int32_t StructuredQuery::offset() const {
  4542. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.offset)
  4543. return _internal_offset();
  4544. }
  4545. inline void StructuredQuery::set_offset(::int32_t value) {
  4546. _internal_set_offset(value);
  4547. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.offset)
  4548. }
  4549. inline ::int32_t StructuredQuery::_internal_offset() const {
  4550. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4551. return _impl_.offset_;
  4552. }
  4553. inline void StructuredQuery::_internal_set_offset(::int32_t value) {
  4554. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4555. ;
  4556. _impl_.offset_ = value;
  4557. }
  4558. // .google.protobuf.Int32Value limit = 5;
  4559. inline bool StructuredQuery::has_limit() const {
  4560. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  4561. PROTOBUF_ASSUME(!value || _impl_.limit_ != nullptr);
  4562. return value;
  4563. }
  4564. inline const ::google::protobuf::Int32Value& StructuredQuery::_internal_limit() const {
  4565. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4566. const ::google::protobuf::Int32Value* p = _impl_.limit_;
  4567. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Int32Value&>(::google::protobuf::_Int32Value_default_instance_);
  4568. }
  4569. inline const ::google::protobuf::Int32Value& StructuredQuery::limit() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4570. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.limit)
  4571. return _internal_limit();
  4572. }
  4573. inline void StructuredQuery::unsafe_arena_set_allocated_limit(::google::protobuf::Int32Value* value) {
  4574. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4575. if (GetArena() == nullptr) {
  4576. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.limit_);
  4577. }
  4578. _impl_.limit_ = reinterpret_cast<::google::protobuf::Int32Value*>(value);
  4579. if (value != nullptr) {
  4580. _impl_._has_bits_[0] |= 0x00000004u;
  4581. } else {
  4582. _impl_._has_bits_[0] &= ~0x00000004u;
  4583. }
  4584. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredQuery.limit)
  4585. }
  4586. inline ::google::protobuf::Int32Value* StructuredQuery::release_limit() {
  4587. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4588. _impl_._has_bits_[0] &= ~0x00000004u;
  4589. ::google::protobuf::Int32Value* released = _impl_.limit_;
  4590. _impl_.limit_ = nullptr;
  4591. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4592. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  4593. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4594. if (GetArena() == nullptr) {
  4595. delete old;
  4596. }
  4597. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4598. if (GetArena() != nullptr) {
  4599. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4600. }
  4601. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4602. return released;
  4603. }
  4604. inline ::google::protobuf::Int32Value* StructuredQuery::unsafe_arena_release_limit() {
  4605. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4606. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.limit)
  4607. _impl_._has_bits_[0] &= ~0x00000004u;
  4608. ::google::protobuf::Int32Value* temp = _impl_.limit_;
  4609. _impl_.limit_ = nullptr;
  4610. return temp;
  4611. }
  4612. inline ::google::protobuf::Int32Value* StructuredQuery::_internal_mutable_limit() {
  4613. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4614. _impl_._has_bits_[0] |= 0x00000004u;
  4615. if (_impl_.limit_ == nullptr) {
  4616. auto* p = CreateMaybeMessage<::google::protobuf::Int32Value>(GetArena());
  4617. _impl_.limit_ = reinterpret_cast<::google::protobuf::Int32Value*>(p);
  4618. }
  4619. return _impl_.limit_;
  4620. }
  4621. inline ::google::protobuf::Int32Value* StructuredQuery::mutable_limit() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4622. ::google::protobuf::Int32Value* _msg = _internal_mutable_limit();
  4623. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.limit)
  4624. return _msg;
  4625. }
  4626. inline void StructuredQuery::set_allocated_limit(::google::protobuf::Int32Value* value) {
  4627. ::google::protobuf::Arena* message_arena = GetArena();
  4628. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4629. if (message_arena == nullptr) {
  4630. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.limit_);
  4631. }
  4632. if (value != nullptr) {
  4633. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  4634. if (message_arena != submessage_arena) {
  4635. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  4636. }
  4637. _impl_._has_bits_[0] |= 0x00000004u;
  4638. } else {
  4639. _impl_._has_bits_[0] &= ~0x00000004u;
  4640. }
  4641. _impl_.limit_ = reinterpret_cast<::google::protobuf::Int32Value*>(value);
  4642. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.limit)
  4643. }
  4644. // -------------------------------------------------------------------
  4645. // StructuredAggregationQuery_Aggregation_Count
  4646. // .google.protobuf.Int64Value up_to = 1;
  4647. inline bool StructuredAggregationQuery_Aggregation_Count::has_up_to() const {
  4648. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  4649. PROTOBUF_ASSUME(!value || _impl_.up_to_ != nullptr);
  4650. return value;
  4651. }
  4652. inline const ::google::protobuf::Int64Value& StructuredAggregationQuery_Aggregation_Count::_internal_up_to() const {
  4653. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4654. const ::google::protobuf::Int64Value* p = _impl_.up_to_;
  4655. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Int64Value&>(::google::protobuf::_Int64Value_default_instance_);
  4656. }
  4657. inline const ::google::protobuf::Int64Value& StructuredAggregationQuery_Aggregation_Count::up_to() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4658. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.up_to)
  4659. return _internal_up_to();
  4660. }
  4661. inline void StructuredAggregationQuery_Aggregation_Count::unsafe_arena_set_allocated_up_to(::google::protobuf::Int64Value* value) {
  4662. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4663. if (GetArena() == nullptr) {
  4664. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.up_to_);
  4665. }
  4666. _impl_.up_to_ = reinterpret_cast<::google::protobuf::Int64Value*>(value);
  4667. if (value != nullptr) {
  4668. _impl_._has_bits_[0] |= 0x00000001u;
  4669. } else {
  4670. _impl_._has_bits_[0] &= ~0x00000001u;
  4671. }
  4672. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.up_to)
  4673. }
  4674. inline ::google::protobuf::Int64Value* StructuredAggregationQuery_Aggregation_Count::release_up_to() {
  4675. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4676. _impl_._has_bits_[0] &= ~0x00000001u;
  4677. ::google::protobuf::Int64Value* released = _impl_.up_to_;
  4678. _impl_.up_to_ = nullptr;
  4679. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4680. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  4681. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4682. if (GetArena() == nullptr) {
  4683. delete old;
  4684. }
  4685. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4686. if (GetArena() != nullptr) {
  4687. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4688. }
  4689. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4690. return released;
  4691. }
  4692. inline ::google::protobuf::Int64Value* StructuredAggregationQuery_Aggregation_Count::unsafe_arena_release_up_to() {
  4693. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4694. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.up_to)
  4695. _impl_._has_bits_[0] &= ~0x00000001u;
  4696. ::google::protobuf::Int64Value* temp = _impl_.up_to_;
  4697. _impl_.up_to_ = nullptr;
  4698. return temp;
  4699. }
  4700. inline ::google::protobuf::Int64Value* StructuredAggregationQuery_Aggregation_Count::_internal_mutable_up_to() {
  4701. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4702. _impl_._has_bits_[0] |= 0x00000001u;
  4703. if (_impl_.up_to_ == nullptr) {
  4704. auto* p = CreateMaybeMessage<::google::protobuf::Int64Value>(GetArena());
  4705. _impl_.up_to_ = reinterpret_cast<::google::protobuf::Int64Value*>(p);
  4706. }
  4707. return _impl_.up_to_;
  4708. }
  4709. inline ::google::protobuf::Int64Value* StructuredAggregationQuery_Aggregation_Count::mutable_up_to() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4710. ::google::protobuf::Int64Value* _msg = _internal_mutable_up_to();
  4711. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.up_to)
  4712. return _msg;
  4713. }
  4714. inline void StructuredAggregationQuery_Aggregation_Count::set_allocated_up_to(::google::protobuf::Int64Value* value) {
  4715. ::google::protobuf::Arena* message_arena = GetArena();
  4716. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4717. if (message_arena == nullptr) {
  4718. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.up_to_);
  4719. }
  4720. if (value != nullptr) {
  4721. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  4722. if (message_arena != submessage_arena) {
  4723. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  4724. }
  4725. _impl_._has_bits_[0] |= 0x00000001u;
  4726. } else {
  4727. _impl_._has_bits_[0] &= ~0x00000001u;
  4728. }
  4729. _impl_.up_to_ = reinterpret_cast<::google::protobuf::Int64Value*>(value);
  4730. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.up_to)
  4731. }
  4732. // -------------------------------------------------------------------
  4733. // StructuredAggregationQuery_Aggregation_Sum
  4734. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  4735. inline bool StructuredAggregationQuery_Aggregation_Sum::has_field() const {
  4736. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  4737. PROTOBUF_ASSUME(!value || _impl_.field_ != nullptr);
  4738. return value;
  4739. }
  4740. inline void StructuredAggregationQuery_Aggregation_Sum::clear_field() {
  4741. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4742. if (_impl_.field_ != nullptr) _impl_.field_->Clear();
  4743. _impl_._has_bits_[0] &= ~0x00000001u;
  4744. }
  4745. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredAggregationQuery_Aggregation_Sum::_internal_field() const {
  4746. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4747. const ::google::firestore::v1::StructuredQuery_FieldReference* p = _impl_.field_;
  4748. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::StructuredQuery_FieldReference&>(::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_);
  4749. }
  4750. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredAggregationQuery_Aggregation_Sum::field() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4751. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.field)
  4752. return _internal_field();
  4753. }
  4754. inline void StructuredAggregationQuery_Aggregation_Sum::unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  4755. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4756. if (GetArena() == nullptr) {
  4757. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.field_);
  4758. }
  4759. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value);
  4760. if (value != nullptr) {
  4761. _impl_._has_bits_[0] |= 0x00000001u;
  4762. } else {
  4763. _impl_._has_bits_[0] &= ~0x00000001u;
  4764. }
  4765. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.field)
  4766. }
  4767. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredAggregationQuery_Aggregation_Sum::release_field() {
  4768. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4769. _impl_._has_bits_[0] &= ~0x00000001u;
  4770. ::google::firestore::v1::StructuredQuery_FieldReference* released = _impl_.field_;
  4771. _impl_.field_ = nullptr;
  4772. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4773. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  4774. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4775. if (GetArena() == nullptr) {
  4776. delete old;
  4777. }
  4778. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4779. if (GetArena() != nullptr) {
  4780. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4781. }
  4782. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4783. return released;
  4784. }
  4785. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredAggregationQuery_Aggregation_Sum::unsafe_arena_release_field() {
  4786. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4787. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.field)
  4788. _impl_._has_bits_[0] &= ~0x00000001u;
  4789. ::google::firestore::v1::StructuredQuery_FieldReference* temp = _impl_.field_;
  4790. _impl_.field_ = nullptr;
  4791. return temp;
  4792. }
  4793. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredAggregationQuery_Aggregation_Sum::_internal_mutable_field() {
  4794. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4795. _impl_._has_bits_[0] |= 0x00000001u;
  4796. if (_impl_.field_ == nullptr) {
  4797. auto* p = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(GetArena());
  4798. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(p);
  4799. }
  4800. return _impl_.field_;
  4801. }
  4802. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredAggregationQuery_Aggregation_Sum::mutable_field() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4803. ::google::firestore::v1::StructuredQuery_FieldReference* _msg = _internal_mutable_field();
  4804. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.field)
  4805. return _msg;
  4806. }
  4807. inline void StructuredAggregationQuery_Aggregation_Sum::set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  4808. ::google::protobuf::Arena* message_arena = GetArena();
  4809. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4810. if (message_arena == nullptr) {
  4811. delete reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(_impl_.field_);
  4812. }
  4813. if (value != nullptr) {
  4814. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value)->GetArena();
  4815. if (message_arena != submessage_arena) {
  4816. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  4817. }
  4818. _impl_._has_bits_[0] |= 0x00000001u;
  4819. } else {
  4820. _impl_._has_bits_[0] &= ~0x00000001u;
  4821. }
  4822. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value);
  4823. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.field)
  4824. }
  4825. // -------------------------------------------------------------------
  4826. // StructuredAggregationQuery_Aggregation_Avg
  4827. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  4828. inline bool StructuredAggregationQuery_Aggregation_Avg::has_field() const {
  4829. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  4830. PROTOBUF_ASSUME(!value || _impl_.field_ != nullptr);
  4831. return value;
  4832. }
  4833. inline void StructuredAggregationQuery_Aggregation_Avg::clear_field() {
  4834. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4835. if (_impl_.field_ != nullptr) _impl_.field_->Clear();
  4836. _impl_._has_bits_[0] &= ~0x00000001u;
  4837. }
  4838. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredAggregationQuery_Aggregation_Avg::_internal_field() const {
  4839. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  4840. const ::google::firestore::v1::StructuredQuery_FieldReference* p = _impl_.field_;
  4841. return p != nullptr ? *p : reinterpret_cast<const ::google::firestore::v1::StructuredQuery_FieldReference&>(::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_);
  4842. }
  4843. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredAggregationQuery_Aggregation_Avg::field() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4844. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.field)
  4845. return _internal_field();
  4846. }
  4847. inline void StructuredAggregationQuery_Aggregation_Avg::unsafe_arena_set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  4848. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4849. if (GetArena() == nullptr) {
  4850. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.field_);
  4851. }
  4852. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value);
  4853. if (value != nullptr) {
  4854. _impl_._has_bits_[0] |= 0x00000001u;
  4855. } else {
  4856. _impl_._has_bits_[0] &= ~0x00000001u;
  4857. }
  4858. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.field)
  4859. }
  4860. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredAggregationQuery_Aggregation_Avg::release_field() {
  4861. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4862. _impl_._has_bits_[0] &= ~0x00000001u;
  4863. ::google::firestore::v1::StructuredQuery_FieldReference* released = _impl_.field_;
  4864. _impl_.field_ = nullptr;
  4865. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4866. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  4867. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4868. if (GetArena() == nullptr) {
  4869. delete old;
  4870. }
  4871. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4872. if (GetArena() != nullptr) {
  4873. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  4874. }
  4875. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4876. return released;
  4877. }
  4878. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredAggregationQuery_Aggregation_Avg::unsafe_arena_release_field() {
  4879. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4880. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.field)
  4881. _impl_._has_bits_[0] &= ~0x00000001u;
  4882. ::google::firestore::v1::StructuredQuery_FieldReference* temp = _impl_.field_;
  4883. _impl_.field_ = nullptr;
  4884. return temp;
  4885. }
  4886. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredAggregationQuery_Aggregation_Avg::_internal_mutable_field() {
  4887. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4888. _impl_._has_bits_[0] |= 0x00000001u;
  4889. if (_impl_.field_ == nullptr) {
  4890. auto* p = CreateMaybeMessage<::google::firestore::v1::StructuredQuery_FieldReference>(GetArena());
  4891. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(p);
  4892. }
  4893. return _impl_.field_;
  4894. }
  4895. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredAggregationQuery_Aggregation_Avg::mutable_field() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4896. ::google::firestore::v1::StructuredQuery_FieldReference* _msg = _internal_mutable_field();
  4897. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.field)
  4898. return _msg;
  4899. }
  4900. inline void StructuredAggregationQuery_Aggregation_Avg::set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* value) {
  4901. ::google::protobuf::Arena* message_arena = GetArena();
  4902. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4903. if (message_arena == nullptr) {
  4904. delete reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(_impl_.field_);
  4905. }
  4906. if (value != nullptr) {
  4907. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value)->GetArena();
  4908. if (message_arena != submessage_arena) {
  4909. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  4910. }
  4911. _impl_._has_bits_[0] |= 0x00000001u;
  4912. } else {
  4913. _impl_._has_bits_[0] &= ~0x00000001u;
  4914. }
  4915. _impl_.field_ = reinterpret_cast<::google::firestore::v1::StructuredQuery_FieldReference*>(value);
  4916. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.field)
  4917. }
  4918. // -------------------------------------------------------------------
  4919. // StructuredAggregationQuery_Aggregation
  4920. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1;
  4921. inline bool StructuredAggregationQuery_Aggregation::has_count() const {
  4922. return operator_case() == kCount;
  4923. }
  4924. inline bool StructuredAggregationQuery_Aggregation::_internal_has_count() const {
  4925. return operator_case() == kCount;
  4926. }
  4927. inline void StructuredAggregationQuery_Aggregation::set_has_count() {
  4928. _impl_._oneof_case_[0] = kCount;
  4929. }
  4930. inline void StructuredAggregationQuery_Aggregation::clear_count() {
  4931. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  4932. if (operator_case() == kCount) {
  4933. if (GetArena() == nullptr) {
  4934. delete _impl_.operator_.count_;
  4935. }
  4936. clear_has_operator();
  4937. }
  4938. }
  4939. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* StructuredAggregationQuery_Aggregation::release_count() {
  4940. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.count)
  4941. if (operator_case() == kCount) {
  4942. clear_has_operator();
  4943. auto* temp = _impl_.operator_.count_;
  4944. if (GetArena() != nullptr) {
  4945. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  4946. }
  4947. _impl_.operator_.count_ = nullptr;
  4948. return temp;
  4949. } else {
  4950. return nullptr;
  4951. }
  4952. }
  4953. inline const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count& StructuredAggregationQuery_Aggregation::_internal_count() const {
  4954. return operator_case() == kCount ? *_impl_.operator_.count_ : reinterpret_cast<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count&>(::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Count_default_instance_);
  4955. }
  4956. inline const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count& StructuredAggregationQuery_Aggregation::count() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4957. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.Aggregation.count)
  4958. return _internal_count();
  4959. }
  4960. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* StructuredAggregationQuery_Aggregation::unsafe_arena_release_count() {
  4961. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.count)
  4962. if (operator_case() == kCount) {
  4963. clear_has_operator();
  4964. auto* temp = _impl_.operator_.count_;
  4965. _impl_.operator_.count_ = nullptr;
  4966. return temp;
  4967. } else {
  4968. return nullptr;
  4969. }
  4970. }
  4971. inline void StructuredAggregationQuery_Aggregation::unsafe_arena_set_allocated_count(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* value) {
  4972. // We rely on the oneof clear method to free the earlier contents
  4973. // of this oneof. We can directly use the pointer we're given to
  4974. // set the new value.
  4975. clear_operator();
  4976. if (value) {
  4977. set_has_count();
  4978. _impl_.operator_.count_ = value;
  4979. }
  4980. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.count)
  4981. }
  4982. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* StructuredAggregationQuery_Aggregation::_internal_mutable_count() {
  4983. if (operator_case() != kCount) {
  4984. clear_operator();
  4985. set_has_count();
  4986. _impl_.operator_.count_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count>(GetArena());
  4987. }
  4988. return _impl_.operator_.count_;
  4989. }
  4990. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* StructuredAggregationQuery_Aggregation::mutable_count() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  4991. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Count* _msg = _internal_mutable_count();
  4992. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.Aggregation.count)
  4993. return _msg;
  4994. }
  4995. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2;
  4996. inline bool StructuredAggregationQuery_Aggregation::has_sum() const {
  4997. return operator_case() == kSum;
  4998. }
  4999. inline bool StructuredAggregationQuery_Aggregation::_internal_has_sum() const {
  5000. return operator_case() == kSum;
  5001. }
  5002. inline void StructuredAggregationQuery_Aggregation::set_has_sum() {
  5003. _impl_._oneof_case_[0] = kSum;
  5004. }
  5005. inline void StructuredAggregationQuery_Aggregation::clear_sum() {
  5006. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5007. if (operator_case() == kSum) {
  5008. if (GetArena() == nullptr) {
  5009. delete _impl_.operator_.sum_;
  5010. }
  5011. clear_has_operator();
  5012. }
  5013. }
  5014. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* StructuredAggregationQuery_Aggregation::release_sum() {
  5015. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.sum)
  5016. if (operator_case() == kSum) {
  5017. clear_has_operator();
  5018. auto* temp = _impl_.operator_.sum_;
  5019. if (GetArena() != nullptr) {
  5020. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5021. }
  5022. _impl_.operator_.sum_ = nullptr;
  5023. return temp;
  5024. } else {
  5025. return nullptr;
  5026. }
  5027. }
  5028. inline const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum& StructuredAggregationQuery_Aggregation::_internal_sum() const {
  5029. return operator_case() == kSum ? *_impl_.operator_.sum_ : reinterpret_cast<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum&>(::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Sum_default_instance_);
  5030. }
  5031. inline const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum& StructuredAggregationQuery_Aggregation::sum() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5032. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.Aggregation.sum)
  5033. return _internal_sum();
  5034. }
  5035. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* StructuredAggregationQuery_Aggregation::unsafe_arena_release_sum() {
  5036. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.sum)
  5037. if (operator_case() == kSum) {
  5038. clear_has_operator();
  5039. auto* temp = _impl_.operator_.sum_;
  5040. _impl_.operator_.sum_ = nullptr;
  5041. return temp;
  5042. } else {
  5043. return nullptr;
  5044. }
  5045. }
  5046. inline void StructuredAggregationQuery_Aggregation::unsafe_arena_set_allocated_sum(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* value) {
  5047. // We rely on the oneof clear method to free the earlier contents
  5048. // of this oneof. We can directly use the pointer we're given to
  5049. // set the new value.
  5050. clear_operator();
  5051. if (value) {
  5052. set_has_sum();
  5053. _impl_.operator_.sum_ = value;
  5054. }
  5055. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.sum)
  5056. }
  5057. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* StructuredAggregationQuery_Aggregation::_internal_mutable_sum() {
  5058. if (operator_case() != kSum) {
  5059. clear_operator();
  5060. set_has_sum();
  5061. _impl_.operator_.sum_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum>(GetArena());
  5062. }
  5063. return _impl_.operator_.sum_;
  5064. }
  5065. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* StructuredAggregationQuery_Aggregation::mutable_sum() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5066. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Sum* _msg = _internal_mutable_sum();
  5067. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.Aggregation.sum)
  5068. return _msg;
  5069. }
  5070. // .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3;
  5071. inline bool StructuredAggregationQuery_Aggregation::has_avg() const {
  5072. return operator_case() == kAvg;
  5073. }
  5074. inline bool StructuredAggregationQuery_Aggregation::_internal_has_avg() const {
  5075. return operator_case() == kAvg;
  5076. }
  5077. inline void StructuredAggregationQuery_Aggregation::set_has_avg() {
  5078. _impl_._oneof_case_[0] = kAvg;
  5079. }
  5080. inline void StructuredAggregationQuery_Aggregation::clear_avg() {
  5081. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5082. if (operator_case() == kAvg) {
  5083. if (GetArena() == nullptr) {
  5084. delete _impl_.operator_.avg_;
  5085. }
  5086. clear_has_operator();
  5087. }
  5088. }
  5089. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* StructuredAggregationQuery_Aggregation::release_avg() {
  5090. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.avg)
  5091. if (operator_case() == kAvg) {
  5092. clear_has_operator();
  5093. auto* temp = _impl_.operator_.avg_;
  5094. if (GetArena() != nullptr) {
  5095. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5096. }
  5097. _impl_.operator_.avg_ = nullptr;
  5098. return temp;
  5099. } else {
  5100. return nullptr;
  5101. }
  5102. }
  5103. inline const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg& StructuredAggregationQuery_Aggregation::_internal_avg() const {
  5104. return operator_case() == kAvg ? *_impl_.operator_.avg_ : reinterpret_cast<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg&>(::google::firestore::v1::_StructuredAggregationQuery_Aggregation_Avg_default_instance_);
  5105. }
  5106. inline const ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg& StructuredAggregationQuery_Aggregation::avg() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5107. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.Aggregation.avg)
  5108. return _internal_avg();
  5109. }
  5110. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* StructuredAggregationQuery_Aggregation::unsafe_arena_release_avg() {
  5111. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.avg)
  5112. if (operator_case() == kAvg) {
  5113. clear_has_operator();
  5114. auto* temp = _impl_.operator_.avg_;
  5115. _impl_.operator_.avg_ = nullptr;
  5116. return temp;
  5117. } else {
  5118. return nullptr;
  5119. }
  5120. }
  5121. inline void StructuredAggregationQuery_Aggregation::unsafe_arena_set_allocated_avg(::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* value) {
  5122. // We rely on the oneof clear method to free the earlier contents
  5123. // of this oneof. We can directly use the pointer we're given to
  5124. // set the new value.
  5125. clear_operator();
  5126. if (value) {
  5127. set_has_avg();
  5128. _impl_.operator_.avg_ = value;
  5129. }
  5130. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.avg)
  5131. }
  5132. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* StructuredAggregationQuery_Aggregation::_internal_mutable_avg() {
  5133. if (operator_case() != kAvg) {
  5134. clear_operator();
  5135. set_has_avg();
  5136. _impl_.operator_.avg_ = CreateMaybeMessage<::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg>(GetArena());
  5137. }
  5138. return _impl_.operator_.avg_;
  5139. }
  5140. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* StructuredAggregationQuery_Aggregation::mutable_avg() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5141. ::google::firestore::v1::StructuredAggregationQuery_Aggregation_Avg* _msg = _internal_mutable_avg();
  5142. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.Aggregation.avg)
  5143. return _msg;
  5144. }
  5145. // string alias = 7;
  5146. inline void StructuredAggregationQuery_Aggregation::clear_alias() {
  5147. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5148. _impl_.alias_.ClearToEmpty();
  5149. }
  5150. inline const std::string& StructuredAggregationQuery_Aggregation::alias() const
  5151. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5152. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.Aggregation.alias)
  5153. return _internal_alias();
  5154. }
  5155. template <typename Arg_, typename... Args_>
  5156. inline PROTOBUF_ALWAYS_INLINE void StructuredAggregationQuery_Aggregation::set_alias(Arg_&& arg,
  5157. Args_... args) {
  5158. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5159. ;
  5160. _impl_.alias_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  5161. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredAggregationQuery.Aggregation.alias)
  5162. }
  5163. inline std::string* StructuredAggregationQuery_Aggregation::mutable_alias() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5164. std::string* _s = _internal_mutable_alias();
  5165. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.Aggregation.alias)
  5166. return _s;
  5167. }
  5168. inline const std::string& StructuredAggregationQuery_Aggregation::_internal_alias() const {
  5169. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  5170. return _impl_.alias_.Get();
  5171. }
  5172. inline void StructuredAggregationQuery_Aggregation::_internal_set_alias(const std::string& value) {
  5173. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5174. ;
  5175. _impl_.alias_.Set(value, GetArena());
  5176. }
  5177. inline std::string* StructuredAggregationQuery_Aggregation::_internal_mutable_alias() {
  5178. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5179. ;
  5180. return _impl_.alias_.Mutable( GetArena());
  5181. }
  5182. inline std::string* StructuredAggregationQuery_Aggregation::release_alias() {
  5183. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5184. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredAggregationQuery.Aggregation.alias)
  5185. return _impl_.alias_.Release();
  5186. }
  5187. inline void StructuredAggregationQuery_Aggregation::set_allocated_alias(std::string* value) {
  5188. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5189. _impl_.alias_.SetAllocated(value, GetArena());
  5190. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5191. if (_impl_.alias_.IsDefault()) {
  5192. _impl_.alias_.Set("", GetArena());
  5193. }
  5194. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5195. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredAggregationQuery.Aggregation.alias)
  5196. }
  5197. inline bool StructuredAggregationQuery_Aggregation::has_operator() const {
  5198. return operator_case() != OPERATOR_NOT_SET;
  5199. }
  5200. inline void StructuredAggregationQuery_Aggregation::clear_has_operator() {
  5201. _impl_._oneof_case_[0] = OPERATOR_NOT_SET;
  5202. }
  5203. inline StructuredAggregationQuery_Aggregation::OperatorCase StructuredAggregationQuery_Aggregation::operator_case() const {
  5204. return StructuredAggregationQuery_Aggregation::OperatorCase(_impl_._oneof_case_[0]);
  5205. }
  5206. // -------------------------------------------------------------------
  5207. // StructuredAggregationQuery
  5208. // .google.firestore.v1.StructuredQuery structured_query = 1;
  5209. inline bool StructuredAggregationQuery::has_structured_query() const {
  5210. return query_type_case() == kStructuredQuery;
  5211. }
  5212. inline bool StructuredAggregationQuery::_internal_has_structured_query() const {
  5213. return query_type_case() == kStructuredQuery;
  5214. }
  5215. inline void StructuredAggregationQuery::set_has_structured_query() {
  5216. _impl_._oneof_case_[0] = kStructuredQuery;
  5217. }
  5218. inline void StructuredAggregationQuery::clear_structured_query() {
  5219. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5220. if (query_type_case() == kStructuredQuery) {
  5221. if (GetArena() == nullptr) {
  5222. delete _impl_.query_type_.structured_query_;
  5223. }
  5224. clear_has_query_type();
  5225. }
  5226. }
  5227. inline ::google::firestore::v1::StructuredQuery* StructuredAggregationQuery::release_structured_query() {
  5228. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredAggregationQuery.structured_query)
  5229. if (query_type_case() == kStructuredQuery) {
  5230. clear_has_query_type();
  5231. auto* temp = _impl_.query_type_.structured_query_;
  5232. if (GetArena() != nullptr) {
  5233. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5234. }
  5235. _impl_.query_type_.structured_query_ = nullptr;
  5236. return temp;
  5237. } else {
  5238. return nullptr;
  5239. }
  5240. }
  5241. inline const ::google::firestore::v1::StructuredQuery& StructuredAggregationQuery::_internal_structured_query() const {
  5242. return query_type_case() == kStructuredQuery ? *_impl_.query_type_.structured_query_ : reinterpret_cast<::google::firestore::v1::StructuredQuery&>(::google::firestore::v1::_StructuredQuery_default_instance_);
  5243. }
  5244. inline const ::google::firestore::v1::StructuredQuery& StructuredAggregationQuery::structured_query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5245. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.structured_query)
  5246. return _internal_structured_query();
  5247. }
  5248. inline ::google::firestore::v1::StructuredQuery* StructuredAggregationQuery::unsafe_arena_release_structured_query() {
  5249. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.StructuredAggregationQuery.structured_query)
  5250. if (query_type_case() == kStructuredQuery) {
  5251. clear_has_query_type();
  5252. auto* temp = _impl_.query_type_.structured_query_;
  5253. _impl_.query_type_.structured_query_ = nullptr;
  5254. return temp;
  5255. } else {
  5256. return nullptr;
  5257. }
  5258. }
  5259. inline void StructuredAggregationQuery::unsafe_arena_set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value) {
  5260. // We rely on the oneof clear method to free the earlier contents
  5261. // of this oneof. We can directly use the pointer we're given to
  5262. // set the new value.
  5263. clear_query_type();
  5264. if (value) {
  5265. set_has_structured_query();
  5266. _impl_.query_type_.structured_query_ = value;
  5267. }
  5268. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.StructuredAggregationQuery.structured_query)
  5269. }
  5270. inline ::google::firestore::v1::StructuredQuery* StructuredAggregationQuery::_internal_mutable_structured_query() {
  5271. if (query_type_case() != kStructuredQuery) {
  5272. clear_query_type();
  5273. set_has_structured_query();
  5274. _impl_.query_type_.structured_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery>(GetArena());
  5275. }
  5276. return _impl_.query_type_.structured_query_;
  5277. }
  5278. inline ::google::firestore::v1::StructuredQuery* StructuredAggregationQuery::mutable_structured_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5279. ::google::firestore::v1::StructuredQuery* _msg = _internal_mutable_structured_query();
  5280. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.structured_query)
  5281. return _msg;
  5282. }
  5283. // repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3;
  5284. inline int StructuredAggregationQuery::_internal_aggregations_size() const {
  5285. return _internal_aggregations().size();
  5286. }
  5287. inline int StructuredAggregationQuery::aggregations_size() const {
  5288. return _internal_aggregations_size();
  5289. }
  5290. inline void StructuredAggregationQuery::clear_aggregations() {
  5291. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5292. _impl_.aggregations_.Clear();
  5293. }
  5294. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation* StructuredAggregationQuery::mutable_aggregations(int index)
  5295. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5296. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredAggregationQuery.aggregations)
  5297. return _internal_mutable_aggregations()->Mutable(index);
  5298. }
  5299. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredAggregationQuery_Aggregation>* StructuredAggregationQuery::mutable_aggregations()
  5300. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5301. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredAggregationQuery.aggregations)
  5302. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5303. return _internal_mutable_aggregations();
  5304. }
  5305. inline const ::google::firestore::v1::StructuredAggregationQuery_Aggregation& StructuredAggregationQuery::aggregations(int index) const
  5306. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5307. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredAggregationQuery.aggregations)
  5308. return _internal_aggregations().Get(index);
  5309. }
  5310. inline ::google::firestore::v1::StructuredAggregationQuery_Aggregation* StructuredAggregationQuery::add_aggregations() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5311. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5312. ::google::firestore::v1::StructuredAggregationQuery_Aggregation* _add = _internal_mutable_aggregations()->Add();
  5313. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredAggregationQuery.aggregations)
  5314. return _add;
  5315. }
  5316. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredAggregationQuery_Aggregation>& StructuredAggregationQuery::aggregations() const
  5317. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5318. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredAggregationQuery.aggregations)
  5319. return _internal_aggregations();
  5320. }
  5321. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredAggregationQuery_Aggregation>&
  5322. StructuredAggregationQuery::_internal_aggregations() const {
  5323. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  5324. return _impl_.aggregations_;
  5325. }
  5326. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::StructuredAggregationQuery_Aggregation>*
  5327. StructuredAggregationQuery::_internal_mutable_aggregations() {
  5328. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  5329. return &_impl_.aggregations_;
  5330. }
  5331. inline bool StructuredAggregationQuery::has_query_type() const {
  5332. return query_type_case() != QUERY_TYPE_NOT_SET;
  5333. }
  5334. inline void StructuredAggregationQuery::clear_has_query_type() {
  5335. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  5336. }
  5337. inline StructuredAggregationQuery::QueryTypeCase StructuredAggregationQuery::query_type_case() const {
  5338. return StructuredAggregationQuery::QueryTypeCase(_impl_._oneof_case_[0]);
  5339. }
  5340. // -------------------------------------------------------------------
  5341. // Cursor
  5342. // repeated .google.firestore.v1.Value values = 1;
  5343. inline int Cursor::_internal_values_size() const {
  5344. return _internal_values().size();
  5345. }
  5346. inline int Cursor::values_size() const {
  5347. return _internal_values_size();
  5348. }
  5349. inline ::google::firestore::v1::Value* Cursor::mutable_values(int index)
  5350. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5351. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Cursor.values)
  5352. return _internal_mutable_values()->Mutable(index);
  5353. }
  5354. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* Cursor::mutable_values()
  5355. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5356. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Cursor.values)
  5357. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5358. return _internal_mutable_values();
  5359. }
  5360. inline const ::google::firestore::v1::Value& Cursor::values(int index) const
  5361. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5362. // @@protoc_insertion_point(field_get:google.firestore.v1.Cursor.values)
  5363. return _internal_values().Get(index);
  5364. }
  5365. inline ::google::firestore::v1::Value* Cursor::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5366. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5367. ::google::firestore::v1::Value* _add = _internal_mutable_values()->Add();
  5368. // @@protoc_insertion_point(field_add:google.firestore.v1.Cursor.values)
  5369. return _add;
  5370. }
  5371. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& Cursor::values() const
  5372. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  5373. // @@protoc_insertion_point(field_list:google.firestore.v1.Cursor.values)
  5374. return _internal_values();
  5375. }
  5376. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>&
  5377. Cursor::_internal_values() const {
  5378. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  5379. return _impl_.values_;
  5380. }
  5381. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>*
  5382. Cursor::_internal_mutable_values() {
  5383. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  5384. return &_impl_.values_;
  5385. }
  5386. // bool before = 2;
  5387. inline void Cursor::clear_before() {
  5388. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5389. _impl_.before_ = false;
  5390. }
  5391. inline bool Cursor::before() const {
  5392. // @@protoc_insertion_point(field_get:google.firestore.v1.Cursor.before)
  5393. return _internal_before();
  5394. }
  5395. inline void Cursor::set_before(bool value) {
  5396. _internal_set_before(value);
  5397. // @@protoc_insertion_point(field_set:google.firestore.v1.Cursor.before)
  5398. }
  5399. inline bool Cursor::_internal_before() const {
  5400. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  5401. return _impl_.before_;
  5402. }
  5403. inline void Cursor::_internal_set_before(bool value) {
  5404. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  5405. ;
  5406. _impl_.before_ = value;
  5407. }
  5408. #ifdef __GNUC__
  5409. #pragma GCC diagnostic pop
  5410. #endif // __GNUC__
  5411. // @@protoc_insertion_point(namespace_scope)
  5412. } // namespace v1
  5413. } // namespace firestore
  5414. } // namespace google
  5415. namespace google {
  5416. namespace protobuf {
  5417. template <>
  5418. struct is_proto_enum<::google::firestore::v1::StructuredQuery_CompositeFilter_Operator> : std::true_type {};
  5419. template <>
  5420. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::v1::StructuredQuery_CompositeFilter_Operator>() {
  5421. return ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator_descriptor();
  5422. }
  5423. template <>
  5424. struct is_proto_enum<::google::firestore::v1::StructuredQuery_FieldFilter_Operator> : std::true_type {};
  5425. template <>
  5426. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::v1::StructuredQuery_FieldFilter_Operator>() {
  5427. return ::google::firestore::v1::StructuredQuery_FieldFilter_Operator_descriptor();
  5428. }
  5429. template <>
  5430. struct is_proto_enum<::google::firestore::v1::StructuredQuery_UnaryFilter_Operator> : std::true_type {};
  5431. template <>
  5432. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::v1::StructuredQuery_UnaryFilter_Operator>() {
  5433. return ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator_descriptor();
  5434. }
  5435. template <>
  5436. struct is_proto_enum<::google::firestore::v1::StructuredQuery_Direction> : std::true_type {};
  5437. template <>
  5438. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::v1::StructuredQuery_Direction>() {
  5439. return ::google::firestore::v1::StructuredQuery_Direction_descriptor();
  5440. }
  5441. } // namespace protobuf
  5442. } // namespace google
  5443. // @@protoc_insertion_point(global_scope)
  5444. #include "google/protobuf/port_undef.inc"
  5445. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fquery_2eproto_2epb_2eh