12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484 |
- // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
- package storage
- import (
- json "encoding/json"
- cdp "github.com/chromedp/cdproto/cdp"
- network "github.com/chromedp/cdproto/network"
- easyjson "github.com/mailru/easyjson"
- jlexer "github.com/mailru/easyjson/jlexer"
- jwriter "github.com/mailru/easyjson/jwriter"
- )
- // suppress unused package warning
- var (
- _ *json.RawMessage
- _ *jlexer.Lexer
- _ *jwriter.Writer
- _ easyjson.Marshaler
- )
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage(in *jlexer.Lexer, out *UsageForType) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageType":
- (out.StorageType).UnmarshalEasyJSON(in)
- case "usage":
- out.Usage = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage(out *jwriter.Writer, in UsageForType) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"storageType\":"
- out.RawString(prefix[1:])
- (in.StorageType).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"usage\":"
- out.RawString(prefix)
- out.Float64(float64(in.Usage))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v UsageForType) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v UsageForType) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *UsageForType) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *UsageForType) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage1(in *jlexer.Lexer, out *UntrackIndexedDBForStorageKeyParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageKey":
- out.StorageKey = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage1(out *jwriter.Writer, in UntrackIndexedDBForStorageKeyParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix[1:])
- out.String(string(in.StorageKey))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v UntrackIndexedDBForStorageKeyParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage1(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v UntrackIndexedDBForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage1(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *UntrackIndexedDBForStorageKeyParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage1(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *UntrackIndexedDBForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage1(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage2(in *jlexer.Lexer, out *UntrackIndexedDBForOriginParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage2(out *jwriter.Writer, in UntrackIndexedDBForOriginParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v UntrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage2(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v UntrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage2(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *UntrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage2(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *UntrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage2(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage3(in *jlexer.Lexer, out *UntrackCacheStorageForStorageKeyParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageKey":
- out.StorageKey = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage3(out *jwriter.Writer, in UntrackCacheStorageForStorageKeyParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix[1:])
- out.String(string(in.StorageKey))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v UntrackCacheStorageForStorageKeyParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage3(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v UntrackCacheStorageForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage3(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *UntrackCacheStorageForStorageKeyParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage3(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *UntrackCacheStorageForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage3(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage4(in *jlexer.Lexer, out *UntrackCacheStorageForOriginParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage4(out *jwriter.Writer, in UntrackCacheStorageForOriginParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v UntrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage4(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v UntrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage4(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *UntrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage4(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *UntrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage4(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage5(in *jlexer.Lexer, out *TrustTokens) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "issuerOrigin":
- out.IssuerOrigin = string(in.String())
- case "count":
- out.Count = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage5(out *jwriter.Writer, in TrustTokens) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"issuerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.IssuerOrigin))
- }
- {
- const prefix string = ",\"count\":"
- out.RawString(prefix)
- out.Float64(float64(in.Count))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TrustTokens) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage5(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TrustTokens) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage5(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TrustTokens) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage5(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TrustTokens) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage5(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage6(in *jlexer.Lexer, out *TrackIndexedDBForStorageKeyParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageKey":
- out.StorageKey = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage6(out *jwriter.Writer, in TrackIndexedDBForStorageKeyParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix[1:])
- out.String(string(in.StorageKey))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TrackIndexedDBForStorageKeyParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage6(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TrackIndexedDBForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage6(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TrackIndexedDBForStorageKeyParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage6(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TrackIndexedDBForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage6(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage7(in *jlexer.Lexer, out *TrackIndexedDBForOriginParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage7(out *jwriter.Writer, in TrackIndexedDBForOriginParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage7(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage7(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage7(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage7(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage8(in *jlexer.Lexer, out *TrackCacheStorageForStorageKeyParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageKey":
- out.StorageKey = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage8(out *jwriter.Writer, in TrackCacheStorageForStorageKeyParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix[1:])
- out.String(string(in.StorageKey))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TrackCacheStorageForStorageKeyParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage8(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TrackCacheStorageForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage8(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TrackCacheStorageForStorageKeyParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage8(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TrackCacheStorageForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage8(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage9(in *jlexer.Lexer, out *TrackCacheStorageForOriginParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage9(out *jwriter.Writer, in TrackCacheStorageForOriginParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage9(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage9(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage9(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage9(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage10(in *jlexer.Lexer, out *SharedStorageURLWithMetadata) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "reportingMetadata":
- if in.IsNull() {
- in.Skip()
- out.ReportingMetadata = nil
- } else {
- in.Delim('[')
- if out.ReportingMetadata == nil {
- if !in.IsDelim(']') {
- out.ReportingMetadata = make([]*SharedStorageReportingMetadata, 0, 8)
- } else {
- out.ReportingMetadata = []*SharedStorageReportingMetadata{}
- }
- } else {
- out.ReportingMetadata = (out.ReportingMetadata)[:0]
- }
- for !in.IsDelim(']') {
- var v1 *SharedStorageReportingMetadata
- if in.IsNull() {
- in.Skip()
- v1 = nil
- } else {
- if v1 == nil {
- v1 = new(SharedStorageReportingMetadata)
- }
- (*v1).UnmarshalEasyJSON(in)
- }
- out.ReportingMetadata = append(out.ReportingMetadata, v1)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage10(out *jwriter.Writer, in SharedStorageURLWithMetadata) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"reportingMetadata\":"
- out.RawString(prefix)
- if in.ReportingMetadata == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v2, v3 := range in.ReportingMetadata {
- if v2 > 0 {
- out.RawByte(',')
- }
- if v3 == nil {
- out.RawString("null")
- } else {
- (*v3).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SharedStorageURLWithMetadata) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage10(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SharedStorageURLWithMetadata) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage10(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SharedStorageURLWithMetadata) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage10(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SharedStorageURLWithMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage10(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage11(in *jlexer.Lexer, out *SharedStorageReportingMetadata) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "eventType":
- out.EventType = string(in.String())
- case "reportingUrl":
- out.ReportingURL = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage11(out *jwriter.Writer, in SharedStorageReportingMetadata) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"eventType\":"
- out.RawString(prefix[1:])
- out.String(string(in.EventType))
- }
- {
- const prefix string = ",\"reportingUrl\":"
- out.RawString(prefix)
- out.String(string(in.ReportingURL))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SharedStorageReportingMetadata) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage11(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SharedStorageReportingMetadata) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage11(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SharedStorageReportingMetadata) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage11(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SharedStorageReportingMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage11(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage12(in *jlexer.Lexer, out *SharedStorageMetadata) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "creationTime":
- if in.IsNull() {
- in.Skip()
- out.CreationTime = nil
- } else {
- if out.CreationTime == nil {
- out.CreationTime = new(cdp.TimeSinceEpoch)
- }
- (*out.CreationTime).UnmarshalEasyJSON(in)
- }
- case "length":
- out.Length = int64(in.Int64())
- case "remainingBudget":
- out.RemainingBudget = float64(in.Float64())
- case "bytesUsed":
- out.BytesUsed = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage12(out *jwriter.Writer, in SharedStorageMetadata) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"creationTime\":"
- out.RawString(prefix[1:])
- if in.CreationTime == nil {
- out.RawString("null")
- } else {
- (*in.CreationTime).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"length\":"
- out.RawString(prefix)
- out.Int64(int64(in.Length))
- }
- {
- const prefix string = ",\"remainingBudget\":"
- out.RawString(prefix)
- out.Float64(float64(in.RemainingBudget))
- }
- {
- const prefix string = ",\"bytesUsed\":"
- out.RawString(prefix)
- out.Int64(int64(in.BytesUsed))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SharedStorageMetadata) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage12(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SharedStorageMetadata) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage12(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SharedStorageMetadata) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage12(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SharedStorageMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage12(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage13(in *jlexer.Lexer, out *SharedStorageEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "key":
- out.Key = string(in.String())
- case "value":
- out.Value = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage13(out *jwriter.Writer, in SharedStorageEntry) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"key\":"
- out.RawString(prefix[1:])
- out.String(string(in.Key))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SharedStorageEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage13(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SharedStorageEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage13(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SharedStorageEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage13(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SharedStorageEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage13(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage14(in *jlexer.Lexer, out *SharedStorageAccessParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "scriptSourceUrl":
- out.ScriptSourceURL = string(in.String())
- case "operationName":
- out.OperationName = string(in.String())
- case "serializedData":
- out.SerializedData = string(in.String())
- case "urlsWithMetadata":
- if in.IsNull() {
- in.Skip()
- out.UrlsWithMetadata = nil
- } else {
- in.Delim('[')
- if out.UrlsWithMetadata == nil {
- if !in.IsDelim(']') {
- out.UrlsWithMetadata = make([]*SharedStorageURLWithMetadata, 0, 8)
- } else {
- out.UrlsWithMetadata = []*SharedStorageURLWithMetadata{}
- }
- } else {
- out.UrlsWithMetadata = (out.UrlsWithMetadata)[:0]
- }
- for !in.IsDelim(']') {
- var v4 *SharedStorageURLWithMetadata
- if in.IsNull() {
- in.Skip()
- v4 = nil
- } else {
- if v4 == nil {
- v4 = new(SharedStorageURLWithMetadata)
- }
- (*v4).UnmarshalEasyJSON(in)
- }
- out.UrlsWithMetadata = append(out.UrlsWithMetadata, v4)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "key":
- out.Key = string(in.String())
- case "value":
- out.Value = string(in.String())
- case "ignoreIfPresent":
- out.IgnoreIfPresent = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage14(out *jwriter.Writer, in SharedStorageAccessParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.ScriptSourceURL != "" {
- const prefix string = ",\"scriptSourceUrl\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.ScriptSourceURL))
- }
- if in.OperationName != "" {
- const prefix string = ",\"operationName\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.OperationName))
- }
- if in.SerializedData != "" {
- const prefix string = ",\"serializedData\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.SerializedData))
- }
- if len(in.UrlsWithMetadata) != 0 {
- const prefix string = ",\"urlsWithMetadata\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v5, v6 := range in.UrlsWithMetadata {
- if v5 > 0 {
- out.RawByte(',')
- }
- if v6 == nil {
- out.RawString("null")
- } else {
- (*v6).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.Key != "" {
- const prefix string = ",\"key\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Key))
- }
- if in.Value != "" {
- const prefix string = ",\"value\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Value))
- }
- if in.IgnoreIfPresent {
- const prefix string = ",\"ignoreIfPresent\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.IgnoreIfPresent))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SharedStorageAccessParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage14(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SharedStorageAccessParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage14(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SharedStorageAccessParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage14(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SharedStorageAccessParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage14(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage15(in *jlexer.Lexer, out *SetStorageBucketTrackingParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageKey":
- out.StorageKey = string(in.String())
- case "enable":
- out.Enable = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage15(out *jwriter.Writer, in SetStorageBucketTrackingParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix[1:])
- out.String(string(in.StorageKey))
- }
- {
- const prefix string = ",\"enable\":"
- out.RawString(prefix)
- out.Bool(bool(in.Enable))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetStorageBucketTrackingParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage15(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetStorageBucketTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage15(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetStorageBucketTrackingParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage15(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetStorageBucketTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage15(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage16(in *jlexer.Lexer, out *SetSharedStorageTrackingParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enable":
- out.Enable = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage16(out *jwriter.Writer, in SetSharedStorageTrackingParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enable\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enable))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetSharedStorageTrackingParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage16(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetSharedStorageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage16(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetSharedStorageTrackingParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage16(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetSharedStorageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage16(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage17(in *jlexer.Lexer, out *SetSharedStorageEntryParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- case "key":
- out.Key = string(in.String())
- case "value":
- out.Value = string(in.String())
- case "ignoreIfPresent":
- out.IgnoreIfPresent = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage17(out *jwriter.Writer, in SetSharedStorageEntryParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.OwnerOrigin))
- }
- {
- const prefix string = ",\"key\":"
- out.RawString(prefix)
- out.String(string(in.Key))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- if in.IgnoreIfPresent {
- const prefix string = ",\"ignoreIfPresent\":"
- out.RawString(prefix)
- out.Bool(bool(in.IgnoreIfPresent))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetSharedStorageEntryParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage17(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetSharedStorageEntryParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage17(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetSharedStorageEntryParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage17(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetSharedStorageEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage17(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage18(in *jlexer.Lexer, out *SetInterestGroupTrackingParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enable":
- out.Enable = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage18(out *jwriter.Writer, in SetInterestGroupTrackingParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enable\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enable))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetInterestGroupTrackingParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage18(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetInterestGroupTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage18(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetInterestGroupTrackingParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage18(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetInterestGroupTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage18(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage19(in *jlexer.Lexer, out *SetInterestGroupAuctionTrackingParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enable":
- out.Enable = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage19(out *jwriter.Writer, in SetInterestGroupAuctionTrackingParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enable\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enable))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetInterestGroupAuctionTrackingParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage19(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetInterestGroupAuctionTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage19(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetInterestGroupAuctionTrackingParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage19(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetInterestGroupAuctionTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage19(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage20(in *jlexer.Lexer, out *SetCookiesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "cookies":
- if in.IsNull() {
- in.Skip()
- out.Cookies = nil
- } else {
- in.Delim('[')
- if out.Cookies == nil {
- if !in.IsDelim(']') {
- out.Cookies = make([]*network.CookieParam, 0, 8)
- } else {
- out.Cookies = []*network.CookieParam{}
- }
- } else {
- out.Cookies = (out.Cookies)[:0]
- }
- for !in.IsDelim(']') {
- var v7 *network.CookieParam
- if in.IsNull() {
- in.Skip()
- v7 = nil
- } else {
- if v7 == nil {
- v7 = new(network.CookieParam)
- }
- (*v7).UnmarshalEasyJSON(in)
- }
- out.Cookies = append(out.Cookies, v7)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "browserContextId":
- out.BrowserContextID = cdp.BrowserContextID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage20(out *jwriter.Writer, in SetCookiesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"cookies\":"
- out.RawString(prefix[1:])
- if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v8, v9 := range in.Cookies {
- if v8 > 0 {
- out.RawByte(',')
- }
- if v9 == nil {
- out.RawString("null")
- } else {
- (*v9).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.BrowserContextID != "" {
- const prefix string = ",\"browserContextId\":"
- out.RawString(prefix)
- out.String(string(in.BrowserContextID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetCookiesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage20(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage20(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetCookiesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage20(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage20(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage21(in *jlexer.Lexer, out *SetAttributionReportingTrackingParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enable":
- out.Enable = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage21(out *jwriter.Writer, in SetAttributionReportingTrackingParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enable\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enable))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetAttributionReportingTrackingParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage21(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetAttributionReportingTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage21(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetAttributionReportingTrackingParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage21(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetAttributionReportingTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage21(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage22(in *jlexer.Lexer, out *SetAttributionReportingLocalTestingModeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enabled":
- out.Enabled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage22(out *jwriter.Writer, in SetAttributionReportingLocalTestingModeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enabled\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enabled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetAttributionReportingLocalTestingModeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage22(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetAttributionReportingLocalTestingModeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage22(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetAttributionReportingLocalTestingModeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage22(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetAttributionReportingLocalTestingModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage22(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage23(in *jlexer.Lexer, out *SendPendingAttributionReportsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "numSent":
- out.NumSent = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage23(out *jwriter.Writer, in SendPendingAttributionReportsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.NumSent != 0 {
- const prefix string = ",\"numSent\":"
- first = false
- out.RawString(prefix[1:])
- out.Int64(int64(in.NumSent))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SendPendingAttributionReportsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage23(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SendPendingAttributionReportsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage23(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SendPendingAttributionReportsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage23(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SendPendingAttributionReportsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage23(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage24(in *jlexer.Lexer, out *SendPendingAttributionReportsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage24(out *jwriter.Writer, in SendPendingAttributionReportsParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SendPendingAttributionReportsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage24(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SendPendingAttributionReportsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage24(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SendPendingAttributionReportsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage24(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SendPendingAttributionReportsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage24(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage25(in *jlexer.Lexer, out *RunBounceTrackingMitigationsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "deletedSites":
- if in.IsNull() {
- in.Skip()
- out.DeletedSites = nil
- } else {
- in.Delim('[')
- if out.DeletedSites == nil {
- if !in.IsDelim(']') {
- out.DeletedSites = make([]string, 0, 4)
- } else {
- out.DeletedSites = []string{}
- }
- } else {
- out.DeletedSites = (out.DeletedSites)[:0]
- }
- for !in.IsDelim(']') {
- var v10 string
- v10 = string(in.String())
- out.DeletedSites = append(out.DeletedSites, v10)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage25(out *jwriter.Writer, in RunBounceTrackingMitigationsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.DeletedSites) != 0 {
- const prefix string = ",\"deletedSites\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v11, v12 := range in.DeletedSites {
- if v11 > 0 {
- out.RawByte(',')
- }
- out.String(string(v12))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v RunBounceTrackingMitigationsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage25(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v RunBounceTrackingMitigationsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage25(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *RunBounceTrackingMitigationsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage25(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *RunBounceTrackingMitigationsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage25(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage26(in *jlexer.Lexer, out *RunBounceTrackingMitigationsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage26(out *jwriter.Writer, in RunBounceTrackingMitigationsParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v RunBounceTrackingMitigationsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage26(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v RunBounceTrackingMitigationsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage26(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *RunBounceTrackingMitigationsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage26(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *RunBounceTrackingMitigationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage26(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage27(in *jlexer.Lexer, out *ResetSharedStorageBudgetParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage27(out *jwriter.Writer, in ResetSharedStorageBudgetParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.OwnerOrigin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ResetSharedStorageBudgetParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage27(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ResetSharedStorageBudgetParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage27(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ResetSharedStorageBudgetParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage27(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ResetSharedStorageBudgetParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage27(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage28(in *jlexer.Lexer, out *RelatedWebsiteSet) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "primarySites":
- if in.IsNull() {
- in.Skip()
- out.PrimarySites = nil
- } else {
- in.Delim('[')
- if out.PrimarySites == nil {
- if !in.IsDelim(']') {
- out.PrimarySites = make([]string, 0, 4)
- } else {
- out.PrimarySites = []string{}
- }
- } else {
- out.PrimarySites = (out.PrimarySites)[:0]
- }
- for !in.IsDelim(']') {
- var v13 string
- v13 = string(in.String())
- out.PrimarySites = append(out.PrimarySites, v13)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "associatedSites":
- if in.IsNull() {
- in.Skip()
- out.AssociatedSites = nil
- } else {
- in.Delim('[')
- if out.AssociatedSites == nil {
- if !in.IsDelim(']') {
- out.AssociatedSites = make([]string, 0, 4)
- } else {
- out.AssociatedSites = []string{}
- }
- } else {
- out.AssociatedSites = (out.AssociatedSites)[:0]
- }
- for !in.IsDelim(']') {
- var v14 string
- v14 = string(in.String())
- out.AssociatedSites = append(out.AssociatedSites, v14)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "serviceSites":
- if in.IsNull() {
- in.Skip()
- out.ServiceSites = nil
- } else {
- in.Delim('[')
- if out.ServiceSites == nil {
- if !in.IsDelim(']') {
- out.ServiceSites = make([]string, 0, 4)
- } else {
- out.ServiceSites = []string{}
- }
- } else {
- out.ServiceSites = (out.ServiceSites)[:0]
- }
- for !in.IsDelim(']') {
- var v15 string
- v15 = string(in.String())
- out.ServiceSites = append(out.ServiceSites, v15)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage28(out *jwriter.Writer, in RelatedWebsiteSet) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"primarySites\":"
- out.RawString(prefix[1:])
- if in.PrimarySites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v16, v17 := range in.PrimarySites {
- if v16 > 0 {
- out.RawByte(',')
- }
- out.String(string(v17))
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"associatedSites\":"
- out.RawString(prefix)
- if in.AssociatedSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v18, v19 := range in.AssociatedSites {
- if v18 > 0 {
- out.RawByte(',')
- }
- out.String(string(v19))
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"serviceSites\":"
- out.RawString(prefix)
- if in.ServiceSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v20, v21 := range in.ServiceSites {
- if v20 > 0 {
- out.RawByte(',')
- }
- out.String(string(v21))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v RelatedWebsiteSet) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage28(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v RelatedWebsiteSet) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage28(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *RelatedWebsiteSet) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage28(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *RelatedWebsiteSet) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage28(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage29(in *jlexer.Lexer, out *OverrideQuotaForOriginParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- case "quotaSize":
- out.QuotaSize = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage29(out *jwriter.Writer, in OverrideQuotaForOriginParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- if in.QuotaSize != 0 {
- const prefix string = ",\"quotaSize\":"
- out.RawString(prefix)
- out.Float64(float64(in.QuotaSize))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v OverrideQuotaForOriginParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage29(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v OverrideQuotaForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage29(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *OverrideQuotaForOriginParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage29(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *OverrideQuotaForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage29(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage30(in *jlexer.Lexer, out *GetUsageAndQuotaReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "usage":
- out.Usage = float64(in.Float64())
- case "quota":
- out.Quota = float64(in.Float64())
- case "overrideActive":
- out.OverrideActive = bool(in.Bool())
- case "usageBreakdown":
- if in.IsNull() {
- in.Skip()
- out.UsageBreakdown = nil
- } else {
- in.Delim('[')
- if out.UsageBreakdown == nil {
- if !in.IsDelim(']') {
- out.UsageBreakdown = make([]*UsageForType, 0, 8)
- } else {
- out.UsageBreakdown = []*UsageForType{}
- }
- } else {
- out.UsageBreakdown = (out.UsageBreakdown)[:0]
- }
- for !in.IsDelim(']') {
- var v22 *UsageForType
- if in.IsNull() {
- in.Skip()
- v22 = nil
- } else {
- if v22 == nil {
- v22 = new(UsageForType)
- }
- (*v22).UnmarshalEasyJSON(in)
- }
- out.UsageBreakdown = append(out.UsageBreakdown, v22)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage30(out *jwriter.Writer, in GetUsageAndQuotaReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Usage != 0 {
- const prefix string = ",\"usage\":"
- first = false
- out.RawString(prefix[1:])
- out.Float64(float64(in.Usage))
- }
- if in.Quota != 0 {
- const prefix string = ",\"quota\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Float64(float64(in.Quota))
- }
- if in.OverrideActive {
- const prefix string = ",\"overrideActive\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.OverrideActive))
- }
- if len(in.UsageBreakdown) != 0 {
- const prefix string = ",\"usageBreakdown\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v23, v24 := range in.UsageBreakdown {
- if v23 > 0 {
- out.RawByte(',')
- }
- if v24 == nil {
- out.RawString("null")
- } else {
- (*v24).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetUsageAndQuotaReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage30(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetUsageAndQuotaReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage30(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetUsageAndQuotaReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage30(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetUsageAndQuotaReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage30(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage31(in *jlexer.Lexer, out *GetUsageAndQuotaParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage31(out *jwriter.Writer, in GetUsageAndQuotaParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage31(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage31(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage31(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage31(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage32(in *jlexer.Lexer, out *GetTrustTokensReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "tokens":
- if in.IsNull() {
- in.Skip()
- out.Tokens = nil
- } else {
- in.Delim('[')
- if out.Tokens == nil {
- if !in.IsDelim(']') {
- out.Tokens = make([]*TrustTokens, 0, 8)
- } else {
- out.Tokens = []*TrustTokens{}
- }
- } else {
- out.Tokens = (out.Tokens)[:0]
- }
- for !in.IsDelim(']') {
- var v25 *TrustTokens
- if in.IsNull() {
- in.Skip()
- v25 = nil
- } else {
- if v25 == nil {
- v25 = new(TrustTokens)
- }
- (*v25).UnmarshalEasyJSON(in)
- }
- out.Tokens = append(out.Tokens, v25)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage32(out *jwriter.Writer, in GetTrustTokensReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Tokens) != 0 {
- const prefix string = ",\"tokens\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v26, v27 := range in.Tokens {
- if v26 > 0 {
- out.RawByte(',')
- }
- if v27 == nil {
- out.RawString("null")
- } else {
- (*v27).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetTrustTokensReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage32(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetTrustTokensReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage32(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetTrustTokensReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage32(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetTrustTokensReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage32(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage33(in *jlexer.Lexer, out *GetTrustTokensParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage33(out *jwriter.Writer, in GetTrustTokensParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetTrustTokensParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage33(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetTrustTokensParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage33(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetTrustTokensParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage33(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetTrustTokensParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage33(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage34(in *jlexer.Lexer, out *GetStorageKeyForFrameReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageKey":
- out.StorageKey = SerializedStorageKey(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage34(out *jwriter.Writer, in GetStorageKeyForFrameReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.StorageKey != "" {
- const prefix string = ",\"storageKey\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.StorageKey))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetStorageKeyForFrameReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage34(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetStorageKeyForFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage34(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetStorageKeyForFrameReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage34(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetStorageKeyForFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage34(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage35(in *jlexer.Lexer, out *GetStorageKeyForFrameParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage35(out *jwriter.Writer, in GetStorageKeyForFrameParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetStorageKeyForFrameParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage35(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetStorageKeyForFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage35(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetStorageKeyForFrameParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage35(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetStorageKeyForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage35(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage36(in *jlexer.Lexer, out *GetSharedStorageMetadataReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "metadata":
- if in.IsNull() {
- in.Skip()
- out.Metadata = nil
- } else {
- if out.Metadata == nil {
- out.Metadata = new(SharedStorageMetadata)
- }
- (*out.Metadata).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage36(out *jwriter.Writer, in GetSharedStorageMetadataReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Metadata != nil {
- const prefix string = ",\"metadata\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Metadata).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetSharedStorageMetadataReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage36(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetSharedStorageMetadataReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage36(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetSharedStorageMetadataReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage36(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetSharedStorageMetadataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage36(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage37(in *jlexer.Lexer, out *GetSharedStorageMetadataParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage37(out *jwriter.Writer, in GetSharedStorageMetadataParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.OwnerOrigin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetSharedStorageMetadataParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage37(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetSharedStorageMetadataParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage37(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetSharedStorageMetadataParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage37(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetSharedStorageMetadataParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage37(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage38(in *jlexer.Lexer, out *GetSharedStorageEntriesReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "entries":
- if in.IsNull() {
- in.Skip()
- out.Entries = nil
- } else {
- in.Delim('[')
- if out.Entries == nil {
- if !in.IsDelim(']') {
- out.Entries = make([]*SharedStorageEntry, 0, 8)
- } else {
- out.Entries = []*SharedStorageEntry{}
- }
- } else {
- out.Entries = (out.Entries)[:0]
- }
- for !in.IsDelim(']') {
- var v28 *SharedStorageEntry
- if in.IsNull() {
- in.Skip()
- v28 = nil
- } else {
- if v28 == nil {
- v28 = new(SharedStorageEntry)
- }
- (*v28).UnmarshalEasyJSON(in)
- }
- out.Entries = append(out.Entries, v28)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage38(out *jwriter.Writer, in GetSharedStorageEntriesReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Entries) != 0 {
- const prefix string = ",\"entries\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v29, v30 := range in.Entries {
- if v29 > 0 {
- out.RawByte(',')
- }
- if v30 == nil {
- out.RawString("null")
- } else {
- (*v30).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetSharedStorageEntriesReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage38(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetSharedStorageEntriesReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage38(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetSharedStorageEntriesReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage38(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetSharedStorageEntriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage38(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage39(in *jlexer.Lexer, out *GetSharedStorageEntriesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage39(out *jwriter.Writer, in GetSharedStorageEntriesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.OwnerOrigin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetSharedStorageEntriesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage39(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetSharedStorageEntriesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage39(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetSharedStorageEntriesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage39(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetSharedStorageEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage39(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage40(in *jlexer.Lexer, out *GetRelatedWebsiteSetsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "sets":
- if in.IsNull() {
- in.Skip()
- out.Sets = nil
- } else {
- in.Delim('[')
- if out.Sets == nil {
- if !in.IsDelim(']') {
- out.Sets = make([]*RelatedWebsiteSet, 0, 8)
- } else {
- out.Sets = []*RelatedWebsiteSet{}
- }
- } else {
- out.Sets = (out.Sets)[:0]
- }
- for !in.IsDelim(']') {
- var v31 *RelatedWebsiteSet
- if in.IsNull() {
- in.Skip()
- v31 = nil
- } else {
- if v31 == nil {
- v31 = new(RelatedWebsiteSet)
- }
- (*v31).UnmarshalEasyJSON(in)
- }
- out.Sets = append(out.Sets, v31)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage40(out *jwriter.Writer, in GetRelatedWebsiteSetsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Sets) != 0 {
- const prefix string = ",\"sets\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v32, v33 := range in.Sets {
- if v32 > 0 {
- out.RawByte(',')
- }
- if v33 == nil {
- out.RawString("null")
- } else {
- (*v33).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetRelatedWebsiteSetsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage40(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetRelatedWebsiteSetsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage40(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetRelatedWebsiteSetsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage40(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetRelatedWebsiteSetsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage40(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage41(in *jlexer.Lexer, out *GetRelatedWebsiteSetsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage41(out *jwriter.Writer, in GetRelatedWebsiteSetsParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetRelatedWebsiteSetsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage41(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetRelatedWebsiteSetsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage41(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetRelatedWebsiteSetsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage41(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetRelatedWebsiteSetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage41(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage42(in *jlexer.Lexer, out *GetInterestGroupDetailsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "details":
- (out.Details).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage42(out *jwriter.Writer, in GetInterestGroupDetailsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if (in.Details).IsDefined() {
- const prefix string = ",\"details\":"
- first = false
- out.RawString(prefix[1:])
- (in.Details).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetInterestGroupDetailsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage42(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetInterestGroupDetailsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage42(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetInterestGroupDetailsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage42(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetInterestGroupDetailsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage42(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage43(in *jlexer.Lexer, out *GetInterestGroupDetailsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- case "name":
- out.Name = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage43(out *jwriter.Writer, in GetInterestGroupDetailsParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.OwnerOrigin))
- }
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix)
- out.String(string(in.Name))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetInterestGroupDetailsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage43(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetInterestGroupDetailsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage43(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetInterestGroupDetailsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage43(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetInterestGroupDetailsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage43(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage44(in *jlexer.Lexer, out *GetCookiesReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "cookies":
- if in.IsNull() {
- in.Skip()
- out.Cookies = nil
- } else {
- in.Delim('[')
- if out.Cookies == nil {
- if !in.IsDelim(']') {
- out.Cookies = make([]*network.Cookie, 0, 8)
- } else {
- out.Cookies = []*network.Cookie{}
- }
- } else {
- out.Cookies = (out.Cookies)[:0]
- }
- for !in.IsDelim(']') {
- var v34 *network.Cookie
- if in.IsNull() {
- in.Skip()
- v34 = nil
- } else {
- if v34 == nil {
- v34 = new(network.Cookie)
- }
- (*v34).UnmarshalEasyJSON(in)
- }
- out.Cookies = append(out.Cookies, v34)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage44(out *jwriter.Writer, in GetCookiesReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Cookies) != 0 {
- const prefix string = ",\"cookies\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v35, v36 := range in.Cookies {
- if v35 > 0 {
- out.RawByte(',')
- }
- if v36 == nil {
- out.RawString("null")
- } else {
- (*v36).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetCookiesReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage44(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage44(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage44(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage44(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage45(in *jlexer.Lexer, out *GetCookiesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "browserContextId":
- out.BrowserContextID = cdp.BrowserContextID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage45(out *jwriter.Writer, in GetCookiesParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.BrowserContextID != "" {
- const prefix string = ",\"browserContextId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.BrowserContextID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetCookiesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage45(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage45(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetCookiesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage45(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage45(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage46(in *jlexer.Lexer, out *EventStorageBucketDeleted) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "bucketId":
- out.BucketID = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage46(out *jwriter.Writer, in EventStorageBucketDeleted) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"bucketId\":"
- out.RawString(prefix[1:])
- out.String(string(in.BucketID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventStorageBucketDeleted) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage46(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventStorageBucketDeleted) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage46(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventStorageBucketDeleted) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage46(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventStorageBucketDeleted) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage46(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage47(in *jlexer.Lexer, out *EventStorageBucketCreatedOrUpdated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "bucketInfo":
- if in.IsNull() {
- in.Skip()
- out.BucketInfo = nil
- } else {
- if out.BucketInfo == nil {
- out.BucketInfo = new(BucketInfo)
- }
- (*out.BucketInfo).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage47(out *jwriter.Writer, in EventStorageBucketCreatedOrUpdated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"bucketInfo\":"
- out.RawString(prefix[1:])
- if in.BucketInfo == nil {
- out.RawString("null")
- } else {
- (*in.BucketInfo).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventStorageBucketCreatedOrUpdated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage47(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventStorageBucketCreatedOrUpdated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage47(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventStorageBucketCreatedOrUpdated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage47(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventStorageBucketCreatedOrUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage47(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage48(in *jlexer.Lexer, out *EventSharedStorageAccessed) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "accessTime":
- if in.IsNull() {
- in.Skip()
- out.AccessTime = nil
- } else {
- if out.AccessTime == nil {
- out.AccessTime = new(cdp.TimeSinceEpoch)
- }
- (*out.AccessTime).UnmarshalEasyJSON(in)
- }
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "mainFrameId":
- (out.MainFrameID).UnmarshalEasyJSON(in)
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- case "params":
- if in.IsNull() {
- in.Skip()
- out.Params = nil
- } else {
- if out.Params == nil {
- out.Params = new(SharedStorageAccessParams)
- }
- (*out.Params).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage48(out *jwriter.Writer, in EventSharedStorageAccessed) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"accessTime\":"
- out.RawString(prefix[1:])
- if in.AccessTime == nil {
- out.RawString("null")
- } else {
- (*in.AccessTime).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"mainFrameId\":"
- out.RawString(prefix)
- out.String(string(in.MainFrameID))
- }
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix)
- out.String(string(in.OwnerOrigin))
- }
- {
- const prefix string = ",\"params\":"
- out.RawString(prefix)
- if in.Params == nil {
- out.RawString("null")
- } else {
- (*in.Params).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventSharedStorageAccessed) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage48(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventSharedStorageAccessed) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage48(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventSharedStorageAccessed) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage48(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventSharedStorageAccessed) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage48(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage49(in *jlexer.Lexer, out *EventInterestGroupAuctionNetworkRequestCreated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "requestId":
- out.RequestID = network.RequestID(in.String())
- case "auctions":
- if in.IsNull() {
- in.Skip()
- out.Auctions = nil
- } else {
- in.Delim('[')
- if out.Auctions == nil {
- if !in.IsDelim(']') {
- out.Auctions = make([]InterestGroupAuctionID, 0, 4)
- } else {
- out.Auctions = []InterestGroupAuctionID{}
- }
- } else {
- out.Auctions = (out.Auctions)[:0]
- }
- for !in.IsDelim(']') {
- var v37 InterestGroupAuctionID
- v37 = InterestGroupAuctionID(in.String())
- out.Auctions = append(out.Auctions, v37)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage49(out *jwriter.Writer, in EventInterestGroupAuctionNetworkRequestCreated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix[1:])
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix)
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"auctions\":"
- out.RawString(prefix)
- if in.Auctions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v38, v39 := range in.Auctions {
- if v38 > 0 {
- out.RawByte(',')
- }
- out.String(string(v39))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventInterestGroupAuctionNetworkRequestCreated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage49(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventInterestGroupAuctionNetworkRequestCreated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage49(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventInterestGroupAuctionNetworkRequestCreated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage49(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventInterestGroupAuctionNetworkRequestCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage49(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage50(in *jlexer.Lexer, out *EventInterestGroupAuctionEventOccurred) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "eventTime":
- if in.IsNull() {
- in.Skip()
- out.EventTime = nil
- } else {
- if out.EventTime == nil {
- out.EventTime = new(cdp.TimeSinceEpoch)
- }
- (*out.EventTime).UnmarshalEasyJSON(in)
- }
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "uniqueAuctionId":
- out.UniqueAuctionID = InterestGroupAuctionID(in.String())
- case "parentAuctionId":
- out.ParentAuctionID = InterestGroupAuctionID(in.String())
- case "auctionConfig":
- (out.AuctionConfig).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage50(out *jwriter.Writer, in EventInterestGroupAuctionEventOccurred) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"eventTime\":"
- out.RawString(prefix[1:])
- if in.EventTime == nil {
- out.RawString("null")
- } else {
- (*in.EventTime).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"uniqueAuctionId\":"
- out.RawString(prefix)
- out.String(string(in.UniqueAuctionID))
- }
- if in.ParentAuctionID != "" {
- const prefix string = ",\"parentAuctionId\":"
- out.RawString(prefix)
- out.String(string(in.ParentAuctionID))
- }
- if (in.AuctionConfig).IsDefined() {
- const prefix string = ",\"auctionConfig\":"
- out.RawString(prefix)
- (in.AuctionConfig).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventInterestGroupAuctionEventOccurred) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage50(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventInterestGroupAuctionEventOccurred) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage50(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventInterestGroupAuctionEventOccurred) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage50(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventInterestGroupAuctionEventOccurred) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage50(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage51(in *jlexer.Lexer, out *EventInterestGroupAccessed) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "accessTime":
- if in.IsNull() {
- in.Skip()
- out.AccessTime = nil
- } else {
- if out.AccessTime == nil {
- out.AccessTime = new(cdp.TimeSinceEpoch)
- }
- (*out.AccessTime).UnmarshalEasyJSON(in)
- }
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- case "name":
- out.Name = string(in.String())
- case "componentSellerOrigin":
- out.ComponentSellerOrigin = string(in.String())
- case "bid":
- out.Bid = float64(in.Float64())
- case "bidCurrency":
- out.BidCurrency = string(in.String())
- case "uniqueAuctionId":
- out.UniqueAuctionID = InterestGroupAuctionID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage51(out *jwriter.Writer, in EventInterestGroupAccessed) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"accessTime\":"
- out.RawString(prefix[1:])
- if in.AccessTime == nil {
- out.RawString("null")
- } else {
- (*in.AccessTime).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix)
- out.String(string(in.OwnerOrigin))
- }
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix)
- out.String(string(in.Name))
- }
- if in.ComponentSellerOrigin != "" {
- const prefix string = ",\"componentSellerOrigin\":"
- out.RawString(prefix)
- out.String(string(in.ComponentSellerOrigin))
- }
- if in.Bid != 0 {
- const prefix string = ",\"bid\":"
- out.RawString(prefix)
- out.Float64(float64(in.Bid))
- }
- if in.BidCurrency != "" {
- const prefix string = ",\"bidCurrency\":"
- out.RawString(prefix)
- out.String(string(in.BidCurrency))
- }
- if in.UniqueAuctionID != "" {
- const prefix string = ",\"uniqueAuctionId\":"
- out.RawString(prefix)
- out.String(string(in.UniqueAuctionID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventInterestGroupAccessed) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage51(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventInterestGroupAccessed) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage51(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventInterestGroupAccessed) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage51(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventInterestGroupAccessed) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage51(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage52(in *jlexer.Lexer, out *EventIndexedDBListUpdated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- case "storageKey":
- out.StorageKey = string(in.String())
- case "bucketId":
- out.BucketID = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage52(out *jwriter.Writer, in EventIndexedDBListUpdated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix)
- out.String(string(in.StorageKey))
- }
- {
- const prefix string = ",\"bucketId\":"
- out.RawString(prefix)
- out.String(string(in.BucketID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventIndexedDBListUpdated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage52(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventIndexedDBListUpdated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage52(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventIndexedDBListUpdated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage52(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventIndexedDBListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage52(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage53(in *jlexer.Lexer, out *EventIndexedDBContentUpdated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- case "storageKey":
- out.StorageKey = string(in.String())
- case "bucketId":
- out.BucketID = string(in.String())
- case "databaseName":
- out.DatabaseName = string(in.String())
- case "objectStoreName":
- out.ObjectStoreName = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage53(out *jwriter.Writer, in EventIndexedDBContentUpdated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix)
- out.String(string(in.StorageKey))
- }
- {
- const prefix string = ",\"bucketId\":"
- out.RawString(prefix)
- out.String(string(in.BucketID))
- }
- {
- const prefix string = ",\"databaseName\":"
- out.RawString(prefix)
- out.String(string(in.DatabaseName))
- }
- {
- const prefix string = ",\"objectStoreName\":"
- out.RawString(prefix)
- out.String(string(in.ObjectStoreName))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventIndexedDBContentUpdated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage53(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventIndexedDBContentUpdated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage53(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventIndexedDBContentUpdated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage53(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventIndexedDBContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage53(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage54(in *jlexer.Lexer, out *EventCacheStorageListUpdated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- case "storageKey":
- out.StorageKey = string(in.String())
- case "bucketId":
- out.BucketID = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage54(out *jwriter.Writer, in EventCacheStorageListUpdated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix)
- out.String(string(in.StorageKey))
- }
- {
- const prefix string = ",\"bucketId\":"
- out.RawString(prefix)
- out.String(string(in.BucketID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventCacheStorageListUpdated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage54(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventCacheStorageListUpdated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage54(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventCacheStorageListUpdated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage54(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventCacheStorageListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage54(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage55(in *jlexer.Lexer, out *EventCacheStorageContentUpdated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- case "storageKey":
- out.StorageKey = string(in.String())
- case "bucketId":
- out.BucketID = string(in.String())
- case "cacheName":
- out.CacheName = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage55(out *jwriter.Writer, in EventCacheStorageContentUpdated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix)
- out.String(string(in.StorageKey))
- }
- {
- const prefix string = ",\"bucketId\":"
- out.RawString(prefix)
- out.String(string(in.BucketID))
- }
- {
- const prefix string = ",\"cacheName\":"
- out.RawString(prefix)
- out.String(string(in.CacheName))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventCacheStorageContentUpdated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage55(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventCacheStorageContentUpdated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage55(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventCacheStorageContentUpdated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage55(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventCacheStorageContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage55(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage56(in *jlexer.Lexer, out *EventAttributionReportingTriggerRegistered) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "registration":
- if in.IsNull() {
- in.Skip()
- out.Registration = nil
- } else {
- if out.Registration == nil {
- out.Registration = new(AttributionReportingTriggerRegistration)
- }
- (*out.Registration).UnmarshalEasyJSON(in)
- }
- case "eventLevel":
- (out.EventLevel).UnmarshalEasyJSON(in)
- case "aggregatable":
- (out.Aggregatable).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage56(out *jwriter.Writer, in EventAttributionReportingTriggerRegistered) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"registration\":"
- out.RawString(prefix[1:])
- if in.Registration == nil {
- out.RawString("null")
- } else {
- (*in.Registration).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"eventLevel\":"
- out.RawString(prefix)
- (in.EventLevel).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"aggregatable\":"
- out.RawString(prefix)
- (in.Aggregatable).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventAttributionReportingTriggerRegistered) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage56(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventAttributionReportingTriggerRegistered) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage56(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventAttributionReportingTriggerRegistered) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage56(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventAttributionReportingTriggerRegistered) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage56(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage57(in *jlexer.Lexer, out *EventAttributionReportingSourceRegistered) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "registration":
- if in.IsNull() {
- in.Skip()
- out.Registration = nil
- } else {
- if out.Registration == nil {
- out.Registration = new(AttributionReportingSourceRegistration)
- }
- (*out.Registration).UnmarshalEasyJSON(in)
- }
- case "result":
- (out.Result).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage57(out *jwriter.Writer, in EventAttributionReportingSourceRegistered) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"registration\":"
- out.RawString(prefix[1:])
- if in.Registration == nil {
- out.RawString("null")
- } else {
- (*in.Registration).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"result\":"
- out.RawString(prefix)
- (in.Result).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventAttributionReportingSourceRegistered) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage57(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventAttributionReportingSourceRegistered) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage57(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventAttributionReportingSourceRegistered) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage57(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventAttributionReportingSourceRegistered) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage57(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage58(in *jlexer.Lexer, out *DeleteStorageBucketParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "bucket":
- if in.IsNull() {
- in.Skip()
- out.Bucket = nil
- } else {
- if out.Bucket == nil {
- out.Bucket = new(Bucket)
- }
- (*out.Bucket).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage58(out *jwriter.Writer, in DeleteStorageBucketParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"bucket\":"
- out.RawString(prefix[1:])
- if in.Bucket == nil {
- out.RawString("null")
- } else {
- (*in.Bucket).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v DeleteStorageBucketParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage58(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v DeleteStorageBucketParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage58(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *DeleteStorageBucketParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage58(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *DeleteStorageBucketParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage58(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage59(in *jlexer.Lexer, out *DeleteSharedStorageEntryParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- case "key":
- out.Key = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage59(out *jwriter.Writer, in DeleteSharedStorageEntryParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.OwnerOrigin))
- }
- {
- const prefix string = ",\"key\":"
- out.RawString(prefix)
- out.String(string(in.Key))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v DeleteSharedStorageEntryParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage59(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v DeleteSharedStorageEntryParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage59(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *DeleteSharedStorageEntryParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage59(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *DeleteSharedStorageEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage59(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage60(in *jlexer.Lexer, out *ClearTrustTokensReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "didDeleteTokens":
- out.DidDeleteTokens = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage60(out *jwriter.Writer, in ClearTrustTokensReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.DidDeleteTokens {
- const prefix string = ",\"didDeleteTokens\":"
- first = false
- out.RawString(prefix[1:])
- out.Bool(bool(in.DidDeleteTokens))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearTrustTokensReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage60(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearTrustTokensReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage60(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearTrustTokensReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage60(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearTrustTokensReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage60(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, out *ClearTrustTokensParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "issuerOrigin":
- out.IssuerOrigin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer, in ClearTrustTokensParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"issuerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.IssuerOrigin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearTrustTokensParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearTrustTokensParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearTrustTokensParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearTrustTokensParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(in *jlexer.Lexer, out *ClearSharedStorageEntriesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ownerOrigin":
- out.OwnerOrigin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(out *jwriter.Writer, in ClearSharedStorageEntriesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"ownerOrigin\":"
- out.RawString(prefix[1:])
- out.String(string(in.OwnerOrigin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearSharedStorageEntriesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearSharedStorageEntriesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearSharedStorageEntriesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearSharedStorageEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(in *jlexer.Lexer, out *ClearDataForStorageKeyParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageKey":
- out.StorageKey = string(in.String())
- case "storageTypes":
- out.StorageTypes = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(out *jwriter.Writer, in ClearDataForStorageKeyParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix[1:])
- out.String(string(in.StorageKey))
- }
- {
- const prefix string = ",\"storageTypes\":"
- out.RawString(prefix)
- out.String(string(in.StorageTypes))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearDataForStorageKeyParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearDataForStorageKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearDataForStorageKeyParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearDataForStorageKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(in *jlexer.Lexer, out *ClearDataForOriginParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- case "storageTypes":
- out.StorageTypes = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(out *jwriter.Writer, in ClearDataForOriginParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"storageTypes\":"
- out.RawString(prefix)
- out.String(string(in.StorageTypes))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(in *jlexer.Lexer, out *ClearCookiesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "browserContextId":
- out.BrowserContextID = cdp.BrowserContextID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(out *jwriter.Writer, in ClearCookiesParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.BrowserContextID != "" {
- const prefix string = ",\"browserContextId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.BrowserContextID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearCookiesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearCookiesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage66(in *jlexer.Lexer, out *BucketInfo) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "bucket":
- if in.IsNull() {
- in.Skip()
- out.Bucket = nil
- } else {
- if out.Bucket == nil {
- out.Bucket = new(Bucket)
- }
- (*out.Bucket).UnmarshalEasyJSON(in)
- }
- case "id":
- out.ID = string(in.String())
- case "expiration":
- if in.IsNull() {
- in.Skip()
- out.Expiration = nil
- } else {
- if out.Expiration == nil {
- out.Expiration = new(cdp.TimeSinceEpoch)
- }
- (*out.Expiration).UnmarshalEasyJSON(in)
- }
- case "quota":
- out.Quota = float64(in.Float64())
- case "persistent":
- out.Persistent = bool(in.Bool())
- case "durability":
- (out.Durability).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage66(out *jwriter.Writer, in BucketInfo) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"bucket\":"
- out.RawString(prefix[1:])
- if in.Bucket == nil {
- out.RawString("null")
- } else {
- (*in.Bucket).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"id\":"
- out.RawString(prefix)
- out.String(string(in.ID))
- }
- {
- const prefix string = ",\"expiration\":"
- out.RawString(prefix)
- if in.Expiration == nil {
- out.RawString("null")
- } else {
- (*in.Expiration).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"quota\":"
- out.RawString(prefix)
- out.Float64(float64(in.Quota))
- }
- {
- const prefix string = ",\"persistent\":"
- out.RawString(prefix)
- out.Bool(bool(in.Persistent))
- }
- {
- const prefix string = ",\"durability\":"
- out.RawString(prefix)
- (in.Durability).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v BucketInfo) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage66(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v BucketInfo) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage66(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *BucketInfo) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage66(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *BucketInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage66(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage67(in *jlexer.Lexer, out *Bucket) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "storageKey":
- out.StorageKey = SerializedStorageKey(in.String())
- case "name":
- out.Name = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage67(out *jwriter.Writer, in Bucket) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"storageKey\":"
- out.RawString(prefix[1:])
- out.String(string(in.StorageKey))
- }
- if in.Name != "" {
- const prefix string = ",\"name\":"
- out.RawString(prefix)
- out.String(string(in.Name))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Bucket) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage67(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Bucket) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage67(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Bucket) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage67(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Bucket) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage67(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage68(in *jlexer.Lexer, out *AttributionReportingTriggerSpec) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "triggerData":
- if in.IsNull() {
- in.Skip()
- out.TriggerData = nil
- } else {
- in.Delim('[')
- if out.TriggerData == nil {
- if !in.IsDelim(']') {
- out.TriggerData = make([]float64, 0, 8)
- } else {
- out.TriggerData = []float64{}
- }
- } else {
- out.TriggerData = (out.TriggerData)[:0]
- }
- for !in.IsDelim(']') {
- var v40 float64
- v40 = float64(in.Float64())
- out.TriggerData = append(out.TriggerData, v40)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "eventReportWindows":
- if in.IsNull() {
- in.Skip()
- out.EventReportWindows = nil
- } else {
- if out.EventReportWindows == nil {
- out.EventReportWindows = new(AttributionReportingEventReportWindows)
- }
- (*out.EventReportWindows).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage68(out *jwriter.Writer, in AttributionReportingTriggerSpec) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"triggerData\":"
- out.RawString(prefix[1:])
- if in.TriggerData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v41, v42 := range in.TriggerData {
- if v41 > 0 {
- out.RawByte(',')
- }
- out.Float64(float64(v42))
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"eventReportWindows\":"
- out.RawString(prefix)
- if in.EventReportWindows == nil {
- out.RawString("null")
- } else {
- (*in.EventReportWindows).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingTriggerSpec) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage68(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingTriggerSpec) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage68(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingTriggerSpec) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage68(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingTriggerSpec) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage68(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage69(in *jlexer.Lexer, out *AttributionReportingTriggerRegistration) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "filters":
- if in.IsNull() {
- in.Skip()
- out.Filters = nil
- } else {
- if out.Filters == nil {
- out.Filters = new(AttributionReportingFilterPair)
- }
- (*out.Filters).UnmarshalEasyJSON(in)
- }
- case "debugKey":
- out.DebugKey = UnsignedInt64asBase10(in.String())
- case "aggregatableDedupKeys":
- if in.IsNull() {
- in.Skip()
- out.AggregatableDedupKeys = nil
- } else {
- in.Delim('[')
- if out.AggregatableDedupKeys == nil {
- if !in.IsDelim(']') {
- out.AggregatableDedupKeys = make([]*AttributionReportingAggregatableDedupKey, 0, 8)
- } else {
- out.AggregatableDedupKeys = []*AttributionReportingAggregatableDedupKey{}
- }
- } else {
- out.AggregatableDedupKeys = (out.AggregatableDedupKeys)[:0]
- }
- for !in.IsDelim(']') {
- var v43 *AttributionReportingAggregatableDedupKey
- if in.IsNull() {
- in.Skip()
- v43 = nil
- } else {
- if v43 == nil {
- v43 = new(AttributionReportingAggregatableDedupKey)
- }
- (*v43).UnmarshalEasyJSON(in)
- }
- out.AggregatableDedupKeys = append(out.AggregatableDedupKeys, v43)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "eventTriggerData":
- if in.IsNull() {
- in.Skip()
- out.EventTriggerData = nil
- } else {
- in.Delim('[')
- if out.EventTriggerData == nil {
- if !in.IsDelim(']') {
- out.EventTriggerData = make([]*AttributionReportingEventTriggerData, 0, 8)
- } else {
- out.EventTriggerData = []*AttributionReportingEventTriggerData{}
- }
- } else {
- out.EventTriggerData = (out.EventTriggerData)[:0]
- }
- for !in.IsDelim(']') {
- var v44 *AttributionReportingEventTriggerData
- if in.IsNull() {
- in.Skip()
- v44 = nil
- } else {
- if v44 == nil {
- v44 = new(AttributionReportingEventTriggerData)
- }
- (*v44).UnmarshalEasyJSON(in)
- }
- out.EventTriggerData = append(out.EventTriggerData, v44)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "aggregatableTriggerData":
- if in.IsNull() {
- in.Skip()
- out.AggregatableTriggerData = nil
- } else {
- in.Delim('[')
- if out.AggregatableTriggerData == nil {
- if !in.IsDelim(']') {
- out.AggregatableTriggerData = make([]*AttributionReportingAggregatableTriggerData, 0, 8)
- } else {
- out.AggregatableTriggerData = []*AttributionReportingAggregatableTriggerData{}
- }
- } else {
- out.AggregatableTriggerData = (out.AggregatableTriggerData)[:0]
- }
- for !in.IsDelim(']') {
- var v45 *AttributionReportingAggregatableTriggerData
- if in.IsNull() {
- in.Skip()
- v45 = nil
- } else {
- if v45 == nil {
- v45 = new(AttributionReportingAggregatableTriggerData)
- }
- (*v45).UnmarshalEasyJSON(in)
- }
- out.AggregatableTriggerData = append(out.AggregatableTriggerData, v45)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "aggregatableValues":
- if in.IsNull() {
- in.Skip()
- out.AggregatableValues = nil
- } else {
- in.Delim('[')
- if out.AggregatableValues == nil {
- if !in.IsDelim(']') {
- out.AggregatableValues = make([]*AttributionReportingAggregatableValueEntry, 0, 8)
- } else {
- out.AggregatableValues = []*AttributionReportingAggregatableValueEntry{}
- }
- } else {
- out.AggregatableValues = (out.AggregatableValues)[:0]
- }
- for !in.IsDelim(']') {
- var v46 *AttributionReportingAggregatableValueEntry
- if in.IsNull() {
- in.Skip()
- v46 = nil
- } else {
- if v46 == nil {
- v46 = new(AttributionReportingAggregatableValueEntry)
- }
- (*v46).UnmarshalEasyJSON(in)
- }
- out.AggregatableValues = append(out.AggregatableValues, v46)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "debugReporting":
- out.DebugReporting = bool(in.Bool())
- case "aggregationCoordinatorOrigin":
- out.AggregationCoordinatorOrigin = string(in.String())
- case "sourceRegistrationTimeConfig":
- (out.SourceRegistrationTimeConfig).UnmarshalEasyJSON(in)
- case "triggerContextId":
- out.TriggerContextID = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage69(out *jwriter.Writer, in AttributionReportingTriggerRegistration) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"filters\":"
- out.RawString(prefix[1:])
- if in.Filters == nil {
- out.RawString("null")
- } else {
- (*in.Filters).MarshalEasyJSON(out)
- }
- }
- if in.DebugKey != "" {
- const prefix string = ",\"debugKey\":"
- out.RawString(prefix)
- out.String(string(in.DebugKey))
- }
- {
- const prefix string = ",\"aggregatableDedupKeys\":"
- out.RawString(prefix)
- if in.AggregatableDedupKeys == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v47, v48 := range in.AggregatableDedupKeys {
- if v47 > 0 {
- out.RawByte(',')
- }
- if v48 == nil {
- out.RawString("null")
- } else {
- (*v48).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"eventTriggerData\":"
- out.RawString(prefix)
- if in.EventTriggerData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v49, v50 := range in.EventTriggerData {
- if v49 > 0 {
- out.RawByte(',')
- }
- if v50 == nil {
- out.RawString("null")
- } else {
- (*v50).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"aggregatableTriggerData\":"
- out.RawString(prefix)
- if in.AggregatableTriggerData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v51, v52 := range in.AggregatableTriggerData {
- if v51 > 0 {
- out.RawByte(',')
- }
- if v52 == nil {
- out.RawString("null")
- } else {
- (*v52).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"aggregatableValues\":"
- out.RawString(prefix)
- if in.AggregatableValues == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v53, v54 := range in.AggregatableValues {
- if v53 > 0 {
- out.RawByte(',')
- }
- if v54 == nil {
- out.RawString("null")
- } else {
- (*v54).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"debugReporting\":"
- out.RawString(prefix)
- out.Bool(bool(in.DebugReporting))
- }
- if in.AggregationCoordinatorOrigin != "" {
- const prefix string = ",\"aggregationCoordinatorOrigin\":"
- out.RawString(prefix)
- out.String(string(in.AggregationCoordinatorOrigin))
- }
- {
- const prefix string = ",\"sourceRegistrationTimeConfig\":"
- out.RawString(prefix)
- (in.SourceRegistrationTimeConfig).MarshalEasyJSON(out)
- }
- if in.TriggerContextID != "" {
- const prefix string = ",\"triggerContextId\":"
- out.RawString(prefix)
- out.String(string(in.TriggerContextID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingTriggerRegistration) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage69(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingTriggerRegistration) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage69(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingTriggerRegistration) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage69(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingTriggerRegistration) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage69(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage70(in *jlexer.Lexer, out *AttributionReportingSourceRegistration) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "time":
- if in.IsNull() {
- in.Skip()
- out.Time = nil
- } else {
- if out.Time == nil {
- out.Time = new(cdp.TimeSinceEpoch)
- }
- (*out.Time).UnmarshalEasyJSON(in)
- }
- case "expiry":
- out.Expiry = int64(in.Int64())
- case "triggerSpecs":
- if in.IsNull() {
- in.Skip()
- out.TriggerSpecs = nil
- } else {
- in.Delim('[')
- if out.TriggerSpecs == nil {
- if !in.IsDelim(']') {
- out.TriggerSpecs = make([]*AttributionReportingTriggerSpec, 0, 8)
- } else {
- out.TriggerSpecs = []*AttributionReportingTriggerSpec{}
- }
- } else {
- out.TriggerSpecs = (out.TriggerSpecs)[:0]
- }
- for !in.IsDelim(']') {
- var v55 *AttributionReportingTriggerSpec
- if in.IsNull() {
- in.Skip()
- v55 = nil
- } else {
- if v55 == nil {
- v55 = new(AttributionReportingTriggerSpec)
- }
- (*v55).UnmarshalEasyJSON(in)
- }
- out.TriggerSpecs = append(out.TriggerSpecs, v55)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "aggregatableReportWindow":
- out.AggregatableReportWindow = int64(in.Int64())
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "sourceOrigin":
- out.SourceOrigin = string(in.String())
- case "reportingOrigin":
- out.ReportingOrigin = string(in.String())
- case "destinationSites":
- if in.IsNull() {
- in.Skip()
- out.DestinationSites = nil
- } else {
- in.Delim('[')
- if out.DestinationSites == nil {
- if !in.IsDelim(']') {
- out.DestinationSites = make([]string, 0, 4)
- } else {
- out.DestinationSites = []string{}
- }
- } else {
- out.DestinationSites = (out.DestinationSites)[:0]
- }
- for !in.IsDelim(']') {
- var v56 string
- v56 = string(in.String())
- out.DestinationSites = append(out.DestinationSites, v56)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "eventId":
- out.EventID = UnsignedInt64asBase10(in.String())
- case "priority":
- out.Priority = SignedInt64asBase10(in.String())
- case "filterData":
- if in.IsNull() {
- in.Skip()
- out.FilterData = nil
- } else {
- in.Delim('[')
- if out.FilterData == nil {
- if !in.IsDelim(']') {
- out.FilterData = make([]*AttributionReportingFilterDataEntry, 0, 8)
- } else {
- out.FilterData = []*AttributionReportingFilterDataEntry{}
- }
- } else {
- out.FilterData = (out.FilterData)[:0]
- }
- for !in.IsDelim(']') {
- var v57 *AttributionReportingFilterDataEntry
- if in.IsNull() {
- in.Skip()
- v57 = nil
- } else {
- if v57 == nil {
- v57 = new(AttributionReportingFilterDataEntry)
- }
- (*v57).UnmarshalEasyJSON(in)
- }
- out.FilterData = append(out.FilterData, v57)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "aggregationKeys":
- if in.IsNull() {
- in.Skip()
- out.AggregationKeys = nil
- } else {
- in.Delim('[')
- if out.AggregationKeys == nil {
- if !in.IsDelim(']') {
- out.AggregationKeys = make([]*AttributionReportingAggregationKeysEntry, 0, 8)
- } else {
- out.AggregationKeys = []*AttributionReportingAggregationKeysEntry{}
- }
- } else {
- out.AggregationKeys = (out.AggregationKeys)[:0]
- }
- for !in.IsDelim(']') {
- var v58 *AttributionReportingAggregationKeysEntry
- if in.IsNull() {
- in.Skip()
- v58 = nil
- } else {
- if v58 == nil {
- v58 = new(AttributionReportingAggregationKeysEntry)
- }
- (*v58).UnmarshalEasyJSON(in)
- }
- out.AggregationKeys = append(out.AggregationKeys, v58)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "debugKey":
- out.DebugKey = UnsignedInt64asBase10(in.String())
- case "triggerDataMatching":
- (out.TriggerDataMatching).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage70(out *jwriter.Writer, in AttributionReportingSourceRegistration) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"time\":"
- out.RawString(prefix[1:])
- if in.Time == nil {
- out.RawString("null")
- } else {
- (*in.Time).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"expiry\":"
- out.RawString(prefix)
- out.Int64(int64(in.Expiry))
- }
- {
- const prefix string = ",\"triggerSpecs\":"
- out.RawString(prefix)
- if in.TriggerSpecs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v59, v60 := range in.TriggerSpecs {
- if v59 > 0 {
- out.RawByte(',')
- }
- if v60 == nil {
- out.RawString("null")
- } else {
- (*v60).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"aggregatableReportWindow\":"
- out.RawString(prefix)
- out.Int64(int64(in.AggregatableReportWindow))
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"sourceOrigin\":"
- out.RawString(prefix)
- out.String(string(in.SourceOrigin))
- }
- {
- const prefix string = ",\"reportingOrigin\":"
- out.RawString(prefix)
- out.String(string(in.ReportingOrigin))
- }
- {
- const prefix string = ",\"destinationSites\":"
- out.RawString(prefix)
- if in.DestinationSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v61, v62 := range in.DestinationSites {
- if v61 > 0 {
- out.RawByte(',')
- }
- out.String(string(v62))
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"eventId\":"
- out.RawString(prefix)
- out.String(string(in.EventID))
- }
- {
- const prefix string = ",\"priority\":"
- out.RawString(prefix)
- out.String(string(in.Priority))
- }
- {
- const prefix string = ",\"filterData\":"
- out.RawString(prefix)
- if in.FilterData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v63, v64 := range in.FilterData {
- if v63 > 0 {
- out.RawByte(',')
- }
- if v64 == nil {
- out.RawString("null")
- } else {
- (*v64).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"aggregationKeys\":"
- out.RawString(prefix)
- if in.AggregationKeys == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v65, v66 := range in.AggregationKeys {
- if v65 > 0 {
- out.RawByte(',')
- }
- if v66 == nil {
- out.RawString("null")
- } else {
- (*v66).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.DebugKey != "" {
- const prefix string = ",\"debugKey\":"
- out.RawString(prefix)
- out.String(string(in.DebugKey))
- }
- {
- const prefix string = ",\"triggerDataMatching\":"
- out.RawString(prefix)
- (in.TriggerDataMatching).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingSourceRegistration) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage70(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingSourceRegistration) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage70(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingSourceRegistration) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage70(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingSourceRegistration) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage70(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage71(in *jlexer.Lexer, out *AttributionReportingFilterPair) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "filters":
- if in.IsNull() {
- in.Skip()
- out.Filters = nil
- } else {
- in.Delim('[')
- if out.Filters == nil {
- if !in.IsDelim(']') {
- out.Filters = make([]*AttributionReportingFilterConfig, 0, 8)
- } else {
- out.Filters = []*AttributionReportingFilterConfig{}
- }
- } else {
- out.Filters = (out.Filters)[:0]
- }
- for !in.IsDelim(']') {
- var v67 *AttributionReportingFilterConfig
- if in.IsNull() {
- in.Skip()
- v67 = nil
- } else {
- if v67 == nil {
- v67 = new(AttributionReportingFilterConfig)
- }
- (*v67).UnmarshalEasyJSON(in)
- }
- out.Filters = append(out.Filters, v67)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "notFilters":
- if in.IsNull() {
- in.Skip()
- out.NotFilters = nil
- } else {
- in.Delim('[')
- if out.NotFilters == nil {
- if !in.IsDelim(']') {
- out.NotFilters = make([]*AttributionReportingFilterConfig, 0, 8)
- } else {
- out.NotFilters = []*AttributionReportingFilterConfig{}
- }
- } else {
- out.NotFilters = (out.NotFilters)[:0]
- }
- for !in.IsDelim(']') {
- var v68 *AttributionReportingFilterConfig
- if in.IsNull() {
- in.Skip()
- v68 = nil
- } else {
- if v68 == nil {
- v68 = new(AttributionReportingFilterConfig)
- }
- (*v68).UnmarshalEasyJSON(in)
- }
- out.NotFilters = append(out.NotFilters, v68)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage71(out *jwriter.Writer, in AttributionReportingFilterPair) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"filters\":"
- out.RawString(prefix[1:])
- if in.Filters == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v69, v70 := range in.Filters {
- if v69 > 0 {
- out.RawByte(',')
- }
- if v70 == nil {
- out.RawString("null")
- } else {
- (*v70).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"notFilters\":"
- out.RawString(prefix)
- if in.NotFilters == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v71, v72 := range in.NotFilters {
- if v71 > 0 {
- out.RawByte(',')
- }
- if v72 == nil {
- out.RawString("null")
- } else {
- (*v72).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingFilterPair) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage71(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingFilterPair) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage71(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingFilterPair) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage71(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingFilterPair) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage71(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage72(in *jlexer.Lexer, out *AttributionReportingFilterDataEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "key":
- out.Key = string(in.String())
- case "values":
- if in.IsNull() {
- in.Skip()
- out.Values = nil
- } else {
- in.Delim('[')
- if out.Values == nil {
- if !in.IsDelim(']') {
- out.Values = make([]string, 0, 4)
- } else {
- out.Values = []string{}
- }
- } else {
- out.Values = (out.Values)[:0]
- }
- for !in.IsDelim(']') {
- var v73 string
- v73 = string(in.String())
- out.Values = append(out.Values, v73)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage72(out *jwriter.Writer, in AttributionReportingFilterDataEntry) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"key\":"
- out.RawString(prefix[1:])
- out.String(string(in.Key))
- }
- {
- const prefix string = ",\"values\":"
- out.RawString(prefix)
- if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v74, v75 := range in.Values {
- if v74 > 0 {
- out.RawByte(',')
- }
- out.String(string(v75))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingFilterDataEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage72(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingFilterDataEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage72(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingFilterDataEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage72(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingFilterDataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage72(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage73(in *jlexer.Lexer, out *AttributionReportingFilterConfig) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "filterValues":
- if in.IsNull() {
- in.Skip()
- out.FilterValues = nil
- } else {
- in.Delim('[')
- if out.FilterValues == nil {
- if !in.IsDelim(']') {
- out.FilterValues = make([]*AttributionReportingFilterDataEntry, 0, 8)
- } else {
- out.FilterValues = []*AttributionReportingFilterDataEntry{}
- }
- } else {
- out.FilterValues = (out.FilterValues)[:0]
- }
- for !in.IsDelim(']') {
- var v76 *AttributionReportingFilterDataEntry
- if in.IsNull() {
- in.Skip()
- v76 = nil
- } else {
- if v76 == nil {
- v76 = new(AttributionReportingFilterDataEntry)
- }
- (*v76).UnmarshalEasyJSON(in)
- }
- out.FilterValues = append(out.FilterValues, v76)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "lookbackWindow":
- out.LookbackWindow = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage73(out *jwriter.Writer, in AttributionReportingFilterConfig) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"filterValues\":"
- out.RawString(prefix[1:])
- if in.FilterValues == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v77, v78 := range in.FilterValues {
- if v77 > 0 {
- out.RawByte(',')
- }
- if v78 == nil {
- out.RawString("null")
- } else {
- (*v78).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.LookbackWindow != 0 {
- const prefix string = ",\"lookbackWindow\":"
- out.RawString(prefix)
- out.Int64(int64(in.LookbackWindow))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingFilterConfig) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage73(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingFilterConfig) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage73(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingFilterConfig) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage73(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingFilterConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage73(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage74(in *jlexer.Lexer, out *AttributionReportingEventTriggerData) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "data":
- out.Data = UnsignedInt64asBase10(in.String())
- case "priority":
- out.Priority = SignedInt64asBase10(in.String())
- case "dedupKey":
- out.DedupKey = UnsignedInt64asBase10(in.String())
- case "filters":
- if in.IsNull() {
- in.Skip()
- out.Filters = nil
- } else {
- if out.Filters == nil {
- out.Filters = new(AttributionReportingFilterPair)
- }
- (*out.Filters).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage74(out *jwriter.Writer, in AttributionReportingEventTriggerData) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"data\":"
- out.RawString(prefix[1:])
- out.String(string(in.Data))
- }
- {
- const prefix string = ",\"priority\":"
- out.RawString(prefix)
- out.String(string(in.Priority))
- }
- if in.DedupKey != "" {
- const prefix string = ",\"dedupKey\":"
- out.RawString(prefix)
- out.String(string(in.DedupKey))
- }
- {
- const prefix string = ",\"filters\":"
- out.RawString(prefix)
- if in.Filters == nil {
- out.RawString("null")
- } else {
- (*in.Filters).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingEventTriggerData) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage74(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingEventTriggerData) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage74(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingEventTriggerData) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage74(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingEventTriggerData) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage74(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage75(in *jlexer.Lexer, out *AttributionReportingEventReportWindows) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "start":
- out.Start = int64(in.Int64())
- case "ends":
- if in.IsNull() {
- in.Skip()
- out.Ends = nil
- } else {
- in.Delim('[')
- if out.Ends == nil {
- if !in.IsDelim(']') {
- out.Ends = make([]int64, 0, 8)
- } else {
- out.Ends = []int64{}
- }
- } else {
- out.Ends = (out.Ends)[:0]
- }
- for !in.IsDelim(']') {
- var v79 int64
- v79 = int64(in.Int64())
- out.Ends = append(out.Ends, v79)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage75(out *jwriter.Writer, in AttributionReportingEventReportWindows) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"start\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.Start))
- }
- {
- const prefix string = ",\"ends\":"
- out.RawString(prefix)
- if in.Ends == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v80, v81 := range in.Ends {
- if v80 > 0 {
- out.RawByte(',')
- }
- out.Int64(int64(v81))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingEventReportWindows) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage75(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingEventReportWindows) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage75(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingEventReportWindows) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage75(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingEventReportWindows) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage75(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage76(in *jlexer.Lexer, out *AttributionReportingAggregationKeysEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "key":
- out.Key = string(in.String())
- case "value":
- out.Value = UnsignedInt128asBase16(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage76(out *jwriter.Writer, in AttributionReportingAggregationKeysEntry) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"key\":"
- out.RawString(prefix[1:])
- out.String(string(in.Key))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingAggregationKeysEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage76(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingAggregationKeysEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage76(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingAggregationKeysEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage76(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingAggregationKeysEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage76(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage77(in *jlexer.Lexer, out *AttributionReportingAggregatableValueEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "values":
- if in.IsNull() {
- in.Skip()
- out.Values = nil
- } else {
- in.Delim('[')
- if out.Values == nil {
- if !in.IsDelim(']') {
- out.Values = make([]*AttributionReportingAggregatableValueDictEntry, 0, 8)
- } else {
- out.Values = []*AttributionReportingAggregatableValueDictEntry{}
- }
- } else {
- out.Values = (out.Values)[:0]
- }
- for !in.IsDelim(']') {
- var v82 *AttributionReportingAggregatableValueDictEntry
- if in.IsNull() {
- in.Skip()
- v82 = nil
- } else {
- if v82 == nil {
- v82 = new(AttributionReportingAggregatableValueDictEntry)
- }
- (*v82).UnmarshalEasyJSON(in)
- }
- out.Values = append(out.Values, v82)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "filters":
- if in.IsNull() {
- in.Skip()
- out.Filters = nil
- } else {
- if out.Filters == nil {
- out.Filters = new(AttributionReportingFilterPair)
- }
- (*out.Filters).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage77(out *jwriter.Writer, in AttributionReportingAggregatableValueEntry) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"values\":"
- out.RawString(prefix[1:])
- if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v83, v84 := range in.Values {
- if v83 > 0 {
- out.RawByte(',')
- }
- if v84 == nil {
- out.RawString("null")
- } else {
- (*v84).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"filters\":"
- out.RawString(prefix)
- if in.Filters == nil {
- out.RawString("null")
- } else {
- (*in.Filters).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingAggregatableValueEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage77(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingAggregatableValueEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage77(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingAggregatableValueEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage77(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingAggregatableValueEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage77(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage78(in *jlexer.Lexer, out *AttributionReportingAggregatableValueDictEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "key":
- out.Key = string(in.String())
- case "value":
- out.Value = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage78(out *jwriter.Writer, in AttributionReportingAggregatableValueDictEntry) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"key\":"
- out.RawString(prefix[1:])
- out.String(string(in.Key))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.Float64(float64(in.Value))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingAggregatableValueDictEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage78(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingAggregatableValueDictEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage78(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingAggregatableValueDictEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage78(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingAggregatableValueDictEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage78(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage79(in *jlexer.Lexer, out *AttributionReportingAggregatableTriggerData) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "keyPiece":
- out.KeyPiece = UnsignedInt128asBase16(in.String())
- case "sourceKeys":
- if in.IsNull() {
- in.Skip()
- out.SourceKeys = nil
- } else {
- in.Delim('[')
- if out.SourceKeys == nil {
- if !in.IsDelim(']') {
- out.SourceKeys = make([]string, 0, 4)
- } else {
- out.SourceKeys = []string{}
- }
- } else {
- out.SourceKeys = (out.SourceKeys)[:0]
- }
- for !in.IsDelim(']') {
- var v85 string
- v85 = string(in.String())
- out.SourceKeys = append(out.SourceKeys, v85)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "filters":
- if in.IsNull() {
- in.Skip()
- out.Filters = nil
- } else {
- if out.Filters == nil {
- out.Filters = new(AttributionReportingFilterPair)
- }
- (*out.Filters).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage79(out *jwriter.Writer, in AttributionReportingAggregatableTriggerData) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"keyPiece\":"
- out.RawString(prefix[1:])
- out.String(string(in.KeyPiece))
- }
- {
- const prefix string = ",\"sourceKeys\":"
- out.RawString(prefix)
- if in.SourceKeys == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v86, v87 := range in.SourceKeys {
- if v86 > 0 {
- out.RawByte(',')
- }
- out.String(string(v87))
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"filters\":"
- out.RawString(prefix)
- if in.Filters == nil {
- out.RawString("null")
- } else {
- (*in.Filters).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingAggregatableTriggerData) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage79(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingAggregatableTriggerData) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage79(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingAggregatableTriggerData) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage79(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingAggregatableTriggerData) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage79(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage80(in *jlexer.Lexer, out *AttributionReportingAggregatableDedupKey) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "dedupKey":
- out.DedupKey = UnsignedInt64asBase10(in.String())
- case "filters":
- if in.IsNull() {
- in.Skip()
- out.Filters = nil
- } else {
- if out.Filters == nil {
- out.Filters = new(AttributionReportingFilterPair)
- }
- (*out.Filters).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage80(out *jwriter.Writer, in AttributionReportingAggregatableDedupKey) {
- out.RawByte('{')
- first := true
- _ = first
- if in.DedupKey != "" {
- const prefix string = ",\"dedupKey\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.DedupKey))
- }
- {
- const prefix string = ",\"filters\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- if in.Filters == nil {
- out.RawString("null")
- } else {
- (*in.Filters).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AttributionReportingAggregatableDedupKey) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage80(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AttributionReportingAggregatableDedupKey) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage80(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AttributionReportingAggregatableDedupKey) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage80(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AttributionReportingAggregatableDedupKey) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage80(l, v)
- }
|