easyjson.go 267 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package network
  3. import (
  4. json "encoding/json"
  5. cdp "github.com/chromedp/cdproto/cdp"
  6. debugger "github.com/chromedp/cdproto/debugger"
  7. io "github.com/chromedp/cdproto/io"
  8. runtime "github.com/chromedp/cdproto/runtime"
  9. security "github.com/chromedp/cdproto/security"
  10. easyjson "github.com/mailru/easyjson"
  11. jlexer "github.com/mailru/easyjson/jlexer"
  12. jwriter "github.com/mailru/easyjson/jwriter"
  13. )
  14. // suppress unused package warning
  15. var (
  16. _ *json.RawMessage
  17. _ *jlexer.Lexer
  18. _ *jwriter.Writer
  19. _ easyjson.Marshaler
  20. )
  21. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork(in *jlexer.Lexer, out *WebSocketResponse) {
  22. isTopLevel := in.IsStart()
  23. if in.IsNull() {
  24. if isTopLevel {
  25. in.Consumed()
  26. }
  27. in.Skip()
  28. return
  29. }
  30. in.Delim('{')
  31. for !in.IsDelim('}') {
  32. key := in.UnsafeFieldName(false)
  33. in.WantColon()
  34. if in.IsNull() {
  35. in.Skip()
  36. in.WantComma()
  37. continue
  38. }
  39. switch key {
  40. case "status":
  41. out.Status = int64(in.Int64())
  42. case "statusText":
  43. out.StatusText = string(in.String())
  44. case "headers":
  45. if in.IsNull() {
  46. in.Skip()
  47. } else {
  48. in.Delim('{')
  49. out.Headers = make(Headers)
  50. for !in.IsDelim('}') {
  51. key := string(in.String())
  52. in.WantColon()
  53. var v1 interface{}
  54. if m, ok := v1.(easyjson.Unmarshaler); ok {
  55. m.UnmarshalEasyJSON(in)
  56. } else if m, ok := v1.(json.Unmarshaler); ok {
  57. _ = m.UnmarshalJSON(in.Raw())
  58. } else {
  59. v1 = in.Interface()
  60. }
  61. (out.Headers)[key] = v1
  62. in.WantComma()
  63. }
  64. in.Delim('}')
  65. }
  66. case "headersText":
  67. out.HeadersText = string(in.String())
  68. case "requestHeaders":
  69. if in.IsNull() {
  70. in.Skip()
  71. } else {
  72. in.Delim('{')
  73. if !in.IsDelim('}') {
  74. out.RequestHeaders = make(Headers)
  75. } else {
  76. out.RequestHeaders = nil
  77. }
  78. for !in.IsDelim('}') {
  79. key := string(in.String())
  80. in.WantColon()
  81. var v2 interface{}
  82. if m, ok := v2.(easyjson.Unmarshaler); ok {
  83. m.UnmarshalEasyJSON(in)
  84. } else if m, ok := v2.(json.Unmarshaler); ok {
  85. _ = m.UnmarshalJSON(in.Raw())
  86. } else {
  87. v2 = in.Interface()
  88. }
  89. (out.RequestHeaders)[key] = v2
  90. in.WantComma()
  91. }
  92. in.Delim('}')
  93. }
  94. case "requestHeadersText":
  95. out.RequestHeadersText = string(in.String())
  96. default:
  97. in.SkipRecursive()
  98. }
  99. in.WantComma()
  100. }
  101. in.Delim('}')
  102. if isTopLevel {
  103. in.Consumed()
  104. }
  105. }
  106. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork(out *jwriter.Writer, in WebSocketResponse) {
  107. out.RawByte('{')
  108. first := true
  109. _ = first
  110. {
  111. const prefix string = ",\"status\":"
  112. out.RawString(prefix[1:])
  113. out.Int64(int64(in.Status))
  114. }
  115. {
  116. const prefix string = ",\"statusText\":"
  117. out.RawString(prefix)
  118. out.String(string(in.StatusText))
  119. }
  120. {
  121. const prefix string = ",\"headers\":"
  122. out.RawString(prefix)
  123. if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  124. out.RawString(`null`)
  125. } else {
  126. out.RawByte('{')
  127. v3First := true
  128. for v3Name, v3Value := range in.Headers {
  129. if v3First {
  130. v3First = false
  131. } else {
  132. out.RawByte(',')
  133. }
  134. out.String(string(v3Name))
  135. out.RawByte(':')
  136. if m, ok := v3Value.(easyjson.Marshaler); ok {
  137. m.MarshalEasyJSON(out)
  138. } else if m, ok := v3Value.(json.Marshaler); ok {
  139. out.Raw(m.MarshalJSON())
  140. } else {
  141. out.Raw(json.Marshal(v3Value))
  142. }
  143. }
  144. out.RawByte('}')
  145. }
  146. }
  147. if in.HeadersText != "" {
  148. const prefix string = ",\"headersText\":"
  149. out.RawString(prefix)
  150. out.String(string(in.HeadersText))
  151. }
  152. if len(in.RequestHeaders) != 0 {
  153. const prefix string = ",\"requestHeaders\":"
  154. out.RawString(prefix)
  155. {
  156. out.RawByte('{')
  157. v4First := true
  158. for v4Name, v4Value := range in.RequestHeaders {
  159. if v4First {
  160. v4First = false
  161. } else {
  162. out.RawByte(',')
  163. }
  164. out.String(string(v4Name))
  165. out.RawByte(':')
  166. if m, ok := v4Value.(easyjson.Marshaler); ok {
  167. m.MarshalEasyJSON(out)
  168. } else if m, ok := v4Value.(json.Marshaler); ok {
  169. out.Raw(m.MarshalJSON())
  170. } else {
  171. out.Raw(json.Marshal(v4Value))
  172. }
  173. }
  174. out.RawByte('}')
  175. }
  176. }
  177. if in.RequestHeadersText != "" {
  178. const prefix string = ",\"requestHeadersText\":"
  179. out.RawString(prefix)
  180. out.String(string(in.RequestHeadersText))
  181. }
  182. out.RawByte('}')
  183. }
  184. // MarshalJSON supports json.Marshaler interface
  185. func (v WebSocketResponse) MarshalJSON() ([]byte, error) {
  186. w := jwriter.Writer{}
  187. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork(&w, v)
  188. return w.Buffer.BuildBytes(), w.Error
  189. }
  190. // MarshalEasyJSON supports easyjson.Marshaler interface
  191. func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer) {
  192. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork(w, v)
  193. }
  194. // UnmarshalJSON supports json.Unmarshaler interface
  195. func (v *WebSocketResponse) UnmarshalJSON(data []byte) error {
  196. r := jlexer.Lexer{Data: data}
  197. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork(&r, v)
  198. return r.Error()
  199. }
  200. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  201. func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
  202. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork(l, v)
  203. }
  204. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork1(in *jlexer.Lexer, out *WebSocketRequest) {
  205. isTopLevel := in.IsStart()
  206. if in.IsNull() {
  207. if isTopLevel {
  208. in.Consumed()
  209. }
  210. in.Skip()
  211. return
  212. }
  213. in.Delim('{')
  214. for !in.IsDelim('}') {
  215. key := in.UnsafeFieldName(false)
  216. in.WantColon()
  217. if in.IsNull() {
  218. in.Skip()
  219. in.WantComma()
  220. continue
  221. }
  222. switch key {
  223. case "headers":
  224. if in.IsNull() {
  225. in.Skip()
  226. } else {
  227. in.Delim('{')
  228. out.Headers = make(Headers)
  229. for !in.IsDelim('}') {
  230. key := string(in.String())
  231. in.WantColon()
  232. var v5 interface{}
  233. if m, ok := v5.(easyjson.Unmarshaler); ok {
  234. m.UnmarshalEasyJSON(in)
  235. } else if m, ok := v5.(json.Unmarshaler); ok {
  236. _ = m.UnmarshalJSON(in.Raw())
  237. } else {
  238. v5 = in.Interface()
  239. }
  240. (out.Headers)[key] = v5
  241. in.WantComma()
  242. }
  243. in.Delim('}')
  244. }
  245. default:
  246. in.SkipRecursive()
  247. }
  248. in.WantComma()
  249. }
  250. in.Delim('}')
  251. if isTopLevel {
  252. in.Consumed()
  253. }
  254. }
  255. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork1(out *jwriter.Writer, in WebSocketRequest) {
  256. out.RawByte('{')
  257. first := true
  258. _ = first
  259. {
  260. const prefix string = ",\"headers\":"
  261. out.RawString(prefix[1:])
  262. if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  263. out.RawString(`null`)
  264. } else {
  265. out.RawByte('{')
  266. v6First := true
  267. for v6Name, v6Value := range in.Headers {
  268. if v6First {
  269. v6First = false
  270. } else {
  271. out.RawByte(',')
  272. }
  273. out.String(string(v6Name))
  274. out.RawByte(':')
  275. if m, ok := v6Value.(easyjson.Marshaler); ok {
  276. m.MarshalEasyJSON(out)
  277. } else if m, ok := v6Value.(json.Marshaler); ok {
  278. out.Raw(m.MarshalJSON())
  279. } else {
  280. out.Raw(json.Marshal(v6Value))
  281. }
  282. }
  283. out.RawByte('}')
  284. }
  285. }
  286. out.RawByte('}')
  287. }
  288. // MarshalJSON supports json.Marshaler interface
  289. func (v WebSocketRequest) MarshalJSON() ([]byte, error) {
  290. w := jwriter.Writer{}
  291. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork1(&w, v)
  292. return w.Buffer.BuildBytes(), w.Error
  293. }
  294. // MarshalEasyJSON supports easyjson.Marshaler interface
  295. func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer) {
  296. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork1(w, v)
  297. }
  298. // UnmarshalJSON supports json.Unmarshaler interface
  299. func (v *WebSocketRequest) UnmarshalJSON(data []byte) error {
  300. r := jlexer.Lexer{Data: data}
  301. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork1(&r, v)
  302. return r.Error()
  303. }
  304. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  305. func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
  306. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork1(l, v)
  307. }
  308. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork2(in *jlexer.Lexer, out *WebSocketFrame) {
  309. isTopLevel := in.IsStart()
  310. if in.IsNull() {
  311. if isTopLevel {
  312. in.Consumed()
  313. }
  314. in.Skip()
  315. return
  316. }
  317. in.Delim('{')
  318. for !in.IsDelim('}') {
  319. key := in.UnsafeFieldName(false)
  320. in.WantColon()
  321. if in.IsNull() {
  322. in.Skip()
  323. in.WantComma()
  324. continue
  325. }
  326. switch key {
  327. case "opcode":
  328. out.Opcode = float64(in.Float64())
  329. case "mask":
  330. out.Mask = bool(in.Bool())
  331. case "payloadData":
  332. out.PayloadData = string(in.String())
  333. default:
  334. in.SkipRecursive()
  335. }
  336. in.WantComma()
  337. }
  338. in.Delim('}')
  339. if isTopLevel {
  340. in.Consumed()
  341. }
  342. }
  343. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork2(out *jwriter.Writer, in WebSocketFrame) {
  344. out.RawByte('{')
  345. first := true
  346. _ = first
  347. {
  348. const prefix string = ",\"opcode\":"
  349. out.RawString(prefix[1:])
  350. out.Float64(float64(in.Opcode))
  351. }
  352. {
  353. const prefix string = ",\"mask\":"
  354. out.RawString(prefix)
  355. out.Bool(bool(in.Mask))
  356. }
  357. {
  358. const prefix string = ",\"payloadData\":"
  359. out.RawString(prefix)
  360. out.String(string(in.PayloadData))
  361. }
  362. out.RawByte('}')
  363. }
  364. // MarshalJSON supports json.Marshaler interface
  365. func (v WebSocketFrame) MarshalJSON() ([]byte, error) {
  366. w := jwriter.Writer{}
  367. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork2(&w, v)
  368. return w.Buffer.BuildBytes(), w.Error
  369. }
  370. // MarshalEasyJSON supports easyjson.Marshaler interface
  371. func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer) {
  372. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork2(w, v)
  373. }
  374. // UnmarshalJSON supports json.Unmarshaler interface
  375. func (v *WebSocketFrame) UnmarshalJSON(data []byte) error {
  376. r := jlexer.Lexer{Data: data}
  377. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork2(&r, v)
  378. return r.Error()
  379. }
  380. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  381. func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
  382. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork2(l, v)
  383. }
  384. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork3(in *jlexer.Lexer, out *TrustTokenParams) {
  385. isTopLevel := in.IsStart()
  386. if in.IsNull() {
  387. if isTopLevel {
  388. in.Consumed()
  389. }
  390. in.Skip()
  391. return
  392. }
  393. in.Delim('{')
  394. for !in.IsDelim('}') {
  395. key := in.UnsafeFieldName(false)
  396. in.WantColon()
  397. if in.IsNull() {
  398. in.Skip()
  399. in.WantComma()
  400. continue
  401. }
  402. switch key {
  403. case "operation":
  404. (out.Operation).UnmarshalEasyJSON(in)
  405. case "refreshPolicy":
  406. (out.RefreshPolicy).UnmarshalEasyJSON(in)
  407. case "issuers":
  408. if in.IsNull() {
  409. in.Skip()
  410. out.Issuers = nil
  411. } else {
  412. in.Delim('[')
  413. if out.Issuers == nil {
  414. if !in.IsDelim(']') {
  415. out.Issuers = make([]string, 0, 4)
  416. } else {
  417. out.Issuers = []string{}
  418. }
  419. } else {
  420. out.Issuers = (out.Issuers)[:0]
  421. }
  422. for !in.IsDelim(']') {
  423. var v7 string
  424. v7 = string(in.String())
  425. out.Issuers = append(out.Issuers, v7)
  426. in.WantComma()
  427. }
  428. in.Delim(']')
  429. }
  430. default:
  431. in.SkipRecursive()
  432. }
  433. in.WantComma()
  434. }
  435. in.Delim('}')
  436. if isTopLevel {
  437. in.Consumed()
  438. }
  439. }
  440. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork3(out *jwriter.Writer, in TrustTokenParams) {
  441. out.RawByte('{')
  442. first := true
  443. _ = first
  444. {
  445. const prefix string = ",\"operation\":"
  446. out.RawString(prefix[1:])
  447. (in.Operation).MarshalEasyJSON(out)
  448. }
  449. {
  450. const prefix string = ",\"refreshPolicy\":"
  451. out.RawString(prefix)
  452. (in.RefreshPolicy).MarshalEasyJSON(out)
  453. }
  454. if len(in.Issuers) != 0 {
  455. const prefix string = ",\"issuers\":"
  456. out.RawString(prefix)
  457. {
  458. out.RawByte('[')
  459. for v8, v9 := range in.Issuers {
  460. if v8 > 0 {
  461. out.RawByte(',')
  462. }
  463. out.String(string(v9))
  464. }
  465. out.RawByte(']')
  466. }
  467. }
  468. out.RawByte('}')
  469. }
  470. // MarshalJSON supports json.Marshaler interface
  471. func (v TrustTokenParams) MarshalJSON() ([]byte, error) {
  472. w := jwriter.Writer{}
  473. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork3(&w, v)
  474. return w.Buffer.BuildBytes(), w.Error
  475. }
  476. // MarshalEasyJSON supports easyjson.Marshaler interface
  477. func (v TrustTokenParams) MarshalEasyJSON(w *jwriter.Writer) {
  478. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork3(w, v)
  479. }
  480. // UnmarshalJSON supports json.Unmarshaler interface
  481. func (v *TrustTokenParams) UnmarshalJSON(data []byte) error {
  482. r := jlexer.Lexer{Data: data}
  483. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork3(&r, v)
  484. return r.Error()
  485. }
  486. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  487. func (v *TrustTokenParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  488. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork3(l, v)
  489. }
  490. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork4(in *jlexer.Lexer, out *TakeResponseBodyForInterceptionAsStreamReturns) {
  491. isTopLevel := in.IsStart()
  492. if in.IsNull() {
  493. if isTopLevel {
  494. in.Consumed()
  495. }
  496. in.Skip()
  497. return
  498. }
  499. in.Delim('{')
  500. for !in.IsDelim('}') {
  501. key := in.UnsafeFieldName(false)
  502. in.WantColon()
  503. if in.IsNull() {
  504. in.Skip()
  505. in.WantComma()
  506. continue
  507. }
  508. switch key {
  509. case "stream":
  510. out.Stream = io.StreamHandle(in.String())
  511. default:
  512. in.SkipRecursive()
  513. }
  514. in.WantComma()
  515. }
  516. in.Delim('}')
  517. if isTopLevel {
  518. in.Consumed()
  519. }
  520. }
  521. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork4(out *jwriter.Writer, in TakeResponseBodyForInterceptionAsStreamReturns) {
  522. out.RawByte('{')
  523. first := true
  524. _ = first
  525. if in.Stream != "" {
  526. const prefix string = ",\"stream\":"
  527. first = false
  528. out.RawString(prefix[1:])
  529. out.String(string(in.Stream))
  530. }
  531. out.RawByte('}')
  532. }
  533. // MarshalJSON supports json.Marshaler interface
  534. func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalJSON() ([]byte, error) {
  535. w := jwriter.Writer{}
  536. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork4(&w, v)
  537. return w.Buffer.BuildBytes(), w.Error
  538. }
  539. // MarshalEasyJSON supports easyjson.Marshaler interface
  540. func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalEasyJSON(w *jwriter.Writer) {
  541. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork4(w, v)
  542. }
  543. // UnmarshalJSON supports json.Unmarshaler interface
  544. func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalJSON(data []byte) error {
  545. r := jlexer.Lexer{Data: data}
  546. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork4(&r, v)
  547. return r.Error()
  548. }
  549. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  550. func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  551. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork4(l, v)
  552. }
  553. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork5(in *jlexer.Lexer, out *TakeResponseBodyForInterceptionAsStreamParams) {
  554. isTopLevel := in.IsStart()
  555. if in.IsNull() {
  556. if isTopLevel {
  557. in.Consumed()
  558. }
  559. in.Skip()
  560. return
  561. }
  562. in.Delim('{')
  563. for !in.IsDelim('}') {
  564. key := in.UnsafeFieldName(false)
  565. in.WantColon()
  566. if in.IsNull() {
  567. in.Skip()
  568. in.WantComma()
  569. continue
  570. }
  571. switch key {
  572. case "interceptionId":
  573. out.InterceptionID = InterceptionID(in.String())
  574. default:
  575. in.SkipRecursive()
  576. }
  577. in.WantComma()
  578. }
  579. in.Delim('}')
  580. if isTopLevel {
  581. in.Consumed()
  582. }
  583. }
  584. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork5(out *jwriter.Writer, in TakeResponseBodyForInterceptionAsStreamParams) {
  585. out.RawByte('{')
  586. first := true
  587. _ = first
  588. {
  589. const prefix string = ",\"interceptionId\":"
  590. out.RawString(prefix[1:])
  591. out.String(string(in.InterceptionID))
  592. }
  593. out.RawByte('}')
  594. }
  595. // MarshalJSON supports json.Marshaler interface
  596. func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalJSON() ([]byte, error) {
  597. w := jwriter.Writer{}
  598. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork5(&w, v)
  599. return w.Buffer.BuildBytes(), w.Error
  600. }
  601. // MarshalEasyJSON supports easyjson.Marshaler interface
  602. func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalEasyJSON(w *jwriter.Writer) {
  603. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork5(w, v)
  604. }
  605. // UnmarshalJSON supports json.Unmarshaler interface
  606. func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalJSON(data []byte) error {
  607. r := jlexer.Lexer{Data: data}
  608. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork5(&r, v)
  609. return r.Error()
  610. }
  611. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  612. func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  613. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork5(l, v)
  614. }
  615. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork6(in *jlexer.Lexer, out *StreamResourceContentReturns) {
  616. isTopLevel := in.IsStart()
  617. if in.IsNull() {
  618. if isTopLevel {
  619. in.Consumed()
  620. }
  621. in.Skip()
  622. return
  623. }
  624. in.Delim('{')
  625. for !in.IsDelim('}') {
  626. key := in.UnsafeFieldName(false)
  627. in.WantColon()
  628. if in.IsNull() {
  629. in.Skip()
  630. in.WantComma()
  631. continue
  632. }
  633. switch key {
  634. case "bufferedData":
  635. out.BufferedData = string(in.String())
  636. default:
  637. in.SkipRecursive()
  638. }
  639. in.WantComma()
  640. }
  641. in.Delim('}')
  642. if isTopLevel {
  643. in.Consumed()
  644. }
  645. }
  646. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork6(out *jwriter.Writer, in StreamResourceContentReturns) {
  647. out.RawByte('{')
  648. first := true
  649. _ = first
  650. if in.BufferedData != "" {
  651. const prefix string = ",\"bufferedData\":"
  652. first = false
  653. out.RawString(prefix[1:])
  654. out.String(string(in.BufferedData))
  655. }
  656. out.RawByte('}')
  657. }
  658. // MarshalJSON supports json.Marshaler interface
  659. func (v StreamResourceContentReturns) MarshalJSON() ([]byte, error) {
  660. w := jwriter.Writer{}
  661. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork6(&w, v)
  662. return w.Buffer.BuildBytes(), w.Error
  663. }
  664. // MarshalEasyJSON supports easyjson.Marshaler interface
  665. func (v StreamResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) {
  666. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork6(w, v)
  667. }
  668. // UnmarshalJSON supports json.Unmarshaler interface
  669. func (v *StreamResourceContentReturns) UnmarshalJSON(data []byte) error {
  670. r := jlexer.Lexer{Data: data}
  671. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork6(&r, v)
  672. return r.Error()
  673. }
  674. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  675. func (v *StreamResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  676. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork6(l, v)
  677. }
  678. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork7(in *jlexer.Lexer, out *StreamResourceContentParams) {
  679. isTopLevel := in.IsStart()
  680. if in.IsNull() {
  681. if isTopLevel {
  682. in.Consumed()
  683. }
  684. in.Skip()
  685. return
  686. }
  687. in.Delim('{')
  688. for !in.IsDelim('}') {
  689. key := in.UnsafeFieldName(false)
  690. in.WantColon()
  691. if in.IsNull() {
  692. in.Skip()
  693. in.WantComma()
  694. continue
  695. }
  696. switch key {
  697. case "requestId":
  698. out.RequestID = RequestID(in.String())
  699. default:
  700. in.SkipRecursive()
  701. }
  702. in.WantComma()
  703. }
  704. in.Delim('}')
  705. if isTopLevel {
  706. in.Consumed()
  707. }
  708. }
  709. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork7(out *jwriter.Writer, in StreamResourceContentParams) {
  710. out.RawByte('{')
  711. first := true
  712. _ = first
  713. {
  714. const prefix string = ",\"requestId\":"
  715. out.RawString(prefix[1:])
  716. out.String(string(in.RequestID))
  717. }
  718. out.RawByte('}')
  719. }
  720. // MarshalJSON supports json.Marshaler interface
  721. func (v StreamResourceContentParams) MarshalJSON() ([]byte, error) {
  722. w := jwriter.Writer{}
  723. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork7(&w, v)
  724. return w.Buffer.BuildBytes(), w.Error
  725. }
  726. // MarshalEasyJSON supports easyjson.Marshaler interface
  727. func (v StreamResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) {
  728. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork7(w, v)
  729. }
  730. // UnmarshalJSON supports json.Unmarshaler interface
  731. func (v *StreamResourceContentParams) UnmarshalJSON(data []byte) error {
  732. r := jlexer.Lexer{Data: data}
  733. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork7(&r, v)
  734. return r.Error()
  735. }
  736. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  737. func (v *StreamResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  738. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork7(l, v)
  739. }
  740. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork8(in *jlexer.Lexer, out *SignedExchangeSignature) {
  741. isTopLevel := in.IsStart()
  742. if in.IsNull() {
  743. if isTopLevel {
  744. in.Consumed()
  745. }
  746. in.Skip()
  747. return
  748. }
  749. in.Delim('{')
  750. for !in.IsDelim('}') {
  751. key := in.UnsafeFieldName(false)
  752. in.WantColon()
  753. if in.IsNull() {
  754. in.Skip()
  755. in.WantComma()
  756. continue
  757. }
  758. switch key {
  759. case "label":
  760. out.Label = string(in.String())
  761. case "signature":
  762. out.Signature = string(in.String())
  763. case "integrity":
  764. out.Integrity = string(in.String())
  765. case "certUrl":
  766. out.CertURL = string(in.String())
  767. case "certSha256":
  768. out.CertSha256 = string(in.String())
  769. case "validityUrl":
  770. out.ValidityURL = string(in.String())
  771. case "date":
  772. out.Date = int64(in.Int64())
  773. case "expires":
  774. out.Expires = int64(in.Int64())
  775. case "certificates":
  776. if in.IsNull() {
  777. in.Skip()
  778. out.Certificates = nil
  779. } else {
  780. in.Delim('[')
  781. if out.Certificates == nil {
  782. if !in.IsDelim(']') {
  783. out.Certificates = make([]string, 0, 4)
  784. } else {
  785. out.Certificates = []string{}
  786. }
  787. } else {
  788. out.Certificates = (out.Certificates)[:0]
  789. }
  790. for !in.IsDelim(']') {
  791. var v10 string
  792. v10 = string(in.String())
  793. out.Certificates = append(out.Certificates, v10)
  794. in.WantComma()
  795. }
  796. in.Delim(']')
  797. }
  798. default:
  799. in.SkipRecursive()
  800. }
  801. in.WantComma()
  802. }
  803. in.Delim('}')
  804. if isTopLevel {
  805. in.Consumed()
  806. }
  807. }
  808. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork8(out *jwriter.Writer, in SignedExchangeSignature) {
  809. out.RawByte('{')
  810. first := true
  811. _ = first
  812. {
  813. const prefix string = ",\"label\":"
  814. out.RawString(prefix[1:])
  815. out.String(string(in.Label))
  816. }
  817. {
  818. const prefix string = ",\"signature\":"
  819. out.RawString(prefix)
  820. out.String(string(in.Signature))
  821. }
  822. {
  823. const prefix string = ",\"integrity\":"
  824. out.RawString(prefix)
  825. out.String(string(in.Integrity))
  826. }
  827. if in.CertURL != "" {
  828. const prefix string = ",\"certUrl\":"
  829. out.RawString(prefix)
  830. out.String(string(in.CertURL))
  831. }
  832. if in.CertSha256 != "" {
  833. const prefix string = ",\"certSha256\":"
  834. out.RawString(prefix)
  835. out.String(string(in.CertSha256))
  836. }
  837. {
  838. const prefix string = ",\"validityUrl\":"
  839. out.RawString(prefix)
  840. out.String(string(in.ValidityURL))
  841. }
  842. {
  843. const prefix string = ",\"date\":"
  844. out.RawString(prefix)
  845. out.Int64(int64(in.Date))
  846. }
  847. {
  848. const prefix string = ",\"expires\":"
  849. out.RawString(prefix)
  850. out.Int64(int64(in.Expires))
  851. }
  852. if len(in.Certificates) != 0 {
  853. const prefix string = ",\"certificates\":"
  854. out.RawString(prefix)
  855. {
  856. out.RawByte('[')
  857. for v11, v12 := range in.Certificates {
  858. if v11 > 0 {
  859. out.RawByte(',')
  860. }
  861. out.String(string(v12))
  862. }
  863. out.RawByte(']')
  864. }
  865. }
  866. out.RawByte('}')
  867. }
  868. // MarshalJSON supports json.Marshaler interface
  869. func (v SignedExchangeSignature) MarshalJSON() ([]byte, error) {
  870. w := jwriter.Writer{}
  871. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork8(&w, v)
  872. return w.Buffer.BuildBytes(), w.Error
  873. }
  874. // MarshalEasyJSON supports easyjson.Marshaler interface
  875. func (v SignedExchangeSignature) MarshalEasyJSON(w *jwriter.Writer) {
  876. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork8(w, v)
  877. }
  878. // UnmarshalJSON supports json.Unmarshaler interface
  879. func (v *SignedExchangeSignature) UnmarshalJSON(data []byte) error {
  880. r := jlexer.Lexer{Data: data}
  881. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork8(&r, v)
  882. return r.Error()
  883. }
  884. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  885. func (v *SignedExchangeSignature) UnmarshalEasyJSON(l *jlexer.Lexer) {
  886. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork8(l, v)
  887. }
  888. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork9(in *jlexer.Lexer, out *SignedExchangeInfo) {
  889. isTopLevel := in.IsStart()
  890. if in.IsNull() {
  891. if isTopLevel {
  892. in.Consumed()
  893. }
  894. in.Skip()
  895. return
  896. }
  897. in.Delim('{')
  898. for !in.IsDelim('}') {
  899. key := in.UnsafeFieldName(false)
  900. in.WantColon()
  901. if in.IsNull() {
  902. in.Skip()
  903. in.WantComma()
  904. continue
  905. }
  906. switch key {
  907. case "outerResponse":
  908. if in.IsNull() {
  909. in.Skip()
  910. out.OuterResponse = nil
  911. } else {
  912. if out.OuterResponse == nil {
  913. out.OuterResponse = new(Response)
  914. }
  915. (*out.OuterResponse).UnmarshalEasyJSON(in)
  916. }
  917. case "header":
  918. if in.IsNull() {
  919. in.Skip()
  920. out.Header = nil
  921. } else {
  922. if out.Header == nil {
  923. out.Header = new(SignedExchangeHeader)
  924. }
  925. (*out.Header).UnmarshalEasyJSON(in)
  926. }
  927. case "securityDetails":
  928. if in.IsNull() {
  929. in.Skip()
  930. out.SecurityDetails = nil
  931. } else {
  932. if out.SecurityDetails == nil {
  933. out.SecurityDetails = new(SecurityDetails)
  934. }
  935. (*out.SecurityDetails).UnmarshalEasyJSON(in)
  936. }
  937. case "errors":
  938. if in.IsNull() {
  939. in.Skip()
  940. out.Errors = nil
  941. } else {
  942. in.Delim('[')
  943. if out.Errors == nil {
  944. if !in.IsDelim(']') {
  945. out.Errors = make([]*SignedExchangeError, 0, 8)
  946. } else {
  947. out.Errors = []*SignedExchangeError{}
  948. }
  949. } else {
  950. out.Errors = (out.Errors)[:0]
  951. }
  952. for !in.IsDelim(']') {
  953. var v13 *SignedExchangeError
  954. if in.IsNull() {
  955. in.Skip()
  956. v13 = nil
  957. } else {
  958. if v13 == nil {
  959. v13 = new(SignedExchangeError)
  960. }
  961. (*v13).UnmarshalEasyJSON(in)
  962. }
  963. out.Errors = append(out.Errors, v13)
  964. in.WantComma()
  965. }
  966. in.Delim(']')
  967. }
  968. default:
  969. in.SkipRecursive()
  970. }
  971. in.WantComma()
  972. }
  973. in.Delim('}')
  974. if isTopLevel {
  975. in.Consumed()
  976. }
  977. }
  978. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork9(out *jwriter.Writer, in SignedExchangeInfo) {
  979. out.RawByte('{')
  980. first := true
  981. _ = first
  982. {
  983. const prefix string = ",\"outerResponse\":"
  984. out.RawString(prefix[1:])
  985. if in.OuterResponse == nil {
  986. out.RawString("null")
  987. } else {
  988. (*in.OuterResponse).MarshalEasyJSON(out)
  989. }
  990. }
  991. if in.Header != nil {
  992. const prefix string = ",\"header\":"
  993. out.RawString(prefix)
  994. (*in.Header).MarshalEasyJSON(out)
  995. }
  996. if in.SecurityDetails != nil {
  997. const prefix string = ",\"securityDetails\":"
  998. out.RawString(prefix)
  999. (*in.SecurityDetails).MarshalEasyJSON(out)
  1000. }
  1001. if len(in.Errors) != 0 {
  1002. const prefix string = ",\"errors\":"
  1003. out.RawString(prefix)
  1004. {
  1005. out.RawByte('[')
  1006. for v14, v15 := range in.Errors {
  1007. if v14 > 0 {
  1008. out.RawByte(',')
  1009. }
  1010. if v15 == nil {
  1011. out.RawString("null")
  1012. } else {
  1013. (*v15).MarshalEasyJSON(out)
  1014. }
  1015. }
  1016. out.RawByte(']')
  1017. }
  1018. }
  1019. out.RawByte('}')
  1020. }
  1021. // MarshalJSON supports json.Marshaler interface
  1022. func (v SignedExchangeInfo) MarshalJSON() ([]byte, error) {
  1023. w := jwriter.Writer{}
  1024. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork9(&w, v)
  1025. return w.Buffer.BuildBytes(), w.Error
  1026. }
  1027. // MarshalEasyJSON supports easyjson.Marshaler interface
  1028. func (v SignedExchangeInfo) MarshalEasyJSON(w *jwriter.Writer) {
  1029. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork9(w, v)
  1030. }
  1031. // UnmarshalJSON supports json.Unmarshaler interface
  1032. func (v *SignedExchangeInfo) UnmarshalJSON(data []byte) error {
  1033. r := jlexer.Lexer{Data: data}
  1034. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork9(&r, v)
  1035. return r.Error()
  1036. }
  1037. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1038. func (v *SignedExchangeInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1039. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork9(l, v)
  1040. }
  1041. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork10(in *jlexer.Lexer, out *SignedExchangeHeader) {
  1042. isTopLevel := in.IsStart()
  1043. if in.IsNull() {
  1044. if isTopLevel {
  1045. in.Consumed()
  1046. }
  1047. in.Skip()
  1048. return
  1049. }
  1050. in.Delim('{')
  1051. for !in.IsDelim('}') {
  1052. key := in.UnsafeFieldName(false)
  1053. in.WantColon()
  1054. if in.IsNull() {
  1055. in.Skip()
  1056. in.WantComma()
  1057. continue
  1058. }
  1059. switch key {
  1060. case "requestUrl":
  1061. out.RequestURL = string(in.String())
  1062. case "responseCode":
  1063. out.ResponseCode = int64(in.Int64())
  1064. case "responseHeaders":
  1065. if in.IsNull() {
  1066. in.Skip()
  1067. } else {
  1068. in.Delim('{')
  1069. out.ResponseHeaders = make(Headers)
  1070. for !in.IsDelim('}') {
  1071. key := string(in.String())
  1072. in.WantColon()
  1073. var v16 interface{}
  1074. if m, ok := v16.(easyjson.Unmarshaler); ok {
  1075. m.UnmarshalEasyJSON(in)
  1076. } else if m, ok := v16.(json.Unmarshaler); ok {
  1077. _ = m.UnmarshalJSON(in.Raw())
  1078. } else {
  1079. v16 = in.Interface()
  1080. }
  1081. (out.ResponseHeaders)[key] = v16
  1082. in.WantComma()
  1083. }
  1084. in.Delim('}')
  1085. }
  1086. case "signatures":
  1087. if in.IsNull() {
  1088. in.Skip()
  1089. out.Signatures = nil
  1090. } else {
  1091. in.Delim('[')
  1092. if out.Signatures == nil {
  1093. if !in.IsDelim(']') {
  1094. out.Signatures = make([]*SignedExchangeSignature, 0, 8)
  1095. } else {
  1096. out.Signatures = []*SignedExchangeSignature{}
  1097. }
  1098. } else {
  1099. out.Signatures = (out.Signatures)[:0]
  1100. }
  1101. for !in.IsDelim(']') {
  1102. var v17 *SignedExchangeSignature
  1103. if in.IsNull() {
  1104. in.Skip()
  1105. v17 = nil
  1106. } else {
  1107. if v17 == nil {
  1108. v17 = new(SignedExchangeSignature)
  1109. }
  1110. (*v17).UnmarshalEasyJSON(in)
  1111. }
  1112. out.Signatures = append(out.Signatures, v17)
  1113. in.WantComma()
  1114. }
  1115. in.Delim(']')
  1116. }
  1117. case "headerIntegrity":
  1118. out.HeaderIntegrity = string(in.String())
  1119. default:
  1120. in.SkipRecursive()
  1121. }
  1122. in.WantComma()
  1123. }
  1124. in.Delim('}')
  1125. if isTopLevel {
  1126. in.Consumed()
  1127. }
  1128. }
  1129. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork10(out *jwriter.Writer, in SignedExchangeHeader) {
  1130. out.RawByte('{')
  1131. first := true
  1132. _ = first
  1133. {
  1134. const prefix string = ",\"requestUrl\":"
  1135. out.RawString(prefix[1:])
  1136. out.String(string(in.RequestURL))
  1137. }
  1138. {
  1139. const prefix string = ",\"responseCode\":"
  1140. out.RawString(prefix)
  1141. out.Int64(int64(in.ResponseCode))
  1142. }
  1143. {
  1144. const prefix string = ",\"responseHeaders\":"
  1145. out.RawString(prefix)
  1146. if in.ResponseHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  1147. out.RawString(`null`)
  1148. } else {
  1149. out.RawByte('{')
  1150. v18First := true
  1151. for v18Name, v18Value := range in.ResponseHeaders {
  1152. if v18First {
  1153. v18First = false
  1154. } else {
  1155. out.RawByte(',')
  1156. }
  1157. out.String(string(v18Name))
  1158. out.RawByte(':')
  1159. if m, ok := v18Value.(easyjson.Marshaler); ok {
  1160. m.MarshalEasyJSON(out)
  1161. } else if m, ok := v18Value.(json.Marshaler); ok {
  1162. out.Raw(m.MarshalJSON())
  1163. } else {
  1164. out.Raw(json.Marshal(v18Value))
  1165. }
  1166. }
  1167. out.RawByte('}')
  1168. }
  1169. }
  1170. {
  1171. const prefix string = ",\"signatures\":"
  1172. out.RawString(prefix)
  1173. if in.Signatures == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1174. out.RawString("null")
  1175. } else {
  1176. out.RawByte('[')
  1177. for v19, v20 := range in.Signatures {
  1178. if v19 > 0 {
  1179. out.RawByte(',')
  1180. }
  1181. if v20 == nil {
  1182. out.RawString("null")
  1183. } else {
  1184. (*v20).MarshalEasyJSON(out)
  1185. }
  1186. }
  1187. out.RawByte(']')
  1188. }
  1189. }
  1190. {
  1191. const prefix string = ",\"headerIntegrity\":"
  1192. out.RawString(prefix)
  1193. out.String(string(in.HeaderIntegrity))
  1194. }
  1195. out.RawByte('}')
  1196. }
  1197. // MarshalJSON supports json.Marshaler interface
  1198. func (v SignedExchangeHeader) MarshalJSON() ([]byte, error) {
  1199. w := jwriter.Writer{}
  1200. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork10(&w, v)
  1201. return w.Buffer.BuildBytes(), w.Error
  1202. }
  1203. // MarshalEasyJSON supports easyjson.Marshaler interface
  1204. func (v SignedExchangeHeader) MarshalEasyJSON(w *jwriter.Writer) {
  1205. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork10(w, v)
  1206. }
  1207. // UnmarshalJSON supports json.Unmarshaler interface
  1208. func (v *SignedExchangeHeader) UnmarshalJSON(data []byte) error {
  1209. r := jlexer.Lexer{Data: data}
  1210. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork10(&r, v)
  1211. return r.Error()
  1212. }
  1213. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1214. func (v *SignedExchangeHeader) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1215. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork10(l, v)
  1216. }
  1217. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork11(in *jlexer.Lexer, out *SignedExchangeError) {
  1218. isTopLevel := in.IsStart()
  1219. if in.IsNull() {
  1220. if isTopLevel {
  1221. in.Consumed()
  1222. }
  1223. in.Skip()
  1224. return
  1225. }
  1226. in.Delim('{')
  1227. for !in.IsDelim('}') {
  1228. key := in.UnsafeFieldName(false)
  1229. in.WantColon()
  1230. if in.IsNull() {
  1231. in.Skip()
  1232. in.WantComma()
  1233. continue
  1234. }
  1235. switch key {
  1236. case "message":
  1237. out.Message = string(in.String())
  1238. case "signatureIndex":
  1239. out.SignatureIndex = int64(in.Int64())
  1240. case "errorField":
  1241. (out.ErrorField).UnmarshalEasyJSON(in)
  1242. default:
  1243. in.SkipRecursive()
  1244. }
  1245. in.WantComma()
  1246. }
  1247. in.Delim('}')
  1248. if isTopLevel {
  1249. in.Consumed()
  1250. }
  1251. }
  1252. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork11(out *jwriter.Writer, in SignedExchangeError) {
  1253. out.RawByte('{')
  1254. first := true
  1255. _ = first
  1256. {
  1257. const prefix string = ",\"message\":"
  1258. out.RawString(prefix[1:])
  1259. out.String(string(in.Message))
  1260. }
  1261. if in.SignatureIndex != 0 {
  1262. const prefix string = ",\"signatureIndex\":"
  1263. out.RawString(prefix)
  1264. out.Int64(int64(in.SignatureIndex))
  1265. }
  1266. if in.ErrorField != "" {
  1267. const prefix string = ",\"errorField\":"
  1268. out.RawString(prefix)
  1269. (in.ErrorField).MarshalEasyJSON(out)
  1270. }
  1271. out.RawByte('}')
  1272. }
  1273. // MarshalJSON supports json.Marshaler interface
  1274. func (v SignedExchangeError) MarshalJSON() ([]byte, error) {
  1275. w := jwriter.Writer{}
  1276. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork11(&w, v)
  1277. return w.Buffer.BuildBytes(), w.Error
  1278. }
  1279. // MarshalEasyJSON supports easyjson.Marshaler interface
  1280. func (v SignedExchangeError) MarshalEasyJSON(w *jwriter.Writer) {
  1281. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork11(w, v)
  1282. }
  1283. // UnmarshalJSON supports json.Unmarshaler interface
  1284. func (v *SignedExchangeError) UnmarshalJSON(data []byte) error {
  1285. r := jlexer.Lexer{Data: data}
  1286. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork11(&r, v)
  1287. return r.Error()
  1288. }
  1289. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1290. func (v *SignedExchangeError) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1291. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork11(l, v)
  1292. }
  1293. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork12(in *jlexer.Lexer, out *SignedCertificateTimestamp) {
  1294. isTopLevel := in.IsStart()
  1295. if in.IsNull() {
  1296. if isTopLevel {
  1297. in.Consumed()
  1298. }
  1299. in.Skip()
  1300. return
  1301. }
  1302. in.Delim('{')
  1303. for !in.IsDelim('}') {
  1304. key := in.UnsafeFieldName(false)
  1305. in.WantColon()
  1306. if in.IsNull() {
  1307. in.Skip()
  1308. in.WantComma()
  1309. continue
  1310. }
  1311. switch key {
  1312. case "status":
  1313. out.Status = string(in.String())
  1314. case "origin":
  1315. out.Origin = string(in.String())
  1316. case "logDescription":
  1317. out.LogDescription = string(in.String())
  1318. case "logId":
  1319. out.LogID = string(in.String())
  1320. case "timestamp":
  1321. out.Timestamp = float64(in.Float64())
  1322. case "hashAlgorithm":
  1323. out.HashAlgorithm = string(in.String())
  1324. case "signatureAlgorithm":
  1325. out.SignatureAlgorithm = string(in.String())
  1326. case "signatureData":
  1327. out.SignatureData = string(in.String())
  1328. default:
  1329. in.SkipRecursive()
  1330. }
  1331. in.WantComma()
  1332. }
  1333. in.Delim('}')
  1334. if isTopLevel {
  1335. in.Consumed()
  1336. }
  1337. }
  1338. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork12(out *jwriter.Writer, in SignedCertificateTimestamp) {
  1339. out.RawByte('{')
  1340. first := true
  1341. _ = first
  1342. {
  1343. const prefix string = ",\"status\":"
  1344. out.RawString(prefix[1:])
  1345. out.String(string(in.Status))
  1346. }
  1347. {
  1348. const prefix string = ",\"origin\":"
  1349. out.RawString(prefix)
  1350. out.String(string(in.Origin))
  1351. }
  1352. {
  1353. const prefix string = ",\"logDescription\":"
  1354. out.RawString(prefix)
  1355. out.String(string(in.LogDescription))
  1356. }
  1357. {
  1358. const prefix string = ",\"logId\":"
  1359. out.RawString(prefix)
  1360. out.String(string(in.LogID))
  1361. }
  1362. {
  1363. const prefix string = ",\"timestamp\":"
  1364. out.RawString(prefix)
  1365. out.Float64(float64(in.Timestamp))
  1366. }
  1367. {
  1368. const prefix string = ",\"hashAlgorithm\":"
  1369. out.RawString(prefix)
  1370. out.String(string(in.HashAlgorithm))
  1371. }
  1372. {
  1373. const prefix string = ",\"signatureAlgorithm\":"
  1374. out.RawString(prefix)
  1375. out.String(string(in.SignatureAlgorithm))
  1376. }
  1377. {
  1378. const prefix string = ",\"signatureData\":"
  1379. out.RawString(prefix)
  1380. out.String(string(in.SignatureData))
  1381. }
  1382. out.RawByte('}')
  1383. }
  1384. // MarshalJSON supports json.Marshaler interface
  1385. func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error) {
  1386. w := jwriter.Writer{}
  1387. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork12(&w, v)
  1388. return w.Buffer.BuildBytes(), w.Error
  1389. }
  1390. // MarshalEasyJSON supports easyjson.Marshaler interface
  1391. func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer) {
  1392. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork12(w, v)
  1393. }
  1394. // UnmarshalJSON supports json.Unmarshaler interface
  1395. func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error {
  1396. r := jlexer.Lexer{Data: data}
  1397. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork12(&r, v)
  1398. return r.Error()
  1399. }
  1400. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1401. func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1402. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork12(l, v)
  1403. }
  1404. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork13(in *jlexer.Lexer, out *SetExtraHTTPHeadersParams) {
  1405. isTopLevel := in.IsStart()
  1406. if in.IsNull() {
  1407. if isTopLevel {
  1408. in.Consumed()
  1409. }
  1410. in.Skip()
  1411. return
  1412. }
  1413. in.Delim('{')
  1414. for !in.IsDelim('}') {
  1415. key := in.UnsafeFieldName(false)
  1416. in.WantColon()
  1417. if in.IsNull() {
  1418. in.Skip()
  1419. in.WantComma()
  1420. continue
  1421. }
  1422. switch key {
  1423. case "headers":
  1424. if in.IsNull() {
  1425. in.Skip()
  1426. } else {
  1427. in.Delim('{')
  1428. out.Headers = make(Headers)
  1429. for !in.IsDelim('}') {
  1430. key := string(in.String())
  1431. in.WantColon()
  1432. var v21 interface{}
  1433. if m, ok := v21.(easyjson.Unmarshaler); ok {
  1434. m.UnmarshalEasyJSON(in)
  1435. } else if m, ok := v21.(json.Unmarshaler); ok {
  1436. _ = m.UnmarshalJSON(in.Raw())
  1437. } else {
  1438. v21 = in.Interface()
  1439. }
  1440. (out.Headers)[key] = v21
  1441. in.WantComma()
  1442. }
  1443. in.Delim('}')
  1444. }
  1445. default:
  1446. in.SkipRecursive()
  1447. }
  1448. in.WantComma()
  1449. }
  1450. in.Delim('}')
  1451. if isTopLevel {
  1452. in.Consumed()
  1453. }
  1454. }
  1455. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork13(out *jwriter.Writer, in SetExtraHTTPHeadersParams) {
  1456. out.RawByte('{')
  1457. first := true
  1458. _ = first
  1459. {
  1460. const prefix string = ",\"headers\":"
  1461. out.RawString(prefix[1:])
  1462. if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  1463. out.RawString(`null`)
  1464. } else {
  1465. out.RawByte('{')
  1466. v22First := true
  1467. for v22Name, v22Value := range in.Headers {
  1468. if v22First {
  1469. v22First = false
  1470. } else {
  1471. out.RawByte(',')
  1472. }
  1473. out.String(string(v22Name))
  1474. out.RawByte(':')
  1475. if m, ok := v22Value.(easyjson.Marshaler); ok {
  1476. m.MarshalEasyJSON(out)
  1477. } else if m, ok := v22Value.(json.Marshaler); ok {
  1478. out.Raw(m.MarshalJSON())
  1479. } else {
  1480. out.Raw(json.Marshal(v22Value))
  1481. }
  1482. }
  1483. out.RawByte('}')
  1484. }
  1485. }
  1486. out.RawByte('}')
  1487. }
  1488. // MarshalJSON supports json.Marshaler interface
  1489. func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) {
  1490. w := jwriter.Writer{}
  1491. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork13(&w, v)
  1492. return w.Buffer.BuildBytes(), w.Error
  1493. }
  1494. // MarshalEasyJSON supports easyjson.Marshaler interface
  1495. func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) {
  1496. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork13(w, v)
  1497. }
  1498. // UnmarshalJSON supports json.Unmarshaler interface
  1499. func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error {
  1500. r := jlexer.Lexer{Data: data}
  1501. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork13(&r, v)
  1502. return r.Error()
  1503. }
  1504. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1505. func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1506. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork13(l, v)
  1507. }
  1508. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork14(in *jlexer.Lexer, out *SetCookiesParams) {
  1509. isTopLevel := in.IsStart()
  1510. if in.IsNull() {
  1511. if isTopLevel {
  1512. in.Consumed()
  1513. }
  1514. in.Skip()
  1515. return
  1516. }
  1517. in.Delim('{')
  1518. for !in.IsDelim('}') {
  1519. key := in.UnsafeFieldName(false)
  1520. in.WantColon()
  1521. if in.IsNull() {
  1522. in.Skip()
  1523. in.WantComma()
  1524. continue
  1525. }
  1526. switch key {
  1527. case "cookies":
  1528. if in.IsNull() {
  1529. in.Skip()
  1530. out.Cookies = nil
  1531. } else {
  1532. in.Delim('[')
  1533. if out.Cookies == nil {
  1534. if !in.IsDelim(']') {
  1535. out.Cookies = make([]*CookieParam, 0, 8)
  1536. } else {
  1537. out.Cookies = []*CookieParam{}
  1538. }
  1539. } else {
  1540. out.Cookies = (out.Cookies)[:0]
  1541. }
  1542. for !in.IsDelim(']') {
  1543. var v23 *CookieParam
  1544. if in.IsNull() {
  1545. in.Skip()
  1546. v23 = nil
  1547. } else {
  1548. if v23 == nil {
  1549. v23 = new(CookieParam)
  1550. }
  1551. (*v23).UnmarshalEasyJSON(in)
  1552. }
  1553. out.Cookies = append(out.Cookies, v23)
  1554. in.WantComma()
  1555. }
  1556. in.Delim(']')
  1557. }
  1558. default:
  1559. in.SkipRecursive()
  1560. }
  1561. in.WantComma()
  1562. }
  1563. in.Delim('}')
  1564. if isTopLevel {
  1565. in.Consumed()
  1566. }
  1567. }
  1568. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork14(out *jwriter.Writer, in SetCookiesParams) {
  1569. out.RawByte('{')
  1570. first := true
  1571. _ = first
  1572. {
  1573. const prefix string = ",\"cookies\":"
  1574. out.RawString(prefix[1:])
  1575. if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1576. out.RawString("null")
  1577. } else {
  1578. out.RawByte('[')
  1579. for v24, v25 := range in.Cookies {
  1580. if v24 > 0 {
  1581. out.RawByte(',')
  1582. }
  1583. if v25 == nil {
  1584. out.RawString("null")
  1585. } else {
  1586. (*v25).MarshalEasyJSON(out)
  1587. }
  1588. }
  1589. out.RawByte(']')
  1590. }
  1591. }
  1592. out.RawByte('}')
  1593. }
  1594. // MarshalJSON supports json.Marshaler interface
  1595. func (v SetCookiesParams) MarshalJSON() ([]byte, error) {
  1596. w := jwriter.Writer{}
  1597. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork14(&w, v)
  1598. return w.Buffer.BuildBytes(), w.Error
  1599. }
  1600. // MarshalEasyJSON supports easyjson.Marshaler interface
  1601. func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
  1602. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork14(w, v)
  1603. }
  1604. // UnmarshalJSON supports json.Unmarshaler interface
  1605. func (v *SetCookiesParams) UnmarshalJSON(data []byte) error {
  1606. r := jlexer.Lexer{Data: data}
  1607. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork14(&r, v)
  1608. return r.Error()
  1609. }
  1610. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1611. func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1612. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork14(l, v)
  1613. }
  1614. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork15(in *jlexer.Lexer, out *SetCookieParams) {
  1615. isTopLevel := in.IsStart()
  1616. if in.IsNull() {
  1617. if isTopLevel {
  1618. in.Consumed()
  1619. }
  1620. in.Skip()
  1621. return
  1622. }
  1623. in.Delim('{')
  1624. for !in.IsDelim('}') {
  1625. key := in.UnsafeFieldName(false)
  1626. in.WantColon()
  1627. if in.IsNull() {
  1628. in.Skip()
  1629. in.WantComma()
  1630. continue
  1631. }
  1632. switch key {
  1633. case "name":
  1634. out.Name = string(in.String())
  1635. case "value":
  1636. out.Value = string(in.String())
  1637. case "url":
  1638. out.URL = string(in.String())
  1639. case "domain":
  1640. out.Domain = string(in.String())
  1641. case "path":
  1642. out.Path = string(in.String())
  1643. case "secure":
  1644. out.Secure = bool(in.Bool())
  1645. case "httpOnly":
  1646. out.HTTPOnly = bool(in.Bool())
  1647. case "sameSite":
  1648. (out.SameSite).UnmarshalEasyJSON(in)
  1649. case "expires":
  1650. if in.IsNull() {
  1651. in.Skip()
  1652. out.Expires = nil
  1653. } else {
  1654. if out.Expires == nil {
  1655. out.Expires = new(cdp.TimeSinceEpoch)
  1656. }
  1657. (*out.Expires).UnmarshalEasyJSON(in)
  1658. }
  1659. case "priority":
  1660. (out.Priority).UnmarshalEasyJSON(in)
  1661. case "sameParty":
  1662. out.SameParty = bool(in.Bool())
  1663. case "sourceScheme":
  1664. (out.SourceScheme).UnmarshalEasyJSON(in)
  1665. case "sourcePort":
  1666. out.SourcePort = int64(in.Int64())
  1667. case "partitionKey":
  1668. out.PartitionKey = string(in.String())
  1669. default:
  1670. in.SkipRecursive()
  1671. }
  1672. in.WantComma()
  1673. }
  1674. in.Delim('}')
  1675. if isTopLevel {
  1676. in.Consumed()
  1677. }
  1678. }
  1679. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork15(out *jwriter.Writer, in SetCookieParams) {
  1680. out.RawByte('{')
  1681. first := true
  1682. _ = first
  1683. {
  1684. const prefix string = ",\"name\":"
  1685. out.RawString(prefix[1:])
  1686. out.String(string(in.Name))
  1687. }
  1688. {
  1689. const prefix string = ",\"value\":"
  1690. out.RawString(prefix)
  1691. out.String(string(in.Value))
  1692. }
  1693. if in.URL != "" {
  1694. const prefix string = ",\"url\":"
  1695. out.RawString(prefix)
  1696. out.String(string(in.URL))
  1697. }
  1698. if in.Domain != "" {
  1699. const prefix string = ",\"domain\":"
  1700. out.RawString(prefix)
  1701. out.String(string(in.Domain))
  1702. }
  1703. if in.Path != "" {
  1704. const prefix string = ",\"path\":"
  1705. out.RawString(prefix)
  1706. out.String(string(in.Path))
  1707. }
  1708. if in.Secure {
  1709. const prefix string = ",\"secure\":"
  1710. out.RawString(prefix)
  1711. out.Bool(bool(in.Secure))
  1712. }
  1713. if in.HTTPOnly {
  1714. const prefix string = ",\"httpOnly\":"
  1715. out.RawString(prefix)
  1716. out.Bool(bool(in.HTTPOnly))
  1717. }
  1718. if in.SameSite != "" {
  1719. const prefix string = ",\"sameSite\":"
  1720. out.RawString(prefix)
  1721. (in.SameSite).MarshalEasyJSON(out)
  1722. }
  1723. if in.Expires != nil {
  1724. const prefix string = ",\"expires\":"
  1725. out.RawString(prefix)
  1726. (*in.Expires).MarshalEasyJSON(out)
  1727. }
  1728. if in.Priority != "" {
  1729. const prefix string = ",\"priority\":"
  1730. out.RawString(prefix)
  1731. (in.Priority).MarshalEasyJSON(out)
  1732. }
  1733. if in.SameParty {
  1734. const prefix string = ",\"sameParty\":"
  1735. out.RawString(prefix)
  1736. out.Bool(bool(in.SameParty))
  1737. }
  1738. if in.SourceScheme != "" {
  1739. const prefix string = ",\"sourceScheme\":"
  1740. out.RawString(prefix)
  1741. (in.SourceScheme).MarshalEasyJSON(out)
  1742. }
  1743. if in.SourcePort != 0 {
  1744. const prefix string = ",\"sourcePort\":"
  1745. out.RawString(prefix)
  1746. out.Int64(int64(in.SourcePort))
  1747. }
  1748. if in.PartitionKey != "" {
  1749. const prefix string = ",\"partitionKey\":"
  1750. out.RawString(prefix)
  1751. out.String(string(in.PartitionKey))
  1752. }
  1753. out.RawByte('}')
  1754. }
  1755. // MarshalJSON supports json.Marshaler interface
  1756. func (v SetCookieParams) MarshalJSON() ([]byte, error) {
  1757. w := jwriter.Writer{}
  1758. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork15(&w, v)
  1759. return w.Buffer.BuildBytes(), w.Error
  1760. }
  1761. // MarshalEasyJSON supports easyjson.Marshaler interface
  1762. func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) {
  1763. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork15(w, v)
  1764. }
  1765. // UnmarshalJSON supports json.Unmarshaler interface
  1766. func (v *SetCookieParams) UnmarshalJSON(data []byte) error {
  1767. r := jlexer.Lexer{Data: data}
  1768. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork15(&r, v)
  1769. return r.Error()
  1770. }
  1771. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1772. func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1773. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork15(l, v)
  1774. }
  1775. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork16(in *jlexer.Lexer, out *SetCacheDisabledParams) {
  1776. isTopLevel := in.IsStart()
  1777. if in.IsNull() {
  1778. if isTopLevel {
  1779. in.Consumed()
  1780. }
  1781. in.Skip()
  1782. return
  1783. }
  1784. in.Delim('{')
  1785. for !in.IsDelim('}') {
  1786. key := in.UnsafeFieldName(false)
  1787. in.WantColon()
  1788. if in.IsNull() {
  1789. in.Skip()
  1790. in.WantComma()
  1791. continue
  1792. }
  1793. switch key {
  1794. case "cacheDisabled":
  1795. out.CacheDisabled = bool(in.Bool())
  1796. default:
  1797. in.SkipRecursive()
  1798. }
  1799. in.WantComma()
  1800. }
  1801. in.Delim('}')
  1802. if isTopLevel {
  1803. in.Consumed()
  1804. }
  1805. }
  1806. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork16(out *jwriter.Writer, in SetCacheDisabledParams) {
  1807. out.RawByte('{')
  1808. first := true
  1809. _ = first
  1810. {
  1811. const prefix string = ",\"cacheDisabled\":"
  1812. out.RawString(prefix[1:])
  1813. out.Bool(bool(in.CacheDisabled))
  1814. }
  1815. out.RawByte('}')
  1816. }
  1817. // MarshalJSON supports json.Marshaler interface
  1818. func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) {
  1819. w := jwriter.Writer{}
  1820. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork16(&w, v)
  1821. return w.Buffer.BuildBytes(), w.Error
  1822. }
  1823. // MarshalEasyJSON supports easyjson.Marshaler interface
  1824. func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) {
  1825. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork16(w, v)
  1826. }
  1827. // UnmarshalJSON supports json.Unmarshaler interface
  1828. func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error {
  1829. r := jlexer.Lexer{Data: data}
  1830. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork16(&r, v)
  1831. return r.Error()
  1832. }
  1833. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1834. func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1835. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork16(l, v)
  1836. }
  1837. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork17(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) {
  1838. isTopLevel := in.IsStart()
  1839. if in.IsNull() {
  1840. if isTopLevel {
  1841. in.Consumed()
  1842. }
  1843. in.Skip()
  1844. return
  1845. }
  1846. in.Delim('{')
  1847. for !in.IsDelim('}') {
  1848. key := in.UnsafeFieldName(false)
  1849. in.WantColon()
  1850. if in.IsNull() {
  1851. in.Skip()
  1852. in.WantComma()
  1853. continue
  1854. }
  1855. switch key {
  1856. case "bypass":
  1857. out.Bypass = bool(in.Bool())
  1858. default:
  1859. in.SkipRecursive()
  1860. }
  1861. in.WantComma()
  1862. }
  1863. in.Delim('}')
  1864. if isTopLevel {
  1865. in.Consumed()
  1866. }
  1867. }
  1868. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork17(out *jwriter.Writer, in SetBypassServiceWorkerParams) {
  1869. out.RawByte('{')
  1870. first := true
  1871. _ = first
  1872. {
  1873. const prefix string = ",\"bypass\":"
  1874. out.RawString(prefix[1:])
  1875. out.Bool(bool(in.Bypass))
  1876. }
  1877. out.RawByte('}')
  1878. }
  1879. // MarshalJSON supports json.Marshaler interface
  1880. func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) {
  1881. w := jwriter.Writer{}
  1882. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork17(&w, v)
  1883. return w.Buffer.BuildBytes(), w.Error
  1884. }
  1885. // MarshalEasyJSON supports easyjson.Marshaler interface
  1886. func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) {
  1887. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork17(w, v)
  1888. }
  1889. // UnmarshalJSON supports json.Unmarshaler interface
  1890. func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error {
  1891. r := jlexer.Lexer{Data: data}
  1892. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork17(&r, v)
  1893. return r.Error()
  1894. }
  1895. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1896. func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1897. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork17(l, v)
  1898. }
  1899. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork18(in *jlexer.Lexer, out *SetBlockedURLSParams) {
  1900. isTopLevel := in.IsStart()
  1901. if in.IsNull() {
  1902. if isTopLevel {
  1903. in.Consumed()
  1904. }
  1905. in.Skip()
  1906. return
  1907. }
  1908. in.Delim('{')
  1909. for !in.IsDelim('}') {
  1910. key := in.UnsafeFieldName(false)
  1911. in.WantColon()
  1912. if in.IsNull() {
  1913. in.Skip()
  1914. in.WantComma()
  1915. continue
  1916. }
  1917. switch key {
  1918. case "urls":
  1919. if in.IsNull() {
  1920. in.Skip()
  1921. out.Urls = nil
  1922. } else {
  1923. in.Delim('[')
  1924. if out.Urls == nil {
  1925. if !in.IsDelim(']') {
  1926. out.Urls = make([]string, 0, 4)
  1927. } else {
  1928. out.Urls = []string{}
  1929. }
  1930. } else {
  1931. out.Urls = (out.Urls)[:0]
  1932. }
  1933. for !in.IsDelim(']') {
  1934. var v26 string
  1935. v26 = string(in.String())
  1936. out.Urls = append(out.Urls, v26)
  1937. in.WantComma()
  1938. }
  1939. in.Delim(']')
  1940. }
  1941. default:
  1942. in.SkipRecursive()
  1943. }
  1944. in.WantComma()
  1945. }
  1946. in.Delim('}')
  1947. if isTopLevel {
  1948. in.Consumed()
  1949. }
  1950. }
  1951. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork18(out *jwriter.Writer, in SetBlockedURLSParams) {
  1952. out.RawByte('{')
  1953. first := true
  1954. _ = first
  1955. {
  1956. const prefix string = ",\"urls\":"
  1957. out.RawString(prefix[1:])
  1958. if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1959. out.RawString("null")
  1960. } else {
  1961. out.RawByte('[')
  1962. for v27, v28 := range in.Urls {
  1963. if v27 > 0 {
  1964. out.RawByte(',')
  1965. }
  1966. out.String(string(v28))
  1967. }
  1968. out.RawByte(']')
  1969. }
  1970. }
  1971. out.RawByte('}')
  1972. }
  1973. // MarshalJSON supports json.Marshaler interface
  1974. func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) {
  1975. w := jwriter.Writer{}
  1976. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork18(&w, v)
  1977. return w.Buffer.BuildBytes(), w.Error
  1978. }
  1979. // MarshalEasyJSON supports easyjson.Marshaler interface
  1980. func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) {
  1981. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork18(w, v)
  1982. }
  1983. // UnmarshalJSON supports json.Unmarshaler interface
  1984. func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error {
  1985. r := jlexer.Lexer{Data: data}
  1986. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork18(&r, v)
  1987. return r.Error()
  1988. }
  1989. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1990. func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1991. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork18(l, v)
  1992. }
  1993. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork19(in *jlexer.Lexer, out *SetAttachDebugStackParams) {
  1994. isTopLevel := in.IsStart()
  1995. if in.IsNull() {
  1996. if isTopLevel {
  1997. in.Consumed()
  1998. }
  1999. in.Skip()
  2000. return
  2001. }
  2002. in.Delim('{')
  2003. for !in.IsDelim('}') {
  2004. key := in.UnsafeFieldName(false)
  2005. in.WantColon()
  2006. if in.IsNull() {
  2007. in.Skip()
  2008. in.WantComma()
  2009. continue
  2010. }
  2011. switch key {
  2012. case "enabled":
  2013. out.Enabled = bool(in.Bool())
  2014. default:
  2015. in.SkipRecursive()
  2016. }
  2017. in.WantComma()
  2018. }
  2019. in.Delim('}')
  2020. if isTopLevel {
  2021. in.Consumed()
  2022. }
  2023. }
  2024. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork19(out *jwriter.Writer, in SetAttachDebugStackParams) {
  2025. out.RawByte('{')
  2026. first := true
  2027. _ = first
  2028. {
  2029. const prefix string = ",\"enabled\":"
  2030. out.RawString(prefix[1:])
  2031. out.Bool(bool(in.Enabled))
  2032. }
  2033. out.RawByte('}')
  2034. }
  2035. // MarshalJSON supports json.Marshaler interface
  2036. func (v SetAttachDebugStackParams) MarshalJSON() ([]byte, error) {
  2037. w := jwriter.Writer{}
  2038. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork19(&w, v)
  2039. return w.Buffer.BuildBytes(), w.Error
  2040. }
  2041. // MarshalEasyJSON supports easyjson.Marshaler interface
  2042. func (v SetAttachDebugStackParams) MarshalEasyJSON(w *jwriter.Writer) {
  2043. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork19(w, v)
  2044. }
  2045. // UnmarshalJSON supports json.Unmarshaler interface
  2046. func (v *SetAttachDebugStackParams) UnmarshalJSON(data []byte) error {
  2047. r := jlexer.Lexer{Data: data}
  2048. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork19(&r, v)
  2049. return r.Error()
  2050. }
  2051. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2052. func (v *SetAttachDebugStackParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2053. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork19(l, v)
  2054. }
  2055. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork20(in *jlexer.Lexer, out *SetAcceptedEncodingsParams) {
  2056. isTopLevel := in.IsStart()
  2057. if in.IsNull() {
  2058. if isTopLevel {
  2059. in.Consumed()
  2060. }
  2061. in.Skip()
  2062. return
  2063. }
  2064. in.Delim('{')
  2065. for !in.IsDelim('}') {
  2066. key := in.UnsafeFieldName(false)
  2067. in.WantColon()
  2068. if in.IsNull() {
  2069. in.Skip()
  2070. in.WantComma()
  2071. continue
  2072. }
  2073. switch key {
  2074. case "encodings":
  2075. if in.IsNull() {
  2076. in.Skip()
  2077. out.Encodings = nil
  2078. } else {
  2079. in.Delim('[')
  2080. if out.Encodings == nil {
  2081. if !in.IsDelim(']') {
  2082. out.Encodings = make([]ContentEncoding, 0, 4)
  2083. } else {
  2084. out.Encodings = []ContentEncoding{}
  2085. }
  2086. } else {
  2087. out.Encodings = (out.Encodings)[:0]
  2088. }
  2089. for !in.IsDelim(']') {
  2090. var v29 ContentEncoding
  2091. (v29).UnmarshalEasyJSON(in)
  2092. out.Encodings = append(out.Encodings, v29)
  2093. in.WantComma()
  2094. }
  2095. in.Delim(']')
  2096. }
  2097. default:
  2098. in.SkipRecursive()
  2099. }
  2100. in.WantComma()
  2101. }
  2102. in.Delim('}')
  2103. if isTopLevel {
  2104. in.Consumed()
  2105. }
  2106. }
  2107. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork20(out *jwriter.Writer, in SetAcceptedEncodingsParams) {
  2108. out.RawByte('{')
  2109. first := true
  2110. _ = first
  2111. {
  2112. const prefix string = ",\"encodings\":"
  2113. out.RawString(prefix[1:])
  2114. if in.Encodings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2115. out.RawString("null")
  2116. } else {
  2117. out.RawByte('[')
  2118. for v30, v31 := range in.Encodings {
  2119. if v30 > 0 {
  2120. out.RawByte(',')
  2121. }
  2122. (v31).MarshalEasyJSON(out)
  2123. }
  2124. out.RawByte(']')
  2125. }
  2126. }
  2127. out.RawByte('}')
  2128. }
  2129. // MarshalJSON supports json.Marshaler interface
  2130. func (v SetAcceptedEncodingsParams) MarshalJSON() ([]byte, error) {
  2131. w := jwriter.Writer{}
  2132. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork20(&w, v)
  2133. return w.Buffer.BuildBytes(), w.Error
  2134. }
  2135. // MarshalEasyJSON supports easyjson.Marshaler interface
  2136. func (v SetAcceptedEncodingsParams) MarshalEasyJSON(w *jwriter.Writer) {
  2137. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork20(w, v)
  2138. }
  2139. // UnmarshalJSON supports json.Unmarshaler interface
  2140. func (v *SetAcceptedEncodingsParams) UnmarshalJSON(data []byte) error {
  2141. r := jlexer.Lexer{Data: data}
  2142. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork20(&r, v)
  2143. return r.Error()
  2144. }
  2145. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2146. func (v *SetAcceptedEncodingsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2147. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork20(l, v)
  2148. }
  2149. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork21(in *jlexer.Lexer, out *ServiceWorkerRouterInfo) {
  2150. isTopLevel := in.IsStart()
  2151. if in.IsNull() {
  2152. if isTopLevel {
  2153. in.Consumed()
  2154. }
  2155. in.Skip()
  2156. return
  2157. }
  2158. in.Delim('{')
  2159. for !in.IsDelim('}') {
  2160. key := in.UnsafeFieldName(false)
  2161. in.WantColon()
  2162. if in.IsNull() {
  2163. in.Skip()
  2164. in.WantComma()
  2165. continue
  2166. }
  2167. switch key {
  2168. case "ruleIdMatched":
  2169. out.RuleIDMatched = int64(in.Int64())
  2170. case "matchedSourceType":
  2171. (out.MatchedSourceType).UnmarshalEasyJSON(in)
  2172. default:
  2173. in.SkipRecursive()
  2174. }
  2175. in.WantComma()
  2176. }
  2177. in.Delim('}')
  2178. if isTopLevel {
  2179. in.Consumed()
  2180. }
  2181. }
  2182. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork21(out *jwriter.Writer, in ServiceWorkerRouterInfo) {
  2183. out.RawByte('{')
  2184. first := true
  2185. _ = first
  2186. {
  2187. const prefix string = ",\"ruleIdMatched\":"
  2188. out.RawString(prefix[1:])
  2189. out.Int64(int64(in.RuleIDMatched))
  2190. }
  2191. {
  2192. const prefix string = ",\"matchedSourceType\":"
  2193. out.RawString(prefix)
  2194. (in.MatchedSourceType).MarshalEasyJSON(out)
  2195. }
  2196. out.RawByte('}')
  2197. }
  2198. // MarshalJSON supports json.Marshaler interface
  2199. func (v ServiceWorkerRouterInfo) MarshalJSON() ([]byte, error) {
  2200. w := jwriter.Writer{}
  2201. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork21(&w, v)
  2202. return w.Buffer.BuildBytes(), w.Error
  2203. }
  2204. // MarshalEasyJSON supports easyjson.Marshaler interface
  2205. func (v ServiceWorkerRouterInfo) MarshalEasyJSON(w *jwriter.Writer) {
  2206. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork21(w, v)
  2207. }
  2208. // UnmarshalJSON supports json.Unmarshaler interface
  2209. func (v *ServiceWorkerRouterInfo) UnmarshalJSON(data []byte) error {
  2210. r := jlexer.Lexer{Data: data}
  2211. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork21(&r, v)
  2212. return r.Error()
  2213. }
  2214. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2215. func (v *ServiceWorkerRouterInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2216. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork21(l, v)
  2217. }
  2218. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork22(in *jlexer.Lexer, out *SecurityIsolationStatus) {
  2219. isTopLevel := in.IsStart()
  2220. if in.IsNull() {
  2221. if isTopLevel {
  2222. in.Consumed()
  2223. }
  2224. in.Skip()
  2225. return
  2226. }
  2227. in.Delim('{')
  2228. for !in.IsDelim('}') {
  2229. key := in.UnsafeFieldName(false)
  2230. in.WantColon()
  2231. if in.IsNull() {
  2232. in.Skip()
  2233. in.WantComma()
  2234. continue
  2235. }
  2236. switch key {
  2237. case "coop":
  2238. if in.IsNull() {
  2239. in.Skip()
  2240. out.Coop = nil
  2241. } else {
  2242. if out.Coop == nil {
  2243. out.Coop = new(CrossOriginOpenerPolicyStatus)
  2244. }
  2245. (*out.Coop).UnmarshalEasyJSON(in)
  2246. }
  2247. case "coep":
  2248. if in.IsNull() {
  2249. in.Skip()
  2250. out.Coep = nil
  2251. } else {
  2252. if out.Coep == nil {
  2253. out.Coep = new(CrossOriginEmbedderPolicyStatus)
  2254. }
  2255. (*out.Coep).UnmarshalEasyJSON(in)
  2256. }
  2257. case "csp":
  2258. if in.IsNull() {
  2259. in.Skip()
  2260. out.Csp = nil
  2261. } else {
  2262. in.Delim('[')
  2263. if out.Csp == nil {
  2264. if !in.IsDelim(']') {
  2265. out.Csp = make([]*ContentSecurityPolicyStatus, 0, 8)
  2266. } else {
  2267. out.Csp = []*ContentSecurityPolicyStatus{}
  2268. }
  2269. } else {
  2270. out.Csp = (out.Csp)[:0]
  2271. }
  2272. for !in.IsDelim(']') {
  2273. var v32 *ContentSecurityPolicyStatus
  2274. if in.IsNull() {
  2275. in.Skip()
  2276. v32 = nil
  2277. } else {
  2278. if v32 == nil {
  2279. v32 = new(ContentSecurityPolicyStatus)
  2280. }
  2281. (*v32).UnmarshalEasyJSON(in)
  2282. }
  2283. out.Csp = append(out.Csp, v32)
  2284. in.WantComma()
  2285. }
  2286. in.Delim(']')
  2287. }
  2288. default:
  2289. in.SkipRecursive()
  2290. }
  2291. in.WantComma()
  2292. }
  2293. in.Delim('}')
  2294. if isTopLevel {
  2295. in.Consumed()
  2296. }
  2297. }
  2298. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork22(out *jwriter.Writer, in SecurityIsolationStatus) {
  2299. out.RawByte('{')
  2300. first := true
  2301. _ = first
  2302. if in.Coop != nil {
  2303. const prefix string = ",\"coop\":"
  2304. first = false
  2305. out.RawString(prefix[1:])
  2306. (*in.Coop).MarshalEasyJSON(out)
  2307. }
  2308. if in.Coep != nil {
  2309. const prefix string = ",\"coep\":"
  2310. if first {
  2311. first = false
  2312. out.RawString(prefix[1:])
  2313. } else {
  2314. out.RawString(prefix)
  2315. }
  2316. (*in.Coep).MarshalEasyJSON(out)
  2317. }
  2318. if len(in.Csp) != 0 {
  2319. const prefix string = ",\"csp\":"
  2320. if first {
  2321. first = false
  2322. out.RawString(prefix[1:])
  2323. } else {
  2324. out.RawString(prefix)
  2325. }
  2326. {
  2327. out.RawByte('[')
  2328. for v33, v34 := range in.Csp {
  2329. if v33 > 0 {
  2330. out.RawByte(',')
  2331. }
  2332. if v34 == nil {
  2333. out.RawString("null")
  2334. } else {
  2335. (*v34).MarshalEasyJSON(out)
  2336. }
  2337. }
  2338. out.RawByte(']')
  2339. }
  2340. }
  2341. out.RawByte('}')
  2342. }
  2343. // MarshalJSON supports json.Marshaler interface
  2344. func (v SecurityIsolationStatus) MarshalJSON() ([]byte, error) {
  2345. w := jwriter.Writer{}
  2346. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork22(&w, v)
  2347. return w.Buffer.BuildBytes(), w.Error
  2348. }
  2349. // MarshalEasyJSON supports easyjson.Marshaler interface
  2350. func (v SecurityIsolationStatus) MarshalEasyJSON(w *jwriter.Writer) {
  2351. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork22(w, v)
  2352. }
  2353. // UnmarshalJSON supports json.Unmarshaler interface
  2354. func (v *SecurityIsolationStatus) UnmarshalJSON(data []byte) error {
  2355. r := jlexer.Lexer{Data: data}
  2356. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork22(&r, v)
  2357. return r.Error()
  2358. }
  2359. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2360. func (v *SecurityIsolationStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2361. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork22(l, v)
  2362. }
  2363. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork23(in *jlexer.Lexer, out *SecurityDetails) {
  2364. isTopLevel := in.IsStart()
  2365. if in.IsNull() {
  2366. if isTopLevel {
  2367. in.Consumed()
  2368. }
  2369. in.Skip()
  2370. return
  2371. }
  2372. in.Delim('{')
  2373. for !in.IsDelim('}') {
  2374. key := in.UnsafeFieldName(false)
  2375. in.WantColon()
  2376. if in.IsNull() {
  2377. in.Skip()
  2378. in.WantComma()
  2379. continue
  2380. }
  2381. switch key {
  2382. case "protocol":
  2383. out.Protocol = string(in.String())
  2384. case "keyExchange":
  2385. out.KeyExchange = string(in.String())
  2386. case "keyExchangeGroup":
  2387. out.KeyExchangeGroup = string(in.String())
  2388. case "cipher":
  2389. out.Cipher = string(in.String())
  2390. case "mac":
  2391. out.Mac = string(in.String())
  2392. case "certificateId":
  2393. out.CertificateID = security.CertificateID(in.Int64())
  2394. case "subjectName":
  2395. out.SubjectName = string(in.String())
  2396. case "sanList":
  2397. if in.IsNull() {
  2398. in.Skip()
  2399. out.SanList = nil
  2400. } else {
  2401. in.Delim('[')
  2402. if out.SanList == nil {
  2403. if !in.IsDelim(']') {
  2404. out.SanList = make([]string, 0, 4)
  2405. } else {
  2406. out.SanList = []string{}
  2407. }
  2408. } else {
  2409. out.SanList = (out.SanList)[:0]
  2410. }
  2411. for !in.IsDelim(']') {
  2412. var v35 string
  2413. v35 = string(in.String())
  2414. out.SanList = append(out.SanList, v35)
  2415. in.WantComma()
  2416. }
  2417. in.Delim(']')
  2418. }
  2419. case "issuer":
  2420. out.Issuer = string(in.String())
  2421. case "validFrom":
  2422. if in.IsNull() {
  2423. in.Skip()
  2424. out.ValidFrom = nil
  2425. } else {
  2426. if out.ValidFrom == nil {
  2427. out.ValidFrom = new(cdp.TimeSinceEpoch)
  2428. }
  2429. (*out.ValidFrom).UnmarshalEasyJSON(in)
  2430. }
  2431. case "validTo":
  2432. if in.IsNull() {
  2433. in.Skip()
  2434. out.ValidTo = nil
  2435. } else {
  2436. if out.ValidTo == nil {
  2437. out.ValidTo = new(cdp.TimeSinceEpoch)
  2438. }
  2439. (*out.ValidTo).UnmarshalEasyJSON(in)
  2440. }
  2441. case "signedCertificateTimestampList":
  2442. if in.IsNull() {
  2443. in.Skip()
  2444. out.SignedCertificateTimestampList = nil
  2445. } else {
  2446. in.Delim('[')
  2447. if out.SignedCertificateTimestampList == nil {
  2448. if !in.IsDelim(']') {
  2449. out.SignedCertificateTimestampList = make([]*SignedCertificateTimestamp, 0, 8)
  2450. } else {
  2451. out.SignedCertificateTimestampList = []*SignedCertificateTimestamp{}
  2452. }
  2453. } else {
  2454. out.SignedCertificateTimestampList = (out.SignedCertificateTimestampList)[:0]
  2455. }
  2456. for !in.IsDelim(']') {
  2457. var v36 *SignedCertificateTimestamp
  2458. if in.IsNull() {
  2459. in.Skip()
  2460. v36 = nil
  2461. } else {
  2462. if v36 == nil {
  2463. v36 = new(SignedCertificateTimestamp)
  2464. }
  2465. (*v36).UnmarshalEasyJSON(in)
  2466. }
  2467. out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v36)
  2468. in.WantComma()
  2469. }
  2470. in.Delim(']')
  2471. }
  2472. case "certificateTransparencyCompliance":
  2473. (out.CertificateTransparencyCompliance).UnmarshalEasyJSON(in)
  2474. case "serverSignatureAlgorithm":
  2475. out.ServerSignatureAlgorithm = int64(in.Int64())
  2476. case "encryptedClientHello":
  2477. out.EncryptedClientHello = bool(in.Bool())
  2478. default:
  2479. in.SkipRecursive()
  2480. }
  2481. in.WantComma()
  2482. }
  2483. in.Delim('}')
  2484. if isTopLevel {
  2485. in.Consumed()
  2486. }
  2487. }
  2488. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork23(out *jwriter.Writer, in SecurityDetails) {
  2489. out.RawByte('{')
  2490. first := true
  2491. _ = first
  2492. {
  2493. const prefix string = ",\"protocol\":"
  2494. out.RawString(prefix[1:])
  2495. out.String(string(in.Protocol))
  2496. }
  2497. {
  2498. const prefix string = ",\"keyExchange\":"
  2499. out.RawString(prefix)
  2500. out.String(string(in.KeyExchange))
  2501. }
  2502. if in.KeyExchangeGroup != "" {
  2503. const prefix string = ",\"keyExchangeGroup\":"
  2504. out.RawString(prefix)
  2505. out.String(string(in.KeyExchangeGroup))
  2506. }
  2507. {
  2508. const prefix string = ",\"cipher\":"
  2509. out.RawString(prefix)
  2510. out.String(string(in.Cipher))
  2511. }
  2512. if in.Mac != "" {
  2513. const prefix string = ",\"mac\":"
  2514. out.RawString(prefix)
  2515. out.String(string(in.Mac))
  2516. }
  2517. {
  2518. const prefix string = ",\"certificateId\":"
  2519. out.RawString(prefix)
  2520. out.Int64(int64(in.CertificateID))
  2521. }
  2522. {
  2523. const prefix string = ",\"subjectName\":"
  2524. out.RawString(prefix)
  2525. out.String(string(in.SubjectName))
  2526. }
  2527. {
  2528. const prefix string = ",\"sanList\":"
  2529. out.RawString(prefix)
  2530. if in.SanList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2531. out.RawString("null")
  2532. } else {
  2533. out.RawByte('[')
  2534. for v37, v38 := range in.SanList {
  2535. if v37 > 0 {
  2536. out.RawByte(',')
  2537. }
  2538. out.String(string(v38))
  2539. }
  2540. out.RawByte(']')
  2541. }
  2542. }
  2543. {
  2544. const prefix string = ",\"issuer\":"
  2545. out.RawString(prefix)
  2546. out.String(string(in.Issuer))
  2547. }
  2548. {
  2549. const prefix string = ",\"validFrom\":"
  2550. out.RawString(prefix)
  2551. if in.ValidFrom == nil {
  2552. out.RawString("null")
  2553. } else {
  2554. (*in.ValidFrom).MarshalEasyJSON(out)
  2555. }
  2556. }
  2557. {
  2558. const prefix string = ",\"validTo\":"
  2559. out.RawString(prefix)
  2560. if in.ValidTo == nil {
  2561. out.RawString("null")
  2562. } else {
  2563. (*in.ValidTo).MarshalEasyJSON(out)
  2564. }
  2565. }
  2566. {
  2567. const prefix string = ",\"signedCertificateTimestampList\":"
  2568. out.RawString(prefix)
  2569. if in.SignedCertificateTimestampList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2570. out.RawString("null")
  2571. } else {
  2572. out.RawByte('[')
  2573. for v39, v40 := range in.SignedCertificateTimestampList {
  2574. if v39 > 0 {
  2575. out.RawByte(',')
  2576. }
  2577. if v40 == nil {
  2578. out.RawString("null")
  2579. } else {
  2580. (*v40).MarshalEasyJSON(out)
  2581. }
  2582. }
  2583. out.RawByte(']')
  2584. }
  2585. }
  2586. {
  2587. const prefix string = ",\"certificateTransparencyCompliance\":"
  2588. out.RawString(prefix)
  2589. (in.CertificateTransparencyCompliance).MarshalEasyJSON(out)
  2590. }
  2591. if in.ServerSignatureAlgorithm != 0 {
  2592. const prefix string = ",\"serverSignatureAlgorithm\":"
  2593. out.RawString(prefix)
  2594. out.Int64(int64(in.ServerSignatureAlgorithm))
  2595. }
  2596. {
  2597. const prefix string = ",\"encryptedClientHello\":"
  2598. out.RawString(prefix)
  2599. out.Bool(bool(in.EncryptedClientHello))
  2600. }
  2601. out.RawByte('}')
  2602. }
  2603. // MarshalJSON supports json.Marshaler interface
  2604. func (v SecurityDetails) MarshalJSON() ([]byte, error) {
  2605. w := jwriter.Writer{}
  2606. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork23(&w, v)
  2607. return w.Buffer.BuildBytes(), w.Error
  2608. }
  2609. // MarshalEasyJSON supports easyjson.Marshaler interface
  2610. func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) {
  2611. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork23(w, v)
  2612. }
  2613. // UnmarshalJSON supports json.Unmarshaler interface
  2614. func (v *SecurityDetails) UnmarshalJSON(data []byte) error {
  2615. r := jlexer.Lexer{Data: data}
  2616. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork23(&r, v)
  2617. return r.Error()
  2618. }
  2619. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2620. func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2621. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork23(l, v)
  2622. }
  2623. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork24(in *jlexer.Lexer, out *SearchInResponseBodyReturns) {
  2624. isTopLevel := in.IsStart()
  2625. if in.IsNull() {
  2626. if isTopLevel {
  2627. in.Consumed()
  2628. }
  2629. in.Skip()
  2630. return
  2631. }
  2632. in.Delim('{')
  2633. for !in.IsDelim('}') {
  2634. key := in.UnsafeFieldName(false)
  2635. in.WantColon()
  2636. if in.IsNull() {
  2637. in.Skip()
  2638. in.WantComma()
  2639. continue
  2640. }
  2641. switch key {
  2642. case "result":
  2643. if in.IsNull() {
  2644. in.Skip()
  2645. out.Result = nil
  2646. } else {
  2647. in.Delim('[')
  2648. if out.Result == nil {
  2649. if !in.IsDelim(']') {
  2650. out.Result = make([]*debugger.SearchMatch, 0, 8)
  2651. } else {
  2652. out.Result = []*debugger.SearchMatch{}
  2653. }
  2654. } else {
  2655. out.Result = (out.Result)[:0]
  2656. }
  2657. for !in.IsDelim(']') {
  2658. var v41 *debugger.SearchMatch
  2659. if in.IsNull() {
  2660. in.Skip()
  2661. v41 = nil
  2662. } else {
  2663. if v41 == nil {
  2664. v41 = new(debugger.SearchMatch)
  2665. }
  2666. (*v41).UnmarshalEasyJSON(in)
  2667. }
  2668. out.Result = append(out.Result, v41)
  2669. in.WantComma()
  2670. }
  2671. in.Delim(']')
  2672. }
  2673. default:
  2674. in.SkipRecursive()
  2675. }
  2676. in.WantComma()
  2677. }
  2678. in.Delim('}')
  2679. if isTopLevel {
  2680. in.Consumed()
  2681. }
  2682. }
  2683. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork24(out *jwriter.Writer, in SearchInResponseBodyReturns) {
  2684. out.RawByte('{')
  2685. first := true
  2686. _ = first
  2687. if len(in.Result) != 0 {
  2688. const prefix string = ",\"result\":"
  2689. first = false
  2690. out.RawString(prefix[1:])
  2691. {
  2692. out.RawByte('[')
  2693. for v42, v43 := range in.Result {
  2694. if v42 > 0 {
  2695. out.RawByte(',')
  2696. }
  2697. if v43 == nil {
  2698. out.RawString("null")
  2699. } else {
  2700. (*v43).MarshalEasyJSON(out)
  2701. }
  2702. }
  2703. out.RawByte(']')
  2704. }
  2705. }
  2706. out.RawByte('}')
  2707. }
  2708. // MarshalJSON supports json.Marshaler interface
  2709. func (v SearchInResponseBodyReturns) MarshalJSON() ([]byte, error) {
  2710. w := jwriter.Writer{}
  2711. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork24(&w, v)
  2712. return w.Buffer.BuildBytes(), w.Error
  2713. }
  2714. // MarshalEasyJSON supports easyjson.Marshaler interface
  2715. func (v SearchInResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2716. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork24(w, v)
  2717. }
  2718. // UnmarshalJSON supports json.Unmarshaler interface
  2719. func (v *SearchInResponseBodyReturns) UnmarshalJSON(data []byte) error {
  2720. r := jlexer.Lexer{Data: data}
  2721. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork24(&r, v)
  2722. return r.Error()
  2723. }
  2724. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2725. func (v *SearchInResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2726. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork24(l, v)
  2727. }
  2728. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork25(in *jlexer.Lexer, out *SearchInResponseBodyParams) {
  2729. isTopLevel := in.IsStart()
  2730. if in.IsNull() {
  2731. if isTopLevel {
  2732. in.Consumed()
  2733. }
  2734. in.Skip()
  2735. return
  2736. }
  2737. in.Delim('{')
  2738. for !in.IsDelim('}') {
  2739. key := in.UnsafeFieldName(false)
  2740. in.WantColon()
  2741. if in.IsNull() {
  2742. in.Skip()
  2743. in.WantComma()
  2744. continue
  2745. }
  2746. switch key {
  2747. case "requestId":
  2748. out.RequestID = RequestID(in.String())
  2749. case "query":
  2750. out.Query = string(in.String())
  2751. case "caseSensitive":
  2752. out.CaseSensitive = bool(in.Bool())
  2753. case "isRegex":
  2754. out.IsRegex = bool(in.Bool())
  2755. default:
  2756. in.SkipRecursive()
  2757. }
  2758. in.WantComma()
  2759. }
  2760. in.Delim('}')
  2761. if isTopLevel {
  2762. in.Consumed()
  2763. }
  2764. }
  2765. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork25(out *jwriter.Writer, in SearchInResponseBodyParams) {
  2766. out.RawByte('{')
  2767. first := true
  2768. _ = first
  2769. {
  2770. const prefix string = ",\"requestId\":"
  2771. out.RawString(prefix[1:])
  2772. out.String(string(in.RequestID))
  2773. }
  2774. {
  2775. const prefix string = ",\"query\":"
  2776. out.RawString(prefix)
  2777. out.String(string(in.Query))
  2778. }
  2779. if in.CaseSensitive {
  2780. const prefix string = ",\"caseSensitive\":"
  2781. out.RawString(prefix)
  2782. out.Bool(bool(in.CaseSensitive))
  2783. }
  2784. if in.IsRegex {
  2785. const prefix string = ",\"isRegex\":"
  2786. out.RawString(prefix)
  2787. out.Bool(bool(in.IsRegex))
  2788. }
  2789. out.RawByte('}')
  2790. }
  2791. // MarshalJSON supports json.Marshaler interface
  2792. func (v SearchInResponseBodyParams) MarshalJSON() ([]byte, error) {
  2793. w := jwriter.Writer{}
  2794. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork25(&w, v)
  2795. return w.Buffer.BuildBytes(), w.Error
  2796. }
  2797. // MarshalEasyJSON supports easyjson.Marshaler interface
  2798. func (v SearchInResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) {
  2799. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork25(w, v)
  2800. }
  2801. // UnmarshalJSON supports json.Unmarshaler interface
  2802. func (v *SearchInResponseBodyParams) UnmarshalJSON(data []byte) error {
  2803. r := jlexer.Lexer{Data: data}
  2804. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork25(&r, v)
  2805. return r.Error()
  2806. }
  2807. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2808. func (v *SearchInResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2809. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork25(l, v)
  2810. }
  2811. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork26(in *jlexer.Lexer, out *Response) {
  2812. isTopLevel := in.IsStart()
  2813. if in.IsNull() {
  2814. if isTopLevel {
  2815. in.Consumed()
  2816. }
  2817. in.Skip()
  2818. return
  2819. }
  2820. in.Delim('{')
  2821. for !in.IsDelim('}') {
  2822. key := in.UnsafeFieldName(false)
  2823. in.WantColon()
  2824. if in.IsNull() {
  2825. in.Skip()
  2826. in.WantComma()
  2827. continue
  2828. }
  2829. switch key {
  2830. case "url":
  2831. out.URL = string(in.String())
  2832. case "status":
  2833. out.Status = int64(in.Int64())
  2834. case "statusText":
  2835. out.StatusText = string(in.String())
  2836. case "headers":
  2837. if in.IsNull() {
  2838. in.Skip()
  2839. } else {
  2840. in.Delim('{')
  2841. out.Headers = make(Headers)
  2842. for !in.IsDelim('}') {
  2843. key := string(in.String())
  2844. in.WantColon()
  2845. var v44 interface{}
  2846. if m, ok := v44.(easyjson.Unmarshaler); ok {
  2847. m.UnmarshalEasyJSON(in)
  2848. } else if m, ok := v44.(json.Unmarshaler); ok {
  2849. _ = m.UnmarshalJSON(in.Raw())
  2850. } else {
  2851. v44 = in.Interface()
  2852. }
  2853. (out.Headers)[key] = v44
  2854. in.WantComma()
  2855. }
  2856. in.Delim('}')
  2857. }
  2858. case "mimeType":
  2859. out.MimeType = string(in.String())
  2860. case "charset":
  2861. out.Charset = string(in.String())
  2862. case "requestHeaders":
  2863. if in.IsNull() {
  2864. in.Skip()
  2865. } else {
  2866. in.Delim('{')
  2867. if !in.IsDelim('}') {
  2868. out.RequestHeaders = make(Headers)
  2869. } else {
  2870. out.RequestHeaders = nil
  2871. }
  2872. for !in.IsDelim('}') {
  2873. key := string(in.String())
  2874. in.WantColon()
  2875. var v45 interface{}
  2876. if m, ok := v45.(easyjson.Unmarshaler); ok {
  2877. m.UnmarshalEasyJSON(in)
  2878. } else if m, ok := v45.(json.Unmarshaler); ok {
  2879. _ = m.UnmarshalJSON(in.Raw())
  2880. } else {
  2881. v45 = in.Interface()
  2882. }
  2883. (out.RequestHeaders)[key] = v45
  2884. in.WantComma()
  2885. }
  2886. in.Delim('}')
  2887. }
  2888. case "connectionReused":
  2889. out.ConnectionReused = bool(in.Bool())
  2890. case "connectionId":
  2891. out.ConnectionID = float64(in.Float64())
  2892. case "remoteIPAddress":
  2893. out.RemoteIPAddress = string(in.String())
  2894. case "remotePort":
  2895. out.RemotePort = int64(in.Int64())
  2896. case "fromDiskCache":
  2897. out.FromDiskCache = bool(in.Bool())
  2898. case "fromServiceWorker":
  2899. out.FromServiceWorker = bool(in.Bool())
  2900. case "fromPrefetchCache":
  2901. out.FromPrefetchCache = bool(in.Bool())
  2902. case "fromEarlyHints":
  2903. out.FromEarlyHints = bool(in.Bool())
  2904. case "serviceWorkerRouterInfo":
  2905. if in.IsNull() {
  2906. in.Skip()
  2907. out.ServiceWorkerRouterInfo = nil
  2908. } else {
  2909. if out.ServiceWorkerRouterInfo == nil {
  2910. out.ServiceWorkerRouterInfo = new(ServiceWorkerRouterInfo)
  2911. }
  2912. (*out.ServiceWorkerRouterInfo).UnmarshalEasyJSON(in)
  2913. }
  2914. case "encodedDataLength":
  2915. out.EncodedDataLength = float64(in.Float64())
  2916. case "timing":
  2917. if in.IsNull() {
  2918. in.Skip()
  2919. out.Timing = nil
  2920. } else {
  2921. if out.Timing == nil {
  2922. out.Timing = new(ResourceTiming)
  2923. }
  2924. (*out.Timing).UnmarshalEasyJSON(in)
  2925. }
  2926. case "serviceWorkerResponseSource":
  2927. (out.ServiceWorkerResponseSource).UnmarshalEasyJSON(in)
  2928. case "responseTime":
  2929. if in.IsNull() {
  2930. in.Skip()
  2931. out.ResponseTime = nil
  2932. } else {
  2933. if out.ResponseTime == nil {
  2934. out.ResponseTime = new(cdp.TimeSinceEpochMilli)
  2935. }
  2936. (*out.ResponseTime).UnmarshalEasyJSON(in)
  2937. }
  2938. case "cacheStorageCacheName":
  2939. out.CacheStorageCacheName = string(in.String())
  2940. case "protocol":
  2941. out.Protocol = string(in.String())
  2942. case "alternateProtocolUsage":
  2943. (out.AlternateProtocolUsage).UnmarshalEasyJSON(in)
  2944. case "securityState":
  2945. (out.SecurityState).UnmarshalEasyJSON(in)
  2946. case "securityDetails":
  2947. if in.IsNull() {
  2948. in.Skip()
  2949. out.SecurityDetails = nil
  2950. } else {
  2951. if out.SecurityDetails == nil {
  2952. out.SecurityDetails = new(SecurityDetails)
  2953. }
  2954. (*out.SecurityDetails).UnmarshalEasyJSON(in)
  2955. }
  2956. default:
  2957. in.SkipRecursive()
  2958. }
  2959. in.WantComma()
  2960. }
  2961. in.Delim('}')
  2962. if isTopLevel {
  2963. in.Consumed()
  2964. }
  2965. }
  2966. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork26(out *jwriter.Writer, in Response) {
  2967. out.RawByte('{')
  2968. first := true
  2969. _ = first
  2970. {
  2971. const prefix string = ",\"url\":"
  2972. out.RawString(prefix[1:])
  2973. out.String(string(in.URL))
  2974. }
  2975. {
  2976. const prefix string = ",\"status\":"
  2977. out.RawString(prefix)
  2978. out.Int64(int64(in.Status))
  2979. }
  2980. {
  2981. const prefix string = ",\"statusText\":"
  2982. out.RawString(prefix)
  2983. out.String(string(in.StatusText))
  2984. }
  2985. {
  2986. const prefix string = ",\"headers\":"
  2987. out.RawString(prefix)
  2988. if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  2989. out.RawString(`null`)
  2990. } else {
  2991. out.RawByte('{')
  2992. v46First := true
  2993. for v46Name, v46Value := range in.Headers {
  2994. if v46First {
  2995. v46First = false
  2996. } else {
  2997. out.RawByte(',')
  2998. }
  2999. out.String(string(v46Name))
  3000. out.RawByte(':')
  3001. if m, ok := v46Value.(easyjson.Marshaler); ok {
  3002. m.MarshalEasyJSON(out)
  3003. } else if m, ok := v46Value.(json.Marshaler); ok {
  3004. out.Raw(m.MarshalJSON())
  3005. } else {
  3006. out.Raw(json.Marshal(v46Value))
  3007. }
  3008. }
  3009. out.RawByte('}')
  3010. }
  3011. }
  3012. {
  3013. const prefix string = ",\"mimeType\":"
  3014. out.RawString(prefix)
  3015. out.String(string(in.MimeType))
  3016. }
  3017. {
  3018. const prefix string = ",\"charset\":"
  3019. out.RawString(prefix)
  3020. out.String(string(in.Charset))
  3021. }
  3022. if len(in.RequestHeaders) != 0 {
  3023. const prefix string = ",\"requestHeaders\":"
  3024. out.RawString(prefix)
  3025. {
  3026. out.RawByte('{')
  3027. v47First := true
  3028. for v47Name, v47Value := range in.RequestHeaders {
  3029. if v47First {
  3030. v47First = false
  3031. } else {
  3032. out.RawByte(',')
  3033. }
  3034. out.String(string(v47Name))
  3035. out.RawByte(':')
  3036. if m, ok := v47Value.(easyjson.Marshaler); ok {
  3037. m.MarshalEasyJSON(out)
  3038. } else if m, ok := v47Value.(json.Marshaler); ok {
  3039. out.Raw(m.MarshalJSON())
  3040. } else {
  3041. out.Raw(json.Marshal(v47Value))
  3042. }
  3043. }
  3044. out.RawByte('}')
  3045. }
  3046. }
  3047. {
  3048. const prefix string = ",\"connectionReused\":"
  3049. out.RawString(prefix)
  3050. out.Bool(bool(in.ConnectionReused))
  3051. }
  3052. {
  3053. const prefix string = ",\"connectionId\":"
  3054. out.RawString(prefix)
  3055. out.Float64(float64(in.ConnectionID))
  3056. }
  3057. if in.RemoteIPAddress != "" {
  3058. const prefix string = ",\"remoteIPAddress\":"
  3059. out.RawString(prefix)
  3060. out.String(string(in.RemoteIPAddress))
  3061. }
  3062. if in.RemotePort != 0 {
  3063. const prefix string = ",\"remotePort\":"
  3064. out.RawString(prefix)
  3065. out.Int64(int64(in.RemotePort))
  3066. }
  3067. if in.FromDiskCache {
  3068. const prefix string = ",\"fromDiskCache\":"
  3069. out.RawString(prefix)
  3070. out.Bool(bool(in.FromDiskCache))
  3071. }
  3072. if in.FromServiceWorker {
  3073. const prefix string = ",\"fromServiceWorker\":"
  3074. out.RawString(prefix)
  3075. out.Bool(bool(in.FromServiceWorker))
  3076. }
  3077. if in.FromPrefetchCache {
  3078. const prefix string = ",\"fromPrefetchCache\":"
  3079. out.RawString(prefix)
  3080. out.Bool(bool(in.FromPrefetchCache))
  3081. }
  3082. if in.FromEarlyHints {
  3083. const prefix string = ",\"fromEarlyHints\":"
  3084. out.RawString(prefix)
  3085. out.Bool(bool(in.FromEarlyHints))
  3086. }
  3087. if in.ServiceWorkerRouterInfo != nil {
  3088. const prefix string = ",\"serviceWorkerRouterInfo\":"
  3089. out.RawString(prefix)
  3090. (*in.ServiceWorkerRouterInfo).MarshalEasyJSON(out)
  3091. }
  3092. {
  3093. const prefix string = ",\"encodedDataLength\":"
  3094. out.RawString(prefix)
  3095. out.Float64(float64(in.EncodedDataLength))
  3096. }
  3097. if in.Timing != nil {
  3098. const prefix string = ",\"timing\":"
  3099. out.RawString(prefix)
  3100. (*in.Timing).MarshalEasyJSON(out)
  3101. }
  3102. if in.ServiceWorkerResponseSource != "" {
  3103. const prefix string = ",\"serviceWorkerResponseSource\":"
  3104. out.RawString(prefix)
  3105. (in.ServiceWorkerResponseSource).MarshalEasyJSON(out)
  3106. }
  3107. if in.ResponseTime != nil {
  3108. const prefix string = ",\"responseTime\":"
  3109. out.RawString(prefix)
  3110. (*in.ResponseTime).MarshalEasyJSON(out)
  3111. }
  3112. if in.CacheStorageCacheName != "" {
  3113. const prefix string = ",\"cacheStorageCacheName\":"
  3114. out.RawString(prefix)
  3115. out.String(string(in.CacheStorageCacheName))
  3116. }
  3117. if in.Protocol != "" {
  3118. const prefix string = ",\"protocol\":"
  3119. out.RawString(prefix)
  3120. out.String(string(in.Protocol))
  3121. }
  3122. if in.AlternateProtocolUsage != "" {
  3123. const prefix string = ",\"alternateProtocolUsage\":"
  3124. out.RawString(prefix)
  3125. (in.AlternateProtocolUsage).MarshalEasyJSON(out)
  3126. }
  3127. {
  3128. const prefix string = ",\"securityState\":"
  3129. out.RawString(prefix)
  3130. (in.SecurityState).MarshalEasyJSON(out)
  3131. }
  3132. if in.SecurityDetails != nil {
  3133. const prefix string = ",\"securityDetails\":"
  3134. out.RawString(prefix)
  3135. (*in.SecurityDetails).MarshalEasyJSON(out)
  3136. }
  3137. out.RawByte('}')
  3138. }
  3139. // MarshalJSON supports json.Marshaler interface
  3140. func (v Response) MarshalJSON() ([]byte, error) {
  3141. w := jwriter.Writer{}
  3142. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork26(&w, v)
  3143. return w.Buffer.BuildBytes(), w.Error
  3144. }
  3145. // MarshalEasyJSON supports easyjson.Marshaler interface
  3146. func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
  3147. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork26(w, v)
  3148. }
  3149. // UnmarshalJSON supports json.Unmarshaler interface
  3150. func (v *Response) UnmarshalJSON(data []byte) error {
  3151. r := jlexer.Lexer{Data: data}
  3152. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork26(&r, v)
  3153. return r.Error()
  3154. }
  3155. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3156. func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3157. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork26(l, v)
  3158. }
  3159. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork27(in *jlexer.Lexer, out *ResourceTiming) {
  3160. isTopLevel := in.IsStart()
  3161. if in.IsNull() {
  3162. if isTopLevel {
  3163. in.Consumed()
  3164. }
  3165. in.Skip()
  3166. return
  3167. }
  3168. in.Delim('{')
  3169. for !in.IsDelim('}') {
  3170. key := in.UnsafeFieldName(false)
  3171. in.WantColon()
  3172. if in.IsNull() {
  3173. in.Skip()
  3174. in.WantComma()
  3175. continue
  3176. }
  3177. switch key {
  3178. case "requestTime":
  3179. out.RequestTime = float64(in.Float64())
  3180. case "proxyStart":
  3181. out.ProxyStart = float64(in.Float64())
  3182. case "proxyEnd":
  3183. out.ProxyEnd = float64(in.Float64())
  3184. case "dnsStart":
  3185. out.DNSStart = float64(in.Float64())
  3186. case "dnsEnd":
  3187. out.DNSEnd = float64(in.Float64())
  3188. case "connectStart":
  3189. out.ConnectStart = float64(in.Float64())
  3190. case "connectEnd":
  3191. out.ConnectEnd = float64(in.Float64())
  3192. case "sslStart":
  3193. out.SslStart = float64(in.Float64())
  3194. case "sslEnd":
  3195. out.SslEnd = float64(in.Float64())
  3196. case "workerStart":
  3197. out.WorkerStart = float64(in.Float64())
  3198. case "workerReady":
  3199. out.WorkerReady = float64(in.Float64())
  3200. case "workerFetchStart":
  3201. out.WorkerFetchStart = float64(in.Float64())
  3202. case "workerRespondWithSettled":
  3203. out.WorkerRespondWithSettled = float64(in.Float64())
  3204. case "sendStart":
  3205. out.SendStart = float64(in.Float64())
  3206. case "sendEnd":
  3207. out.SendEnd = float64(in.Float64())
  3208. case "pushStart":
  3209. out.PushStart = float64(in.Float64())
  3210. case "pushEnd":
  3211. out.PushEnd = float64(in.Float64())
  3212. case "receiveHeadersStart":
  3213. out.ReceiveHeadersStart = float64(in.Float64())
  3214. case "receiveHeadersEnd":
  3215. out.ReceiveHeadersEnd = float64(in.Float64())
  3216. default:
  3217. in.SkipRecursive()
  3218. }
  3219. in.WantComma()
  3220. }
  3221. in.Delim('}')
  3222. if isTopLevel {
  3223. in.Consumed()
  3224. }
  3225. }
  3226. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork27(out *jwriter.Writer, in ResourceTiming) {
  3227. out.RawByte('{')
  3228. first := true
  3229. _ = first
  3230. {
  3231. const prefix string = ",\"requestTime\":"
  3232. out.RawString(prefix[1:])
  3233. out.Float64(float64(in.RequestTime))
  3234. }
  3235. {
  3236. const prefix string = ",\"proxyStart\":"
  3237. out.RawString(prefix)
  3238. out.Float64(float64(in.ProxyStart))
  3239. }
  3240. {
  3241. const prefix string = ",\"proxyEnd\":"
  3242. out.RawString(prefix)
  3243. out.Float64(float64(in.ProxyEnd))
  3244. }
  3245. {
  3246. const prefix string = ",\"dnsStart\":"
  3247. out.RawString(prefix)
  3248. out.Float64(float64(in.DNSStart))
  3249. }
  3250. {
  3251. const prefix string = ",\"dnsEnd\":"
  3252. out.RawString(prefix)
  3253. out.Float64(float64(in.DNSEnd))
  3254. }
  3255. {
  3256. const prefix string = ",\"connectStart\":"
  3257. out.RawString(prefix)
  3258. out.Float64(float64(in.ConnectStart))
  3259. }
  3260. {
  3261. const prefix string = ",\"connectEnd\":"
  3262. out.RawString(prefix)
  3263. out.Float64(float64(in.ConnectEnd))
  3264. }
  3265. {
  3266. const prefix string = ",\"sslStart\":"
  3267. out.RawString(prefix)
  3268. out.Float64(float64(in.SslStart))
  3269. }
  3270. {
  3271. const prefix string = ",\"sslEnd\":"
  3272. out.RawString(prefix)
  3273. out.Float64(float64(in.SslEnd))
  3274. }
  3275. {
  3276. const prefix string = ",\"workerStart\":"
  3277. out.RawString(prefix)
  3278. out.Float64(float64(in.WorkerStart))
  3279. }
  3280. {
  3281. const prefix string = ",\"workerReady\":"
  3282. out.RawString(prefix)
  3283. out.Float64(float64(in.WorkerReady))
  3284. }
  3285. {
  3286. const prefix string = ",\"workerFetchStart\":"
  3287. out.RawString(prefix)
  3288. out.Float64(float64(in.WorkerFetchStart))
  3289. }
  3290. {
  3291. const prefix string = ",\"workerRespondWithSettled\":"
  3292. out.RawString(prefix)
  3293. out.Float64(float64(in.WorkerRespondWithSettled))
  3294. }
  3295. {
  3296. const prefix string = ",\"sendStart\":"
  3297. out.RawString(prefix)
  3298. out.Float64(float64(in.SendStart))
  3299. }
  3300. {
  3301. const prefix string = ",\"sendEnd\":"
  3302. out.RawString(prefix)
  3303. out.Float64(float64(in.SendEnd))
  3304. }
  3305. {
  3306. const prefix string = ",\"pushStart\":"
  3307. out.RawString(prefix)
  3308. out.Float64(float64(in.PushStart))
  3309. }
  3310. {
  3311. const prefix string = ",\"pushEnd\":"
  3312. out.RawString(prefix)
  3313. out.Float64(float64(in.PushEnd))
  3314. }
  3315. {
  3316. const prefix string = ",\"receiveHeadersStart\":"
  3317. out.RawString(prefix)
  3318. out.Float64(float64(in.ReceiveHeadersStart))
  3319. }
  3320. {
  3321. const prefix string = ",\"receiveHeadersEnd\":"
  3322. out.RawString(prefix)
  3323. out.Float64(float64(in.ReceiveHeadersEnd))
  3324. }
  3325. out.RawByte('}')
  3326. }
  3327. // MarshalJSON supports json.Marshaler interface
  3328. func (v ResourceTiming) MarshalJSON() ([]byte, error) {
  3329. w := jwriter.Writer{}
  3330. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork27(&w, v)
  3331. return w.Buffer.BuildBytes(), w.Error
  3332. }
  3333. // MarshalEasyJSON supports easyjson.Marshaler interface
  3334. func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) {
  3335. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork27(w, v)
  3336. }
  3337. // UnmarshalJSON supports json.Unmarshaler interface
  3338. func (v *ResourceTiming) UnmarshalJSON(data []byte) error {
  3339. r := jlexer.Lexer{Data: data}
  3340. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork27(&r, v)
  3341. return r.Error()
  3342. }
  3343. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3344. func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3345. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork27(l, v)
  3346. }
  3347. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork28(in *jlexer.Lexer, out *RequestPattern) {
  3348. isTopLevel := in.IsStart()
  3349. if in.IsNull() {
  3350. if isTopLevel {
  3351. in.Consumed()
  3352. }
  3353. in.Skip()
  3354. return
  3355. }
  3356. in.Delim('{')
  3357. for !in.IsDelim('}') {
  3358. key := in.UnsafeFieldName(false)
  3359. in.WantColon()
  3360. if in.IsNull() {
  3361. in.Skip()
  3362. in.WantComma()
  3363. continue
  3364. }
  3365. switch key {
  3366. case "urlPattern":
  3367. out.URLPattern = string(in.String())
  3368. case "resourceType":
  3369. (out.ResourceType).UnmarshalEasyJSON(in)
  3370. case "interceptionStage":
  3371. (out.InterceptionStage).UnmarshalEasyJSON(in)
  3372. default:
  3373. in.SkipRecursive()
  3374. }
  3375. in.WantComma()
  3376. }
  3377. in.Delim('}')
  3378. if isTopLevel {
  3379. in.Consumed()
  3380. }
  3381. }
  3382. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork28(out *jwriter.Writer, in RequestPattern) {
  3383. out.RawByte('{')
  3384. first := true
  3385. _ = first
  3386. if in.URLPattern != "" {
  3387. const prefix string = ",\"urlPattern\":"
  3388. first = false
  3389. out.RawString(prefix[1:])
  3390. out.String(string(in.URLPattern))
  3391. }
  3392. if in.ResourceType != "" {
  3393. const prefix string = ",\"resourceType\":"
  3394. if first {
  3395. first = false
  3396. out.RawString(prefix[1:])
  3397. } else {
  3398. out.RawString(prefix)
  3399. }
  3400. (in.ResourceType).MarshalEasyJSON(out)
  3401. }
  3402. if in.InterceptionStage != "" {
  3403. const prefix string = ",\"interceptionStage\":"
  3404. if first {
  3405. first = false
  3406. out.RawString(prefix[1:])
  3407. } else {
  3408. out.RawString(prefix)
  3409. }
  3410. (in.InterceptionStage).MarshalEasyJSON(out)
  3411. }
  3412. out.RawByte('}')
  3413. }
  3414. // MarshalJSON supports json.Marshaler interface
  3415. func (v RequestPattern) MarshalJSON() ([]byte, error) {
  3416. w := jwriter.Writer{}
  3417. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork28(&w, v)
  3418. return w.Buffer.BuildBytes(), w.Error
  3419. }
  3420. // MarshalEasyJSON supports easyjson.Marshaler interface
  3421. func (v RequestPattern) MarshalEasyJSON(w *jwriter.Writer) {
  3422. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork28(w, v)
  3423. }
  3424. // UnmarshalJSON supports json.Unmarshaler interface
  3425. func (v *RequestPattern) UnmarshalJSON(data []byte) error {
  3426. r := jlexer.Lexer{Data: data}
  3427. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork28(&r, v)
  3428. return r.Error()
  3429. }
  3430. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3431. func (v *RequestPattern) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3432. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork28(l, v)
  3433. }
  3434. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork29(in *jlexer.Lexer, out *Request) {
  3435. isTopLevel := in.IsStart()
  3436. if in.IsNull() {
  3437. if isTopLevel {
  3438. in.Consumed()
  3439. }
  3440. in.Skip()
  3441. return
  3442. }
  3443. in.Delim('{')
  3444. for !in.IsDelim('}') {
  3445. key := in.UnsafeFieldName(false)
  3446. in.WantColon()
  3447. if in.IsNull() {
  3448. in.Skip()
  3449. in.WantComma()
  3450. continue
  3451. }
  3452. switch key {
  3453. case "url":
  3454. out.URL = string(in.String())
  3455. case "urlFragment":
  3456. out.URLFragment = string(in.String())
  3457. case "method":
  3458. out.Method = string(in.String())
  3459. case "headers":
  3460. if in.IsNull() {
  3461. in.Skip()
  3462. } else {
  3463. in.Delim('{')
  3464. out.Headers = make(Headers)
  3465. for !in.IsDelim('}') {
  3466. key := string(in.String())
  3467. in.WantColon()
  3468. var v48 interface{}
  3469. if m, ok := v48.(easyjson.Unmarshaler); ok {
  3470. m.UnmarshalEasyJSON(in)
  3471. } else if m, ok := v48.(json.Unmarshaler); ok {
  3472. _ = m.UnmarshalJSON(in.Raw())
  3473. } else {
  3474. v48 = in.Interface()
  3475. }
  3476. (out.Headers)[key] = v48
  3477. in.WantComma()
  3478. }
  3479. in.Delim('}')
  3480. }
  3481. case "hasPostData":
  3482. out.HasPostData = bool(in.Bool())
  3483. case "postDataEntries":
  3484. if in.IsNull() {
  3485. in.Skip()
  3486. out.PostDataEntries = nil
  3487. } else {
  3488. in.Delim('[')
  3489. if out.PostDataEntries == nil {
  3490. if !in.IsDelim(']') {
  3491. out.PostDataEntries = make([]*PostDataEntry, 0, 8)
  3492. } else {
  3493. out.PostDataEntries = []*PostDataEntry{}
  3494. }
  3495. } else {
  3496. out.PostDataEntries = (out.PostDataEntries)[:0]
  3497. }
  3498. for !in.IsDelim(']') {
  3499. var v49 *PostDataEntry
  3500. if in.IsNull() {
  3501. in.Skip()
  3502. v49 = nil
  3503. } else {
  3504. if v49 == nil {
  3505. v49 = new(PostDataEntry)
  3506. }
  3507. (*v49).UnmarshalEasyJSON(in)
  3508. }
  3509. out.PostDataEntries = append(out.PostDataEntries, v49)
  3510. in.WantComma()
  3511. }
  3512. in.Delim(']')
  3513. }
  3514. case "mixedContentType":
  3515. (out.MixedContentType).UnmarshalEasyJSON(in)
  3516. case "initialPriority":
  3517. (out.InitialPriority).UnmarshalEasyJSON(in)
  3518. case "referrerPolicy":
  3519. (out.ReferrerPolicy).UnmarshalEasyJSON(in)
  3520. case "isLinkPreload":
  3521. out.IsLinkPreload = bool(in.Bool())
  3522. case "trustTokenParams":
  3523. if in.IsNull() {
  3524. in.Skip()
  3525. out.TrustTokenParams = nil
  3526. } else {
  3527. if out.TrustTokenParams == nil {
  3528. out.TrustTokenParams = new(TrustTokenParams)
  3529. }
  3530. (*out.TrustTokenParams).UnmarshalEasyJSON(in)
  3531. }
  3532. case "isSameSite":
  3533. out.IsSameSite = bool(in.Bool())
  3534. default:
  3535. in.SkipRecursive()
  3536. }
  3537. in.WantComma()
  3538. }
  3539. in.Delim('}')
  3540. if isTopLevel {
  3541. in.Consumed()
  3542. }
  3543. }
  3544. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork29(out *jwriter.Writer, in Request) {
  3545. out.RawByte('{')
  3546. first := true
  3547. _ = first
  3548. {
  3549. const prefix string = ",\"url\":"
  3550. out.RawString(prefix[1:])
  3551. out.String(string(in.URL))
  3552. }
  3553. if in.URLFragment != "" {
  3554. const prefix string = ",\"urlFragment\":"
  3555. out.RawString(prefix)
  3556. out.String(string(in.URLFragment))
  3557. }
  3558. {
  3559. const prefix string = ",\"method\":"
  3560. out.RawString(prefix)
  3561. out.String(string(in.Method))
  3562. }
  3563. {
  3564. const prefix string = ",\"headers\":"
  3565. out.RawString(prefix)
  3566. if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  3567. out.RawString(`null`)
  3568. } else {
  3569. out.RawByte('{')
  3570. v50First := true
  3571. for v50Name, v50Value := range in.Headers {
  3572. if v50First {
  3573. v50First = false
  3574. } else {
  3575. out.RawByte(',')
  3576. }
  3577. out.String(string(v50Name))
  3578. out.RawByte(':')
  3579. if m, ok := v50Value.(easyjson.Marshaler); ok {
  3580. m.MarshalEasyJSON(out)
  3581. } else if m, ok := v50Value.(json.Marshaler); ok {
  3582. out.Raw(m.MarshalJSON())
  3583. } else {
  3584. out.Raw(json.Marshal(v50Value))
  3585. }
  3586. }
  3587. out.RawByte('}')
  3588. }
  3589. }
  3590. if in.HasPostData {
  3591. const prefix string = ",\"hasPostData\":"
  3592. out.RawString(prefix)
  3593. out.Bool(bool(in.HasPostData))
  3594. }
  3595. if len(in.PostDataEntries) != 0 {
  3596. const prefix string = ",\"postDataEntries\":"
  3597. out.RawString(prefix)
  3598. {
  3599. out.RawByte('[')
  3600. for v51, v52 := range in.PostDataEntries {
  3601. if v51 > 0 {
  3602. out.RawByte(',')
  3603. }
  3604. if v52 == nil {
  3605. out.RawString("null")
  3606. } else {
  3607. (*v52).MarshalEasyJSON(out)
  3608. }
  3609. }
  3610. out.RawByte(']')
  3611. }
  3612. }
  3613. if in.MixedContentType != "" {
  3614. const prefix string = ",\"mixedContentType\":"
  3615. out.RawString(prefix)
  3616. (in.MixedContentType).MarshalEasyJSON(out)
  3617. }
  3618. {
  3619. const prefix string = ",\"initialPriority\":"
  3620. out.RawString(prefix)
  3621. (in.InitialPriority).MarshalEasyJSON(out)
  3622. }
  3623. {
  3624. const prefix string = ",\"referrerPolicy\":"
  3625. out.RawString(prefix)
  3626. (in.ReferrerPolicy).MarshalEasyJSON(out)
  3627. }
  3628. if in.IsLinkPreload {
  3629. const prefix string = ",\"isLinkPreload\":"
  3630. out.RawString(prefix)
  3631. out.Bool(bool(in.IsLinkPreload))
  3632. }
  3633. if in.TrustTokenParams != nil {
  3634. const prefix string = ",\"trustTokenParams\":"
  3635. out.RawString(prefix)
  3636. (*in.TrustTokenParams).MarshalEasyJSON(out)
  3637. }
  3638. if in.IsSameSite {
  3639. const prefix string = ",\"isSameSite\":"
  3640. out.RawString(prefix)
  3641. out.Bool(bool(in.IsSameSite))
  3642. }
  3643. out.RawByte('}')
  3644. }
  3645. // MarshalJSON supports json.Marshaler interface
  3646. func (v Request) MarshalJSON() ([]byte, error) {
  3647. w := jwriter.Writer{}
  3648. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork29(&w, v)
  3649. return w.Buffer.BuildBytes(), w.Error
  3650. }
  3651. // MarshalEasyJSON supports easyjson.Marshaler interface
  3652. func (v Request) MarshalEasyJSON(w *jwriter.Writer) {
  3653. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork29(w, v)
  3654. }
  3655. // UnmarshalJSON supports json.Unmarshaler interface
  3656. func (v *Request) UnmarshalJSON(data []byte) error {
  3657. r := jlexer.Lexer{Data: data}
  3658. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork29(&r, v)
  3659. return r.Error()
  3660. }
  3661. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3662. func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3663. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork29(l, v)
  3664. }
  3665. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork30(in *jlexer.Lexer, out *ReportingAPIReport) {
  3666. isTopLevel := in.IsStart()
  3667. if in.IsNull() {
  3668. if isTopLevel {
  3669. in.Consumed()
  3670. }
  3671. in.Skip()
  3672. return
  3673. }
  3674. in.Delim('{')
  3675. for !in.IsDelim('}') {
  3676. key := in.UnsafeFieldName(false)
  3677. in.WantColon()
  3678. if in.IsNull() {
  3679. in.Skip()
  3680. in.WantComma()
  3681. continue
  3682. }
  3683. switch key {
  3684. case "id":
  3685. out.ID = ReportID(in.String())
  3686. case "initiatorUrl":
  3687. out.InitiatorURL = string(in.String())
  3688. case "destination":
  3689. out.Destination = string(in.String())
  3690. case "type":
  3691. out.Type = string(in.String())
  3692. case "timestamp":
  3693. if in.IsNull() {
  3694. in.Skip()
  3695. out.Timestamp = nil
  3696. } else {
  3697. if out.Timestamp == nil {
  3698. out.Timestamp = new(cdp.TimeSinceEpoch)
  3699. }
  3700. (*out.Timestamp).UnmarshalEasyJSON(in)
  3701. }
  3702. case "depth":
  3703. out.Depth = int64(in.Int64())
  3704. case "completedAttempts":
  3705. out.CompletedAttempts = int64(in.Int64())
  3706. case "body":
  3707. (out.Body).UnmarshalEasyJSON(in)
  3708. case "status":
  3709. (out.Status).UnmarshalEasyJSON(in)
  3710. default:
  3711. in.SkipRecursive()
  3712. }
  3713. in.WantComma()
  3714. }
  3715. in.Delim('}')
  3716. if isTopLevel {
  3717. in.Consumed()
  3718. }
  3719. }
  3720. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork30(out *jwriter.Writer, in ReportingAPIReport) {
  3721. out.RawByte('{')
  3722. first := true
  3723. _ = first
  3724. {
  3725. const prefix string = ",\"id\":"
  3726. out.RawString(prefix[1:])
  3727. out.String(string(in.ID))
  3728. }
  3729. {
  3730. const prefix string = ",\"initiatorUrl\":"
  3731. out.RawString(prefix)
  3732. out.String(string(in.InitiatorURL))
  3733. }
  3734. {
  3735. const prefix string = ",\"destination\":"
  3736. out.RawString(prefix)
  3737. out.String(string(in.Destination))
  3738. }
  3739. {
  3740. const prefix string = ",\"type\":"
  3741. out.RawString(prefix)
  3742. out.String(string(in.Type))
  3743. }
  3744. {
  3745. const prefix string = ",\"timestamp\":"
  3746. out.RawString(prefix)
  3747. if in.Timestamp == nil {
  3748. out.RawString("null")
  3749. } else {
  3750. (*in.Timestamp).MarshalEasyJSON(out)
  3751. }
  3752. }
  3753. {
  3754. const prefix string = ",\"depth\":"
  3755. out.RawString(prefix)
  3756. out.Int64(int64(in.Depth))
  3757. }
  3758. {
  3759. const prefix string = ",\"completedAttempts\":"
  3760. out.RawString(prefix)
  3761. out.Int64(int64(in.CompletedAttempts))
  3762. }
  3763. {
  3764. const prefix string = ",\"body\":"
  3765. out.RawString(prefix)
  3766. (in.Body).MarshalEasyJSON(out)
  3767. }
  3768. {
  3769. const prefix string = ",\"status\":"
  3770. out.RawString(prefix)
  3771. (in.Status).MarshalEasyJSON(out)
  3772. }
  3773. out.RawByte('}')
  3774. }
  3775. // MarshalJSON supports json.Marshaler interface
  3776. func (v ReportingAPIReport) MarshalJSON() ([]byte, error) {
  3777. w := jwriter.Writer{}
  3778. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork30(&w, v)
  3779. return w.Buffer.BuildBytes(), w.Error
  3780. }
  3781. // MarshalEasyJSON supports easyjson.Marshaler interface
  3782. func (v ReportingAPIReport) MarshalEasyJSON(w *jwriter.Writer) {
  3783. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork30(w, v)
  3784. }
  3785. // UnmarshalJSON supports json.Unmarshaler interface
  3786. func (v *ReportingAPIReport) UnmarshalJSON(data []byte) error {
  3787. r := jlexer.Lexer{Data: data}
  3788. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork30(&r, v)
  3789. return r.Error()
  3790. }
  3791. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3792. func (v *ReportingAPIReport) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3793. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork30(l, v)
  3794. }
  3795. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork31(in *jlexer.Lexer, out *ReportingAPIEndpoint) {
  3796. isTopLevel := in.IsStart()
  3797. if in.IsNull() {
  3798. if isTopLevel {
  3799. in.Consumed()
  3800. }
  3801. in.Skip()
  3802. return
  3803. }
  3804. in.Delim('{')
  3805. for !in.IsDelim('}') {
  3806. key := in.UnsafeFieldName(false)
  3807. in.WantColon()
  3808. if in.IsNull() {
  3809. in.Skip()
  3810. in.WantComma()
  3811. continue
  3812. }
  3813. switch key {
  3814. case "url":
  3815. out.URL = string(in.String())
  3816. case "groupName":
  3817. out.GroupName = string(in.String())
  3818. default:
  3819. in.SkipRecursive()
  3820. }
  3821. in.WantComma()
  3822. }
  3823. in.Delim('}')
  3824. if isTopLevel {
  3825. in.Consumed()
  3826. }
  3827. }
  3828. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork31(out *jwriter.Writer, in ReportingAPIEndpoint) {
  3829. out.RawByte('{')
  3830. first := true
  3831. _ = first
  3832. {
  3833. const prefix string = ",\"url\":"
  3834. out.RawString(prefix[1:])
  3835. out.String(string(in.URL))
  3836. }
  3837. {
  3838. const prefix string = ",\"groupName\":"
  3839. out.RawString(prefix)
  3840. out.String(string(in.GroupName))
  3841. }
  3842. out.RawByte('}')
  3843. }
  3844. // MarshalJSON supports json.Marshaler interface
  3845. func (v ReportingAPIEndpoint) MarshalJSON() ([]byte, error) {
  3846. w := jwriter.Writer{}
  3847. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork31(&w, v)
  3848. return w.Buffer.BuildBytes(), w.Error
  3849. }
  3850. // MarshalEasyJSON supports easyjson.Marshaler interface
  3851. func (v ReportingAPIEndpoint) MarshalEasyJSON(w *jwriter.Writer) {
  3852. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork31(w, v)
  3853. }
  3854. // UnmarshalJSON supports json.Unmarshaler interface
  3855. func (v *ReportingAPIEndpoint) UnmarshalJSON(data []byte) error {
  3856. r := jlexer.Lexer{Data: data}
  3857. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork31(&r, v)
  3858. return r.Error()
  3859. }
  3860. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3861. func (v *ReportingAPIEndpoint) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3862. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork31(l, v)
  3863. }
  3864. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork32(in *jlexer.Lexer, out *ReplayXHRParams) {
  3865. isTopLevel := in.IsStart()
  3866. if in.IsNull() {
  3867. if isTopLevel {
  3868. in.Consumed()
  3869. }
  3870. in.Skip()
  3871. return
  3872. }
  3873. in.Delim('{')
  3874. for !in.IsDelim('}') {
  3875. key := in.UnsafeFieldName(false)
  3876. in.WantColon()
  3877. if in.IsNull() {
  3878. in.Skip()
  3879. in.WantComma()
  3880. continue
  3881. }
  3882. switch key {
  3883. case "requestId":
  3884. out.RequestID = RequestID(in.String())
  3885. default:
  3886. in.SkipRecursive()
  3887. }
  3888. in.WantComma()
  3889. }
  3890. in.Delim('}')
  3891. if isTopLevel {
  3892. in.Consumed()
  3893. }
  3894. }
  3895. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork32(out *jwriter.Writer, in ReplayXHRParams) {
  3896. out.RawByte('{')
  3897. first := true
  3898. _ = first
  3899. {
  3900. const prefix string = ",\"requestId\":"
  3901. out.RawString(prefix[1:])
  3902. out.String(string(in.RequestID))
  3903. }
  3904. out.RawByte('}')
  3905. }
  3906. // MarshalJSON supports json.Marshaler interface
  3907. func (v ReplayXHRParams) MarshalJSON() ([]byte, error) {
  3908. w := jwriter.Writer{}
  3909. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork32(&w, v)
  3910. return w.Buffer.BuildBytes(), w.Error
  3911. }
  3912. // MarshalEasyJSON supports easyjson.Marshaler interface
  3913. func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) {
  3914. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork32(w, v)
  3915. }
  3916. // UnmarshalJSON supports json.Unmarshaler interface
  3917. func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error {
  3918. r := jlexer.Lexer{Data: data}
  3919. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork32(&r, v)
  3920. return r.Error()
  3921. }
  3922. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3923. func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3924. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork32(l, v)
  3925. }
  3926. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork33(in *jlexer.Lexer, out *PostDataEntry) {
  3927. isTopLevel := in.IsStart()
  3928. if in.IsNull() {
  3929. if isTopLevel {
  3930. in.Consumed()
  3931. }
  3932. in.Skip()
  3933. return
  3934. }
  3935. in.Delim('{')
  3936. for !in.IsDelim('}') {
  3937. key := in.UnsafeFieldName(false)
  3938. in.WantColon()
  3939. if in.IsNull() {
  3940. in.Skip()
  3941. in.WantComma()
  3942. continue
  3943. }
  3944. switch key {
  3945. case "bytes":
  3946. out.Bytes = string(in.String())
  3947. default:
  3948. in.SkipRecursive()
  3949. }
  3950. in.WantComma()
  3951. }
  3952. in.Delim('}')
  3953. if isTopLevel {
  3954. in.Consumed()
  3955. }
  3956. }
  3957. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork33(out *jwriter.Writer, in PostDataEntry) {
  3958. out.RawByte('{')
  3959. first := true
  3960. _ = first
  3961. if in.Bytes != "" {
  3962. const prefix string = ",\"bytes\":"
  3963. first = false
  3964. out.RawString(prefix[1:])
  3965. out.String(string(in.Bytes))
  3966. }
  3967. out.RawByte('}')
  3968. }
  3969. // MarshalJSON supports json.Marshaler interface
  3970. func (v PostDataEntry) MarshalJSON() ([]byte, error) {
  3971. w := jwriter.Writer{}
  3972. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork33(&w, v)
  3973. return w.Buffer.BuildBytes(), w.Error
  3974. }
  3975. // MarshalEasyJSON supports easyjson.Marshaler interface
  3976. func (v PostDataEntry) MarshalEasyJSON(w *jwriter.Writer) {
  3977. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork33(w, v)
  3978. }
  3979. // UnmarshalJSON supports json.Unmarshaler interface
  3980. func (v *PostDataEntry) UnmarshalJSON(data []byte) error {
  3981. r := jlexer.Lexer{Data: data}
  3982. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork33(&r, v)
  3983. return r.Error()
  3984. }
  3985. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3986. func (v *PostDataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3987. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork33(l, v)
  3988. }
  3989. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork34(in *jlexer.Lexer, out *LoadNetworkResourceReturns) {
  3990. isTopLevel := in.IsStart()
  3991. if in.IsNull() {
  3992. if isTopLevel {
  3993. in.Consumed()
  3994. }
  3995. in.Skip()
  3996. return
  3997. }
  3998. in.Delim('{')
  3999. for !in.IsDelim('}') {
  4000. key := in.UnsafeFieldName(false)
  4001. in.WantColon()
  4002. if in.IsNull() {
  4003. in.Skip()
  4004. in.WantComma()
  4005. continue
  4006. }
  4007. switch key {
  4008. case "resource":
  4009. if in.IsNull() {
  4010. in.Skip()
  4011. out.Resource = nil
  4012. } else {
  4013. if out.Resource == nil {
  4014. out.Resource = new(LoadNetworkResourcePageResult)
  4015. }
  4016. (*out.Resource).UnmarshalEasyJSON(in)
  4017. }
  4018. default:
  4019. in.SkipRecursive()
  4020. }
  4021. in.WantComma()
  4022. }
  4023. in.Delim('}')
  4024. if isTopLevel {
  4025. in.Consumed()
  4026. }
  4027. }
  4028. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork34(out *jwriter.Writer, in LoadNetworkResourceReturns) {
  4029. out.RawByte('{')
  4030. first := true
  4031. _ = first
  4032. if in.Resource != nil {
  4033. const prefix string = ",\"resource\":"
  4034. first = false
  4035. out.RawString(prefix[1:])
  4036. (*in.Resource).MarshalEasyJSON(out)
  4037. }
  4038. out.RawByte('}')
  4039. }
  4040. // MarshalJSON supports json.Marshaler interface
  4041. func (v LoadNetworkResourceReturns) MarshalJSON() ([]byte, error) {
  4042. w := jwriter.Writer{}
  4043. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork34(&w, v)
  4044. return w.Buffer.BuildBytes(), w.Error
  4045. }
  4046. // MarshalEasyJSON supports easyjson.Marshaler interface
  4047. func (v LoadNetworkResourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4048. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork34(w, v)
  4049. }
  4050. // UnmarshalJSON supports json.Unmarshaler interface
  4051. func (v *LoadNetworkResourceReturns) UnmarshalJSON(data []byte) error {
  4052. r := jlexer.Lexer{Data: data}
  4053. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork34(&r, v)
  4054. return r.Error()
  4055. }
  4056. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4057. func (v *LoadNetworkResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4058. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork34(l, v)
  4059. }
  4060. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork35(in *jlexer.Lexer, out *LoadNetworkResourceParams) {
  4061. isTopLevel := in.IsStart()
  4062. if in.IsNull() {
  4063. if isTopLevel {
  4064. in.Consumed()
  4065. }
  4066. in.Skip()
  4067. return
  4068. }
  4069. in.Delim('{')
  4070. for !in.IsDelim('}') {
  4071. key := in.UnsafeFieldName(false)
  4072. in.WantColon()
  4073. if in.IsNull() {
  4074. in.Skip()
  4075. in.WantComma()
  4076. continue
  4077. }
  4078. switch key {
  4079. case "frameId":
  4080. (out.FrameID).UnmarshalEasyJSON(in)
  4081. case "url":
  4082. out.URL = string(in.String())
  4083. case "options":
  4084. if in.IsNull() {
  4085. in.Skip()
  4086. out.Options = nil
  4087. } else {
  4088. if out.Options == nil {
  4089. out.Options = new(LoadNetworkResourceOptions)
  4090. }
  4091. (*out.Options).UnmarshalEasyJSON(in)
  4092. }
  4093. default:
  4094. in.SkipRecursive()
  4095. }
  4096. in.WantComma()
  4097. }
  4098. in.Delim('}')
  4099. if isTopLevel {
  4100. in.Consumed()
  4101. }
  4102. }
  4103. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork35(out *jwriter.Writer, in LoadNetworkResourceParams) {
  4104. out.RawByte('{')
  4105. first := true
  4106. _ = first
  4107. if in.FrameID != "" {
  4108. const prefix string = ",\"frameId\":"
  4109. first = false
  4110. out.RawString(prefix[1:])
  4111. out.String(string(in.FrameID))
  4112. }
  4113. {
  4114. const prefix string = ",\"url\":"
  4115. if first {
  4116. first = false
  4117. out.RawString(prefix[1:])
  4118. } else {
  4119. out.RawString(prefix)
  4120. }
  4121. out.String(string(in.URL))
  4122. }
  4123. {
  4124. const prefix string = ",\"options\":"
  4125. out.RawString(prefix)
  4126. if in.Options == nil {
  4127. out.RawString("null")
  4128. } else {
  4129. (*in.Options).MarshalEasyJSON(out)
  4130. }
  4131. }
  4132. out.RawByte('}')
  4133. }
  4134. // MarshalJSON supports json.Marshaler interface
  4135. func (v LoadNetworkResourceParams) MarshalJSON() ([]byte, error) {
  4136. w := jwriter.Writer{}
  4137. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork35(&w, v)
  4138. return w.Buffer.BuildBytes(), w.Error
  4139. }
  4140. // MarshalEasyJSON supports easyjson.Marshaler interface
  4141. func (v LoadNetworkResourceParams) MarshalEasyJSON(w *jwriter.Writer) {
  4142. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork35(w, v)
  4143. }
  4144. // UnmarshalJSON supports json.Unmarshaler interface
  4145. func (v *LoadNetworkResourceParams) UnmarshalJSON(data []byte) error {
  4146. r := jlexer.Lexer{Data: data}
  4147. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork35(&r, v)
  4148. return r.Error()
  4149. }
  4150. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4151. func (v *LoadNetworkResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4152. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork35(l, v)
  4153. }
  4154. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork36(in *jlexer.Lexer, out *LoadNetworkResourcePageResult) {
  4155. isTopLevel := in.IsStart()
  4156. if in.IsNull() {
  4157. if isTopLevel {
  4158. in.Consumed()
  4159. }
  4160. in.Skip()
  4161. return
  4162. }
  4163. in.Delim('{')
  4164. for !in.IsDelim('}') {
  4165. key := in.UnsafeFieldName(false)
  4166. in.WantColon()
  4167. if in.IsNull() {
  4168. in.Skip()
  4169. in.WantComma()
  4170. continue
  4171. }
  4172. switch key {
  4173. case "success":
  4174. out.Success = bool(in.Bool())
  4175. case "netError":
  4176. out.NetError = float64(in.Float64())
  4177. case "netErrorName":
  4178. out.NetErrorName = string(in.String())
  4179. case "httpStatusCode":
  4180. out.HTTPStatusCode = float64(in.Float64())
  4181. case "stream":
  4182. out.Stream = io.StreamHandle(in.String())
  4183. case "headers":
  4184. if in.IsNull() {
  4185. in.Skip()
  4186. } else {
  4187. in.Delim('{')
  4188. if !in.IsDelim('}') {
  4189. out.Headers = make(Headers)
  4190. } else {
  4191. out.Headers = nil
  4192. }
  4193. for !in.IsDelim('}') {
  4194. key := string(in.String())
  4195. in.WantColon()
  4196. var v53 interface{}
  4197. if m, ok := v53.(easyjson.Unmarshaler); ok {
  4198. m.UnmarshalEasyJSON(in)
  4199. } else if m, ok := v53.(json.Unmarshaler); ok {
  4200. _ = m.UnmarshalJSON(in.Raw())
  4201. } else {
  4202. v53 = in.Interface()
  4203. }
  4204. (out.Headers)[key] = v53
  4205. in.WantComma()
  4206. }
  4207. in.Delim('}')
  4208. }
  4209. default:
  4210. in.SkipRecursive()
  4211. }
  4212. in.WantComma()
  4213. }
  4214. in.Delim('}')
  4215. if isTopLevel {
  4216. in.Consumed()
  4217. }
  4218. }
  4219. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork36(out *jwriter.Writer, in LoadNetworkResourcePageResult) {
  4220. out.RawByte('{')
  4221. first := true
  4222. _ = first
  4223. {
  4224. const prefix string = ",\"success\":"
  4225. out.RawString(prefix[1:])
  4226. out.Bool(bool(in.Success))
  4227. }
  4228. if in.NetError != 0 {
  4229. const prefix string = ",\"netError\":"
  4230. out.RawString(prefix)
  4231. out.Float64(float64(in.NetError))
  4232. }
  4233. if in.NetErrorName != "" {
  4234. const prefix string = ",\"netErrorName\":"
  4235. out.RawString(prefix)
  4236. out.String(string(in.NetErrorName))
  4237. }
  4238. if in.HTTPStatusCode != 0 {
  4239. const prefix string = ",\"httpStatusCode\":"
  4240. out.RawString(prefix)
  4241. out.Float64(float64(in.HTTPStatusCode))
  4242. }
  4243. if in.Stream != "" {
  4244. const prefix string = ",\"stream\":"
  4245. out.RawString(prefix)
  4246. out.String(string(in.Stream))
  4247. }
  4248. if len(in.Headers) != 0 {
  4249. const prefix string = ",\"headers\":"
  4250. out.RawString(prefix)
  4251. {
  4252. out.RawByte('{')
  4253. v54First := true
  4254. for v54Name, v54Value := range in.Headers {
  4255. if v54First {
  4256. v54First = false
  4257. } else {
  4258. out.RawByte(',')
  4259. }
  4260. out.String(string(v54Name))
  4261. out.RawByte(':')
  4262. if m, ok := v54Value.(easyjson.Marshaler); ok {
  4263. m.MarshalEasyJSON(out)
  4264. } else if m, ok := v54Value.(json.Marshaler); ok {
  4265. out.Raw(m.MarshalJSON())
  4266. } else {
  4267. out.Raw(json.Marshal(v54Value))
  4268. }
  4269. }
  4270. out.RawByte('}')
  4271. }
  4272. }
  4273. out.RawByte('}')
  4274. }
  4275. // MarshalJSON supports json.Marshaler interface
  4276. func (v LoadNetworkResourcePageResult) MarshalJSON() ([]byte, error) {
  4277. w := jwriter.Writer{}
  4278. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork36(&w, v)
  4279. return w.Buffer.BuildBytes(), w.Error
  4280. }
  4281. // MarshalEasyJSON supports easyjson.Marshaler interface
  4282. func (v LoadNetworkResourcePageResult) MarshalEasyJSON(w *jwriter.Writer) {
  4283. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork36(w, v)
  4284. }
  4285. // UnmarshalJSON supports json.Unmarshaler interface
  4286. func (v *LoadNetworkResourcePageResult) UnmarshalJSON(data []byte) error {
  4287. r := jlexer.Lexer{Data: data}
  4288. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork36(&r, v)
  4289. return r.Error()
  4290. }
  4291. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4292. func (v *LoadNetworkResourcePageResult) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4293. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork36(l, v)
  4294. }
  4295. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork37(in *jlexer.Lexer, out *LoadNetworkResourceOptions) {
  4296. isTopLevel := in.IsStart()
  4297. if in.IsNull() {
  4298. if isTopLevel {
  4299. in.Consumed()
  4300. }
  4301. in.Skip()
  4302. return
  4303. }
  4304. in.Delim('{')
  4305. for !in.IsDelim('}') {
  4306. key := in.UnsafeFieldName(false)
  4307. in.WantColon()
  4308. if in.IsNull() {
  4309. in.Skip()
  4310. in.WantComma()
  4311. continue
  4312. }
  4313. switch key {
  4314. case "disableCache":
  4315. out.DisableCache = bool(in.Bool())
  4316. case "includeCredentials":
  4317. out.IncludeCredentials = bool(in.Bool())
  4318. default:
  4319. in.SkipRecursive()
  4320. }
  4321. in.WantComma()
  4322. }
  4323. in.Delim('}')
  4324. if isTopLevel {
  4325. in.Consumed()
  4326. }
  4327. }
  4328. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork37(out *jwriter.Writer, in LoadNetworkResourceOptions) {
  4329. out.RawByte('{')
  4330. first := true
  4331. _ = first
  4332. {
  4333. const prefix string = ",\"disableCache\":"
  4334. out.RawString(prefix[1:])
  4335. out.Bool(bool(in.DisableCache))
  4336. }
  4337. {
  4338. const prefix string = ",\"includeCredentials\":"
  4339. out.RawString(prefix)
  4340. out.Bool(bool(in.IncludeCredentials))
  4341. }
  4342. out.RawByte('}')
  4343. }
  4344. // MarshalJSON supports json.Marshaler interface
  4345. func (v LoadNetworkResourceOptions) MarshalJSON() ([]byte, error) {
  4346. w := jwriter.Writer{}
  4347. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork37(&w, v)
  4348. return w.Buffer.BuildBytes(), w.Error
  4349. }
  4350. // MarshalEasyJSON supports easyjson.Marshaler interface
  4351. func (v LoadNetworkResourceOptions) MarshalEasyJSON(w *jwriter.Writer) {
  4352. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork37(w, v)
  4353. }
  4354. // UnmarshalJSON supports json.Unmarshaler interface
  4355. func (v *LoadNetworkResourceOptions) UnmarshalJSON(data []byte) error {
  4356. r := jlexer.Lexer{Data: data}
  4357. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork37(&r, v)
  4358. return r.Error()
  4359. }
  4360. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4361. func (v *LoadNetworkResourceOptions) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4362. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork37(l, v)
  4363. }
  4364. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork38(in *jlexer.Lexer, out *Initiator) {
  4365. isTopLevel := in.IsStart()
  4366. if in.IsNull() {
  4367. if isTopLevel {
  4368. in.Consumed()
  4369. }
  4370. in.Skip()
  4371. return
  4372. }
  4373. in.Delim('{')
  4374. for !in.IsDelim('}') {
  4375. key := in.UnsafeFieldName(false)
  4376. in.WantColon()
  4377. if in.IsNull() {
  4378. in.Skip()
  4379. in.WantComma()
  4380. continue
  4381. }
  4382. switch key {
  4383. case "type":
  4384. (out.Type).UnmarshalEasyJSON(in)
  4385. case "stack":
  4386. if in.IsNull() {
  4387. in.Skip()
  4388. out.Stack = nil
  4389. } else {
  4390. if out.Stack == nil {
  4391. out.Stack = new(runtime.StackTrace)
  4392. }
  4393. (*out.Stack).UnmarshalEasyJSON(in)
  4394. }
  4395. case "url":
  4396. out.URL = string(in.String())
  4397. case "lineNumber":
  4398. out.LineNumber = float64(in.Float64())
  4399. case "columnNumber":
  4400. out.ColumnNumber = float64(in.Float64())
  4401. case "requestId":
  4402. out.RequestID = RequestID(in.String())
  4403. default:
  4404. in.SkipRecursive()
  4405. }
  4406. in.WantComma()
  4407. }
  4408. in.Delim('}')
  4409. if isTopLevel {
  4410. in.Consumed()
  4411. }
  4412. }
  4413. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork38(out *jwriter.Writer, in Initiator) {
  4414. out.RawByte('{')
  4415. first := true
  4416. _ = first
  4417. {
  4418. const prefix string = ",\"type\":"
  4419. out.RawString(prefix[1:])
  4420. (in.Type).MarshalEasyJSON(out)
  4421. }
  4422. if in.Stack != nil {
  4423. const prefix string = ",\"stack\":"
  4424. out.RawString(prefix)
  4425. (*in.Stack).MarshalEasyJSON(out)
  4426. }
  4427. if in.URL != "" {
  4428. const prefix string = ",\"url\":"
  4429. out.RawString(prefix)
  4430. out.String(string(in.URL))
  4431. }
  4432. if in.LineNumber != 0 {
  4433. const prefix string = ",\"lineNumber\":"
  4434. out.RawString(prefix)
  4435. out.Float64(float64(in.LineNumber))
  4436. }
  4437. if in.ColumnNumber != 0 {
  4438. const prefix string = ",\"columnNumber\":"
  4439. out.RawString(prefix)
  4440. out.Float64(float64(in.ColumnNumber))
  4441. }
  4442. if in.RequestID != "" {
  4443. const prefix string = ",\"requestId\":"
  4444. out.RawString(prefix)
  4445. out.String(string(in.RequestID))
  4446. }
  4447. out.RawByte('}')
  4448. }
  4449. // MarshalJSON supports json.Marshaler interface
  4450. func (v Initiator) MarshalJSON() ([]byte, error) {
  4451. w := jwriter.Writer{}
  4452. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork38(&w, v)
  4453. return w.Buffer.BuildBytes(), w.Error
  4454. }
  4455. // MarshalEasyJSON supports easyjson.Marshaler interface
  4456. func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) {
  4457. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork38(w, v)
  4458. }
  4459. // UnmarshalJSON supports json.Unmarshaler interface
  4460. func (v *Initiator) UnmarshalJSON(data []byte) error {
  4461. r := jlexer.Lexer{Data: data}
  4462. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork38(&r, v)
  4463. return r.Error()
  4464. }
  4465. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4466. func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4467. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork38(l, v)
  4468. }
  4469. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork39(in *jlexer.Lexer, out *GetSecurityIsolationStatusReturns) {
  4470. isTopLevel := in.IsStart()
  4471. if in.IsNull() {
  4472. if isTopLevel {
  4473. in.Consumed()
  4474. }
  4475. in.Skip()
  4476. return
  4477. }
  4478. in.Delim('{')
  4479. for !in.IsDelim('}') {
  4480. key := in.UnsafeFieldName(false)
  4481. in.WantColon()
  4482. if in.IsNull() {
  4483. in.Skip()
  4484. in.WantComma()
  4485. continue
  4486. }
  4487. switch key {
  4488. case "status":
  4489. if in.IsNull() {
  4490. in.Skip()
  4491. out.Status = nil
  4492. } else {
  4493. if out.Status == nil {
  4494. out.Status = new(SecurityIsolationStatus)
  4495. }
  4496. (*out.Status).UnmarshalEasyJSON(in)
  4497. }
  4498. default:
  4499. in.SkipRecursive()
  4500. }
  4501. in.WantComma()
  4502. }
  4503. in.Delim('}')
  4504. if isTopLevel {
  4505. in.Consumed()
  4506. }
  4507. }
  4508. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork39(out *jwriter.Writer, in GetSecurityIsolationStatusReturns) {
  4509. out.RawByte('{')
  4510. first := true
  4511. _ = first
  4512. if in.Status != nil {
  4513. const prefix string = ",\"status\":"
  4514. first = false
  4515. out.RawString(prefix[1:])
  4516. (*in.Status).MarshalEasyJSON(out)
  4517. }
  4518. out.RawByte('}')
  4519. }
  4520. // MarshalJSON supports json.Marshaler interface
  4521. func (v GetSecurityIsolationStatusReturns) MarshalJSON() ([]byte, error) {
  4522. w := jwriter.Writer{}
  4523. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork39(&w, v)
  4524. return w.Buffer.BuildBytes(), w.Error
  4525. }
  4526. // MarshalEasyJSON supports easyjson.Marshaler interface
  4527. func (v GetSecurityIsolationStatusReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4528. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork39(w, v)
  4529. }
  4530. // UnmarshalJSON supports json.Unmarshaler interface
  4531. func (v *GetSecurityIsolationStatusReturns) UnmarshalJSON(data []byte) error {
  4532. r := jlexer.Lexer{Data: data}
  4533. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork39(&r, v)
  4534. return r.Error()
  4535. }
  4536. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4537. func (v *GetSecurityIsolationStatusReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4538. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork39(l, v)
  4539. }
  4540. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork40(in *jlexer.Lexer, out *GetSecurityIsolationStatusParams) {
  4541. isTopLevel := in.IsStart()
  4542. if in.IsNull() {
  4543. if isTopLevel {
  4544. in.Consumed()
  4545. }
  4546. in.Skip()
  4547. return
  4548. }
  4549. in.Delim('{')
  4550. for !in.IsDelim('}') {
  4551. key := in.UnsafeFieldName(false)
  4552. in.WantColon()
  4553. if in.IsNull() {
  4554. in.Skip()
  4555. in.WantComma()
  4556. continue
  4557. }
  4558. switch key {
  4559. case "frameId":
  4560. (out.FrameID).UnmarshalEasyJSON(in)
  4561. default:
  4562. in.SkipRecursive()
  4563. }
  4564. in.WantComma()
  4565. }
  4566. in.Delim('}')
  4567. if isTopLevel {
  4568. in.Consumed()
  4569. }
  4570. }
  4571. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork40(out *jwriter.Writer, in GetSecurityIsolationStatusParams) {
  4572. out.RawByte('{')
  4573. first := true
  4574. _ = first
  4575. if in.FrameID != "" {
  4576. const prefix string = ",\"frameId\":"
  4577. first = false
  4578. out.RawString(prefix[1:])
  4579. out.String(string(in.FrameID))
  4580. }
  4581. out.RawByte('}')
  4582. }
  4583. // MarshalJSON supports json.Marshaler interface
  4584. func (v GetSecurityIsolationStatusParams) MarshalJSON() ([]byte, error) {
  4585. w := jwriter.Writer{}
  4586. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork40(&w, v)
  4587. return w.Buffer.BuildBytes(), w.Error
  4588. }
  4589. // MarshalEasyJSON supports easyjson.Marshaler interface
  4590. func (v GetSecurityIsolationStatusParams) MarshalEasyJSON(w *jwriter.Writer) {
  4591. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork40(w, v)
  4592. }
  4593. // UnmarshalJSON supports json.Unmarshaler interface
  4594. func (v *GetSecurityIsolationStatusParams) UnmarshalJSON(data []byte) error {
  4595. r := jlexer.Lexer{Data: data}
  4596. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork40(&r, v)
  4597. return r.Error()
  4598. }
  4599. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4600. func (v *GetSecurityIsolationStatusParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4601. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork40(l, v)
  4602. }
  4603. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork41(in *jlexer.Lexer, out *GetResponseBodyReturns) {
  4604. isTopLevel := in.IsStart()
  4605. if in.IsNull() {
  4606. if isTopLevel {
  4607. in.Consumed()
  4608. }
  4609. in.Skip()
  4610. return
  4611. }
  4612. in.Delim('{')
  4613. for !in.IsDelim('}') {
  4614. key := in.UnsafeFieldName(false)
  4615. in.WantColon()
  4616. if in.IsNull() {
  4617. in.Skip()
  4618. in.WantComma()
  4619. continue
  4620. }
  4621. switch key {
  4622. case "body":
  4623. out.Body = string(in.String())
  4624. case "base64Encoded":
  4625. out.Base64encoded = bool(in.Bool())
  4626. default:
  4627. in.SkipRecursive()
  4628. }
  4629. in.WantComma()
  4630. }
  4631. in.Delim('}')
  4632. if isTopLevel {
  4633. in.Consumed()
  4634. }
  4635. }
  4636. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork41(out *jwriter.Writer, in GetResponseBodyReturns) {
  4637. out.RawByte('{')
  4638. first := true
  4639. _ = first
  4640. if in.Body != "" {
  4641. const prefix string = ",\"body\":"
  4642. first = false
  4643. out.RawString(prefix[1:])
  4644. out.String(string(in.Body))
  4645. }
  4646. if in.Base64encoded {
  4647. const prefix string = ",\"base64Encoded\":"
  4648. if first {
  4649. first = false
  4650. out.RawString(prefix[1:])
  4651. } else {
  4652. out.RawString(prefix)
  4653. }
  4654. out.Bool(bool(in.Base64encoded))
  4655. }
  4656. out.RawByte('}')
  4657. }
  4658. // MarshalJSON supports json.Marshaler interface
  4659. func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) {
  4660. w := jwriter.Writer{}
  4661. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork41(&w, v)
  4662. return w.Buffer.BuildBytes(), w.Error
  4663. }
  4664. // MarshalEasyJSON supports easyjson.Marshaler interface
  4665. func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4666. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork41(w, v)
  4667. }
  4668. // UnmarshalJSON supports json.Unmarshaler interface
  4669. func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error {
  4670. r := jlexer.Lexer{Data: data}
  4671. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork41(&r, v)
  4672. return r.Error()
  4673. }
  4674. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4675. func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4676. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork41(l, v)
  4677. }
  4678. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork42(in *jlexer.Lexer, out *GetResponseBodyParams) {
  4679. isTopLevel := in.IsStart()
  4680. if in.IsNull() {
  4681. if isTopLevel {
  4682. in.Consumed()
  4683. }
  4684. in.Skip()
  4685. return
  4686. }
  4687. in.Delim('{')
  4688. for !in.IsDelim('}') {
  4689. key := in.UnsafeFieldName(false)
  4690. in.WantColon()
  4691. if in.IsNull() {
  4692. in.Skip()
  4693. in.WantComma()
  4694. continue
  4695. }
  4696. switch key {
  4697. case "requestId":
  4698. out.RequestID = RequestID(in.String())
  4699. default:
  4700. in.SkipRecursive()
  4701. }
  4702. in.WantComma()
  4703. }
  4704. in.Delim('}')
  4705. if isTopLevel {
  4706. in.Consumed()
  4707. }
  4708. }
  4709. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork42(out *jwriter.Writer, in GetResponseBodyParams) {
  4710. out.RawByte('{')
  4711. first := true
  4712. _ = first
  4713. {
  4714. const prefix string = ",\"requestId\":"
  4715. out.RawString(prefix[1:])
  4716. out.String(string(in.RequestID))
  4717. }
  4718. out.RawByte('}')
  4719. }
  4720. // MarshalJSON supports json.Marshaler interface
  4721. func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) {
  4722. w := jwriter.Writer{}
  4723. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork42(&w, v)
  4724. return w.Buffer.BuildBytes(), w.Error
  4725. }
  4726. // MarshalEasyJSON supports easyjson.Marshaler interface
  4727. func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) {
  4728. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork42(w, v)
  4729. }
  4730. // UnmarshalJSON supports json.Unmarshaler interface
  4731. func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error {
  4732. r := jlexer.Lexer{Data: data}
  4733. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork42(&r, v)
  4734. return r.Error()
  4735. }
  4736. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4737. func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4738. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork42(l, v)
  4739. }
  4740. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork43(in *jlexer.Lexer, out *GetResponseBodyForInterceptionReturns) {
  4741. isTopLevel := in.IsStart()
  4742. if in.IsNull() {
  4743. if isTopLevel {
  4744. in.Consumed()
  4745. }
  4746. in.Skip()
  4747. return
  4748. }
  4749. in.Delim('{')
  4750. for !in.IsDelim('}') {
  4751. key := in.UnsafeFieldName(false)
  4752. in.WantColon()
  4753. if in.IsNull() {
  4754. in.Skip()
  4755. in.WantComma()
  4756. continue
  4757. }
  4758. switch key {
  4759. case "body":
  4760. out.Body = string(in.String())
  4761. case "base64Encoded":
  4762. out.Base64encoded = bool(in.Bool())
  4763. default:
  4764. in.SkipRecursive()
  4765. }
  4766. in.WantComma()
  4767. }
  4768. in.Delim('}')
  4769. if isTopLevel {
  4770. in.Consumed()
  4771. }
  4772. }
  4773. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork43(out *jwriter.Writer, in GetResponseBodyForInterceptionReturns) {
  4774. out.RawByte('{')
  4775. first := true
  4776. _ = first
  4777. if in.Body != "" {
  4778. const prefix string = ",\"body\":"
  4779. first = false
  4780. out.RawString(prefix[1:])
  4781. out.String(string(in.Body))
  4782. }
  4783. if in.Base64encoded {
  4784. const prefix string = ",\"base64Encoded\":"
  4785. if first {
  4786. first = false
  4787. out.RawString(prefix[1:])
  4788. } else {
  4789. out.RawString(prefix)
  4790. }
  4791. out.Bool(bool(in.Base64encoded))
  4792. }
  4793. out.RawByte('}')
  4794. }
  4795. // MarshalJSON supports json.Marshaler interface
  4796. func (v GetResponseBodyForInterceptionReturns) MarshalJSON() ([]byte, error) {
  4797. w := jwriter.Writer{}
  4798. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork43(&w, v)
  4799. return w.Buffer.BuildBytes(), w.Error
  4800. }
  4801. // MarshalEasyJSON supports easyjson.Marshaler interface
  4802. func (v GetResponseBodyForInterceptionReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4803. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork43(w, v)
  4804. }
  4805. // UnmarshalJSON supports json.Unmarshaler interface
  4806. func (v *GetResponseBodyForInterceptionReturns) UnmarshalJSON(data []byte) error {
  4807. r := jlexer.Lexer{Data: data}
  4808. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork43(&r, v)
  4809. return r.Error()
  4810. }
  4811. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4812. func (v *GetResponseBodyForInterceptionReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4813. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork43(l, v)
  4814. }
  4815. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork44(in *jlexer.Lexer, out *GetResponseBodyForInterceptionParams) {
  4816. isTopLevel := in.IsStart()
  4817. if in.IsNull() {
  4818. if isTopLevel {
  4819. in.Consumed()
  4820. }
  4821. in.Skip()
  4822. return
  4823. }
  4824. in.Delim('{')
  4825. for !in.IsDelim('}') {
  4826. key := in.UnsafeFieldName(false)
  4827. in.WantColon()
  4828. if in.IsNull() {
  4829. in.Skip()
  4830. in.WantComma()
  4831. continue
  4832. }
  4833. switch key {
  4834. case "interceptionId":
  4835. out.InterceptionID = InterceptionID(in.String())
  4836. default:
  4837. in.SkipRecursive()
  4838. }
  4839. in.WantComma()
  4840. }
  4841. in.Delim('}')
  4842. if isTopLevel {
  4843. in.Consumed()
  4844. }
  4845. }
  4846. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork44(out *jwriter.Writer, in GetResponseBodyForInterceptionParams) {
  4847. out.RawByte('{')
  4848. first := true
  4849. _ = first
  4850. {
  4851. const prefix string = ",\"interceptionId\":"
  4852. out.RawString(prefix[1:])
  4853. out.String(string(in.InterceptionID))
  4854. }
  4855. out.RawByte('}')
  4856. }
  4857. // MarshalJSON supports json.Marshaler interface
  4858. func (v GetResponseBodyForInterceptionParams) MarshalJSON() ([]byte, error) {
  4859. w := jwriter.Writer{}
  4860. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork44(&w, v)
  4861. return w.Buffer.BuildBytes(), w.Error
  4862. }
  4863. // MarshalEasyJSON supports easyjson.Marshaler interface
  4864. func (v GetResponseBodyForInterceptionParams) MarshalEasyJSON(w *jwriter.Writer) {
  4865. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork44(w, v)
  4866. }
  4867. // UnmarshalJSON supports json.Unmarshaler interface
  4868. func (v *GetResponseBodyForInterceptionParams) UnmarshalJSON(data []byte) error {
  4869. r := jlexer.Lexer{Data: data}
  4870. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork44(&r, v)
  4871. return r.Error()
  4872. }
  4873. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4874. func (v *GetResponseBodyForInterceptionParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4875. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork44(l, v)
  4876. }
  4877. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork45(in *jlexer.Lexer, out *GetRequestPostDataReturns) {
  4878. isTopLevel := in.IsStart()
  4879. if in.IsNull() {
  4880. if isTopLevel {
  4881. in.Consumed()
  4882. }
  4883. in.Skip()
  4884. return
  4885. }
  4886. in.Delim('{')
  4887. for !in.IsDelim('}') {
  4888. key := in.UnsafeFieldName(false)
  4889. in.WantColon()
  4890. if in.IsNull() {
  4891. in.Skip()
  4892. in.WantComma()
  4893. continue
  4894. }
  4895. switch key {
  4896. case "postData":
  4897. out.PostData = string(in.String())
  4898. default:
  4899. in.SkipRecursive()
  4900. }
  4901. in.WantComma()
  4902. }
  4903. in.Delim('}')
  4904. if isTopLevel {
  4905. in.Consumed()
  4906. }
  4907. }
  4908. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork45(out *jwriter.Writer, in GetRequestPostDataReturns) {
  4909. out.RawByte('{')
  4910. first := true
  4911. _ = first
  4912. if in.PostData != "" {
  4913. const prefix string = ",\"postData\":"
  4914. first = false
  4915. out.RawString(prefix[1:])
  4916. out.String(string(in.PostData))
  4917. }
  4918. out.RawByte('}')
  4919. }
  4920. // MarshalJSON supports json.Marshaler interface
  4921. func (v GetRequestPostDataReturns) MarshalJSON() ([]byte, error) {
  4922. w := jwriter.Writer{}
  4923. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork45(&w, v)
  4924. return w.Buffer.BuildBytes(), w.Error
  4925. }
  4926. // MarshalEasyJSON supports easyjson.Marshaler interface
  4927. func (v GetRequestPostDataReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4928. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork45(w, v)
  4929. }
  4930. // UnmarshalJSON supports json.Unmarshaler interface
  4931. func (v *GetRequestPostDataReturns) UnmarshalJSON(data []byte) error {
  4932. r := jlexer.Lexer{Data: data}
  4933. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork45(&r, v)
  4934. return r.Error()
  4935. }
  4936. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4937. func (v *GetRequestPostDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4938. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork45(l, v)
  4939. }
  4940. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork46(in *jlexer.Lexer, out *GetRequestPostDataParams) {
  4941. isTopLevel := in.IsStart()
  4942. if in.IsNull() {
  4943. if isTopLevel {
  4944. in.Consumed()
  4945. }
  4946. in.Skip()
  4947. return
  4948. }
  4949. in.Delim('{')
  4950. for !in.IsDelim('}') {
  4951. key := in.UnsafeFieldName(false)
  4952. in.WantColon()
  4953. if in.IsNull() {
  4954. in.Skip()
  4955. in.WantComma()
  4956. continue
  4957. }
  4958. switch key {
  4959. case "requestId":
  4960. out.RequestID = RequestID(in.String())
  4961. default:
  4962. in.SkipRecursive()
  4963. }
  4964. in.WantComma()
  4965. }
  4966. in.Delim('}')
  4967. if isTopLevel {
  4968. in.Consumed()
  4969. }
  4970. }
  4971. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork46(out *jwriter.Writer, in GetRequestPostDataParams) {
  4972. out.RawByte('{')
  4973. first := true
  4974. _ = first
  4975. {
  4976. const prefix string = ",\"requestId\":"
  4977. out.RawString(prefix[1:])
  4978. out.String(string(in.RequestID))
  4979. }
  4980. out.RawByte('}')
  4981. }
  4982. // MarshalJSON supports json.Marshaler interface
  4983. func (v GetRequestPostDataParams) MarshalJSON() ([]byte, error) {
  4984. w := jwriter.Writer{}
  4985. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork46(&w, v)
  4986. return w.Buffer.BuildBytes(), w.Error
  4987. }
  4988. // MarshalEasyJSON supports easyjson.Marshaler interface
  4989. func (v GetRequestPostDataParams) MarshalEasyJSON(w *jwriter.Writer) {
  4990. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork46(w, v)
  4991. }
  4992. // UnmarshalJSON supports json.Unmarshaler interface
  4993. func (v *GetRequestPostDataParams) UnmarshalJSON(data []byte) error {
  4994. r := jlexer.Lexer{Data: data}
  4995. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork46(&r, v)
  4996. return r.Error()
  4997. }
  4998. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4999. func (v *GetRequestPostDataParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5000. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork46(l, v)
  5001. }
  5002. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork47(in *jlexer.Lexer, out *GetCookiesReturns) {
  5003. isTopLevel := in.IsStart()
  5004. if in.IsNull() {
  5005. if isTopLevel {
  5006. in.Consumed()
  5007. }
  5008. in.Skip()
  5009. return
  5010. }
  5011. in.Delim('{')
  5012. for !in.IsDelim('}') {
  5013. key := in.UnsafeFieldName(false)
  5014. in.WantColon()
  5015. if in.IsNull() {
  5016. in.Skip()
  5017. in.WantComma()
  5018. continue
  5019. }
  5020. switch key {
  5021. case "cookies":
  5022. if in.IsNull() {
  5023. in.Skip()
  5024. out.Cookies = nil
  5025. } else {
  5026. in.Delim('[')
  5027. if out.Cookies == nil {
  5028. if !in.IsDelim(']') {
  5029. out.Cookies = make([]*Cookie, 0, 8)
  5030. } else {
  5031. out.Cookies = []*Cookie{}
  5032. }
  5033. } else {
  5034. out.Cookies = (out.Cookies)[:0]
  5035. }
  5036. for !in.IsDelim(']') {
  5037. var v55 *Cookie
  5038. if in.IsNull() {
  5039. in.Skip()
  5040. v55 = nil
  5041. } else {
  5042. if v55 == nil {
  5043. v55 = new(Cookie)
  5044. }
  5045. (*v55).UnmarshalEasyJSON(in)
  5046. }
  5047. out.Cookies = append(out.Cookies, v55)
  5048. in.WantComma()
  5049. }
  5050. in.Delim(']')
  5051. }
  5052. default:
  5053. in.SkipRecursive()
  5054. }
  5055. in.WantComma()
  5056. }
  5057. in.Delim('}')
  5058. if isTopLevel {
  5059. in.Consumed()
  5060. }
  5061. }
  5062. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork47(out *jwriter.Writer, in GetCookiesReturns) {
  5063. out.RawByte('{')
  5064. first := true
  5065. _ = first
  5066. if len(in.Cookies) != 0 {
  5067. const prefix string = ",\"cookies\":"
  5068. first = false
  5069. out.RawString(prefix[1:])
  5070. {
  5071. out.RawByte('[')
  5072. for v56, v57 := range in.Cookies {
  5073. if v56 > 0 {
  5074. out.RawByte(',')
  5075. }
  5076. if v57 == nil {
  5077. out.RawString("null")
  5078. } else {
  5079. (*v57).MarshalEasyJSON(out)
  5080. }
  5081. }
  5082. out.RawByte(']')
  5083. }
  5084. }
  5085. out.RawByte('}')
  5086. }
  5087. // MarshalJSON supports json.Marshaler interface
  5088. func (v GetCookiesReturns) MarshalJSON() ([]byte, error) {
  5089. w := jwriter.Writer{}
  5090. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork47(&w, v)
  5091. return w.Buffer.BuildBytes(), w.Error
  5092. }
  5093. // MarshalEasyJSON supports easyjson.Marshaler interface
  5094. func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  5095. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork47(w, v)
  5096. }
  5097. // UnmarshalJSON supports json.Unmarshaler interface
  5098. func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error {
  5099. r := jlexer.Lexer{Data: data}
  5100. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork47(&r, v)
  5101. return r.Error()
  5102. }
  5103. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5104. func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5105. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork47(l, v)
  5106. }
  5107. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork48(in *jlexer.Lexer, out *GetCookiesParams) {
  5108. isTopLevel := in.IsStart()
  5109. if in.IsNull() {
  5110. if isTopLevel {
  5111. in.Consumed()
  5112. }
  5113. in.Skip()
  5114. return
  5115. }
  5116. in.Delim('{')
  5117. for !in.IsDelim('}') {
  5118. key := in.UnsafeFieldName(false)
  5119. in.WantColon()
  5120. if in.IsNull() {
  5121. in.Skip()
  5122. in.WantComma()
  5123. continue
  5124. }
  5125. switch key {
  5126. case "urls":
  5127. if in.IsNull() {
  5128. in.Skip()
  5129. out.Urls = nil
  5130. } else {
  5131. in.Delim('[')
  5132. if out.Urls == nil {
  5133. if !in.IsDelim(']') {
  5134. out.Urls = make([]string, 0, 4)
  5135. } else {
  5136. out.Urls = []string{}
  5137. }
  5138. } else {
  5139. out.Urls = (out.Urls)[:0]
  5140. }
  5141. for !in.IsDelim(']') {
  5142. var v58 string
  5143. v58 = string(in.String())
  5144. out.Urls = append(out.Urls, v58)
  5145. in.WantComma()
  5146. }
  5147. in.Delim(']')
  5148. }
  5149. default:
  5150. in.SkipRecursive()
  5151. }
  5152. in.WantComma()
  5153. }
  5154. in.Delim('}')
  5155. if isTopLevel {
  5156. in.Consumed()
  5157. }
  5158. }
  5159. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork48(out *jwriter.Writer, in GetCookiesParams) {
  5160. out.RawByte('{')
  5161. first := true
  5162. _ = first
  5163. if len(in.Urls) != 0 {
  5164. const prefix string = ",\"urls\":"
  5165. first = false
  5166. out.RawString(prefix[1:])
  5167. {
  5168. out.RawByte('[')
  5169. for v59, v60 := range in.Urls {
  5170. if v59 > 0 {
  5171. out.RawByte(',')
  5172. }
  5173. out.String(string(v60))
  5174. }
  5175. out.RawByte(']')
  5176. }
  5177. }
  5178. out.RawByte('}')
  5179. }
  5180. // MarshalJSON supports json.Marshaler interface
  5181. func (v GetCookiesParams) MarshalJSON() ([]byte, error) {
  5182. w := jwriter.Writer{}
  5183. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork48(&w, v)
  5184. return w.Buffer.BuildBytes(), w.Error
  5185. }
  5186. // MarshalEasyJSON supports easyjson.Marshaler interface
  5187. func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
  5188. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork48(w, v)
  5189. }
  5190. // UnmarshalJSON supports json.Unmarshaler interface
  5191. func (v *GetCookiesParams) UnmarshalJSON(data []byte) error {
  5192. r := jlexer.Lexer{Data: data}
  5193. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork48(&r, v)
  5194. return r.Error()
  5195. }
  5196. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5197. func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5198. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork48(l, v)
  5199. }
  5200. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork49(in *jlexer.Lexer, out *GetCertificateReturns) {
  5201. isTopLevel := in.IsStart()
  5202. if in.IsNull() {
  5203. if isTopLevel {
  5204. in.Consumed()
  5205. }
  5206. in.Skip()
  5207. return
  5208. }
  5209. in.Delim('{')
  5210. for !in.IsDelim('}') {
  5211. key := in.UnsafeFieldName(false)
  5212. in.WantColon()
  5213. if in.IsNull() {
  5214. in.Skip()
  5215. in.WantComma()
  5216. continue
  5217. }
  5218. switch key {
  5219. case "tableNames":
  5220. if in.IsNull() {
  5221. in.Skip()
  5222. out.TableNames = nil
  5223. } else {
  5224. in.Delim('[')
  5225. if out.TableNames == nil {
  5226. if !in.IsDelim(']') {
  5227. out.TableNames = make([]string, 0, 4)
  5228. } else {
  5229. out.TableNames = []string{}
  5230. }
  5231. } else {
  5232. out.TableNames = (out.TableNames)[:0]
  5233. }
  5234. for !in.IsDelim(']') {
  5235. var v61 string
  5236. v61 = string(in.String())
  5237. out.TableNames = append(out.TableNames, v61)
  5238. in.WantComma()
  5239. }
  5240. in.Delim(']')
  5241. }
  5242. default:
  5243. in.SkipRecursive()
  5244. }
  5245. in.WantComma()
  5246. }
  5247. in.Delim('}')
  5248. if isTopLevel {
  5249. in.Consumed()
  5250. }
  5251. }
  5252. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork49(out *jwriter.Writer, in GetCertificateReturns) {
  5253. out.RawByte('{')
  5254. first := true
  5255. _ = first
  5256. if len(in.TableNames) != 0 {
  5257. const prefix string = ",\"tableNames\":"
  5258. first = false
  5259. out.RawString(prefix[1:])
  5260. {
  5261. out.RawByte('[')
  5262. for v62, v63 := range in.TableNames {
  5263. if v62 > 0 {
  5264. out.RawByte(',')
  5265. }
  5266. out.String(string(v63))
  5267. }
  5268. out.RawByte(']')
  5269. }
  5270. }
  5271. out.RawByte('}')
  5272. }
  5273. // MarshalJSON supports json.Marshaler interface
  5274. func (v GetCertificateReturns) MarshalJSON() ([]byte, error) {
  5275. w := jwriter.Writer{}
  5276. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork49(&w, v)
  5277. return w.Buffer.BuildBytes(), w.Error
  5278. }
  5279. // MarshalEasyJSON supports easyjson.Marshaler interface
  5280. func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) {
  5281. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork49(w, v)
  5282. }
  5283. // UnmarshalJSON supports json.Unmarshaler interface
  5284. func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error {
  5285. r := jlexer.Lexer{Data: data}
  5286. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork49(&r, v)
  5287. return r.Error()
  5288. }
  5289. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5290. func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5291. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork49(l, v)
  5292. }
  5293. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork50(in *jlexer.Lexer, out *GetCertificateParams) {
  5294. isTopLevel := in.IsStart()
  5295. if in.IsNull() {
  5296. if isTopLevel {
  5297. in.Consumed()
  5298. }
  5299. in.Skip()
  5300. return
  5301. }
  5302. in.Delim('{')
  5303. for !in.IsDelim('}') {
  5304. key := in.UnsafeFieldName(false)
  5305. in.WantColon()
  5306. if in.IsNull() {
  5307. in.Skip()
  5308. in.WantComma()
  5309. continue
  5310. }
  5311. switch key {
  5312. case "origin":
  5313. out.Origin = string(in.String())
  5314. default:
  5315. in.SkipRecursive()
  5316. }
  5317. in.WantComma()
  5318. }
  5319. in.Delim('}')
  5320. if isTopLevel {
  5321. in.Consumed()
  5322. }
  5323. }
  5324. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork50(out *jwriter.Writer, in GetCertificateParams) {
  5325. out.RawByte('{')
  5326. first := true
  5327. _ = first
  5328. {
  5329. const prefix string = ",\"origin\":"
  5330. out.RawString(prefix[1:])
  5331. out.String(string(in.Origin))
  5332. }
  5333. out.RawByte('}')
  5334. }
  5335. // MarshalJSON supports json.Marshaler interface
  5336. func (v GetCertificateParams) MarshalJSON() ([]byte, error) {
  5337. w := jwriter.Writer{}
  5338. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork50(&w, v)
  5339. return w.Buffer.BuildBytes(), w.Error
  5340. }
  5341. // MarshalEasyJSON supports easyjson.Marshaler interface
  5342. func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) {
  5343. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork50(w, v)
  5344. }
  5345. // UnmarshalJSON supports json.Unmarshaler interface
  5346. func (v *GetCertificateParams) UnmarshalJSON(data []byte) error {
  5347. r := jlexer.Lexer{Data: data}
  5348. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork50(&r, v)
  5349. return r.Error()
  5350. }
  5351. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5352. func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5353. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork50(l, v)
  5354. }
  5355. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork51(in *jlexer.Lexer, out *ExemptedSetCookieWithReason) {
  5356. isTopLevel := in.IsStart()
  5357. if in.IsNull() {
  5358. if isTopLevel {
  5359. in.Consumed()
  5360. }
  5361. in.Skip()
  5362. return
  5363. }
  5364. in.Delim('{')
  5365. for !in.IsDelim('}') {
  5366. key := in.UnsafeFieldName(false)
  5367. in.WantColon()
  5368. if in.IsNull() {
  5369. in.Skip()
  5370. in.WantComma()
  5371. continue
  5372. }
  5373. switch key {
  5374. case "exemptionReason":
  5375. (out.ExemptionReason).UnmarshalEasyJSON(in)
  5376. case "cookieLine":
  5377. out.CookieLine = string(in.String())
  5378. case "cookie":
  5379. if in.IsNull() {
  5380. in.Skip()
  5381. out.Cookie = nil
  5382. } else {
  5383. if out.Cookie == nil {
  5384. out.Cookie = new(Cookie)
  5385. }
  5386. (*out.Cookie).UnmarshalEasyJSON(in)
  5387. }
  5388. default:
  5389. in.SkipRecursive()
  5390. }
  5391. in.WantComma()
  5392. }
  5393. in.Delim('}')
  5394. if isTopLevel {
  5395. in.Consumed()
  5396. }
  5397. }
  5398. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork51(out *jwriter.Writer, in ExemptedSetCookieWithReason) {
  5399. out.RawByte('{')
  5400. first := true
  5401. _ = first
  5402. {
  5403. const prefix string = ",\"exemptionReason\":"
  5404. out.RawString(prefix[1:])
  5405. (in.ExemptionReason).MarshalEasyJSON(out)
  5406. }
  5407. {
  5408. const prefix string = ",\"cookieLine\":"
  5409. out.RawString(prefix)
  5410. out.String(string(in.CookieLine))
  5411. }
  5412. {
  5413. const prefix string = ",\"cookie\":"
  5414. out.RawString(prefix)
  5415. if in.Cookie == nil {
  5416. out.RawString("null")
  5417. } else {
  5418. (*in.Cookie).MarshalEasyJSON(out)
  5419. }
  5420. }
  5421. out.RawByte('}')
  5422. }
  5423. // MarshalJSON supports json.Marshaler interface
  5424. func (v ExemptedSetCookieWithReason) MarshalJSON() ([]byte, error) {
  5425. w := jwriter.Writer{}
  5426. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork51(&w, v)
  5427. return w.Buffer.BuildBytes(), w.Error
  5428. }
  5429. // MarshalEasyJSON supports easyjson.Marshaler interface
  5430. func (v ExemptedSetCookieWithReason) MarshalEasyJSON(w *jwriter.Writer) {
  5431. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork51(w, v)
  5432. }
  5433. // UnmarshalJSON supports json.Unmarshaler interface
  5434. func (v *ExemptedSetCookieWithReason) UnmarshalJSON(data []byte) error {
  5435. r := jlexer.Lexer{Data: data}
  5436. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork51(&r, v)
  5437. return r.Error()
  5438. }
  5439. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5440. func (v *ExemptedSetCookieWithReason) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5441. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork51(l, v)
  5442. }
  5443. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork52(in *jlexer.Lexer, out *EventWebTransportCreated) {
  5444. isTopLevel := in.IsStart()
  5445. if in.IsNull() {
  5446. if isTopLevel {
  5447. in.Consumed()
  5448. }
  5449. in.Skip()
  5450. return
  5451. }
  5452. in.Delim('{')
  5453. for !in.IsDelim('}') {
  5454. key := in.UnsafeFieldName(false)
  5455. in.WantColon()
  5456. if in.IsNull() {
  5457. in.Skip()
  5458. in.WantComma()
  5459. continue
  5460. }
  5461. switch key {
  5462. case "transportId":
  5463. out.TransportID = RequestID(in.String())
  5464. case "url":
  5465. out.URL = string(in.String())
  5466. case "timestamp":
  5467. if in.IsNull() {
  5468. in.Skip()
  5469. out.Timestamp = nil
  5470. } else {
  5471. if out.Timestamp == nil {
  5472. out.Timestamp = new(cdp.MonotonicTime)
  5473. }
  5474. (*out.Timestamp).UnmarshalEasyJSON(in)
  5475. }
  5476. case "initiator":
  5477. if in.IsNull() {
  5478. in.Skip()
  5479. out.Initiator = nil
  5480. } else {
  5481. if out.Initiator == nil {
  5482. out.Initiator = new(Initiator)
  5483. }
  5484. (*out.Initiator).UnmarshalEasyJSON(in)
  5485. }
  5486. default:
  5487. in.SkipRecursive()
  5488. }
  5489. in.WantComma()
  5490. }
  5491. in.Delim('}')
  5492. if isTopLevel {
  5493. in.Consumed()
  5494. }
  5495. }
  5496. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork52(out *jwriter.Writer, in EventWebTransportCreated) {
  5497. out.RawByte('{')
  5498. first := true
  5499. _ = first
  5500. {
  5501. const prefix string = ",\"transportId\":"
  5502. out.RawString(prefix[1:])
  5503. out.String(string(in.TransportID))
  5504. }
  5505. {
  5506. const prefix string = ",\"url\":"
  5507. out.RawString(prefix)
  5508. out.String(string(in.URL))
  5509. }
  5510. {
  5511. const prefix string = ",\"timestamp\":"
  5512. out.RawString(prefix)
  5513. if in.Timestamp == nil {
  5514. out.RawString("null")
  5515. } else {
  5516. (*in.Timestamp).MarshalEasyJSON(out)
  5517. }
  5518. }
  5519. if in.Initiator != nil {
  5520. const prefix string = ",\"initiator\":"
  5521. out.RawString(prefix)
  5522. (*in.Initiator).MarshalEasyJSON(out)
  5523. }
  5524. out.RawByte('}')
  5525. }
  5526. // MarshalJSON supports json.Marshaler interface
  5527. func (v EventWebTransportCreated) MarshalJSON() ([]byte, error) {
  5528. w := jwriter.Writer{}
  5529. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork52(&w, v)
  5530. return w.Buffer.BuildBytes(), w.Error
  5531. }
  5532. // MarshalEasyJSON supports easyjson.Marshaler interface
  5533. func (v EventWebTransportCreated) MarshalEasyJSON(w *jwriter.Writer) {
  5534. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork52(w, v)
  5535. }
  5536. // UnmarshalJSON supports json.Unmarshaler interface
  5537. func (v *EventWebTransportCreated) UnmarshalJSON(data []byte) error {
  5538. r := jlexer.Lexer{Data: data}
  5539. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork52(&r, v)
  5540. return r.Error()
  5541. }
  5542. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5543. func (v *EventWebTransportCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5544. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork52(l, v)
  5545. }
  5546. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork53(in *jlexer.Lexer, out *EventWebTransportConnectionEstablished) {
  5547. isTopLevel := in.IsStart()
  5548. if in.IsNull() {
  5549. if isTopLevel {
  5550. in.Consumed()
  5551. }
  5552. in.Skip()
  5553. return
  5554. }
  5555. in.Delim('{')
  5556. for !in.IsDelim('}') {
  5557. key := in.UnsafeFieldName(false)
  5558. in.WantColon()
  5559. if in.IsNull() {
  5560. in.Skip()
  5561. in.WantComma()
  5562. continue
  5563. }
  5564. switch key {
  5565. case "transportId":
  5566. out.TransportID = RequestID(in.String())
  5567. case "timestamp":
  5568. if in.IsNull() {
  5569. in.Skip()
  5570. out.Timestamp = nil
  5571. } else {
  5572. if out.Timestamp == nil {
  5573. out.Timestamp = new(cdp.MonotonicTime)
  5574. }
  5575. (*out.Timestamp).UnmarshalEasyJSON(in)
  5576. }
  5577. default:
  5578. in.SkipRecursive()
  5579. }
  5580. in.WantComma()
  5581. }
  5582. in.Delim('}')
  5583. if isTopLevel {
  5584. in.Consumed()
  5585. }
  5586. }
  5587. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork53(out *jwriter.Writer, in EventWebTransportConnectionEstablished) {
  5588. out.RawByte('{')
  5589. first := true
  5590. _ = first
  5591. {
  5592. const prefix string = ",\"transportId\":"
  5593. out.RawString(prefix[1:])
  5594. out.String(string(in.TransportID))
  5595. }
  5596. {
  5597. const prefix string = ",\"timestamp\":"
  5598. out.RawString(prefix)
  5599. if in.Timestamp == nil {
  5600. out.RawString("null")
  5601. } else {
  5602. (*in.Timestamp).MarshalEasyJSON(out)
  5603. }
  5604. }
  5605. out.RawByte('}')
  5606. }
  5607. // MarshalJSON supports json.Marshaler interface
  5608. func (v EventWebTransportConnectionEstablished) MarshalJSON() ([]byte, error) {
  5609. w := jwriter.Writer{}
  5610. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork53(&w, v)
  5611. return w.Buffer.BuildBytes(), w.Error
  5612. }
  5613. // MarshalEasyJSON supports easyjson.Marshaler interface
  5614. func (v EventWebTransportConnectionEstablished) MarshalEasyJSON(w *jwriter.Writer) {
  5615. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork53(w, v)
  5616. }
  5617. // UnmarshalJSON supports json.Unmarshaler interface
  5618. func (v *EventWebTransportConnectionEstablished) UnmarshalJSON(data []byte) error {
  5619. r := jlexer.Lexer{Data: data}
  5620. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork53(&r, v)
  5621. return r.Error()
  5622. }
  5623. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5624. func (v *EventWebTransportConnectionEstablished) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5625. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork53(l, v)
  5626. }
  5627. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork54(in *jlexer.Lexer, out *EventWebTransportClosed) {
  5628. isTopLevel := in.IsStart()
  5629. if in.IsNull() {
  5630. if isTopLevel {
  5631. in.Consumed()
  5632. }
  5633. in.Skip()
  5634. return
  5635. }
  5636. in.Delim('{')
  5637. for !in.IsDelim('}') {
  5638. key := in.UnsafeFieldName(false)
  5639. in.WantColon()
  5640. if in.IsNull() {
  5641. in.Skip()
  5642. in.WantComma()
  5643. continue
  5644. }
  5645. switch key {
  5646. case "transportId":
  5647. out.TransportID = RequestID(in.String())
  5648. case "timestamp":
  5649. if in.IsNull() {
  5650. in.Skip()
  5651. out.Timestamp = nil
  5652. } else {
  5653. if out.Timestamp == nil {
  5654. out.Timestamp = new(cdp.MonotonicTime)
  5655. }
  5656. (*out.Timestamp).UnmarshalEasyJSON(in)
  5657. }
  5658. default:
  5659. in.SkipRecursive()
  5660. }
  5661. in.WantComma()
  5662. }
  5663. in.Delim('}')
  5664. if isTopLevel {
  5665. in.Consumed()
  5666. }
  5667. }
  5668. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork54(out *jwriter.Writer, in EventWebTransportClosed) {
  5669. out.RawByte('{')
  5670. first := true
  5671. _ = first
  5672. {
  5673. const prefix string = ",\"transportId\":"
  5674. out.RawString(prefix[1:])
  5675. out.String(string(in.TransportID))
  5676. }
  5677. {
  5678. const prefix string = ",\"timestamp\":"
  5679. out.RawString(prefix)
  5680. if in.Timestamp == nil {
  5681. out.RawString("null")
  5682. } else {
  5683. (*in.Timestamp).MarshalEasyJSON(out)
  5684. }
  5685. }
  5686. out.RawByte('}')
  5687. }
  5688. // MarshalJSON supports json.Marshaler interface
  5689. func (v EventWebTransportClosed) MarshalJSON() ([]byte, error) {
  5690. w := jwriter.Writer{}
  5691. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork54(&w, v)
  5692. return w.Buffer.BuildBytes(), w.Error
  5693. }
  5694. // MarshalEasyJSON supports easyjson.Marshaler interface
  5695. func (v EventWebTransportClosed) MarshalEasyJSON(w *jwriter.Writer) {
  5696. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork54(w, v)
  5697. }
  5698. // UnmarshalJSON supports json.Unmarshaler interface
  5699. func (v *EventWebTransportClosed) UnmarshalJSON(data []byte) error {
  5700. r := jlexer.Lexer{Data: data}
  5701. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork54(&r, v)
  5702. return r.Error()
  5703. }
  5704. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5705. func (v *EventWebTransportClosed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5706. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork54(l, v)
  5707. }
  5708. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork55(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) {
  5709. isTopLevel := in.IsStart()
  5710. if in.IsNull() {
  5711. if isTopLevel {
  5712. in.Consumed()
  5713. }
  5714. in.Skip()
  5715. return
  5716. }
  5717. in.Delim('{')
  5718. for !in.IsDelim('}') {
  5719. key := in.UnsafeFieldName(false)
  5720. in.WantColon()
  5721. if in.IsNull() {
  5722. in.Skip()
  5723. in.WantComma()
  5724. continue
  5725. }
  5726. switch key {
  5727. case "requestId":
  5728. out.RequestID = RequestID(in.String())
  5729. case "timestamp":
  5730. if in.IsNull() {
  5731. in.Skip()
  5732. out.Timestamp = nil
  5733. } else {
  5734. if out.Timestamp == nil {
  5735. out.Timestamp = new(cdp.MonotonicTime)
  5736. }
  5737. (*out.Timestamp).UnmarshalEasyJSON(in)
  5738. }
  5739. case "wallTime":
  5740. if in.IsNull() {
  5741. in.Skip()
  5742. out.WallTime = nil
  5743. } else {
  5744. if out.WallTime == nil {
  5745. out.WallTime = new(cdp.TimeSinceEpoch)
  5746. }
  5747. (*out.WallTime).UnmarshalEasyJSON(in)
  5748. }
  5749. case "request":
  5750. if in.IsNull() {
  5751. in.Skip()
  5752. out.Request = nil
  5753. } else {
  5754. if out.Request == nil {
  5755. out.Request = new(WebSocketRequest)
  5756. }
  5757. (*out.Request).UnmarshalEasyJSON(in)
  5758. }
  5759. default:
  5760. in.SkipRecursive()
  5761. }
  5762. in.WantComma()
  5763. }
  5764. in.Delim('}')
  5765. if isTopLevel {
  5766. in.Consumed()
  5767. }
  5768. }
  5769. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork55(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) {
  5770. out.RawByte('{')
  5771. first := true
  5772. _ = first
  5773. {
  5774. const prefix string = ",\"requestId\":"
  5775. out.RawString(prefix[1:])
  5776. out.String(string(in.RequestID))
  5777. }
  5778. {
  5779. const prefix string = ",\"timestamp\":"
  5780. out.RawString(prefix)
  5781. if in.Timestamp == nil {
  5782. out.RawString("null")
  5783. } else {
  5784. (*in.Timestamp).MarshalEasyJSON(out)
  5785. }
  5786. }
  5787. {
  5788. const prefix string = ",\"wallTime\":"
  5789. out.RawString(prefix)
  5790. if in.WallTime == nil {
  5791. out.RawString("null")
  5792. } else {
  5793. (*in.WallTime).MarshalEasyJSON(out)
  5794. }
  5795. }
  5796. {
  5797. const prefix string = ",\"request\":"
  5798. out.RawString(prefix)
  5799. if in.Request == nil {
  5800. out.RawString("null")
  5801. } else {
  5802. (*in.Request).MarshalEasyJSON(out)
  5803. }
  5804. }
  5805. out.RawByte('}')
  5806. }
  5807. // MarshalJSON supports json.Marshaler interface
  5808. func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) {
  5809. w := jwriter.Writer{}
  5810. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork55(&w, v)
  5811. return w.Buffer.BuildBytes(), w.Error
  5812. }
  5813. // MarshalEasyJSON supports easyjson.Marshaler interface
  5814. func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) {
  5815. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork55(w, v)
  5816. }
  5817. // UnmarshalJSON supports json.Unmarshaler interface
  5818. func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error {
  5819. r := jlexer.Lexer{Data: data}
  5820. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork55(&r, v)
  5821. return r.Error()
  5822. }
  5823. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5824. func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5825. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork55(l, v)
  5826. }
  5827. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork56(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) {
  5828. isTopLevel := in.IsStart()
  5829. if in.IsNull() {
  5830. if isTopLevel {
  5831. in.Consumed()
  5832. }
  5833. in.Skip()
  5834. return
  5835. }
  5836. in.Delim('{')
  5837. for !in.IsDelim('}') {
  5838. key := in.UnsafeFieldName(false)
  5839. in.WantColon()
  5840. if in.IsNull() {
  5841. in.Skip()
  5842. in.WantComma()
  5843. continue
  5844. }
  5845. switch key {
  5846. case "requestId":
  5847. out.RequestID = RequestID(in.String())
  5848. case "timestamp":
  5849. if in.IsNull() {
  5850. in.Skip()
  5851. out.Timestamp = nil
  5852. } else {
  5853. if out.Timestamp == nil {
  5854. out.Timestamp = new(cdp.MonotonicTime)
  5855. }
  5856. (*out.Timestamp).UnmarshalEasyJSON(in)
  5857. }
  5858. case "response":
  5859. if in.IsNull() {
  5860. in.Skip()
  5861. out.Response = nil
  5862. } else {
  5863. if out.Response == nil {
  5864. out.Response = new(WebSocketResponse)
  5865. }
  5866. (*out.Response).UnmarshalEasyJSON(in)
  5867. }
  5868. default:
  5869. in.SkipRecursive()
  5870. }
  5871. in.WantComma()
  5872. }
  5873. in.Delim('}')
  5874. if isTopLevel {
  5875. in.Consumed()
  5876. }
  5877. }
  5878. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork56(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) {
  5879. out.RawByte('{')
  5880. first := true
  5881. _ = first
  5882. {
  5883. const prefix string = ",\"requestId\":"
  5884. out.RawString(prefix[1:])
  5885. out.String(string(in.RequestID))
  5886. }
  5887. {
  5888. const prefix string = ",\"timestamp\":"
  5889. out.RawString(prefix)
  5890. if in.Timestamp == nil {
  5891. out.RawString("null")
  5892. } else {
  5893. (*in.Timestamp).MarshalEasyJSON(out)
  5894. }
  5895. }
  5896. {
  5897. const prefix string = ",\"response\":"
  5898. out.RawString(prefix)
  5899. if in.Response == nil {
  5900. out.RawString("null")
  5901. } else {
  5902. (*in.Response).MarshalEasyJSON(out)
  5903. }
  5904. }
  5905. out.RawByte('}')
  5906. }
  5907. // MarshalJSON supports json.Marshaler interface
  5908. func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) {
  5909. w := jwriter.Writer{}
  5910. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork56(&w, v)
  5911. return w.Buffer.BuildBytes(), w.Error
  5912. }
  5913. // MarshalEasyJSON supports easyjson.Marshaler interface
  5914. func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) {
  5915. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork56(w, v)
  5916. }
  5917. // UnmarshalJSON supports json.Unmarshaler interface
  5918. func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error {
  5919. r := jlexer.Lexer{Data: data}
  5920. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork56(&r, v)
  5921. return r.Error()
  5922. }
  5923. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5924. func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5925. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork56(l, v)
  5926. }
  5927. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork57(in *jlexer.Lexer, out *EventWebSocketFrameSent) {
  5928. isTopLevel := in.IsStart()
  5929. if in.IsNull() {
  5930. if isTopLevel {
  5931. in.Consumed()
  5932. }
  5933. in.Skip()
  5934. return
  5935. }
  5936. in.Delim('{')
  5937. for !in.IsDelim('}') {
  5938. key := in.UnsafeFieldName(false)
  5939. in.WantColon()
  5940. if in.IsNull() {
  5941. in.Skip()
  5942. in.WantComma()
  5943. continue
  5944. }
  5945. switch key {
  5946. case "requestId":
  5947. out.RequestID = RequestID(in.String())
  5948. case "timestamp":
  5949. if in.IsNull() {
  5950. in.Skip()
  5951. out.Timestamp = nil
  5952. } else {
  5953. if out.Timestamp == nil {
  5954. out.Timestamp = new(cdp.MonotonicTime)
  5955. }
  5956. (*out.Timestamp).UnmarshalEasyJSON(in)
  5957. }
  5958. case "response":
  5959. if in.IsNull() {
  5960. in.Skip()
  5961. out.Response = nil
  5962. } else {
  5963. if out.Response == nil {
  5964. out.Response = new(WebSocketFrame)
  5965. }
  5966. (*out.Response).UnmarshalEasyJSON(in)
  5967. }
  5968. default:
  5969. in.SkipRecursive()
  5970. }
  5971. in.WantComma()
  5972. }
  5973. in.Delim('}')
  5974. if isTopLevel {
  5975. in.Consumed()
  5976. }
  5977. }
  5978. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork57(out *jwriter.Writer, in EventWebSocketFrameSent) {
  5979. out.RawByte('{')
  5980. first := true
  5981. _ = first
  5982. {
  5983. const prefix string = ",\"requestId\":"
  5984. out.RawString(prefix[1:])
  5985. out.String(string(in.RequestID))
  5986. }
  5987. {
  5988. const prefix string = ",\"timestamp\":"
  5989. out.RawString(prefix)
  5990. if in.Timestamp == nil {
  5991. out.RawString("null")
  5992. } else {
  5993. (*in.Timestamp).MarshalEasyJSON(out)
  5994. }
  5995. }
  5996. {
  5997. const prefix string = ",\"response\":"
  5998. out.RawString(prefix)
  5999. if in.Response == nil {
  6000. out.RawString("null")
  6001. } else {
  6002. (*in.Response).MarshalEasyJSON(out)
  6003. }
  6004. }
  6005. out.RawByte('}')
  6006. }
  6007. // MarshalJSON supports json.Marshaler interface
  6008. func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) {
  6009. w := jwriter.Writer{}
  6010. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork57(&w, v)
  6011. return w.Buffer.BuildBytes(), w.Error
  6012. }
  6013. // MarshalEasyJSON supports easyjson.Marshaler interface
  6014. func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer) {
  6015. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork57(w, v)
  6016. }
  6017. // UnmarshalJSON supports json.Unmarshaler interface
  6018. func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error {
  6019. r := jlexer.Lexer{Data: data}
  6020. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork57(&r, v)
  6021. return r.Error()
  6022. }
  6023. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6024. func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6025. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork57(l, v)
  6026. }
  6027. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork58(in *jlexer.Lexer, out *EventWebSocketFrameReceived) {
  6028. isTopLevel := in.IsStart()
  6029. if in.IsNull() {
  6030. if isTopLevel {
  6031. in.Consumed()
  6032. }
  6033. in.Skip()
  6034. return
  6035. }
  6036. in.Delim('{')
  6037. for !in.IsDelim('}') {
  6038. key := in.UnsafeFieldName(false)
  6039. in.WantColon()
  6040. if in.IsNull() {
  6041. in.Skip()
  6042. in.WantComma()
  6043. continue
  6044. }
  6045. switch key {
  6046. case "requestId":
  6047. out.RequestID = RequestID(in.String())
  6048. case "timestamp":
  6049. if in.IsNull() {
  6050. in.Skip()
  6051. out.Timestamp = nil
  6052. } else {
  6053. if out.Timestamp == nil {
  6054. out.Timestamp = new(cdp.MonotonicTime)
  6055. }
  6056. (*out.Timestamp).UnmarshalEasyJSON(in)
  6057. }
  6058. case "response":
  6059. if in.IsNull() {
  6060. in.Skip()
  6061. out.Response = nil
  6062. } else {
  6063. if out.Response == nil {
  6064. out.Response = new(WebSocketFrame)
  6065. }
  6066. (*out.Response).UnmarshalEasyJSON(in)
  6067. }
  6068. default:
  6069. in.SkipRecursive()
  6070. }
  6071. in.WantComma()
  6072. }
  6073. in.Delim('}')
  6074. if isTopLevel {
  6075. in.Consumed()
  6076. }
  6077. }
  6078. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork58(out *jwriter.Writer, in EventWebSocketFrameReceived) {
  6079. out.RawByte('{')
  6080. first := true
  6081. _ = first
  6082. {
  6083. const prefix string = ",\"requestId\":"
  6084. out.RawString(prefix[1:])
  6085. out.String(string(in.RequestID))
  6086. }
  6087. {
  6088. const prefix string = ",\"timestamp\":"
  6089. out.RawString(prefix)
  6090. if in.Timestamp == nil {
  6091. out.RawString("null")
  6092. } else {
  6093. (*in.Timestamp).MarshalEasyJSON(out)
  6094. }
  6095. }
  6096. {
  6097. const prefix string = ",\"response\":"
  6098. out.RawString(prefix)
  6099. if in.Response == nil {
  6100. out.RawString("null")
  6101. } else {
  6102. (*in.Response).MarshalEasyJSON(out)
  6103. }
  6104. }
  6105. out.RawByte('}')
  6106. }
  6107. // MarshalJSON supports json.Marshaler interface
  6108. func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error) {
  6109. w := jwriter.Writer{}
  6110. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork58(&w, v)
  6111. return w.Buffer.BuildBytes(), w.Error
  6112. }
  6113. // MarshalEasyJSON supports easyjson.Marshaler interface
  6114. func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer) {
  6115. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork58(w, v)
  6116. }
  6117. // UnmarshalJSON supports json.Unmarshaler interface
  6118. func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error {
  6119. r := jlexer.Lexer{Data: data}
  6120. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork58(&r, v)
  6121. return r.Error()
  6122. }
  6123. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6124. func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6125. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork58(l, v)
  6126. }
  6127. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork59(in *jlexer.Lexer, out *EventWebSocketFrameError) {
  6128. isTopLevel := in.IsStart()
  6129. if in.IsNull() {
  6130. if isTopLevel {
  6131. in.Consumed()
  6132. }
  6133. in.Skip()
  6134. return
  6135. }
  6136. in.Delim('{')
  6137. for !in.IsDelim('}') {
  6138. key := in.UnsafeFieldName(false)
  6139. in.WantColon()
  6140. if in.IsNull() {
  6141. in.Skip()
  6142. in.WantComma()
  6143. continue
  6144. }
  6145. switch key {
  6146. case "requestId":
  6147. out.RequestID = RequestID(in.String())
  6148. case "timestamp":
  6149. if in.IsNull() {
  6150. in.Skip()
  6151. out.Timestamp = nil
  6152. } else {
  6153. if out.Timestamp == nil {
  6154. out.Timestamp = new(cdp.MonotonicTime)
  6155. }
  6156. (*out.Timestamp).UnmarshalEasyJSON(in)
  6157. }
  6158. case "errorMessage":
  6159. out.ErrorMessage = string(in.String())
  6160. default:
  6161. in.SkipRecursive()
  6162. }
  6163. in.WantComma()
  6164. }
  6165. in.Delim('}')
  6166. if isTopLevel {
  6167. in.Consumed()
  6168. }
  6169. }
  6170. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork59(out *jwriter.Writer, in EventWebSocketFrameError) {
  6171. out.RawByte('{')
  6172. first := true
  6173. _ = first
  6174. {
  6175. const prefix string = ",\"requestId\":"
  6176. out.RawString(prefix[1:])
  6177. out.String(string(in.RequestID))
  6178. }
  6179. {
  6180. const prefix string = ",\"timestamp\":"
  6181. out.RawString(prefix)
  6182. if in.Timestamp == nil {
  6183. out.RawString("null")
  6184. } else {
  6185. (*in.Timestamp).MarshalEasyJSON(out)
  6186. }
  6187. }
  6188. {
  6189. const prefix string = ",\"errorMessage\":"
  6190. out.RawString(prefix)
  6191. out.String(string(in.ErrorMessage))
  6192. }
  6193. out.RawByte('}')
  6194. }
  6195. // MarshalJSON supports json.Marshaler interface
  6196. func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error) {
  6197. w := jwriter.Writer{}
  6198. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork59(&w, v)
  6199. return w.Buffer.BuildBytes(), w.Error
  6200. }
  6201. // MarshalEasyJSON supports easyjson.Marshaler interface
  6202. func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer) {
  6203. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork59(w, v)
  6204. }
  6205. // UnmarshalJSON supports json.Unmarshaler interface
  6206. func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error {
  6207. r := jlexer.Lexer{Data: data}
  6208. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork59(&r, v)
  6209. return r.Error()
  6210. }
  6211. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6212. func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6213. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork59(l, v)
  6214. }
  6215. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork60(in *jlexer.Lexer, out *EventWebSocketCreated) {
  6216. isTopLevel := in.IsStart()
  6217. if in.IsNull() {
  6218. if isTopLevel {
  6219. in.Consumed()
  6220. }
  6221. in.Skip()
  6222. return
  6223. }
  6224. in.Delim('{')
  6225. for !in.IsDelim('}') {
  6226. key := in.UnsafeFieldName(false)
  6227. in.WantColon()
  6228. if in.IsNull() {
  6229. in.Skip()
  6230. in.WantComma()
  6231. continue
  6232. }
  6233. switch key {
  6234. case "requestId":
  6235. out.RequestID = RequestID(in.String())
  6236. case "url":
  6237. out.URL = string(in.String())
  6238. case "initiator":
  6239. if in.IsNull() {
  6240. in.Skip()
  6241. out.Initiator = nil
  6242. } else {
  6243. if out.Initiator == nil {
  6244. out.Initiator = new(Initiator)
  6245. }
  6246. (*out.Initiator).UnmarshalEasyJSON(in)
  6247. }
  6248. default:
  6249. in.SkipRecursive()
  6250. }
  6251. in.WantComma()
  6252. }
  6253. in.Delim('}')
  6254. if isTopLevel {
  6255. in.Consumed()
  6256. }
  6257. }
  6258. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork60(out *jwriter.Writer, in EventWebSocketCreated) {
  6259. out.RawByte('{')
  6260. first := true
  6261. _ = first
  6262. {
  6263. const prefix string = ",\"requestId\":"
  6264. out.RawString(prefix[1:])
  6265. out.String(string(in.RequestID))
  6266. }
  6267. {
  6268. const prefix string = ",\"url\":"
  6269. out.RawString(prefix)
  6270. out.String(string(in.URL))
  6271. }
  6272. if in.Initiator != nil {
  6273. const prefix string = ",\"initiator\":"
  6274. out.RawString(prefix)
  6275. (*in.Initiator).MarshalEasyJSON(out)
  6276. }
  6277. out.RawByte('}')
  6278. }
  6279. // MarshalJSON supports json.Marshaler interface
  6280. func (v EventWebSocketCreated) MarshalJSON() ([]byte, error) {
  6281. w := jwriter.Writer{}
  6282. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork60(&w, v)
  6283. return w.Buffer.BuildBytes(), w.Error
  6284. }
  6285. // MarshalEasyJSON supports easyjson.Marshaler interface
  6286. func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer) {
  6287. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork60(w, v)
  6288. }
  6289. // UnmarshalJSON supports json.Unmarshaler interface
  6290. func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error {
  6291. r := jlexer.Lexer{Data: data}
  6292. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork60(&r, v)
  6293. return r.Error()
  6294. }
  6295. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6296. func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6297. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork60(l, v)
  6298. }
  6299. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork61(in *jlexer.Lexer, out *EventWebSocketClosed) {
  6300. isTopLevel := in.IsStart()
  6301. if in.IsNull() {
  6302. if isTopLevel {
  6303. in.Consumed()
  6304. }
  6305. in.Skip()
  6306. return
  6307. }
  6308. in.Delim('{')
  6309. for !in.IsDelim('}') {
  6310. key := in.UnsafeFieldName(false)
  6311. in.WantColon()
  6312. if in.IsNull() {
  6313. in.Skip()
  6314. in.WantComma()
  6315. continue
  6316. }
  6317. switch key {
  6318. case "requestId":
  6319. out.RequestID = RequestID(in.String())
  6320. case "timestamp":
  6321. if in.IsNull() {
  6322. in.Skip()
  6323. out.Timestamp = nil
  6324. } else {
  6325. if out.Timestamp == nil {
  6326. out.Timestamp = new(cdp.MonotonicTime)
  6327. }
  6328. (*out.Timestamp).UnmarshalEasyJSON(in)
  6329. }
  6330. default:
  6331. in.SkipRecursive()
  6332. }
  6333. in.WantComma()
  6334. }
  6335. in.Delim('}')
  6336. if isTopLevel {
  6337. in.Consumed()
  6338. }
  6339. }
  6340. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork61(out *jwriter.Writer, in EventWebSocketClosed) {
  6341. out.RawByte('{')
  6342. first := true
  6343. _ = first
  6344. {
  6345. const prefix string = ",\"requestId\":"
  6346. out.RawString(prefix[1:])
  6347. out.String(string(in.RequestID))
  6348. }
  6349. {
  6350. const prefix string = ",\"timestamp\":"
  6351. out.RawString(prefix)
  6352. if in.Timestamp == nil {
  6353. out.RawString("null")
  6354. } else {
  6355. (*in.Timestamp).MarshalEasyJSON(out)
  6356. }
  6357. }
  6358. out.RawByte('}')
  6359. }
  6360. // MarshalJSON supports json.Marshaler interface
  6361. func (v EventWebSocketClosed) MarshalJSON() ([]byte, error) {
  6362. w := jwriter.Writer{}
  6363. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork61(&w, v)
  6364. return w.Buffer.BuildBytes(), w.Error
  6365. }
  6366. // MarshalEasyJSON supports easyjson.Marshaler interface
  6367. func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer) {
  6368. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork61(w, v)
  6369. }
  6370. // UnmarshalJSON supports json.Unmarshaler interface
  6371. func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error {
  6372. r := jlexer.Lexer{Data: data}
  6373. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork61(&r, v)
  6374. return r.Error()
  6375. }
  6376. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6377. func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6378. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork61(l, v)
  6379. }
  6380. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork62(in *jlexer.Lexer, out *EventTrustTokenOperationDone) {
  6381. isTopLevel := in.IsStart()
  6382. if in.IsNull() {
  6383. if isTopLevel {
  6384. in.Consumed()
  6385. }
  6386. in.Skip()
  6387. return
  6388. }
  6389. in.Delim('{')
  6390. for !in.IsDelim('}') {
  6391. key := in.UnsafeFieldName(false)
  6392. in.WantColon()
  6393. if in.IsNull() {
  6394. in.Skip()
  6395. in.WantComma()
  6396. continue
  6397. }
  6398. switch key {
  6399. case "status":
  6400. (out.Status).UnmarshalEasyJSON(in)
  6401. case "type":
  6402. (out.Type).UnmarshalEasyJSON(in)
  6403. case "requestId":
  6404. out.RequestID = RequestID(in.String())
  6405. case "topLevelOrigin":
  6406. out.TopLevelOrigin = string(in.String())
  6407. case "issuerOrigin":
  6408. out.IssuerOrigin = string(in.String())
  6409. case "issuedTokenCount":
  6410. out.IssuedTokenCount = int64(in.Int64())
  6411. default:
  6412. in.SkipRecursive()
  6413. }
  6414. in.WantComma()
  6415. }
  6416. in.Delim('}')
  6417. if isTopLevel {
  6418. in.Consumed()
  6419. }
  6420. }
  6421. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork62(out *jwriter.Writer, in EventTrustTokenOperationDone) {
  6422. out.RawByte('{')
  6423. first := true
  6424. _ = first
  6425. {
  6426. const prefix string = ",\"status\":"
  6427. out.RawString(prefix[1:])
  6428. (in.Status).MarshalEasyJSON(out)
  6429. }
  6430. {
  6431. const prefix string = ",\"type\":"
  6432. out.RawString(prefix)
  6433. (in.Type).MarshalEasyJSON(out)
  6434. }
  6435. {
  6436. const prefix string = ",\"requestId\":"
  6437. out.RawString(prefix)
  6438. out.String(string(in.RequestID))
  6439. }
  6440. if in.TopLevelOrigin != "" {
  6441. const prefix string = ",\"topLevelOrigin\":"
  6442. out.RawString(prefix)
  6443. out.String(string(in.TopLevelOrigin))
  6444. }
  6445. if in.IssuerOrigin != "" {
  6446. const prefix string = ",\"issuerOrigin\":"
  6447. out.RawString(prefix)
  6448. out.String(string(in.IssuerOrigin))
  6449. }
  6450. if in.IssuedTokenCount != 0 {
  6451. const prefix string = ",\"issuedTokenCount\":"
  6452. out.RawString(prefix)
  6453. out.Int64(int64(in.IssuedTokenCount))
  6454. }
  6455. out.RawByte('}')
  6456. }
  6457. // MarshalJSON supports json.Marshaler interface
  6458. func (v EventTrustTokenOperationDone) MarshalJSON() ([]byte, error) {
  6459. w := jwriter.Writer{}
  6460. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork62(&w, v)
  6461. return w.Buffer.BuildBytes(), w.Error
  6462. }
  6463. // MarshalEasyJSON supports easyjson.Marshaler interface
  6464. func (v EventTrustTokenOperationDone) MarshalEasyJSON(w *jwriter.Writer) {
  6465. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork62(w, v)
  6466. }
  6467. // UnmarshalJSON supports json.Unmarshaler interface
  6468. func (v *EventTrustTokenOperationDone) UnmarshalJSON(data []byte) error {
  6469. r := jlexer.Lexer{Data: data}
  6470. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork62(&r, v)
  6471. return r.Error()
  6472. }
  6473. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6474. func (v *EventTrustTokenOperationDone) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6475. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork62(l, v)
  6476. }
  6477. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork63(in *jlexer.Lexer, out *EventSubresourceWebBundleMetadataReceived) {
  6478. isTopLevel := in.IsStart()
  6479. if in.IsNull() {
  6480. if isTopLevel {
  6481. in.Consumed()
  6482. }
  6483. in.Skip()
  6484. return
  6485. }
  6486. in.Delim('{')
  6487. for !in.IsDelim('}') {
  6488. key := in.UnsafeFieldName(false)
  6489. in.WantColon()
  6490. if in.IsNull() {
  6491. in.Skip()
  6492. in.WantComma()
  6493. continue
  6494. }
  6495. switch key {
  6496. case "requestId":
  6497. out.RequestID = RequestID(in.String())
  6498. case "urls":
  6499. if in.IsNull() {
  6500. in.Skip()
  6501. out.Urls = nil
  6502. } else {
  6503. in.Delim('[')
  6504. if out.Urls == nil {
  6505. if !in.IsDelim(']') {
  6506. out.Urls = make([]string, 0, 4)
  6507. } else {
  6508. out.Urls = []string{}
  6509. }
  6510. } else {
  6511. out.Urls = (out.Urls)[:0]
  6512. }
  6513. for !in.IsDelim(']') {
  6514. var v64 string
  6515. v64 = string(in.String())
  6516. out.Urls = append(out.Urls, v64)
  6517. in.WantComma()
  6518. }
  6519. in.Delim(']')
  6520. }
  6521. default:
  6522. in.SkipRecursive()
  6523. }
  6524. in.WantComma()
  6525. }
  6526. in.Delim('}')
  6527. if isTopLevel {
  6528. in.Consumed()
  6529. }
  6530. }
  6531. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork63(out *jwriter.Writer, in EventSubresourceWebBundleMetadataReceived) {
  6532. out.RawByte('{')
  6533. first := true
  6534. _ = first
  6535. {
  6536. const prefix string = ",\"requestId\":"
  6537. out.RawString(prefix[1:])
  6538. out.String(string(in.RequestID))
  6539. }
  6540. {
  6541. const prefix string = ",\"urls\":"
  6542. out.RawString(prefix)
  6543. if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  6544. out.RawString("null")
  6545. } else {
  6546. out.RawByte('[')
  6547. for v65, v66 := range in.Urls {
  6548. if v65 > 0 {
  6549. out.RawByte(',')
  6550. }
  6551. out.String(string(v66))
  6552. }
  6553. out.RawByte(']')
  6554. }
  6555. }
  6556. out.RawByte('}')
  6557. }
  6558. // MarshalJSON supports json.Marshaler interface
  6559. func (v EventSubresourceWebBundleMetadataReceived) MarshalJSON() ([]byte, error) {
  6560. w := jwriter.Writer{}
  6561. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork63(&w, v)
  6562. return w.Buffer.BuildBytes(), w.Error
  6563. }
  6564. // MarshalEasyJSON supports easyjson.Marshaler interface
  6565. func (v EventSubresourceWebBundleMetadataReceived) MarshalEasyJSON(w *jwriter.Writer) {
  6566. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork63(w, v)
  6567. }
  6568. // UnmarshalJSON supports json.Unmarshaler interface
  6569. func (v *EventSubresourceWebBundleMetadataReceived) UnmarshalJSON(data []byte) error {
  6570. r := jlexer.Lexer{Data: data}
  6571. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork63(&r, v)
  6572. return r.Error()
  6573. }
  6574. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6575. func (v *EventSubresourceWebBundleMetadataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6576. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork63(l, v)
  6577. }
  6578. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork64(in *jlexer.Lexer, out *EventSubresourceWebBundleMetadataError) {
  6579. isTopLevel := in.IsStart()
  6580. if in.IsNull() {
  6581. if isTopLevel {
  6582. in.Consumed()
  6583. }
  6584. in.Skip()
  6585. return
  6586. }
  6587. in.Delim('{')
  6588. for !in.IsDelim('}') {
  6589. key := in.UnsafeFieldName(false)
  6590. in.WantColon()
  6591. if in.IsNull() {
  6592. in.Skip()
  6593. in.WantComma()
  6594. continue
  6595. }
  6596. switch key {
  6597. case "requestId":
  6598. out.RequestID = RequestID(in.String())
  6599. case "errorMessage":
  6600. out.ErrorMessage = string(in.String())
  6601. default:
  6602. in.SkipRecursive()
  6603. }
  6604. in.WantComma()
  6605. }
  6606. in.Delim('}')
  6607. if isTopLevel {
  6608. in.Consumed()
  6609. }
  6610. }
  6611. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork64(out *jwriter.Writer, in EventSubresourceWebBundleMetadataError) {
  6612. out.RawByte('{')
  6613. first := true
  6614. _ = first
  6615. {
  6616. const prefix string = ",\"requestId\":"
  6617. out.RawString(prefix[1:])
  6618. out.String(string(in.RequestID))
  6619. }
  6620. {
  6621. const prefix string = ",\"errorMessage\":"
  6622. out.RawString(prefix)
  6623. out.String(string(in.ErrorMessage))
  6624. }
  6625. out.RawByte('}')
  6626. }
  6627. // MarshalJSON supports json.Marshaler interface
  6628. func (v EventSubresourceWebBundleMetadataError) MarshalJSON() ([]byte, error) {
  6629. w := jwriter.Writer{}
  6630. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork64(&w, v)
  6631. return w.Buffer.BuildBytes(), w.Error
  6632. }
  6633. // MarshalEasyJSON supports easyjson.Marshaler interface
  6634. func (v EventSubresourceWebBundleMetadataError) MarshalEasyJSON(w *jwriter.Writer) {
  6635. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork64(w, v)
  6636. }
  6637. // UnmarshalJSON supports json.Unmarshaler interface
  6638. func (v *EventSubresourceWebBundleMetadataError) UnmarshalJSON(data []byte) error {
  6639. r := jlexer.Lexer{Data: data}
  6640. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork64(&r, v)
  6641. return r.Error()
  6642. }
  6643. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6644. func (v *EventSubresourceWebBundleMetadataError) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6645. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork64(l, v)
  6646. }
  6647. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork65(in *jlexer.Lexer, out *EventSubresourceWebBundleInnerResponseParsed) {
  6648. isTopLevel := in.IsStart()
  6649. if in.IsNull() {
  6650. if isTopLevel {
  6651. in.Consumed()
  6652. }
  6653. in.Skip()
  6654. return
  6655. }
  6656. in.Delim('{')
  6657. for !in.IsDelim('}') {
  6658. key := in.UnsafeFieldName(false)
  6659. in.WantColon()
  6660. if in.IsNull() {
  6661. in.Skip()
  6662. in.WantComma()
  6663. continue
  6664. }
  6665. switch key {
  6666. case "innerRequestId":
  6667. out.InnerRequestID = RequestID(in.String())
  6668. case "innerRequestURL":
  6669. out.InnerRequestURL = string(in.String())
  6670. case "bundleRequestId":
  6671. out.BundleRequestID = RequestID(in.String())
  6672. default:
  6673. in.SkipRecursive()
  6674. }
  6675. in.WantComma()
  6676. }
  6677. in.Delim('}')
  6678. if isTopLevel {
  6679. in.Consumed()
  6680. }
  6681. }
  6682. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork65(out *jwriter.Writer, in EventSubresourceWebBundleInnerResponseParsed) {
  6683. out.RawByte('{')
  6684. first := true
  6685. _ = first
  6686. {
  6687. const prefix string = ",\"innerRequestId\":"
  6688. out.RawString(prefix[1:])
  6689. out.String(string(in.InnerRequestID))
  6690. }
  6691. {
  6692. const prefix string = ",\"innerRequestURL\":"
  6693. out.RawString(prefix)
  6694. out.String(string(in.InnerRequestURL))
  6695. }
  6696. if in.BundleRequestID != "" {
  6697. const prefix string = ",\"bundleRequestId\":"
  6698. out.RawString(prefix)
  6699. out.String(string(in.BundleRequestID))
  6700. }
  6701. out.RawByte('}')
  6702. }
  6703. // MarshalJSON supports json.Marshaler interface
  6704. func (v EventSubresourceWebBundleInnerResponseParsed) MarshalJSON() ([]byte, error) {
  6705. w := jwriter.Writer{}
  6706. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork65(&w, v)
  6707. return w.Buffer.BuildBytes(), w.Error
  6708. }
  6709. // MarshalEasyJSON supports easyjson.Marshaler interface
  6710. func (v EventSubresourceWebBundleInnerResponseParsed) MarshalEasyJSON(w *jwriter.Writer) {
  6711. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork65(w, v)
  6712. }
  6713. // UnmarshalJSON supports json.Unmarshaler interface
  6714. func (v *EventSubresourceWebBundleInnerResponseParsed) UnmarshalJSON(data []byte) error {
  6715. r := jlexer.Lexer{Data: data}
  6716. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork65(&r, v)
  6717. return r.Error()
  6718. }
  6719. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6720. func (v *EventSubresourceWebBundleInnerResponseParsed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6721. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork65(l, v)
  6722. }
  6723. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork66(in *jlexer.Lexer, out *EventSubresourceWebBundleInnerResponseError) {
  6724. isTopLevel := in.IsStart()
  6725. if in.IsNull() {
  6726. if isTopLevel {
  6727. in.Consumed()
  6728. }
  6729. in.Skip()
  6730. return
  6731. }
  6732. in.Delim('{')
  6733. for !in.IsDelim('}') {
  6734. key := in.UnsafeFieldName(false)
  6735. in.WantColon()
  6736. if in.IsNull() {
  6737. in.Skip()
  6738. in.WantComma()
  6739. continue
  6740. }
  6741. switch key {
  6742. case "innerRequestId":
  6743. out.InnerRequestID = RequestID(in.String())
  6744. case "innerRequestURL":
  6745. out.InnerRequestURL = string(in.String())
  6746. case "errorMessage":
  6747. out.ErrorMessage = string(in.String())
  6748. case "bundleRequestId":
  6749. out.BundleRequestID = RequestID(in.String())
  6750. default:
  6751. in.SkipRecursive()
  6752. }
  6753. in.WantComma()
  6754. }
  6755. in.Delim('}')
  6756. if isTopLevel {
  6757. in.Consumed()
  6758. }
  6759. }
  6760. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork66(out *jwriter.Writer, in EventSubresourceWebBundleInnerResponseError) {
  6761. out.RawByte('{')
  6762. first := true
  6763. _ = first
  6764. {
  6765. const prefix string = ",\"innerRequestId\":"
  6766. out.RawString(prefix[1:])
  6767. out.String(string(in.InnerRequestID))
  6768. }
  6769. {
  6770. const prefix string = ",\"innerRequestURL\":"
  6771. out.RawString(prefix)
  6772. out.String(string(in.InnerRequestURL))
  6773. }
  6774. {
  6775. const prefix string = ",\"errorMessage\":"
  6776. out.RawString(prefix)
  6777. out.String(string(in.ErrorMessage))
  6778. }
  6779. if in.BundleRequestID != "" {
  6780. const prefix string = ",\"bundleRequestId\":"
  6781. out.RawString(prefix)
  6782. out.String(string(in.BundleRequestID))
  6783. }
  6784. out.RawByte('}')
  6785. }
  6786. // MarshalJSON supports json.Marshaler interface
  6787. func (v EventSubresourceWebBundleInnerResponseError) MarshalJSON() ([]byte, error) {
  6788. w := jwriter.Writer{}
  6789. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork66(&w, v)
  6790. return w.Buffer.BuildBytes(), w.Error
  6791. }
  6792. // MarshalEasyJSON supports easyjson.Marshaler interface
  6793. func (v EventSubresourceWebBundleInnerResponseError) MarshalEasyJSON(w *jwriter.Writer) {
  6794. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork66(w, v)
  6795. }
  6796. // UnmarshalJSON supports json.Unmarshaler interface
  6797. func (v *EventSubresourceWebBundleInnerResponseError) UnmarshalJSON(data []byte) error {
  6798. r := jlexer.Lexer{Data: data}
  6799. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork66(&r, v)
  6800. return r.Error()
  6801. }
  6802. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6803. func (v *EventSubresourceWebBundleInnerResponseError) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6804. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork66(l, v)
  6805. }
  6806. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork67(in *jlexer.Lexer, out *EventSignedExchangeReceived) {
  6807. isTopLevel := in.IsStart()
  6808. if in.IsNull() {
  6809. if isTopLevel {
  6810. in.Consumed()
  6811. }
  6812. in.Skip()
  6813. return
  6814. }
  6815. in.Delim('{')
  6816. for !in.IsDelim('}') {
  6817. key := in.UnsafeFieldName(false)
  6818. in.WantColon()
  6819. if in.IsNull() {
  6820. in.Skip()
  6821. in.WantComma()
  6822. continue
  6823. }
  6824. switch key {
  6825. case "requestId":
  6826. out.RequestID = RequestID(in.String())
  6827. case "info":
  6828. if in.IsNull() {
  6829. in.Skip()
  6830. out.Info = nil
  6831. } else {
  6832. if out.Info == nil {
  6833. out.Info = new(SignedExchangeInfo)
  6834. }
  6835. (*out.Info).UnmarshalEasyJSON(in)
  6836. }
  6837. default:
  6838. in.SkipRecursive()
  6839. }
  6840. in.WantComma()
  6841. }
  6842. in.Delim('}')
  6843. if isTopLevel {
  6844. in.Consumed()
  6845. }
  6846. }
  6847. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork67(out *jwriter.Writer, in EventSignedExchangeReceived) {
  6848. out.RawByte('{')
  6849. first := true
  6850. _ = first
  6851. {
  6852. const prefix string = ",\"requestId\":"
  6853. out.RawString(prefix[1:])
  6854. out.String(string(in.RequestID))
  6855. }
  6856. {
  6857. const prefix string = ",\"info\":"
  6858. out.RawString(prefix)
  6859. if in.Info == nil {
  6860. out.RawString("null")
  6861. } else {
  6862. (*in.Info).MarshalEasyJSON(out)
  6863. }
  6864. }
  6865. out.RawByte('}')
  6866. }
  6867. // MarshalJSON supports json.Marshaler interface
  6868. func (v EventSignedExchangeReceived) MarshalJSON() ([]byte, error) {
  6869. w := jwriter.Writer{}
  6870. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork67(&w, v)
  6871. return w.Buffer.BuildBytes(), w.Error
  6872. }
  6873. // MarshalEasyJSON supports easyjson.Marshaler interface
  6874. func (v EventSignedExchangeReceived) MarshalEasyJSON(w *jwriter.Writer) {
  6875. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork67(w, v)
  6876. }
  6877. // UnmarshalJSON supports json.Unmarshaler interface
  6878. func (v *EventSignedExchangeReceived) UnmarshalJSON(data []byte) error {
  6879. r := jlexer.Lexer{Data: data}
  6880. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork67(&r, v)
  6881. return r.Error()
  6882. }
  6883. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6884. func (v *EventSignedExchangeReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6885. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork67(l, v)
  6886. }
  6887. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork68(in *jlexer.Lexer, out *EventResponseReceivedExtraInfo) {
  6888. isTopLevel := in.IsStart()
  6889. if in.IsNull() {
  6890. if isTopLevel {
  6891. in.Consumed()
  6892. }
  6893. in.Skip()
  6894. return
  6895. }
  6896. in.Delim('{')
  6897. for !in.IsDelim('}') {
  6898. key := in.UnsafeFieldName(false)
  6899. in.WantColon()
  6900. if in.IsNull() {
  6901. in.Skip()
  6902. in.WantComma()
  6903. continue
  6904. }
  6905. switch key {
  6906. case "requestId":
  6907. out.RequestID = RequestID(in.String())
  6908. case "blockedCookies":
  6909. if in.IsNull() {
  6910. in.Skip()
  6911. out.BlockedCookies = nil
  6912. } else {
  6913. in.Delim('[')
  6914. if out.BlockedCookies == nil {
  6915. if !in.IsDelim(']') {
  6916. out.BlockedCookies = make([]*BlockedSetCookieWithReason, 0, 8)
  6917. } else {
  6918. out.BlockedCookies = []*BlockedSetCookieWithReason{}
  6919. }
  6920. } else {
  6921. out.BlockedCookies = (out.BlockedCookies)[:0]
  6922. }
  6923. for !in.IsDelim(']') {
  6924. var v67 *BlockedSetCookieWithReason
  6925. if in.IsNull() {
  6926. in.Skip()
  6927. v67 = nil
  6928. } else {
  6929. if v67 == nil {
  6930. v67 = new(BlockedSetCookieWithReason)
  6931. }
  6932. (*v67).UnmarshalEasyJSON(in)
  6933. }
  6934. out.BlockedCookies = append(out.BlockedCookies, v67)
  6935. in.WantComma()
  6936. }
  6937. in.Delim(']')
  6938. }
  6939. case "headers":
  6940. if in.IsNull() {
  6941. in.Skip()
  6942. } else {
  6943. in.Delim('{')
  6944. out.Headers = make(Headers)
  6945. for !in.IsDelim('}') {
  6946. key := string(in.String())
  6947. in.WantColon()
  6948. var v68 interface{}
  6949. if m, ok := v68.(easyjson.Unmarshaler); ok {
  6950. m.UnmarshalEasyJSON(in)
  6951. } else if m, ok := v68.(json.Unmarshaler); ok {
  6952. _ = m.UnmarshalJSON(in.Raw())
  6953. } else {
  6954. v68 = in.Interface()
  6955. }
  6956. (out.Headers)[key] = v68
  6957. in.WantComma()
  6958. }
  6959. in.Delim('}')
  6960. }
  6961. case "resourceIPAddressSpace":
  6962. (out.ResourceIPAddressSpace).UnmarshalEasyJSON(in)
  6963. case "statusCode":
  6964. out.StatusCode = int64(in.Int64())
  6965. case "headersText":
  6966. out.HeadersText = string(in.String())
  6967. case "cookiePartitionKey":
  6968. out.CookiePartitionKey = string(in.String())
  6969. case "cookiePartitionKeyOpaque":
  6970. out.CookiePartitionKeyOpaque = bool(in.Bool())
  6971. case "exemptedCookies":
  6972. if in.IsNull() {
  6973. in.Skip()
  6974. out.ExemptedCookies = nil
  6975. } else {
  6976. in.Delim('[')
  6977. if out.ExemptedCookies == nil {
  6978. if !in.IsDelim(']') {
  6979. out.ExemptedCookies = make([]*ExemptedSetCookieWithReason, 0, 8)
  6980. } else {
  6981. out.ExemptedCookies = []*ExemptedSetCookieWithReason{}
  6982. }
  6983. } else {
  6984. out.ExemptedCookies = (out.ExemptedCookies)[:0]
  6985. }
  6986. for !in.IsDelim(']') {
  6987. var v69 *ExemptedSetCookieWithReason
  6988. if in.IsNull() {
  6989. in.Skip()
  6990. v69 = nil
  6991. } else {
  6992. if v69 == nil {
  6993. v69 = new(ExemptedSetCookieWithReason)
  6994. }
  6995. (*v69).UnmarshalEasyJSON(in)
  6996. }
  6997. out.ExemptedCookies = append(out.ExemptedCookies, v69)
  6998. in.WantComma()
  6999. }
  7000. in.Delim(']')
  7001. }
  7002. default:
  7003. in.SkipRecursive()
  7004. }
  7005. in.WantComma()
  7006. }
  7007. in.Delim('}')
  7008. if isTopLevel {
  7009. in.Consumed()
  7010. }
  7011. }
  7012. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork68(out *jwriter.Writer, in EventResponseReceivedExtraInfo) {
  7013. out.RawByte('{')
  7014. first := true
  7015. _ = first
  7016. {
  7017. const prefix string = ",\"requestId\":"
  7018. out.RawString(prefix[1:])
  7019. out.String(string(in.RequestID))
  7020. }
  7021. {
  7022. const prefix string = ",\"blockedCookies\":"
  7023. out.RawString(prefix)
  7024. if in.BlockedCookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  7025. out.RawString("null")
  7026. } else {
  7027. out.RawByte('[')
  7028. for v70, v71 := range in.BlockedCookies {
  7029. if v70 > 0 {
  7030. out.RawByte(',')
  7031. }
  7032. if v71 == nil {
  7033. out.RawString("null")
  7034. } else {
  7035. (*v71).MarshalEasyJSON(out)
  7036. }
  7037. }
  7038. out.RawByte(']')
  7039. }
  7040. }
  7041. {
  7042. const prefix string = ",\"headers\":"
  7043. out.RawString(prefix)
  7044. if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  7045. out.RawString(`null`)
  7046. } else {
  7047. out.RawByte('{')
  7048. v72First := true
  7049. for v72Name, v72Value := range in.Headers {
  7050. if v72First {
  7051. v72First = false
  7052. } else {
  7053. out.RawByte(',')
  7054. }
  7055. out.String(string(v72Name))
  7056. out.RawByte(':')
  7057. if m, ok := v72Value.(easyjson.Marshaler); ok {
  7058. m.MarshalEasyJSON(out)
  7059. } else if m, ok := v72Value.(json.Marshaler); ok {
  7060. out.Raw(m.MarshalJSON())
  7061. } else {
  7062. out.Raw(json.Marshal(v72Value))
  7063. }
  7064. }
  7065. out.RawByte('}')
  7066. }
  7067. }
  7068. {
  7069. const prefix string = ",\"resourceIPAddressSpace\":"
  7070. out.RawString(prefix)
  7071. (in.ResourceIPAddressSpace).MarshalEasyJSON(out)
  7072. }
  7073. {
  7074. const prefix string = ",\"statusCode\":"
  7075. out.RawString(prefix)
  7076. out.Int64(int64(in.StatusCode))
  7077. }
  7078. if in.HeadersText != "" {
  7079. const prefix string = ",\"headersText\":"
  7080. out.RawString(prefix)
  7081. out.String(string(in.HeadersText))
  7082. }
  7083. if in.CookiePartitionKey != "" {
  7084. const prefix string = ",\"cookiePartitionKey\":"
  7085. out.RawString(prefix)
  7086. out.String(string(in.CookiePartitionKey))
  7087. }
  7088. if in.CookiePartitionKeyOpaque {
  7089. const prefix string = ",\"cookiePartitionKeyOpaque\":"
  7090. out.RawString(prefix)
  7091. out.Bool(bool(in.CookiePartitionKeyOpaque))
  7092. }
  7093. if len(in.ExemptedCookies) != 0 {
  7094. const prefix string = ",\"exemptedCookies\":"
  7095. out.RawString(prefix)
  7096. {
  7097. out.RawByte('[')
  7098. for v73, v74 := range in.ExemptedCookies {
  7099. if v73 > 0 {
  7100. out.RawByte(',')
  7101. }
  7102. if v74 == nil {
  7103. out.RawString("null")
  7104. } else {
  7105. (*v74).MarshalEasyJSON(out)
  7106. }
  7107. }
  7108. out.RawByte(']')
  7109. }
  7110. }
  7111. out.RawByte('}')
  7112. }
  7113. // MarshalJSON supports json.Marshaler interface
  7114. func (v EventResponseReceivedExtraInfo) MarshalJSON() ([]byte, error) {
  7115. w := jwriter.Writer{}
  7116. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork68(&w, v)
  7117. return w.Buffer.BuildBytes(), w.Error
  7118. }
  7119. // MarshalEasyJSON supports easyjson.Marshaler interface
  7120. func (v EventResponseReceivedExtraInfo) MarshalEasyJSON(w *jwriter.Writer) {
  7121. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork68(w, v)
  7122. }
  7123. // UnmarshalJSON supports json.Unmarshaler interface
  7124. func (v *EventResponseReceivedExtraInfo) UnmarshalJSON(data []byte) error {
  7125. r := jlexer.Lexer{Data: data}
  7126. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork68(&r, v)
  7127. return r.Error()
  7128. }
  7129. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7130. func (v *EventResponseReceivedExtraInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7131. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork68(l, v)
  7132. }
  7133. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork69(in *jlexer.Lexer, out *EventResponseReceivedEarlyHints) {
  7134. isTopLevel := in.IsStart()
  7135. if in.IsNull() {
  7136. if isTopLevel {
  7137. in.Consumed()
  7138. }
  7139. in.Skip()
  7140. return
  7141. }
  7142. in.Delim('{')
  7143. for !in.IsDelim('}') {
  7144. key := in.UnsafeFieldName(false)
  7145. in.WantColon()
  7146. if in.IsNull() {
  7147. in.Skip()
  7148. in.WantComma()
  7149. continue
  7150. }
  7151. switch key {
  7152. case "requestId":
  7153. out.RequestID = RequestID(in.String())
  7154. case "headers":
  7155. if in.IsNull() {
  7156. in.Skip()
  7157. } else {
  7158. in.Delim('{')
  7159. out.Headers = make(Headers)
  7160. for !in.IsDelim('}') {
  7161. key := string(in.String())
  7162. in.WantColon()
  7163. var v75 interface{}
  7164. if m, ok := v75.(easyjson.Unmarshaler); ok {
  7165. m.UnmarshalEasyJSON(in)
  7166. } else if m, ok := v75.(json.Unmarshaler); ok {
  7167. _ = m.UnmarshalJSON(in.Raw())
  7168. } else {
  7169. v75 = in.Interface()
  7170. }
  7171. (out.Headers)[key] = v75
  7172. in.WantComma()
  7173. }
  7174. in.Delim('}')
  7175. }
  7176. default:
  7177. in.SkipRecursive()
  7178. }
  7179. in.WantComma()
  7180. }
  7181. in.Delim('}')
  7182. if isTopLevel {
  7183. in.Consumed()
  7184. }
  7185. }
  7186. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork69(out *jwriter.Writer, in EventResponseReceivedEarlyHints) {
  7187. out.RawByte('{')
  7188. first := true
  7189. _ = first
  7190. {
  7191. const prefix string = ",\"requestId\":"
  7192. out.RawString(prefix[1:])
  7193. out.String(string(in.RequestID))
  7194. }
  7195. {
  7196. const prefix string = ",\"headers\":"
  7197. out.RawString(prefix)
  7198. if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  7199. out.RawString(`null`)
  7200. } else {
  7201. out.RawByte('{')
  7202. v76First := true
  7203. for v76Name, v76Value := range in.Headers {
  7204. if v76First {
  7205. v76First = false
  7206. } else {
  7207. out.RawByte(',')
  7208. }
  7209. out.String(string(v76Name))
  7210. out.RawByte(':')
  7211. if m, ok := v76Value.(easyjson.Marshaler); ok {
  7212. m.MarshalEasyJSON(out)
  7213. } else if m, ok := v76Value.(json.Marshaler); ok {
  7214. out.Raw(m.MarshalJSON())
  7215. } else {
  7216. out.Raw(json.Marshal(v76Value))
  7217. }
  7218. }
  7219. out.RawByte('}')
  7220. }
  7221. }
  7222. out.RawByte('}')
  7223. }
  7224. // MarshalJSON supports json.Marshaler interface
  7225. func (v EventResponseReceivedEarlyHints) MarshalJSON() ([]byte, error) {
  7226. w := jwriter.Writer{}
  7227. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork69(&w, v)
  7228. return w.Buffer.BuildBytes(), w.Error
  7229. }
  7230. // MarshalEasyJSON supports easyjson.Marshaler interface
  7231. func (v EventResponseReceivedEarlyHints) MarshalEasyJSON(w *jwriter.Writer) {
  7232. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork69(w, v)
  7233. }
  7234. // UnmarshalJSON supports json.Unmarshaler interface
  7235. func (v *EventResponseReceivedEarlyHints) UnmarshalJSON(data []byte) error {
  7236. r := jlexer.Lexer{Data: data}
  7237. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork69(&r, v)
  7238. return r.Error()
  7239. }
  7240. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7241. func (v *EventResponseReceivedEarlyHints) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7242. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork69(l, v)
  7243. }
  7244. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork70(in *jlexer.Lexer, out *EventResponseReceived) {
  7245. isTopLevel := in.IsStart()
  7246. if in.IsNull() {
  7247. if isTopLevel {
  7248. in.Consumed()
  7249. }
  7250. in.Skip()
  7251. return
  7252. }
  7253. in.Delim('{')
  7254. for !in.IsDelim('}') {
  7255. key := in.UnsafeFieldName(false)
  7256. in.WantColon()
  7257. if in.IsNull() {
  7258. in.Skip()
  7259. in.WantComma()
  7260. continue
  7261. }
  7262. switch key {
  7263. case "requestId":
  7264. out.RequestID = RequestID(in.String())
  7265. case "loaderId":
  7266. out.LoaderID = cdp.LoaderID(in.String())
  7267. case "timestamp":
  7268. if in.IsNull() {
  7269. in.Skip()
  7270. out.Timestamp = nil
  7271. } else {
  7272. if out.Timestamp == nil {
  7273. out.Timestamp = new(cdp.MonotonicTime)
  7274. }
  7275. (*out.Timestamp).UnmarshalEasyJSON(in)
  7276. }
  7277. case "type":
  7278. (out.Type).UnmarshalEasyJSON(in)
  7279. case "response":
  7280. if in.IsNull() {
  7281. in.Skip()
  7282. out.Response = nil
  7283. } else {
  7284. if out.Response == nil {
  7285. out.Response = new(Response)
  7286. }
  7287. (*out.Response).UnmarshalEasyJSON(in)
  7288. }
  7289. case "hasExtraInfo":
  7290. out.HasExtraInfo = bool(in.Bool())
  7291. case "frameId":
  7292. (out.FrameID).UnmarshalEasyJSON(in)
  7293. default:
  7294. in.SkipRecursive()
  7295. }
  7296. in.WantComma()
  7297. }
  7298. in.Delim('}')
  7299. if isTopLevel {
  7300. in.Consumed()
  7301. }
  7302. }
  7303. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork70(out *jwriter.Writer, in EventResponseReceived) {
  7304. out.RawByte('{')
  7305. first := true
  7306. _ = first
  7307. {
  7308. const prefix string = ",\"requestId\":"
  7309. out.RawString(prefix[1:])
  7310. out.String(string(in.RequestID))
  7311. }
  7312. {
  7313. const prefix string = ",\"loaderId\":"
  7314. out.RawString(prefix)
  7315. out.String(string(in.LoaderID))
  7316. }
  7317. {
  7318. const prefix string = ",\"timestamp\":"
  7319. out.RawString(prefix)
  7320. if in.Timestamp == nil {
  7321. out.RawString("null")
  7322. } else {
  7323. (*in.Timestamp).MarshalEasyJSON(out)
  7324. }
  7325. }
  7326. {
  7327. const prefix string = ",\"type\":"
  7328. out.RawString(prefix)
  7329. (in.Type).MarshalEasyJSON(out)
  7330. }
  7331. {
  7332. const prefix string = ",\"response\":"
  7333. out.RawString(prefix)
  7334. if in.Response == nil {
  7335. out.RawString("null")
  7336. } else {
  7337. (*in.Response).MarshalEasyJSON(out)
  7338. }
  7339. }
  7340. {
  7341. const prefix string = ",\"hasExtraInfo\":"
  7342. out.RawString(prefix)
  7343. out.Bool(bool(in.HasExtraInfo))
  7344. }
  7345. if in.FrameID != "" {
  7346. const prefix string = ",\"frameId\":"
  7347. out.RawString(prefix)
  7348. out.String(string(in.FrameID))
  7349. }
  7350. out.RawByte('}')
  7351. }
  7352. // MarshalJSON supports json.Marshaler interface
  7353. func (v EventResponseReceived) MarshalJSON() ([]byte, error) {
  7354. w := jwriter.Writer{}
  7355. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork70(&w, v)
  7356. return w.Buffer.BuildBytes(), w.Error
  7357. }
  7358. // MarshalEasyJSON supports easyjson.Marshaler interface
  7359. func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer) {
  7360. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork70(w, v)
  7361. }
  7362. // UnmarshalJSON supports json.Unmarshaler interface
  7363. func (v *EventResponseReceived) UnmarshalJSON(data []byte) error {
  7364. r := jlexer.Lexer{Data: data}
  7365. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork70(&r, v)
  7366. return r.Error()
  7367. }
  7368. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7369. func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7370. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork70(l, v)
  7371. }
  7372. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork71(in *jlexer.Lexer, out *EventResourceChangedPriority) {
  7373. isTopLevel := in.IsStart()
  7374. if in.IsNull() {
  7375. if isTopLevel {
  7376. in.Consumed()
  7377. }
  7378. in.Skip()
  7379. return
  7380. }
  7381. in.Delim('{')
  7382. for !in.IsDelim('}') {
  7383. key := in.UnsafeFieldName(false)
  7384. in.WantColon()
  7385. if in.IsNull() {
  7386. in.Skip()
  7387. in.WantComma()
  7388. continue
  7389. }
  7390. switch key {
  7391. case "requestId":
  7392. out.RequestID = RequestID(in.String())
  7393. case "newPriority":
  7394. (out.NewPriority).UnmarshalEasyJSON(in)
  7395. case "timestamp":
  7396. if in.IsNull() {
  7397. in.Skip()
  7398. out.Timestamp = nil
  7399. } else {
  7400. if out.Timestamp == nil {
  7401. out.Timestamp = new(cdp.MonotonicTime)
  7402. }
  7403. (*out.Timestamp).UnmarshalEasyJSON(in)
  7404. }
  7405. default:
  7406. in.SkipRecursive()
  7407. }
  7408. in.WantComma()
  7409. }
  7410. in.Delim('}')
  7411. if isTopLevel {
  7412. in.Consumed()
  7413. }
  7414. }
  7415. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork71(out *jwriter.Writer, in EventResourceChangedPriority) {
  7416. out.RawByte('{')
  7417. first := true
  7418. _ = first
  7419. {
  7420. const prefix string = ",\"requestId\":"
  7421. out.RawString(prefix[1:])
  7422. out.String(string(in.RequestID))
  7423. }
  7424. {
  7425. const prefix string = ",\"newPriority\":"
  7426. out.RawString(prefix)
  7427. (in.NewPriority).MarshalEasyJSON(out)
  7428. }
  7429. {
  7430. const prefix string = ",\"timestamp\":"
  7431. out.RawString(prefix)
  7432. if in.Timestamp == nil {
  7433. out.RawString("null")
  7434. } else {
  7435. (*in.Timestamp).MarshalEasyJSON(out)
  7436. }
  7437. }
  7438. out.RawByte('}')
  7439. }
  7440. // MarshalJSON supports json.Marshaler interface
  7441. func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error) {
  7442. w := jwriter.Writer{}
  7443. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork71(&w, v)
  7444. return w.Buffer.BuildBytes(), w.Error
  7445. }
  7446. // MarshalEasyJSON supports easyjson.Marshaler interface
  7447. func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer) {
  7448. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork71(w, v)
  7449. }
  7450. // UnmarshalJSON supports json.Unmarshaler interface
  7451. func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error {
  7452. r := jlexer.Lexer{Data: data}
  7453. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork71(&r, v)
  7454. return r.Error()
  7455. }
  7456. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7457. func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7458. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork71(l, v)
  7459. }
  7460. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork72(in *jlexer.Lexer, out *EventRequestWillBeSentExtraInfo) {
  7461. isTopLevel := in.IsStart()
  7462. if in.IsNull() {
  7463. if isTopLevel {
  7464. in.Consumed()
  7465. }
  7466. in.Skip()
  7467. return
  7468. }
  7469. in.Delim('{')
  7470. for !in.IsDelim('}') {
  7471. key := in.UnsafeFieldName(false)
  7472. in.WantColon()
  7473. if in.IsNull() {
  7474. in.Skip()
  7475. in.WantComma()
  7476. continue
  7477. }
  7478. switch key {
  7479. case "requestId":
  7480. out.RequestID = RequestID(in.String())
  7481. case "associatedCookies":
  7482. if in.IsNull() {
  7483. in.Skip()
  7484. out.AssociatedCookies = nil
  7485. } else {
  7486. in.Delim('[')
  7487. if out.AssociatedCookies == nil {
  7488. if !in.IsDelim(']') {
  7489. out.AssociatedCookies = make([]*AssociatedCookie, 0, 8)
  7490. } else {
  7491. out.AssociatedCookies = []*AssociatedCookie{}
  7492. }
  7493. } else {
  7494. out.AssociatedCookies = (out.AssociatedCookies)[:0]
  7495. }
  7496. for !in.IsDelim(']') {
  7497. var v77 *AssociatedCookie
  7498. if in.IsNull() {
  7499. in.Skip()
  7500. v77 = nil
  7501. } else {
  7502. if v77 == nil {
  7503. v77 = new(AssociatedCookie)
  7504. }
  7505. (*v77).UnmarshalEasyJSON(in)
  7506. }
  7507. out.AssociatedCookies = append(out.AssociatedCookies, v77)
  7508. in.WantComma()
  7509. }
  7510. in.Delim(']')
  7511. }
  7512. case "headers":
  7513. if in.IsNull() {
  7514. in.Skip()
  7515. } else {
  7516. in.Delim('{')
  7517. out.Headers = make(Headers)
  7518. for !in.IsDelim('}') {
  7519. key := string(in.String())
  7520. in.WantColon()
  7521. var v78 interface{}
  7522. if m, ok := v78.(easyjson.Unmarshaler); ok {
  7523. m.UnmarshalEasyJSON(in)
  7524. } else if m, ok := v78.(json.Unmarshaler); ok {
  7525. _ = m.UnmarshalJSON(in.Raw())
  7526. } else {
  7527. v78 = in.Interface()
  7528. }
  7529. (out.Headers)[key] = v78
  7530. in.WantComma()
  7531. }
  7532. in.Delim('}')
  7533. }
  7534. case "connectTiming":
  7535. if in.IsNull() {
  7536. in.Skip()
  7537. out.ConnectTiming = nil
  7538. } else {
  7539. if out.ConnectTiming == nil {
  7540. out.ConnectTiming = new(ConnectTiming)
  7541. }
  7542. (*out.ConnectTiming).UnmarshalEasyJSON(in)
  7543. }
  7544. case "clientSecurityState":
  7545. if in.IsNull() {
  7546. in.Skip()
  7547. out.ClientSecurityState = nil
  7548. } else {
  7549. if out.ClientSecurityState == nil {
  7550. out.ClientSecurityState = new(ClientSecurityState)
  7551. }
  7552. (*out.ClientSecurityState).UnmarshalEasyJSON(in)
  7553. }
  7554. case "siteHasCookieInOtherPartition":
  7555. out.SiteHasCookieInOtherPartition = bool(in.Bool())
  7556. default:
  7557. in.SkipRecursive()
  7558. }
  7559. in.WantComma()
  7560. }
  7561. in.Delim('}')
  7562. if isTopLevel {
  7563. in.Consumed()
  7564. }
  7565. }
  7566. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork72(out *jwriter.Writer, in EventRequestWillBeSentExtraInfo) {
  7567. out.RawByte('{')
  7568. first := true
  7569. _ = first
  7570. {
  7571. const prefix string = ",\"requestId\":"
  7572. out.RawString(prefix[1:])
  7573. out.String(string(in.RequestID))
  7574. }
  7575. {
  7576. const prefix string = ",\"associatedCookies\":"
  7577. out.RawString(prefix)
  7578. if in.AssociatedCookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  7579. out.RawString("null")
  7580. } else {
  7581. out.RawByte('[')
  7582. for v79, v80 := range in.AssociatedCookies {
  7583. if v79 > 0 {
  7584. out.RawByte(',')
  7585. }
  7586. if v80 == nil {
  7587. out.RawString("null")
  7588. } else {
  7589. (*v80).MarshalEasyJSON(out)
  7590. }
  7591. }
  7592. out.RawByte(']')
  7593. }
  7594. }
  7595. {
  7596. const prefix string = ",\"headers\":"
  7597. out.RawString(prefix)
  7598. if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  7599. out.RawString(`null`)
  7600. } else {
  7601. out.RawByte('{')
  7602. v81First := true
  7603. for v81Name, v81Value := range in.Headers {
  7604. if v81First {
  7605. v81First = false
  7606. } else {
  7607. out.RawByte(',')
  7608. }
  7609. out.String(string(v81Name))
  7610. out.RawByte(':')
  7611. if m, ok := v81Value.(easyjson.Marshaler); ok {
  7612. m.MarshalEasyJSON(out)
  7613. } else if m, ok := v81Value.(json.Marshaler); ok {
  7614. out.Raw(m.MarshalJSON())
  7615. } else {
  7616. out.Raw(json.Marshal(v81Value))
  7617. }
  7618. }
  7619. out.RawByte('}')
  7620. }
  7621. }
  7622. {
  7623. const prefix string = ",\"connectTiming\":"
  7624. out.RawString(prefix)
  7625. if in.ConnectTiming == nil {
  7626. out.RawString("null")
  7627. } else {
  7628. (*in.ConnectTiming).MarshalEasyJSON(out)
  7629. }
  7630. }
  7631. if in.ClientSecurityState != nil {
  7632. const prefix string = ",\"clientSecurityState\":"
  7633. out.RawString(prefix)
  7634. (*in.ClientSecurityState).MarshalEasyJSON(out)
  7635. }
  7636. if in.SiteHasCookieInOtherPartition {
  7637. const prefix string = ",\"siteHasCookieInOtherPartition\":"
  7638. out.RawString(prefix)
  7639. out.Bool(bool(in.SiteHasCookieInOtherPartition))
  7640. }
  7641. out.RawByte('}')
  7642. }
  7643. // MarshalJSON supports json.Marshaler interface
  7644. func (v EventRequestWillBeSentExtraInfo) MarshalJSON() ([]byte, error) {
  7645. w := jwriter.Writer{}
  7646. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork72(&w, v)
  7647. return w.Buffer.BuildBytes(), w.Error
  7648. }
  7649. // MarshalEasyJSON supports easyjson.Marshaler interface
  7650. func (v EventRequestWillBeSentExtraInfo) MarshalEasyJSON(w *jwriter.Writer) {
  7651. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork72(w, v)
  7652. }
  7653. // UnmarshalJSON supports json.Unmarshaler interface
  7654. func (v *EventRequestWillBeSentExtraInfo) UnmarshalJSON(data []byte) error {
  7655. r := jlexer.Lexer{Data: data}
  7656. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork72(&r, v)
  7657. return r.Error()
  7658. }
  7659. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7660. func (v *EventRequestWillBeSentExtraInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7661. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork72(l, v)
  7662. }
  7663. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork73(in *jlexer.Lexer, out *EventRequestWillBeSent) {
  7664. isTopLevel := in.IsStart()
  7665. if in.IsNull() {
  7666. if isTopLevel {
  7667. in.Consumed()
  7668. }
  7669. in.Skip()
  7670. return
  7671. }
  7672. in.Delim('{')
  7673. for !in.IsDelim('}') {
  7674. key := in.UnsafeFieldName(false)
  7675. in.WantColon()
  7676. if in.IsNull() {
  7677. in.Skip()
  7678. in.WantComma()
  7679. continue
  7680. }
  7681. switch key {
  7682. case "requestId":
  7683. out.RequestID = RequestID(in.String())
  7684. case "loaderId":
  7685. out.LoaderID = cdp.LoaderID(in.String())
  7686. case "documentURL":
  7687. out.DocumentURL = string(in.String())
  7688. case "request":
  7689. if in.IsNull() {
  7690. in.Skip()
  7691. out.Request = nil
  7692. } else {
  7693. if out.Request == nil {
  7694. out.Request = new(Request)
  7695. }
  7696. (*out.Request).UnmarshalEasyJSON(in)
  7697. }
  7698. case "timestamp":
  7699. if in.IsNull() {
  7700. in.Skip()
  7701. out.Timestamp = nil
  7702. } else {
  7703. if out.Timestamp == nil {
  7704. out.Timestamp = new(cdp.MonotonicTime)
  7705. }
  7706. (*out.Timestamp).UnmarshalEasyJSON(in)
  7707. }
  7708. case "wallTime":
  7709. if in.IsNull() {
  7710. in.Skip()
  7711. out.WallTime = nil
  7712. } else {
  7713. if out.WallTime == nil {
  7714. out.WallTime = new(cdp.TimeSinceEpoch)
  7715. }
  7716. (*out.WallTime).UnmarshalEasyJSON(in)
  7717. }
  7718. case "initiator":
  7719. if in.IsNull() {
  7720. in.Skip()
  7721. out.Initiator = nil
  7722. } else {
  7723. if out.Initiator == nil {
  7724. out.Initiator = new(Initiator)
  7725. }
  7726. (*out.Initiator).UnmarshalEasyJSON(in)
  7727. }
  7728. case "redirectHasExtraInfo":
  7729. out.RedirectHasExtraInfo = bool(in.Bool())
  7730. case "redirectResponse":
  7731. if in.IsNull() {
  7732. in.Skip()
  7733. out.RedirectResponse = nil
  7734. } else {
  7735. if out.RedirectResponse == nil {
  7736. out.RedirectResponse = new(Response)
  7737. }
  7738. (*out.RedirectResponse).UnmarshalEasyJSON(in)
  7739. }
  7740. case "type":
  7741. (out.Type).UnmarshalEasyJSON(in)
  7742. case "frameId":
  7743. (out.FrameID).UnmarshalEasyJSON(in)
  7744. case "hasUserGesture":
  7745. out.HasUserGesture = bool(in.Bool())
  7746. default:
  7747. in.SkipRecursive()
  7748. }
  7749. in.WantComma()
  7750. }
  7751. in.Delim('}')
  7752. if isTopLevel {
  7753. in.Consumed()
  7754. }
  7755. }
  7756. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork73(out *jwriter.Writer, in EventRequestWillBeSent) {
  7757. out.RawByte('{')
  7758. first := true
  7759. _ = first
  7760. {
  7761. const prefix string = ",\"requestId\":"
  7762. out.RawString(prefix[1:])
  7763. out.String(string(in.RequestID))
  7764. }
  7765. {
  7766. const prefix string = ",\"loaderId\":"
  7767. out.RawString(prefix)
  7768. out.String(string(in.LoaderID))
  7769. }
  7770. {
  7771. const prefix string = ",\"documentURL\":"
  7772. out.RawString(prefix)
  7773. out.String(string(in.DocumentURL))
  7774. }
  7775. {
  7776. const prefix string = ",\"request\":"
  7777. out.RawString(prefix)
  7778. if in.Request == nil {
  7779. out.RawString("null")
  7780. } else {
  7781. (*in.Request).MarshalEasyJSON(out)
  7782. }
  7783. }
  7784. {
  7785. const prefix string = ",\"timestamp\":"
  7786. out.RawString(prefix)
  7787. if in.Timestamp == nil {
  7788. out.RawString("null")
  7789. } else {
  7790. (*in.Timestamp).MarshalEasyJSON(out)
  7791. }
  7792. }
  7793. {
  7794. const prefix string = ",\"wallTime\":"
  7795. out.RawString(prefix)
  7796. if in.WallTime == nil {
  7797. out.RawString("null")
  7798. } else {
  7799. (*in.WallTime).MarshalEasyJSON(out)
  7800. }
  7801. }
  7802. {
  7803. const prefix string = ",\"initiator\":"
  7804. out.RawString(prefix)
  7805. if in.Initiator == nil {
  7806. out.RawString("null")
  7807. } else {
  7808. (*in.Initiator).MarshalEasyJSON(out)
  7809. }
  7810. }
  7811. {
  7812. const prefix string = ",\"redirectHasExtraInfo\":"
  7813. out.RawString(prefix)
  7814. out.Bool(bool(in.RedirectHasExtraInfo))
  7815. }
  7816. if in.RedirectResponse != nil {
  7817. const prefix string = ",\"redirectResponse\":"
  7818. out.RawString(prefix)
  7819. (*in.RedirectResponse).MarshalEasyJSON(out)
  7820. }
  7821. if in.Type != "" {
  7822. const prefix string = ",\"type\":"
  7823. out.RawString(prefix)
  7824. (in.Type).MarshalEasyJSON(out)
  7825. }
  7826. if in.FrameID != "" {
  7827. const prefix string = ",\"frameId\":"
  7828. out.RawString(prefix)
  7829. out.String(string(in.FrameID))
  7830. }
  7831. if in.HasUserGesture {
  7832. const prefix string = ",\"hasUserGesture\":"
  7833. out.RawString(prefix)
  7834. out.Bool(bool(in.HasUserGesture))
  7835. }
  7836. out.RawByte('}')
  7837. }
  7838. // MarshalJSON supports json.Marshaler interface
  7839. func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error) {
  7840. w := jwriter.Writer{}
  7841. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork73(&w, v)
  7842. return w.Buffer.BuildBytes(), w.Error
  7843. }
  7844. // MarshalEasyJSON supports easyjson.Marshaler interface
  7845. func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer) {
  7846. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork73(w, v)
  7847. }
  7848. // UnmarshalJSON supports json.Unmarshaler interface
  7849. func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error {
  7850. r := jlexer.Lexer{Data: data}
  7851. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork73(&r, v)
  7852. return r.Error()
  7853. }
  7854. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7855. func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7856. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork73(l, v)
  7857. }
  7858. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork74(in *jlexer.Lexer, out *EventRequestServedFromCache) {
  7859. isTopLevel := in.IsStart()
  7860. if in.IsNull() {
  7861. if isTopLevel {
  7862. in.Consumed()
  7863. }
  7864. in.Skip()
  7865. return
  7866. }
  7867. in.Delim('{')
  7868. for !in.IsDelim('}') {
  7869. key := in.UnsafeFieldName(false)
  7870. in.WantColon()
  7871. if in.IsNull() {
  7872. in.Skip()
  7873. in.WantComma()
  7874. continue
  7875. }
  7876. switch key {
  7877. case "requestId":
  7878. out.RequestID = RequestID(in.String())
  7879. default:
  7880. in.SkipRecursive()
  7881. }
  7882. in.WantComma()
  7883. }
  7884. in.Delim('}')
  7885. if isTopLevel {
  7886. in.Consumed()
  7887. }
  7888. }
  7889. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork74(out *jwriter.Writer, in EventRequestServedFromCache) {
  7890. out.RawByte('{')
  7891. first := true
  7892. _ = first
  7893. {
  7894. const prefix string = ",\"requestId\":"
  7895. out.RawString(prefix[1:])
  7896. out.String(string(in.RequestID))
  7897. }
  7898. out.RawByte('}')
  7899. }
  7900. // MarshalJSON supports json.Marshaler interface
  7901. func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error) {
  7902. w := jwriter.Writer{}
  7903. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork74(&w, v)
  7904. return w.Buffer.BuildBytes(), w.Error
  7905. }
  7906. // MarshalEasyJSON supports easyjson.Marshaler interface
  7907. func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer) {
  7908. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork74(w, v)
  7909. }
  7910. // UnmarshalJSON supports json.Unmarshaler interface
  7911. func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error {
  7912. r := jlexer.Lexer{Data: data}
  7913. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork74(&r, v)
  7914. return r.Error()
  7915. }
  7916. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7917. func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7918. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork74(l, v)
  7919. }
  7920. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork75(in *jlexer.Lexer, out *EventReportingAPIReportUpdated) {
  7921. isTopLevel := in.IsStart()
  7922. if in.IsNull() {
  7923. if isTopLevel {
  7924. in.Consumed()
  7925. }
  7926. in.Skip()
  7927. return
  7928. }
  7929. in.Delim('{')
  7930. for !in.IsDelim('}') {
  7931. key := in.UnsafeFieldName(false)
  7932. in.WantColon()
  7933. if in.IsNull() {
  7934. in.Skip()
  7935. in.WantComma()
  7936. continue
  7937. }
  7938. switch key {
  7939. case "report":
  7940. if in.IsNull() {
  7941. in.Skip()
  7942. out.Report = nil
  7943. } else {
  7944. if out.Report == nil {
  7945. out.Report = new(ReportingAPIReport)
  7946. }
  7947. (*out.Report).UnmarshalEasyJSON(in)
  7948. }
  7949. default:
  7950. in.SkipRecursive()
  7951. }
  7952. in.WantComma()
  7953. }
  7954. in.Delim('}')
  7955. if isTopLevel {
  7956. in.Consumed()
  7957. }
  7958. }
  7959. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork75(out *jwriter.Writer, in EventReportingAPIReportUpdated) {
  7960. out.RawByte('{')
  7961. first := true
  7962. _ = first
  7963. {
  7964. const prefix string = ",\"report\":"
  7965. out.RawString(prefix[1:])
  7966. if in.Report == nil {
  7967. out.RawString("null")
  7968. } else {
  7969. (*in.Report).MarshalEasyJSON(out)
  7970. }
  7971. }
  7972. out.RawByte('}')
  7973. }
  7974. // MarshalJSON supports json.Marshaler interface
  7975. func (v EventReportingAPIReportUpdated) MarshalJSON() ([]byte, error) {
  7976. w := jwriter.Writer{}
  7977. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork75(&w, v)
  7978. return w.Buffer.BuildBytes(), w.Error
  7979. }
  7980. // MarshalEasyJSON supports easyjson.Marshaler interface
  7981. func (v EventReportingAPIReportUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  7982. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork75(w, v)
  7983. }
  7984. // UnmarshalJSON supports json.Unmarshaler interface
  7985. func (v *EventReportingAPIReportUpdated) UnmarshalJSON(data []byte) error {
  7986. r := jlexer.Lexer{Data: data}
  7987. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork75(&r, v)
  7988. return r.Error()
  7989. }
  7990. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7991. func (v *EventReportingAPIReportUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7992. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork75(l, v)
  7993. }
  7994. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork76(in *jlexer.Lexer, out *EventReportingAPIReportAdded) {
  7995. isTopLevel := in.IsStart()
  7996. if in.IsNull() {
  7997. if isTopLevel {
  7998. in.Consumed()
  7999. }
  8000. in.Skip()
  8001. return
  8002. }
  8003. in.Delim('{')
  8004. for !in.IsDelim('}') {
  8005. key := in.UnsafeFieldName(false)
  8006. in.WantColon()
  8007. if in.IsNull() {
  8008. in.Skip()
  8009. in.WantComma()
  8010. continue
  8011. }
  8012. switch key {
  8013. case "report":
  8014. if in.IsNull() {
  8015. in.Skip()
  8016. out.Report = nil
  8017. } else {
  8018. if out.Report == nil {
  8019. out.Report = new(ReportingAPIReport)
  8020. }
  8021. (*out.Report).UnmarshalEasyJSON(in)
  8022. }
  8023. default:
  8024. in.SkipRecursive()
  8025. }
  8026. in.WantComma()
  8027. }
  8028. in.Delim('}')
  8029. if isTopLevel {
  8030. in.Consumed()
  8031. }
  8032. }
  8033. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork76(out *jwriter.Writer, in EventReportingAPIReportAdded) {
  8034. out.RawByte('{')
  8035. first := true
  8036. _ = first
  8037. {
  8038. const prefix string = ",\"report\":"
  8039. out.RawString(prefix[1:])
  8040. if in.Report == nil {
  8041. out.RawString("null")
  8042. } else {
  8043. (*in.Report).MarshalEasyJSON(out)
  8044. }
  8045. }
  8046. out.RawByte('}')
  8047. }
  8048. // MarshalJSON supports json.Marshaler interface
  8049. func (v EventReportingAPIReportAdded) MarshalJSON() ([]byte, error) {
  8050. w := jwriter.Writer{}
  8051. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork76(&w, v)
  8052. return w.Buffer.BuildBytes(), w.Error
  8053. }
  8054. // MarshalEasyJSON supports easyjson.Marshaler interface
  8055. func (v EventReportingAPIReportAdded) MarshalEasyJSON(w *jwriter.Writer) {
  8056. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork76(w, v)
  8057. }
  8058. // UnmarshalJSON supports json.Unmarshaler interface
  8059. func (v *EventReportingAPIReportAdded) UnmarshalJSON(data []byte) error {
  8060. r := jlexer.Lexer{Data: data}
  8061. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork76(&r, v)
  8062. return r.Error()
  8063. }
  8064. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8065. func (v *EventReportingAPIReportAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8066. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork76(l, v)
  8067. }
  8068. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork77(in *jlexer.Lexer, out *EventReportingAPIEndpointsChangedForOrigin) {
  8069. isTopLevel := in.IsStart()
  8070. if in.IsNull() {
  8071. if isTopLevel {
  8072. in.Consumed()
  8073. }
  8074. in.Skip()
  8075. return
  8076. }
  8077. in.Delim('{')
  8078. for !in.IsDelim('}') {
  8079. key := in.UnsafeFieldName(false)
  8080. in.WantColon()
  8081. if in.IsNull() {
  8082. in.Skip()
  8083. in.WantComma()
  8084. continue
  8085. }
  8086. switch key {
  8087. case "origin":
  8088. out.Origin = string(in.String())
  8089. case "endpoints":
  8090. if in.IsNull() {
  8091. in.Skip()
  8092. out.Endpoints = nil
  8093. } else {
  8094. in.Delim('[')
  8095. if out.Endpoints == nil {
  8096. if !in.IsDelim(']') {
  8097. out.Endpoints = make([]*ReportingAPIEndpoint, 0, 8)
  8098. } else {
  8099. out.Endpoints = []*ReportingAPIEndpoint{}
  8100. }
  8101. } else {
  8102. out.Endpoints = (out.Endpoints)[:0]
  8103. }
  8104. for !in.IsDelim(']') {
  8105. var v82 *ReportingAPIEndpoint
  8106. if in.IsNull() {
  8107. in.Skip()
  8108. v82 = nil
  8109. } else {
  8110. if v82 == nil {
  8111. v82 = new(ReportingAPIEndpoint)
  8112. }
  8113. (*v82).UnmarshalEasyJSON(in)
  8114. }
  8115. out.Endpoints = append(out.Endpoints, v82)
  8116. in.WantComma()
  8117. }
  8118. in.Delim(']')
  8119. }
  8120. default:
  8121. in.SkipRecursive()
  8122. }
  8123. in.WantComma()
  8124. }
  8125. in.Delim('}')
  8126. if isTopLevel {
  8127. in.Consumed()
  8128. }
  8129. }
  8130. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork77(out *jwriter.Writer, in EventReportingAPIEndpointsChangedForOrigin) {
  8131. out.RawByte('{')
  8132. first := true
  8133. _ = first
  8134. {
  8135. const prefix string = ",\"origin\":"
  8136. out.RawString(prefix[1:])
  8137. out.String(string(in.Origin))
  8138. }
  8139. {
  8140. const prefix string = ",\"endpoints\":"
  8141. out.RawString(prefix)
  8142. if in.Endpoints == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  8143. out.RawString("null")
  8144. } else {
  8145. out.RawByte('[')
  8146. for v83, v84 := range in.Endpoints {
  8147. if v83 > 0 {
  8148. out.RawByte(',')
  8149. }
  8150. if v84 == nil {
  8151. out.RawString("null")
  8152. } else {
  8153. (*v84).MarshalEasyJSON(out)
  8154. }
  8155. }
  8156. out.RawByte(']')
  8157. }
  8158. }
  8159. out.RawByte('}')
  8160. }
  8161. // MarshalJSON supports json.Marshaler interface
  8162. func (v EventReportingAPIEndpointsChangedForOrigin) MarshalJSON() ([]byte, error) {
  8163. w := jwriter.Writer{}
  8164. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork77(&w, v)
  8165. return w.Buffer.BuildBytes(), w.Error
  8166. }
  8167. // MarshalEasyJSON supports easyjson.Marshaler interface
  8168. func (v EventReportingAPIEndpointsChangedForOrigin) MarshalEasyJSON(w *jwriter.Writer) {
  8169. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork77(w, v)
  8170. }
  8171. // UnmarshalJSON supports json.Unmarshaler interface
  8172. func (v *EventReportingAPIEndpointsChangedForOrigin) UnmarshalJSON(data []byte) error {
  8173. r := jlexer.Lexer{Data: data}
  8174. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork77(&r, v)
  8175. return r.Error()
  8176. }
  8177. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8178. func (v *EventReportingAPIEndpointsChangedForOrigin) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8179. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork77(l, v)
  8180. }
  8181. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(in *jlexer.Lexer, out *EventLoadingFinished) {
  8182. isTopLevel := in.IsStart()
  8183. if in.IsNull() {
  8184. if isTopLevel {
  8185. in.Consumed()
  8186. }
  8187. in.Skip()
  8188. return
  8189. }
  8190. in.Delim('{')
  8191. for !in.IsDelim('}') {
  8192. key := in.UnsafeFieldName(false)
  8193. in.WantColon()
  8194. if in.IsNull() {
  8195. in.Skip()
  8196. in.WantComma()
  8197. continue
  8198. }
  8199. switch key {
  8200. case "requestId":
  8201. out.RequestID = RequestID(in.String())
  8202. case "timestamp":
  8203. if in.IsNull() {
  8204. in.Skip()
  8205. out.Timestamp = nil
  8206. } else {
  8207. if out.Timestamp == nil {
  8208. out.Timestamp = new(cdp.MonotonicTime)
  8209. }
  8210. (*out.Timestamp).UnmarshalEasyJSON(in)
  8211. }
  8212. case "encodedDataLength":
  8213. out.EncodedDataLength = float64(in.Float64())
  8214. default:
  8215. in.SkipRecursive()
  8216. }
  8217. in.WantComma()
  8218. }
  8219. in.Delim('}')
  8220. if isTopLevel {
  8221. in.Consumed()
  8222. }
  8223. }
  8224. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(out *jwriter.Writer, in EventLoadingFinished) {
  8225. out.RawByte('{')
  8226. first := true
  8227. _ = first
  8228. {
  8229. const prefix string = ",\"requestId\":"
  8230. out.RawString(prefix[1:])
  8231. out.String(string(in.RequestID))
  8232. }
  8233. {
  8234. const prefix string = ",\"timestamp\":"
  8235. out.RawString(prefix)
  8236. if in.Timestamp == nil {
  8237. out.RawString("null")
  8238. } else {
  8239. (*in.Timestamp).MarshalEasyJSON(out)
  8240. }
  8241. }
  8242. {
  8243. const prefix string = ",\"encodedDataLength\":"
  8244. out.RawString(prefix)
  8245. out.Float64(float64(in.EncodedDataLength))
  8246. }
  8247. out.RawByte('}')
  8248. }
  8249. // MarshalJSON supports json.Marshaler interface
  8250. func (v EventLoadingFinished) MarshalJSON() ([]byte, error) {
  8251. w := jwriter.Writer{}
  8252. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(&w, v)
  8253. return w.Buffer.BuildBytes(), w.Error
  8254. }
  8255. // MarshalEasyJSON supports easyjson.Marshaler interface
  8256. func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) {
  8257. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(w, v)
  8258. }
  8259. // UnmarshalJSON supports json.Unmarshaler interface
  8260. func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error {
  8261. r := jlexer.Lexer{Data: data}
  8262. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(&r, v)
  8263. return r.Error()
  8264. }
  8265. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8266. func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8267. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(l, v)
  8268. }
  8269. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(in *jlexer.Lexer, out *EventLoadingFailed) {
  8270. isTopLevel := in.IsStart()
  8271. if in.IsNull() {
  8272. if isTopLevel {
  8273. in.Consumed()
  8274. }
  8275. in.Skip()
  8276. return
  8277. }
  8278. in.Delim('{')
  8279. for !in.IsDelim('}') {
  8280. key := in.UnsafeFieldName(false)
  8281. in.WantColon()
  8282. if in.IsNull() {
  8283. in.Skip()
  8284. in.WantComma()
  8285. continue
  8286. }
  8287. switch key {
  8288. case "requestId":
  8289. out.RequestID = RequestID(in.String())
  8290. case "timestamp":
  8291. if in.IsNull() {
  8292. in.Skip()
  8293. out.Timestamp = nil
  8294. } else {
  8295. if out.Timestamp == nil {
  8296. out.Timestamp = new(cdp.MonotonicTime)
  8297. }
  8298. (*out.Timestamp).UnmarshalEasyJSON(in)
  8299. }
  8300. case "type":
  8301. (out.Type).UnmarshalEasyJSON(in)
  8302. case "errorText":
  8303. out.ErrorText = string(in.String())
  8304. case "canceled":
  8305. out.Canceled = bool(in.Bool())
  8306. case "blockedReason":
  8307. (out.BlockedReason).UnmarshalEasyJSON(in)
  8308. case "corsErrorStatus":
  8309. if in.IsNull() {
  8310. in.Skip()
  8311. out.CorsErrorStatus = nil
  8312. } else {
  8313. if out.CorsErrorStatus == nil {
  8314. out.CorsErrorStatus = new(CorsErrorStatus)
  8315. }
  8316. (*out.CorsErrorStatus).UnmarshalEasyJSON(in)
  8317. }
  8318. default:
  8319. in.SkipRecursive()
  8320. }
  8321. in.WantComma()
  8322. }
  8323. in.Delim('}')
  8324. if isTopLevel {
  8325. in.Consumed()
  8326. }
  8327. }
  8328. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(out *jwriter.Writer, in EventLoadingFailed) {
  8329. out.RawByte('{')
  8330. first := true
  8331. _ = first
  8332. {
  8333. const prefix string = ",\"requestId\":"
  8334. out.RawString(prefix[1:])
  8335. out.String(string(in.RequestID))
  8336. }
  8337. {
  8338. const prefix string = ",\"timestamp\":"
  8339. out.RawString(prefix)
  8340. if in.Timestamp == nil {
  8341. out.RawString("null")
  8342. } else {
  8343. (*in.Timestamp).MarshalEasyJSON(out)
  8344. }
  8345. }
  8346. {
  8347. const prefix string = ",\"type\":"
  8348. out.RawString(prefix)
  8349. (in.Type).MarshalEasyJSON(out)
  8350. }
  8351. {
  8352. const prefix string = ",\"errorText\":"
  8353. out.RawString(prefix)
  8354. out.String(string(in.ErrorText))
  8355. }
  8356. if in.Canceled {
  8357. const prefix string = ",\"canceled\":"
  8358. out.RawString(prefix)
  8359. out.Bool(bool(in.Canceled))
  8360. }
  8361. if in.BlockedReason != "" {
  8362. const prefix string = ",\"blockedReason\":"
  8363. out.RawString(prefix)
  8364. (in.BlockedReason).MarshalEasyJSON(out)
  8365. }
  8366. if in.CorsErrorStatus != nil {
  8367. const prefix string = ",\"corsErrorStatus\":"
  8368. out.RawString(prefix)
  8369. (*in.CorsErrorStatus).MarshalEasyJSON(out)
  8370. }
  8371. out.RawByte('}')
  8372. }
  8373. // MarshalJSON supports json.Marshaler interface
  8374. func (v EventLoadingFailed) MarshalJSON() ([]byte, error) {
  8375. w := jwriter.Writer{}
  8376. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(&w, v)
  8377. return w.Buffer.BuildBytes(), w.Error
  8378. }
  8379. // MarshalEasyJSON supports easyjson.Marshaler interface
  8380. func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) {
  8381. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(w, v)
  8382. }
  8383. // UnmarshalJSON supports json.Unmarshaler interface
  8384. func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error {
  8385. r := jlexer.Lexer{Data: data}
  8386. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(&r, v)
  8387. return r.Error()
  8388. }
  8389. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8390. func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8391. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(l, v)
  8392. }
  8393. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(in *jlexer.Lexer, out *EventEventSourceMessageReceived) {
  8394. isTopLevel := in.IsStart()
  8395. if in.IsNull() {
  8396. if isTopLevel {
  8397. in.Consumed()
  8398. }
  8399. in.Skip()
  8400. return
  8401. }
  8402. in.Delim('{')
  8403. for !in.IsDelim('}') {
  8404. key := in.UnsafeFieldName(false)
  8405. in.WantColon()
  8406. if in.IsNull() {
  8407. in.Skip()
  8408. in.WantComma()
  8409. continue
  8410. }
  8411. switch key {
  8412. case "requestId":
  8413. out.RequestID = RequestID(in.String())
  8414. case "timestamp":
  8415. if in.IsNull() {
  8416. in.Skip()
  8417. out.Timestamp = nil
  8418. } else {
  8419. if out.Timestamp == nil {
  8420. out.Timestamp = new(cdp.MonotonicTime)
  8421. }
  8422. (*out.Timestamp).UnmarshalEasyJSON(in)
  8423. }
  8424. case "eventName":
  8425. out.EventName = string(in.String())
  8426. case "eventId":
  8427. out.EventID = string(in.String())
  8428. case "data":
  8429. out.Data = string(in.String())
  8430. default:
  8431. in.SkipRecursive()
  8432. }
  8433. in.WantComma()
  8434. }
  8435. in.Delim('}')
  8436. if isTopLevel {
  8437. in.Consumed()
  8438. }
  8439. }
  8440. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(out *jwriter.Writer, in EventEventSourceMessageReceived) {
  8441. out.RawByte('{')
  8442. first := true
  8443. _ = first
  8444. {
  8445. const prefix string = ",\"requestId\":"
  8446. out.RawString(prefix[1:])
  8447. out.String(string(in.RequestID))
  8448. }
  8449. {
  8450. const prefix string = ",\"timestamp\":"
  8451. out.RawString(prefix)
  8452. if in.Timestamp == nil {
  8453. out.RawString("null")
  8454. } else {
  8455. (*in.Timestamp).MarshalEasyJSON(out)
  8456. }
  8457. }
  8458. {
  8459. const prefix string = ",\"eventName\":"
  8460. out.RawString(prefix)
  8461. out.String(string(in.EventName))
  8462. }
  8463. {
  8464. const prefix string = ",\"eventId\":"
  8465. out.RawString(prefix)
  8466. out.String(string(in.EventID))
  8467. }
  8468. {
  8469. const prefix string = ",\"data\":"
  8470. out.RawString(prefix)
  8471. out.String(string(in.Data))
  8472. }
  8473. out.RawByte('}')
  8474. }
  8475. // MarshalJSON supports json.Marshaler interface
  8476. func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) {
  8477. w := jwriter.Writer{}
  8478. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(&w, v)
  8479. return w.Buffer.BuildBytes(), w.Error
  8480. }
  8481. // MarshalEasyJSON supports easyjson.Marshaler interface
  8482. func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) {
  8483. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(w, v)
  8484. }
  8485. // UnmarshalJSON supports json.Unmarshaler interface
  8486. func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error {
  8487. r := jlexer.Lexer{Data: data}
  8488. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(&r, v)
  8489. return r.Error()
  8490. }
  8491. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8492. func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8493. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(l, v)
  8494. }
  8495. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(in *jlexer.Lexer, out *EventDataReceived) {
  8496. isTopLevel := in.IsStart()
  8497. if in.IsNull() {
  8498. if isTopLevel {
  8499. in.Consumed()
  8500. }
  8501. in.Skip()
  8502. return
  8503. }
  8504. in.Delim('{')
  8505. for !in.IsDelim('}') {
  8506. key := in.UnsafeFieldName(false)
  8507. in.WantColon()
  8508. if in.IsNull() {
  8509. in.Skip()
  8510. in.WantComma()
  8511. continue
  8512. }
  8513. switch key {
  8514. case "requestId":
  8515. out.RequestID = RequestID(in.String())
  8516. case "timestamp":
  8517. if in.IsNull() {
  8518. in.Skip()
  8519. out.Timestamp = nil
  8520. } else {
  8521. if out.Timestamp == nil {
  8522. out.Timestamp = new(cdp.MonotonicTime)
  8523. }
  8524. (*out.Timestamp).UnmarshalEasyJSON(in)
  8525. }
  8526. case "dataLength":
  8527. out.DataLength = int64(in.Int64())
  8528. case "encodedDataLength":
  8529. out.EncodedDataLength = int64(in.Int64())
  8530. case "data":
  8531. out.Data = string(in.String())
  8532. default:
  8533. in.SkipRecursive()
  8534. }
  8535. in.WantComma()
  8536. }
  8537. in.Delim('}')
  8538. if isTopLevel {
  8539. in.Consumed()
  8540. }
  8541. }
  8542. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(out *jwriter.Writer, in EventDataReceived) {
  8543. out.RawByte('{')
  8544. first := true
  8545. _ = first
  8546. {
  8547. const prefix string = ",\"requestId\":"
  8548. out.RawString(prefix[1:])
  8549. out.String(string(in.RequestID))
  8550. }
  8551. {
  8552. const prefix string = ",\"timestamp\":"
  8553. out.RawString(prefix)
  8554. if in.Timestamp == nil {
  8555. out.RawString("null")
  8556. } else {
  8557. (*in.Timestamp).MarshalEasyJSON(out)
  8558. }
  8559. }
  8560. {
  8561. const prefix string = ",\"dataLength\":"
  8562. out.RawString(prefix)
  8563. out.Int64(int64(in.DataLength))
  8564. }
  8565. {
  8566. const prefix string = ",\"encodedDataLength\":"
  8567. out.RawString(prefix)
  8568. out.Int64(int64(in.EncodedDataLength))
  8569. }
  8570. if in.Data != "" {
  8571. const prefix string = ",\"data\":"
  8572. out.RawString(prefix)
  8573. out.String(string(in.Data))
  8574. }
  8575. out.RawByte('}')
  8576. }
  8577. // MarshalJSON supports json.Marshaler interface
  8578. func (v EventDataReceived) MarshalJSON() ([]byte, error) {
  8579. w := jwriter.Writer{}
  8580. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(&w, v)
  8581. return w.Buffer.BuildBytes(), w.Error
  8582. }
  8583. // MarshalEasyJSON supports easyjson.Marshaler interface
  8584. func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) {
  8585. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(w, v)
  8586. }
  8587. // UnmarshalJSON supports json.Unmarshaler interface
  8588. func (v *EventDataReceived) UnmarshalJSON(data []byte) error {
  8589. r := jlexer.Lexer{Data: data}
  8590. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(&r, v)
  8591. return r.Error()
  8592. }
  8593. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8594. func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8595. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(l, v)
  8596. }
  8597. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(in *jlexer.Lexer, out *EnableReportingAPIParams) {
  8598. isTopLevel := in.IsStart()
  8599. if in.IsNull() {
  8600. if isTopLevel {
  8601. in.Consumed()
  8602. }
  8603. in.Skip()
  8604. return
  8605. }
  8606. in.Delim('{')
  8607. for !in.IsDelim('}') {
  8608. key := in.UnsafeFieldName(false)
  8609. in.WantColon()
  8610. if in.IsNull() {
  8611. in.Skip()
  8612. in.WantComma()
  8613. continue
  8614. }
  8615. switch key {
  8616. case "enable":
  8617. out.Enable = bool(in.Bool())
  8618. default:
  8619. in.SkipRecursive()
  8620. }
  8621. in.WantComma()
  8622. }
  8623. in.Delim('}')
  8624. if isTopLevel {
  8625. in.Consumed()
  8626. }
  8627. }
  8628. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(out *jwriter.Writer, in EnableReportingAPIParams) {
  8629. out.RawByte('{')
  8630. first := true
  8631. _ = first
  8632. {
  8633. const prefix string = ",\"enable\":"
  8634. out.RawString(prefix[1:])
  8635. out.Bool(bool(in.Enable))
  8636. }
  8637. out.RawByte('}')
  8638. }
  8639. // MarshalJSON supports json.Marshaler interface
  8640. func (v EnableReportingAPIParams) MarshalJSON() ([]byte, error) {
  8641. w := jwriter.Writer{}
  8642. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(&w, v)
  8643. return w.Buffer.BuildBytes(), w.Error
  8644. }
  8645. // MarshalEasyJSON supports easyjson.Marshaler interface
  8646. func (v EnableReportingAPIParams) MarshalEasyJSON(w *jwriter.Writer) {
  8647. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(w, v)
  8648. }
  8649. // UnmarshalJSON supports json.Unmarshaler interface
  8650. func (v *EnableReportingAPIParams) UnmarshalJSON(data []byte) error {
  8651. r := jlexer.Lexer{Data: data}
  8652. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(&r, v)
  8653. return r.Error()
  8654. }
  8655. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8656. func (v *EnableReportingAPIParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8657. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(l, v)
  8658. }
  8659. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(in *jlexer.Lexer, out *EnableParams) {
  8660. isTopLevel := in.IsStart()
  8661. if in.IsNull() {
  8662. if isTopLevel {
  8663. in.Consumed()
  8664. }
  8665. in.Skip()
  8666. return
  8667. }
  8668. in.Delim('{')
  8669. for !in.IsDelim('}') {
  8670. key := in.UnsafeFieldName(false)
  8671. in.WantColon()
  8672. if in.IsNull() {
  8673. in.Skip()
  8674. in.WantComma()
  8675. continue
  8676. }
  8677. switch key {
  8678. case "maxTotalBufferSize":
  8679. out.MaxTotalBufferSize = int64(in.Int64())
  8680. case "maxResourceBufferSize":
  8681. out.MaxResourceBufferSize = int64(in.Int64())
  8682. case "maxPostDataSize":
  8683. out.MaxPostDataSize = int64(in.Int64())
  8684. default:
  8685. in.SkipRecursive()
  8686. }
  8687. in.WantComma()
  8688. }
  8689. in.Delim('}')
  8690. if isTopLevel {
  8691. in.Consumed()
  8692. }
  8693. }
  8694. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(out *jwriter.Writer, in EnableParams) {
  8695. out.RawByte('{')
  8696. first := true
  8697. _ = first
  8698. if in.MaxTotalBufferSize != 0 {
  8699. const prefix string = ",\"maxTotalBufferSize\":"
  8700. first = false
  8701. out.RawString(prefix[1:])
  8702. out.Int64(int64(in.MaxTotalBufferSize))
  8703. }
  8704. if in.MaxResourceBufferSize != 0 {
  8705. const prefix string = ",\"maxResourceBufferSize\":"
  8706. if first {
  8707. first = false
  8708. out.RawString(prefix[1:])
  8709. } else {
  8710. out.RawString(prefix)
  8711. }
  8712. out.Int64(int64(in.MaxResourceBufferSize))
  8713. }
  8714. if in.MaxPostDataSize != 0 {
  8715. const prefix string = ",\"maxPostDataSize\":"
  8716. if first {
  8717. first = false
  8718. out.RawString(prefix[1:])
  8719. } else {
  8720. out.RawString(prefix)
  8721. }
  8722. out.Int64(int64(in.MaxPostDataSize))
  8723. }
  8724. out.RawByte('}')
  8725. }
  8726. // MarshalJSON supports json.Marshaler interface
  8727. func (v EnableParams) MarshalJSON() ([]byte, error) {
  8728. w := jwriter.Writer{}
  8729. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(&w, v)
  8730. return w.Buffer.BuildBytes(), w.Error
  8731. }
  8732. // MarshalEasyJSON supports easyjson.Marshaler interface
  8733. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  8734. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(w, v)
  8735. }
  8736. // UnmarshalJSON supports json.Unmarshaler interface
  8737. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  8738. r := jlexer.Lexer{Data: data}
  8739. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(&r, v)
  8740. return r.Error()
  8741. }
  8742. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8743. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8744. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(l, v)
  8745. }
  8746. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) {
  8747. isTopLevel := in.IsStart()
  8748. if in.IsNull() {
  8749. if isTopLevel {
  8750. in.Consumed()
  8751. }
  8752. in.Skip()
  8753. return
  8754. }
  8755. in.Delim('{')
  8756. for !in.IsDelim('}') {
  8757. key := in.UnsafeFieldName(false)
  8758. in.WantColon()
  8759. if in.IsNull() {
  8760. in.Skip()
  8761. in.WantComma()
  8762. continue
  8763. }
  8764. switch key {
  8765. case "offline":
  8766. out.Offline = bool(in.Bool())
  8767. case "latency":
  8768. out.Latency = float64(in.Float64())
  8769. case "downloadThroughput":
  8770. out.DownloadThroughput = float64(in.Float64())
  8771. case "uploadThroughput":
  8772. out.UploadThroughput = float64(in.Float64())
  8773. case "connectionType":
  8774. (out.ConnectionType).UnmarshalEasyJSON(in)
  8775. case "packetLoss":
  8776. out.PacketLoss = float64(in.Float64())
  8777. case "packetQueueLength":
  8778. out.PacketQueueLength = int64(in.Int64())
  8779. case "packetReordering":
  8780. out.PacketReordering = bool(in.Bool())
  8781. default:
  8782. in.SkipRecursive()
  8783. }
  8784. in.WantComma()
  8785. }
  8786. in.Delim('}')
  8787. if isTopLevel {
  8788. in.Consumed()
  8789. }
  8790. }
  8791. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(out *jwriter.Writer, in EmulateNetworkConditionsParams) {
  8792. out.RawByte('{')
  8793. first := true
  8794. _ = first
  8795. {
  8796. const prefix string = ",\"offline\":"
  8797. out.RawString(prefix[1:])
  8798. out.Bool(bool(in.Offline))
  8799. }
  8800. {
  8801. const prefix string = ",\"latency\":"
  8802. out.RawString(prefix)
  8803. out.Float64(float64(in.Latency))
  8804. }
  8805. {
  8806. const prefix string = ",\"downloadThroughput\":"
  8807. out.RawString(prefix)
  8808. out.Float64(float64(in.DownloadThroughput))
  8809. }
  8810. {
  8811. const prefix string = ",\"uploadThroughput\":"
  8812. out.RawString(prefix)
  8813. out.Float64(float64(in.UploadThroughput))
  8814. }
  8815. if in.ConnectionType != "" {
  8816. const prefix string = ",\"connectionType\":"
  8817. out.RawString(prefix)
  8818. (in.ConnectionType).MarshalEasyJSON(out)
  8819. }
  8820. if in.PacketLoss != 0 {
  8821. const prefix string = ",\"packetLoss\":"
  8822. out.RawString(prefix)
  8823. out.Float64(float64(in.PacketLoss))
  8824. }
  8825. if in.PacketQueueLength != 0 {
  8826. const prefix string = ",\"packetQueueLength\":"
  8827. out.RawString(prefix)
  8828. out.Int64(int64(in.PacketQueueLength))
  8829. }
  8830. if in.PacketReordering {
  8831. const prefix string = ",\"packetReordering\":"
  8832. out.RawString(prefix)
  8833. out.Bool(bool(in.PacketReordering))
  8834. }
  8835. out.RawByte('}')
  8836. }
  8837. // MarshalJSON supports json.Marshaler interface
  8838. func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) {
  8839. w := jwriter.Writer{}
  8840. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(&w, v)
  8841. return w.Buffer.BuildBytes(), w.Error
  8842. }
  8843. // MarshalEasyJSON supports easyjson.Marshaler interface
  8844. func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) {
  8845. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(w, v)
  8846. }
  8847. // UnmarshalJSON supports json.Unmarshaler interface
  8848. func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error {
  8849. r := jlexer.Lexer{Data: data}
  8850. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(&r, v)
  8851. return r.Error()
  8852. }
  8853. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8854. func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8855. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(l, v)
  8856. }
  8857. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(in *jlexer.Lexer, out *DisableParams) {
  8858. isTopLevel := in.IsStart()
  8859. if in.IsNull() {
  8860. if isTopLevel {
  8861. in.Consumed()
  8862. }
  8863. in.Skip()
  8864. return
  8865. }
  8866. in.Delim('{')
  8867. for !in.IsDelim('}') {
  8868. key := in.UnsafeFieldName(false)
  8869. in.WantColon()
  8870. if in.IsNull() {
  8871. in.Skip()
  8872. in.WantComma()
  8873. continue
  8874. }
  8875. switch key {
  8876. default:
  8877. in.SkipRecursive()
  8878. }
  8879. in.WantComma()
  8880. }
  8881. in.Delim('}')
  8882. if isTopLevel {
  8883. in.Consumed()
  8884. }
  8885. }
  8886. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(out *jwriter.Writer, in DisableParams) {
  8887. out.RawByte('{')
  8888. first := true
  8889. _ = first
  8890. out.RawByte('}')
  8891. }
  8892. // MarshalJSON supports json.Marshaler interface
  8893. func (v DisableParams) MarshalJSON() ([]byte, error) {
  8894. w := jwriter.Writer{}
  8895. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(&w, v)
  8896. return w.Buffer.BuildBytes(), w.Error
  8897. }
  8898. // MarshalEasyJSON supports easyjson.Marshaler interface
  8899. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  8900. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(w, v)
  8901. }
  8902. // UnmarshalJSON supports json.Unmarshaler interface
  8903. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  8904. r := jlexer.Lexer{Data: data}
  8905. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(&r, v)
  8906. return r.Error()
  8907. }
  8908. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8909. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8910. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(l, v)
  8911. }
  8912. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(in *jlexer.Lexer, out *DeleteCookiesParams) {
  8913. isTopLevel := in.IsStart()
  8914. if in.IsNull() {
  8915. if isTopLevel {
  8916. in.Consumed()
  8917. }
  8918. in.Skip()
  8919. return
  8920. }
  8921. in.Delim('{')
  8922. for !in.IsDelim('}') {
  8923. key := in.UnsafeFieldName(false)
  8924. in.WantColon()
  8925. if in.IsNull() {
  8926. in.Skip()
  8927. in.WantComma()
  8928. continue
  8929. }
  8930. switch key {
  8931. case "name":
  8932. out.Name = string(in.String())
  8933. case "url":
  8934. out.URL = string(in.String())
  8935. case "domain":
  8936. out.Domain = string(in.String())
  8937. case "path":
  8938. out.Path = string(in.String())
  8939. case "partitionKey":
  8940. out.PartitionKey = string(in.String())
  8941. default:
  8942. in.SkipRecursive()
  8943. }
  8944. in.WantComma()
  8945. }
  8946. in.Delim('}')
  8947. if isTopLevel {
  8948. in.Consumed()
  8949. }
  8950. }
  8951. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(out *jwriter.Writer, in DeleteCookiesParams) {
  8952. out.RawByte('{')
  8953. first := true
  8954. _ = first
  8955. {
  8956. const prefix string = ",\"name\":"
  8957. out.RawString(prefix[1:])
  8958. out.String(string(in.Name))
  8959. }
  8960. if in.URL != "" {
  8961. const prefix string = ",\"url\":"
  8962. out.RawString(prefix)
  8963. out.String(string(in.URL))
  8964. }
  8965. if in.Domain != "" {
  8966. const prefix string = ",\"domain\":"
  8967. out.RawString(prefix)
  8968. out.String(string(in.Domain))
  8969. }
  8970. if in.Path != "" {
  8971. const prefix string = ",\"path\":"
  8972. out.RawString(prefix)
  8973. out.String(string(in.Path))
  8974. }
  8975. if in.PartitionKey != "" {
  8976. const prefix string = ",\"partitionKey\":"
  8977. out.RawString(prefix)
  8978. out.String(string(in.PartitionKey))
  8979. }
  8980. out.RawByte('}')
  8981. }
  8982. // MarshalJSON supports json.Marshaler interface
  8983. func (v DeleteCookiesParams) MarshalJSON() ([]byte, error) {
  8984. w := jwriter.Writer{}
  8985. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(&w, v)
  8986. return w.Buffer.BuildBytes(), w.Error
  8987. }
  8988. // MarshalEasyJSON supports easyjson.Marshaler interface
  8989. func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
  8990. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(w, v)
  8991. }
  8992. // UnmarshalJSON supports json.Unmarshaler interface
  8993. func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error {
  8994. r := jlexer.Lexer{Data: data}
  8995. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(&r, v)
  8996. return r.Error()
  8997. }
  8998. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8999. func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9000. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(l, v)
  9001. }
  9002. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(in *jlexer.Lexer, out *CrossOriginOpenerPolicyStatus) {
  9003. isTopLevel := in.IsStart()
  9004. if in.IsNull() {
  9005. if isTopLevel {
  9006. in.Consumed()
  9007. }
  9008. in.Skip()
  9009. return
  9010. }
  9011. in.Delim('{')
  9012. for !in.IsDelim('}') {
  9013. key := in.UnsafeFieldName(false)
  9014. in.WantColon()
  9015. if in.IsNull() {
  9016. in.Skip()
  9017. in.WantComma()
  9018. continue
  9019. }
  9020. switch key {
  9021. case "value":
  9022. (out.Value).UnmarshalEasyJSON(in)
  9023. case "reportOnlyValue":
  9024. (out.ReportOnlyValue).UnmarshalEasyJSON(in)
  9025. case "reportingEndpoint":
  9026. out.ReportingEndpoint = string(in.String())
  9027. case "reportOnlyReportingEndpoint":
  9028. out.ReportOnlyReportingEndpoint = string(in.String())
  9029. default:
  9030. in.SkipRecursive()
  9031. }
  9032. in.WantComma()
  9033. }
  9034. in.Delim('}')
  9035. if isTopLevel {
  9036. in.Consumed()
  9037. }
  9038. }
  9039. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(out *jwriter.Writer, in CrossOriginOpenerPolicyStatus) {
  9040. out.RawByte('{')
  9041. first := true
  9042. _ = first
  9043. {
  9044. const prefix string = ",\"value\":"
  9045. out.RawString(prefix[1:])
  9046. (in.Value).MarshalEasyJSON(out)
  9047. }
  9048. {
  9049. const prefix string = ",\"reportOnlyValue\":"
  9050. out.RawString(prefix)
  9051. (in.ReportOnlyValue).MarshalEasyJSON(out)
  9052. }
  9053. if in.ReportingEndpoint != "" {
  9054. const prefix string = ",\"reportingEndpoint\":"
  9055. out.RawString(prefix)
  9056. out.String(string(in.ReportingEndpoint))
  9057. }
  9058. if in.ReportOnlyReportingEndpoint != "" {
  9059. const prefix string = ",\"reportOnlyReportingEndpoint\":"
  9060. out.RawString(prefix)
  9061. out.String(string(in.ReportOnlyReportingEndpoint))
  9062. }
  9063. out.RawByte('}')
  9064. }
  9065. // MarshalJSON supports json.Marshaler interface
  9066. func (v CrossOriginOpenerPolicyStatus) MarshalJSON() ([]byte, error) {
  9067. w := jwriter.Writer{}
  9068. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(&w, v)
  9069. return w.Buffer.BuildBytes(), w.Error
  9070. }
  9071. // MarshalEasyJSON supports easyjson.Marshaler interface
  9072. func (v CrossOriginOpenerPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) {
  9073. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(w, v)
  9074. }
  9075. // UnmarshalJSON supports json.Unmarshaler interface
  9076. func (v *CrossOriginOpenerPolicyStatus) UnmarshalJSON(data []byte) error {
  9077. r := jlexer.Lexer{Data: data}
  9078. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(&r, v)
  9079. return r.Error()
  9080. }
  9081. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9082. func (v *CrossOriginOpenerPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9083. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(l, v)
  9084. }
  9085. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(in *jlexer.Lexer, out *CrossOriginEmbedderPolicyStatus) {
  9086. isTopLevel := in.IsStart()
  9087. if in.IsNull() {
  9088. if isTopLevel {
  9089. in.Consumed()
  9090. }
  9091. in.Skip()
  9092. return
  9093. }
  9094. in.Delim('{')
  9095. for !in.IsDelim('}') {
  9096. key := in.UnsafeFieldName(false)
  9097. in.WantColon()
  9098. if in.IsNull() {
  9099. in.Skip()
  9100. in.WantComma()
  9101. continue
  9102. }
  9103. switch key {
  9104. case "value":
  9105. (out.Value).UnmarshalEasyJSON(in)
  9106. case "reportOnlyValue":
  9107. (out.ReportOnlyValue).UnmarshalEasyJSON(in)
  9108. case "reportingEndpoint":
  9109. out.ReportingEndpoint = string(in.String())
  9110. case "reportOnlyReportingEndpoint":
  9111. out.ReportOnlyReportingEndpoint = string(in.String())
  9112. default:
  9113. in.SkipRecursive()
  9114. }
  9115. in.WantComma()
  9116. }
  9117. in.Delim('}')
  9118. if isTopLevel {
  9119. in.Consumed()
  9120. }
  9121. }
  9122. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(out *jwriter.Writer, in CrossOriginEmbedderPolicyStatus) {
  9123. out.RawByte('{')
  9124. first := true
  9125. _ = first
  9126. {
  9127. const prefix string = ",\"value\":"
  9128. out.RawString(prefix[1:])
  9129. (in.Value).MarshalEasyJSON(out)
  9130. }
  9131. {
  9132. const prefix string = ",\"reportOnlyValue\":"
  9133. out.RawString(prefix)
  9134. (in.ReportOnlyValue).MarshalEasyJSON(out)
  9135. }
  9136. if in.ReportingEndpoint != "" {
  9137. const prefix string = ",\"reportingEndpoint\":"
  9138. out.RawString(prefix)
  9139. out.String(string(in.ReportingEndpoint))
  9140. }
  9141. if in.ReportOnlyReportingEndpoint != "" {
  9142. const prefix string = ",\"reportOnlyReportingEndpoint\":"
  9143. out.RawString(prefix)
  9144. out.String(string(in.ReportOnlyReportingEndpoint))
  9145. }
  9146. out.RawByte('}')
  9147. }
  9148. // MarshalJSON supports json.Marshaler interface
  9149. func (v CrossOriginEmbedderPolicyStatus) MarshalJSON() ([]byte, error) {
  9150. w := jwriter.Writer{}
  9151. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(&w, v)
  9152. return w.Buffer.BuildBytes(), w.Error
  9153. }
  9154. // MarshalEasyJSON supports easyjson.Marshaler interface
  9155. func (v CrossOriginEmbedderPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) {
  9156. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(w, v)
  9157. }
  9158. // UnmarshalJSON supports json.Unmarshaler interface
  9159. func (v *CrossOriginEmbedderPolicyStatus) UnmarshalJSON(data []byte) error {
  9160. r := jlexer.Lexer{Data: data}
  9161. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(&r, v)
  9162. return r.Error()
  9163. }
  9164. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9165. func (v *CrossOriginEmbedderPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9166. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(l, v)
  9167. }
  9168. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(in *jlexer.Lexer, out *CorsErrorStatus) {
  9169. isTopLevel := in.IsStart()
  9170. if in.IsNull() {
  9171. if isTopLevel {
  9172. in.Consumed()
  9173. }
  9174. in.Skip()
  9175. return
  9176. }
  9177. in.Delim('{')
  9178. for !in.IsDelim('}') {
  9179. key := in.UnsafeFieldName(false)
  9180. in.WantColon()
  9181. if in.IsNull() {
  9182. in.Skip()
  9183. in.WantComma()
  9184. continue
  9185. }
  9186. switch key {
  9187. case "corsError":
  9188. (out.CorsError).UnmarshalEasyJSON(in)
  9189. case "failedParameter":
  9190. out.FailedParameter = string(in.String())
  9191. default:
  9192. in.SkipRecursive()
  9193. }
  9194. in.WantComma()
  9195. }
  9196. in.Delim('}')
  9197. if isTopLevel {
  9198. in.Consumed()
  9199. }
  9200. }
  9201. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(out *jwriter.Writer, in CorsErrorStatus) {
  9202. out.RawByte('{')
  9203. first := true
  9204. _ = first
  9205. {
  9206. const prefix string = ",\"corsError\":"
  9207. out.RawString(prefix[1:])
  9208. (in.CorsError).MarshalEasyJSON(out)
  9209. }
  9210. {
  9211. const prefix string = ",\"failedParameter\":"
  9212. out.RawString(prefix)
  9213. out.String(string(in.FailedParameter))
  9214. }
  9215. out.RawByte('}')
  9216. }
  9217. // MarshalJSON supports json.Marshaler interface
  9218. func (v CorsErrorStatus) MarshalJSON() ([]byte, error) {
  9219. w := jwriter.Writer{}
  9220. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(&w, v)
  9221. return w.Buffer.BuildBytes(), w.Error
  9222. }
  9223. // MarshalEasyJSON supports easyjson.Marshaler interface
  9224. func (v CorsErrorStatus) MarshalEasyJSON(w *jwriter.Writer) {
  9225. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(w, v)
  9226. }
  9227. // UnmarshalJSON supports json.Unmarshaler interface
  9228. func (v *CorsErrorStatus) UnmarshalJSON(data []byte) error {
  9229. r := jlexer.Lexer{Data: data}
  9230. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(&r, v)
  9231. return r.Error()
  9232. }
  9233. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9234. func (v *CorsErrorStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9235. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(l, v)
  9236. }
  9237. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(in *jlexer.Lexer, out *CookieParam) {
  9238. isTopLevel := in.IsStart()
  9239. if in.IsNull() {
  9240. if isTopLevel {
  9241. in.Consumed()
  9242. }
  9243. in.Skip()
  9244. return
  9245. }
  9246. in.Delim('{')
  9247. for !in.IsDelim('}') {
  9248. key := in.UnsafeFieldName(false)
  9249. in.WantColon()
  9250. if in.IsNull() {
  9251. in.Skip()
  9252. in.WantComma()
  9253. continue
  9254. }
  9255. switch key {
  9256. case "name":
  9257. out.Name = string(in.String())
  9258. case "value":
  9259. out.Value = string(in.String())
  9260. case "url":
  9261. out.URL = string(in.String())
  9262. case "domain":
  9263. out.Domain = string(in.String())
  9264. case "path":
  9265. out.Path = string(in.String())
  9266. case "secure":
  9267. out.Secure = bool(in.Bool())
  9268. case "httpOnly":
  9269. out.HTTPOnly = bool(in.Bool())
  9270. case "sameSite":
  9271. (out.SameSite).UnmarshalEasyJSON(in)
  9272. case "expires":
  9273. if in.IsNull() {
  9274. in.Skip()
  9275. out.Expires = nil
  9276. } else {
  9277. if out.Expires == nil {
  9278. out.Expires = new(cdp.TimeSinceEpoch)
  9279. }
  9280. (*out.Expires).UnmarshalEasyJSON(in)
  9281. }
  9282. case "priority":
  9283. (out.Priority).UnmarshalEasyJSON(in)
  9284. case "sameParty":
  9285. out.SameParty = bool(in.Bool())
  9286. case "sourceScheme":
  9287. (out.SourceScheme).UnmarshalEasyJSON(in)
  9288. case "sourcePort":
  9289. out.SourcePort = int64(in.Int64())
  9290. case "partitionKey":
  9291. out.PartitionKey = string(in.String())
  9292. default:
  9293. in.SkipRecursive()
  9294. }
  9295. in.WantComma()
  9296. }
  9297. in.Delim('}')
  9298. if isTopLevel {
  9299. in.Consumed()
  9300. }
  9301. }
  9302. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(out *jwriter.Writer, in CookieParam) {
  9303. out.RawByte('{')
  9304. first := true
  9305. _ = first
  9306. {
  9307. const prefix string = ",\"name\":"
  9308. out.RawString(prefix[1:])
  9309. out.String(string(in.Name))
  9310. }
  9311. {
  9312. const prefix string = ",\"value\":"
  9313. out.RawString(prefix)
  9314. out.String(string(in.Value))
  9315. }
  9316. if in.URL != "" {
  9317. const prefix string = ",\"url\":"
  9318. out.RawString(prefix)
  9319. out.String(string(in.URL))
  9320. }
  9321. if in.Domain != "" {
  9322. const prefix string = ",\"domain\":"
  9323. out.RawString(prefix)
  9324. out.String(string(in.Domain))
  9325. }
  9326. if in.Path != "" {
  9327. const prefix string = ",\"path\":"
  9328. out.RawString(prefix)
  9329. out.String(string(in.Path))
  9330. }
  9331. if in.Secure {
  9332. const prefix string = ",\"secure\":"
  9333. out.RawString(prefix)
  9334. out.Bool(bool(in.Secure))
  9335. }
  9336. if in.HTTPOnly {
  9337. const prefix string = ",\"httpOnly\":"
  9338. out.RawString(prefix)
  9339. out.Bool(bool(in.HTTPOnly))
  9340. }
  9341. if in.SameSite != "" {
  9342. const prefix string = ",\"sameSite\":"
  9343. out.RawString(prefix)
  9344. (in.SameSite).MarshalEasyJSON(out)
  9345. }
  9346. if in.Expires != nil {
  9347. const prefix string = ",\"expires\":"
  9348. out.RawString(prefix)
  9349. (*in.Expires).MarshalEasyJSON(out)
  9350. }
  9351. if in.Priority != "" {
  9352. const prefix string = ",\"priority\":"
  9353. out.RawString(prefix)
  9354. (in.Priority).MarshalEasyJSON(out)
  9355. }
  9356. if in.SameParty {
  9357. const prefix string = ",\"sameParty\":"
  9358. out.RawString(prefix)
  9359. out.Bool(bool(in.SameParty))
  9360. }
  9361. if in.SourceScheme != "" {
  9362. const prefix string = ",\"sourceScheme\":"
  9363. out.RawString(prefix)
  9364. (in.SourceScheme).MarshalEasyJSON(out)
  9365. }
  9366. if in.SourcePort != 0 {
  9367. const prefix string = ",\"sourcePort\":"
  9368. out.RawString(prefix)
  9369. out.Int64(int64(in.SourcePort))
  9370. }
  9371. if in.PartitionKey != "" {
  9372. const prefix string = ",\"partitionKey\":"
  9373. out.RawString(prefix)
  9374. out.String(string(in.PartitionKey))
  9375. }
  9376. out.RawByte('}')
  9377. }
  9378. // MarshalJSON supports json.Marshaler interface
  9379. func (v CookieParam) MarshalJSON() ([]byte, error) {
  9380. w := jwriter.Writer{}
  9381. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(&w, v)
  9382. return w.Buffer.BuildBytes(), w.Error
  9383. }
  9384. // MarshalEasyJSON supports easyjson.Marshaler interface
  9385. func (v CookieParam) MarshalEasyJSON(w *jwriter.Writer) {
  9386. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(w, v)
  9387. }
  9388. // UnmarshalJSON supports json.Unmarshaler interface
  9389. func (v *CookieParam) UnmarshalJSON(data []byte) error {
  9390. r := jlexer.Lexer{Data: data}
  9391. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(&r, v)
  9392. return r.Error()
  9393. }
  9394. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9395. func (v *CookieParam) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9396. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(l, v)
  9397. }
  9398. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(in *jlexer.Lexer, out *Cookie) {
  9399. isTopLevel := in.IsStart()
  9400. if in.IsNull() {
  9401. if isTopLevel {
  9402. in.Consumed()
  9403. }
  9404. in.Skip()
  9405. return
  9406. }
  9407. in.Delim('{')
  9408. for !in.IsDelim('}') {
  9409. key := in.UnsafeFieldName(false)
  9410. in.WantColon()
  9411. if in.IsNull() {
  9412. in.Skip()
  9413. in.WantComma()
  9414. continue
  9415. }
  9416. switch key {
  9417. case "name":
  9418. out.Name = string(in.String())
  9419. case "value":
  9420. out.Value = string(in.String())
  9421. case "domain":
  9422. out.Domain = string(in.String())
  9423. case "path":
  9424. out.Path = string(in.String())
  9425. case "expires":
  9426. out.Expires = float64(in.Float64())
  9427. case "size":
  9428. out.Size = int64(in.Int64())
  9429. case "httpOnly":
  9430. out.HTTPOnly = bool(in.Bool())
  9431. case "secure":
  9432. out.Secure = bool(in.Bool())
  9433. case "session":
  9434. out.Session = bool(in.Bool())
  9435. case "sameSite":
  9436. (out.SameSite).UnmarshalEasyJSON(in)
  9437. case "priority":
  9438. (out.Priority).UnmarshalEasyJSON(in)
  9439. case "sourceScheme":
  9440. (out.SourceScheme).UnmarshalEasyJSON(in)
  9441. case "sourcePort":
  9442. out.SourcePort = int64(in.Int64())
  9443. case "partitionKey":
  9444. out.PartitionKey = string(in.String())
  9445. case "partitionKeyOpaque":
  9446. out.PartitionKeyOpaque = bool(in.Bool())
  9447. default:
  9448. in.SkipRecursive()
  9449. }
  9450. in.WantComma()
  9451. }
  9452. in.Delim('}')
  9453. if isTopLevel {
  9454. in.Consumed()
  9455. }
  9456. }
  9457. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(out *jwriter.Writer, in Cookie) {
  9458. out.RawByte('{')
  9459. first := true
  9460. _ = first
  9461. {
  9462. const prefix string = ",\"name\":"
  9463. out.RawString(prefix[1:])
  9464. out.String(string(in.Name))
  9465. }
  9466. {
  9467. const prefix string = ",\"value\":"
  9468. out.RawString(prefix)
  9469. out.String(string(in.Value))
  9470. }
  9471. {
  9472. const prefix string = ",\"domain\":"
  9473. out.RawString(prefix)
  9474. out.String(string(in.Domain))
  9475. }
  9476. {
  9477. const prefix string = ",\"path\":"
  9478. out.RawString(prefix)
  9479. out.String(string(in.Path))
  9480. }
  9481. {
  9482. const prefix string = ",\"expires\":"
  9483. out.RawString(prefix)
  9484. out.Float64(float64(in.Expires))
  9485. }
  9486. {
  9487. const prefix string = ",\"size\":"
  9488. out.RawString(prefix)
  9489. out.Int64(int64(in.Size))
  9490. }
  9491. {
  9492. const prefix string = ",\"httpOnly\":"
  9493. out.RawString(prefix)
  9494. out.Bool(bool(in.HTTPOnly))
  9495. }
  9496. {
  9497. const prefix string = ",\"secure\":"
  9498. out.RawString(prefix)
  9499. out.Bool(bool(in.Secure))
  9500. }
  9501. {
  9502. const prefix string = ",\"session\":"
  9503. out.RawString(prefix)
  9504. out.Bool(bool(in.Session))
  9505. }
  9506. if in.SameSite != "" {
  9507. const prefix string = ",\"sameSite\":"
  9508. out.RawString(prefix)
  9509. (in.SameSite).MarshalEasyJSON(out)
  9510. }
  9511. {
  9512. const prefix string = ",\"priority\":"
  9513. out.RawString(prefix)
  9514. (in.Priority).MarshalEasyJSON(out)
  9515. }
  9516. {
  9517. const prefix string = ",\"sourceScheme\":"
  9518. out.RawString(prefix)
  9519. (in.SourceScheme).MarshalEasyJSON(out)
  9520. }
  9521. {
  9522. const prefix string = ",\"sourcePort\":"
  9523. out.RawString(prefix)
  9524. out.Int64(int64(in.SourcePort))
  9525. }
  9526. if in.PartitionKey != "" {
  9527. const prefix string = ",\"partitionKey\":"
  9528. out.RawString(prefix)
  9529. out.String(string(in.PartitionKey))
  9530. }
  9531. if in.PartitionKeyOpaque {
  9532. const prefix string = ",\"partitionKeyOpaque\":"
  9533. out.RawString(prefix)
  9534. out.Bool(bool(in.PartitionKeyOpaque))
  9535. }
  9536. out.RawByte('}')
  9537. }
  9538. // MarshalJSON supports json.Marshaler interface
  9539. func (v Cookie) MarshalJSON() ([]byte, error) {
  9540. w := jwriter.Writer{}
  9541. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(&w, v)
  9542. return w.Buffer.BuildBytes(), w.Error
  9543. }
  9544. // MarshalEasyJSON supports easyjson.Marshaler interface
  9545. func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) {
  9546. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(w, v)
  9547. }
  9548. // UnmarshalJSON supports json.Unmarshaler interface
  9549. func (v *Cookie) UnmarshalJSON(data []byte) error {
  9550. r := jlexer.Lexer{Data: data}
  9551. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(&r, v)
  9552. return r.Error()
  9553. }
  9554. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9555. func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9556. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(l, v)
  9557. }
  9558. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(in *jlexer.Lexer, out *ContentSecurityPolicyStatus) {
  9559. isTopLevel := in.IsStart()
  9560. if in.IsNull() {
  9561. if isTopLevel {
  9562. in.Consumed()
  9563. }
  9564. in.Skip()
  9565. return
  9566. }
  9567. in.Delim('{')
  9568. for !in.IsDelim('}') {
  9569. key := in.UnsafeFieldName(false)
  9570. in.WantColon()
  9571. if in.IsNull() {
  9572. in.Skip()
  9573. in.WantComma()
  9574. continue
  9575. }
  9576. switch key {
  9577. case "effectiveDirectives":
  9578. out.EffectiveDirectives = string(in.String())
  9579. case "isEnforced":
  9580. out.IsEnforced = bool(in.Bool())
  9581. case "source":
  9582. (out.Source).UnmarshalEasyJSON(in)
  9583. default:
  9584. in.SkipRecursive()
  9585. }
  9586. in.WantComma()
  9587. }
  9588. in.Delim('}')
  9589. if isTopLevel {
  9590. in.Consumed()
  9591. }
  9592. }
  9593. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(out *jwriter.Writer, in ContentSecurityPolicyStatus) {
  9594. out.RawByte('{')
  9595. first := true
  9596. _ = first
  9597. {
  9598. const prefix string = ",\"effectiveDirectives\":"
  9599. out.RawString(prefix[1:])
  9600. out.String(string(in.EffectiveDirectives))
  9601. }
  9602. {
  9603. const prefix string = ",\"isEnforced\":"
  9604. out.RawString(prefix)
  9605. out.Bool(bool(in.IsEnforced))
  9606. }
  9607. {
  9608. const prefix string = ",\"source\":"
  9609. out.RawString(prefix)
  9610. (in.Source).MarshalEasyJSON(out)
  9611. }
  9612. out.RawByte('}')
  9613. }
  9614. // MarshalJSON supports json.Marshaler interface
  9615. func (v ContentSecurityPolicyStatus) MarshalJSON() ([]byte, error) {
  9616. w := jwriter.Writer{}
  9617. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(&w, v)
  9618. return w.Buffer.BuildBytes(), w.Error
  9619. }
  9620. // MarshalEasyJSON supports easyjson.Marshaler interface
  9621. func (v ContentSecurityPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) {
  9622. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(w, v)
  9623. }
  9624. // UnmarshalJSON supports json.Unmarshaler interface
  9625. func (v *ContentSecurityPolicyStatus) UnmarshalJSON(data []byte) error {
  9626. r := jlexer.Lexer{Data: data}
  9627. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(&r, v)
  9628. return r.Error()
  9629. }
  9630. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9631. func (v *ContentSecurityPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9632. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(l, v)
  9633. }
  9634. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(in *jlexer.Lexer, out *ConnectTiming) {
  9635. isTopLevel := in.IsStart()
  9636. if in.IsNull() {
  9637. if isTopLevel {
  9638. in.Consumed()
  9639. }
  9640. in.Skip()
  9641. return
  9642. }
  9643. in.Delim('{')
  9644. for !in.IsDelim('}') {
  9645. key := in.UnsafeFieldName(false)
  9646. in.WantColon()
  9647. if in.IsNull() {
  9648. in.Skip()
  9649. in.WantComma()
  9650. continue
  9651. }
  9652. switch key {
  9653. case "requestTime":
  9654. out.RequestTime = float64(in.Float64())
  9655. default:
  9656. in.SkipRecursive()
  9657. }
  9658. in.WantComma()
  9659. }
  9660. in.Delim('}')
  9661. if isTopLevel {
  9662. in.Consumed()
  9663. }
  9664. }
  9665. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(out *jwriter.Writer, in ConnectTiming) {
  9666. out.RawByte('{')
  9667. first := true
  9668. _ = first
  9669. {
  9670. const prefix string = ",\"requestTime\":"
  9671. out.RawString(prefix[1:])
  9672. out.Float64(float64(in.RequestTime))
  9673. }
  9674. out.RawByte('}')
  9675. }
  9676. // MarshalJSON supports json.Marshaler interface
  9677. func (v ConnectTiming) MarshalJSON() ([]byte, error) {
  9678. w := jwriter.Writer{}
  9679. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(&w, v)
  9680. return w.Buffer.BuildBytes(), w.Error
  9681. }
  9682. // MarshalEasyJSON supports easyjson.Marshaler interface
  9683. func (v ConnectTiming) MarshalEasyJSON(w *jwriter.Writer) {
  9684. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(w, v)
  9685. }
  9686. // UnmarshalJSON supports json.Unmarshaler interface
  9687. func (v *ConnectTiming) UnmarshalJSON(data []byte) error {
  9688. r := jlexer.Lexer{Data: data}
  9689. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(&r, v)
  9690. return r.Error()
  9691. }
  9692. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9693. func (v *ConnectTiming) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9694. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(l, v)
  9695. }
  9696. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(in *jlexer.Lexer, out *ClientSecurityState) {
  9697. isTopLevel := in.IsStart()
  9698. if in.IsNull() {
  9699. if isTopLevel {
  9700. in.Consumed()
  9701. }
  9702. in.Skip()
  9703. return
  9704. }
  9705. in.Delim('{')
  9706. for !in.IsDelim('}') {
  9707. key := in.UnsafeFieldName(false)
  9708. in.WantColon()
  9709. if in.IsNull() {
  9710. in.Skip()
  9711. in.WantComma()
  9712. continue
  9713. }
  9714. switch key {
  9715. case "initiatorIsSecureContext":
  9716. out.InitiatorIsSecureContext = bool(in.Bool())
  9717. case "initiatorIPAddressSpace":
  9718. (out.InitiatorIPAddressSpace).UnmarshalEasyJSON(in)
  9719. case "privateNetworkRequestPolicy":
  9720. (out.PrivateNetworkRequestPolicy).UnmarshalEasyJSON(in)
  9721. default:
  9722. in.SkipRecursive()
  9723. }
  9724. in.WantComma()
  9725. }
  9726. in.Delim('}')
  9727. if isTopLevel {
  9728. in.Consumed()
  9729. }
  9730. }
  9731. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(out *jwriter.Writer, in ClientSecurityState) {
  9732. out.RawByte('{')
  9733. first := true
  9734. _ = first
  9735. {
  9736. const prefix string = ",\"initiatorIsSecureContext\":"
  9737. out.RawString(prefix[1:])
  9738. out.Bool(bool(in.InitiatorIsSecureContext))
  9739. }
  9740. {
  9741. const prefix string = ",\"initiatorIPAddressSpace\":"
  9742. out.RawString(prefix)
  9743. (in.InitiatorIPAddressSpace).MarshalEasyJSON(out)
  9744. }
  9745. {
  9746. const prefix string = ",\"privateNetworkRequestPolicy\":"
  9747. out.RawString(prefix)
  9748. (in.PrivateNetworkRequestPolicy).MarshalEasyJSON(out)
  9749. }
  9750. out.RawByte('}')
  9751. }
  9752. // MarshalJSON supports json.Marshaler interface
  9753. func (v ClientSecurityState) MarshalJSON() ([]byte, error) {
  9754. w := jwriter.Writer{}
  9755. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(&w, v)
  9756. return w.Buffer.BuildBytes(), w.Error
  9757. }
  9758. // MarshalEasyJSON supports easyjson.Marshaler interface
  9759. func (v ClientSecurityState) MarshalEasyJSON(w *jwriter.Writer) {
  9760. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(w, v)
  9761. }
  9762. // UnmarshalJSON supports json.Unmarshaler interface
  9763. func (v *ClientSecurityState) UnmarshalJSON(data []byte) error {
  9764. r := jlexer.Lexer{Data: data}
  9765. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(&r, v)
  9766. return r.Error()
  9767. }
  9768. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9769. func (v *ClientSecurityState) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9770. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(l, v)
  9771. }
  9772. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(in *jlexer.Lexer, out *ClearBrowserCookiesParams) {
  9773. isTopLevel := in.IsStart()
  9774. if in.IsNull() {
  9775. if isTopLevel {
  9776. in.Consumed()
  9777. }
  9778. in.Skip()
  9779. return
  9780. }
  9781. in.Delim('{')
  9782. for !in.IsDelim('}') {
  9783. key := in.UnsafeFieldName(false)
  9784. in.WantColon()
  9785. if in.IsNull() {
  9786. in.Skip()
  9787. in.WantComma()
  9788. continue
  9789. }
  9790. switch key {
  9791. default:
  9792. in.SkipRecursive()
  9793. }
  9794. in.WantComma()
  9795. }
  9796. in.Delim('}')
  9797. if isTopLevel {
  9798. in.Consumed()
  9799. }
  9800. }
  9801. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(out *jwriter.Writer, in ClearBrowserCookiesParams) {
  9802. out.RawByte('{')
  9803. first := true
  9804. _ = first
  9805. out.RawByte('}')
  9806. }
  9807. // MarshalJSON supports json.Marshaler interface
  9808. func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error) {
  9809. w := jwriter.Writer{}
  9810. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(&w, v)
  9811. return w.Buffer.BuildBytes(), w.Error
  9812. }
  9813. // MarshalEasyJSON supports easyjson.Marshaler interface
  9814. func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
  9815. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(w, v)
  9816. }
  9817. // UnmarshalJSON supports json.Unmarshaler interface
  9818. func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error {
  9819. r := jlexer.Lexer{Data: data}
  9820. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(&r, v)
  9821. return r.Error()
  9822. }
  9823. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9824. func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9825. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(l, v)
  9826. }
  9827. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(in *jlexer.Lexer, out *ClearBrowserCacheParams) {
  9828. isTopLevel := in.IsStart()
  9829. if in.IsNull() {
  9830. if isTopLevel {
  9831. in.Consumed()
  9832. }
  9833. in.Skip()
  9834. return
  9835. }
  9836. in.Delim('{')
  9837. for !in.IsDelim('}') {
  9838. key := in.UnsafeFieldName(false)
  9839. in.WantColon()
  9840. if in.IsNull() {
  9841. in.Skip()
  9842. in.WantComma()
  9843. continue
  9844. }
  9845. switch key {
  9846. default:
  9847. in.SkipRecursive()
  9848. }
  9849. in.WantComma()
  9850. }
  9851. in.Delim('}')
  9852. if isTopLevel {
  9853. in.Consumed()
  9854. }
  9855. }
  9856. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(out *jwriter.Writer, in ClearBrowserCacheParams) {
  9857. out.RawByte('{')
  9858. first := true
  9859. _ = first
  9860. out.RawByte('}')
  9861. }
  9862. // MarshalJSON supports json.Marshaler interface
  9863. func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error) {
  9864. w := jwriter.Writer{}
  9865. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(&w, v)
  9866. return w.Buffer.BuildBytes(), w.Error
  9867. }
  9868. // MarshalEasyJSON supports easyjson.Marshaler interface
  9869. func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
  9870. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(w, v)
  9871. }
  9872. // UnmarshalJSON supports json.Unmarshaler interface
  9873. func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error {
  9874. r := jlexer.Lexer{Data: data}
  9875. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(&r, v)
  9876. return r.Error()
  9877. }
  9878. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9879. func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9880. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(l, v)
  9881. }
  9882. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(in *jlexer.Lexer, out *ClearAcceptedEncodingsOverrideParams) {
  9883. isTopLevel := in.IsStart()
  9884. if in.IsNull() {
  9885. if isTopLevel {
  9886. in.Consumed()
  9887. }
  9888. in.Skip()
  9889. return
  9890. }
  9891. in.Delim('{')
  9892. for !in.IsDelim('}') {
  9893. key := in.UnsafeFieldName(false)
  9894. in.WantColon()
  9895. if in.IsNull() {
  9896. in.Skip()
  9897. in.WantComma()
  9898. continue
  9899. }
  9900. switch key {
  9901. default:
  9902. in.SkipRecursive()
  9903. }
  9904. in.WantComma()
  9905. }
  9906. in.Delim('}')
  9907. if isTopLevel {
  9908. in.Consumed()
  9909. }
  9910. }
  9911. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(out *jwriter.Writer, in ClearAcceptedEncodingsOverrideParams) {
  9912. out.RawByte('{')
  9913. first := true
  9914. _ = first
  9915. out.RawByte('}')
  9916. }
  9917. // MarshalJSON supports json.Marshaler interface
  9918. func (v ClearAcceptedEncodingsOverrideParams) MarshalJSON() ([]byte, error) {
  9919. w := jwriter.Writer{}
  9920. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(&w, v)
  9921. return w.Buffer.BuildBytes(), w.Error
  9922. }
  9923. // MarshalEasyJSON supports easyjson.Marshaler interface
  9924. func (v ClearAcceptedEncodingsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  9925. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(w, v)
  9926. }
  9927. // UnmarshalJSON supports json.Unmarshaler interface
  9928. func (v *ClearAcceptedEncodingsOverrideParams) UnmarshalJSON(data []byte) error {
  9929. r := jlexer.Lexer{Data: data}
  9930. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(&r, v)
  9931. return r.Error()
  9932. }
  9933. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9934. func (v *ClearAcceptedEncodingsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9935. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(l, v)
  9936. }
  9937. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(in *jlexer.Lexer, out *CachedResource) {
  9938. isTopLevel := in.IsStart()
  9939. if in.IsNull() {
  9940. if isTopLevel {
  9941. in.Consumed()
  9942. }
  9943. in.Skip()
  9944. return
  9945. }
  9946. in.Delim('{')
  9947. for !in.IsDelim('}') {
  9948. key := in.UnsafeFieldName(false)
  9949. in.WantColon()
  9950. if in.IsNull() {
  9951. in.Skip()
  9952. in.WantComma()
  9953. continue
  9954. }
  9955. switch key {
  9956. case "url":
  9957. out.URL = string(in.String())
  9958. case "type":
  9959. (out.Type).UnmarshalEasyJSON(in)
  9960. case "response":
  9961. if in.IsNull() {
  9962. in.Skip()
  9963. out.Response = nil
  9964. } else {
  9965. if out.Response == nil {
  9966. out.Response = new(Response)
  9967. }
  9968. (*out.Response).UnmarshalEasyJSON(in)
  9969. }
  9970. case "bodySize":
  9971. out.BodySize = float64(in.Float64())
  9972. default:
  9973. in.SkipRecursive()
  9974. }
  9975. in.WantComma()
  9976. }
  9977. in.Delim('}')
  9978. if isTopLevel {
  9979. in.Consumed()
  9980. }
  9981. }
  9982. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(out *jwriter.Writer, in CachedResource) {
  9983. out.RawByte('{')
  9984. first := true
  9985. _ = first
  9986. {
  9987. const prefix string = ",\"url\":"
  9988. out.RawString(prefix[1:])
  9989. out.String(string(in.URL))
  9990. }
  9991. {
  9992. const prefix string = ",\"type\":"
  9993. out.RawString(prefix)
  9994. (in.Type).MarshalEasyJSON(out)
  9995. }
  9996. if in.Response != nil {
  9997. const prefix string = ",\"response\":"
  9998. out.RawString(prefix)
  9999. (*in.Response).MarshalEasyJSON(out)
  10000. }
  10001. {
  10002. const prefix string = ",\"bodySize\":"
  10003. out.RawString(prefix)
  10004. out.Float64(float64(in.BodySize))
  10005. }
  10006. out.RawByte('}')
  10007. }
  10008. // MarshalJSON supports json.Marshaler interface
  10009. func (v CachedResource) MarshalJSON() ([]byte, error) {
  10010. w := jwriter.Writer{}
  10011. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(&w, v)
  10012. return w.Buffer.BuildBytes(), w.Error
  10013. }
  10014. // MarshalEasyJSON supports easyjson.Marshaler interface
  10015. func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) {
  10016. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(w, v)
  10017. }
  10018. // UnmarshalJSON supports json.Unmarshaler interface
  10019. func (v *CachedResource) UnmarshalJSON(data []byte) error {
  10020. r := jlexer.Lexer{Data: data}
  10021. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(&r, v)
  10022. return r.Error()
  10023. }
  10024. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  10025. func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
  10026. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(l, v)
  10027. }
  10028. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(in *jlexer.Lexer, out *BlockedSetCookieWithReason) {
  10029. isTopLevel := in.IsStart()
  10030. if in.IsNull() {
  10031. if isTopLevel {
  10032. in.Consumed()
  10033. }
  10034. in.Skip()
  10035. return
  10036. }
  10037. in.Delim('{')
  10038. for !in.IsDelim('}') {
  10039. key := in.UnsafeFieldName(false)
  10040. in.WantColon()
  10041. if in.IsNull() {
  10042. in.Skip()
  10043. in.WantComma()
  10044. continue
  10045. }
  10046. switch key {
  10047. case "blockedReasons":
  10048. if in.IsNull() {
  10049. in.Skip()
  10050. out.BlockedReasons = nil
  10051. } else {
  10052. in.Delim('[')
  10053. if out.BlockedReasons == nil {
  10054. if !in.IsDelim(']') {
  10055. out.BlockedReasons = make([]SetCookieBlockedReason, 0, 4)
  10056. } else {
  10057. out.BlockedReasons = []SetCookieBlockedReason{}
  10058. }
  10059. } else {
  10060. out.BlockedReasons = (out.BlockedReasons)[:0]
  10061. }
  10062. for !in.IsDelim(']') {
  10063. var v85 SetCookieBlockedReason
  10064. (v85).UnmarshalEasyJSON(in)
  10065. out.BlockedReasons = append(out.BlockedReasons, v85)
  10066. in.WantComma()
  10067. }
  10068. in.Delim(']')
  10069. }
  10070. case "cookieLine":
  10071. out.CookieLine = string(in.String())
  10072. case "cookie":
  10073. if in.IsNull() {
  10074. in.Skip()
  10075. out.Cookie = nil
  10076. } else {
  10077. if out.Cookie == nil {
  10078. out.Cookie = new(Cookie)
  10079. }
  10080. (*out.Cookie).UnmarshalEasyJSON(in)
  10081. }
  10082. default:
  10083. in.SkipRecursive()
  10084. }
  10085. in.WantComma()
  10086. }
  10087. in.Delim('}')
  10088. if isTopLevel {
  10089. in.Consumed()
  10090. }
  10091. }
  10092. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(out *jwriter.Writer, in BlockedSetCookieWithReason) {
  10093. out.RawByte('{')
  10094. first := true
  10095. _ = first
  10096. {
  10097. const prefix string = ",\"blockedReasons\":"
  10098. out.RawString(prefix[1:])
  10099. if in.BlockedReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  10100. out.RawString("null")
  10101. } else {
  10102. out.RawByte('[')
  10103. for v86, v87 := range in.BlockedReasons {
  10104. if v86 > 0 {
  10105. out.RawByte(',')
  10106. }
  10107. (v87).MarshalEasyJSON(out)
  10108. }
  10109. out.RawByte(']')
  10110. }
  10111. }
  10112. {
  10113. const prefix string = ",\"cookieLine\":"
  10114. out.RawString(prefix)
  10115. out.String(string(in.CookieLine))
  10116. }
  10117. if in.Cookie != nil {
  10118. const prefix string = ",\"cookie\":"
  10119. out.RawString(prefix)
  10120. (*in.Cookie).MarshalEasyJSON(out)
  10121. }
  10122. out.RawByte('}')
  10123. }
  10124. // MarshalJSON supports json.Marshaler interface
  10125. func (v BlockedSetCookieWithReason) MarshalJSON() ([]byte, error) {
  10126. w := jwriter.Writer{}
  10127. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(&w, v)
  10128. return w.Buffer.BuildBytes(), w.Error
  10129. }
  10130. // MarshalEasyJSON supports easyjson.Marshaler interface
  10131. func (v BlockedSetCookieWithReason) MarshalEasyJSON(w *jwriter.Writer) {
  10132. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(w, v)
  10133. }
  10134. // UnmarshalJSON supports json.Unmarshaler interface
  10135. func (v *BlockedSetCookieWithReason) UnmarshalJSON(data []byte) error {
  10136. r := jlexer.Lexer{Data: data}
  10137. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(&r, v)
  10138. return r.Error()
  10139. }
  10140. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  10141. func (v *BlockedSetCookieWithReason) UnmarshalEasyJSON(l *jlexer.Lexer) {
  10142. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(l, v)
  10143. }
  10144. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(in *jlexer.Lexer, out *AuthChallengeResponse) {
  10145. isTopLevel := in.IsStart()
  10146. if in.IsNull() {
  10147. if isTopLevel {
  10148. in.Consumed()
  10149. }
  10150. in.Skip()
  10151. return
  10152. }
  10153. in.Delim('{')
  10154. for !in.IsDelim('}') {
  10155. key := in.UnsafeFieldName(false)
  10156. in.WantColon()
  10157. if in.IsNull() {
  10158. in.Skip()
  10159. in.WantComma()
  10160. continue
  10161. }
  10162. switch key {
  10163. case "response":
  10164. (out.Response).UnmarshalEasyJSON(in)
  10165. case "username":
  10166. out.Username = string(in.String())
  10167. case "password":
  10168. out.Password = string(in.String())
  10169. default:
  10170. in.SkipRecursive()
  10171. }
  10172. in.WantComma()
  10173. }
  10174. in.Delim('}')
  10175. if isTopLevel {
  10176. in.Consumed()
  10177. }
  10178. }
  10179. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(out *jwriter.Writer, in AuthChallengeResponse) {
  10180. out.RawByte('{')
  10181. first := true
  10182. _ = first
  10183. {
  10184. const prefix string = ",\"response\":"
  10185. out.RawString(prefix[1:])
  10186. (in.Response).MarshalEasyJSON(out)
  10187. }
  10188. if in.Username != "" {
  10189. const prefix string = ",\"username\":"
  10190. out.RawString(prefix)
  10191. out.String(string(in.Username))
  10192. }
  10193. if in.Password != "" {
  10194. const prefix string = ",\"password\":"
  10195. out.RawString(prefix)
  10196. out.String(string(in.Password))
  10197. }
  10198. out.RawByte('}')
  10199. }
  10200. // MarshalJSON supports json.Marshaler interface
  10201. func (v AuthChallengeResponse) MarshalJSON() ([]byte, error) {
  10202. w := jwriter.Writer{}
  10203. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(&w, v)
  10204. return w.Buffer.BuildBytes(), w.Error
  10205. }
  10206. // MarshalEasyJSON supports easyjson.Marshaler interface
  10207. func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer) {
  10208. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(w, v)
  10209. }
  10210. // UnmarshalJSON supports json.Unmarshaler interface
  10211. func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error {
  10212. r := jlexer.Lexer{Data: data}
  10213. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(&r, v)
  10214. return r.Error()
  10215. }
  10216. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  10217. func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
  10218. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(l, v)
  10219. }
  10220. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(in *jlexer.Lexer, out *AuthChallenge) {
  10221. isTopLevel := in.IsStart()
  10222. if in.IsNull() {
  10223. if isTopLevel {
  10224. in.Consumed()
  10225. }
  10226. in.Skip()
  10227. return
  10228. }
  10229. in.Delim('{')
  10230. for !in.IsDelim('}') {
  10231. key := in.UnsafeFieldName(false)
  10232. in.WantColon()
  10233. if in.IsNull() {
  10234. in.Skip()
  10235. in.WantComma()
  10236. continue
  10237. }
  10238. switch key {
  10239. case "source":
  10240. (out.Source).UnmarshalEasyJSON(in)
  10241. case "origin":
  10242. out.Origin = string(in.String())
  10243. case "scheme":
  10244. out.Scheme = string(in.String())
  10245. case "realm":
  10246. out.Realm = string(in.String())
  10247. default:
  10248. in.SkipRecursive()
  10249. }
  10250. in.WantComma()
  10251. }
  10252. in.Delim('}')
  10253. if isTopLevel {
  10254. in.Consumed()
  10255. }
  10256. }
  10257. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(out *jwriter.Writer, in AuthChallenge) {
  10258. out.RawByte('{')
  10259. first := true
  10260. _ = first
  10261. if in.Source != "" {
  10262. const prefix string = ",\"source\":"
  10263. first = false
  10264. out.RawString(prefix[1:])
  10265. (in.Source).MarshalEasyJSON(out)
  10266. }
  10267. {
  10268. const prefix string = ",\"origin\":"
  10269. if first {
  10270. first = false
  10271. out.RawString(prefix[1:])
  10272. } else {
  10273. out.RawString(prefix)
  10274. }
  10275. out.String(string(in.Origin))
  10276. }
  10277. {
  10278. const prefix string = ",\"scheme\":"
  10279. out.RawString(prefix)
  10280. out.String(string(in.Scheme))
  10281. }
  10282. {
  10283. const prefix string = ",\"realm\":"
  10284. out.RawString(prefix)
  10285. out.String(string(in.Realm))
  10286. }
  10287. out.RawByte('}')
  10288. }
  10289. // MarshalJSON supports json.Marshaler interface
  10290. func (v AuthChallenge) MarshalJSON() ([]byte, error) {
  10291. w := jwriter.Writer{}
  10292. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(&w, v)
  10293. return w.Buffer.BuildBytes(), w.Error
  10294. }
  10295. // MarshalEasyJSON supports easyjson.Marshaler interface
  10296. func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer) {
  10297. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(w, v)
  10298. }
  10299. // UnmarshalJSON supports json.Unmarshaler interface
  10300. func (v *AuthChallenge) UnmarshalJSON(data []byte) error {
  10301. r := jlexer.Lexer{Data: data}
  10302. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(&r, v)
  10303. return r.Error()
  10304. }
  10305. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  10306. func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer) {
  10307. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(l, v)
  10308. }
  10309. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(in *jlexer.Lexer, out *AssociatedCookie) {
  10310. isTopLevel := in.IsStart()
  10311. if in.IsNull() {
  10312. if isTopLevel {
  10313. in.Consumed()
  10314. }
  10315. in.Skip()
  10316. return
  10317. }
  10318. in.Delim('{')
  10319. for !in.IsDelim('}') {
  10320. key := in.UnsafeFieldName(false)
  10321. in.WantColon()
  10322. if in.IsNull() {
  10323. in.Skip()
  10324. in.WantComma()
  10325. continue
  10326. }
  10327. switch key {
  10328. case "cookie":
  10329. if in.IsNull() {
  10330. in.Skip()
  10331. out.Cookie = nil
  10332. } else {
  10333. if out.Cookie == nil {
  10334. out.Cookie = new(Cookie)
  10335. }
  10336. (*out.Cookie).UnmarshalEasyJSON(in)
  10337. }
  10338. case "blockedReasons":
  10339. if in.IsNull() {
  10340. in.Skip()
  10341. out.BlockedReasons = nil
  10342. } else {
  10343. in.Delim('[')
  10344. if out.BlockedReasons == nil {
  10345. if !in.IsDelim(']') {
  10346. out.BlockedReasons = make([]CookieBlockedReason, 0, 4)
  10347. } else {
  10348. out.BlockedReasons = []CookieBlockedReason{}
  10349. }
  10350. } else {
  10351. out.BlockedReasons = (out.BlockedReasons)[:0]
  10352. }
  10353. for !in.IsDelim(']') {
  10354. var v88 CookieBlockedReason
  10355. (v88).UnmarshalEasyJSON(in)
  10356. out.BlockedReasons = append(out.BlockedReasons, v88)
  10357. in.WantComma()
  10358. }
  10359. in.Delim(']')
  10360. }
  10361. case "exemptionReason":
  10362. (out.ExemptionReason).UnmarshalEasyJSON(in)
  10363. default:
  10364. in.SkipRecursive()
  10365. }
  10366. in.WantComma()
  10367. }
  10368. in.Delim('}')
  10369. if isTopLevel {
  10370. in.Consumed()
  10371. }
  10372. }
  10373. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(out *jwriter.Writer, in AssociatedCookie) {
  10374. out.RawByte('{')
  10375. first := true
  10376. _ = first
  10377. {
  10378. const prefix string = ",\"cookie\":"
  10379. out.RawString(prefix[1:])
  10380. if in.Cookie == nil {
  10381. out.RawString("null")
  10382. } else {
  10383. (*in.Cookie).MarshalEasyJSON(out)
  10384. }
  10385. }
  10386. {
  10387. const prefix string = ",\"blockedReasons\":"
  10388. out.RawString(prefix)
  10389. if in.BlockedReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  10390. out.RawString("null")
  10391. } else {
  10392. out.RawByte('[')
  10393. for v89, v90 := range in.BlockedReasons {
  10394. if v89 > 0 {
  10395. out.RawByte(',')
  10396. }
  10397. (v90).MarshalEasyJSON(out)
  10398. }
  10399. out.RawByte(']')
  10400. }
  10401. }
  10402. if in.ExemptionReason != "" {
  10403. const prefix string = ",\"exemptionReason\":"
  10404. out.RawString(prefix)
  10405. (in.ExemptionReason).MarshalEasyJSON(out)
  10406. }
  10407. out.RawByte('}')
  10408. }
  10409. // MarshalJSON supports json.Marshaler interface
  10410. func (v AssociatedCookie) MarshalJSON() ([]byte, error) {
  10411. w := jwriter.Writer{}
  10412. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(&w, v)
  10413. return w.Buffer.BuildBytes(), w.Error
  10414. }
  10415. // MarshalEasyJSON supports easyjson.Marshaler interface
  10416. func (v AssociatedCookie) MarshalEasyJSON(w *jwriter.Writer) {
  10417. easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(w, v)
  10418. }
  10419. // UnmarshalJSON supports json.Unmarshaler interface
  10420. func (v *AssociatedCookie) UnmarshalJSON(data []byte) error {
  10421. r := jlexer.Lexer{Data: data}
  10422. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(&r, v)
  10423. return r.Error()
  10424. }
  10425. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  10426. func (v *AssociatedCookie) UnmarshalEasyJSON(l *jlexer.Lexer) {
  10427. easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(l, v)
  10428. }