easyjson.go 187 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package storage
  3. import (
  4. json "encoding/json"
  5. cdp "github.com/chromedp/cdproto/cdp"
  6. network "github.com/chromedp/cdproto/network"
  7. easyjson "github.com/mailru/easyjson"
  8. jlexer "github.com/mailru/easyjson/jlexer"
  9. jwriter "github.com/mailru/easyjson/jwriter"
  10. )
  11. // suppress unused package warning
  12. var (
  13. _ *json.RawMessage
  14. _ *jlexer.Lexer
  15. _ *jwriter.Writer
  16. _ easyjson.Marshaler
  17. )
  18. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage(in *jlexer.Lexer, out *UsageForType) {
  19. isTopLevel := in.IsStart()
  20. if in.IsNull() {
  21. if isTopLevel {
  22. in.Consumed()
  23. }
  24. in.Skip()
  25. return
  26. }
  27. in.Delim('{')
  28. for !in.IsDelim('}') {
  29. key := in.UnsafeFieldName(false)
  30. in.WantColon()
  31. if in.IsNull() {
  32. in.Skip()
  33. in.WantComma()
  34. continue
  35. }
  36. switch key {
  37. case "storageType":
  38. (out.StorageType).UnmarshalEasyJSON(in)
  39. case "usage":
  40. out.Usage = float64(in.Float64())
  41. default:
  42. in.SkipRecursive()
  43. }
  44. in.WantComma()
  45. }
  46. in.Delim('}')
  47. if isTopLevel {
  48. in.Consumed()
  49. }
  50. }
  51. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage(out *jwriter.Writer, in UsageForType) {
  52. out.RawByte('{')
  53. first := true
  54. _ = first
  55. {
  56. const prefix string = ",\"storageType\":"
  57. out.RawString(prefix[1:])
  58. (in.StorageType).MarshalEasyJSON(out)
  59. }
  60. {
  61. const prefix string = ",\"usage\":"
  62. out.RawString(prefix)
  63. out.Float64(float64(in.Usage))
  64. }
  65. out.RawByte('}')
  66. }
  67. // MarshalJSON supports json.Marshaler interface
  68. func (v UsageForType) MarshalJSON() ([]byte, error) {
  69. w := jwriter.Writer{}
  70. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage(&w, v)
  71. return w.Buffer.BuildBytes(), w.Error
  72. }
  73. // MarshalEasyJSON supports easyjson.Marshaler interface
  74. func (v UsageForType) MarshalEasyJSON(w *jwriter.Writer) {
  75. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage(w, v)
  76. }
  77. // UnmarshalJSON supports json.Unmarshaler interface
  78. func (v *UsageForType) UnmarshalJSON(data []byte) error {
  79. r := jlexer.Lexer{Data: data}
  80. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage(&r, v)
  81. return r.Error()
  82. }
  83. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  84. func (v *UsageForType) UnmarshalEasyJSON(l *jlexer.Lexer) {
  85. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage(l, v)
  86. }
  87. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage1(in *jlexer.Lexer, out *UntrackIndexedDBForStorageKeyParams) {
  88. isTopLevel := in.IsStart()
  89. if in.IsNull() {
  90. if isTopLevel {
  91. in.Consumed()
  92. }
  93. in.Skip()
  94. return
  95. }
  96. in.Delim('{')
  97. for !in.IsDelim('}') {
  98. key := in.UnsafeFieldName(false)
  99. in.WantColon()
  100. if in.IsNull() {
  101. in.Skip()
  102. in.WantComma()
  103. continue
  104. }
  105. switch key {
  106. case "storageKey":
  107. out.StorageKey = string(in.String())
  108. default:
  109. in.SkipRecursive()
  110. }
  111. in.WantComma()
  112. }
  113. in.Delim('}')
  114. if isTopLevel {
  115. in.Consumed()
  116. }
  117. }
  118. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage1(out *jwriter.Writer, in UntrackIndexedDBForStorageKeyParams) {
  119. out.RawByte('{')
  120. first := true
  121. _ = first
  122. {
  123. const prefix string = ",\"storageKey\":"
  124. out.RawString(prefix[1:])
  125. out.String(string(in.StorageKey))
  126. }
  127. out.RawByte('}')
  128. }
  129. // MarshalJSON supports json.Marshaler interface
  130. func (v UntrackIndexedDBForStorageKeyParams) MarshalJSON() ([]byte, error) {
  131. w := jwriter.Writer{}
  132. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage1(&w, v)
  133. return w.Buffer.BuildBytes(), w.Error
  134. }
  135. // MarshalEasyJSON supports easyjson.Marshaler interface
  136. func (v UntrackIndexedDBForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
  137. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage1(w, v)
  138. }
  139. // UnmarshalJSON supports json.Unmarshaler interface
  140. func (v *UntrackIndexedDBForStorageKeyParams) UnmarshalJSON(data []byte) error {
  141. r := jlexer.Lexer{Data: data}
  142. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage1(&r, v)
  143. return r.Error()
  144. }
  145. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  146. func (v *UntrackIndexedDBForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  147. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage1(l, v)
  148. }
  149. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage2(in *jlexer.Lexer, out *UntrackIndexedDBForOriginParams) {
  150. isTopLevel := in.IsStart()
  151. if in.IsNull() {
  152. if isTopLevel {
  153. in.Consumed()
  154. }
  155. in.Skip()
  156. return
  157. }
  158. in.Delim('{')
  159. for !in.IsDelim('}') {
  160. key := in.UnsafeFieldName(false)
  161. in.WantColon()
  162. if in.IsNull() {
  163. in.Skip()
  164. in.WantComma()
  165. continue
  166. }
  167. switch key {
  168. case "origin":
  169. out.Origin = string(in.String())
  170. default:
  171. in.SkipRecursive()
  172. }
  173. in.WantComma()
  174. }
  175. in.Delim('}')
  176. if isTopLevel {
  177. in.Consumed()
  178. }
  179. }
  180. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage2(out *jwriter.Writer, in UntrackIndexedDBForOriginParams) {
  181. out.RawByte('{')
  182. first := true
  183. _ = first
  184. {
  185. const prefix string = ",\"origin\":"
  186. out.RawString(prefix[1:])
  187. out.String(string(in.Origin))
  188. }
  189. out.RawByte('}')
  190. }
  191. // MarshalJSON supports json.Marshaler interface
  192. func (v UntrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error) {
  193. w := jwriter.Writer{}
  194. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage2(&w, v)
  195. return w.Buffer.BuildBytes(), w.Error
  196. }
  197. // MarshalEasyJSON supports easyjson.Marshaler interface
  198. func (v UntrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
  199. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage2(w, v)
  200. }
  201. // UnmarshalJSON supports json.Unmarshaler interface
  202. func (v *UntrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error {
  203. r := jlexer.Lexer{Data: data}
  204. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage2(&r, v)
  205. return r.Error()
  206. }
  207. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  208. func (v *UntrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  209. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage2(l, v)
  210. }
  211. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage3(in *jlexer.Lexer, out *UntrackCacheStorageForStorageKeyParams) {
  212. isTopLevel := in.IsStart()
  213. if in.IsNull() {
  214. if isTopLevel {
  215. in.Consumed()
  216. }
  217. in.Skip()
  218. return
  219. }
  220. in.Delim('{')
  221. for !in.IsDelim('}') {
  222. key := in.UnsafeFieldName(false)
  223. in.WantColon()
  224. if in.IsNull() {
  225. in.Skip()
  226. in.WantComma()
  227. continue
  228. }
  229. switch key {
  230. case "storageKey":
  231. out.StorageKey = string(in.String())
  232. default:
  233. in.SkipRecursive()
  234. }
  235. in.WantComma()
  236. }
  237. in.Delim('}')
  238. if isTopLevel {
  239. in.Consumed()
  240. }
  241. }
  242. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage3(out *jwriter.Writer, in UntrackCacheStorageForStorageKeyParams) {
  243. out.RawByte('{')
  244. first := true
  245. _ = first
  246. {
  247. const prefix string = ",\"storageKey\":"
  248. out.RawString(prefix[1:])
  249. out.String(string(in.StorageKey))
  250. }
  251. out.RawByte('}')
  252. }
  253. // MarshalJSON supports json.Marshaler interface
  254. func (v UntrackCacheStorageForStorageKeyParams) MarshalJSON() ([]byte, error) {
  255. w := jwriter.Writer{}
  256. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage3(&w, v)
  257. return w.Buffer.BuildBytes(), w.Error
  258. }
  259. // MarshalEasyJSON supports easyjson.Marshaler interface
  260. func (v UntrackCacheStorageForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
  261. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage3(w, v)
  262. }
  263. // UnmarshalJSON supports json.Unmarshaler interface
  264. func (v *UntrackCacheStorageForStorageKeyParams) UnmarshalJSON(data []byte) error {
  265. r := jlexer.Lexer{Data: data}
  266. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage3(&r, v)
  267. return r.Error()
  268. }
  269. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  270. func (v *UntrackCacheStorageForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  271. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage3(l, v)
  272. }
  273. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage4(in *jlexer.Lexer, out *UntrackCacheStorageForOriginParams) {
  274. isTopLevel := in.IsStart()
  275. if in.IsNull() {
  276. if isTopLevel {
  277. in.Consumed()
  278. }
  279. in.Skip()
  280. return
  281. }
  282. in.Delim('{')
  283. for !in.IsDelim('}') {
  284. key := in.UnsafeFieldName(false)
  285. in.WantColon()
  286. if in.IsNull() {
  287. in.Skip()
  288. in.WantComma()
  289. continue
  290. }
  291. switch key {
  292. case "origin":
  293. out.Origin = string(in.String())
  294. default:
  295. in.SkipRecursive()
  296. }
  297. in.WantComma()
  298. }
  299. in.Delim('}')
  300. if isTopLevel {
  301. in.Consumed()
  302. }
  303. }
  304. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage4(out *jwriter.Writer, in UntrackCacheStorageForOriginParams) {
  305. out.RawByte('{')
  306. first := true
  307. _ = first
  308. {
  309. const prefix string = ",\"origin\":"
  310. out.RawString(prefix[1:])
  311. out.String(string(in.Origin))
  312. }
  313. out.RawByte('}')
  314. }
  315. // MarshalJSON supports json.Marshaler interface
  316. func (v UntrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error) {
  317. w := jwriter.Writer{}
  318. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage4(&w, v)
  319. return w.Buffer.BuildBytes(), w.Error
  320. }
  321. // MarshalEasyJSON supports easyjson.Marshaler interface
  322. func (v UntrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
  323. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage4(w, v)
  324. }
  325. // UnmarshalJSON supports json.Unmarshaler interface
  326. func (v *UntrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error {
  327. r := jlexer.Lexer{Data: data}
  328. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage4(&r, v)
  329. return r.Error()
  330. }
  331. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  332. func (v *UntrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  333. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage4(l, v)
  334. }
  335. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage5(in *jlexer.Lexer, out *TrustTokens) {
  336. isTopLevel := in.IsStart()
  337. if in.IsNull() {
  338. if isTopLevel {
  339. in.Consumed()
  340. }
  341. in.Skip()
  342. return
  343. }
  344. in.Delim('{')
  345. for !in.IsDelim('}') {
  346. key := in.UnsafeFieldName(false)
  347. in.WantColon()
  348. if in.IsNull() {
  349. in.Skip()
  350. in.WantComma()
  351. continue
  352. }
  353. switch key {
  354. case "issuerOrigin":
  355. out.IssuerOrigin = string(in.String())
  356. case "count":
  357. out.Count = float64(in.Float64())
  358. default:
  359. in.SkipRecursive()
  360. }
  361. in.WantComma()
  362. }
  363. in.Delim('}')
  364. if isTopLevel {
  365. in.Consumed()
  366. }
  367. }
  368. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage5(out *jwriter.Writer, in TrustTokens) {
  369. out.RawByte('{')
  370. first := true
  371. _ = first
  372. {
  373. const prefix string = ",\"issuerOrigin\":"
  374. out.RawString(prefix[1:])
  375. out.String(string(in.IssuerOrigin))
  376. }
  377. {
  378. const prefix string = ",\"count\":"
  379. out.RawString(prefix)
  380. out.Float64(float64(in.Count))
  381. }
  382. out.RawByte('}')
  383. }
  384. // MarshalJSON supports json.Marshaler interface
  385. func (v TrustTokens) MarshalJSON() ([]byte, error) {
  386. w := jwriter.Writer{}
  387. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage5(&w, v)
  388. return w.Buffer.BuildBytes(), w.Error
  389. }
  390. // MarshalEasyJSON supports easyjson.Marshaler interface
  391. func (v TrustTokens) MarshalEasyJSON(w *jwriter.Writer) {
  392. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage5(w, v)
  393. }
  394. // UnmarshalJSON supports json.Unmarshaler interface
  395. func (v *TrustTokens) UnmarshalJSON(data []byte) error {
  396. r := jlexer.Lexer{Data: data}
  397. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage5(&r, v)
  398. return r.Error()
  399. }
  400. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  401. func (v *TrustTokens) UnmarshalEasyJSON(l *jlexer.Lexer) {
  402. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage5(l, v)
  403. }
  404. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage6(in *jlexer.Lexer, out *TrackIndexedDBForStorageKeyParams) {
  405. isTopLevel := in.IsStart()
  406. if in.IsNull() {
  407. if isTopLevel {
  408. in.Consumed()
  409. }
  410. in.Skip()
  411. return
  412. }
  413. in.Delim('{')
  414. for !in.IsDelim('}') {
  415. key := in.UnsafeFieldName(false)
  416. in.WantColon()
  417. if in.IsNull() {
  418. in.Skip()
  419. in.WantComma()
  420. continue
  421. }
  422. switch key {
  423. case "storageKey":
  424. out.StorageKey = string(in.String())
  425. default:
  426. in.SkipRecursive()
  427. }
  428. in.WantComma()
  429. }
  430. in.Delim('}')
  431. if isTopLevel {
  432. in.Consumed()
  433. }
  434. }
  435. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage6(out *jwriter.Writer, in TrackIndexedDBForStorageKeyParams) {
  436. out.RawByte('{')
  437. first := true
  438. _ = first
  439. {
  440. const prefix string = ",\"storageKey\":"
  441. out.RawString(prefix[1:])
  442. out.String(string(in.StorageKey))
  443. }
  444. out.RawByte('}')
  445. }
  446. // MarshalJSON supports json.Marshaler interface
  447. func (v TrackIndexedDBForStorageKeyParams) MarshalJSON() ([]byte, error) {
  448. w := jwriter.Writer{}
  449. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage6(&w, v)
  450. return w.Buffer.BuildBytes(), w.Error
  451. }
  452. // MarshalEasyJSON supports easyjson.Marshaler interface
  453. func (v TrackIndexedDBForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
  454. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage6(w, v)
  455. }
  456. // UnmarshalJSON supports json.Unmarshaler interface
  457. func (v *TrackIndexedDBForStorageKeyParams) UnmarshalJSON(data []byte) error {
  458. r := jlexer.Lexer{Data: data}
  459. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage6(&r, v)
  460. return r.Error()
  461. }
  462. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  463. func (v *TrackIndexedDBForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  464. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage6(l, v)
  465. }
  466. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage7(in *jlexer.Lexer, out *TrackIndexedDBForOriginParams) {
  467. isTopLevel := in.IsStart()
  468. if in.IsNull() {
  469. if isTopLevel {
  470. in.Consumed()
  471. }
  472. in.Skip()
  473. return
  474. }
  475. in.Delim('{')
  476. for !in.IsDelim('}') {
  477. key := in.UnsafeFieldName(false)
  478. in.WantColon()
  479. if in.IsNull() {
  480. in.Skip()
  481. in.WantComma()
  482. continue
  483. }
  484. switch key {
  485. case "origin":
  486. out.Origin = string(in.String())
  487. default:
  488. in.SkipRecursive()
  489. }
  490. in.WantComma()
  491. }
  492. in.Delim('}')
  493. if isTopLevel {
  494. in.Consumed()
  495. }
  496. }
  497. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage7(out *jwriter.Writer, in TrackIndexedDBForOriginParams) {
  498. out.RawByte('{')
  499. first := true
  500. _ = first
  501. {
  502. const prefix string = ",\"origin\":"
  503. out.RawString(prefix[1:])
  504. out.String(string(in.Origin))
  505. }
  506. out.RawByte('}')
  507. }
  508. // MarshalJSON supports json.Marshaler interface
  509. func (v TrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error) {
  510. w := jwriter.Writer{}
  511. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage7(&w, v)
  512. return w.Buffer.BuildBytes(), w.Error
  513. }
  514. // MarshalEasyJSON supports easyjson.Marshaler interface
  515. func (v TrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
  516. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage7(w, v)
  517. }
  518. // UnmarshalJSON supports json.Unmarshaler interface
  519. func (v *TrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error {
  520. r := jlexer.Lexer{Data: data}
  521. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage7(&r, v)
  522. return r.Error()
  523. }
  524. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  525. func (v *TrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  526. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage7(l, v)
  527. }
  528. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage8(in *jlexer.Lexer, out *TrackCacheStorageForStorageKeyParams) {
  529. isTopLevel := in.IsStart()
  530. if in.IsNull() {
  531. if isTopLevel {
  532. in.Consumed()
  533. }
  534. in.Skip()
  535. return
  536. }
  537. in.Delim('{')
  538. for !in.IsDelim('}') {
  539. key := in.UnsafeFieldName(false)
  540. in.WantColon()
  541. if in.IsNull() {
  542. in.Skip()
  543. in.WantComma()
  544. continue
  545. }
  546. switch key {
  547. case "storageKey":
  548. out.StorageKey = string(in.String())
  549. default:
  550. in.SkipRecursive()
  551. }
  552. in.WantComma()
  553. }
  554. in.Delim('}')
  555. if isTopLevel {
  556. in.Consumed()
  557. }
  558. }
  559. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage8(out *jwriter.Writer, in TrackCacheStorageForStorageKeyParams) {
  560. out.RawByte('{')
  561. first := true
  562. _ = first
  563. {
  564. const prefix string = ",\"storageKey\":"
  565. out.RawString(prefix[1:])
  566. out.String(string(in.StorageKey))
  567. }
  568. out.RawByte('}')
  569. }
  570. // MarshalJSON supports json.Marshaler interface
  571. func (v TrackCacheStorageForStorageKeyParams) MarshalJSON() ([]byte, error) {
  572. w := jwriter.Writer{}
  573. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage8(&w, v)
  574. return w.Buffer.BuildBytes(), w.Error
  575. }
  576. // MarshalEasyJSON supports easyjson.Marshaler interface
  577. func (v TrackCacheStorageForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
  578. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage8(w, v)
  579. }
  580. // UnmarshalJSON supports json.Unmarshaler interface
  581. func (v *TrackCacheStorageForStorageKeyParams) UnmarshalJSON(data []byte) error {
  582. r := jlexer.Lexer{Data: data}
  583. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage8(&r, v)
  584. return r.Error()
  585. }
  586. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  587. func (v *TrackCacheStorageForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  588. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage8(l, v)
  589. }
  590. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage9(in *jlexer.Lexer, out *TrackCacheStorageForOriginParams) {
  591. isTopLevel := in.IsStart()
  592. if in.IsNull() {
  593. if isTopLevel {
  594. in.Consumed()
  595. }
  596. in.Skip()
  597. return
  598. }
  599. in.Delim('{')
  600. for !in.IsDelim('}') {
  601. key := in.UnsafeFieldName(false)
  602. in.WantColon()
  603. if in.IsNull() {
  604. in.Skip()
  605. in.WantComma()
  606. continue
  607. }
  608. switch key {
  609. case "origin":
  610. out.Origin = string(in.String())
  611. default:
  612. in.SkipRecursive()
  613. }
  614. in.WantComma()
  615. }
  616. in.Delim('}')
  617. if isTopLevel {
  618. in.Consumed()
  619. }
  620. }
  621. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage9(out *jwriter.Writer, in TrackCacheStorageForOriginParams) {
  622. out.RawByte('{')
  623. first := true
  624. _ = first
  625. {
  626. const prefix string = ",\"origin\":"
  627. out.RawString(prefix[1:])
  628. out.String(string(in.Origin))
  629. }
  630. out.RawByte('}')
  631. }
  632. // MarshalJSON supports json.Marshaler interface
  633. func (v TrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error) {
  634. w := jwriter.Writer{}
  635. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage9(&w, v)
  636. return w.Buffer.BuildBytes(), w.Error
  637. }
  638. // MarshalEasyJSON supports easyjson.Marshaler interface
  639. func (v TrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
  640. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage9(w, v)
  641. }
  642. // UnmarshalJSON supports json.Unmarshaler interface
  643. func (v *TrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error {
  644. r := jlexer.Lexer{Data: data}
  645. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage9(&r, v)
  646. return r.Error()
  647. }
  648. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  649. func (v *TrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  650. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage9(l, v)
  651. }
  652. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage10(in *jlexer.Lexer, out *SharedStorageURLWithMetadata) {
  653. isTopLevel := in.IsStart()
  654. if in.IsNull() {
  655. if isTopLevel {
  656. in.Consumed()
  657. }
  658. in.Skip()
  659. return
  660. }
  661. in.Delim('{')
  662. for !in.IsDelim('}') {
  663. key := in.UnsafeFieldName(false)
  664. in.WantColon()
  665. if in.IsNull() {
  666. in.Skip()
  667. in.WantComma()
  668. continue
  669. }
  670. switch key {
  671. case "url":
  672. out.URL = string(in.String())
  673. case "reportingMetadata":
  674. if in.IsNull() {
  675. in.Skip()
  676. out.ReportingMetadata = nil
  677. } else {
  678. in.Delim('[')
  679. if out.ReportingMetadata == nil {
  680. if !in.IsDelim(']') {
  681. out.ReportingMetadata = make([]*SharedStorageReportingMetadata, 0, 8)
  682. } else {
  683. out.ReportingMetadata = []*SharedStorageReportingMetadata{}
  684. }
  685. } else {
  686. out.ReportingMetadata = (out.ReportingMetadata)[:0]
  687. }
  688. for !in.IsDelim(']') {
  689. var v1 *SharedStorageReportingMetadata
  690. if in.IsNull() {
  691. in.Skip()
  692. v1 = nil
  693. } else {
  694. if v1 == nil {
  695. v1 = new(SharedStorageReportingMetadata)
  696. }
  697. (*v1).UnmarshalEasyJSON(in)
  698. }
  699. out.ReportingMetadata = append(out.ReportingMetadata, v1)
  700. in.WantComma()
  701. }
  702. in.Delim(']')
  703. }
  704. default:
  705. in.SkipRecursive()
  706. }
  707. in.WantComma()
  708. }
  709. in.Delim('}')
  710. if isTopLevel {
  711. in.Consumed()
  712. }
  713. }
  714. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage10(out *jwriter.Writer, in SharedStorageURLWithMetadata) {
  715. out.RawByte('{')
  716. first := true
  717. _ = first
  718. {
  719. const prefix string = ",\"url\":"
  720. out.RawString(prefix[1:])
  721. out.String(string(in.URL))
  722. }
  723. {
  724. const prefix string = ",\"reportingMetadata\":"
  725. out.RawString(prefix)
  726. if in.ReportingMetadata == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  727. out.RawString("null")
  728. } else {
  729. out.RawByte('[')
  730. for v2, v3 := range in.ReportingMetadata {
  731. if v2 > 0 {
  732. out.RawByte(',')
  733. }
  734. if v3 == nil {
  735. out.RawString("null")
  736. } else {
  737. (*v3).MarshalEasyJSON(out)
  738. }
  739. }
  740. out.RawByte(']')
  741. }
  742. }
  743. out.RawByte('}')
  744. }
  745. // MarshalJSON supports json.Marshaler interface
  746. func (v SharedStorageURLWithMetadata) MarshalJSON() ([]byte, error) {
  747. w := jwriter.Writer{}
  748. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage10(&w, v)
  749. return w.Buffer.BuildBytes(), w.Error
  750. }
  751. // MarshalEasyJSON supports easyjson.Marshaler interface
  752. func (v SharedStorageURLWithMetadata) MarshalEasyJSON(w *jwriter.Writer) {
  753. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage10(w, v)
  754. }
  755. // UnmarshalJSON supports json.Unmarshaler interface
  756. func (v *SharedStorageURLWithMetadata) UnmarshalJSON(data []byte) error {
  757. r := jlexer.Lexer{Data: data}
  758. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage10(&r, v)
  759. return r.Error()
  760. }
  761. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  762. func (v *SharedStorageURLWithMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
  763. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage10(l, v)
  764. }
  765. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage11(in *jlexer.Lexer, out *SharedStorageReportingMetadata) {
  766. isTopLevel := in.IsStart()
  767. if in.IsNull() {
  768. if isTopLevel {
  769. in.Consumed()
  770. }
  771. in.Skip()
  772. return
  773. }
  774. in.Delim('{')
  775. for !in.IsDelim('}') {
  776. key := in.UnsafeFieldName(false)
  777. in.WantColon()
  778. if in.IsNull() {
  779. in.Skip()
  780. in.WantComma()
  781. continue
  782. }
  783. switch key {
  784. case "eventType":
  785. out.EventType = string(in.String())
  786. case "reportingUrl":
  787. out.ReportingURL = string(in.String())
  788. default:
  789. in.SkipRecursive()
  790. }
  791. in.WantComma()
  792. }
  793. in.Delim('}')
  794. if isTopLevel {
  795. in.Consumed()
  796. }
  797. }
  798. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage11(out *jwriter.Writer, in SharedStorageReportingMetadata) {
  799. out.RawByte('{')
  800. first := true
  801. _ = first
  802. {
  803. const prefix string = ",\"eventType\":"
  804. out.RawString(prefix[1:])
  805. out.String(string(in.EventType))
  806. }
  807. {
  808. const prefix string = ",\"reportingUrl\":"
  809. out.RawString(prefix)
  810. out.String(string(in.ReportingURL))
  811. }
  812. out.RawByte('}')
  813. }
  814. // MarshalJSON supports json.Marshaler interface
  815. func (v SharedStorageReportingMetadata) MarshalJSON() ([]byte, error) {
  816. w := jwriter.Writer{}
  817. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage11(&w, v)
  818. return w.Buffer.BuildBytes(), w.Error
  819. }
  820. // MarshalEasyJSON supports easyjson.Marshaler interface
  821. func (v SharedStorageReportingMetadata) MarshalEasyJSON(w *jwriter.Writer) {
  822. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage11(w, v)
  823. }
  824. // UnmarshalJSON supports json.Unmarshaler interface
  825. func (v *SharedStorageReportingMetadata) UnmarshalJSON(data []byte) error {
  826. r := jlexer.Lexer{Data: data}
  827. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage11(&r, v)
  828. return r.Error()
  829. }
  830. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  831. func (v *SharedStorageReportingMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
  832. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage11(l, v)
  833. }
  834. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage12(in *jlexer.Lexer, out *SharedStorageMetadata) {
  835. isTopLevel := in.IsStart()
  836. if in.IsNull() {
  837. if isTopLevel {
  838. in.Consumed()
  839. }
  840. in.Skip()
  841. return
  842. }
  843. in.Delim('{')
  844. for !in.IsDelim('}') {
  845. key := in.UnsafeFieldName(false)
  846. in.WantColon()
  847. if in.IsNull() {
  848. in.Skip()
  849. in.WantComma()
  850. continue
  851. }
  852. switch key {
  853. case "creationTime":
  854. if in.IsNull() {
  855. in.Skip()
  856. out.CreationTime = nil
  857. } else {
  858. if out.CreationTime == nil {
  859. out.CreationTime = new(cdp.TimeSinceEpoch)
  860. }
  861. (*out.CreationTime).UnmarshalEasyJSON(in)
  862. }
  863. case "length":
  864. out.Length = int64(in.Int64())
  865. case "remainingBudget":
  866. out.RemainingBudget = float64(in.Float64())
  867. case "bytesUsed":
  868. out.BytesUsed = int64(in.Int64())
  869. default:
  870. in.SkipRecursive()
  871. }
  872. in.WantComma()
  873. }
  874. in.Delim('}')
  875. if isTopLevel {
  876. in.Consumed()
  877. }
  878. }
  879. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage12(out *jwriter.Writer, in SharedStorageMetadata) {
  880. out.RawByte('{')
  881. first := true
  882. _ = first
  883. {
  884. const prefix string = ",\"creationTime\":"
  885. out.RawString(prefix[1:])
  886. if in.CreationTime == nil {
  887. out.RawString("null")
  888. } else {
  889. (*in.CreationTime).MarshalEasyJSON(out)
  890. }
  891. }
  892. {
  893. const prefix string = ",\"length\":"
  894. out.RawString(prefix)
  895. out.Int64(int64(in.Length))
  896. }
  897. {
  898. const prefix string = ",\"remainingBudget\":"
  899. out.RawString(prefix)
  900. out.Float64(float64(in.RemainingBudget))
  901. }
  902. {
  903. const prefix string = ",\"bytesUsed\":"
  904. out.RawString(prefix)
  905. out.Int64(int64(in.BytesUsed))
  906. }
  907. out.RawByte('}')
  908. }
  909. // MarshalJSON supports json.Marshaler interface
  910. func (v SharedStorageMetadata) MarshalJSON() ([]byte, error) {
  911. w := jwriter.Writer{}
  912. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage12(&w, v)
  913. return w.Buffer.BuildBytes(), w.Error
  914. }
  915. // MarshalEasyJSON supports easyjson.Marshaler interface
  916. func (v SharedStorageMetadata) MarshalEasyJSON(w *jwriter.Writer) {
  917. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage12(w, v)
  918. }
  919. // UnmarshalJSON supports json.Unmarshaler interface
  920. func (v *SharedStorageMetadata) UnmarshalJSON(data []byte) error {
  921. r := jlexer.Lexer{Data: data}
  922. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage12(&r, v)
  923. return r.Error()
  924. }
  925. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  926. func (v *SharedStorageMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
  927. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage12(l, v)
  928. }
  929. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage13(in *jlexer.Lexer, out *SharedStorageEntry) {
  930. isTopLevel := in.IsStart()
  931. if in.IsNull() {
  932. if isTopLevel {
  933. in.Consumed()
  934. }
  935. in.Skip()
  936. return
  937. }
  938. in.Delim('{')
  939. for !in.IsDelim('}') {
  940. key := in.UnsafeFieldName(false)
  941. in.WantColon()
  942. if in.IsNull() {
  943. in.Skip()
  944. in.WantComma()
  945. continue
  946. }
  947. switch key {
  948. case "key":
  949. out.Key = string(in.String())
  950. case "value":
  951. out.Value = string(in.String())
  952. default:
  953. in.SkipRecursive()
  954. }
  955. in.WantComma()
  956. }
  957. in.Delim('}')
  958. if isTopLevel {
  959. in.Consumed()
  960. }
  961. }
  962. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage13(out *jwriter.Writer, in SharedStorageEntry) {
  963. out.RawByte('{')
  964. first := true
  965. _ = first
  966. {
  967. const prefix string = ",\"key\":"
  968. out.RawString(prefix[1:])
  969. out.String(string(in.Key))
  970. }
  971. {
  972. const prefix string = ",\"value\":"
  973. out.RawString(prefix)
  974. out.String(string(in.Value))
  975. }
  976. out.RawByte('}')
  977. }
  978. // MarshalJSON supports json.Marshaler interface
  979. func (v SharedStorageEntry) MarshalJSON() ([]byte, error) {
  980. w := jwriter.Writer{}
  981. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage13(&w, v)
  982. return w.Buffer.BuildBytes(), w.Error
  983. }
  984. // MarshalEasyJSON supports easyjson.Marshaler interface
  985. func (v SharedStorageEntry) MarshalEasyJSON(w *jwriter.Writer) {
  986. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage13(w, v)
  987. }
  988. // UnmarshalJSON supports json.Unmarshaler interface
  989. func (v *SharedStorageEntry) UnmarshalJSON(data []byte) error {
  990. r := jlexer.Lexer{Data: data}
  991. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage13(&r, v)
  992. return r.Error()
  993. }
  994. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  995. func (v *SharedStorageEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  996. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage13(l, v)
  997. }
  998. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage14(in *jlexer.Lexer, out *SharedStorageAccessParams) {
  999. isTopLevel := in.IsStart()
  1000. if in.IsNull() {
  1001. if isTopLevel {
  1002. in.Consumed()
  1003. }
  1004. in.Skip()
  1005. return
  1006. }
  1007. in.Delim('{')
  1008. for !in.IsDelim('}') {
  1009. key := in.UnsafeFieldName(false)
  1010. in.WantColon()
  1011. if in.IsNull() {
  1012. in.Skip()
  1013. in.WantComma()
  1014. continue
  1015. }
  1016. switch key {
  1017. case "scriptSourceUrl":
  1018. out.ScriptSourceURL = string(in.String())
  1019. case "operationName":
  1020. out.OperationName = string(in.String())
  1021. case "serializedData":
  1022. out.SerializedData = string(in.String())
  1023. case "urlsWithMetadata":
  1024. if in.IsNull() {
  1025. in.Skip()
  1026. out.UrlsWithMetadata = nil
  1027. } else {
  1028. in.Delim('[')
  1029. if out.UrlsWithMetadata == nil {
  1030. if !in.IsDelim(']') {
  1031. out.UrlsWithMetadata = make([]*SharedStorageURLWithMetadata, 0, 8)
  1032. } else {
  1033. out.UrlsWithMetadata = []*SharedStorageURLWithMetadata{}
  1034. }
  1035. } else {
  1036. out.UrlsWithMetadata = (out.UrlsWithMetadata)[:0]
  1037. }
  1038. for !in.IsDelim(']') {
  1039. var v4 *SharedStorageURLWithMetadata
  1040. if in.IsNull() {
  1041. in.Skip()
  1042. v4 = nil
  1043. } else {
  1044. if v4 == nil {
  1045. v4 = new(SharedStorageURLWithMetadata)
  1046. }
  1047. (*v4).UnmarshalEasyJSON(in)
  1048. }
  1049. out.UrlsWithMetadata = append(out.UrlsWithMetadata, v4)
  1050. in.WantComma()
  1051. }
  1052. in.Delim(']')
  1053. }
  1054. case "key":
  1055. out.Key = string(in.String())
  1056. case "value":
  1057. out.Value = string(in.String())
  1058. case "ignoreIfPresent":
  1059. out.IgnoreIfPresent = bool(in.Bool())
  1060. default:
  1061. in.SkipRecursive()
  1062. }
  1063. in.WantComma()
  1064. }
  1065. in.Delim('}')
  1066. if isTopLevel {
  1067. in.Consumed()
  1068. }
  1069. }
  1070. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage14(out *jwriter.Writer, in SharedStorageAccessParams) {
  1071. out.RawByte('{')
  1072. first := true
  1073. _ = first
  1074. if in.ScriptSourceURL != "" {
  1075. const prefix string = ",\"scriptSourceUrl\":"
  1076. first = false
  1077. out.RawString(prefix[1:])
  1078. out.String(string(in.ScriptSourceURL))
  1079. }
  1080. if in.OperationName != "" {
  1081. const prefix string = ",\"operationName\":"
  1082. if first {
  1083. first = false
  1084. out.RawString(prefix[1:])
  1085. } else {
  1086. out.RawString(prefix)
  1087. }
  1088. out.String(string(in.OperationName))
  1089. }
  1090. if in.SerializedData != "" {
  1091. const prefix string = ",\"serializedData\":"
  1092. if first {
  1093. first = false
  1094. out.RawString(prefix[1:])
  1095. } else {
  1096. out.RawString(prefix)
  1097. }
  1098. out.String(string(in.SerializedData))
  1099. }
  1100. if len(in.UrlsWithMetadata) != 0 {
  1101. const prefix string = ",\"urlsWithMetadata\":"
  1102. if first {
  1103. first = false
  1104. out.RawString(prefix[1:])
  1105. } else {
  1106. out.RawString(prefix)
  1107. }
  1108. {
  1109. out.RawByte('[')
  1110. for v5, v6 := range in.UrlsWithMetadata {
  1111. if v5 > 0 {
  1112. out.RawByte(',')
  1113. }
  1114. if v6 == nil {
  1115. out.RawString("null")
  1116. } else {
  1117. (*v6).MarshalEasyJSON(out)
  1118. }
  1119. }
  1120. out.RawByte(']')
  1121. }
  1122. }
  1123. if in.Key != "" {
  1124. const prefix string = ",\"key\":"
  1125. if first {
  1126. first = false
  1127. out.RawString(prefix[1:])
  1128. } else {
  1129. out.RawString(prefix)
  1130. }
  1131. out.String(string(in.Key))
  1132. }
  1133. if in.Value != "" {
  1134. const prefix string = ",\"value\":"
  1135. if first {
  1136. first = false
  1137. out.RawString(prefix[1:])
  1138. } else {
  1139. out.RawString(prefix)
  1140. }
  1141. out.String(string(in.Value))
  1142. }
  1143. if in.IgnoreIfPresent {
  1144. const prefix string = ",\"ignoreIfPresent\":"
  1145. if first {
  1146. first = false
  1147. out.RawString(prefix[1:])
  1148. } else {
  1149. out.RawString(prefix)
  1150. }
  1151. out.Bool(bool(in.IgnoreIfPresent))
  1152. }
  1153. out.RawByte('}')
  1154. }
  1155. // MarshalJSON supports json.Marshaler interface
  1156. func (v SharedStorageAccessParams) MarshalJSON() ([]byte, error) {
  1157. w := jwriter.Writer{}
  1158. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage14(&w, v)
  1159. return w.Buffer.BuildBytes(), w.Error
  1160. }
  1161. // MarshalEasyJSON supports easyjson.Marshaler interface
  1162. func (v SharedStorageAccessParams) MarshalEasyJSON(w *jwriter.Writer) {
  1163. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage14(w, v)
  1164. }
  1165. // UnmarshalJSON supports json.Unmarshaler interface
  1166. func (v *SharedStorageAccessParams) UnmarshalJSON(data []byte) error {
  1167. r := jlexer.Lexer{Data: data}
  1168. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage14(&r, v)
  1169. return r.Error()
  1170. }
  1171. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1172. func (v *SharedStorageAccessParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1173. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage14(l, v)
  1174. }
  1175. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage15(in *jlexer.Lexer, out *SetStorageBucketTrackingParams) {
  1176. isTopLevel := in.IsStart()
  1177. if in.IsNull() {
  1178. if isTopLevel {
  1179. in.Consumed()
  1180. }
  1181. in.Skip()
  1182. return
  1183. }
  1184. in.Delim('{')
  1185. for !in.IsDelim('}') {
  1186. key := in.UnsafeFieldName(false)
  1187. in.WantColon()
  1188. if in.IsNull() {
  1189. in.Skip()
  1190. in.WantComma()
  1191. continue
  1192. }
  1193. switch key {
  1194. case "storageKey":
  1195. out.StorageKey = string(in.String())
  1196. case "enable":
  1197. out.Enable = bool(in.Bool())
  1198. default:
  1199. in.SkipRecursive()
  1200. }
  1201. in.WantComma()
  1202. }
  1203. in.Delim('}')
  1204. if isTopLevel {
  1205. in.Consumed()
  1206. }
  1207. }
  1208. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage15(out *jwriter.Writer, in SetStorageBucketTrackingParams) {
  1209. out.RawByte('{')
  1210. first := true
  1211. _ = first
  1212. {
  1213. const prefix string = ",\"storageKey\":"
  1214. out.RawString(prefix[1:])
  1215. out.String(string(in.StorageKey))
  1216. }
  1217. {
  1218. const prefix string = ",\"enable\":"
  1219. out.RawString(prefix)
  1220. out.Bool(bool(in.Enable))
  1221. }
  1222. out.RawByte('}')
  1223. }
  1224. // MarshalJSON supports json.Marshaler interface
  1225. func (v SetStorageBucketTrackingParams) MarshalJSON() ([]byte, error) {
  1226. w := jwriter.Writer{}
  1227. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage15(&w, v)
  1228. return w.Buffer.BuildBytes(), w.Error
  1229. }
  1230. // MarshalEasyJSON supports easyjson.Marshaler interface
  1231. func (v SetStorageBucketTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
  1232. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage15(w, v)
  1233. }
  1234. // UnmarshalJSON supports json.Unmarshaler interface
  1235. func (v *SetStorageBucketTrackingParams) UnmarshalJSON(data []byte) error {
  1236. r := jlexer.Lexer{Data: data}
  1237. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage15(&r, v)
  1238. return r.Error()
  1239. }
  1240. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1241. func (v *SetStorageBucketTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1242. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage15(l, v)
  1243. }
  1244. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage16(in *jlexer.Lexer, out *SetSharedStorageTrackingParams) {
  1245. isTopLevel := in.IsStart()
  1246. if in.IsNull() {
  1247. if isTopLevel {
  1248. in.Consumed()
  1249. }
  1250. in.Skip()
  1251. return
  1252. }
  1253. in.Delim('{')
  1254. for !in.IsDelim('}') {
  1255. key := in.UnsafeFieldName(false)
  1256. in.WantColon()
  1257. if in.IsNull() {
  1258. in.Skip()
  1259. in.WantComma()
  1260. continue
  1261. }
  1262. switch key {
  1263. case "enable":
  1264. out.Enable = bool(in.Bool())
  1265. default:
  1266. in.SkipRecursive()
  1267. }
  1268. in.WantComma()
  1269. }
  1270. in.Delim('}')
  1271. if isTopLevel {
  1272. in.Consumed()
  1273. }
  1274. }
  1275. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage16(out *jwriter.Writer, in SetSharedStorageTrackingParams) {
  1276. out.RawByte('{')
  1277. first := true
  1278. _ = first
  1279. {
  1280. const prefix string = ",\"enable\":"
  1281. out.RawString(prefix[1:])
  1282. out.Bool(bool(in.Enable))
  1283. }
  1284. out.RawByte('}')
  1285. }
  1286. // MarshalJSON supports json.Marshaler interface
  1287. func (v SetSharedStorageTrackingParams) MarshalJSON() ([]byte, error) {
  1288. w := jwriter.Writer{}
  1289. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage16(&w, v)
  1290. return w.Buffer.BuildBytes(), w.Error
  1291. }
  1292. // MarshalEasyJSON supports easyjson.Marshaler interface
  1293. func (v SetSharedStorageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
  1294. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage16(w, v)
  1295. }
  1296. // UnmarshalJSON supports json.Unmarshaler interface
  1297. func (v *SetSharedStorageTrackingParams) UnmarshalJSON(data []byte) error {
  1298. r := jlexer.Lexer{Data: data}
  1299. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage16(&r, v)
  1300. return r.Error()
  1301. }
  1302. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1303. func (v *SetSharedStorageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1304. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage16(l, v)
  1305. }
  1306. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage17(in *jlexer.Lexer, out *SetSharedStorageEntryParams) {
  1307. isTopLevel := in.IsStart()
  1308. if in.IsNull() {
  1309. if isTopLevel {
  1310. in.Consumed()
  1311. }
  1312. in.Skip()
  1313. return
  1314. }
  1315. in.Delim('{')
  1316. for !in.IsDelim('}') {
  1317. key := in.UnsafeFieldName(false)
  1318. in.WantColon()
  1319. if in.IsNull() {
  1320. in.Skip()
  1321. in.WantComma()
  1322. continue
  1323. }
  1324. switch key {
  1325. case "ownerOrigin":
  1326. out.OwnerOrigin = string(in.String())
  1327. case "key":
  1328. out.Key = string(in.String())
  1329. case "value":
  1330. out.Value = string(in.String())
  1331. case "ignoreIfPresent":
  1332. out.IgnoreIfPresent = bool(in.Bool())
  1333. default:
  1334. in.SkipRecursive()
  1335. }
  1336. in.WantComma()
  1337. }
  1338. in.Delim('}')
  1339. if isTopLevel {
  1340. in.Consumed()
  1341. }
  1342. }
  1343. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage17(out *jwriter.Writer, in SetSharedStorageEntryParams) {
  1344. out.RawByte('{')
  1345. first := true
  1346. _ = first
  1347. {
  1348. const prefix string = ",\"ownerOrigin\":"
  1349. out.RawString(prefix[1:])
  1350. out.String(string(in.OwnerOrigin))
  1351. }
  1352. {
  1353. const prefix string = ",\"key\":"
  1354. out.RawString(prefix)
  1355. out.String(string(in.Key))
  1356. }
  1357. {
  1358. const prefix string = ",\"value\":"
  1359. out.RawString(prefix)
  1360. out.String(string(in.Value))
  1361. }
  1362. if in.IgnoreIfPresent {
  1363. const prefix string = ",\"ignoreIfPresent\":"
  1364. out.RawString(prefix)
  1365. out.Bool(bool(in.IgnoreIfPresent))
  1366. }
  1367. out.RawByte('}')
  1368. }
  1369. // MarshalJSON supports json.Marshaler interface
  1370. func (v SetSharedStorageEntryParams) MarshalJSON() ([]byte, error) {
  1371. w := jwriter.Writer{}
  1372. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage17(&w, v)
  1373. return w.Buffer.BuildBytes(), w.Error
  1374. }
  1375. // MarshalEasyJSON supports easyjson.Marshaler interface
  1376. func (v SetSharedStorageEntryParams) MarshalEasyJSON(w *jwriter.Writer) {
  1377. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage17(w, v)
  1378. }
  1379. // UnmarshalJSON supports json.Unmarshaler interface
  1380. func (v *SetSharedStorageEntryParams) UnmarshalJSON(data []byte) error {
  1381. r := jlexer.Lexer{Data: data}
  1382. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage17(&r, v)
  1383. return r.Error()
  1384. }
  1385. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1386. func (v *SetSharedStorageEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1387. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage17(l, v)
  1388. }
  1389. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage18(in *jlexer.Lexer, out *SetInterestGroupTrackingParams) {
  1390. isTopLevel := in.IsStart()
  1391. if in.IsNull() {
  1392. if isTopLevel {
  1393. in.Consumed()
  1394. }
  1395. in.Skip()
  1396. return
  1397. }
  1398. in.Delim('{')
  1399. for !in.IsDelim('}') {
  1400. key := in.UnsafeFieldName(false)
  1401. in.WantColon()
  1402. if in.IsNull() {
  1403. in.Skip()
  1404. in.WantComma()
  1405. continue
  1406. }
  1407. switch key {
  1408. case "enable":
  1409. out.Enable = bool(in.Bool())
  1410. default:
  1411. in.SkipRecursive()
  1412. }
  1413. in.WantComma()
  1414. }
  1415. in.Delim('}')
  1416. if isTopLevel {
  1417. in.Consumed()
  1418. }
  1419. }
  1420. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage18(out *jwriter.Writer, in SetInterestGroupTrackingParams) {
  1421. out.RawByte('{')
  1422. first := true
  1423. _ = first
  1424. {
  1425. const prefix string = ",\"enable\":"
  1426. out.RawString(prefix[1:])
  1427. out.Bool(bool(in.Enable))
  1428. }
  1429. out.RawByte('}')
  1430. }
  1431. // MarshalJSON supports json.Marshaler interface
  1432. func (v SetInterestGroupTrackingParams) MarshalJSON() ([]byte, error) {
  1433. w := jwriter.Writer{}
  1434. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage18(&w, v)
  1435. return w.Buffer.BuildBytes(), w.Error
  1436. }
  1437. // MarshalEasyJSON supports easyjson.Marshaler interface
  1438. func (v SetInterestGroupTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
  1439. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage18(w, v)
  1440. }
  1441. // UnmarshalJSON supports json.Unmarshaler interface
  1442. func (v *SetInterestGroupTrackingParams) UnmarshalJSON(data []byte) error {
  1443. r := jlexer.Lexer{Data: data}
  1444. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage18(&r, v)
  1445. return r.Error()
  1446. }
  1447. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1448. func (v *SetInterestGroupTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1449. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage18(l, v)
  1450. }
  1451. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage19(in *jlexer.Lexer, out *SetInterestGroupAuctionTrackingParams) {
  1452. isTopLevel := in.IsStart()
  1453. if in.IsNull() {
  1454. if isTopLevel {
  1455. in.Consumed()
  1456. }
  1457. in.Skip()
  1458. return
  1459. }
  1460. in.Delim('{')
  1461. for !in.IsDelim('}') {
  1462. key := in.UnsafeFieldName(false)
  1463. in.WantColon()
  1464. if in.IsNull() {
  1465. in.Skip()
  1466. in.WantComma()
  1467. continue
  1468. }
  1469. switch key {
  1470. case "enable":
  1471. out.Enable = bool(in.Bool())
  1472. default:
  1473. in.SkipRecursive()
  1474. }
  1475. in.WantComma()
  1476. }
  1477. in.Delim('}')
  1478. if isTopLevel {
  1479. in.Consumed()
  1480. }
  1481. }
  1482. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage19(out *jwriter.Writer, in SetInterestGroupAuctionTrackingParams) {
  1483. out.RawByte('{')
  1484. first := true
  1485. _ = first
  1486. {
  1487. const prefix string = ",\"enable\":"
  1488. out.RawString(prefix[1:])
  1489. out.Bool(bool(in.Enable))
  1490. }
  1491. out.RawByte('}')
  1492. }
  1493. // MarshalJSON supports json.Marshaler interface
  1494. func (v SetInterestGroupAuctionTrackingParams) MarshalJSON() ([]byte, error) {
  1495. w := jwriter.Writer{}
  1496. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage19(&w, v)
  1497. return w.Buffer.BuildBytes(), w.Error
  1498. }
  1499. // MarshalEasyJSON supports easyjson.Marshaler interface
  1500. func (v SetInterestGroupAuctionTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
  1501. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage19(w, v)
  1502. }
  1503. // UnmarshalJSON supports json.Unmarshaler interface
  1504. func (v *SetInterestGroupAuctionTrackingParams) UnmarshalJSON(data []byte) error {
  1505. r := jlexer.Lexer{Data: data}
  1506. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage19(&r, v)
  1507. return r.Error()
  1508. }
  1509. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1510. func (v *SetInterestGroupAuctionTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1511. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage19(l, v)
  1512. }
  1513. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage20(in *jlexer.Lexer, out *SetCookiesParams) {
  1514. isTopLevel := in.IsStart()
  1515. if in.IsNull() {
  1516. if isTopLevel {
  1517. in.Consumed()
  1518. }
  1519. in.Skip()
  1520. return
  1521. }
  1522. in.Delim('{')
  1523. for !in.IsDelim('}') {
  1524. key := in.UnsafeFieldName(false)
  1525. in.WantColon()
  1526. if in.IsNull() {
  1527. in.Skip()
  1528. in.WantComma()
  1529. continue
  1530. }
  1531. switch key {
  1532. case "cookies":
  1533. if in.IsNull() {
  1534. in.Skip()
  1535. out.Cookies = nil
  1536. } else {
  1537. in.Delim('[')
  1538. if out.Cookies == nil {
  1539. if !in.IsDelim(']') {
  1540. out.Cookies = make([]*network.CookieParam, 0, 8)
  1541. } else {
  1542. out.Cookies = []*network.CookieParam{}
  1543. }
  1544. } else {
  1545. out.Cookies = (out.Cookies)[:0]
  1546. }
  1547. for !in.IsDelim(']') {
  1548. var v7 *network.CookieParam
  1549. if in.IsNull() {
  1550. in.Skip()
  1551. v7 = nil
  1552. } else {
  1553. if v7 == nil {
  1554. v7 = new(network.CookieParam)
  1555. }
  1556. (*v7).UnmarshalEasyJSON(in)
  1557. }
  1558. out.Cookies = append(out.Cookies, v7)
  1559. in.WantComma()
  1560. }
  1561. in.Delim(']')
  1562. }
  1563. case "browserContextId":
  1564. out.BrowserContextID = cdp.BrowserContextID(in.String())
  1565. default:
  1566. in.SkipRecursive()
  1567. }
  1568. in.WantComma()
  1569. }
  1570. in.Delim('}')
  1571. if isTopLevel {
  1572. in.Consumed()
  1573. }
  1574. }
  1575. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage20(out *jwriter.Writer, in SetCookiesParams) {
  1576. out.RawByte('{')
  1577. first := true
  1578. _ = first
  1579. {
  1580. const prefix string = ",\"cookies\":"
  1581. out.RawString(prefix[1:])
  1582. if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1583. out.RawString("null")
  1584. } else {
  1585. out.RawByte('[')
  1586. for v8, v9 := range in.Cookies {
  1587. if v8 > 0 {
  1588. out.RawByte(',')
  1589. }
  1590. if v9 == nil {
  1591. out.RawString("null")
  1592. } else {
  1593. (*v9).MarshalEasyJSON(out)
  1594. }
  1595. }
  1596. out.RawByte(']')
  1597. }
  1598. }
  1599. if in.BrowserContextID != "" {
  1600. const prefix string = ",\"browserContextId\":"
  1601. out.RawString(prefix)
  1602. out.String(string(in.BrowserContextID))
  1603. }
  1604. out.RawByte('}')
  1605. }
  1606. // MarshalJSON supports json.Marshaler interface
  1607. func (v SetCookiesParams) MarshalJSON() ([]byte, error) {
  1608. w := jwriter.Writer{}
  1609. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage20(&w, v)
  1610. return w.Buffer.BuildBytes(), w.Error
  1611. }
  1612. // MarshalEasyJSON supports easyjson.Marshaler interface
  1613. func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
  1614. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage20(w, v)
  1615. }
  1616. // UnmarshalJSON supports json.Unmarshaler interface
  1617. func (v *SetCookiesParams) UnmarshalJSON(data []byte) error {
  1618. r := jlexer.Lexer{Data: data}
  1619. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage20(&r, v)
  1620. return r.Error()
  1621. }
  1622. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1623. func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1624. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage20(l, v)
  1625. }
  1626. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage21(in *jlexer.Lexer, out *SetAttributionReportingTrackingParams) {
  1627. isTopLevel := in.IsStart()
  1628. if in.IsNull() {
  1629. if isTopLevel {
  1630. in.Consumed()
  1631. }
  1632. in.Skip()
  1633. return
  1634. }
  1635. in.Delim('{')
  1636. for !in.IsDelim('}') {
  1637. key := in.UnsafeFieldName(false)
  1638. in.WantColon()
  1639. if in.IsNull() {
  1640. in.Skip()
  1641. in.WantComma()
  1642. continue
  1643. }
  1644. switch key {
  1645. case "enable":
  1646. out.Enable = bool(in.Bool())
  1647. default:
  1648. in.SkipRecursive()
  1649. }
  1650. in.WantComma()
  1651. }
  1652. in.Delim('}')
  1653. if isTopLevel {
  1654. in.Consumed()
  1655. }
  1656. }
  1657. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage21(out *jwriter.Writer, in SetAttributionReportingTrackingParams) {
  1658. out.RawByte('{')
  1659. first := true
  1660. _ = first
  1661. {
  1662. const prefix string = ",\"enable\":"
  1663. out.RawString(prefix[1:])
  1664. out.Bool(bool(in.Enable))
  1665. }
  1666. out.RawByte('}')
  1667. }
  1668. // MarshalJSON supports json.Marshaler interface
  1669. func (v SetAttributionReportingTrackingParams) MarshalJSON() ([]byte, error) {
  1670. w := jwriter.Writer{}
  1671. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage21(&w, v)
  1672. return w.Buffer.BuildBytes(), w.Error
  1673. }
  1674. // MarshalEasyJSON supports easyjson.Marshaler interface
  1675. func (v SetAttributionReportingTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
  1676. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage21(w, v)
  1677. }
  1678. // UnmarshalJSON supports json.Unmarshaler interface
  1679. func (v *SetAttributionReportingTrackingParams) UnmarshalJSON(data []byte) error {
  1680. r := jlexer.Lexer{Data: data}
  1681. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage21(&r, v)
  1682. return r.Error()
  1683. }
  1684. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1685. func (v *SetAttributionReportingTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1686. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage21(l, v)
  1687. }
  1688. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage22(in *jlexer.Lexer, out *SetAttributionReportingLocalTestingModeParams) {
  1689. isTopLevel := in.IsStart()
  1690. if in.IsNull() {
  1691. if isTopLevel {
  1692. in.Consumed()
  1693. }
  1694. in.Skip()
  1695. return
  1696. }
  1697. in.Delim('{')
  1698. for !in.IsDelim('}') {
  1699. key := in.UnsafeFieldName(false)
  1700. in.WantColon()
  1701. if in.IsNull() {
  1702. in.Skip()
  1703. in.WantComma()
  1704. continue
  1705. }
  1706. switch key {
  1707. case "enabled":
  1708. out.Enabled = bool(in.Bool())
  1709. default:
  1710. in.SkipRecursive()
  1711. }
  1712. in.WantComma()
  1713. }
  1714. in.Delim('}')
  1715. if isTopLevel {
  1716. in.Consumed()
  1717. }
  1718. }
  1719. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage22(out *jwriter.Writer, in SetAttributionReportingLocalTestingModeParams) {
  1720. out.RawByte('{')
  1721. first := true
  1722. _ = first
  1723. {
  1724. const prefix string = ",\"enabled\":"
  1725. out.RawString(prefix[1:])
  1726. out.Bool(bool(in.Enabled))
  1727. }
  1728. out.RawByte('}')
  1729. }
  1730. // MarshalJSON supports json.Marshaler interface
  1731. func (v SetAttributionReportingLocalTestingModeParams) MarshalJSON() ([]byte, error) {
  1732. w := jwriter.Writer{}
  1733. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage22(&w, v)
  1734. return w.Buffer.BuildBytes(), w.Error
  1735. }
  1736. // MarshalEasyJSON supports easyjson.Marshaler interface
  1737. func (v SetAttributionReportingLocalTestingModeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1738. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage22(w, v)
  1739. }
  1740. // UnmarshalJSON supports json.Unmarshaler interface
  1741. func (v *SetAttributionReportingLocalTestingModeParams) UnmarshalJSON(data []byte) error {
  1742. r := jlexer.Lexer{Data: data}
  1743. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage22(&r, v)
  1744. return r.Error()
  1745. }
  1746. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1747. func (v *SetAttributionReportingLocalTestingModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1748. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage22(l, v)
  1749. }
  1750. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage23(in *jlexer.Lexer, out *SendPendingAttributionReportsReturns) {
  1751. isTopLevel := in.IsStart()
  1752. if in.IsNull() {
  1753. if isTopLevel {
  1754. in.Consumed()
  1755. }
  1756. in.Skip()
  1757. return
  1758. }
  1759. in.Delim('{')
  1760. for !in.IsDelim('}') {
  1761. key := in.UnsafeFieldName(false)
  1762. in.WantColon()
  1763. if in.IsNull() {
  1764. in.Skip()
  1765. in.WantComma()
  1766. continue
  1767. }
  1768. switch key {
  1769. case "numSent":
  1770. out.NumSent = int64(in.Int64())
  1771. default:
  1772. in.SkipRecursive()
  1773. }
  1774. in.WantComma()
  1775. }
  1776. in.Delim('}')
  1777. if isTopLevel {
  1778. in.Consumed()
  1779. }
  1780. }
  1781. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage23(out *jwriter.Writer, in SendPendingAttributionReportsReturns) {
  1782. out.RawByte('{')
  1783. first := true
  1784. _ = first
  1785. if in.NumSent != 0 {
  1786. const prefix string = ",\"numSent\":"
  1787. first = false
  1788. out.RawString(prefix[1:])
  1789. out.Int64(int64(in.NumSent))
  1790. }
  1791. out.RawByte('}')
  1792. }
  1793. // MarshalJSON supports json.Marshaler interface
  1794. func (v SendPendingAttributionReportsReturns) MarshalJSON() ([]byte, error) {
  1795. w := jwriter.Writer{}
  1796. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage23(&w, v)
  1797. return w.Buffer.BuildBytes(), w.Error
  1798. }
  1799. // MarshalEasyJSON supports easyjson.Marshaler interface
  1800. func (v SendPendingAttributionReportsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1801. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage23(w, v)
  1802. }
  1803. // UnmarshalJSON supports json.Unmarshaler interface
  1804. func (v *SendPendingAttributionReportsReturns) UnmarshalJSON(data []byte) error {
  1805. r := jlexer.Lexer{Data: data}
  1806. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage23(&r, v)
  1807. return r.Error()
  1808. }
  1809. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1810. func (v *SendPendingAttributionReportsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1811. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage23(l, v)
  1812. }
  1813. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage24(in *jlexer.Lexer, out *SendPendingAttributionReportsParams) {
  1814. isTopLevel := in.IsStart()
  1815. if in.IsNull() {
  1816. if isTopLevel {
  1817. in.Consumed()
  1818. }
  1819. in.Skip()
  1820. return
  1821. }
  1822. in.Delim('{')
  1823. for !in.IsDelim('}') {
  1824. key := in.UnsafeFieldName(false)
  1825. in.WantColon()
  1826. if in.IsNull() {
  1827. in.Skip()
  1828. in.WantComma()
  1829. continue
  1830. }
  1831. switch key {
  1832. default:
  1833. in.SkipRecursive()
  1834. }
  1835. in.WantComma()
  1836. }
  1837. in.Delim('}')
  1838. if isTopLevel {
  1839. in.Consumed()
  1840. }
  1841. }
  1842. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage24(out *jwriter.Writer, in SendPendingAttributionReportsParams) {
  1843. out.RawByte('{')
  1844. first := true
  1845. _ = first
  1846. out.RawByte('}')
  1847. }
  1848. // MarshalJSON supports json.Marshaler interface
  1849. func (v SendPendingAttributionReportsParams) MarshalJSON() ([]byte, error) {
  1850. w := jwriter.Writer{}
  1851. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage24(&w, v)
  1852. return w.Buffer.BuildBytes(), w.Error
  1853. }
  1854. // MarshalEasyJSON supports easyjson.Marshaler interface
  1855. func (v SendPendingAttributionReportsParams) MarshalEasyJSON(w *jwriter.Writer) {
  1856. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage24(w, v)
  1857. }
  1858. // UnmarshalJSON supports json.Unmarshaler interface
  1859. func (v *SendPendingAttributionReportsParams) UnmarshalJSON(data []byte) error {
  1860. r := jlexer.Lexer{Data: data}
  1861. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage24(&r, v)
  1862. return r.Error()
  1863. }
  1864. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1865. func (v *SendPendingAttributionReportsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1866. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage24(l, v)
  1867. }
  1868. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage25(in *jlexer.Lexer, out *RunBounceTrackingMitigationsReturns) {
  1869. isTopLevel := in.IsStart()
  1870. if in.IsNull() {
  1871. if isTopLevel {
  1872. in.Consumed()
  1873. }
  1874. in.Skip()
  1875. return
  1876. }
  1877. in.Delim('{')
  1878. for !in.IsDelim('}') {
  1879. key := in.UnsafeFieldName(false)
  1880. in.WantColon()
  1881. if in.IsNull() {
  1882. in.Skip()
  1883. in.WantComma()
  1884. continue
  1885. }
  1886. switch key {
  1887. case "deletedSites":
  1888. if in.IsNull() {
  1889. in.Skip()
  1890. out.DeletedSites = nil
  1891. } else {
  1892. in.Delim('[')
  1893. if out.DeletedSites == nil {
  1894. if !in.IsDelim(']') {
  1895. out.DeletedSites = make([]string, 0, 4)
  1896. } else {
  1897. out.DeletedSites = []string{}
  1898. }
  1899. } else {
  1900. out.DeletedSites = (out.DeletedSites)[:0]
  1901. }
  1902. for !in.IsDelim(']') {
  1903. var v10 string
  1904. v10 = string(in.String())
  1905. out.DeletedSites = append(out.DeletedSites, v10)
  1906. in.WantComma()
  1907. }
  1908. in.Delim(']')
  1909. }
  1910. default:
  1911. in.SkipRecursive()
  1912. }
  1913. in.WantComma()
  1914. }
  1915. in.Delim('}')
  1916. if isTopLevel {
  1917. in.Consumed()
  1918. }
  1919. }
  1920. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage25(out *jwriter.Writer, in RunBounceTrackingMitigationsReturns) {
  1921. out.RawByte('{')
  1922. first := true
  1923. _ = first
  1924. if len(in.DeletedSites) != 0 {
  1925. const prefix string = ",\"deletedSites\":"
  1926. first = false
  1927. out.RawString(prefix[1:])
  1928. {
  1929. out.RawByte('[')
  1930. for v11, v12 := range in.DeletedSites {
  1931. if v11 > 0 {
  1932. out.RawByte(',')
  1933. }
  1934. out.String(string(v12))
  1935. }
  1936. out.RawByte(']')
  1937. }
  1938. }
  1939. out.RawByte('}')
  1940. }
  1941. // MarshalJSON supports json.Marshaler interface
  1942. func (v RunBounceTrackingMitigationsReturns) MarshalJSON() ([]byte, error) {
  1943. w := jwriter.Writer{}
  1944. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage25(&w, v)
  1945. return w.Buffer.BuildBytes(), w.Error
  1946. }
  1947. // MarshalEasyJSON supports easyjson.Marshaler interface
  1948. func (v RunBounceTrackingMitigationsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1949. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage25(w, v)
  1950. }
  1951. // UnmarshalJSON supports json.Unmarshaler interface
  1952. func (v *RunBounceTrackingMitigationsReturns) UnmarshalJSON(data []byte) error {
  1953. r := jlexer.Lexer{Data: data}
  1954. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage25(&r, v)
  1955. return r.Error()
  1956. }
  1957. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1958. func (v *RunBounceTrackingMitigationsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1959. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage25(l, v)
  1960. }
  1961. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage26(in *jlexer.Lexer, out *RunBounceTrackingMitigationsParams) {
  1962. isTopLevel := in.IsStart()
  1963. if in.IsNull() {
  1964. if isTopLevel {
  1965. in.Consumed()
  1966. }
  1967. in.Skip()
  1968. return
  1969. }
  1970. in.Delim('{')
  1971. for !in.IsDelim('}') {
  1972. key := in.UnsafeFieldName(false)
  1973. in.WantColon()
  1974. if in.IsNull() {
  1975. in.Skip()
  1976. in.WantComma()
  1977. continue
  1978. }
  1979. switch key {
  1980. default:
  1981. in.SkipRecursive()
  1982. }
  1983. in.WantComma()
  1984. }
  1985. in.Delim('}')
  1986. if isTopLevel {
  1987. in.Consumed()
  1988. }
  1989. }
  1990. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage26(out *jwriter.Writer, in RunBounceTrackingMitigationsParams) {
  1991. out.RawByte('{')
  1992. first := true
  1993. _ = first
  1994. out.RawByte('}')
  1995. }
  1996. // MarshalJSON supports json.Marshaler interface
  1997. func (v RunBounceTrackingMitigationsParams) MarshalJSON() ([]byte, error) {
  1998. w := jwriter.Writer{}
  1999. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage26(&w, v)
  2000. return w.Buffer.BuildBytes(), w.Error
  2001. }
  2002. // MarshalEasyJSON supports easyjson.Marshaler interface
  2003. func (v RunBounceTrackingMitigationsParams) MarshalEasyJSON(w *jwriter.Writer) {
  2004. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage26(w, v)
  2005. }
  2006. // UnmarshalJSON supports json.Unmarshaler interface
  2007. func (v *RunBounceTrackingMitigationsParams) UnmarshalJSON(data []byte) error {
  2008. r := jlexer.Lexer{Data: data}
  2009. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage26(&r, v)
  2010. return r.Error()
  2011. }
  2012. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2013. func (v *RunBounceTrackingMitigationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2014. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage26(l, v)
  2015. }
  2016. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage27(in *jlexer.Lexer, out *ResetSharedStorageBudgetParams) {
  2017. isTopLevel := in.IsStart()
  2018. if in.IsNull() {
  2019. if isTopLevel {
  2020. in.Consumed()
  2021. }
  2022. in.Skip()
  2023. return
  2024. }
  2025. in.Delim('{')
  2026. for !in.IsDelim('}') {
  2027. key := in.UnsafeFieldName(false)
  2028. in.WantColon()
  2029. if in.IsNull() {
  2030. in.Skip()
  2031. in.WantComma()
  2032. continue
  2033. }
  2034. switch key {
  2035. case "ownerOrigin":
  2036. out.OwnerOrigin = string(in.String())
  2037. default:
  2038. in.SkipRecursive()
  2039. }
  2040. in.WantComma()
  2041. }
  2042. in.Delim('}')
  2043. if isTopLevel {
  2044. in.Consumed()
  2045. }
  2046. }
  2047. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage27(out *jwriter.Writer, in ResetSharedStorageBudgetParams) {
  2048. out.RawByte('{')
  2049. first := true
  2050. _ = first
  2051. {
  2052. const prefix string = ",\"ownerOrigin\":"
  2053. out.RawString(prefix[1:])
  2054. out.String(string(in.OwnerOrigin))
  2055. }
  2056. out.RawByte('}')
  2057. }
  2058. // MarshalJSON supports json.Marshaler interface
  2059. func (v ResetSharedStorageBudgetParams) MarshalJSON() ([]byte, error) {
  2060. w := jwriter.Writer{}
  2061. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage27(&w, v)
  2062. return w.Buffer.BuildBytes(), w.Error
  2063. }
  2064. // MarshalEasyJSON supports easyjson.Marshaler interface
  2065. func (v ResetSharedStorageBudgetParams) MarshalEasyJSON(w *jwriter.Writer) {
  2066. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage27(w, v)
  2067. }
  2068. // UnmarshalJSON supports json.Unmarshaler interface
  2069. func (v *ResetSharedStorageBudgetParams) UnmarshalJSON(data []byte) error {
  2070. r := jlexer.Lexer{Data: data}
  2071. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage27(&r, v)
  2072. return r.Error()
  2073. }
  2074. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2075. func (v *ResetSharedStorageBudgetParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2076. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage27(l, v)
  2077. }
  2078. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage28(in *jlexer.Lexer, out *RelatedWebsiteSet) {
  2079. isTopLevel := in.IsStart()
  2080. if in.IsNull() {
  2081. if isTopLevel {
  2082. in.Consumed()
  2083. }
  2084. in.Skip()
  2085. return
  2086. }
  2087. in.Delim('{')
  2088. for !in.IsDelim('}') {
  2089. key := in.UnsafeFieldName(false)
  2090. in.WantColon()
  2091. if in.IsNull() {
  2092. in.Skip()
  2093. in.WantComma()
  2094. continue
  2095. }
  2096. switch key {
  2097. case "primarySites":
  2098. if in.IsNull() {
  2099. in.Skip()
  2100. out.PrimarySites = nil
  2101. } else {
  2102. in.Delim('[')
  2103. if out.PrimarySites == nil {
  2104. if !in.IsDelim(']') {
  2105. out.PrimarySites = make([]string, 0, 4)
  2106. } else {
  2107. out.PrimarySites = []string{}
  2108. }
  2109. } else {
  2110. out.PrimarySites = (out.PrimarySites)[:0]
  2111. }
  2112. for !in.IsDelim(']') {
  2113. var v13 string
  2114. v13 = string(in.String())
  2115. out.PrimarySites = append(out.PrimarySites, v13)
  2116. in.WantComma()
  2117. }
  2118. in.Delim(']')
  2119. }
  2120. case "associatedSites":
  2121. if in.IsNull() {
  2122. in.Skip()
  2123. out.AssociatedSites = nil
  2124. } else {
  2125. in.Delim('[')
  2126. if out.AssociatedSites == nil {
  2127. if !in.IsDelim(']') {
  2128. out.AssociatedSites = make([]string, 0, 4)
  2129. } else {
  2130. out.AssociatedSites = []string{}
  2131. }
  2132. } else {
  2133. out.AssociatedSites = (out.AssociatedSites)[:0]
  2134. }
  2135. for !in.IsDelim(']') {
  2136. var v14 string
  2137. v14 = string(in.String())
  2138. out.AssociatedSites = append(out.AssociatedSites, v14)
  2139. in.WantComma()
  2140. }
  2141. in.Delim(']')
  2142. }
  2143. case "serviceSites":
  2144. if in.IsNull() {
  2145. in.Skip()
  2146. out.ServiceSites = nil
  2147. } else {
  2148. in.Delim('[')
  2149. if out.ServiceSites == nil {
  2150. if !in.IsDelim(']') {
  2151. out.ServiceSites = make([]string, 0, 4)
  2152. } else {
  2153. out.ServiceSites = []string{}
  2154. }
  2155. } else {
  2156. out.ServiceSites = (out.ServiceSites)[:0]
  2157. }
  2158. for !in.IsDelim(']') {
  2159. var v15 string
  2160. v15 = string(in.String())
  2161. out.ServiceSites = append(out.ServiceSites, v15)
  2162. in.WantComma()
  2163. }
  2164. in.Delim(']')
  2165. }
  2166. default:
  2167. in.SkipRecursive()
  2168. }
  2169. in.WantComma()
  2170. }
  2171. in.Delim('}')
  2172. if isTopLevel {
  2173. in.Consumed()
  2174. }
  2175. }
  2176. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage28(out *jwriter.Writer, in RelatedWebsiteSet) {
  2177. out.RawByte('{')
  2178. first := true
  2179. _ = first
  2180. {
  2181. const prefix string = ",\"primarySites\":"
  2182. out.RawString(prefix[1:])
  2183. if in.PrimarySites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2184. out.RawString("null")
  2185. } else {
  2186. out.RawByte('[')
  2187. for v16, v17 := range in.PrimarySites {
  2188. if v16 > 0 {
  2189. out.RawByte(',')
  2190. }
  2191. out.String(string(v17))
  2192. }
  2193. out.RawByte(']')
  2194. }
  2195. }
  2196. {
  2197. const prefix string = ",\"associatedSites\":"
  2198. out.RawString(prefix)
  2199. if in.AssociatedSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2200. out.RawString("null")
  2201. } else {
  2202. out.RawByte('[')
  2203. for v18, v19 := range in.AssociatedSites {
  2204. if v18 > 0 {
  2205. out.RawByte(',')
  2206. }
  2207. out.String(string(v19))
  2208. }
  2209. out.RawByte(']')
  2210. }
  2211. }
  2212. {
  2213. const prefix string = ",\"serviceSites\":"
  2214. out.RawString(prefix)
  2215. if in.ServiceSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2216. out.RawString("null")
  2217. } else {
  2218. out.RawByte('[')
  2219. for v20, v21 := range in.ServiceSites {
  2220. if v20 > 0 {
  2221. out.RawByte(',')
  2222. }
  2223. out.String(string(v21))
  2224. }
  2225. out.RawByte(']')
  2226. }
  2227. }
  2228. out.RawByte('}')
  2229. }
  2230. // MarshalJSON supports json.Marshaler interface
  2231. func (v RelatedWebsiteSet) MarshalJSON() ([]byte, error) {
  2232. w := jwriter.Writer{}
  2233. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage28(&w, v)
  2234. return w.Buffer.BuildBytes(), w.Error
  2235. }
  2236. // MarshalEasyJSON supports easyjson.Marshaler interface
  2237. func (v RelatedWebsiteSet) MarshalEasyJSON(w *jwriter.Writer) {
  2238. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage28(w, v)
  2239. }
  2240. // UnmarshalJSON supports json.Unmarshaler interface
  2241. func (v *RelatedWebsiteSet) UnmarshalJSON(data []byte) error {
  2242. r := jlexer.Lexer{Data: data}
  2243. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage28(&r, v)
  2244. return r.Error()
  2245. }
  2246. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2247. func (v *RelatedWebsiteSet) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2248. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage28(l, v)
  2249. }
  2250. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage29(in *jlexer.Lexer, out *OverrideQuotaForOriginParams) {
  2251. isTopLevel := in.IsStart()
  2252. if in.IsNull() {
  2253. if isTopLevel {
  2254. in.Consumed()
  2255. }
  2256. in.Skip()
  2257. return
  2258. }
  2259. in.Delim('{')
  2260. for !in.IsDelim('}') {
  2261. key := in.UnsafeFieldName(false)
  2262. in.WantColon()
  2263. if in.IsNull() {
  2264. in.Skip()
  2265. in.WantComma()
  2266. continue
  2267. }
  2268. switch key {
  2269. case "origin":
  2270. out.Origin = string(in.String())
  2271. case "quotaSize":
  2272. out.QuotaSize = float64(in.Float64())
  2273. default:
  2274. in.SkipRecursive()
  2275. }
  2276. in.WantComma()
  2277. }
  2278. in.Delim('}')
  2279. if isTopLevel {
  2280. in.Consumed()
  2281. }
  2282. }
  2283. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage29(out *jwriter.Writer, in OverrideQuotaForOriginParams) {
  2284. out.RawByte('{')
  2285. first := true
  2286. _ = first
  2287. {
  2288. const prefix string = ",\"origin\":"
  2289. out.RawString(prefix[1:])
  2290. out.String(string(in.Origin))
  2291. }
  2292. if in.QuotaSize != 0 {
  2293. const prefix string = ",\"quotaSize\":"
  2294. out.RawString(prefix)
  2295. out.Float64(float64(in.QuotaSize))
  2296. }
  2297. out.RawByte('}')
  2298. }
  2299. // MarshalJSON supports json.Marshaler interface
  2300. func (v OverrideQuotaForOriginParams) MarshalJSON() ([]byte, error) {
  2301. w := jwriter.Writer{}
  2302. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage29(&w, v)
  2303. return w.Buffer.BuildBytes(), w.Error
  2304. }
  2305. // MarshalEasyJSON supports easyjson.Marshaler interface
  2306. func (v OverrideQuotaForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
  2307. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage29(w, v)
  2308. }
  2309. // UnmarshalJSON supports json.Unmarshaler interface
  2310. func (v *OverrideQuotaForOriginParams) UnmarshalJSON(data []byte) error {
  2311. r := jlexer.Lexer{Data: data}
  2312. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage29(&r, v)
  2313. return r.Error()
  2314. }
  2315. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2316. func (v *OverrideQuotaForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2317. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage29(l, v)
  2318. }
  2319. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage30(in *jlexer.Lexer, out *GetUsageAndQuotaReturns) {
  2320. isTopLevel := in.IsStart()
  2321. if in.IsNull() {
  2322. if isTopLevel {
  2323. in.Consumed()
  2324. }
  2325. in.Skip()
  2326. return
  2327. }
  2328. in.Delim('{')
  2329. for !in.IsDelim('}') {
  2330. key := in.UnsafeFieldName(false)
  2331. in.WantColon()
  2332. if in.IsNull() {
  2333. in.Skip()
  2334. in.WantComma()
  2335. continue
  2336. }
  2337. switch key {
  2338. case "usage":
  2339. out.Usage = float64(in.Float64())
  2340. case "quota":
  2341. out.Quota = float64(in.Float64())
  2342. case "overrideActive":
  2343. out.OverrideActive = bool(in.Bool())
  2344. case "usageBreakdown":
  2345. if in.IsNull() {
  2346. in.Skip()
  2347. out.UsageBreakdown = nil
  2348. } else {
  2349. in.Delim('[')
  2350. if out.UsageBreakdown == nil {
  2351. if !in.IsDelim(']') {
  2352. out.UsageBreakdown = make([]*UsageForType, 0, 8)
  2353. } else {
  2354. out.UsageBreakdown = []*UsageForType{}
  2355. }
  2356. } else {
  2357. out.UsageBreakdown = (out.UsageBreakdown)[:0]
  2358. }
  2359. for !in.IsDelim(']') {
  2360. var v22 *UsageForType
  2361. if in.IsNull() {
  2362. in.Skip()
  2363. v22 = nil
  2364. } else {
  2365. if v22 == nil {
  2366. v22 = new(UsageForType)
  2367. }
  2368. (*v22).UnmarshalEasyJSON(in)
  2369. }
  2370. out.UsageBreakdown = append(out.UsageBreakdown, v22)
  2371. in.WantComma()
  2372. }
  2373. in.Delim(']')
  2374. }
  2375. default:
  2376. in.SkipRecursive()
  2377. }
  2378. in.WantComma()
  2379. }
  2380. in.Delim('}')
  2381. if isTopLevel {
  2382. in.Consumed()
  2383. }
  2384. }
  2385. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage30(out *jwriter.Writer, in GetUsageAndQuotaReturns) {
  2386. out.RawByte('{')
  2387. first := true
  2388. _ = first
  2389. if in.Usage != 0 {
  2390. const prefix string = ",\"usage\":"
  2391. first = false
  2392. out.RawString(prefix[1:])
  2393. out.Float64(float64(in.Usage))
  2394. }
  2395. if in.Quota != 0 {
  2396. const prefix string = ",\"quota\":"
  2397. if first {
  2398. first = false
  2399. out.RawString(prefix[1:])
  2400. } else {
  2401. out.RawString(prefix)
  2402. }
  2403. out.Float64(float64(in.Quota))
  2404. }
  2405. if in.OverrideActive {
  2406. const prefix string = ",\"overrideActive\":"
  2407. if first {
  2408. first = false
  2409. out.RawString(prefix[1:])
  2410. } else {
  2411. out.RawString(prefix)
  2412. }
  2413. out.Bool(bool(in.OverrideActive))
  2414. }
  2415. if len(in.UsageBreakdown) != 0 {
  2416. const prefix string = ",\"usageBreakdown\":"
  2417. if first {
  2418. first = false
  2419. out.RawString(prefix[1:])
  2420. } else {
  2421. out.RawString(prefix)
  2422. }
  2423. {
  2424. out.RawByte('[')
  2425. for v23, v24 := range in.UsageBreakdown {
  2426. if v23 > 0 {
  2427. out.RawByte(',')
  2428. }
  2429. if v24 == nil {
  2430. out.RawString("null")
  2431. } else {
  2432. (*v24).MarshalEasyJSON(out)
  2433. }
  2434. }
  2435. out.RawByte(']')
  2436. }
  2437. }
  2438. out.RawByte('}')
  2439. }
  2440. // MarshalJSON supports json.Marshaler interface
  2441. func (v GetUsageAndQuotaReturns) MarshalJSON() ([]byte, error) {
  2442. w := jwriter.Writer{}
  2443. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage30(&w, v)
  2444. return w.Buffer.BuildBytes(), w.Error
  2445. }
  2446. // MarshalEasyJSON supports easyjson.Marshaler interface
  2447. func (v GetUsageAndQuotaReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2448. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage30(w, v)
  2449. }
  2450. // UnmarshalJSON supports json.Unmarshaler interface
  2451. func (v *GetUsageAndQuotaReturns) UnmarshalJSON(data []byte) error {
  2452. r := jlexer.Lexer{Data: data}
  2453. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage30(&r, v)
  2454. return r.Error()
  2455. }
  2456. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2457. func (v *GetUsageAndQuotaReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2458. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage30(l, v)
  2459. }
  2460. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage31(in *jlexer.Lexer, out *GetUsageAndQuotaParams) {
  2461. isTopLevel := in.IsStart()
  2462. if in.IsNull() {
  2463. if isTopLevel {
  2464. in.Consumed()
  2465. }
  2466. in.Skip()
  2467. return
  2468. }
  2469. in.Delim('{')
  2470. for !in.IsDelim('}') {
  2471. key := in.UnsafeFieldName(false)
  2472. in.WantColon()
  2473. if in.IsNull() {
  2474. in.Skip()
  2475. in.WantComma()
  2476. continue
  2477. }
  2478. switch key {
  2479. case "origin":
  2480. out.Origin = string(in.String())
  2481. default:
  2482. in.SkipRecursive()
  2483. }
  2484. in.WantComma()
  2485. }
  2486. in.Delim('}')
  2487. if isTopLevel {
  2488. in.Consumed()
  2489. }
  2490. }
  2491. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage31(out *jwriter.Writer, in GetUsageAndQuotaParams) {
  2492. out.RawByte('{')
  2493. first := true
  2494. _ = first
  2495. {
  2496. const prefix string = ",\"origin\":"
  2497. out.RawString(prefix[1:])
  2498. out.String(string(in.Origin))
  2499. }
  2500. out.RawByte('}')
  2501. }
  2502. // MarshalJSON supports json.Marshaler interface
  2503. func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error) {
  2504. w := jwriter.Writer{}
  2505. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage31(&w, v)
  2506. return w.Buffer.BuildBytes(), w.Error
  2507. }
  2508. // MarshalEasyJSON supports easyjson.Marshaler interface
  2509. func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer) {
  2510. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage31(w, v)
  2511. }
  2512. // UnmarshalJSON supports json.Unmarshaler interface
  2513. func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error {
  2514. r := jlexer.Lexer{Data: data}
  2515. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage31(&r, v)
  2516. return r.Error()
  2517. }
  2518. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2519. func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2520. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage31(l, v)
  2521. }
  2522. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage32(in *jlexer.Lexer, out *GetTrustTokensReturns) {
  2523. isTopLevel := in.IsStart()
  2524. if in.IsNull() {
  2525. if isTopLevel {
  2526. in.Consumed()
  2527. }
  2528. in.Skip()
  2529. return
  2530. }
  2531. in.Delim('{')
  2532. for !in.IsDelim('}') {
  2533. key := in.UnsafeFieldName(false)
  2534. in.WantColon()
  2535. if in.IsNull() {
  2536. in.Skip()
  2537. in.WantComma()
  2538. continue
  2539. }
  2540. switch key {
  2541. case "tokens":
  2542. if in.IsNull() {
  2543. in.Skip()
  2544. out.Tokens = nil
  2545. } else {
  2546. in.Delim('[')
  2547. if out.Tokens == nil {
  2548. if !in.IsDelim(']') {
  2549. out.Tokens = make([]*TrustTokens, 0, 8)
  2550. } else {
  2551. out.Tokens = []*TrustTokens{}
  2552. }
  2553. } else {
  2554. out.Tokens = (out.Tokens)[:0]
  2555. }
  2556. for !in.IsDelim(']') {
  2557. var v25 *TrustTokens
  2558. if in.IsNull() {
  2559. in.Skip()
  2560. v25 = nil
  2561. } else {
  2562. if v25 == nil {
  2563. v25 = new(TrustTokens)
  2564. }
  2565. (*v25).UnmarshalEasyJSON(in)
  2566. }
  2567. out.Tokens = append(out.Tokens, v25)
  2568. in.WantComma()
  2569. }
  2570. in.Delim(']')
  2571. }
  2572. default:
  2573. in.SkipRecursive()
  2574. }
  2575. in.WantComma()
  2576. }
  2577. in.Delim('}')
  2578. if isTopLevel {
  2579. in.Consumed()
  2580. }
  2581. }
  2582. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage32(out *jwriter.Writer, in GetTrustTokensReturns) {
  2583. out.RawByte('{')
  2584. first := true
  2585. _ = first
  2586. if len(in.Tokens) != 0 {
  2587. const prefix string = ",\"tokens\":"
  2588. first = false
  2589. out.RawString(prefix[1:])
  2590. {
  2591. out.RawByte('[')
  2592. for v26, v27 := range in.Tokens {
  2593. if v26 > 0 {
  2594. out.RawByte(',')
  2595. }
  2596. if v27 == nil {
  2597. out.RawString("null")
  2598. } else {
  2599. (*v27).MarshalEasyJSON(out)
  2600. }
  2601. }
  2602. out.RawByte(']')
  2603. }
  2604. }
  2605. out.RawByte('}')
  2606. }
  2607. // MarshalJSON supports json.Marshaler interface
  2608. func (v GetTrustTokensReturns) MarshalJSON() ([]byte, error) {
  2609. w := jwriter.Writer{}
  2610. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage32(&w, v)
  2611. return w.Buffer.BuildBytes(), w.Error
  2612. }
  2613. // MarshalEasyJSON supports easyjson.Marshaler interface
  2614. func (v GetTrustTokensReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2615. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage32(w, v)
  2616. }
  2617. // UnmarshalJSON supports json.Unmarshaler interface
  2618. func (v *GetTrustTokensReturns) UnmarshalJSON(data []byte) error {
  2619. r := jlexer.Lexer{Data: data}
  2620. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage32(&r, v)
  2621. return r.Error()
  2622. }
  2623. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2624. func (v *GetTrustTokensReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2625. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage32(l, v)
  2626. }
  2627. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage33(in *jlexer.Lexer, out *GetTrustTokensParams) {
  2628. isTopLevel := in.IsStart()
  2629. if in.IsNull() {
  2630. if isTopLevel {
  2631. in.Consumed()
  2632. }
  2633. in.Skip()
  2634. return
  2635. }
  2636. in.Delim('{')
  2637. for !in.IsDelim('}') {
  2638. key := in.UnsafeFieldName(false)
  2639. in.WantColon()
  2640. if in.IsNull() {
  2641. in.Skip()
  2642. in.WantComma()
  2643. continue
  2644. }
  2645. switch key {
  2646. default:
  2647. in.SkipRecursive()
  2648. }
  2649. in.WantComma()
  2650. }
  2651. in.Delim('}')
  2652. if isTopLevel {
  2653. in.Consumed()
  2654. }
  2655. }
  2656. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage33(out *jwriter.Writer, in GetTrustTokensParams) {
  2657. out.RawByte('{')
  2658. first := true
  2659. _ = first
  2660. out.RawByte('}')
  2661. }
  2662. // MarshalJSON supports json.Marshaler interface
  2663. func (v GetTrustTokensParams) MarshalJSON() ([]byte, error) {
  2664. w := jwriter.Writer{}
  2665. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage33(&w, v)
  2666. return w.Buffer.BuildBytes(), w.Error
  2667. }
  2668. // MarshalEasyJSON supports easyjson.Marshaler interface
  2669. func (v GetTrustTokensParams) MarshalEasyJSON(w *jwriter.Writer) {
  2670. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage33(w, v)
  2671. }
  2672. // UnmarshalJSON supports json.Unmarshaler interface
  2673. func (v *GetTrustTokensParams) UnmarshalJSON(data []byte) error {
  2674. r := jlexer.Lexer{Data: data}
  2675. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage33(&r, v)
  2676. return r.Error()
  2677. }
  2678. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2679. func (v *GetTrustTokensParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2680. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage33(l, v)
  2681. }
  2682. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage34(in *jlexer.Lexer, out *GetStorageKeyForFrameReturns) {
  2683. isTopLevel := in.IsStart()
  2684. if in.IsNull() {
  2685. if isTopLevel {
  2686. in.Consumed()
  2687. }
  2688. in.Skip()
  2689. return
  2690. }
  2691. in.Delim('{')
  2692. for !in.IsDelim('}') {
  2693. key := in.UnsafeFieldName(false)
  2694. in.WantColon()
  2695. if in.IsNull() {
  2696. in.Skip()
  2697. in.WantComma()
  2698. continue
  2699. }
  2700. switch key {
  2701. case "storageKey":
  2702. out.StorageKey = SerializedStorageKey(in.String())
  2703. default:
  2704. in.SkipRecursive()
  2705. }
  2706. in.WantComma()
  2707. }
  2708. in.Delim('}')
  2709. if isTopLevel {
  2710. in.Consumed()
  2711. }
  2712. }
  2713. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage34(out *jwriter.Writer, in GetStorageKeyForFrameReturns) {
  2714. out.RawByte('{')
  2715. first := true
  2716. _ = first
  2717. if in.StorageKey != "" {
  2718. const prefix string = ",\"storageKey\":"
  2719. first = false
  2720. out.RawString(prefix[1:])
  2721. out.String(string(in.StorageKey))
  2722. }
  2723. out.RawByte('}')
  2724. }
  2725. // MarshalJSON supports json.Marshaler interface
  2726. func (v GetStorageKeyForFrameReturns) MarshalJSON() ([]byte, error) {
  2727. w := jwriter.Writer{}
  2728. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage34(&w, v)
  2729. return w.Buffer.BuildBytes(), w.Error
  2730. }
  2731. // MarshalEasyJSON supports easyjson.Marshaler interface
  2732. func (v GetStorageKeyForFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2733. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage34(w, v)
  2734. }
  2735. // UnmarshalJSON supports json.Unmarshaler interface
  2736. func (v *GetStorageKeyForFrameReturns) UnmarshalJSON(data []byte) error {
  2737. r := jlexer.Lexer{Data: data}
  2738. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage34(&r, v)
  2739. return r.Error()
  2740. }
  2741. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2742. func (v *GetStorageKeyForFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2743. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage34(l, v)
  2744. }
  2745. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage35(in *jlexer.Lexer, out *GetStorageKeyForFrameParams) {
  2746. isTopLevel := in.IsStart()
  2747. if in.IsNull() {
  2748. if isTopLevel {
  2749. in.Consumed()
  2750. }
  2751. in.Skip()
  2752. return
  2753. }
  2754. in.Delim('{')
  2755. for !in.IsDelim('}') {
  2756. key := in.UnsafeFieldName(false)
  2757. in.WantColon()
  2758. if in.IsNull() {
  2759. in.Skip()
  2760. in.WantComma()
  2761. continue
  2762. }
  2763. switch key {
  2764. case "frameId":
  2765. (out.FrameID).UnmarshalEasyJSON(in)
  2766. default:
  2767. in.SkipRecursive()
  2768. }
  2769. in.WantComma()
  2770. }
  2771. in.Delim('}')
  2772. if isTopLevel {
  2773. in.Consumed()
  2774. }
  2775. }
  2776. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage35(out *jwriter.Writer, in GetStorageKeyForFrameParams) {
  2777. out.RawByte('{')
  2778. first := true
  2779. _ = first
  2780. {
  2781. const prefix string = ",\"frameId\":"
  2782. out.RawString(prefix[1:])
  2783. out.String(string(in.FrameID))
  2784. }
  2785. out.RawByte('}')
  2786. }
  2787. // MarshalJSON supports json.Marshaler interface
  2788. func (v GetStorageKeyForFrameParams) MarshalJSON() ([]byte, error) {
  2789. w := jwriter.Writer{}
  2790. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage35(&w, v)
  2791. return w.Buffer.BuildBytes(), w.Error
  2792. }
  2793. // MarshalEasyJSON supports easyjson.Marshaler interface
  2794. func (v GetStorageKeyForFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
  2795. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage35(w, v)
  2796. }
  2797. // UnmarshalJSON supports json.Unmarshaler interface
  2798. func (v *GetStorageKeyForFrameParams) UnmarshalJSON(data []byte) error {
  2799. r := jlexer.Lexer{Data: data}
  2800. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage35(&r, v)
  2801. return r.Error()
  2802. }
  2803. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2804. func (v *GetStorageKeyForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2805. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage35(l, v)
  2806. }
  2807. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage36(in *jlexer.Lexer, out *GetSharedStorageMetadataReturns) {
  2808. isTopLevel := in.IsStart()
  2809. if in.IsNull() {
  2810. if isTopLevel {
  2811. in.Consumed()
  2812. }
  2813. in.Skip()
  2814. return
  2815. }
  2816. in.Delim('{')
  2817. for !in.IsDelim('}') {
  2818. key := in.UnsafeFieldName(false)
  2819. in.WantColon()
  2820. if in.IsNull() {
  2821. in.Skip()
  2822. in.WantComma()
  2823. continue
  2824. }
  2825. switch key {
  2826. case "metadata":
  2827. if in.IsNull() {
  2828. in.Skip()
  2829. out.Metadata = nil
  2830. } else {
  2831. if out.Metadata == nil {
  2832. out.Metadata = new(SharedStorageMetadata)
  2833. }
  2834. (*out.Metadata).UnmarshalEasyJSON(in)
  2835. }
  2836. default:
  2837. in.SkipRecursive()
  2838. }
  2839. in.WantComma()
  2840. }
  2841. in.Delim('}')
  2842. if isTopLevel {
  2843. in.Consumed()
  2844. }
  2845. }
  2846. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage36(out *jwriter.Writer, in GetSharedStorageMetadataReturns) {
  2847. out.RawByte('{')
  2848. first := true
  2849. _ = first
  2850. if in.Metadata != nil {
  2851. const prefix string = ",\"metadata\":"
  2852. first = false
  2853. out.RawString(prefix[1:])
  2854. (*in.Metadata).MarshalEasyJSON(out)
  2855. }
  2856. out.RawByte('}')
  2857. }
  2858. // MarshalJSON supports json.Marshaler interface
  2859. func (v GetSharedStorageMetadataReturns) MarshalJSON() ([]byte, error) {
  2860. w := jwriter.Writer{}
  2861. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage36(&w, v)
  2862. return w.Buffer.BuildBytes(), w.Error
  2863. }
  2864. // MarshalEasyJSON supports easyjson.Marshaler interface
  2865. func (v GetSharedStorageMetadataReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2866. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage36(w, v)
  2867. }
  2868. // UnmarshalJSON supports json.Unmarshaler interface
  2869. func (v *GetSharedStorageMetadataReturns) UnmarshalJSON(data []byte) error {
  2870. r := jlexer.Lexer{Data: data}
  2871. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage36(&r, v)
  2872. return r.Error()
  2873. }
  2874. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2875. func (v *GetSharedStorageMetadataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2876. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage36(l, v)
  2877. }
  2878. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage37(in *jlexer.Lexer, out *GetSharedStorageMetadataParams) {
  2879. isTopLevel := in.IsStart()
  2880. if in.IsNull() {
  2881. if isTopLevel {
  2882. in.Consumed()
  2883. }
  2884. in.Skip()
  2885. return
  2886. }
  2887. in.Delim('{')
  2888. for !in.IsDelim('}') {
  2889. key := in.UnsafeFieldName(false)
  2890. in.WantColon()
  2891. if in.IsNull() {
  2892. in.Skip()
  2893. in.WantComma()
  2894. continue
  2895. }
  2896. switch key {
  2897. case "ownerOrigin":
  2898. out.OwnerOrigin = string(in.String())
  2899. default:
  2900. in.SkipRecursive()
  2901. }
  2902. in.WantComma()
  2903. }
  2904. in.Delim('}')
  2905. if isTopLevel {
  2906. in.Consumed()
  2907. }
  2908. }
  2909. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage37(out *jwriter.Writer, in GetSharedStorageMetadataParams) {
  2910. out.RawByte('{')
  2911. first := true
  2912. _ = first
  2913. {
  2914. const prefix string = ",\"ownerOrigin\":"
  2915. out.RawString(prefix[1:])
  2916. out.String(string(in.OwnerOrigin))
  2917. }
  2918. out.RawByte('}')
  2919. }
  2920. // MarshalJSON supports json.Marshaler interface
  2921. func (v GetSharedStorageMetadataParams) MarshalJSON() ([]byte, error) {
  2922. w := jwriter.Writer{}
  2923. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage37(&w, v)
  2924. return w.Buffer.BuildBytes(), w.Error
  2925. }
  2926. // MarshalEasyJSON supports easyjson.Marshaler interface
  2927. func (v GetSharedStorageMetadataParams) MarshalEasyJSON(w *jwriter.Writer) {
  2928. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage37(w, v)
  2929. }
  2930. // UnmarshalJSON supports json.Unmarshaler interface
  2931. func (v *GetSharedStorageMetadataParams) UnmarshalJSON(data []byte) error {
  2932. r := jlexer.Lexer{Data: data}
  2933. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage37(&r, v)
  2934. return r.Error()
  2935. }
  2936. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2937. func (v *GetSharedStorageMetadataParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2938. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage37(l, v)
  2939. }
  2940. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage38(in *jlexer.Lexer, out *GetSharedStorageEntriesReturns) {
  2941. isTopLevel := in.IsStart()
  2942. if in.IsNull() {
  2943. if isTopLevel {
  2944. in.Consumed()
  2945. }
  2946. in.Skip()
  2947. return
  2948. }
  2949. in.Delim('{')
  2950. for !in.IsDelim('}') {
  2951. key := in.UnsafeFieldName(false)
  2952. in.WantColon()
  2953. if in.IsNull() {
  2954. in.Skip()
  2955. in.WantComma()
  2956. continue
  2957. }
  2958. switch key {
  2959. case "entries":
  2960. if in.IsNull() {
  2961. in.Skip()
  2962. out.Entries = nil
  2963. } else {
  2964. in.Delim('[')
  2965. if out.Entries == nil {
  2966. if !in.IsDelim(']') {
  2967. out.Entries = make([]*SharedStorageEntry, 0, 8)
  2968. } else {
  2969. out.Entries = []*SharedStorageEntry{}
  2970. }
  2971. } else {
  2972. out.Entries = (out.Entries)[:0]
  2973. }
  2974. for !in.IsDelim(']') {
  2975. var v28 *SharedStorageEntry
  2976. if in.IsNull() {
  2977. in.Skip()
  2978. v28 = nil
  2979. } else {
  2980. if v28 == nil {
  2981. v28 = new(SharedStorageEntry)
  2982. }
  2983. (*v28).UnmarshalEasyJSON(in)
  2984. }
  2985. out.Entries = append(out.Entries, v28)
  2986. in.WantComma()
  2987. }
  2988. in.Delim(']')
  2989. }
  2990. default:
  2991. in.SkipRecursive()
  2992. }
  2993. in.WantComma()
  2994. }
  2995. in.Delim('}')
  2996. if isTopLevel {
  2997. in.Consumed()
  2998. }
  2999. }
  3000. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage38(out *jwriter.Writer, in GetSharedStorageEntriesReturns) {
  3001. out.RawByte('{')
  3002. first := true
  3003. _ = first
  3004. if len(in.Entries) != 0 {
  3005. const prefix string = ",\"entries\":"
  3006. first = false
  3007. out.RawString(prefix[1:])
  3008. {
  3009. out.RawByte('[')
  3010. for v29, v30 := range in.Entries {
  3011. if v29 > 0 {
  3012. out.RawByte(',')
  3013. }
  3014. if v30 == nil {
  3015. out.RawString("null")
  3016. } else {
  3017. (*v30).MarshalEasyJSON(out)
  3018. }
  3019. }
  3020. out.RawByte(']')
  3021. }
  3022. }
  3023. out.RawByte('}')
  3024. }
  3025. // MarshalJSON supports json.Marshaler interface
  3026. func (v GetSharedStorageEntriesReturns) MarshalJSON() ([]byte, error) {
  3027. w := jwriter.Writer{}
  3028. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage38(&w, v)
  3029. return w.Buffer.BuildBytes(), w.Error
  3030. }
  3031. // MarshalEasyJSON supports easyjson.Marshaler interface
  3032. func (v GetSharedStorageEntriesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3033. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage38(w, v)
  3034. }
  3035. // UnmarshalJSON supports json.Unmarshaler interface
  3036. func (v *GetSharedStorageEntriesReturns) UnmarshalJSON(data []byte) error {
  3037. r := jlexer.Lexer{Data: data}
  3038. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage38(&r, v)
  3039. return r.Error()
  3040. }
  3041. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3042. func (v *GetSharedStorageEntriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3043. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage38(l, v)
  3044. }
  3045. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage39(in *jlexer.Lexer, out *GetSharedStorageEntriesParams) {
  3046. isTopLevel := in.IsStart()
  3047. if in.IsNull() {
  3048. if isTopLevel {
  3049. in.Consumed()
  3050. }
  3051. in.Skip()
  3052. return
  3053. }
  3054. in.Delim('{')
  3055. for !in.IsDelim('}') {
  3056. key := in.UnsafeFieldName(false)
  3057. in.WantColon()
  3058. if in.IsNull() {
  3059. in.Skip()
  3060. in.WantComma()
  3061. continue
  3062. }
  3063. switch key {
  3064. case "ownerOrigin":
  3065. out.OwnerOrigin = string(in.String())
  3066. default:
  3067. in.SkipRecursive()
  3068. }
  3069. in.WantComma()
  3070. }
  3071. in.Delim('}')
  3072. if isTopLevel {
  3073. in.Consumed()
  3074. }
  3075. }
  3076. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage39(out *jwriter.Writer, in GetSharedStorageEntriesParams) {
  3077. out.RawByte('{')
  3078. first := true
  3079. _ = first
  3080. {
  3081. const prefix string = ",\"ownerOrigin\":"
  3082. out.RawString(prefix[1:])
  3083. out.String(string(in.OwnerOrigin))
  3084. }
  3085. out.RawByte('}')
  3086. }
  3087. // MarshalJSON supports json.Marshaler interface
  3088. func (v GetSharedStorageEntriesParams) MarshalJSON() ([]byte, error) {
  3089. w := jwriter.Writer{}
  3090. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage39(&w, v)
  3091. return w.Buffer.BuildBytes(), w.Error
  3092. }
  3093. // MarshalEasyJSON supports easyjson.Marshaler interface
  3094. func (v GetSharedStorageEntriesParams) MarshalEasyJSON(w *jwriter.Writer) {
  3095. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage39(w, v)
  3096. }
  3097. // UnmarshalJSON supports json.Unmarshaler interface
  3098. func (v *GetSharedStorageEntriesParams) UnmarshalJSON(data []byte) error {
  3099. r := jlexer.Lexer{Data: data}
  3100. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage39(&r, v)
  3101. return r.Error()
  3102. }
  3103. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3104. func (v *GetSharedStorageEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3105. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage39(l, v)
  3106. }
  3107. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage40(in *jlexer.Lexer, out *GetRelatedWebsiteSetsReturns) {
  3108. isTopLevel := in.IsStart()
  3109. if in.IsNull() {
  3110. if isTopLevel {
  3111. in.Consumed()
  3112. }
  3113. in.Skip()
  3114. return
  3115. }
  3116. in.Delim('{')
  3117. for !in.IsDelim('}') {
  3118. key := in.UnsafeFieldName(false)
  3119. in.WantColon()
  3120. if in.IsNull() {
  3121. in.Skip()
  3122. in.WantComma()
  3123. continue
  3124. }
  3125. switch key {
  3126. case "sets":
  3127. if in.IsNull() {
  3128. in.Skip()
  3129. out.Sets = nil
  3130. } else {
  3131. in.Delim('[')
  3132. if out.Sets == nil {
  3133. if !in.IsDelim(']') {
  3134. out.Sets = make([]*RelatedWebsiteSet, 0, 8)
  3135. } else {
  3136. out.Sets = []*RelatedWebsiteSet{}
  3137. }
  3138. } else {
  3139. out.Sets = (out.Sets)[:0]
  3140. }
  3141. for !in.IsDelim(']') {
  3142. var v31 *RelatedWebsiteSet
  3143. if in.IsNull() {
  3144. in.Skip()
  3145. v31 = nil
  3146. } else {
  3147. if v31 == nil {
  3148. v31 = new(RelatedWebsiteSet)
  3149. }
  3150. (*v31).UnmarshalEasyJSON(in)
  3151. }
  3152. out.Sets = append(out.Sets, v31)
  3153. in.WantComma()
  3154. }
  3155. in.Delim(']')
  3156. }
  3157. default:
  3158. in.SkipRecursive()
  3159. }
  3160. in.WantComma()
  3161. }
  3162. in.Delim('}')
  3163. if isTopLevel {
  3164. in.Consumed()
  3165. }
  3166. }
  3167. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage40(out *jwriter.Writer, in GetRelatedWebsiteSetsReturns) {
  3168. out.RawByte('{')
  3169. first := true
  3170. _ = first
  3171. if len(in.Sets) != 0 {
  3172. const prefix string = ",\"sets\":"
  3173. first = false
  3174. out.RawString(prefix[1:])
  3175. {
  3176. out.RawByte('[')
  3177. for v32, v33 := range in.Sets {
  3178. if v32 > 0 {
  3179. out.RawByte(',')
  3180. }
  3181. if v33 == nil {
  3182. out.RawString("null")
  3183. } else {
  3184. (*v33).MarshalEasyJSON(out)
  3185. }
  3186. }
  3187. out.RawByte(']')
  3188. }
  3189. }
  3190. out.RawByte('}')
  3191. }
  3192. // MarshalJSON supports json.Marshaler interface
  3193. func (v GetRelatedWebsiteSetsReturns) MarshalJSON() ([]byte, error) {
  3194. w := jwriter.Writer{}
  3195. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage40(&w, v)
  3196. return w.Buffer.BuildBytes(), w.Error
  3197. }
  3198. // MarshalEasyJSON supports easyjson.Marshaler interface
  3199. func (v GetRelatedWebsiteSetsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3200. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage40(w, v)
  3201. }
  3202. // UnmarshalJSON supports json.Unmarshaler interface
  3203. func (v *GetRelatedWebsiteSetsReturns) UnmarshalJSON(data []byte) error {
  3204. r := jlexer.Lexer{Data: data}
  3205. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage40(&r, v)
  3206. return r.Error()
  3207. }
  3208. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3209. func (v *GetRelatedWebsiteSetsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3210. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage40(l, v)
  3211. }
  3212. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage41(in *jlexer.Lexer, out *GetRelatedWebsiteSetsParams) {
  3213. isTopLevel := in.IsStart()
  3214. if in.IsNull() {
  3215. if isTopLevel {
  3216. in.Consumed()
  3217. }
  3218. in.Skip()
  3219. return
  3220. }
  3221. in.Delim('{')
  3222. for !in.IsDelim('}') {
  3223. key := in.UnsafeFieldName(false)
  3224. in.WantColon()
  3225. if in.IsNull() {
  3226. in.Skip()
  3227. in.WantComma()
  3228. continue
  3229. }
  3230. switch key {
  3231. default:
  3232. in.SkipRecursive()
  3233. }
  3234. in.WantComma()
  3235. }
  3236. in.Delim('}')
  3237. if isTopLevel {
  3238. in.Consumed()
  3239. }
  3240. }
  3241. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage41(out *jwriter.Writer, in GetRelatedWebsiteSetsParams) {
  3242. out.RawByte('{')
  3243. first := true
  3244. _ = first
  3245. out.RawByte('}')
  3246. }
  3247. // MarshalJSON supports json.Marshaler interface
  3248. func (v GetRelatedWebsiteSetsParams) MarshalJSON() ([]byte, error) {
  3249. w := jwriter.Writer{}
  3250. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage41(&w, v)
  3251. return w.Buffer.BuildBytes(), w.Error
  3252. }
  3253. // MarshalEasyJSON supports easyjson.Marshaler interface
  3254. func (v GetRelatedWebsiteSetsParams) MarshalEasyJSON(w *jwriter.Writer) {
  3255. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage41(w, v)
  3256. }
  3257. // UnmarshalJSON supports json.Unmarshaler interface
  3258. func (v *GetRelatedWebsiteSetsParams) UnmarshalJSON(data []byte) error {
  3259. r := jlexer.Lexer{Data: data}
  3260. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage41(&r, v)
  3261. return r.Error()
  3262. }
  3263. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3264. func (v *GetRelatedWebsiteSetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3265. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage41(l, v)
  3266. }
  3267. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage42(in *jlexer.Lexer, out *GetInterestGroupDetailsReturns) {
  3268. isTopLevel := in.IsStart()
  3269. if in.IsNull() {
  3270. if isTopLevel {
  3271. in.Consumed()
  3272. }
  3273. in.Skip()
  3274. return
  3275. }
  3276. in.Delim('{')
  3277. for !in.IsDelim('}') {
  3278. key := in.UnsafeFieldName(false)
  3279. in.WantColon()
  3280. if in.IsNull() {
  3281. in.Skip()
  3282. in.WantComma()
  3283. continue
  3284. }
  3285. switch key {
  3286. case "details":
  3287. (out.Details).UnmarshalEasyJSON(in)
  3288. default:
  3289. in.SkipRecursive()
  3290. }
  3291. in.WantComma()
  3292. }
  3293. in.Delim('}')
  3294. if isTopLevel {
  3295. in.Consumed()
  3296. }
  3297. }
  3298. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage42(out *jwriter.Writer, in GetInterestGroupDetailsReturns) {
  3299. out.RawByte('{')
  3300. first := true
  3301. _ = first
  3302. if (in.Details).IsDefined() {
  3303. const prefix string = ",\"details\":"
  3304. first = false
  3305. out.RawString(prefix[1:])
  3306. (in.Details).MarshalEasyJSON(out)
  3307. }
  3308. out.RawByte('}')
  3309. }
  3310. // MarshalJSON supports json.Marshaler interface
  3311. func (v GetInterestGroupDetailsReturns) MarshalJSON() ([]byte, error) {
  3312. w := jwriter.Writer{}
  3313. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage42(&w, v)
  3314. return w.Buffer.BuildBytes(), w.Error
  3315. }
  3316. // MarshalEasyJSON supports easyjson.Marshaler interface
  3317. func (v GetInterestGroupDetailsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3318. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage42(w, v)
  3319. }
  3320. // UnmarshalJSON supports json.Unmarshaler interface
  3321. func (v *GetInterestGroupDetailsReturns) UnmarshalJSON(data []byte) error {
  3322. r := jlexer.Lexer{Data: data}
  3323. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage42(&r, v)
  3324. return r.Error()
  3325. }
  3326. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3327. func (v *GetInterestGroupDetailsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3328. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage42(l, v)
  3329. }
  3330. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage43(in *jlexer.Lexer, out *GetInterestGroupDetailsParams) {
  3331. isTopLevel := in.IsStart()
  3332. if in.IsNull() {
  3333. if isTopLevel {
  3334. in.Consumed()
  3335. }
  3336. in.Skip()
  3337. return
  3338. }
  3339. in.Delim('{')
  3340. for !in.IsDelim('}') {
  3341. key := in.UnsafeFieldName(false)
  3342. in.WantColon()
  3343. if in.IsNull() {
  3344. in.Skip()
  3345. in.WantComma()
  3346. continue
  3347. }
  3348. switch key {
  3349. case "ownerOrigin":
  3350. out.OwnerOrigin = string(in.String())
  3351. case "name":
  3352. out.Name = string(in.String())
  3353. default:
  3354. in.SkipRecursive()
  3355. }
  3356. in.WantComma()
  3357. }
  3358. in.Delim('}')
  3359. if isTopLevel {
  3360. in.Consumed()
  3361. }
  3362. }
  3363. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage43(out *jwriter.Writer, in GetInterestGroupDetailsParams) {
  3364. out.RawByte('{')
  3365. first := true
  3366. _ = first
  3367. {
  3368. const prefix string = ",\"ownerOrigin\":"
  3369. out.RawString(prefix[1:])
  3370. out.String(string(in.OwnerOrigin))
  3371. }
  3372. {
  3373. const prefix string = ",\"name\":"
  3374. out.RawString(prefix)
  3375. out.String(string(in.Name))
  3376. }
  3377. out.RawByte('}')
  3378. }
  3379. // MarshalJSON supports json.Marshaler interface
  3380. func (v GetInterestGroupDetailsParams) MarshalJSON() ([]byte, error) {
  3381. w := jwriter.Writer{}
  3382. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage43(&w, v)
  3383. return w.Buffer.BuildBytes(), w.Error
  3384. }
  3385. // MarshalEasyJSON supports easyjson.Marshaler interface
  3386. func (v GetInterestGroupDetailsParams) MarshalEasyJSON(w *jwriter.Writer) {
  3387. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage43(w, v)
  3388. }
  3389. // UnmarshalJSON supports json.Unmarshaler interface
  3390. func (v *GetInterestGroupDetailsParams) UnmarshalJSON(data []byte) error {
  3391. r := jlexer.Lexer{Data: data}
  3392. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage43(&r, v)
  3393. return r.Error()
  3394. }
  3395. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3396. func (v *GetInterestGroupDetailsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3397. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage43(l, v)
  3398. }
  3399. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage44(in *jlexer.Lexer, out *GetCookiesReturns) {
  3400. isTopLevel := in.IsStart()
  3401. if in.IsNull() {
  3402. if isTopLevel {
  3403. in.Consumed()
  3404. }
  3405. in.Skip()
  3406. return
  3407. }
  3408. in.Delim('{')
  3409. for !in.IsDelim('}') {
  3410. key := in.UnsafeFieldName(false)
  3411. in.WantColon()
  3412. if in.IsNull() {
  3413. in.Skip()
  3414. in.WantComma()
  3415. continue
  3416. }
  3417. switch key {
  3418. case "cookies":
  3419. if in.IsNull() {
  3420. in.Skip()
  3421. out.Cookies = nil
  3422. } else {
  3423. in.Delim('[')
  3424. if out.Cookies == nil {
  3425. if !in.IsDelim(']') {
  3426. out.Cookies = make([]*network.Cookie, 0, 8)
  3427. } else {
  3428. out.Cookies = []*network.Cookie{}
  3429. }
  3430. } else {
  3431. out.Cookies = (out.Cookies)[:0]
  3432. }
  3433. for !in.IsDelim(']') {
  3434. var v34 *network.Cookie
  3435. if in.IsNull() {
  3436. in.Skip()
  3437. v34 = nil
  3438. } else {
  3439. if v34 == nil {
  3440. v34 = new(network.Cookie)
  3441. }
  3442. (*v34).UnmarshalEasyJSON(in)
  3443. }
  3444. out.Cookies = append(out.Cookies, v34)
  3445. in.WantComma()
  3446. }
  3447. in.Delim(']')
  3448. }
  3449. default:
  3450. in.SkipRecursive()
  3451. }
  3452. in.WantComma()
  3453. }
  3454. in.Delim('}')
  3455. if isTopLevel {
  3456. in.Consumed()
  3457. }
  3458. }
  3459. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage44(out *jwriter.Writer, in GetCookiesReturns) {
  3460. out.RawByte('{')
  3461. first := true
  3462. _ = first
  3463. if len(in.Cookies) != 0 {
  3464. const prefix string = ",\"cookies\":"
  3465. first = false
  3466. out.RawString(prefix[1:])
  3467. {
  3468. out.RawByte('[')
  3469. for v35, v36 := range in.Cookies {
  3470. if v35 > 0 {
  3471. out.RawByte(',')
  3472. }
  3473. if v36 == nil {
  3474. out.RawString("null")
  3475. } else {
  3476. (*v36).MarshalEasyJSON(out)
  3477. }
  3478. }
  3479. out.RawByte(']')
  3480. }
  3481. }
  3482. out.RawByte('}')
  3483. }
  3484. // MarshalJSON supports json.Marshaler interface
  3485. func (v GetCookiesReturns) MarshalJSON() ([]byte, error) {
  3486. w := jwriter.Writer{}
  3487. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage44(&w, v)
  3488. return w.Buffer.BuildBytes(), w.Error
  3489. }
  3490. // MarshalEasyJSON supports easyjson.Marshaler interface
  3491. func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3492. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage44(w, v)
  3493. }
  3494. // UnmarshalJSON supports json.Unmarshaler interface
  3495. func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error {
  3496. r := jlexer.Lexer{Data: data}
  3497. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage44(&r, v)
  3498. return r.Error()
  3499. }
  3500. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3501. func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3502. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage44(l, v)
  3503. }
  3504. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage45(in *jlexer.Lexer, out *GetCookiesParams) {
  3505. isTopLevel := in.IsStart()
  3506. if in.IsNull() {
  3507. if isTopLevel {
  3508. in.Consumed()
  3509. }
  3510. in.Skip()
  3511. return
  3512. }
  3513. in.Delim('{')
  3514. for !in.IsDelim('}') {
  3515. key := in.UnsafeFieldName(false)
  3516. in.WantColon()
  3517. if in.IsNull() {
  3518. in.Skip()
  3519. in.WantComma()
  3520. continue
  3521. }
  3522. switch key {
  3523. case "browserContextId":
  3524. out.BrowserContextID = cdp.BrowserContextID(in.String())
  3525. default:
  3526. in.SkipRecursive()
  3527. }
  3528. in.WantComma()
  3529. }
  3530. in.Delim('}')
  3531. if isTopLevel {
  3532. in.Consumed()
  3533. }
  3534. }
  3535. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage45(out *jwriter.Writer, in GetCookiesParams) {
  3536. out.RawByte('{')
  3537. first := true
  3538. _ = first
  3539. if in.BrowserContextID != "" {
  3540. const prefix string = ",\"browserContextId\":"
  3541. first = false
  3542. out.RawString(prefix[1:])
  3543. out.String(string(in.BrowserContextID))
  3544. }
  3545. out.RawByte('}')
  3546. }
  3547. // MarshalJSON supports json.Marshaler interface
  3548. func (v GetCookiesParams) MarshalJSON() ([]byte, error) {
  3549. w := jwriter.Writer{}
  3550. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage45(&w, v)
  3551. return w.Buffer.BuildBytes(), w.Error
  3552. }
  3553. // MarshalEasyJSON supports easyjson.Marshaler interface
  3554. func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
  3555. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage45(w, v)
  3556. }
  3557. // UnmarshalJSON supports json.Unmarshaler interface
  3558. func (v *GetCookiesParams) UnmarshalJSON(data []byte) error {
  3559. r := jlexer.Lexer{Data: data}
  3560. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage45(&r, v)
  3561. return r.Error()
  3562. }
  3563. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3564. func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3565. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage45(l, v)
  3566. }
  3567. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage46(in *jlexer.Lexer, out *EventStorageBucketDeleted) {
  3568. isTopLevel := in.IsStart()
  3569. if in.IsNull() {
  3570. if isTopLevel {
  3571. in.Consumed()
  3572. }
  3573. in.Skip()
  3574. return
  3575. }
  3576. in.Delim('{')
  3577. for !in.IsDelim('}') {
  3578. key := in.UnsafeFieldName(false)
  3579. in.WantColon()
  3580. if in.IsNull() {
  3581. in.Skip()
  3582. in.WantComma()
  3583. continue
  3584. }
  3585. switch key {
  3586. case "bucketId":
  3587. out.BucketID = string(in.String())
  3588. default:
  3589. in.SkipRecursive()
  3590. }
  3591. in.WantComma()
  3592. }
  3593. in.Delim('}')
  3594. if isTopLevel {
  3595. in.Consumed()
  3596. }
  3597. }
  3598. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage46(out *jwriter.Writer, in EventStorageBucketDeleted) {
  3599. out.RawByte('{')
  3600. first := true
  3601. _ = first
  3602. {
  3603. const prefix string = ",\"bucketId\":"
  3604. out.RawString(prefix[1:])
  3605. out.String(string(in.BucketID))
  3606. }
  3607. out.RawByte('}')
  3608. }
  3609. // MarshalJSON supports json.Marshaler interface
  3610. func (v EventStorageBucketDeleted) MarshalJSON() ([]byte, error) {
  3611. w := jwriter.Writer{}
  3612. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage46(&w, v)
  3613. return w.Buffer.BuildBytes(), w.Error
  3614. }
  3615. // MarshalEasyJSON supports easyjson.Marshaler interface
  3616. func (v EventStorageBucketDeleted) MarshalEasyJSON(w *jwriter.Writer) {
  3617. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage46(w, v)
  3618. }
  3619. // UnmarshalJSON supports json.Unmarshaler interface
  3620. func (v *EventStorageBucketDeleted) UnmarshalJSON(data []byte) error {
  3621. r := jlexer.Lexer{Data: data}
  3622. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage46(&r, v)
  3623. return r.Error()
  3624. }
  3625. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3626. func (v *EventStorageBucketDeleted) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3627. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage46(l, v)
  3628. }
  3629. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage47(in *jlexer.Lexer, out *EventStorageBucketCreatedOrUpdated) {
  3630. isTopLevel := in.IsStart()
  3631. if in.IsNull() {
  3632. if isTopLevel {
  3633. in.Consumed()
  3634. }
  3635. in.Skip()
  3636. return
  3637. }
  3638. in.Delim('{')
  3639. for !in.IsDelim('}') {
  3640. key := in.UnsafeFieldName(false)
  3641. in.WantColon()
  3642. if in.IsNull() {
  3643. in.Skip()
  3644. in.WantComma()
  3645. continue
  3646. }
  3647. switch key {
  3648. case "bucketInfo":
  3649. if in.IsNull() {
  3650. in.Skip()
  3651. out.BucketInfo = nil
  3652. } else {
  3653. if out.BucketInfo == nil {
  3654. out.BucketInfo = new(BucketInfo)
  3655. }
  3656. (*out.BucketInfo).UnmarshalEasyJSON(in)
  3657. }
  3658. default:
  3659. in.SkipRecursive()
  3660. }
  3661. in.WantComma()
  3662. }
  3663. in.Delim('}')
  3664. if isTopLevel {
  3665. in.Consumed()
  3666. }
  3667. }
  3668. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage47(out *jwriter.Writer, in EventStorageBucketCreatedOrUpdated) {
  3669. out.RawByte('{')
  3670. first := true
  3671. _ = first
  3672. {
  3673. const prefix string = ",\"bucketInfo\":"
  3674. out.RawString(prefix[1:])
  3675. if in.BucketInfo == nil {
  3676. out.RawString("null")
  3677. } else {
  3678. (*in.BucketInfo).MarshalEasyJSON(out)
  3679. }
  3680. }
  3681. out.RawByte('}')
  3682. }
  3683. // MarshalJSON supports json.Marshaler interface
  3684. func (v EventStorageBucketCreatedOrUpdated) MarshalJSON() ([]byte, error) {
  3685. w := jwriter.Writer{}
  3686. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage47(&w, v)
  3687. return w.Buffer.BuildBytes(), w.Error
  3688. }
  3689. // MarshalEasyJSON supports easyjson.Marshaler interface
  3690. func (v EventStorageBucketCreatedOrUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  3691. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage47(w, v)
  3692. }
  3693. // UnmarshalJSON supports json.Unmarshaler interface
  3694. func (v *EventStorageBucketCreatedOrUpdated) UnmarshalJSON(data []byte) error {
  3695. r := jlexer.Lexer{Data: data}
  3696. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage47(&r, v)
  3697. return r.Error()
  3698. }
  3699. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3700. func (v *EventStorageBucketCreatedOrUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3701. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage47(l, v)
  3702. }
  3703. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage48(in *jlexer.Lexer, out *EventSharedStorageAccessed) {
  3704. isTopLevel := in.IsStart()
  3705. if in.IsNull() {
  3706. if isTopLevel {
  3707. in.Consumed()
  3708. }
  3709. in.Skip()
  3710. return
  3711. }
  3712. in.Delim('{')
  3713. for !in.IsDelim('}') {
  3714. key := in.UnsafeFieldName(false)
  3715. in.WantColon()
  3716. if in.IsNull() {
  3717. in.Skip()
  3718. in.WantComma()
  3719. continue
  3720. }
  3721. switch key {
  3722. case "accessTime":
  3723. if in.IsNull() {
  3724. in.Skip()
  3725. out.AccessTime = nil
  3726. } else {
  3727. if out.AccessTime == nil {
  3728. out.AccessTime = new(cdp.TimeSinceEpoch)
  3729. }
  3730. (*out.AccessTime).UnmarshalEasyJSON(in)
  3731. }
  3732. case "type":
  3733. (out.Type).UnmarshalEasyJSON(in)
  3734. case "mainFrameId":
  3735. (out.MainFrameID).UnmarshalEasyJSON(in)
  3736. case "ownerOrigin":
  3737. out.OwnerOrigin = string(in.String())
  3738. case "params":
  3739. if in.IsNull() {
  3740. in.Skip()
  3741. out.Params = nil
  3742. } else {
  3743. if out.Params == nil {
  3744. out.Params = new(SharedStorageAccessParams)
  3745. }
  3746. (*out.Params).UnmarshalEasyJSON(in)
  3747. }
  3748. default:
  3749. in.SkipRecursive()
  3750. }
  3751. in.WantComma()
  3752. }
  3753. in.Delim('}')
  3754. if isTopLevel {
  3755. in.Consumed()
  3756. }
  3757. }
  3758. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage48(out *jwriter.Writer, in EventSharedStorageAccessed) {
  3759. out.RawByte('{')
  3760. first := true
  3761. _ = first
  3762. {
  3763. const prefix string = ",\"accessTime\":"
  3764. out.RawString(prefix[1:])
  3765. if in.AccessTime == nil {
  3766. out.RawString("null")
  3767. } else {
  3768. (*in.AccessTime).MarshalEasyJSON(out)
  3769. }
  3770. }
  3771. {
  3772. const prefix string = ",\"type\":"
  3773. out.RawString(prefix)
  3774. (in.Type).MarshalEasyJSON(out)
  3775. }
  3776. {
  3777. const prefix string = ",\"mainFrameId\":"
  3778. out.RawString(prefix)
  3779. out.String(string(in.MainFrameID))
  3780. }
  3781. {
  3782. const prefix string = ",\"ownerOrigin\":"
  3783. out.RawString(prefix)
  3784. out.String(string(in.OwnerOrigin))
  3785. }
  3786. {
  3787. const prefix string = ",\"params\":"
  3788. out.RawString(prefix)
  3789. if in.Params == nil {
  3790. out.RawString("null")
  3791. } else {
  3792. (*in.Params).MarshalEasyJSON(out)
  3793. }
  3794. }
  3795. out.RawByte('}')
  3796. }
  3797. // MarshalJSON supports json.Marshaler interface
  3798. func (v EventSharedStorageAccessed) MarshalJSON() ([]byte, error) {
  3799. w := jwriter.Writer{}
  3800. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage48(&w, v)
  3801. return w.Buffer.BuildBytes(), w.Error
  3802. }
  3803. // MarshalEasyJSON supports easyjson.Marshaler interface
  3804. func (v EventSharedStorageAccessed) MarshalEasyJSON(w *jwriter.Writer) {
  3805. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage48(w, v)
  3806. }
  3807. // UnmarshalJSON supports json.Unmarshaler interface
  3808. func (v *EventSharedStorageAccessed) UnmarshalJSON(data []byte) error {
  3809. r := jlexer.Lexer{Data: data}
  3810. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage48(&r, v)
  3811. return r.Error()
  3812. }
  3813. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3814. func (v *EventSharedStorageAccessed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3815. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage48(l, v)
  3816. }
  3817. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage49(in *jlexer.Lexer, out *EventInterestGroupAuctionNetworkRequestCreated) {
  3818. isTopLevel := in.IsStart()
  3819. if in.IsNull() {
  3820. if isTopLevel {
  3821. in.Consumed()
  3822. }
  3823. in.Skip()
  3824. return
  3825. }
  3826. in.Delim('{')
  3827. for !in.IsDelim('}') {
  3828. key := in.UnsafeFieldName(false)
  3829. in.WantColon()
  3830. if in.IsNull() {
  3831. in.Skip()
  3832. in.WantComma()
  3833. continue
  3834. }
  3835. switch key {
  3836. case "type":
  3837. (out.Type).UnmarshalEasyJSON(in)
  3838. case "requestId":
  3839. out.RequestID = network.RequestID(in.String())
  3840. case "auctions":
  3841. if in.IsNull() {
  3842. in.Skip()
  3843. out.Auctions = nil
  3844. } else {
  3845. in.Delim('[')
  3846. if out.Auctions == nil {
  3847. if !in.IsDelim(']') {
  3848. out.Auctions = make([]InterestGroupAuctionID, 0, 4)
  3849. } else {
  3850. out.Auctions = []InterestGroupAuctionID{}
  3851. }
  3852. } else {
  3853. out.Auctions = (out.Auctions)[:0]
  3854. }
  3855. for !in.IsDelim(']') {
  3856. var v37 InterestGroupAuctionID
  3857. v37 = InterestGroupAuctionID(in.String())
  3858. out.Auctions = append(out.Auctions, v37)
  3859. in.WantComma()
  3860. }
  3861. in.Delim(']')
  3862. }
  3863. default:
  3864. in.SkipRecursive()
  3865. }
  3866. in.WantComma()
  3867. }
  3868. in.Delim('}')
  3869. if isTopLevel {
  3870. in.Consumed()
  3871. }
  3872. }
  3873. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage49(out *jwriter.Writer, in EventInterestGroupAuctionNetworkRequestCreated) {
  3874. out.RawByte('{')
  3875. first := true
  3876. _ = first
  3877. {
  3878. const prefix string = ",\"type\":"
  3879. out.RawString(prefix[1:])
  3880. (in.Type).MarshalEasyJSON(out)
  3881. }
  3882. {
  3883. const prefix string = ",\"requestId\":"
  3884. out.RawString(prefix)
  3885. out.String(string(in.RequestID))
  3886. }
  3887. {
  3888. const prefix string = ",\"auctions\":"
  3889. out.RawString(prefix)
  3890. if in.Auctions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3891. out.RawString("null")
  3892. } else {
  3893. out.RawByte('[')
  3894. for v38, v39 := range in.Auctions {
  3895. if v38 > 0 {
  3896. out.RawByte(',')
  3897. }
  3898. out.String(string(v39))
  3899. }
  3900. out.RawByte(']')
  3901. }
  3902. }
  3903. out.RawByte('}')
  3904. }
  3905. // MarshalJSON supports json.Marshaler interface
  3906. func (v EventInterestGroupAuctionNetworkRequestCreated) MarshalJSON() ([]byte, error) {
  3907. w := jwriter.Writer{}
  3908. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage49(&w, v)
  3909. return w.Buffer.BuildBytes(), w.Error
  3910. }
  3911. // MarshalEasyJSON supports easyjson.Marshaler interface
  3912. func (v EventInterestGroupAuctionNetworkRequestCreated) MarshalEasyJSON(w *jwriter.Writer) {
  3913. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage49(w, v)
  3914. }
  3915. // UnmarshalJSON supports json.Unmarshaler interface
  3916. func (v *EventInterestGroupAuctionNetworkRequestCreated) UnmarshalJSON(data []byte) error {
  3917. r := jlexer.Lexer{Data: data}
  3918. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage49(&r, v)
  3919. return r.Error()
  3920. }
  3921. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3922. func (v *EventInterestGroupAuctionNetworkRequestCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3923. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage49(l, v)
  3924. }
  3925. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage50(in *jlexer.Lexer, out *EventInterestGroupAuctionEventOccurred) {
  3926. isTopLevel := in.IsStart()
  3927. if in.IsNull() {
  3928. if isTopLevel {
  3929. in.Consumed()
  3930. }
  3931. in.Skip()
  3932. return
  3933. }
  3934. in.Delim('{')
  3935. for !in.IsDelim('}') {
  3936. key := in.UnsafeFieldName(false)
  3937. in.WantColon()
  3938. if in.IsNull() {
  3939. in.Skip()
  3940. in.WantComma()
  3941. continue
  3942. }
  3943. switch key {
  3944. case "eventTime":
  3945. if in.IsNull() {
  3946. in.Skip()
  3947. out.EventTime = nil
  3948. } else {
  3949. if out.EventTime == nil {
  3950. out.EventTime = new(cdp.TimeSinceEpoch)
  3951. }
  3952. (*out.EventTime).UnmarshalEasyJSON(in)
  3953. }
  3954. case "type":
  3955. (out.Type).UnmarshalEasyJSON(in)
  3956. case "uniqueAuctionId":
  3957. out.UniqueAuctionID = InterestGroupAuctionID(in.String())
  3958. case "parentAuctionId":
  3959. out.ParentAuctionID = InterestGroupAuctionID(in.String())
  3960. case "auctionConfig":
  3961. (out.AuctionConfig).UnmarshalEasyJSON(in)
  3962. default:
  3963. in.SkipRecursive()
  3964. }
  3965. in.WantComma()
  3966. }
  3967. in.Delim('}')
  3968. if isTopLevel {
  3969. in.Consumed()
  3970. }
  3971. }
  3972. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage50(out *jwriter.Writer, in EventInterestGroupAuctionEventOccurred) {
  3973. out.RawByte('{')
  3974. first := true
  3975. _ = first
  3976. {
  3977. const prefix string = ",\"eventTime\":"
  3978. out.RawString(prefix[1:])
  3979. if in.EventTime == nil {
  3980. out.RawString("null")
  3981. } else {
  3982. (*in.EventTime).MarshalEasyJSON(out)
  3983. }
  3984. }
  3985. {
  3986. const prefix string = ",\"type\":"
  3987. out.RawString(prefix)
  3988. (in.Type).MarshalEasyJSON(out)
  3989. }
  3990. {
  3991. const prefix string = ",\"uniqueAuctionId\":"
  3992. out.RawString(prefix)
  3993. out.String(string(in.UniqueAuctionID))
  3994. }
  3995. if in.ParentAuctionID != "" {
  3996. const prefix string = ",\"parentAuctionId\":"
  3997. out.RawString(prefix)
  3998. out.String(string(in.ParentAuctionID))
  3999. }
  4000. if (in.AuctionConfig).IsDefined() {
  4001. const prefix string = ",\"auctionConfig\":"
  4002. out.RawString(prefix)
  4003. (in.AuctionConfig).MarshalEasyJSON(out)
  4004. }
  4005. out.RawByte('}')
  4006. }
  4007. // MarshalJSON supports json.Marshaler interface
  4008. func (v EventInterestGroupAuctionEventOccurred) MarshalJSON() ([]byte, error) {
  4009. w := jwriter.Writer{}
  4010. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage50(&w, v)
  4011. return w.Buffer.BuildBytes(), w.Error
  4012. }
  4013. // MarshalEasyJSON supports easyjson.Marshaler interface
  4014. func (v EventInterestGroupAuctionEventOccurred) MarshalEasyJSON(w *jwriter.Writer) {
  4015. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage50(w, v)
  4016. }
  4017. // UnmarshalJSON supports json.Unmarshaler interface
  4018. func (v *EventInterestGroupAuctionEventOccurred) UnmarshalJSON(data []byte) error {
  4019. r := jlexer.Lexer{Data: data}
  4020. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage50(&r, v)
  4021. return r.Error()
  4022. }
  4023. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4024. func (v *EventInterestGroupAuctionEventOccurred) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4025. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage50(l, v)
  4026. }
  4027. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage51(in *jlexer.Lexer, out *EventInterestGroupAccessed) {
  4028. isTopLevel := in.IsStart()
  4029. if in.IsNull() {
  4030. if isTopLevel {
  4031. in.Consumed()
  4032. }
  4033. in.Skip()
  4034. return
  4035. }
  4036. in.Delim('{')
  4037. for !in.IsDelim('}') {
  4038. key := in.UnsafeFieldName(false)
  4039. in.WantColon()
  4040. if in.IsNull() {
  4041. in.Skip()
  4042. in.WantComma()
  4043. continue
  4044. }
  4045. switch key {
  4046. case "accessTime":
  4047. if in.IsNull() {
  4048. in.Skip()
  4049. out.AccessTime = nil
  4050. } else {
  4051. if out.AccessTime == nil {
  4052. out.AccessTime = new(cdp.TimeSinceEpoch)
  4053. }
  4054. (*out.AccessTime).UnmarshalEasyJSON(in)
  4055. }
  4056. case "type":
  4057. (out.Type).UnmarshalEasyJSON(in)
  4058. case "ownerOrigin":
  4059. out.OwnerOrigin = string(in.String())
  4060. case "name":
  4061. out.Name = string(in.String())
  4062. case "componentSellerOrigin":
  4063. out.ComponentSellerOrigin = string(in.String())
  4064. case "bid":
  4065. out.Bid = float64(in.Float64())
  4066. case "bidCurrency":
  4067. out.BidCurrency = string(in.String())
  4068. case "uniqueAuctionId":
  4069. out.UniqueAuctionID = InterestGroupAuctionID(in.String())
  4070. default:
  4071. in.SkipRecursive()
  4072. }
  4073. in.WantComma()
  4074. }
  4075. in.Delim('}')
  4076. if isTopLevel {
  4077. in.Consumed()
  4078. }
  4079. }
  4080. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage51(out *jwriter.Writer, in EventInterestGroupAccessed) {
  4081. out.RawByte('{')
  4082. first := true
  4083. _ = first
  4084. {
  4085. const prefix string = ",\"accessTime\":"
  4086. out.RawString(prefix[1:])
  4087. if in.AccessTime == nil {
  4088. out.RawString("null")
  4089. } else {
  4090. (*in.AccessTime).MarshalEasyJSON(out)
  4091. }
  4092. }
  4093. {
  4094. const prefix string = ",\"type\":"
  4095. out.RawString(prefix)
  4096. (in.Type).MarshalEasyJSON(out)
  4097. }
  4098. {
  4099. const prefix string = ",\"ownerOrigin\":"
  4100. out.RawString(prefix)
  4101. out.String(string(in.OwnerOrigin))
  4102. }
  4103. {
  4104. const prefix string = ",\"name\":"
  4105. out.RawString(prefix)
  4106. out.String(string(in.Name))
  4107. }
  4108. if in.ComponentSellerOrigin != "" {
  4109. const prefix string = ",\"componentSellerOrigin\":"
  4110. out.RawString(prefix)
  4111. out.String(string(in.ComponentSellerOrigin))
  4112. }
  4113. if in.Bid != 0 {
  4114. const prefix string = ",\"bid\":"
  4115. out.RawString(prefix)
  4116. out.Float64(float64(in.Bid))
  4117. }
  4118. if in.BidCurrency != "" {
  4119. const prefix string = ",\"bidCurrency\":"
  4120. out.RawString(prefix)
  4121. out.String(string(in.BidCurrency))
  4122. }
  4123. if in.UniqueAuctionID != "" {
  4124. const prefix string = ",\"uniqueAuctionId\":"
  4125. out.RawString(prefix)
  4126. out.String(string(in.UniqueAuctionID))
  4127. }
  4128. out.RawByte('}')
  4129. }
  4130. // MarshalJSON supports json.Marshaler interface
  4131. func (v EventInterestGroupAccessed) MarshalJSON() ([]byte, error) {
  4132. w := jwriter.Writer{}
  4133. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage51(&w, v)
  4134. return w.Buffer.BuildBytes(), w.Error
  4135. }
  4136. // MarshalEasyJSON supports easyjson.Marshaler interface
  4137. func (v EventInterestGroupAccessed) MarshalEasyJSON(w *jwriter.Writer) {
  4138. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage51(w, v)
  4139. }
  4140. // UnmarshalJSON supports json.Unmarshaler interface
  4141. func (v *EventInterestGroupAccessed) UnmarshalJSON(data []byte) error {
  4142. r := jlexer.Lexer{Data: data}
  4143. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage51(&r, v)
  4144. return r.Error()
  4145. }
  4146. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4147. func (v *EventInterestGroupAccessed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4148. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage51(l, v)
  4149. }
  4150. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage52(in *jlexer.Lexer, out *EventIndexedDBListUpdated) {
  4151. isTopLevel := in.IsStart()
  4152. if in.IsNull() {
  4153. if isTopLevel {
  4154. in.Consumed()
  4155. }
  4156. in.Skip()
  4157. return
  4158. }
  4159. in.Delim('{')
  4160. for !in.IsDelim('}') {
  4161. key := in.UnsafeFieldName(false)
  4162. in.WantColon()
  4163. if in.IsNull() {
  4164. in.Skip()
  4165. in.WantComma()
  4166. continue
  4167. }
  4168. switch key {
  4169. case "origin":
  4170. out.Origin = string(in.String())
  4171. case "storageKey":
  4172. out.StorageKey = string(in.String())
  4173. case "bucketId":
  4174. out.BucketID = string(in.String())
  4175. default:
  4176. in.SkipRecursive()
  4177. }
  4178. in.WantComma()
  4179. }
  4180. in.Delim('}')
  4181. if isTopLevel {
  4182. in.Consumed()
  4183. }
  4184. }
  4185. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage52(out *jwriter.Writer, in EventIndexedDBListUpdated) {
  4186. out.RawByte('{')
  4187. first := true
  4188. _ = first
  4189. {
  4190. const prefix string = ",\"origin\":"
  4191. out.RawString(prefix[1:])
  4192. out.String(string(in.Origin))
  4193. }
  4194. {
  4195. const prefix string = ",\"storageKey\":"
  4196. out.RawString(prefix)
  4197. out.String(string(in.StorageKey))
  4198. }
  4199. {
  4200. const prefix string = ",\"bucketId\":"
  4201. out.RawString(prefix)
  4202. out.String(string(in.BucketID))
  4203. }
  4204. out.RawByte('}')
  4205. }
  4206. // MarshalJSON supports json.Marshaler interface
  4207. func (v EventIndexedDBListUpdated) MarshalJSON() ([]byte, error) {
  4208. w := jwriter.Writer{}
  4209. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage52(&w, v)
  4210. return w.Buffer.BuildBytes(), w.Error
  4211. }
  4212. // MarshalEasyJSON supports easyjson.Marshaler interface
  4213. func (v EventIndexedDBListUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  4214. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage52(w, v)
  4215. }
  4216. // UnmarshalJSON supports json.Unmarshaler interface
  4217. func (v *EventIndexedDBListUpdated) UnmarshalJSON(data []byte) error {
  4218. r := jlexer.Lexer{Data: data}
  4219. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage52(&r, v)
  4220. return r.Error()
  4221. }
  4222. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4223. func (v *EventIndexedDBListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4224. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage52(l, v)
  4225. }
  4226. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage53(in *jlexer.Lexer, out *EventIndexedDBContentUpdated) {
  4227. isTopLevel := in.IsStart()
  4228. if in.IsNull() {
  4229. if isTopLevel {
  4230. in.Consumed()
  4231. }
  4232. in.Skip()
  4233. return
  4234. }
  4235. in.Delim('{')
  4236. for !in.IsDelim('}') {
  4237. key := in.UnsafeFieldName(false)
  4238. in.WantColon()
  4239. if in.IsNull() {
  4240. in.Skip()
  4241. in.WantComma()
  4242. continue
  4243. }
  4244. switch key {
  4245. case "origin":
  4246. out.Origin = string(in.String())
  4247. case "storageKey":
  4248. out.StorageKey = string(in.String())
  4249. case "bucketId":
  4250. out.BucketID = string(in.String())
  4251. case "databaseName":
  4252. out.DatabaseName = string(in.String())
  4253. case "objectStoreName":
  4254. out.ObjectStoreName = string(in.String())
  4255. default:
  4256. in.SkipRecursive()
  4257. }
  4258. in.WantComma()
  4259. }
  4260. in.Delim('}')
  4261. if isTopLevel {
  4262. in.Consumed()
  4263. }
  4264. }
  4265. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage53(out *jwriter.Writer, in EventIndexedDBContentUpdated) {
  4266. out.RawByte('{')
  4267. first := true
  4268. _ = first
  4269. {
  4270. const prefix string = ",\"origin\":"
  4271. out.RawString(prefix[1:])
  4272. out.String(string(in.Origin))
  4273. }
  4274. {
  4275. const prefix string = ",\"storageKey\":"
  4276. out.RawString(prefix)
  4277. out.String(string(in.StorageKey))
  4278. }
  4279. {
  4280. const prefix string = ",\"bucketId\":"
  4281. out.RawString(prefix)
  4282. out.String(string(in.BucketID))
  4283. }
  4284. {
  4285. const prefix string = ",\"databaseName\":"
  4286. out.RawString(prefix)
  4287. out.String(string(in.DatabaseName))
  4288. }
  4289. {
  4290. const prefix string = ",\"objectStoreName\":"
  4291. out.RawString(prefix)
  4292. out.String(string(in.ObjectStoreName))
  4293. }
  4294. out.RawByte('}')
  4295. }
  4296. // MarshalJSON supports json.Marshaler interface
  4297. func (v EventIndexedDBContentUpdated) MarshalJSON() ([]byte, error) {
  4298. w := jwriter.Writer{}
  4299. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage53(&w, v)
  4300. return w.Buffer.BuildBytes(), w.Error
  4301. }
  4302. // MarshalEasyJSON supports easyjson.Marshaler interface
  4303. func (v EventIndexedDBContentUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  4304. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage53(w, v)
  4305. }
  4306. // UnmarshalJSON supports json.Unmarshaler interface
  4307. func (v *EventIndexedDBContentUpdated) UnmarshalJSON(data []byte) error {
  4308. r := jlexer.Lexer{Data: data}
  4309. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage53(&r, v)
  4310. return r.Error()
  4311. }
  4312. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4313. func (v *EventIndexedDBContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4314. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage53(l, v)
  4315. }
  4316. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage54(in *jlexer.Lexer, out *EventCacheStorageListUpdated) {
  4317. isTopLevel := in.IsStart()
  4318. if in.IsNull() {
  4319. if isTopLevel {
  4320. in.Consumed()
  4321. }
  4322. in.Skip()
  4323. return
  4324. }
  4325. in.Delim('{')
  4326. for !in.IsDelim('}') {
  4327. key := in.UnsafeFieldName(false)
  4328. in.WantColon()
  4329. if in.IsNull() {
  4330. in.Skip()
  4331. in.WantComma()
  4332. continue
  4333. }
  4334. switch key {
  4335. case "origin":
  4336. out.Origin = string(in.String())
  4337. case "storageKey":
  4338. out.StorageKey = string(in.String())
  4339. case "bucketId":
  4340. out.BucketID = string(in.String())
  4341. default:
  4342. in.SkipRecursive()
  4343. }
  4344. in.WantComma()
  4345. }
  4346. in.Delim('}')
  4347. if isTopLevel {
  4348. in.Consumed()
  4349. }
  4350. }
  4351. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage54(out *jwriter.Writer, in EventCacheStorageListUpdated) {
  4352. out.RawByte('{')
  4353. first := true
  4354. _ = first
  4355. {
  4356. const prefix string = ",\"origin\":"
  4357. out.RawString(prefix[1:])
  4358. out.String(string(in.Origin))
  4359. }
  4360. {
  4361. const prefix string = ",\"storageKey\":"
  4362. out.RawString(prefix)
  4363. out.String(string(in.StorageKey))
  4364. }
  4365. {
  4366. const prefix string = ",\"bucketId\":"
  4367. out.RawString(prefix)
  4368. out.String(string(in.BucketID))
  4369. }
  4370. out.RawByte('}')
  4371. }
  4372. // MarshalJSON supports json.Marshaler interface
  4373. func (v EventCacheStorageListUpdated) MarshalJSON() ([]byte, error) {
  4374. w := jwriter.Writer{}
  4375. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage54(&w, v)
  4376. return w.Buffer.BuildBytes(), w.Error
  4377. }
  4378. // MarshalEasyJSON supports easyjson.Marshaler interface
  4379. func (v EventCacheStorageListUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  4380. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage54(w, v)
  4381. }
  4382. // UnmarshalJSON supports json.Unmarshaler interface
  4383. func (v *EventCacheStorageListUpdated) UnmarshalJSON(data []byte) error {
  4384. r := jlexer.Lexer{Data: data}
  4385. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage54(&r, v)
  4386. return r.Error()
  4387. }
  4388. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4389. func (v *EventCacheStorageListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4390. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage54(l, v)
  4391. }
  4392. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage55(in *jlexer.Lexer, out *EventCacheStorageContentUpdated) {
  4393. isTopLevel := in.IsStart()
  4394. if in.IsNull() {
  4395. if isTopLevel {
  4396. in.Consumed()
  4397. }
  4398. in.Skip()
  4399. return
  4400. }
  4401. in.Delim('{')
  4402. for !in.IsDelim('}') {
  4403. key := in.UnsafeFieldName(false)
  4404. in.WantColon()
  4405. if in.IsNull() {
  4406. in.Skip()
  4407. in.WantComma()
  4408. continue
  4409. }
  4410. switch key {
  4411. case "origin":
  4412. out.Origin = string(in.String())
  4413. case "storageKey":
  4414. out.StorageKey = string(in.String())
  4415. case "bucketId":
  4416. out.BucketID = string(in.String())
  4417. case "cacheName":
  4418. out.CacheName = string(in.String())
  4419. default:
  4420. in.SkipRecursive()
  4421. }
  4422. in.WantComma()
  4423. }
  4424. in.Delim('}')
  4425. if isTopLevel {
  4426. in.Consumed()
  4427. }
  4428. }
  4429. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage55(out *jwriter.Writer, in EventCacheStorageContentUpdated) {
  4430. out.RawByte('{')
  4431. first := true
  4432. _ = first
  4433. {
  4434. const prefix string = ",\"origin\":"
  4435. out.RawString(prefix[1:])
  4436. out.String(string(in.Origin))
  4437. }
  4438. {
  4439. const prefix string = ",\"storageKey\":"
  4440. out.RawString(prefix)
  4441. out.String(string(in.StorageKey))
  4442. }
  4443. {
  4444. const prefix string = ",\"bucketId\":"
  4445. out.RawString(prefix)
  4446. out.String(string(in.BucketID))
  4447. }
  4448. {
  4449. const prefix string = ",\"cacheName\":"
  4450. out.RawString(prefix)
  4451. out.String(string(in.CacheName))
  4452. }
  4453. out.RawByte('}')
  4454. }
  4455. // MarshalJSON supports json.Marshaler interface
  4456. func (v EventCacheStorageContentUpdated) MarshalJSON() ([]byte, error) {
  4457. w := jwriter.Writer{}
  4458. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage55(&w, v)
  4459. return w.Buffer.BuildBytes(), w.Error
  4460. }
  4461. // MarshalEasyJSON supports easyjson.Marshaler interface
  4462. func (v EventCacheStorageContentUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  4463. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage55(w, v)
  4464. }
  4465. // UnmarshalJSON supports json.Unmarshaler interface
  4466. func (v *EventCacheStorageContentUpdated) UnmarshalJSON(data []byte) error {
  4467. r := jlexer.Lexer{Data: data}
  4468. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage55(&r, v)
  4469. return r.Error()
  4470. }
  4471. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4472. func (v *EventCacheStorageContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4473. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage55(l, v)
  4474. }
  4475. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage56(in *jlexer.Lexer, out *EventAttributionReportingTriggerRegistered) {
  4476. isTopLevel := in.IsStart()
  4477. if in.IsNull() {
  4478. if isTopLevel {
  4479. in.Consumed()
  4480. }
  4481. in.Skip()
  4482. return
  4483. }
  4484. in.Delim('{')
  4485. for !in.IsDelim('}') {
  4486. key := in.UnsafeFieldName(false)
  4487. in.WantColon()
  4488. if in.IsNull() {
  4489. in.Skip()
  4490. in.WantComma()
  4491. continue
  4492. }
  4493. switch key {
  4494. case "registration":
  4495. if in.IsNull() {
  4496. in.Skip()
  4497. out.Registration = nil
  4498. } else {
  4499. if out.Registration == nil {
  4500. out.Registration = new(AttributionReportingTriggerRegistration)
  4501. }
  4502. (*out.Registration).UnmarshalEasyJSON(in)
  4503. }
  4504. case "eventLevel":
  4505. (out.EventLevel).UnmarshalEasyJSON(in)
  4506. case "aggregatable":
  4507. (out.Aggregatable).UnmarshalEasyJSON(in)
  4508. default:
  4509. in.SkipRecursive()
  4510. }
  4511. in.WantComma()
  4512. }
  4513. in.Delim('}')
  4514. if isTopLevel {
  4515. in.Consumed()
  4516. }
  4517. }
  4518. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage56(out *jwriter.Writer, in EventAttributionReportingTriggerRegistered) {
  4519. out.RawByte('{')
  4520. first := true
  4521. _ = first
  4522. {
  4523. const prefix string = ",\"registration\":"
  4524. out.RawString(prefix[1:])
  4525. if in.Registration == nil {
  4526. out.RawString("null")
  4527. } else {
  4528. (*in.Registration).MarshalEasyJSON(out)
  4529. }
  4530. }
  4531. {
  4532. const prefix string = ",\"eventLevel\":"
  4533. out.RawString(prefix)
  4534. (in.EventLevel).MarshalEasyJSON(out)
  4535. }
  4536. {
  4537. const prefix string = ",\"aggregatable\":"
  4538. out.RawString(prefix)
  4539. (in.Aggregatable).MarshalEasyJSON(out)
  4540. }
  4541. out.RawByte('}')
  4542. }
  4543. // MarshalJSON supports json.Marshaler interface
  4544. func (v EventAttributionReportingTriggerRegistered) MarshalJSON() ([]byte, error) {
  4545. w := jwriter.Writer{}
  4546. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage56(&w, v)
  4547. return w.Buffer.BuildBytes(), w.Error
  4548. }
  4549. // MarshalEasyJSON supports easyjson.Marshaler interface
  4550. func (v EventAttributionReportingTriggerRegistered) MarshalEasyJSON(w *jwriter.Writer) {
  4551. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage56(w, v)
  4552. }
  4553. // UnmarshalJSON supports json.Unmarshaler interface
  4554. func (v *EventAttributionReportingTriggerRegistered) UnmarshalJSON(data []byte) error {
  4555. r := jlexer.Lexer{Data: data}
  4556. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage56(&r, v)
  4557. return r.Error()
  4558. }
  4559. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4560. func (v *EventAttributionReportingTriggerRegistered) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4561. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage56(l, v)
  4562. }
  4563. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage57(in *jlexer.Lexer, out *EventAttributionReportingSourceRegistered) {
  4564. isTopLevel := in.IsStart()
  4565. if in.IsNull() {
  4566. if isTopLevel {
  4567. in.Consumed()
  4568. }
  4569. in.Skip()
  4570. return
  4571. }
  4572. in.Delim('{')
  4573. for !in.IsDelim('}') {
  4574. key := in.UnsafeFieldName(false)
  4575. in.WantColon()
  4576. if in.IsNull() {
  4577. in.Skip()
  4578. in.WantComma()
  4579. continue
  4580. }
  4581. switch key {
  4582. case "registration":
  4583. if in.IsNull() {
  4584. in.Skip()
  4585. out.Registration = nil
  4586. } else {
  4587. if out.Registration == nil {
  4588. out.Registration = new(AttributionReportingSourceRegistration)
  4589. }
  4590. (*out.Registration).UnmarshalEasyJSON(in)
  4591. }
  4592. case "result":
  4593. (out.Result).UnmarshalEasyJSON(in)
  4594. default:
  4595. in.SkipRecursive()
  4596. }
  4597. in.WantComma()
  4598. }
  4599. in.Delim('}')
  4600. if isTopLevel {
  4601. in.Consumed()
  4602. }
  4603. }
  4604. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage57(out *jwriter.Writer, in EventAttributionReportingSourceRegistered) {
  4605. out.RawByte('{')
  4606. first := true
  4607. _ = first
  4608. {
  4609. const prefix string = ",\"registration\":"
  4610. out.RawString(prefix[1:])
  4611. if in.Registration == nil {
  4612. out.RawString("null")
  4613. } else {
  4614. (*in.Registration).MarshalEasyJSON(out)
  4615. }
  4616. }
  4617. {
  4618. const prefix string = ",\"result\":"
  4619. out.RawString(prefix)
  4620. (in.Result).MarshalEasyJSON(out)
  4621. }
  4622. out.RawByte('}')
  4623. }
  4624. // MarshalJSON supports json.Marshaler interface
  4625. func (v EventAttributionReportingSourceRegistered) MarshalJSON() ([]byte, error) {
  4626. w := jwriter.Writer{}
  4627. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage57(&w, v)
  4628. return w.Buffer.BuildBytes(), w.Error
  4629. }
  4630. // MarshalEasyJSON supports easyjson.Marshaler interface
  4631. func (v EventAttributionReportingSourceRegistered) MarshalEasyJSON(w *jwriter.Writer) {
  4632. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage57(w, v)
  4633. }
  4634. // UnmarshalJSON supports json.Unmarshaler interface
  4635. func (v *EventAttributionReportingSourceRegistered) UnmarshalJSON(data []byte) error {
  4636. r := jlexer.Lexer{Data: data}
  4637. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage57(&r, v)
  4638. return r.Error()
  4639. }
  4640. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4641. func (v *EventAttributionReportingSourceRegistered) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4642. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage57(l, v)
  4643. }
  4644. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage58(in *jlexer.Lexer, out *DeleteStorageBucketParams) {
  4645. isTopLevel := in.IsStart()
  4646. if in.IsNull() {
  4647. if isTopLevel {
  4648. in.Consumed()
  4649. }
  4650. in.Skip()
  4651. return
  4652. }
  4653. in.Delim('{')
  4654. for !in.IsDelim('}') {
  4655. key := in.UnsafeFieldName(false)
  4656. in.WantColon()
  4657. if in.IsNull() {
  4658. in.Skip()
  4659. in.WantComma()
  4660. continue
  4661. }
  4662. switch key {
  4663. case "bucket":
  4664. if in.IsNull() {
  4665. in.Skip()
  4666. out.Bucket = nil
  4667. } else {
  4668. if out.Bucket == nil {
  4669. out.Bucket = new(Bucket)
  4670. }
  4671. (*out.Bucket).UnmarshalEasyJSON(in)
  4672. }
  4673. default:
  4674. in.SkipRecursive()
  4675. }
  4676. in.WantComma()
  4677. }
  4678. in.Delim('}')
  4679. if isTopLevel {
  4680. in.Consumed()
  4681. }
  4682. }
  4683. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage58(out *jwriter.Writer, in DeleteStorageBucketParams) {
  4684. out.RawByte('{')
  4685. first := true
  4686. _ = first
  4687. {
  4688. const prefix string = ",\"bucket\":"
  4689. out.RawString(prefix[1:])
  4690. if in.Bucket == nil {
  4691. out.RawString("null")
  4692. } else {
  4693. (*in.Bucket).MarshalEasyJSON(out)
  4694. }
  4695. }
  4696. out.RawByte('}')
  4697. }
  4698. // MarshalJSON supports json.Marshaler interface
  4699. func (v DeleteStorageBucketParams) MarshalJSON() ([]byte, error) {
  4700. w := jwriter.Writer{}
  4701. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage58(&w, v)
  4702. return w.Buffer.BuildBytes(), w.Error
  4703. }
  4704. // MarshalEasyJSON supports easyjson.Marshaler interface
  4705. func (v DeleteStorageBucketParams) MarshalEasyJSON(w *jwriter.Writer) {
  4706. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage58(w, v)
  4707. }
  4708. // UnmarshalJSON supports json.Unmarshaler interface
  4709. func (v *DeleteStorageBucketParams) UnmarshalJSON(data []byte) error {
  4710. r := jlexer.Lexer{Data: data}
  4711. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage58(&r, v)
  4712. return r.Error()
  4713. }
  4714. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4715. func (v *DeleteStorageBucketParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4716. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage58(l, v)
  4717. }
  4718. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage59(in *jlexer.Lexer, out *DeleteSharedStorageEntryParams) {
  4719. isTopLevel := in.IsStart()
  4720. if in.IsNull() {
  4721. if isTopLevel {
  4722. in.Consumed()
  4723. }
  4724. in.Skip()
  4725. return
  4726. }
  4727. in.Delim('{')
  4728. for !in.IsDelim('}') {
  4729. key := in.UnsafeFieldName(false)
  4730. in.WantColon()
  4731. if in.IsNull() {
  4732. in.Skip()
  4733. in.WantComma()
  4734. continue
  4735. }
  4736. switch key {
  4737. case "ownerOrigin":
  4738. out.OwnerOrigin = string(in.String())
  4739. case "key":
  4740. out.Key = string(in.String())
  4741. default:
  4742. in.SkipRecursive()
  4743. }
  4744. in.WantComma()
  4745. }
  4746. in.Delim('}')
  4747. if isTopLevel {
  4748. in.Consumed()
  4749. }
  4750. }
  4751. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage59(out *jwriter.Writer, in DeleteSharedStorageEntryParams) {
  4752. out.RawByte('{')
  4753. first := true
  4754. _ = first
  4755. {
  4756. const prefix string = ",\"ownerOrigin\":"
  4757. out.RawString(prefix[1:])
  4758. out.String(string(in.OwnerOrigin))
  4759. }
  4760. {
  4761. const prefix string = ",\"key\":"
  4762. out.RawString(prefix)
  4763. out.String(string(in.Key))
  4764. }
  4765. out.RawByte('}')
  4766. }
  4767. // MarshalJSON supports json.Marshaler interface
  4768. func (v DeleteSharedStorageEntryParams) MarshalJSON() ([]byte, error) {
  4769. w := jwriter.Writer{}
  4770. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage59(&w, v)
  4771. return w.Buffer.BuildBytes(), w.Error
  4772. }
  4773. // MarshalEasyJSON supports easyjson.Marshaler interface
  4774. func (v DeleteSharedStorageEntryParams) MarshalEasyJSON(w *jwriter.Writer) {
  4775. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage59(w, v)
  4776. }
  4777. // UnmarshalJSON supports json.Unmarshaler interface
  4778. func (v *DeleteSharedStorageEntryParams) UnmarshalJSON(data []byte) error {
  4779. r := jlexer.Lexer{Data: data}
  4780. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage59(&r, v)
  4781. return r.Error()
  4782. }
  4783. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4784. func (v *DeleteSharedStorageEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4785. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage59(l, v)
  4786. }
  4787. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage60(in *jlexer.Lexer, out *ClearTrustTokensReturns) {
  4788. isTopLevel := in.IsStart()
  4789. if in.IsNull() {
  4790. if isTopLevel {
  4791. in.Consumed()
  4792. }
  4793. in.Skip()
  4794. return
  4795. }
  4796. in.Delim('{')
  4797. for !in.IsDelim('}') {
  4798. key := in.UnsafeFieldName(false)
  4799. in.WantColon()
  4800. if in.IsNull() {
  4801. in.Skip()
  4802. in.WantComma()
  4803. continue
  4804. }
  4805. switch key {
  4806. case "didDeleteTokens":
  4807. out.DidDeleteTokens = bool(in.Bool())
  4808. default:
  4809. in.SkipRecursive()
  4810. }
  4811. in.WantComma()
  4812. }
  4813. in.Delim('}')
  4814. if isTopLevel {
  4815. in.Consumed()
  4816. }
  4817. }
  4818. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage60(out *jwriter.Writer, in ClearTrustTokensReturns) {
  4819. out.RawByte('{')
  4820. first := true
  4821. _ = first
  4822. if in.DidDeleteTokens {
  4823. const prefix string = ",\"didDeleteTokens\":"
  4824. first = false
  4825. out.RawString(prefix[1:])
  4826. out.Bool(bool(in.DidDeleteTokens))
  4827. }
  4828. out.RawByte('}')
  4829. }
  4830. // MarshalJSON supports json.Marshaler interface
  4831. func (v ClearTrustTokensReturns) MarshalJSON() ([]byte, error) {
  4832. w := jwriter.Writer{}
  4833. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage60(&w, v)
  4834. return w.Buffer.BuildBytes(), w.Error
  4835. }
  4836. // MarshalEasyJSON supports easyjson.Marshaler interface
  4837. func (v ClearTrustTokensReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4838. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage60(w, v)
  4839. }
  4840. // UnmarshalJSON supports json.Unmarshaler interface
  4841. func (v *ClearTrustTokensReturns) UnmarshalJSON(data []byte) error {
  4842. r := jlexer.Lexer{Data: data}
  4843. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage60(&r, v)
  4844. return r.Error()
  4845. }
  4846. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4847. func (v *ClearTrustTokensReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4848. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage60(l, v)
  4849. }
  4850. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, out *ClearTrustTokensParams) {
  4851. isTopLevel := in.IsStart()
  4852. if in.IsNull() {
  4853. if isTopLevel {
  4854. in.Consumed()
  4855. }
  4856. in.Skip()
  4857. return
  4858. }
  4859. in.Delim('{')
  4860. for !in.IsDelim('}') {
  4861. key := in.UnsafeFieldName(false)
  4862. in.WantColon()
  4863. if in.IsNull() {
  4864. in.Skip()
  4865. in.WantComma()
  4866. continue
  4867. }
  4868. switch key {
  4869. case "issuerOrigin":
  4870. out.IssuerOrigin = string(in.String())
  4871. default:
  4872. in.SkipRecursive()
  4873. }
  4874. in.WantComma()
  4875. }
  4876. in.Delim('}')
  4877. if isTopLevel {
  4878. in.Consumed()
  4879. }
  4880. }
  4881. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer, in ClearTrustTokensParams) {
  4882. out.RawByte('{')
  4883. first := true
  4884. _ = first
  4885. {
  4886. const prefix string = ",\"issuerOrigin\":"
  4887. out.RawString(prefix[1:])
  4888. out.String(string(in.IssuerOrigin))
  4889. }
  4890. out.RawByte('}')
  4891. }
  4892. // MarshalJSON supports json.Marshaler interface
  4893. func (v ClearTrustTokensParams) MarshalJSON() ([]byte, error) {
  4894. w := jwriter.Writer{}
  4895. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(&w, v)
  4896. return w.Buffer.BuildBytes(), w.Error
  4897. }
  4898. // MarshalEasyJSON supports easyjson.Marshaler interface
  4899. func (v ClearTrustTokensParams) MarshalEasyJSON(w *jwriter.Writer) {
  4900. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(w, v)
  4901. }
  4902. // UnmarshalJSON supports json.Unmarshaler interface
  4903. func (v *ClearTrustTokensParams) UnmarshalJSON(data []byte) error {
  4904. r := jlexer.Lexer{Data: data}
  4905. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(&r, v)
  4906. return r.Error()
  4907. }
  4908. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4909. func (v *ClearTrustTokensParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4910. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(l, v)
  4911. }
  4912. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(in *jlexer.Lexer, out *ClearSharedStorageEntriesParams) {
  4913. isTopLevel := in.IsStart()
  4914. if in.IsNull() {
  4915. if isTopLevel {
  4916. in.Consumed()
  4917. }
  4918. in.Skip()
  4919. return
  4920. }
  4921. in.Delim('{')
  4922. for !in.IsDelim('}') {
  4923. key := in.UnsafeFieldName(false)
  4924. in.WantColon()
  4925. if in.IsNull() {
  4926. in.Skip()
  4927. in.WantComma()
  4928. continue
  4929. }
  4930. switch key {
  4931. case "ownerOrigin":
  4932. out.OwnerOrigin = string(in.String())
  4933. default:
  4934. in.SkipRecursive()
  4935. }
  4936. in.WantComma()
  4937. }
  4938. in.Delim('}')
  4939. if isTopLevel {
  4940. in.Consumed()
  4941. }
  4942. }
  4943. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(out *jwriter.Writer, in ClearSharedStorageEntriesParams) {
  4944. out.RawByte('{')
  4945. first := true
  4946. _ = first
  4947. {
  4948. const prefix string = ",\"ownerOrigin\":"
  4949. out.RawString(prefix[1:])
  4950. out.String(string(in.OwnerOrigin))
  4951. }
  4952. out.RawByte('}')
  4953. }
  4954. // MarshalJSON supports json.Marshaler interface
  4955. func (v ClearSharedStorageEntriesParams) MarshalJSON() ([]byte, error) {
  4956. w := jwriter.Writer{}
  4957. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(&w, v)
  4958. return w.Buffer.BuildBytes(), w.Error
  4959. }
  4960. // MarshalEasyJSON supports easyjson.Marshaler interface
  4961. func (v ClearSharedStorageEntriesParams) MarshalEasyJSON(w *jwriter.Writer) {
  4962. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(w, v)
  4963. }
  4964. // UnmarshalJSON supports json.Unmarshaler interface
  4965. func (v *ClearSharedStorageEntriesParams) UnmarshalJSON(data []byte) error {
  4966. r := jlexer.Lexer{Data: data}
  4967. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(&r, v)
  4968. return r.Error()
  4969. }
  4970. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4971. func (v *ClearSharedStorageEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4972. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(l, v)
  4973. }
  4974. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(in *jlexer.Lexer, out *ClearDataForStorageKeyParams) {
  4975. isTopLevel := in.IsStart()
  4976. if in.IsNull() {
  4977. if isTopLevel {
  4978. in.Consumed()
  4979. }
  4980. in.Skip()
  4981. return
  4982. }
  4983. in.Delim('{')
  4984. for !in.IsDelim('}') {
  4985. key := in.UnsafeFieldName(false)
  4986. in.WantColon()
  4987. if in.IsNull() {
  4988. in.Skip()
  4989. in.WantComma()
  4990. continue
  4991. }
  4992. switch key {
  4993. case "storageKey":
  4994. out.StorageKey = string(in.String())
  4995. case "storageTypes":
  4996. out.StorageTypes = string(in.String())
  4997. default:
  4998. in.SkipRecursive()
  4999. }
  5000. in.WantComma()
  5001. }
  5002. in.Delim('}')
  5003. if isTopLevel {
  5004. in.Consumed()
  5005. }
  5006. }
  5007. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(out *jwriter.Writer, in ClearDataForStorageKeyParams) {
  5008. out.RawByte('{')
  5009. first := true
  5010. _ = first
  5011. {
  5012. const prefix string = ",\"storageKey\":"
  5013. out.RawString(prefix[1:])
  5014. out.String(string(in.StorageKey))
  5015. }
  5016. {
  5017. const prefix string = ",\"storageTypes\":"
  5018. out.RawString(prefix)
  5019. out.String(string(in.StorageTypes))
  5020. }
  5021. out.RawByte('}')
  5022. }
  5023. // MarshalJSON supports json.Marshaler interface
  5024. func (v ClearDataForStorageKeyParams) MarshalJSON() ([]byte, error) {
  5025. w := jwriter.Writer{}
  5026. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(&w, v)
  5027. return w.Buffer.BuildBytes(), w.Error
  5028. }
  5029. // MarshalEasyJSON supports easyjson.Marshaler interface
  5030. func (v ClearDataForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
  5031. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(w, v)
  5032. }
  5033. // UnmarshalJSON supports json.Unmarshaler interface
  5034. func (v *ClearDataForStorageKeyParams) UnmarshalJSON(data []byte) error {
  5035. r := jlexer.Lexer{Data: data}
  5036. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(&r, v)
  5037. return r.Error()
  5038. }
  5039. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5040. func (v *ClearDataForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5041. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(l, v)
  5042. }
  5043. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(in *jlexer.Lexer, out *ClearDataForOriginParams) {
  5044. isTopLevel := in.IsStart()
  5045. if in.IsNull() {
  5046. if isTopLevel {
  5047. in.Consumed()
  5048. }
  5049. in.Skip()
  5050. return
  5051. }
  5052. in.Delim('{')
  5053. for !in.IsDelim('}') {
  5054. key := in.UnsafeFieldName(false)
  5055. in.WantColon()
  5056. if in.IsNull() {
  5057. in.Skip()
  5058. in.WantComma()
  5059. continue
  5060. }
  5061. switch key {
  5062. case "origin":
  5063. out.Origin = string(in.String())
  5064. case "storageTypes":
  5065. out.StorageTypes = string(in.String())
  5066. default:
  5067. in.SkipRecursive()
  5068. }
  5069. in.WantComma()
  5070. }
  5071. in.Delim('}')
  5072. if isTopLevel {
  5073. in.Consumed()
  5074. }
  5075. }
  5076. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(out *jwriter.Writer, in ClearDataForOriginParams) {
  5077. out.RawByte('{')
  5078. first := true
  5079. _ = first
  5080. {
  5081. const prefix string = ",\"origin\":"
  5082. out.RawString(prefix[1:])
  5083. out.String(string(in.Origin))
  5084. }
  5085. {
  5086. const prefix string = ",\"storageTypes\":"
  5087. out.RawString(prefix)
  5088. out.String(string(in.StorageTypes))
  5089. }
  5090. out.RawByte('}')
  5091. }
  5092. // MarshalJSON supports json.Marshaler interface
  5093. func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error) {
  5094. w := jwriter.Writer{}
  5095. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(&w, v)
  5096. return w.Buffer.BuildBytes(), w.Error
  5097. }
  5098. // MarshalEasyJSON supports easyjson.Marshaler interface
  5099. func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
  5100. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(w, v)
  5101. }
  5102. // UnmarshalJSON supports json.Unmarshaler interface
  5103. func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error {
  5104. r := jlexer.Lexer{Data: data}
  5105. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(&r, v)
  5106. return r.Error()
  5107. }
  5108. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5109. func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5110. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(l, v)
  5111. }
  5112. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(in *jlexer.Lexer, out *ClearCookiesParams) {
  5113. isTopLevel := in.IsStart()
  5114. if in.IsNull() {
  5115. if isTopLevel {
  5116. in.Consumed()
  5117. }
  5118. in.Skip()
  5119. return
  5120. }
  5121. in.Delim('{')
  5122. for !in.IsDelim('}') {
  5123. key := in.UnsafeFieldName(false)
  5124. in.WantColon()
  5125. if in.IsNull() {
  5126. in.Skip()
  5127. in.WantComma()
  5128. continue
  5129. }
  5130. switch key {
  5131. case "browserContextId":
  5132. out.BrowserContextID = cdp.BrowserContextID(in.String())
  5133. default:
  5134. in.SkipRecursive()
  5135. }
  5136. in.WantComma()
  5137. }
  5138. in.Delim('}')
  5139. if isTopLevel {
  5140. in.Consumed()
  5141. }
  5142. }
  5143. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(out *jwriter.Writer, in ClearCookiesParams) {
  5144. out.RawByte('{')
  5145. first := true
  5146. _ = first
  5147. if in.BrowserContextID != "" {
  5148. const prefix string = ",\"browserContextId\":"
  5149. first = false
  5150. out.RawString(prefix[1:])
  5151. out.String(string(in.BrowserContextID))
  5152. }
  5153. out.RawByte('}')
  5154. }
  5155. // MarshalJSON supports json.Marshaler interface
  5156. func (v ClearCookiesParams) MarshalJSON() ([]byte, error) {
  5157. w := jwriter.Writer{}
  5158. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(&w, v)
  5159. return w.Buffer.BuildBytes(), w.Error
  5160. }
  5161. // MarshalEasyJSON supports easyjson.Marshaler interface
  5162. func (v ClearCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
  5163. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(w, v)
  5164. }
  5165. // UnmarshalJSON supports json.Unmarshaler interface
  5166. func (v *ClearCookiesParams) UnmarshalJSON(data []byte) error {
  5167. r := jlexer.Lexer{Data: data}
  5168. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(&r, v)
  5169. return r.Error()
  5170. }
  5171. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5172. func (v *ClearCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5173. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(l, v)
  5174. }
  5175. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage66(in *jlexer.Lexer, out *BucketInfo) {
  5176. isTopLevel := in.IsStart()
  5177. if in.IsNull() {
  5178. if isTopLevel {
  5179. in.Consumed()
  5180. }
  5181. in.Skip()
  5182. return
  5183. }
  5184. in.Delim('{')
  5185. for !in.IsDelim('}') {
  5186. key := in.UnsafeFieldName(false)
  5187. in.WantColon()
  5188. if in.IsNull() {
  5189. in.Skip()
  5190. in.WantComma()
  5191. continue
  5192. }
  5193. switch key {
  5194. case "bucket":
  5195. if in.IsNull() {
  5196. in.Skip()
  5197. out.Bucket = nil
  5198. } else {
  5199. if out.Bucket == nil {
  5200. out.Bucket = new(Bucket)
  5201. }
  5202. (*out.Bucket).UnmarshalEasyJSON(in)
  5203. }
  5204. case "id":
  5205. out.ID = string(in.String())
  5206. case "expiration":
  5207. if in.IsNull() {
  5208. in.Skip()
  5209. out.Expiration = nil
  5210. } else {
  5211. if out.Expiration == nil {
  5212. out.Expiration = new(cdp.TimeSinceEpoch)
  5213. }
  5214. (*out.Expiration).UnmarshalEasyJSON(in)
  5215. }
  5216. case "quota":
  5217. out.Quota = float64(in.Float64())
  5218. case "persistent":
  5219. out.Persistent = bool(in.Bool())
  5220. case "durability":
  5221. (out.Durability).UnmarshalEasyJSON(in)
  5222. default:
  5223. in.SkipRecursive()
  5224. }
  5225. in.WantComma()
  5226. }
  5227. in.Delim('}')
  5228. if isTopLevel {
  5229. in.Consumed()
  5230. }
  5231. }
  5232. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage66(out *jwriter.Writer, in BucketInfo) {
  5233. out.RawByte('{')
  5234. first := true
  5235. _ = first
  5236. {
  5237. const prefix string = ",\"bucket\":"
  5238. out.RawString(prefix[1:])
  5239. if in.Bucket == nil {
  5240. out.RawString("null")
  5241. } else {
  5242. (*in.Bucket).MarshalEasyJSON(out)
  5243. }
  5244. }
  5245. {
  5246. const prefix string = ",\"id\":"
  5247. out.RawString(prefix)
  5248. out.String(string(in.ID))
  5249. }
  5250. {
  5251. const prefix string = ",\"expiration\":"
  5252. out.RawString(prefix)
  5253. if in.Expiration == nil {
  5254. out.RawString("null")
  5255. } else {
  5256. (*in.Expiration).MarshalEasyJSON(out)
  5257. }
  5258. }
  5259. {
  5260. const prefix string = ",\"quota\":"
  5261. out.RawString(prefix)
  5262. out.Float64(float64(in.Quota))
  5263. }
  5264. {
  5265. const prefix string = ",\"persistent\":"
  5266. out.RawString(prefix)
  5267. out.Bool(bool(in.Persistent))
  5268. }
  5269. {
  5270. const prefix string = ",\"durability\":"
  5271. out.RawString(prefix)
  5272. (in.Durability).MarshalEasyJSON(out)
  5273. }
  5274. out.RawByte('}')
  5275. }
  5276. // MarshalJSON supports json.Marshaler interface
  5277. func (v BucketInfo) MarshalJSON() ([]byte, error) {
  5278. w := jwriter.Writer{}
  5279. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage66(&w, v)
  5280. return w.Buffer.BuildBytes(), w.Error
  5281. }
  5282. // MarshalEasyJSON supports easyjson.Marshaler interface
  5283. func (v BucketInfo) MarshalEasyJSON(w *jwriter.Writer) {
  5284. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage66(w, v)
  5285. }
  5286. // UnmarshalJSON supports json.Unmarshaler interface
  5287. func (v *BucketInfo) UnmarshalJSON(data []byte) error {
  5288. r := jlexer.Lexer{Data: data}
  5289. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage66(&r, v)
  5290. return r.Error()
  5291. }
  5292. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5293. func (v *BucketInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5294. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage66(l, v)
  5295. }
  5296. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage67(in *jlexer.Lexer, out *Bucket) {
  5297. isTopLevel := in.IsStart()
  5298. if in.IsNull() {
  5299. if isTopLevel {
  5300. in.Consumed()
  5301. }
  5302. in.Skip()
  5303. return
  5304. }
  5305. in.Delim('{')
  5306. for !in.IsDelim('}') {
  5307. key := in.UnsafeFieldName(false)
  5308. in.WantColon()
  5309. if in.IsNull() {
  5310. in.Skip()
  5311. in.WantComma()
  5312. continue
  5313. }
  5314. switch key {
  5315. case "storageKey":
  5316. out.StorageKey = SerializedStorageKey(in.String())
  5317. case "name":
  5318. out.Name = string(in.String())
  5319. default:
  5320. in.SkipRecursive()
  5321. }
  5322. in.WantComma()
  5323. }
  5324. in.Delim('}')
  5325. if isTopLevel {
  5326. in.Consumed()
  5327. }
  5328. }
  5329. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage67(out *jwriter.Writer, in Bucket) {
  5330. out.RawByte('{')
  5331. first := true
  5332. _ = first
  5333. {
  5334. const prefix string = ",\"storageKey\":"
  5335. out.RawString(prefix[1:])
  5336. out.String(string(in.StorageKey))
  5337. }
  5338. if in.Name != "" {
  5339. const prefix string = ",\"name\":"
  5340. out.RawString(prefix)
  5341. out.String(string(in.Name))
  5342. }
  5343. out.RawByte('}')
  5344. }
  5345. // MarshalJSON supports json.Marshaler interface
  5346. func (v Bucket) MarshalJSON() ([]byte, error) {
  5347. w := jwriter.Writer{}
  5348. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage67(&w, v)
  5349. return w.Buffer.BuildBytes(), w.Error
  5350. }
  5351. // MarshalEasyJSON supports easyjson.Marshaler interface
  5352. func (v Bucket) MarshalEasyJSON(w *jwriter.Writer) {
  5353. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage67(w, v)
  5354. }
  5355. // UnmarshalJSON supports json.Unmarshaler interface
  5356. func (v *Bucket) UnmarshalJSON(data []byte) error {
  5357. r := jlexer.Lexer{Data: data}
  5358. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage67(&r, v)
  5359. return r.Error()
  5360. }
  5361. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5362. func (v *Bucket) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5363. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage67(l, v)
  5364. }
  5365. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage68(in *jlexer.Lexer, out *AttributionReportingTriggerSpec) {
  5366. isTopLevel := in.IsStart()
  5367. if in.IsNull() {
  5368. if isTopLevel {
  5369. in.Consumed()
  5370. }
  5371. in.Skip()
  5372. return
  5373. }
  5374. in.Delim('{')
  5375. for !in.IsDelim('}') {
  5376. key := in.UnsafeFieldName(false)
  5377. in.WantColon()
  5378. if in.IsNull() {
  5379. in.Skip()
  5380. in.WantComma()
  5381. continue
  5382. }
  5383. switch key {
  5384. case "triggerData":
  5385. if in.IsNull() {
  5386. in.Skip()
  5387. out.TriggerData = nil
  5388. } else {
  5389. in.Delim('[')
  5390. if out.TriggerData == nil {
  5391. if !in.IsDelim(']') {
  5392. out.TriggerData = make([]float64, 0, 8)
  5393. } else {
  5394. out.TriggerData = []float64{}
  5395. }
  5396. } else {
  5397. out.TriggerData = (out.TriggerData)[:0]
  5398. }
  5399. for !in.IsDelim(']') {
  5400. var v40 float64
  5401. v40 = float64(in.Float64())
  5402. out.TriggerData = append(out.TriggerData, v40)
  5403. in.WantComma()
  5404. }
  5405. in.Delim(']')
  5406. }
  5407. case "eventReportWindows":
  5408. if in.IsNull() {
  5409. in.Skip()
  5410. out.EventReportWindows = nil
  5411. } else {
  5412. if out.EventReportWindows == nil {
  5413. out.EventReportWindows = new(AttributionReportingEventReportWindows)
  5414. }
  5415. (*out.EventReportWindows).UnmarshalEasyJSON(in)
  5416. }
  5417. default:
  5418. in.SkipRecursive()
  5419. }
  5420. in.WantComma()
  5421. }
  5422. in.Delim('}')
  5423. if isTopLevel {
  5424. in.Consumed()
  5425. }
  5426. }
  5427. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage68(out *jwriter.Writer, in AttributionReportingTriggerSpec) {
  5428. out.RawByte('{')
  5429. first := true
  5430. _ = first
  5431. {
  5432. const prefix string = ",\"triggerData\":"
  5433. out.RawString(prefix[1:])
  5434. if in.TriggerData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5435. out.RawString("null")
  5436. } else {
  5437. out.RawByte('[')
  5438. for v41, v42 := range in.TriggerData {
  5439. if v41 > 0 {
  5440. out.RawByte(',')
  5441. }
  5442. out.Float64(float64(v42))
  5443. }
  5444. out.RawByte(']')
  5445. }
  5446. }
  5447. {
  5448. const prefix string = ",\"eventReportWindows\":"
  5449. out.RawString(prefix)
  5450. if in.EventReportWindows == nil {
  5451. out.RawString("null")
  5452. } else {
  5453. (*in.EventReportWindows).MarshalEasyJSON(out)
  5454. }
  5455. }
  5456. out.RawByte('}')
  5457. }
  5458. // MarshalJSON supports json.Marshaler interface
  5459. func (v AttributionReportingTriggerSpec) MarshalJSON() ([]byte, error) {
  5460. w := jwriter.Writer{}
  5461. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage68(&w, v)
  5462. return w.Buffer.BuildBytes(), w.Error
  5463. }
  5464. // MarshalEasyJSON supports easyjson.Marshaler interface
  5465. func (v AttributionReportingTriggerSpec) MarshalEasyJSON(w *jwriter.Writer) {
  5466. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage68(w, v)
  5467. }
  5468. // UnmarshalJSON supports json.Unmarshaler interface
  5469. func (v *AttributionReportingTriggerSpec) UnmarshalJSON(data []byte) error {
  5470. r := jlexer.Lexer{Data: data}
  5471. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage68(&r, v)
  5472. return r.Error()
  5473. }
  5474. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5475. func (v *AttributionReportingTriggerSpec) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5476. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage68(l, v)
  5477. }
  5478. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage69(in *jlexer.Lexer, out *AttributionReportingTriggerRegistration) {
  5479. isTopLevel := in.IsStart()
  5480. if in.IsNull() {
  5481. if isTopLevel {
  5482. in.Consumed()
  5483. }
  5484. in.Skip()
  5485. return
  5486. }
  5487. in.Delim('{')
  5488. for !in.IsDelim('}') {
  5489. key := in.UnsafeFieldName(false)
  5490. in.WantColon()
  5491. if in.IsNull() {
  5492. in.Skip()
  5493. in.WantComma()
  5494. continue
  5495. }
  5496. switch key {
  5497. case "filters":
  5498. if in.IsNull() {
  5499. in.Skip()
  5500. out.Filters = nil
  5501. } else {
  5502. if out.Filters == nil {
  5503. out.Filters = new(AttributionReportingFilterPair)
  5504. }
  5505. (*out.Filters).UnmarshalEasyJSON(in)
  5506. }
  5507. case "debugKey":
  5508. out.DebugKey = UnsignedInt64asBase10(in.String())
  5509. case "aggregatableDedupKeys":
  5510. if in.IsNull() {
  5511. in.Skip()
  5512. out.AggregatableDedupKeys = nil
  5513. } else {
  5514. in.Delim('[')
  5515. if out.AggregatableDedupKeys == nil {
  5516. if !in.IsDelim(']') {
  5517. out.AggregatableDedupKeys = make([]*AttributionReportingAggregatableDedupKey, 0, 8)
  5518. } else {
  5519. out.AggregatableDedupKeys = []*AttributionReportingAggregatableDedupKey{}
  5520. }
  5521. } else {
  5522. out.AggregatableDedupKeys = (out.AggregatableDedupKeys)[:0]
  5523. }
  5524. for !in.IsDelim(']') {
  5525. var v43 *AttributionReportingAggregatableDedupKey
  5526. if in.IsNull() {
  5527. in.Skip()
  5528. v43 = nil
  5529. } else {
  5530. if v43 == nil {
  5531. v43 = new(AttributionReportingAggregatableDedupKey)
  5532. }
  5533. (*v43).UnmarshalEasyJSON(in)
  5534. }
  5535. out.AggregatableDedupKeys = append(out.AggregatableDedupKeys, v43)
  5536. in.WantComma()
  5537. }
  5538. in.Delim(']')
  5539. }
  5540. case "eventTriggerData":
  5541. if in.IsNull() {
  5542. in.Skip()
  5543. out.EventTriggerData = nil
  5544. } else {
  5545. in.Delim('[')
  5546. if out.EventTriggerData == nil {
  5547. if !in.IsDelim(']') {
  5548. out.EventTriggerData = make([]*AttributionReportingEventTriggerData, 0, 8)
  5549. } else {
  5550. out.EventTriggerData = []*AttributionReportingEventTriggerData{}
  5551. }
  5552. } else {
  5553. out.EventTriggerData = (out.EventTriggerData)[:0]
  5554. }
  5555. for !in.IsDelim(']') {
  5556. var v44 *AttributionReportingEventTriggerData
  5557. if in.IsNull() {
  5558. in.Skip()
  5559. v44 = nil
  5560. } else {
  5561. if v44 == nil {
  5562. v44 = new(AttributionReportingEventTriggerData)
  5563. }
  5564. (*v44).UnmarshalEasyJSON(in)
  5565. }
  5566. out.EventTriggerData = append(out.EventTriggerData, v44)
  5567. in.WantComma()
  5568. }
  5569. in.Delim(']')
  5570. }
  5571. case "aggregatableTriggerData":
  5572. if in.IsNull() {
  5573. in.Skip()
  5574. out.AggregatableTriggerData = nil
  5575. } else {
  5576. in.Delim('[')
  5577. if out.AggregatableTriggerData == nil {
  5578. if !in.IsDelim(']') {
  5579. out.AggregatableTriggerData = make([]*AttributionReportingAggregatableTriggerData, 0, 8)
  5580. } else {
  5581. out.AggregatableTriggerData = []*AttributionReportingAggregatableTriggerData{}
  5582. }
  5583. } else {
  5584. out.AggregatableTriggerData = (out.AggregatableTriggerData)[:0]
  5585. }
  5586. for !in.IsDelim(']') {
  5587. var v45 *AttributionReportingAggregatableTriggerData
  5588. if in.IsNull() {
  5589. in.Skip()
  5590. v45 = nil
  5591. } else {
  5592. if v45 == nil {
  5593. v45 = new(AttributionReportingAggregatableTriggerData)
  5594. }
  5595. (*v45).UnmarshalEasyJSON(in)
  5596. }
  5597. out.AggregatableTriggerData = append(out.AggregatableTriggerData, v45)
  5598. in.WantComma()
  5599. }
  5600. in.Delim(']')
  5601. }
  5602. case "aggregatableValues":
  5603. if in.IsNull() {
  5604. in.Skip()
  5605. out.AggregatableValues = nil
  5606. } else {
  5607. in.Delim('[')
  5608. if out.AggregatableValues == nil {
  5609. if !in.IsDelim(']') {
  5610. out.AggregatableValues = make([]*AttributionReportingAggregatableValueEntry, 0, 8)
  5611. } else {
  5612. out.AggregatableValues = []*AttributionReportingAggregatableValueEntry{}
  5613. }
  5614. } else {
  5615. out.AggregatableValues = (out.AggregatableValues)[:0]
  5616. }
  5617. for !in.IsDelim(']') {
  5618. var v46 *AttributionReportingAggregatableValueEntry
  5619. if in.IsNull() {
  5620. in.Skip()
  5621. v46 = nil
  5622. } else {
  5623. if v46 == nil {
  5624. v46 = new(AttributionReportingAggregatableValueEntry)
  5625. }
  5626. (*v46).UnmarshalEasyJSON(in)
  5627. }
  5628. out.AggregatableValues = append(out.AggregatableValues, v46)
  5629. in.WantComma()
  5630. }
  5631. in.Delim(']')
  5632. }
  5633. case "debugReporting":
  5634. out.DebugReporting = bool(in.Bool())
  5635. case "aggregationCoordinatorOrigin":
  5636. out.AggregationCoordinatorOrigin = string(in.String())
  5637. case "sourceRegistrationTimeConfig":
  5638. (out.SourceRegistrationTimeConfig).UnmarshalEasyJSON(in)
  5639. case "triggerContextId":
  5640. out.TriggerContextID = string(in.String())
  5641. default:
  5642. in.SkipRecursive()
  5643. }
  5644. in.WantComma()
  5645. }
  5646. in.Delim('}')
  5647. if isTopLevel {
  5648. in.Consumed()
  5649. }
  5650. }
  5651. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage69(out *jwriter.Writer, in AttributionReportingTriggerRegistration) {
  5652. out.RawByte('{')
  5653. first := true
  5654. _ = first
  5655. {
  5656. const prefix string = ",\"filters\":"
  5657. out.RawString(prefix[1:])
  5658. if in.Filters == nil {
  5659. out.RawString("null")
  5660. } else {
  5661. (*in.Filters).MarshalEasyJSON(out)
  5662. }
  5663. }
  5664. if in.DebugKey != "" {
  5665. const prefix string = ",\"debugKey\":"
  5666. out.RawString(prefix)
  5667. out.String(string(in.DebugKey))
  5668. }
  5669. {
  5670. const prefix string = ",\"aggregatableDedupKeys\":"
  5671. out.RawString(prefix)
  5672. if in.AggregatableDedupKeys == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5673. out.RawString("null")
  5674. } else {
  5675. out.RawByte('[')
  5676. for v47, v48 := range in.AggregatableDedupKeys {
  5677. if v47 > 0 {
  5678. out.RawByte(',')
  5679. }
  5680. if v48 == nil {
  5681. out.RawString("null")
  5682. } else {
  5683. (*v48).MarshalEasyJSON(out)
  5684. }
  5685. }
  5686. out.RawByte(']')
  5687. }
  5688. }
  5689. {
  5690. const prefix string = ",\"eventTriggerData\":"
  5691. out.RawString(prefix)
  5692. if in.EventTriggerData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5693. out.RawString("null")
  5694. } else {
  5695. out.RawByte('[')
  5696. for v49, v50 := range in.EventTriggerData {
  5697. if v49 > 0 {
  5698. out.RawByte(',')
  5699. }
  5700. if v50 == nil {
  5701. out.RawString("null")
  5702. } else {
  5703. (*v50).MarshalEasyJSON(out)
  5704. }
  5705. }
  5706. out.RawByte(']')
  5707. }
  5708. }
  5709. {
  5710. const prefix string = ",\"aggregatableTriggerData\":"
  5711. out.RawString(prefix)
  5712. if in.AggregatableTriggerData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5713. out.RawString("null")
  5714. } else {
  5715. out.RawByte('[')
  5716. for v51, v52 := range in.AggregatableTriggerData {
  5717. if v51 > 0 {
  5718. out.RawByte(',')
  5719. }
  5720. if v52 == nil {
  5721. out.RawString("null")
  5722. } else {
  5723. (*v52).MarshalEasyJSON(out)
  5724. }
  5725. }
  5726. out.RawByte(']')
  5727. }
  5728. }
  5729. {
  5730. const prefix string = ",\"aggregatableValues\":"
  5731. out.RawString(prefix)
  5732. if in.AggregatableValues == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5733. out.RawString("null")
  5734. } else {
  5735. out.RawByte('[')
  5736. for v53, v54 := range in.AggregatableValues {
  5737. if v53 > 0 {
  5738. out.RawByte(',')
  5739. }
  5740. if v54 == nil {
  5741. out.RawString("null")
  5742. } else {
  5743. (*v54).MarshalEasyJSON(out)
  5744. }
  5745. }
  5746. out.RawByte(']')
  5747. }
  5748. }
  5749. {
  5750. const prefix string = ",\"debugReporting\":"
  5751. out.RawString(prefix)
  5752. out.Bool(bool(in.DebugReporting))
  5753. }
  5754. if in.AggregationCoordinatorOrigin != "" {
  5755. const prefix string = ",\"aggregationCoordinatorOrigin\":"
  5756. out.RawString(prefix)
  5757. out.String(string(in.AggregationCoordinatorOrigin))
  5758. }
  5759. {
  5760. const prefix string = ",\"sourceRegistrationTimeConfig\":"
  5761. out.RawString(prefix)
  5762. (in.SourceRegistrationTimeConfig).MarshalEasyJSON(out)
  5763. }
  5764. if in.TriggerContextID != "" {
  5765. const prefix string = ",\"triggerContextId\":"
  5766. out.RawString(prefix)
  5767. out.String(string(in.TriggerContextID))
  5768. }
  5769. out.RawByte('}')
  5770. }
  5771. // MarshalJSON supports json.Marshaler interface
  5772. func (v AttributionReportingTriggerRegistration) MarshalJSON() ([]byte, error) {
  5773. w := jwriter.Writer{}
  5774. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage69(&w, v)
  5775. return w.Buffer.BuildBytes(), w.Error
  5776. }
  5777. // MarshalEasyJSON supports easyjson.Marshaler interface
  5778. func (v AttributionReportingTriggerRegistration) MarshalEasyJSON(w *jwriter.Writer) {
  5779. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage69(w, v)
  5780. }
  5781. // UnmarshalJSON supports json.Unmarshaler interface
  5782. func (v *AttributionReportingTriggerRegistration) UnmarshalJSON(data []byte) error {
  5783. r := jlexer.Lexer{Data: data}
  5784. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage69(&r, v)
  5785. return r.Error()
  5786. }
  5787. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5788. func (v *AttributionReportingTriggerRegistration) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5789. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage69(l, v)
  5790. }
  5791. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage70(in *jlexer.Lexer, out *AttributionReportingSourceRegistration) {
  5792. isTopLevel := in.IsStart()
  5793. if in.IsNull() {
  5794. if isTopLevel {
  5795. in.Consumed()
  5796. }
  5797. in.Skip()
  5798. return
  5799. }
  5800. in.Delim('{')
  5801. for !in.IsDelim('}') {
  5802. key := in.UnsafeFieldName(false)
  5803. in.WantColon()
  5804. if in.IsNull() {
  5805. in.Skip()
  5806. in.WantComma()
  5807. continue
  5808. }
  5809. switch key {
  5810. case "time":
  5811. if in.IsNull() {
  5812. in.Skip()
  5813. out.Time = nil
  5814. } else {
  5815. if out.Time == nil {
  5816. out.Time = new(cdp.TimeSinceEpoch)
  5817. }
  5818. (*out.Time).UnmarshalEasyJSON(in)
  5819. }
  5820. case "expiry":
  5821. out.Expiry = int64(in.Int64())
  5822. case "triggerSpecs":
  5823. if in.IsNull() {
  5824. in.Skip()
  5825. out.TriggerSpecs = nil
  5826. } else {
  5827. in.Delim('[')
  5828. if out.TriggerSpecs == nil {
  5829. if !in.IsDelim(']') {
  5830. out.TriggerSpecs = make([]*AttributionReportingTriggerSpec, 0, 8)
  5831. } else {
  5832. out.TriggerSpecs = []*AttributionReportingTriggerSpec{}
  5833. }
  5834. } else {
  5835. out.TriggerSpecs = (out.TriggerSpecs)[:0]
  5836. }
  5837. for !in.IsDelim(']') {
  5838. var v55 *AttributionReportingTriggerSpec
  5839. if in.IsNull() {
  5840. in.Skip()
  5841. v55 = nil
  5842. } else {
  5843. if v55 == nil {
  5844. v55 = new(AttributionReportingTriggerSpec)
  5845. }
  5846. (*v55).UnmarshalEasyJSON(in)
  5847. }
  5848. out.TriggerSpecs = append(out.TriggerSpecs, v55)
  5849. in.WantComma()
  5850. }
  5851. in.Delim(']')
  5852. }
  5853. case "aggregatableReportWindow":
  5854. out.AggregatableReportWindow = int64(in.Int64())
  5855. case "type":
  5856. (out.Type).UnmarshalEasyJSON(in)
  5857. case "sourceOrigin":
  5858. out.SourceOrigin = string(in.String())
  5859. case "reportingOrigin":
  5860. out.ReportingOrigin = string(in.String())
  5861. case "destinationSites":
  5862. if in.IsNull() {
  5863. in.Skip()
  5864. out.DestinationSites = nil
  5865. } else {
  5866. in.Delim('[')
  5867. if out.DestinationSites == nil {
  5868. if !in.IsDelim(']') {
  5869. out.DestinationSites = make([]string, 0, 4)
  5870. } else {
  5871. out.DestinationSites = []string{}
  5872. }
  5873. } else {
  5874. out.DestinationSites = (out.DestinationSites)[:0]
  5875. }
  5876. for !in.IsDelim(']') {
  5877. var v56 string
  5878. v56 = string(in.String())
  5879. out.DestinationSites = append(out.DestinationSites, v56)
  5880. in.WantComma()
  5881. }
  5882. in.Delim(']')
  5883. }
  5884. case "eventId":
  5885. out.EventID = UnsignedInt64asBase10(in.String())
  5886. case "priority":
  5887. out.Priority = SignedInt64asBase10(in.String())
  5888. case "filterData":
  5889. if in.IsNull() {
  5890. in.Skip()
  5891. out.FilterData = nil
  5892. } else {
  5893. in.Delim('[')
  5894. if out.FilterData == nil {
  5895. if !in.IsDelim(']') {
  5896. out.FilterData = make([]*AttributionReportingFilterDataEntry, 0, 8)
  5897. } else {
  5898. out.FilterData = []*AttributionReportingFilterDataEntry{}
  5899. }
  5900. } else {
  5901. out.FilterData = (out.FilterData)[:0]
  5902. }
  5903. for !in.IsDelim(']') {
  5904. var v57 *AttributionReportingFilterDataEntry
  5905. if in.IsNull() {
  5906. in.Skip()
  5907. v57 = nil
  5908. } else {
  5909. if v57 == nil {
  5910. v57 = new(AttributionReportingFilterDataEntry)
  5911. }
  5912. (*v57).UnmarshalEasyJSON(in)
  5913. }
  5914. out.FilterData = append(out.FilterData, v57)
  5915. in.WantComma()
  5916. }
  5917. in.Delim(']')
  5918. }
  5919. case "aggregationKeys":
  5920. if in.IsNull() {
  5921. in.Skip()
  5922. out.AggregationKeys = nil
  5923. } else {
  5924. in.Delim('[')
  5925. if out.AggregationKeys == nil {
  5926. if !in.IsDelim(']') {
  5927. out.AggregationKeys = make([]*AttributionReportingAggregationKeysEntry, 0, 8)
  5928. } else {
  5929. out.AggregationKeys = []*AttributionReportingAggregationKeysEntry{}
  5930. }
  5931. } else {
  5932. out.AggregationKeys = (out.AggregationKeys)[:0]
  5933. }
  5934. for !in.IsDelim(']') {
  5935. var v58 *AttributionReportingAggregationKeysEntry
  5936. if in.IsNull() {
  5937. in.Skip()
  5938. v58 = nil
  5939. } else {
  5940. if v58 == nil {
  5941. v58 = new(AttributionReportingAggregationKeysEntry)
  5942. }
  5943. (*v58).UnmarshalEasyJSON(in)
  5944. }
  5945. out.AggregationKeys = append(out.AggregationKeys, v58)
  5946. in.WantComma()
  5947. }
  5948. in.Delim(']')
  5949. }
  5950. case "debugKey":
  5951. out.DebugKey = UnsignedInt64asBase10(in.String())
  5952. case "triggerDataMatching":
  5953. (out.TriggerDataMatching).UnmarshalEasyJSON(in)
  5954. default:
  5955. in.SkipRecursive()
  5956. }
  5957. in.WantComma()
  5958. }
  5959. in.Delim('}')
  5960. if isTopLevel {
  5961. in.Consumed()
  5962. }
  5963. }
  5964. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage70(out *jwriter.Writer, in AttributionReportingSourceRegistration) {
  5965. out.RawByte('{')
  5966. first := true
  5967. _ = first
  5968. {
  5969. const prefix string = ",\"time\":"
  5970. out.RawString(prefix[1:])
  5971. if in.Time == nil {
  5972. out.RawString("null")
  5973. } else {
  5974. (*in.Time).MarshalEasyJSON(out)
  5975. }
  5976. }
  5977. {
  5978. const prefix string = ",\"expiry\":"
  5979. out.RawString(prefix)
  5980. out.Int64(int64(in.Expiry))
  5981. }
  5982. {
  5983. const prefix string = ",\"triggerSpecs\":"
  5984. out.RawString(prefix)
  5985. if in.TriggerSpecs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5986. out.RawString("null")
  5987. } else {
  5988. out.RawByte('[')
  5989. for v59, v60 := range in.TriggerSpecs {
  5990. if v59 > 0 {
  5991. out.RawByte(',')
  5992. }
  5993. if v60 == nil {
  5994. out.RawString("null")
  5995. } else {
  5996. (*v60).MarshalEasyJSON(out)
  5997. }
  5998. }
  5999. out.RawByte(']')
  6000. }
  6001. }
  6002. {
  6003. const prefix string = ",\"aggregatableReportWindow\":"
  6004. out.RawString(prefix)
  6005. out.Int64(int64(in.AggregatableReportWindow))
  6006. }
  6007. {
  6008. const prefix string = ",\"type\":"
  6009. out.RawString(prefix)
  6010. (in.Type).MarshalEasyJSON(out)
  6011. }
  6012. {
  6013. const prefix string = ",\"sourceOrigin\":"
  6014. out.RawString(prefix)
  6015. out.String(string(in.SourceOrigin))
  6016. }
  6017. {
  6018. const prefix string = ",\"reportingOrigin\":"
  6019. out.RawString(prefix)
  6020. out.String(string(in.ReportingOrigin))
  6021. }
  6022. {
  6023. const prefix string = ",\"destinationSites\":"
  6024. out.RawString(prefix)
  6025. if in.DestinationSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6026. out.RawString("null")
  6027. } else {
  6028. out.RawByte('[')
  6029. for v61, v62 := range in.DestinationSites {
  6030. if v61 > 0 {
  6031. out.RawByte(',')
  6032. }
  6033. out.String(string(v62))
  6034. }
  6035. out.RawByte(']')
  6036. }
  6037. }
  6038. {
  6039. const prefix string = ",\"eventId\":"
  6040. out.RawString(prefix)
  6041. out.String(string(in.EventID))
  6042. }
  6043. {
  6044. const prefix string = ",\"priority\":"
  6045. out.RawString(prefix)
  6046. out.String(string(in.Priority))
  6047. }
  6048. {
  6049. const prefix string = ",\"filterData\":"
  6050. out.RawString(prefix)
  6051. if in.FilterData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6052. out.RawString("null")
  6053. } else {
  6054. out.RawByte('[')
  6055. for v63, v64 := range in.FilterData {
  6056. if v63 > 0 {
  6057. out.RawByte(',')
  6058. }
  6059. if v64 == nil {
  6060. out.RawString("null")
  6061. } else {
  6062. (*v64).MarshalEasyJSON(out)
  6063. }
  6064. }
  6065. out.RawByte(']')
  6066. }
  6067. }
  6068. {
  6069. const prefix string = ",\"aggregationKeys\":"
  6070. out.RawString(prefix)
  6071. if in.AggregationKeys == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6072. out.RawString("null")
  6073. } else {
  6074. out.RawByte('[')
  6075. for v65, v66 := range in.AggregationKeys {
  6076. if v65 > 0 {
  6077. out.RawByte(',')
  6078. }
  6079. if v66 == nil {
  6080. out.RawString("null")
  6081. } else {
  6082. (*v66).MarshalEasyJSON(out)
  6083. }
  6084. }
  6085. out.RawByte(']')
  6086. }
  6087. }
  6088. if in.DebugKey != "" {
  6089. const prefix string = ",\"debugKey\":"
  6090. out.RawString(prefix)
  6091. out.String(string(in.DebugKey))
  6092. }
  6093. {
  6094. const prefix string = ",\"triggerDataMatching\":"
  6095. out.RawString(prefix)
  6096. (in.TriggerDataMatching).MarshalEasyJSON(out)
  6097. }
  6098. out.RawByte('}')
  6099. }
  6100. // MarshalJSON supports json.Marshaler interface
  6101. func (v AttributionReportingSourceRegistration) MarshalJSON() ([]byte, error) {
  6102. w := jwriter.Writer{}
  6103. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage70(&w, v)
  6104. return w.Buffer.BuildBytes(), w.Error
  6105. }
  6106. // MarshalEasyJSON supports easyjson.Marshaler interface
  6107. func (v AttributionReportingSourceRegistration) MarshalEasyJSON(w *jwriter.Writer) {
  6108. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage70(w, v)
  6109. }
  6110. // UnmarshalJSON supports json.Unmarshaler interface
  6111. func (v *AttributionReportingSourceRegistration) UnmarshalJSON(data []byte) error {
  6112. r := jlexer.Lexer{Data: data}
  6113. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage70(&r, v)
  6114. return r.Error()
  6115. }
  6116. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6117. func (v *AttributionReportingSourceRegistration) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6118. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage70(l, v)
  6119. }
  6120. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage71(in *jlexer.Lexer, out *AttributionReportingFilterPair) {
  6121. isTopLevel := in.IsStart()
  6122. if in.IsNull() {
  6123. if isTopLevel {
  6124. in.Consumed()
  6125. }
  6126. in.Skip()
  6127. return
  6128. }
  6129. in.Delim('{')
  6130. for !in.IsDelim('}') {
  6131. key := in.UnsafeFieldName(false)
  6132. in.WantColon()
  6133. if in.IsNull() {
  6134. in.Skip()
  6135. in.WantComma()
  6136. continue
  6137. }
  6138. switch key {
  6139. case "filters":
  6140. if in.IsNull() {
  6141. in.Skip()
  6142. out.Filters = nil
  6143. } else {
  6144. in.Delim('[')
  6145. if out.Filters == nil {
  6146. if !in.IsDelim(']') {
  6147. out.Filters = make([]*AttributionReportingFilterConfig, 0, 8)
  6148. } else {
  6149. out.Filters = []*AttributionReportingFilterConfig{}
  6150. }
  6151. } else {
  6152. out.Filters = (out.Filters)[:0]
  6153. }
  6154. for !in.IsDelim(']') {
  6155. var v67 *AttributionReportingFilterConfig
  6156. if in.IsNull() {
  6157. in.Skip()
  6158. v67 = nil
  6159. } else {
  6160. if v67 == nil {
  6161. v67 = new(AttributionReportingFilterConfig)
  6162. }
  6163. (*v67).UnmarshalEasyJSON(in)
  6164. }
  6165. out.Filters = append(out.Filters, v67)
  6166. in.WantComma()
  6167. }
  6168. in.Delim(']')
  6169. }
  6170. case "notFilters":
  6171. if in.IsNull() {
  6172. in.Skip()
  6173. out.NotFilters = nil
  6174. } else {
  6175. in.Delim('[')
  6176. if out.NotFilters == nil {
  6177. if !in.IsDelim(']') {
  6178. out.NotFilters = make([]*AttributionReportingFilterConfig, 0, 8)
  6179. } else {
  6180. out.NotFilters = []*AttributionReportingFilterConfig{}
  6181. }
  6182. } else {
  6183. out.NotFilters = (out.NotFilters)[:0]
  6184. }
  6185. for !in.IsDelim(']') {
  6186. var v68 *AttributionReportingFilterConfig
  6187. if in.IsNull() {
  6188. in.Skip()
  6189. v68 = nil
  6190. } else {
  6191. if v68 == nil {
  6192. v68 = new(AttributionReportingFilterConfig)
  6193. }
  6194. (*v68).UnmarshalEasyJSON(in)
  6195. }
  6196. out.NotFilters = append(out.NotFilters, v68)
  6197. in.WantComma()
  6198. }
  6199. in.Delim(']')
  6200. }
  6201. default:
  6202. in.SkipRecursive()
  6203. }
  6204. in.WantComma()
  6205. }
  6206. in.Delim('}')
  6207. if isTopLevel {
  6208. in.Consumed()
  6209. }
  6210. }
  6211. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage71(out *jwriter.Writer, in AttributionReportingFilterPair) {
  6212. out.RawByte('{')
  6213. first := true
  6214. _ = first
  6215. {
  6216. const prefix string = ",\"filters\":"
  6217. out.RawString(prefix[1:])
  6218. if in.Filters == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6219. out.RawString("null")
  6220. } else {
  6221. out.RawByte('[')
  6222. for v69, v70 := range in.Filters {
  6223. if v69 > 0 {
  6224. out.RawByte(',')
  6225. }
  6226. if v70 == nil {
  6227. out.RawString("null")
  6228. } else {
  6229. (*v70).MarshalEasyJSON(out)
  6230. }
  6231. }
  6232. out.RawByte(']')
  6233. }
  6234. }
  6235. {
  6236. const prefix string = ",\"notFilters\":"
  6237. out.RawString(prefix)
  6238. if in.NotFilters == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6239. out.RawString("null")
  6240. } else {
  6241. out.RawByte('[')
  6242. for v71, v72 := range in.NotFilters {
  6243. if v71 > 0 {
  6244. out.RawByte(',')
  6245. }
  6246. if v72 == nil {
  6247. out.RawString("null")
  6248. } else {
  6249. (*v72).MarshalEasyJSON(out)
  6250. }
  6251. }
  6252. out.RawByte(']')
  6253. }
  6254. }
  6255. out.RawByte('}')
  6256. }
  6257. // MarshalJSON supports json.Marshaler interface
  6258. func (v AttributionReportingFilterPair) MarshalJSON() ([]byte, error) {
  6259. w := jwriter.Writer{}
  6260. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage71(&w, v)
  6261. return w.Buffer.BuildBytes(), w.Error
  6262. }
  6263. // MarshalEasyJSON supports easyjson.Marshaler interface
  6264. func (v AttributionReportingFilterPair) MarshalEasyJSON(w *jwriter.Writer) {
  6265. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage71(w, v)
  6266. }
  6267. // UnmarshalJSON supports json.Unmarshaler interface
  6268. func (v *AttributionReportingFilterPair) UnmarshalJSON(data []byte) error {
  6269. r := jlexer.Lexer{Data: data}
  6270. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage71(&r, v)
  6271. return r.Error()
  6272. }
  6273. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6274. func (v *AttributionReportingFilterPair) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6275. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage71(l, v)
  6276. }
  6277. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage72(in *jlexer.Lexer, out *AttributionReportingFilterDataEntry) {
  6278. isTopLevel := in.IsStart()
  6279. if in.IsNull() {
  6280. if isTopLevel {
  6281. in.Consumed()
  6282. }
  6283. in.Skip()
  6284. return
  6285. }
  6286. in.Delim('{')
  6287. for !in.IsDelim('}') {
  6288. key := in.UnsafeFieldName(false)
  6289. in.WantColon()
  6290. if in.IsNull() {
  6291. in.Skip()
  6292. in.WantComma()
  6293. continue
  6294. }
  6295. switch key {
  6296. case "key":
  6297. out.Key = string(in.String())
  6298. case "values":
  6299. if in.IsNull() {
  6300. in.Skip()
  6301. out.Values = nil
  6302. } else {
  6303. in.Delim('[')
  6304. if out.Values == nil {
  6305. if !in.IsDelim(']') {
  6306. out.Values = make([]string, 0, 4)
  6307. } else {
  6308. out.Values = []string{}
  6309. }
  6310. } else {
  6311. out.Values = (out.Values)[:0]
  6312. }
  6313. for !in.IsDelim(']') {
  6314. var v73 string
  6315. v73 = string(in.String())
  6316. out.Values = append(out.Values, v73)
  6317. in.WantComma()
  6318. }
  6319. in.Delim(']')
  6320. }
  6321. default:
  6322. in.SkipRecursive()
  6323. }
  6324. in.WantComma()
  6325. }
  6326. in.Delim('}')
  6327. if isTopLevel {
  6328. in.Consumed()
  6329. }
  6330. }
  6331. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage72(out *jwriter.Writer, in AttributionReportingFilterDataEntry) {
  6332. out.RawByte('{')
  6333. first := true
  6334. _ = first
  6335. {
  6336. const prefix string = ",\"key\":"
  6337. out.RawString(prefix[1:])
  6338. out.String(string(in.Key))
  6339. }
  6340. {
  6341. const prefix string = ",\"values\":"
  6342. out.RawString(prefix)
  6343. if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6344. out.RawString("null")
  6345. } else {
  6346. out.RawByte('[')
  6347. for v74, v75 := range in.Values {
  6348. if v74 > 0 {
  6349. out.RawByte(',')
  6350. }
  6351. out.String(string(v75))
  6352. }
  6353. out.RawByte(']')
  6354. }
  6355. }
  6356. out.RawByte('}')
  6357. }
  6358. // MarshalJSON supports json.Marshaler interface
  6359. func (v AttributionReportingFilterDataEntry) MarshalJSON() ([]byte, error) {
  6360. w := jwriter.Writer{}
  6361. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage72(&w, v)
  6362. return w.Buffer.BuildBytes(), w.Error
  6363. }
  6364. // MarshalEasyJSON supports easyjson.Marshaler interface
  6365. func (v AttributionReportingFilterDataEntry) MarshalEasyJSON(w *jwriter.Writer) {
  6366. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage72(w, v)
  6367. }
  6368. // UnmarshalJSON supports json.Unmarshaler interface
  6369. func (v *AttributionReportingFilterDataEntry) UnmarshalJSON(data []byte) error {
  6370. r := jlexer.Lexer{Data: data}
  6371. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage72(&r, v)
  6372. return r.Error()
  6373. }
  6374. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6375. func (v *AttributionReportingFilterDataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6376. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage72(l, v)
  6377. }
  6378. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage73(in *jlexer.Lexer, out *AttributionReportingFilterConfig) {
  6379. isTopLevel := in.IsStart()
  6380. if in.IsNull() {
  6381. if isTopLevel {
  6382. in.Consumed()
  6383. }
  6384. in.Skip()
  6385. return
  6386. }
  6387. in.Delim('{')
  6388. for !in.IsDelim('}') {
  6389. key := in.UnsafeFieldName(false)
  6390. in.WantColon()
  6391. if in.IsNull() {
  6392. in.Skip()
  6393. in.WantComma()
  6394. continue
  6395. }
  6396. switch key {
  6397. case "filterValues":
  6398. if in.IsNull() {
  6399. in.Skip()
  6400. out.FilterValues = nil
  6401. } else {
  6402. in.Delim('[')
  6403. if out.FilterValues == nil {
  6404. if !in.IsDelim(']') {
  6405. out.FilterValues = make([]*AttributionReportingFilterDataEntry, 0, 8)
  6406. } else {
  6407. out.FilterValues = []*AttributionReportingFilterDataEntry{}
  6408. }
  6409. } else {
  6410. out.FilterValues = (out.FilterValues)[:0]
  6411. }
  6412. for !in.IsDelim(']') {
  6413. var v76 *AttributionReportingFilterDataEntry
  6414. if in.IsNull() {
  6415. in.Skip()
  6416. v76 = nil
  6417. } else {
  6418. if v76 == nil {
  6419. v76 = new(AttributionReportingFilterDataEntry)
  6420. }
  6421. (*v76).UnmarshalEasyJSON(in)
  6422. }
  6423. out.FilterValues = append(out.FilterValues, v76)
  6424. in.WantComma()
  6425. }
  6426. in.Delim(']')
  6427. }
  6428. case "lookbackWindow":
  6429. out.LookbackWindow = int64(in.Int64())
  6430. default:
  6431. in.SkipRecursive()
  6432. }
  6433. in.WantComma()
  6434. }
  6435. in.Delim('}')
  6436. if isTopLevel {
  6437. in.Consumed()
  6438. }
  6439. }
  6440. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage73(out *jwriter.Writer, in AttributionReportingFilterConfig) {
  6441. out.RawByte('{')
  6442. first := true
  6443. _ = first
  6444. {
  6445. const prefix string = ",\"filterValues\":"
  6446. out.RawString(prefix[1:])
  6447. if in.FilterValues == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6448. out.RawString("null")
  6449. } else {
  6450. out.RawByte('[')
  6451. for v77, v78 := range in.FilterValues {
  6452. if v77 > 0 {
  6453. out.RawByte(',')
  6454. }
  6455. if v78 == nil {
  6456. out.RawString("null")
  6457. } else {
  6458. (*v78).MarshalEasyJSON(out)
  6459. }
  6460. }
  6461. out.RawByte(']')
  6462. }
  6463. }
  6464. if in.LookbackWindow != 0 {
  6465. const prefix string = ",\"lookbackWindow\":"
  6466. out.RawString(prefix)
  6467. out.Int64(int64(in.LookbackWindow))
  6468. }
  6469. out.RawByte('}')
  6470. }
  6471. // MarshalJSON supports json.Marshaler interface
  6472. func (v AttributionReportingFilterConfig) MarshalJSON() ([]byte, error) {
  6473. w := jwriter.Writer{}
  6474. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage73(&w, v)
  6475. return w.Buffer.BuildBytes(), w.Error
  6476. }
  6477. // MarshalEasyJSON supports easyjson.Marshaler interface
  6478. func (v AttributionReportingFilterConfig) MarshalEasyJSON(w *jwriter.Writer) {
  6479. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage73(w, v)
  6480. }
  6481. // UnmarshalJSON supports json.Unmarshaler interface
  6482. func (v *AttributionReportingFilterConfig) UnmarshalJSON(data []byte) error {
  6483. r := jlexer.Lexer{Data: data}
  6484. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage73(&r, v)
  6485. return r.Error()
  6486. }
  6487. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6488. func (v *AttributionReportingFilterConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6489. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage73(l, v)
  6490. }
  6491. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage74(in *jlexer.Lexer, out *AttributionReportingEventTriggerData) {
  6492. isTopLevel := in.IsStart()
  6493. if in.IsNull() {
  6494. if isTopLevel {
  6495. in.Consumed()
  6496. }
  6497. in.Skip()
  6498. return
  6499. }
  6500. in.Delim('{')
  6501. for !in.IsDelim('}') {
  6502. key := in.UnsafeFieldName(false)
  6503. in.WantColon()
  6504. if in.IsNull() {
  6505. in.Skip()
  6506. in.WantComma()
  6507. continue
  6508. }
  6509. switch key {
  6510. case "data":
  6511. out.Data = UnsignedInt64asBase10(in.String())
  6512. case "priority":
  6513. out.Priority = SignedInt64asBase10(in.String())
  6514. case "dedupKey":
  6515. out.DedupKey = UnsignedInt64asBase10(in.String())
  6516. case "filters":
  6517. if in.IsNull() {
  6518. in.Skip()
  6519. out.Filters = nil
  6520. } else {
  6521. if out.Filters == nil {
  6522. out.Filters = new(AttributionReportingFilterPair)
  6523. }
  6524. (*out.Filters).UnmarshalEasyJSON(in)
  6525. }
  6526. default:
  6527. in.SkipRecursive()
  6528. }
  6529. in.WantComma()
  6530. }
  6531. in.Delim('}')
  6532. if isTopLevel {
  6533. in.Consumed()
  6534. }
  6535. }
  6536. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage74(out *jwriter.Writer, in AttributionReportingEventTriggerData) {
  6537. out.RawByte('{')
  6538. first := true
  6539. _ = first
  6540. {
  6541. const prefix string = ",\"data\":"
  6542. out.RawString(prefix[1:])
  6543. out.String(string(in.Data))
  6544. }
  6545. {
  6546. const prefix string = ",\"priority\":"
  6547. out.RawString(prefix)
  6548. out.String(string(in.Priority))
  6549. }
  6550. if in.DedupKey != "" {
  6551. const prefix string = ",\"dedupKey\":"
  6552. out.RawString(prefix)
  6553. out.String(string(in.DedupKey))
  6554. }
  6555. {
  6556. const prefix string = ",\"filters\":"
  6557. out.RawString(prefix)
  6558. if in.Filters == nil {
  6559. out.RawString("null")
  6560. } else {
  6561. (*in.Filters).MarshalEasyJSON(out)
  6562. }
  6563. }
  6564. out.RawByte('}')
  6565. }
  6566. // MarshalJSON supports json.Marshaler interface
  6567. func (v AttributionReportingEventTriggerData) MarshalJSON() ([]byte, error) {
  6568. w := jwriter.Writer{}
  6569. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage74(&w, v)
  6570. return w.Buffer.BuildBytes(), w.Error
  6571. }
  6572. // MarshalEasyJSON supports easyjson.Marshaler interface
  6573. func (v AttributionReportingEventTriggerData) MarshalEasyJSON(w *jwriter.Writer) {
  6574. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage74(w, v)
  6575. }
  6576. // UnmarshalJSON supports json.Unmarshaler interface
  6577. func (v *AttributionReportingEventTriggerData) UnmarshalJSON(data []byte) error {
  6578. r := jlexer.Lexer{Data: data}
  6579. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage74(&r, v)
  6580. return r.Error()
  6581. }
  6582. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6583. func (v *AttributionReportingEventTriggerData) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6584. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage74(l, v)
  6585. }
  6586. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage75(in *jlexer.Lexer, out *AttributionReportingEventReportWindows) {
  6587. isTopLevel := in.IsStart()
  6588. if in.IsNull() {
  6589. if isTopLevel {
  6590. in.Consumed()
  6591. }
  6592. in.Skip()
  6593. return
  6594. }
  6595. in.Delim('{')
  6596. for !in.IsDelim('}') {
  6597. key := in.UnsafeFieldName(false)
  6598. in.WantColon()
  6599. if in.IsNull() {
  6600. in.Skip()
  6601. in.WantComma()
  6602. continue
  6603. }
  6604. switch key {
  6605. case "start":
  6606. out.Start = int64(in.Int64())
  6607. case "ends":
  6608. if in.IsNull() {
  6609. in.Skip()
  6610. out.Ends = nil
  6611. } else {
  6612. in.Delim('[')
  6613. if out.Ends == nil {
  6614. if !in.IsDelim(']') {
  6615. out.Ends = make([]int64, 0, 8)
  6616. } else {
  6617. out.Ends = []int64{}
  6618. }
  6619. } else {
  6620. out.Ends = (out.Ends)[:0]
  6621. }
  6622. for !in.IsDelim(']') {
  6623. var v79 int64
  6624. v79 = int64(in.Int64())
  6625. out.Ends = append(out.Ends, v79)
  6626. in.WantComma()
  6627. }
  6628. in.Delim(']')
  6629. }
  6630. default:
  6631. in.SkipRecursive()
  6632. }
  6633. in.WantComma()
  6634. }
  6635. in.Delim('}')
  6636. if isTopLevel {
  6637. in.Consumed()
  6638. }
  6639. }
  6640. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage75(out *jwriter.Writer, in AttributionReportingEventReportWindows) {
  6641. out.RawByte('{')
  6642. first := true
  6643. _ = first
  6644. {
  6645. const prefix string = ",\"start\":"
  6646. out.RawString(prefix[1:])
  6647. out.Int64(int64(in.Start))
  6648. }
  6649. {
  6650. const prefix string = ",\"ends\":"
  6651. out.RawString(prefix)
  6652. if in.Ends == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6653. out.RawString("null")
  6654. } else {
  6655. out.RawByte('[')
  6656. for v80, v81 := range in.Ends {
  6657. if v80 > 0 {
  6658. out.RawByte(',')
  6659. }
  6660. out.Int64(int64(v81))
  6661. }
  6662. out.RawByte(']')
  6663. }
  6664. }
  6665. out.RawByte('}')
  6666. }
  6667. // MarshalJSON supports json.Marshaler interface
  6668. func (v AttributionReportingEventReportWindows) MarshalJSON() ([]byte, error) {
  6669. w := jwriter.Writer{}
  6670. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage75(&w, v)
  6671. return w.Buffer.BuildBytes(), w.Error
  6672. }
  6673. // MarshalEasyJSON supports easyjson.Marshaler interface
  6674. func (v AttributionReportingEventReportWindows) MarshalEasyJSON(w *jwriter.Writer) {
  6675. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage75(w, v)
  6676. }
  6677. // UnmarshalJSON supports json.Unmarshaler interface
  6678. func (v *AttributionReportingEventReportWindows) UnmarshalJSON(data []byte) error {
  6679. r := jlexer.Lexer{Data: data}
  6680. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage75(&r, v)
  6681. return r.Error()
  6682. }
  6683. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6684. func (v *AttributionReportingEventReportWindows) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6685. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage75(l, v)
  6686. }
  6687. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage76(in *jlexer.Lexer, out *AttributionReportingAggregationKeysEntry) {
  6688. isTopLevel := in.IsStart()
  6689. if in.IsNull() {
  6690. if isTopLevel {
  6691. in.Consumed()
  6692. }
  6693. in.Skip()
  6694. return
  6695. }
  6696. in.Delim('{')
  6697. for !in.IsDelim('}') {
  6698. key := in.UnsafeFieldName(false)
  6699. in.WantColon()
  6700. if in.IsNull() {
  6701. in.Skip()
  6702. in.WantComma()
  6703. continue
  6704. }
  6705. switch key {
  6706. case "key":
  6707. out.Key = string(in.String())
  6708. case "value":
  6709. out.Value = UnsignedInt128asBase16(in.String())
  6710. default:
  6711. in.SkipRecursive()
  6712. }
  6713. in.WantComma()
  6714. }
  6715. in.Delim('}')
  6716. if isTopLevel {
  6717. in.Consumed()
  6718. }
  6719. }
  6720. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage76(out *jwriter.Writer, in AttributionReportingAggregationKeysEntry) {
  6721. out.RawByte('{')
  6722. first := true
  6723. _ = first
  6724. {
  6725. const prefix string = ",\"key\":"
  6726. out.RawString(prefix[1:])
  6727. out.String(string(in.Key))
  6728. }
  6729. {
  6730. const prefix string = ",\"value\":"
  6731. out.RawString(prefix)
  6732. out.String(string(in.Value))
  6733. }
  6734. out.RawByte('}')
  6735. }
  6736. // MarshalJSON supports json.Marshaler interface
  6737. func (v AttributionReportingAggregationKeysEntry) MarshalJSON() ([]byte, error) {
  6738. w := jwriter.Writer{}
  6739. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage76(&w, v)
  6740. return w.Buffer.BuildBytes(), w.Error
  6741. }
  6742. // MarshalEasyJSON supports easyjson.Marshaler interface
  6743. func (v AttributionReportingAggregationKeysEntry) MarshalEasyJSON(w *jwriter.Writer) {
  6744. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage76(w, v)
  6745. }
  6746. // UnmarshalJSON supports json.Unmarshaler interface
  6747. func (v *AttributionReportingAggregationKeysEntry) UnmarshalJSON(data []byte) error {
  6748. r := jlexer.Lexer{Data: data}
  6749. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage76(&r, v)
  6750. return r.Error()
  6751. }
  6752. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6753. func (v *AttributionReportingAggregationKeysEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6754. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage76(l, v)
  6755. }
  6756. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage77(in *jlexer.Lexer, out *AttributionReportingAggregatableValueEntry) {
  6757. isTopLevel := in.IsStart()
  6758. if in.IsNull() {
  6759. if isTopLevel {
  6760. in.Consumed()
  6761. }
  6762. in.Skip()
  6763. return
  6764. }
  6765. in.Delim('{')
  6766. for !in.IsDelim('}') {
  6767. key := in.UnsafeFieldName(false)
  6768. in.WantColon()
  6769. if in.IsNull() {
  6770. in.Skip()
  6771. in.WantComma()
  6772. continue
  6773. }
  6774. switch key {
  6775. case "values":
  6776. if in.IsNull() {
  6777. in.Skip()
  6778. out.Values = nil
  6779. } else {
  6780. in.Delim('[')
  6781. if out.Values == nil {
  6782. if !in.IsDelim(']') {
  6783. out.Values = make([]*AttributionReportingAggregatableValueDictEntry, 0, 8)
  6784. } else {
  6785. out.Values = []*AttributionReportingAggregatableValueDictEntry{}
  6786. }
  6787. } else {
  6788. out.Values = (out.Values)[:0]
  6789. }
  6790. for !in.IsDelim(']') {
  6791. var v82 *AttributionReportingAggregatableValueDictEntry
  6792. if in.IsNull() {
  6793. in.Skip()
  6794. v82 = nil
  6795. } else {
  6796. if v82 == nil {
  6797. v82 = new(AttributionReportingAggregatableValueDictEntry)
  6798. }
  6799. (*v82).UnmarshalEasyJSON(in)
  6800. }
  6801. out.Values = append(out.Values, v82)
  6802. in.WantComma()
  6803. }
  6804. in.Delim(']')
  6805. }
  6806. case "filters":
  6807. if in.IsNull() {
  6808. in.Skip()
  6809. out.Filters = nil
  6810. } else {
  6811. if out.Filters == nil {
  6812. out.Filters = new(AttributionReportingFilterPair)
  6813. }
  6814. (*out.Filters).UnmarshalEasyJSON(in)
  6815. }
  6816. default:
  6817. in.SkipRecursive()
  6818. }
  6819. in.WantComma()
  6820. }
  6821. in.Delim('}')
  6822. if isTopLevel {
  6823. in.Consumed()
  6824. }
  6825. }
  6826. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage77(out *jwriter.Writer, in AttributionReportingAggregatableValueEntry) {
  6827. out.RawByte('{')
  6828. first := true
  6829. _ = first
  6830. {
  6831. const prefix string = ",\"values\":"
  6832. out.RawString(prefix[1:])
  6833. if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6834. out.RawString("null")
  6835. } else {
  6836. out.RawByte('[')
  6837. for v83, v84 := range in.Values {
  6838. if v83 > 0 {
  6839. out.RawByte(',')
  6840. }
  6841. if v84 == nil {
  6842. out.RawString("null")
  6843. } else {
  6844. (*v84).MarshalEasyJSON(out)
  6845. }
  6846. }
  6847. out.RawByte(']')
  6848. }
  6849. }
  6850. {
  6851. const prefix string = ",\"filters\":"
  6852. out.RawString(prefix)
  6853. if in.Filters == nil {
  6854. out.RawString("null")
  6855. } else {
  6856. (*in.Filters).MarshalEasyJSON(out)
  6857. }
  6858. }
  6859. out.RawByte('}')
  6860. }
  6861. // MarshalJSON supports json.Marshaler interface
  6862. func (v AttributionReportingAggregatableValueEntry) MarshalJSON() ([]byte, error) {
  6863. w := jwriter.Writer{}
  6864. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage77(&w, v)
  6865. return w.Buffer.BuildBytes(), w.Error
  6866. }
  6867. // MarshalEasyJSON supports easyjson.Marshaler interface
  6868. func (v AttributionReportingAggregatableValueEntry) MarshalEasyJSON(w *jwriter.Writer) {
  6869. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage77(w, v)
  6870. }
  6871. // UnmarshalJSON supports json.Unmarshaler interface
  6872. func (v *AttributionReportingAggregatableValueEntry) UnmarshalJSON(data []byte) error {
  6873. r := jlexer.Lexer{Data: data}
  6874. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage77(&r, v)
  6875. return r.Error()
  6876. }
  6877. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6878. func (v *AttributionReportingAggregatableValueEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6879. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage77(l, v)
  6880. }
  6881. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage78(in *jlexer.Lexer, out *AttributionReportingAggregatableValueDictEntry) {
  6882. isTopLevel := in.IsStart()
  6883. if in.IsNull() {
  6884. if isTopLevel {
  6885. in.Consumed()
  6886. }
  6887. in.Skip()
  6888. return
  6889. }
  6890. in.Delim('{')
  6891. for !in.IsDelim('}') {
  6892. key := in.UnsafeFieldName(false)
  6893. in.WantColon()
  6894. if in.IsNull() {
  6895. in.Skip()
  6896. in.WantComma()
  6897. continue
  6898. }
  6899. switch key {
  6900. case "key":
  6901. out.Key = string(in.String())
  6902. case "value":
  6903. out.Value = float64(in.Float64())
  6904. default:
  6905. in.SkipRecursive()
  6906. }
  6907. in.WantComma()
  6908. }
  6909. in.Delim('}')
  6910. if isTopLevel {
  6911. in.Consumed()
  6912. }
  6913. }
  6914. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage78(out *jwriter.Writer, in AttributionReportingAggregatableValueDictEntry) {
  6915. out.RawByte('{')
  6916. first := true
  6917. _ = first
  6918. {
  6919. const prefix string = ",\"key\":"
  6920. out.RawString(prefix[1:])
  6921. out.String(string(in.Key))
  6922. }
  6923. {
  6924. const prefix string = ",\"value\":"
  6925. out.RawString(prefix)
  6926. out.Float64(float64(in.Value))
  6927. }
  6928. out.RawByte('}')
  6929. }
  6930. // MarshalJSON supports json.Marshaler interface
  6931. func (v AttributionReportingAggregatableValueDictEntry) MarshalJSON() ([]byte, error) {
  6932. w := jwriter.Writer{}
  6933. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage78(&w, v)
  6934. return w.Buffer.BuildBytes(), w.Error
  6935. }
  6936. // MarshalEasyJSON supports easyjson.Marshaler interface
  6937. func (v AttributionReportingAggregatableValueDictEntry) MarshalEasyJSON(w *jwriter.Writer) {
  6938. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage78(w, v)
  6939. }
  6940. // UnmarshalJSON supports json.Unmarshaler interface
  6941. func (v *AttributionReportingAggregatableValueDictEntry) UnmarshalJSON(data []byte) error {
  6942. r := jlexer.Lexer{Data: data}
  6943. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage78(&r, v)
  6944. return r.Error()
  6945. }
  6946. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6947. func (v *AttributionReportingAggregatableValueDictEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6948. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage78(l, v)
  6949. }
  6950. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage79(in *jlexer.Lexer, out *AttributionReportingAggregatableTriggerData) {
  6951. isTopLevel := in.IsStart()
  6952. if in.IsNull() {
  6953. if isTopLevel {
  6954. in.Consumed()
  6955. }
  6956. in.Skip()
  6957. return
  6958. }
  6959. in.Delim('{')
  6960. for !in.IsDelim('}') {
  6961. key := in.UnsafeFieldName(false)
  6962. in.WantColon()
  6963. if in.IsNull() {
  6964. in.Skip()
  6965. in.WantComma()
  6966. continue
  6967. }
  6968. switch key {
  6969. case "keyPiece":
  6970. out.KeyPiece = UnsignedInt128asBase16(in.String())
  6971. case "sourceKeys":
  6972. if in.IsNull() {
  6973. in.Skip()
  6974. out.SourceKeys = nil
  6975. } else {
  6976. in.Delim('[')
  6977. if out.SourceKeys == nil {
  6978. if !in.IsDelim(']') {
  6979. out.SourceKeys = make([]string, 0, 4)
  6980. } else {
  6981. out.SourceKeys = []string{}
  6982. }
  6983. } else {
  6984. out.SourceKeys = (out.SourceKeys)[:0]
  6985. }
  6986. for !in.IsDelim(']') {
  6987. var v85 string
  6988. v85 = string(in.String())
  6989. out.SourceKeys = append(out.SourceKeys, v85)
  6990. in.WantComma()
  6991. }
  6992. in.Delim(']')
  6993. }
  6994. case "filters":
  6995. if in.IsNull() {
  6996. in.Skip()
  6997. out.Filters = nil
  6998. } else {
  6999. if out.Filters == nil {
  7000. out.Filters = new(AttributionReportingFilterPair)
  7001. }
  7002. (*out.Filters).UnmarshalEasyJSON(in)
  7003. }
  7004. default:
  7005. in.SkipRecursive()
  7006. }
  7007. in.WantComma()
  7008. }
  7009. in.Delim('}')
  7010. if isTopLevel {
  7011. in.Consumed()
  7012. }
  7013. }
  7014. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage79(out *jwriter.Writer, in AttributionReportingAggregatableTriggerData) {
  7015. out.RawByte('{')
  7016. first := true
  7017. _ = first
  7018. {
  7019. const prefix string = ",\"keyPiece\":"
  7020. out.RawString(prefix[1:])
  7021. out.String(string(in.KeyPiece))
  7022. }
  7023. {
  7024. const prefix string = ",\"sourceKeys\":"
  7025. out.RawString(prefix)
  7026. if in.SourceKeys == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  7027. out.RawString("null")
  7028. } else {
  7029. out.RawByte('[')
  7030. for v86, v87 := range in.SourceKeys {
  7031. if v86 > 0 {
  7032. out.RawByte(',')
  7033. }
  7034. out.String(string(v87))
  7035. }
  7036. out.RawByte(']')
  7037. }
  7038. }
  7039. {
  7040. const prefix string = ",\"filters\":"
  7041. out.RawString(prefix)
  7042. if in.Filters == nil {
  7043. out.RawString("null")
  7044. } else {
  7045. (*in.Filters).MarshalEasyJSON(out)
  7046. }
  7047. }
  7048. out.RawByte('}')
  7049. }
  7050. // MarshalJSON supports json.Marshaler interface
  7051. func (v AttributionReportingAggregatableTriggerData) MarshalJSON() ([]byte, error) {
  7052. w := jwriter.Writer{}
  7053. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage79(&w, v)
  7054. return w.Buffer.BuildBytes(), w.Error
  7055. }
  7056. // MarshalEasyJSON supports easyjson.Marshaler interface
  7057. func (v AttributionReportingAggregatableTriggerData) MarshalEasyJSON(w *jwriter.Writer) {
  7058. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage79(w, v)
  7059. }
  7060. // UnmarshalJSON supports json.Unmarshaler interface
  7061. func (v *AttributionReportingAggregatableTriggerData) UnmarshalJSON(data []byte) error {
  7062. r := jlexer.Lexer{Data: data}
  7063. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage79(&r, v)
  7064. return r.Error()
  7065. }
  7066. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7067. func (v *AttributionReportingAggregatableTriggerData) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7068. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage79(l, v)
  7069. }
  7070. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage80(in *jlexer.Lexer, out *AttributionReportingAggregatableDedupKey) {
  7071. isTopLevel := in.IsStart()
  7072. if in.IsNull() {
  7073. if isTopLevel {
  7074. in.Consumed()
  7075. }
  7076. in.Skip()
  7077. return
  7078. }
  7079. in.Delim('{')
  7080. for !in.IsDelim('}') {
  7081. key := in.UnsafeFieldName(false)
  7082. in.WantColon()
  7083. if in.IsNull() {
  7084. in.Skip()
  7085. in.WantComma()
  7086. continue
  7087. }
  7088. switch key {
  7089. case "dedupKey":
  7090. out.DedupKey = UnsignedInt64asBase10(in.String())
  7091. case "filters":
  7092. if in.IsNull() {
  7093. in.Skip()
  7094. out.Filters = nil
  7095. } else {
  7096. if out.Filters == nil {
  7097. out.Filters = new(AttributionReportingFilterPair)
  7098. }
  7099. (*out.Filters).UnmarshalEasyJSON(in)
  7100. }
  7101. default:
  7102. in.SkipRecursive()
  7103. }
  7104. in.WantComma()
  7105. }
  7106. in.Delim('}')
  7107. if isTopLevel {
  7108. in.Consumed()
  7109. }
  7110. }
  7111. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage80(out *jwriter.Writer, in AttributionReportingAggregatableDedupKey) {
  7112. out.RawByte('{')
  7113. first := true
  7114. _ = first
  7115. if in.DedupKey != "" {
  7116. const prefix string = ",\"dedupKey\":"
  7117. first = false
  7118. out.RawString(prefix[1:])
  7119. out.String(string(in.DedupKey))
  7120. }
  7121. {
  7122. const prefix string = ",\"filters\":"
  7123. if first {
  7124. first = false
  7125. out.RawString(prefix[1:])
  7126. } else {
  7127. out.RawString(prefix)
  7128. }
  7129. if in.Filters == nil {
  7130. out.RawString("null")
  7131. } else {
  7132. (*in.Filters).MarshalEasyJSON(out)
  7133. }
  7134. }
  7135. out.RawByte('}')
  7136. }
  7137. // MarshalJSON supports json.Marshaler interface
  7138. func (v AttributionReportingAggregatableDedupKey) MarshalJSON() ([]byte, error) {
  7139. w := jwriter.Writer{}
  7140. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage80(&w, v)
  7141. return w.Buffer.BuildBytes(), w.Error
  7142. }
  7143. // MarshalEasyJSON supports easyjson.Marshaler interface
  7144. func (v AttributionReportingAggregatableDedupKey) MarshalEasyJSON(w *jwriter.Writer) {
  7145. easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage80(w, v)
  7146. }
  7147. // UnmarshalJSON supports json.Unmarshaler interface
  7148. func (v *AttributionReportingAggregatableDedupKey) UnmarshalJSON(data []byte) error {
  7149. r := jlexer.Lexer{Data: data}
  7150. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage80(&r, v)
  7151. return r.Error()
  7152. }
  7153. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7154. func (v *AttributionReportingAggregatableDedupKey) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7155. easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage80(l, v)
  7156. }