1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844 |
- // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
- package network
- import (
- json "encoding/json"
- cdp "github.com/chromedp/cdproto/cdp"
- debugger "github.com/chromedp/cdproto/debugger"
- io "github.com/chromedp/cdproto/io"
- runtime "github.com/chromedp/cdproto/runtime"
- security "github.com/chromedp/cdproto/security"
- easyjson "github.com/mailru/easyjson"
- jlexer "github.com/mailru/easyjson/jlexer"
- jwriter "github.com/mailru/easyjson/jwriter"
- )
- // suppress unused package warning
- var (
- _ *json.RawMessage
- _ *jlexer.Lexer
- _ *jwriter.Writer
- _ easyjson.Marshaler
- )
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork(in *jlexer.Lexer, out *WebSocketResponse) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "status":
- out.Status = int64(in.Int64())
- case "statusText":
- out.StatusText = string(in.String())
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.Headers = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v1 interface{}
- if m, ok := v1.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v1.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v1 = in.Interface()
- }
- (out.Headers)[key] = v1
- in.WantComma()
- }
- in.Delim('}')
- }
- case "headersText":
- out.HeadersText = string(in.String())
- case "requestHeaders":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- if !in.IsDelim('}') {
- out.RequestHeaders = make(Headers)
- } else {
- out.RequestHeaders = nil
- }
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v2 interface{}
- if m, ok := v2.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v2.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v2 = in.Interface()
- }
- (out.RequestHeaders)[key] = v2
- in.WantComma()
- }
- in.Delim('}')
- }
- case "requestHeadersText":
- out.RequestHeadersText = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork(out *jwriter.Writer, in WebSocketResponse) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"status\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.Status))
- }
- {
- const prefix string = ",\"statusText\":"
- out.RawString(prefix)
- out.String(string(in.StatusText))
- }
- {
- const prefix string = ",\"headers\":"
- out.RawString(prefix)
- if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v3First := true
- for v3Name, v3Value := range in.Headers {
- if v3First {
- v3First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v3Name))
- out.RawByte(':')
- if m, ok := v3Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v3Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v3Value))
- }
- }
- out.RawByte('}')
- }
- }
- if in.HeadersText != "" {
- const prefix string = ",\"headersText\":"
- out.RawString(prefix)
- out.String(string(in.HeadersText))
- }
- if len(in.RequestHeaders) != 0 {
- const prefix string = ",\"requestHeaders\":"
- out.RawString(prefix)
- {
- out.RawByte('{')
- v4First := true
- for v4Name, v4Value := range in.RequestHeaders {
- if v4First {
- v4First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v4Name))
- out.RawByte(':')
- if m, ok := v4Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v4Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v4Value))
- }
- }
- out.RawByte('}')
- }
- }
- if in.RequestHeadersText != "" {
- const prefix string = ",\"requestHeadersText\":"
- out.RawString(prefix)
- out.String(string(in.RequestHeadersText))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v WebSocketResponse) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *WebSocketResponse) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork1(in *jlexer.Lexer, out *WebSocketRequest) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.Headers = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v5 interface{}
- if m, ok := v5.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v5.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v5 = in.Interface()
- }
- (out.Headers)[key] = v5
- in.WantComma()
- }
- in.Delim('}')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork1(out *jwriter.Writer, in WebSocketRequest) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"headers\":"
- out.RawString(prefix[1:])
- if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v6First := true
- for v6Name, v6Value := range in.Headers {
- if v6First {
- v6First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v6Name))
- out.RawByte(':')
- if m, ok := v6Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v6Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v6Value))
- }
- }
- out.RawByte('}')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v WebSocketRequest) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork1(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork1(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *WebSocketRequest) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork1(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork1(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork2(in *jlexer.Lexer, out *WebSocketFrame) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "opcode":
- out.Opcode = float64(in.Float64())
- case "mask":
- out.Mask = bool(in.Bool())
- case "payloadData":
- out.PayloadData = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork2(out *jwriter.Writer, in WebSocketFrame) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"opcode\":"
- out.RawString(prefix[1:])
- out.Float64(float64(in.Opcode))
- }
- {
- const prefix string = ",\"mask\":"
- out.RawString(prefix)
- out.Bool(bool(in.Mask))
- }
- {
- const prefix string = ",\"payloadData\":"
- out.RawString(prefix)
- out.String(string(in.PayloadData))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v WebSocketFrame) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork2(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork2(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *WebSocketFrame) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork2(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork2(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork3(in *jlexer.Lexer, out *TrustTokenParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "operation":
- (out.Operation).UnmarshalEasyJSON(in)
- case "refreshPolicy":
- (out.RefreshPolicy).UnmarshalEasyJSON(in)
- case "issuers":
- if in.IsNull() {
- in.Skip()
- out.Issuers = nil
- } else {
- in.Delim('[')
- if out.Issuers == nil {
- if !in.IsDelim(']') {
- out.Issuers = make([]string, 0, 4)
- } else {
- out.Issuers = []string{}
- }
- } else {
- out.Issuers = (out.Issuers)[:0]
- }
- for !in.IsDelim(']') {
- var v7 string
- v7 = string(in.String())
- out.Issuers = append(out.Issuers, v7)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork3(out *jwriter.Writer, in TrustTokenParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"operation\":"
- out.RawString(prefix[1:])
- (in.Operation).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"refreshPolicy\":"
- out.RawString(prefix)
- (in.RefreshPolicy).MarshalEasyJSON(out)
- }
- if len(in.Issuers) != 0 {
- const prefix string = ",\"issuers\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v8, v9 := range in.Issuers {
- if v8 > 0 {
- out.RawByte(',')
- }
- out.String(string(v9))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TrustTokenParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork3(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TrustTokenParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork3(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TrustTokenParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork3(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TrustTokenParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork3(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork4(in *jlexer.Lexer, out *TakeResponseBodyForInterceptionAsStreamReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "stream":
- out.Stream = io.StreamHandle(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork4(out *jwriter.Writer, in TakeResponseBodyForInterceptionAsStreamReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Stream != "" {
- const prefix string = ",\"stream\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Stream))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork4(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork4(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork4(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork4(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork5(in *jlexer.Lexer, out *TakeResponseBodyForInterceptionAsStreamParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "interceptionId":
- out.InterceptionID = InterceptionID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork5(out *jwriter.Writer, in TakeResponseBodyForInterceptionAsStreamParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"interceptionId\":"
- out.RawString(prefix[1:])
- out.String(string(in.InterceptionID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork5(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork5(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork5(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork5(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork6(in *jlexer.Lexer, out *StreamResourceContentReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "bufferedData":
- out.BufferedData = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork6(out *jwriter.Writer, in StreamResourceContentReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.BufferedData != "" {
- const prefix string = ",\"bufferedData\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.BufferedData))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StreamResourceContentReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork6(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StreamResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork6(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StreamResourceContentReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork6(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StreamResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork6(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork7(in *jlexer.Lexer, out *StreamResourceContentParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork7(out *jwriter.Writer, in StreamResourceContentParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StreamResourceContentParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork7(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StreamResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork7(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StreamResourceContentParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork7(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StreamResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork7(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork8(in *jlexer.Lexer, out *SignedExchangeSignature) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "label":
- out.Label = string(in.String())
- case "signature":
- out.Signature = string(in.String())
- case "integrity":
- out.Integrity = string(in.String())
- case "certUrl":
- out.CertURL = string(in.String())
- case "certSha256":
- out.CertSha256 = string(in.String())
- case "validityUrl":
- out.ValidityURL = string(in.String())
- case "date":
- out.Date = int64(in.Int64())
- case "expires":
- out.Expires = int64(in.Int64())
- case "certificates":
- if in.IsNull() {
- in.Skip()
- out.Certificates = nil
- } else {
- in.Delim('[')
- if out.Certificates == nil {
- if !in.IsDelim(']') {
- out.Certificates = make([]string, 0, 4)
- } else {
- out.Certificates = []string{}
- }
- } else {
- out.Certificates = (out.Certificates)[:0]
- }
- for !in.IsDelim(']') {
- var v10 string
- v10 = string(in.String())
- out.Certificates = append(out.Certificates, v10)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork8(out *jwriter.Writer, in SignedExchangeSignature) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"label\":"
- out.RawString(prefix[1:])
- out.String(string(in.Label))
- }
- {
- const prefix string = ",\"signature\":"
- out.RawString(prefix)
- out.String(string(in.Signature))
- }
- {
- const prefix string = ",\"integrity\":"
- out.RawString(prefix)
- out.String(string(in.Integrity))
- }
- if in.CertURL != "" {
- const prefix string = ",\"certUrl\":"
- out.RawString(prefix)
- out.String(string(in.CertURL))
- }
- if in.CertSha256 != "" {
- const prefix string = ",\"certSha256\":"
- out.RawString(prefix)
- out.String(string(in.CertSha256))
- }
- {
- const prefix string = ",\"validityUrl\":"
- out.RawString(prefix)
- out.String(string(in.ValidityURL))
- }
- {
- const prefix string = ",\"date\":"
- out.RawString(prefix)
- out.Int64(int64(in.Date))
- }
- {
- const prefix string = ",\"expires\":"
- out.RawString(prefix)
- out.Int64(int64(in.Expires))
- }
- if len(in.Certificates) != 0 {
- const prefix string = ",\"certificates\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v11, v12 := range in.Certificates {
- if v11 > 0 {
- out.RawByte(',')
- }
- out.String(string(v12))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SignedExchangeSignature) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork8(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SignedExchangeSignature) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork8(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SignedExchangeSignature) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork8(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SignedExchangeSignature) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork8(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork9(in *jlexer.Lexer, out *SignedExchangeInfo) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "outerResponse":
- if in.IsNull() {
- in.Skip()
- out.OuterResponse = nil
- } else {
- if out.OuterResponse == nil {
- out.OuterResponse = new(Response)
- }
- (*out.OuterResponse).UnmarshalEasyJSON(in)
- }
- case "header":
- if in.IsNull() {
- in.Skip()
- out.Header = nil
- } else {
- if out.Header == nil {
- out.Header = new(SignedExchangeHeader)
- }
- (*out.Header).UnmarshalEasyJSON(in)
- }
- case "securityDetails":
- if in.IsNull() {
- in.Skip()
- out.SecurityDetails = nil
- } else {
- if out.SecurityDetails == nil {
- out.SecurityDetails = new(SecurityDetails)
- }
- (*out.SecurityDetails).UnmarshalEasyJSON(in)
- }
- case "errors":
- if in.IsNull() {
- in.Skip()
- out.Errors = nil
- } else {
- in.Delim('[')
- if out.Errors == nil {
- if !in.IsDelim(']') {
- out.Errors = make([]*SignedExchangeError, 0, 8)
- } else {
- out.Errors = []*SignedExchangeError{}
- }
- } else {
- out.Errors = (out.Errors)[:0]
- }
- for !in.IsDelim(']') {
- var v13 *SignedExchangeError
- if in.IsNull() {
- in.Skip()
- v13 = nil
- } else {
- if v13 == nil {
- v13 = new(SignedExchangeError)
- }
- (*v13).UnmarshalEasyJSON(in)
- }
- out.Errors = append(out.Errors, v13)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork9(out *jwriter.Writer, in SignedExchangeInfo) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"outerResponse\":"
- out.RawString(prefix[1:])
- if in.OuterResponse == nil {
- out.RawString("null")
- } else {
- (*in.OuterResponse).MarshalEasyJSON(out)
- }
- }
- if in.Header != nil {
- const prefix string = ",\"header\":"
- out.RawString(prefix)
- (*in.Header).MarshalEasyJSON(out)
- }
- if in.SecurityDetails != nil {
- const prefix string = ",\"securityDetails\":"
- out.RawString(prefix)
- (*in.SecurityDetails).MarshalEasyJSON(out)
- }
- if len(in.Errors) != 0 {
- const prefix string = ",\"errors\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v14, v15 := range in.Errors {
- if v14 > 0 {
- out.RawByte(',')
- }
- if v15 == nil {
- out.RawString("null")
- } else {
- (*v15).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SignedExchangeInfo) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork9(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SignedExchangeInfo) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork9(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SignedExchangeInfo) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork9(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SignedExchangeInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork9(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork10(in *jlexer.Lexer, out *SignedExchangeHeader) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestUrl":
- out.RequestURL = string(in.String())
- case "responseCode":
- out.ResponseCode = int64(in.Int64())
- case "responseHeaders":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.ResponseHeaders = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v16 interface{}
- if m, ok := v16.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v16.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v16 = in.Interface()
- }
- (out.ResponseHeaders)[key] = v16
- in.WantComma()
- }
- in.Delim('}')
- }
- case "signatures":
- if in.IsNull() {
- in.Skip()
- out.Signatures = nil
- } else {
- in.Delim('[')
- if out.Signatures == nil {
- if !in.IsDelim(']') {
- out.Signatures = make([]*SignedExchangeSignature, 0, 8)
- } else {
- out.Signatures = []*SignedExchangeSignature{}
- }
- } else {
- out.Signatures = (out.Signatures)[:0]
- }
- for !in.IsDelim(']') {
- var v17 *SignedExchangeSignature
- if in.IsNull() {
- in.Skip()
- v17 = nil
- } else {
- if v17 == nil {
- v17 = new(SignedExchangeSignature)
- }
- (*v17).UnmarshalEasyJSON(in)
- }
- out.Signatures = append(out.Signatures, v17)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "headerIntegrity":
- out.HeaderIntegrity = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork10(out *jwriter.Writer, in SignedExchangeHeader) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestUrl\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestURL))
- }
- {
- const prefix string = ",\"responseCode\":"
- out.RawString(prefix)
- out.Int64(int64(in.ResponseCode))
- }
- {
- const prefix string = ",\"responseHeaders\":"
- out.RawString(prefix)
- if in.ResponseHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v18First := true
- for v18Name, v18Value := range in.ResponseHeaders {
- if v18First {
- v18First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v18Name))
- out.RawByte(':')
- if m, ok := v18Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v18Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v18Value))
- }
- }
- out.RawByte('}')
- }
- }
- {
- const prefix string = ",\"signatures\":"
- out.RawString(prefix)
- if in.Signatures == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v19, v20 := range in.Signatures {
- if v19 > 0 {
- out.RawByte(',')
- }
- if v20 == nil {
- out.RawString("null")
- } else {
- (*v20).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"headerIntegrity\":"
- out.RawString(prefix)
- out.String(string(in.HeaderIntegrity))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SignedExchangeHeader) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork10(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SignedExchangeHeader) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork10(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SignedExchangeHeader) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork10(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SignedExchangeHeader) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork10(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork11(in *jlexer.Lexer, out *SignedExchangeError) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "message":
- out.Message = string(in.String())
- case "signatureIndex":
- out.SignatureIndex = int64(in.Int64())
- case "errorField":
- (out.ErrorField).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork11(out *jwriter.Writer, in SignedExchangeError) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"message\":"
- out.RawString(prefix[1:])
- out.String(string(in.Message))
- }
- if in.SignatureIndex != 0 {
- const prefix string = ",\"signatureIndex\":"
- out.RawString(prefix)
- out.Int64(int64(in.SignatureIndex))
- }
- if in.ErrorField != "" {
- const prefix string = ",\"errorField\":"
- out.RawString(prefix)
- (in.ErrorField).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SignedExchangeError) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork11(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SignedExchangeError) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork11(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SignedExchangeError) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork11(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SignedExchangeError) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork11(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork12(in *jlexer.Lexer, out *SignedCertificateTimestamp) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "status":
- out.Status = string(in.String())
- case "origin":
- out.Origin = string(in.String())
- case "logDescription":
- out.LogDescription = string(in.String())
- case "logId":
- out.LogID = string(in.String())
- case "timestamp":
- out.Timestamp = float64(in.Float64())
- case "hashAlgorithm":
- out.HashAlgorithm = string(in.String())
- case "signatureAlgorithm":
- out.SignatureAlgorithm = string(in.String())
- case "signatureData":
- out.SignatureData = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork12(out *jwriter.Writer, in SignedCertificateTimestamp) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"status\":"
- out.RawString(prefix[1:])
- out.String(string(in.Status))
- }
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix)
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"logDescription\":"
- out.RawString(prefix)
- out.String(string(in.LogDescription))
- }
- {
- const prefix string = ",\"logId\":"
- out.RawString(prefix)
- out.String(string(in.LogID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- out.Float64(float64(in.Timestamp))
- }
- {
- const prefix string = ",\"hashAlgorithm\":"
- out.RawString(prefix)
- out.String(string(in.HashAlgorithm))
- }
- {
- const prefix string = ",\"signatureAlgorithm\":"
- out.RawString(prefix)
- out.String(string(in.SignatureAlgorithm))
- }
- {
- const prefix string = ",\"signatureData\":"
- out.RawString(prefix)
- out.String(string(in.SignatureData))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork12(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork12(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork12(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork12(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork13(in *jlexer.Lexer, out *SetExtraHTTPHeadersParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.Headers = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v21 interface{}
- if m, ok := v21.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v21.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v21 = in.Interface()
- }
- (out.Headers)[key] = v21
- in.WantComma()
- }
- in.Delim('}')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork13(out *jwriter.Writer, in SetExtraHTTPHeadersParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"headers\":"
- out.RawString(prefix[1:])
- if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v22First := true
- for v22Name, v22Value := range in.Headers {
- if v22First {
- v22First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v22Name))
- out.RawByte(':')
- if m, ok := v22Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v22Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v22Value))
- }
- }
- out.RawByte('}')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork13(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork13(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork13(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork13(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork14(in *jlexer.Lexer, out *SetCookiesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "cookies":
- if in.IsNull() {
- in.Skip()
- out.Cookies = nil
- } else {
- in.Delim('[')
- if out.Cookies == nil {
- if !in.IsDelim(']') {
- out.Cookies = make([]*CookieParam, 0, 8)
- } else {
- out.Cookies = []*CookieParam{}
- }
- } else {
- out.Cookies = (out.Cookies)[:0]
- }
- for !in.IsDelim(']') {
- var v23 *CookieParam
- if in.IsNull() {
- in.Skip()
- v23 = nil
- } else {
- if v23 == nil {
- v23 = new(CookieParam)
- }
- (*v23).UnmarshalEasyJSON(in)
- }
- out.Cookies = append(out.Cookies, v23)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork14(out *jwriter.Writer, in SetCookiesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"cookies\":"
- out.RawString(prefix[1:])
- if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v24, v25 := range in.Cookies {
- if v24 > 0 {
- out.RawByte(',')
- }
- if v25 == nil {
- out.RawString("null")
- } else {
- (*v25).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetCookiesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork14(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork14(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetCookiesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork14(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork14(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork15(in *jlexer.Lexer, out *SetCookieParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "value":
- out.Value = string(in.String())
- case "url":
- out.URL = string(in.String())
- case "domain":
- out.Domain = string(in.String())
- case "path":
- out.Path = string(in.String())
- case "secure":
- out.Secure = bool(in.Bool())
- case "httpOnly":
- out.HTTPOnly = bool(in.Bool())
- case "sameSite":
- (out.SameSite).UnmarshalEasyJSON(in)
- case "expires":
- if in.IsNull() {
- in.Skip()
- out.Expires = nil
- } else {
- if out.Expires == nil {
- out.Expires = new(cdp.TimeSinceEpoch)
- }
- (*out.Expires).UnmarshalEasyJSON(in)
- }
- case "priority":
- (out.Priority).UnmarshalEasyJSON(in)
- case "sameParty":
- out.SameParty = bool(in.Bool())
- case "sourceScheme":
- (out.SourceScheme).UnmarshalEasyJSON(in)
- case "sourcePort":
- out.SourcePort = int64(in.Int64())
- case "partitionKey":
- out.PartitionKey = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork15(out *jwriter.Writer, in SetCookieParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- if in.URL != "" {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- if in.Domain != "" {
- const prefix string = ",\"domain\":"
- out.RawString(prefix)
- out.String(string(in.Domain))
- }
- if in.Path != "" {
- const prefix string = ",\"path\":"
- out.RawString(prefix)
- out.String(string(in.Path))
- }
- if in.Secure {
- const prefix string = ",\"secure\":"
- out.RawString(prefix)
- out.Bool(bool(in.Secure))
- }
- if in.HTTPOnly {
- const prefix string = ",\"httpOnly\":"
- out.RawString(prefix)
- out.Bool(bool(in.HTTPOnly))
- }
- if in.SameSite != "" {
- const prefix string = ",\"sameSite\":"
- out.RawString(prefix)
- (in.SameSite).MarshalEasyJSON(out)
- }
- if in.Expires != nil {
- const prefix string = ",\"expires\":"
- out.RawString(prefix)
- (*in.Expires).MarshalEasyJSON(out)
- }
- if in.Priority != "" {
- const prefix string = ",\"priority\":"
- out.RawString(prefix)
- (in.Priority).MarshalEasyJSON(out)
- }
- if in.SameParty {
- const prefix string = ",\"sameParty\":"
- out.RawString(prefix)
- out.Bool(bool(in.SameParty))
- }
- if in.SourceScheme != "" {
- const prefix string = ",\"sourceScheme\":"
- out.RawString(prefix)
- (in.SourceScheme).MarshalEasyJSON(out)
- }
- if in.SourcePort != 0 {
- const prefix string = ",\"sourcePort\":"
- out.RawString(prefix)
- out.Int64(int64(in.SourcePort))
- }
- if in.PartitionKey != "" {
- const prefix string = ",\"partitionKey\":"
- out.RawString(prefix)
- out.String(string(in.PartitionKey))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetCookieParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork15(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork15(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetCookieParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork15(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork15(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork16(in *jlexer.Lexer, out *SetCacheDisabledParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "cacheDisabled":
- out.CacheDisabled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork16(out *jwriter.Writer, in SetCacheDisabledParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"cacheDisabled\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.CacheDisabled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork16(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork16(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork16(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork16(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork17(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "bypass":
- out.Bypass = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork17(out *jwriter.Writer, in SetBypassServiceWorkerParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"bypass\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Bypass))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork17(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork17(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork17(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork17(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork18(in *jlexer.Lexer, out *SetBlockedURLSParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "urls":
- if in.IsNull() {
- in.Skip()
- out.Urls = nil
- } else {
- in.Delim('[')
- if out.Urls == nil {
- if !in.IsDelim(']') {
- out.Urls = make([]string, 0, 4)
- } else {
- out.Urls = []string{}
- }
- } else {
- out.Urls = (out.Urls)[:0]
- }
- for !in.IsDelim(']') {
- var v26 string
- v26 = string(in.String())
- out.Urls = append(out.Urls, v26)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork18(out *jwriter.Writer, in SetBlockedURLSParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"urls\":"
- out.RawString(prefix[1:])
- if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v27, v28 := range in.Urls {
- if v27 > 0 {
- out.RawByte(',')
- }
- out.String(string(v28))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork18(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork18(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork18(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork18(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork19(in *jlexer.Lexer, out *SetAttachDebugStackParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enabled":
- out.Enabled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork19(out *jwriter.Writer, in SetAttachDebugStackParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enabled\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enabled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetAttachDebugStackParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork19(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetAttachDebugStackParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork19(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetAttachDebugStackParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork19(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetAttachDebugStackParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork19(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork20(in *jlexer.Lexer, out *SetAcceptedEncodingsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "encodings":
- if in.IsNull() {
- in.Skip()
- out.Encodings = nil
- } else {
- in.Delim('[')
- if out.Encodings == nil {
- if !in.IsDelim(']') {
- out.Encodings = make([]ContentEncoding, 0, 4)
- } else {
- out.Encodings = []ContentEncoding{}
- }
- } else {
- out.Encodings = (out.Encodings)[:0]
- }
- for !in.IsDelim(']') {
- var v29 ContentEncoding
- (v29).UnmarshalEasyJSON(in)
- out.Encodings = append(out.Encodings, v29)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork20(out *jwriter.Writer, in SetAcceptedEncodingsParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"encodings\":"
- out.RawString(prefix[1:])
- if in.Encodings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v30, v31 := range in.Encodings {
- if v30 > 0 {
- out.RawByte(',')
- }
- (v31).MarshalEasyJSON(out)
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetAcceptedEncodingsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork20(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetAcceptedEncodingsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork20(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetAcceptedEncodingsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork20(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetAcceptedEncodingsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork20(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork21(in *jlexer.Lexer, out *ServiceWorkerRouterInfo) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ruleIdMatched":
- out.RuleIDMatched = int64(in.Int64())
- case "matchedSourceType":
- (out.MatchedSourceType).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork21(out *jwriter.Writer, in ServiceWorkerRouterInfo) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"ruleIdMatched\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.RuleIDMatched))
- }
- {
- const prefix string = ",\"matchedSourceType\":"
- out.RawString(prefix)
- (in.MatchedSourceType).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ServiceWorkerRouterInfo) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork21(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ServiceWorkerRouterInfo) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork21(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ServiceWorkerRouterInfo) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork21(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ServiceWorkerRouterInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork21(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork22(in *jlexer.Lexer, out *SecurityIsolationStatus) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "coop":
- if in.IsNull() {
- in.Skip()
- out.Coop = nil
- } else {
- if out.Coop == nil {
- out.Coop = new(CrossOriginOpenerPolicyStatus)
- }
- (*out.Coop).UnmarshalEasyJSON(in)
- }
- case "coep":
- if in.IsNull() {
- in.Skip()
- out.Coep = nil
- } else {
- if out.Coep == nil {
- out.Coep = new(CrossOriginEmbedderPolicyStatus)
- }
- (*out.Coep).UnmarshalEasyJSON(in)
- }
- case "csp":
- if in.IsNull() {
- in.Skip()
- out.Csp = nil
- } else {
- in.Delim('[')
- if out.Csp == nil {
- if !in.IsDelim(']') {
- out.Csp = make([]*ContentSecurityPolicyStatus, 0, 8)
- } else {
- out.Csp = []*ContentSecurityPolicyStatus{}
- }
- } else {
- out.Csp = (out.Csp)[:0]
- }
- for !in.IsDelim(']') {
- var v32 *ContentSecurityPolicyStatus
- if in.IsNull() {
- in.Skip()
- v32 = nil
- } else {
- if v32 == nil {
- v32 = new(ContentSecurityPolicyStatus)
- }
- (*v32).UnmarshalEasyJSON(in)
- }
- out.Csp = append(out.Csp, v32)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork22(out *jwriter.Writer, in SecurityIsolationStatus) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Coop != nil {
- const prefix string = ",\"coop\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Coop).MarshalEasyJSON(out)
- }
- if in.Coep != nil {
- const prefix string = ",\"coep\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (*in.Coep).MarshalEasyJSON(out)
- }
- if len(in.Csp) != 0 {
- const prefix string = ",\"csp\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v33, v34 := range in.Csp {
- if v33 > 0 {
- out.RawByte(',')
- }
- if v34 == nil {
- out.RawString("null")
- } else {
- (*v34).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SecurityIsolationStatus) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork22(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SecurityIsolationStatus) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork22(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SecurityIsolationStatus) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork22(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SecurityIsolationStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork22(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork23(in *jlexer.Lexer, out *SecurityDetails) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "protocol":
- out.Protocol = string(in.String())
- case "keyExchange":
- out.KeyExchange = string(in.String())
- case "keyExchangeGroup":
- out.KeyExchangeGroup = string(in.String())
- case "cipher":
- out.Cipher = string(in.String())
- case "mac":
- out.Mac = string(in.String())
- case "certificateId":
- out.CertificateID = security.CertificateID(in.Int64())
- case "subjectName":
- out.SubjectName = string(in.String())
- case "sanList":
- if in.IsNull() {
- in.Skip()
- out.SanList = nil
- } else {
- in.Delim('[')
- if out.SanList == nil {
- if !in.IsDelim(']') {
- out.SanList = make([]string, 0, 4)
- } else {
- out.SanList = []string{}
- }
- } else {
- out.SanList = (out.SanList)[:0]
- }
- for !in.IsDelim(']') {
- var v35 string
- v35 = string(in.String())
- out.SanList = append(out.SanList, v35)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "issuer":
- out.Issuer = string(in.String())
- case "validFrom":
- if in.IsNull() {
- in.Skip()
- out.ValidFrom = nil
- } else {
- if out.ValidFrom == nil {
- out.ValidFrom = new(cdp.TimeSinceEpoch)
- }
- (*out.ValidFrom).UnmarshalEasyJSON(in)
- }
- case "validTo":
- if in.IsNull() {
- in.Skip()
- out.ValidTo = nil
- } else {
- if out.ValidTo == nil {
- out.ValidTo = new(cdp.TimeSinceEpoch)
- }
- (*out.ValidTo).UnmarshalEasyJSON(in)
- }
- case "signedCertificateTimestampList":
- if in.IsNull() {
- in.Skip()
- out.SignedCertificateTimestampList = nil
- } else {
- in.Delim('[')
- if out.SignedCertificateTimestampList == nil {
- if !in.IsDelim(']') {
- out.SignedCertificateTimestampList = make([]*SignedCertificateTimestamp, 0, 8)
- } else {
- out.SignedCertificateTimestampList = []*SignedCertificateTimestamp{}
- }
- } else {
- out.SignedCertificateTimestampList = (out.SignedCertificateTimestampList)[:0]
- }
- for !in.IsDelim(']') {
- var v36 *SignedCertificateTimestamp
- if in.IsNull() {
- in.Skip()
- v36 = nil
- } else {
- if v36 == nil {
- v36 = new(SignedCertificateTimestamp)
- }
- (*v36).UnmarshalEasyJSON(in)
- }
- out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v36)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "certificateTransparencyCompliance":
- (out.CertificateTransparencyCompliance).UnmarshalEasyJSON(in)
- case "serverSignatureAlgorithm":
- out.ServerSignatureAlgorithm = int64(in.Int64())
- case "encryptedClientHello":
- out.EncryptedClientHello = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork23(out *jwriter.Writer, in SecurityDetails) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"protocol\":"
- out.RawString(prefix[1:])
- out.String(string(in.Protocol))
- }
- {
- const prefix string = ",\"keyExchange\":"
- out.RawString(prefix)
- out.String(string(in.KeyExchange))
- }
- if in.KeyExchangeGroup != "" {
- const prefix string = ",\"keyExchangeGroup\":"
- out.RawString(prefix)
- out.String(string(in.KeyExchangeGroup))
- }
- {
- const prefix string = ",\"cipher\":"
- out.RawString(prefix)
- out.String(string(in.Cipher))
- }
- if in.Mac != "" {
- const prefix string = ",\"mac\":"
- out.RawString(prefix)
- out.String(string(in.Mac))
- }
- {
- const prefix string = ",\"certificateId\":"
- out.RawString(prefix)
- out.Int64(int64(in.CertificateID))
- }
- {
- const prefix string = ",\"subjectName\":"
- out.RawString(prefix)
- out.String(string(in.SubjectName))
- }
- {
- const prefix string = ",\"sanList\":"
- out.RawString(prefix)
- if in.SanList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v37, v38 := range in.SanList {
- if v37 > 0 {
- out.RawByte(',')
- }
- out.String(string(v38))
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"issuer\":"
- out.RawString(prefix)
- out.String(string(in.Issuer))
- }
- {
- const prefix string = ",\"validFrom\":"
- out.RawString(prefix)
- if in.ValidFrom == nil {
- out.RawString("null")
- } else {
- (*in.ValidFrom).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"validTo\":"
- out.RawString(prefix)
- if in.ValidTo == nil {
- out.RawString("null")
- } else {
- (*in.ValidTo).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"signedCertificateTimestampList\":"
- out.RawString(prefix)
- if in.SignedCertificateTimestampList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v39, v40 := range in.SignedCertificateTimestampList {
- if v39 > 0 {
- out.RawByte(',')
- }
- if v40 == nil {
- out.RawString("null")
- } else {
- (*v40).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"certificateTransparencyCompliance\":"
- out.RawString(prefix)
- (in.CertificateTransparencyCompliance).MarshalEasyJSON(out)
- }
- if in.ServerSignatureAlgorithm != 0 {
- const prefix string = ",\"serverSignatureAlgorithm\":"
- out.RawString(prefix)
- out.Int64(int64(in.ServerSignatureAlgorithm))
- }
- {
- const prefix string = ",\"encryptedClientHello\":"
- out.RawString(prefix)
- out.Bool(bool(in.EncryptedClientHello))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SecurityDetails) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork23(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork23(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SecurityDetails) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork23(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork23(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork24(in *jlexer.Lexer, out *SearchInResponseBodyReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "result":
- if in.IsNull() {
- in.Skip()
- out.Result = nil
- } else {
- in.Delim('[')
- if out.Result == nil {
- if !in.IsDelim(']') {
- out.Result = make([]*debugger.SearchMatch, 0, 8)
- } else {
- out.Result = []*debugger.SearchMatch{}
- }
- } else {
- out.Result = (out.Result)[:0]
- }
- for !in.IsDelim(']') {
- var v41 *debugger.SearchMatch
- if in.IsNull() {
- in.Skip()
- v41 = nil
- } else {
- if v41 == nil {
- v41 = new(debugger.SearchMatch)
- }
- (*v41).UnmarshalEasyJSON(in)
- }
- out.Result = append(out.Result, v41)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork24(out *jwriter.Writer, in SearchInResponseBodyReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Result) != 0 {
- const prefix string = ",\"result\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v42, v43 := range in.Result {
- if v42 > 0 {
- out.RawByte(',')
- }
- if v43 == nil {
- out.RawString("null")
- } else {
- (*v43).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SearchInResponseBodyReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork24(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SearchInResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork24(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SearchInResponseBodyReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork24(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SearchInResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork24(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork25(in *jlexer.Lexer, out *SearchInResponseBodyParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "query":
- out.Query = string(in.String())
- case "caseSensitive":
- out.CaseSensitive = bool(in.Bool())
- case "isRegex":
- out.IsRegex = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork25(out *jwriter.Writer, in SearchInResponseBodyParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"query\":"
- out.RawString(prefix)
- out.String(string(in.Query))
- }
- if in.CaseSensitive {
- const prefix string = ",\"caseSensitive\":"
- out.RawString(prefix)
- out.Bool(bool(in.CaseSensitive))
- }
- if in.IsRegex {
- const prefix string = ",\"isRegex\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsRegex))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SearchInResponseBodyParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork25(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SearchInResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork25(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SearchInResponseBodyParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork25(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SearchInResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork25(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork26(in *jlexer.Lexer, out *Response) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "status":
- out.Status = int64(in.Int64())
- case "statusText":
- out.StatusText = string(in.String())
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.Headers = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v44 interface{}
- if m, ok := v44.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v44.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v44 = in.Interface()
- }
- (out.Headers)[key] = v44
- in.WantComma()
- }
- in.Delim('}')
- }
- case "mimeType":
- out.MimeType = string(in.String())
- case "charset":
- out.Charset = string(in.String())
- case "requestHeaders":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- if !in.IsDelim('}') {
- out.RequestHeaders = make(Headers)
- } else {
- out.RequestHeaders = nil
- }
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v45 interface{}
- if m, ok := v45.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v45.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v45 = in.Interface()
- }
- (out.RequestHeaders)[key] = v45
- in.WantComma()
- }
- in.Delim('}')
- }
- case "connectionReused":
- out.ConnectionReused = bool(in.Bool())
- case "connectionId":
- out.ConnectionID = float64(in.Float64())
- case "remoteIPAddress":
- out.RemoteIPAddress = string(in.String())
- case "remotePort":
- out.RemotePort = int64(in.Int64())
- case "fromDiskCache":
- out.FromDiskCache = bool(in.Bool())
- case "fromServiceWorker":
- out.FromServiceWorker = bool(in.Bool())
- case "fromPrefetchCache":
- out.FromPrefetchCache = bool(in.Bool())
- case "fromEarlyHints":
- out.FromEarlyHints = bool(in.Bool())
- case "serviceWorkerRouterInfo":
- if in.IsNull() {
- in.Skip()
- out.ServiceWorkerRouterInfo = nil
- } else {
- if out.ServiceWorkerRouterInfo == nil {
- out.ServiceWorkerRouterInfo = new(ServiceWorkerRouterInfo)
- }
- (*out.ServiceWorkerRouterInfo).UnmarshalEasyJSON(in)
- }
- case "encodedDataLength":
- out.EncodedDataLength = float64(in.Float64())
- case "timing":
- if in.IsNull() {
- in.Skip()
- out.Timing = nil
- } else {
- if out.Timing == nil {
- out.Timing = new(ResourceTiming)
- }
- (*out.Timing).UnmarshalEasyJSON(in)
- }
- case "serviceWorkerResponseSource":
- (out.ServiceWorkerResponseSource).UnmarshalEasyJSON(in)
- case "responseTime":
- if in.IsNull() {
- in.Skip()
- out.ResponseTime = nil
- } else {
- if out.ResponseTime == nil {
- out.ResponseTime = new(cdp.TimeSinceEpochMilli)
- }
- (*out.ResponseTime).UnmarshalEasyJSON(in)
- }
- case "cacheStorageCacheName":
- out.CacheStorageCacheName = string(in.String())
- case "protocol":
- out.Protocol = string(in.String())
- case "alternateProtocolUsage":
- (out.AlternateProtocolUsage).UnmarshalEasyJSON(in)
- case "securityState":
- (out.SecurityState).UnmarshalEasyJSON(in)
- case "securityDetails":
- if in.IsNull() {
- in.Skip()
- out.SecurityDetails = nil
- } else {
- if out.SecurityDetails == nil {
- out.SecurityDetails = new(SecurityDetails)
- }
- (*out.SecurityDetails).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork26(out *jwriter.Writer, in Response) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"status\":"
- out.RawString(prefix)
- out.Int64(int64(in.Status))
- }
- {
- const prefix string = ",\"statusText\":"
- out.RawString(prefix)
- out.String(string(in.StatusText))
- }
- {
- const prefix string = ",\"headers\":"
- out.RawString(prefix)
- if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v46First := true
- for v46Name, v46Value := range in.Headers {
- if v46First {
- v46First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v46Name))
- out.RawByte(':')
- if m, ok := v46Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v46Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v46Value))
- }
- }
- out.RawByte('}')
- }
- }
- {
- const prefix string = ",\"mimeType\":"
- out.RawString(prefix)
- out.String(string(in.MimeType))
- }
- {
- const prefix string = ",\"charset\":"
- out.RawString(prefix)
- out.String(string(in.Charset))
- }
- if len(in.RequestHeaders) != 0 {
- const prefix string = ",\"requestHeaders\":"
- out.RawString(prefix)
- {
- out.RawByte('{')
- v47First := true
- for v47Name, v47Value := range in.RequestHeaders {
- if v47First {
- v47First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v47Name))
- out.RawByte(':')
- if m, ok := v47Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v47Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v47Value))
- }
- }
- out.RawByte('}')
- }
- }
- {
- const prefix string = ",\"connectionReused\":"
- out.RawString(prefix)
- out.Bool(bool(in.ConnectionReused))
- }
- {
- const prefix string = ",\"connectionId\":"
- out.RawString(prefix)
- out.Float64(float64(in.ConnectionID))
- }
- if in.RemoteIPAddress != "" {
- const prefix string = ",\"remoteIPAddress\":"
- out.RawString(prefix)
- out.String(string(in.RemoteIPAddress))
- }
- if in.RemotePort != 0 {
- const prefix string = ",\"remotePort\":"
- out.RawString(prefix)
- out.Int64(int64(in.RemotePort))
- }
- if in.FromDiskCache {
- const prefix string = ",\"fromDiskCache\":"
- out.RawString(prefix)
- out.Bool(bool(in.FromDiskCache))
- }
- if in.FromServiceWorker {
- const prefix string = ",\"fromServiceWorker\":"
- out.RawString(prefix)
- out.Bool(bool(in.FromServiceWorker))
- }
- if in.FromPrefetchCache {
- const prefix string = ",\"fromPrefetchCache\":"
- out.RawString(prefix)
- out.Bool(bool(in.FromPrefetchCache))
- }
- if in.FromEarlyHints {
- const prefix string = ",\"fromEarlyHints\":"
- out.RawString(prefix)
- out.Bool(bool(in.FromEarlyHints))
- }
- if in.ServiceWorkerRouterInfo != nil {
- const prefix string = ",\"serviceWorkerRouterInfo\":"
- out.RawString(prefix)
- (*in.ServiceWorkerRouterInfo).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"encodedDataLength\":"
- out.RawString(prefix)
- out.Float64(float64(in.EncodedDataLength))
- }
- if in.Timing != nil {
- const prefix string = ",\"timing\":"
- out.RawString(prefix)
- (*in.Timing).MarshalEasyJSON(out)
- }
- if in.ServiceWorkerResponseSource != "" {
- const prefix string = ",\"serviceWorkerResponseSource\":"
- out.RawString(prefix)
- (in.ServiceWorkerResponseSource).MarshalEasyJSON(out)
- }
- if in.ResponseTime != nil {
- const prefix string = ",\"responseTime\":"
- out.RawString(prefix)
- (*in.ResponseTime).MarshalEasyJSON(out)
- }
- if in.CacheStorageCacheName != "" {
- const prefix string = ",\"cacheStorageCacheName\":"
- out.RawString(prefix)
- out.String(string(in.CacheStorageCacheName))
- }
- if in.Protocol != "" {
- const prefix string = ",\"protocol\":"
- out.RawString(prefix)
- out.String(string(in.Protocol))
- }
- if in.AlternateProtocolUsage != "" {
- const prefix string = ",\"alternateProtocolUsage\":"
- out.RawString(prefix)
- (in.AlternateProtocolUsage).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"securityState\":"
- out.RawString(prefix)
- (in.SecurityState).MarshalEasyJSON(out)
- }
- if in.SecurityDetails != nil {
- const prefix string = ",\"securityDetails\":"
- out.RawString(prefix)
- (*in.SecurityDetails).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Response) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork26(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork26(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Response) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork26(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork26(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork27(in *jlexer.Lexer, out *ResourceTiming) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestTime":
- out.RequestTime = float64(in.Float64())
- case "proxyStart":
- out.ProxyStart = float64(in.Float64())
- case "proxyEnd":
- out.ProxyEnd = float64(in.Float64())
- case "dnsStart":
- out.DNSStart = float64(in.Float64())
- case "dnsEnd":
- out.DNSEnd = float64(in.Float64())
- case "connectStart":
- out.ConnectStart = float64(in.Float64())
- case "connectEnd":
- out.ConnectEnd = float64(in.Float64())
- case "sslStart":
- out.SslStart = float64(in.Float64())
- case "sslEnd":
- out.SslEnd = float64(in.Float64())
- case "workerStart":
- out.WorkerStart = float64(in.Float64())
- case "workerReady":
- out.WorkerReady = float64(in.Float64())
- case "workerFetchStart":
- out.WorkerFetchStart = float64(in.Float64())
- case "workerRespondWithSettled":
- out.WorkerRespondWithSettled = float64(in.Float64())
- case "sendStart":
- out.SendStart = float64(in.Float64())
- case "sendEnd":
- out.SendEnd = float64(in.Float64())
- case "pushStart":
- out.PushStart = float64(in.Float64())
- case "pushEnd":
- out.PushEnd = float64(in.Float64())
- case "receiveHeadersStart":
- out.ReceiveHeadersStart = float64(in.Float64())
- case "receiveHeadersEnd":
- out.ReceiveHeadersEnd = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork27(out *jwriter.Writer, in ResourceTiming) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestTime\":"
- out.RawString(prefix[1:])
- out.Float64(float64(in.RequestTime))
- }
- {
- const prefix string = ",\"proxyStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.ProxyStart))
- }
- {
- const prefix string = ",\"proxyEnd\":"
- out.RawString(prefix)
- out.Float64(float64(in.ProxyEnd))
- }
- {
- const prefix string = ",\"dnsStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.DNSStart))
- }
- {
- const prefix string = ",\"dnsEnd\":"
- out.RawString(prefix)
- out.Float64(float64(in.DNSEnd))
- }
- {
- const prefix string = ",\"connectStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.ConnectStart))
- }
- {
- const prefix string = ",\"connectEnd\":"
- out.RawString(prefix)
- out.Float64(float64(in.ConnectEnd))
- }
- {
- const prefix string = ",\"sslStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.SslStart))
- }
- {
- const prefix string = ",\"sslEnd\":"
- out.RawString(prefix)
- out.Float64(float64(in.SslEnd))
- }
- {
- const prefix string = ",\"workerStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.WorkerStart))
- }
- {
- const prefix string = ",\"workerReady\":"
- out.RawString(prefix)
- out.Float64(float64(in.WorkerReady))
- }
- {
- const prefix string = ",\"workerFetchStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.WorkerFetchStart))
- }
- {
- const prefix string = ",\"workerRespondWithSettled\":"
- out.RawString(prefix)
- out.Float64(float64(in.WorkerRespondWithSettled))
- }
- {
- const prefix string = ",\"sendStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.SendStart))
- }
- {
- const prefix string = ",\"sendEnd\":"
- out.RawString(prefix)
- out.Float64(float64(in.SendEnd))
- }
- {
- const prefix string = ",\"pushStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.PushStart))
- }
- {
- const prefix string = ",\"pushEnd\":"
- out.RawString(prefix)
- out.Float64(float64(in.PushEnd))
- }
- {
- const prefix string = ",\"receiveHeadersStart\":"
- out.RawString(prefix)
- out.Float64(float64(in.ReceiveHeadersStart))
- }
- {
- const prefix string = ",\"receiveHeadersEnd\":"
- out.RawString(prefix)
- out.Float64(float64(in.ReceiveHeadersEnd))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ResourceTiming) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork27(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork27(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ResourceTiming) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork27(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork27(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork28(in *jlexer.Lexer, out *RequestPattern) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "urlPattern":
- out.URLPattern = string(in.String())
- case "resourceType":
- (out.ResourceType).UnmarshalEasyJSON(in)
- case "interceptionStage":
- (out.InterceptionStage).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork28(out *jwriter.Writer, in RequestPattern) {
- out.RawByte('{')
- first := true
- _ = first
- if in.URLPattern != "" {
- const prefix string = ",\"urlPattern\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.URLPattern))
- }
- if in.ResourceType != "" {
- const prefix string = ",\"resourceType\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (in.ResourceType).MarshalEasyJSON(out)
- }
- if in.InterceptionStage != "" {
- const prefix string = ",\"interceptionStage\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (in.InterceptionStage).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v RequestPattern) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork28(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v RequestPattern) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork28(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *RequestPattern) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork28(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *RequestPattern) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork28(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork29(in *jlexer.Lexer, out *Request) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "urlFragment":
- out.URLFragment = string(in.String())
- case "method":
- out.Method = string(in.String())
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.Headers = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v48 interface{}
- if m, ok := v48.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v48.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v48 = in.Interface()
- }
- (out.Headers)[key] = v48
- in.WantComma()
- }
- in.Delim('}')
- }
- case "hasPostData":
- out.HasPostData = bool(in.Bool())
- case "postDataEntries":
- if in.IsNull() {
- in.Skip()
- out.PostDataEntries = nil
- } else {
- in.Delim('[')
- if out.PostDataEntries == nil {
- if !in.IsDelim(']') {
- out.PostDataEntries = make([]*PostDataEntry, 0, 8)
- } else {
- out.PostDataEntries = []*PostDataEntry{}
- }
- } else {
- out.PostDataEntries = (out.PostDataEntries)[:0]
- }
- for !in.IsDelim(']') {
- var v49 *PostDataEntry
- if in.IsNull() {
- in.Skip()
- v49 = nil
- } else {
- if v49 == nil {
- v49 = new(PostDataEntry)
- }
- (*v49).UnmarshalEasyJSON(in)
- }
- out.PostDataEntries = append(out.PostDataEntries, v49)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "mixedContentType":
- (out.MixedContentType).UnmarshalEasyJSON(in)
- case "initialPriority":
- (out.InitialPriority).UnmarshalEasyJSON(in)
- case "referrerPolicy":
- (out.ReferrerPolicy).UnmarshalEasyJSON(in)
- case "isLinkPreload":
- out.IsLinkPreload = bool(in.Bool())
- case "trustTokenParams":
- if in.IsNull() {
- in.Skip()
- out.TrustTokenParams = nil
- } else {
- if out.TrustTokenParams == nil {
- out.TrustTokenParams = new(TrustTokenParams)
- }
- (*out.TrustTokenParams).UnmarshalEasyJSON(in)
- }
- case "isSameSite":
- out.IsSameSite = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork29(out *jwriter.Writer, in Request) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- if in.URLFragment != "" {
- const prefix string = ",\"urlFragment\":"
- out.RawString(prefix)
- out.String(string(in.URLFragment))
- }
- {
- const prefix string = ",\"method\":"
- out.RawString(prefix)
- out.String(string(in.Method))
- }
- {
- const prefix string = ",\"headers\":"
- out.RawString(prefix)
- if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v50First := true
- for v50Name, v50Value := range in.Headers {
- if v50First {
- v50First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v50Name))
- out.RawByte(':')
- if m, ok := v50Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v50Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v50Value))
- }
- }
- out.RawByte('}')
- }
- }
- if in.HasPostData {
- const prefix string = ",\"hasPostData\":"
- out.RawString(prefix)
- out.Bool(bool(in.HasPostData))
- }
- if len(in.PostDataEntries) != 0 {
- const prefix string = ",\"postDataEntries\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v51, v52 := range in.PostDataEntries {
- if v51 > 0 {
- out.RawByte(',')
- }
- if v52 == nil {
- out.RawString("null")
- } else {
- (*v52).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.MixedContentType != "" {
- const prefix string = ",\"mixedContentType\":"
- out.RawString(prefix)
- (in.MixedContentType).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"initialPriority\":"
- out.RawString(prefix)
- (in.InitialPriority).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"referrerPolicy\":"
- out.RawString(prefix)
- (in.ReferrerPolicy).MarshalEasyJSON(out)
- }
- if in.IsLinkPreload {
- const prefix string = ",\"isLinkPreload\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsLinkPreload))
- }
- if in.TrustTokenParams != nil {
- const prefix string = ",\"trustTokenParams\":"
- out.RawString(prefix)
- (*in.TrustTokenParams).MarshalEasyJSON(out)
- }
- if in.IsSameSite {
- const prefix string = ",\"isSameSite\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsSameSite))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Request) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork29(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Request) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork29(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Request) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork29(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork29(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork30(in *jlexer.Lexer, out *ReportingAPIReport) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "id":
- out.ID = ReportID(in.String())
- case "initiatorUrl":
- out.InitiatorURL = string(in.String())
- case "destination":
- out.Destination = string(in.String())
- case "type":
- out.Type = string(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.TimeSinceEpoch)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "depth":
- out.Depth = int64(in.Int64())
- case "completedAttempts":
- out.CompletedAttempts = int64(in.Int64())
- case "body":
- (out.Body).UnmarshalEasyJSON(in)
- case "status":
- (out.Status).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork30(out *jwriter.Writer, in ReportingAPIReport) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"id\":"
- out.RawString(prefix[1:])
- out.String(string(in.ID))
- }
- {
- const prefix string = ",\"initiatorUrl\":"
- out.RawString(prefix)
- out.String(string(in.InitiatorURL))
- }
- {
- const prefix string = ",\"destination\":"
- out.RawString(prefix)
- out.String(string(in.Destination))
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- out.String(string(in.Type))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"depth\":"
- out.RawString(prefix)
- out.Int64(int64(in.Depth))
- }
- {
- const prefix string = ",\"completedAttempts\":"
- out.RawString(prefix)
- out.Int64(int64(in.CompletedAttempts))
- }
- {
- const prefix string = ",\"body\":"
- out.RawString(prefix)
- (in.Body).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"status\":"
- out.RawString(prefix)
- (in.Status).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ReportingAPIReport) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork30(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ReportingAPIReport) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork30(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ReportingAPIReport) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork30(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ReportingAPIReport) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork30(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork31(in *jlexer.Lexer, out *ReportingAPIEndpoint) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "groupName":
- out.GroupName = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork31(out *jwriter.Writer, in ReportingAPIEndpoint) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"groupName\":"
- out.RawString(prefix)
- out.String(string(in.GroupName))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ReportingAPIEndpoint) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork31(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ReportingAPIEndpoint) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork31(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ReportingAPIEndpoint) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork31(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ReportingAPIEndpoint) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork31(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork32(in *jlexer.Lexer, out *ReplayXHRParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork32(out *jwriter.Writer, in ReplayXHRParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ReplayXHRParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork32(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork32(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork32(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork32(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork33(in *jlexer.Lexer, out *PostDataEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "bytes":
- out.Bytes = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork33(out *jwriter.Writer, in PostDataEntry) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Bytes != "" {
- const prefix string = ",\"bytes\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Bytes))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PostDataEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork33(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PostDataEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork33(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PostDataEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork33(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PostDataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork33(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork34(in *jlexer.Lexer, out *LoadNetworkResourceReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "resource":
- if in.IsNull() {
- in.Skip()
- out.Resource = nil
- } else {
- if out.Resource == nil {
- out.Resource = new(LoadNetworkResourcePageResult)
- }
- (*out.Resource).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork34(out *jwriter.Writer, in LoadNetworkResourceReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Resource != nil {
- const prefix string = ",\"resource\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Resource).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v LoadNetworkResourceReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork34(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v LoadNetworkResourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork34(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *LoadNetworkResourceReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork34(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *LoadNetworkResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork34(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork35(in *jlexer.Lexer, out *LoadNetworkResourceParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "url":
- out.URL = string(in.String())
- case "options":
- if in.IsNull() {
- in.Skip()
- out.Options = nil
- } else {
- if out.Options == nil {
- out.Options = new(LoadNetworkResourceOptions)
- }
- (*out.Options).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork35(out *jwriter.Writer, in LoadNetworkResourceParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.FrameID != "" {
- const prefix string = ",\"frameId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"url\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"options\":"
- out.RawString(prefix)
- if in.Options == nil {
- out.RawString("null")
- } else {
- (*in.Options).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v LoadNetworkResourceParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork35(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v LoadNetworkResourceParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork35(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *LoadNetworkResourceParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork35(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *LoadNetworkResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork35(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork36(in *jlexer.Lexer, out *LoadNetworkResourcePageResult) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "success":
- out.Success = bool(in.Bool())
- case "netError":
- out.NetError = float64(in.Float64())
- case "netErrorName":
- out.NetErrorName = string(in.String())
- case "httpStatusCode":
- out.HTTPStatusCode = float64(in.Float64())
- case "stream":
- out.Stream = io.StreamHandle(in.String())
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- if !in.IsDelim('}') {
- out.Headers = make(Headers)
- } else {
- out.Headers = nil
- }
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v53 interface{}
- if m, ok := v53.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v53.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v53 = in.Interface()
- }
- (out.Headers)[key] = v53
- in.WantComma()
- }
- in.Delim('}')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork36(out *jwriter.Writer, in LoadNetworkResourcePageResult) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"success\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Success))
- }
- if in.NetError != 0 {
- const prefix string = ",\"netError\":"
- out.RawString(prefix)
- out.Float64(float64(in.NetError))
- }
- if in.NetErrorName != "" {
- const prefix string = ",\"netErrorName\":"
- out.RawString(prefix)
- out.String(string(in.NetErrorName))
- }
- if in.HTTPStatusCode != 0 {
- const prefix string = ",\"httpStatusCode\":"
- out.RawString(prefix)
- out.Float64(float64(in.HTTPStatusCode))
- }
- if in.Stream != "" {
- const prefix string = ",\"stream\":"
- out.RawString(prefix)
- out.String(string(in.Stream))
- }
- if len(in.Headers) != 0 {
- const prefix string = ",\"headers\":"
- out.RawString(prefix)
- {
- out.RawByte('{')
- v54First := true
- for v54Name, v54Value := range in.Headers {
- if v54First {
- v54First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v54Name))
- out.RawByte(':')
- if m, ok := v54Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v54Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v54Value))
- }
- }
- out.RawByte('}')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v LoadNetworkResourcePageResult) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork36(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v LoadNetworkResourcePageResult) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork36(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *LoadNetworkResourcePageResult) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork36(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *LoadNetworkResourcePageResult) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork36(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork37(in *jlexer.Lexer, out *LoadNetworkResourceOptions) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "disableCache":
- out.DisableCache = bool(in.Bool())
- case "includeCredentials":
- out.IncludeCredentials = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork37(out *jwriter.Writer, in LoadNetworkResourceOptions) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"disableCache\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.DisableCache))
- }
- {
- const prefix string = ",\"includeCredentials\":"
- out.RawString(prefix)
- out.Bool(bool(in.IncludeCredentials))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v LoadNetworkResourceOptions) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork37(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v LoadNetworkResourceOptions) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork37(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *LoadNetworkResourceOptions) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork37(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *LoadNetworkResourceOptions) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork37(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork38(in *jlexer.Lexer, out *Initiator) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "stack":
- if in.IsNull() {
- in.Skip()
- out.Stack = nil
- } else {
- if out.Stack == nil {
- out.Stack = new(runtime.StackTrace)
- }
- (*out.Stack).UnmarshalEasyJSON(in)
- }
- case "url":
- out.URL = string(in.String())
- case "lineNumber":
- out.LineNumber = float64(in.Float64())
- case "columnNumber":
- out.ColumnNumber = float64(in.Float64())
- case "requestId":
- out.RequestID = RequestID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork38(out *jwriter.Writer, in Initiator) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix[1:])
- (in.Type).MarshalEasyJSON(out)
- }
- if in.Stack != nil {
- const prefix string = ",\"stack\":"
- out.RawString(prefix)
- (*in.Stack).MarshalEasyJSON(out)
- }
- if in.URL != "" {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- if in.LineNumber != 0 {
- const prefix string = ",\"lineNumber\":"
- out.RawString(prefix)
- out.Float64(float64(in.LineNumber))
- }
- if in.ColumnNumber != 0 {
- const prefix string = ",\"columnNumber\":"
- out.RawString(prefix)
- out.Float64(float64(in.ColumnNumber))
- }
- if in.RequestID != "" {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix)
- out.String(string(in.RequestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Initiator) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork38(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork38(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Initiator) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork38(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork38(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork39(in *jlexer.Lexer, out *GetSecurityIsolationStatusReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "status":
- if in.IsNull() {
- in.Skip()
- out.Status = nil
- } else {
- if out.Status == nil {
- out.Status = new(SecurityIsolationStatus)
- }
- (*out.Status).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork39(out *jwriter.Writer, in GetSecurityIsolationStatusReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Status != nil {
- const prefix string = ",\"status\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Status).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetSecurityIsolationStatusReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork39(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetSecurityIsolationStatusReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork39(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetSecurityIsolationStatusReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork39(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetSecurityIsolationStatusReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork39(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork40(in *jlexer.Lexer, out *GetSecurityIsolationStatusParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork40(out *jwriter.Writer, in GetSecurityIsolationStatusParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.FrameID != "" {
- const prefix string = ",\"frameId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetSecurityIsolationStatusParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork40(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetSecurityIsolationStatusParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork40(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetSecurityIsolationStatusParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork40(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetSecurityIsolationStatusParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork40(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork41(in *jlexer.Lexer, out *GetResponseBodyReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "body":
- out.Body = string(in.String())
- case "base64Encoded":
- out.Base64encoded = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork41(out *jwriter.Writer, in GetResponseBodyReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Body != "" {
- const prefix string = ",\"body\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Body))
- }
- if in.Base64encoded {
- const prefix string = ",\"base64Encoded\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.Base64encoded))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork41(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork41(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork41(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork41(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork42(in *jlexer.Lexer, out *GetResponseBodyParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork42(out *jwriter.Writer, in GetResponseBodyParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork42(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork42(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork42(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork42(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork43(in *jlexer.Lexer, out *GetResponseBodyForInterceptionReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "body":
- out.Body = string(in.String())
- case "base64Encoded":
- out.Base64encoded = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork43(out *jwriter.Writer, in GetResponseBodyForInterceptionReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Body != "" {
- const prefix string = ",\"body\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Body))
- }
- if in.Base64encoded {
- const prefix string = ",\"base64Encoded\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.Base64encoded))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetResponseBodyForInterceptionReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork43(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetResponseBodyForInterceptionReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork43(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetResponseBodyForInterceptionReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork43(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetResponseBodyForInterceptionReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork43(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork44(in *jlexer.Lexer, out *GetResponseBodyForInterceptionParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "interceptionId":
- out.InterceptionID = InterceptionID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork44(out *jwriter.Writer, in GetResponseBodyForInterceptionParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"interceptionId\":"
- out.RawString(prefix[1:])
- out.String(string(in.InterceptionID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetResponseBodyForInterceptionParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork44(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetResponseBodyForInterceptionParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork44(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetResponseBodyForInterceptionParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork44(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetResponseBodyForInterceptionParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork44(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork45(in *jlexer.Lexer, out *GetRequestPostDataReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "postData":
- out.PostData = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork45(out *jwriter.Writer, in GetRequestPostDataReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.PostData != "" {
- const prefix string = ",\"postData\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.PostData))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetRequestPostDataReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork45(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetRequestPostDataReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork45(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetRequestPostDataReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork45(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetRequestPostDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork45(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork46(in *jlexer.Lexer, out *GetRequestPostDataParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork46(out *jwriter.Writer, in GetRequestPostDataParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetRequestPostDataParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork46(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetRequestPostDataParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork46(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetRequestPostDataParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork46(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetRequestPostDataParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork46(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork47(in *jlexer.Lexer, out *GetCookiesReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "cookies":
- if in.IsNull() {
- in.Skip()
- out.Cookies = nil
- } else {
- in.Delim('[')
- if out.Cookies == nil {
- if !in.IsDelim(']') {
- out.Cookies = make([]*Cookie, 0, 8)
- } else {
- out.Cookies = []*Cookie{}
- }
- } else {
- out.Cookies = (out.Cookies)[:0]
- }
- for !in.IsDelim(']') {
- var v55 *Cookie
- if in.IsNull() {
- in.Skip()
- v55 = nil
- } else {
- if v55 == nil {
- v55 = new(Cookie)
- }
- (*v55).UnmarshalEasyJSON(in)
- }
- out.Cookies = append(out.Cookies, v55)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork47(out *jwriter.Writer, in GetCookiesReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Cookies) != 0 {
- const prefix string = ",\"cookies\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v56, v57 := range in.Cookies {
- if v56 > 0 {
- out.RawByte(',')
- }
- if v57 == nil {
- out.RawString("null")
- } else {
- (*v57).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetCookiesReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork47(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork47(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork47(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork47(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork48(in *jlexer.Lexer, out *GetCookiesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "urls":
- if in.IsNull() {
- in.Skip()
- out.Urls = nil
- } else {
- in.Delim('[')
- if out.Urls == nil {
- if !in.IsDelim(']') {
- out.Urls = make([]string, 0, 4)
- } else {
- out.Urls = []string{}
- }
- } else {
- out.Urls = (out.Urls)[:0]
- }
- for !in.IsDelim(']') {
- var v58 string
- v58 = string(in.String())
- out.Urls = append(out.Urls, v58)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork48(out *jwriter.Writer, in GetCookiesParams) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Urls) != 0 {
- const prefix string = ",\"urls\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v59, v60 := range in.Urls {
- if v59 > 0 {
- out.RawByte(',')
- }
- out.String(string(v60))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetCookiesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork48(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork48(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetCookiesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork48(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork48(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork49(in *jlexer.Lexer, out *GetCertificateReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "tableNames":
- if in.IsNull() {
- in.Skip()
- out.TableNames = nil
- } else {
- in.Delim('[')
- if out.TableNames == nil {
- if !in.IsDelim(']') {
- out.TableNames = make([]string, 0, 4)
- } else {
- out.TableNames = []string{}
- }
- } else {
- out.TableNames = (out.TableNames)[:0]
- }
- for !in.IsDelim(']') {
- var v61 string
- v61 = string(in.String())
- out.TableNames = append(out.TableNames, v61)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork49(out *jwriter.Writer, in GetCertificateReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.TableNames) != 0 {
- const prefix string = ",\"tableNames\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v62, v63 := range in.TableNames {
- if v62 > 0 {
- out.RawByte(',')
- }
- out.String(string(v63))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetCertificateReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork49(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork49(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork49(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork49(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork50(in *jlexer.Lexer, out *GetCertificateParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork50(out *jwriter.Writer, in GetCertificateParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetCertificateParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork50(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork50(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetCertificateParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork50(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork50(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork51(in *jlexer.Lexer, out *ExemptedSetCookieWithReason) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "exemptionReason":
- (out.ExemptionReason).UnmarshalEasyJSON(in)
- case "cookieLine":
- out.CookieLine = string(in.String())
- case "cookie":
- if in.IsNull() {
- in.Skip()
- out.Cookie = nil
- } else {
- if out.Cookie == nil {
- out.Cookie = new(Cookie)
- }
- (*out.Cookie).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork51(out *jwriter.Writer, in ExemptedSetCookieWithReason) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"exemptionReason\":"
- out.RawString(prefix[1:])
- (in.ExemptionReason).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"cookieLine\":"
- out.RawString(prefix)
- out.String(string(in.CookieLine))
- }
- {
- const prefix string = ",\"cookie\":"
- out.RawString(prefix)
- if in.Cookie == nil {
- out.RawString("null")
- } else {
- (*in.Cookie).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ExemptedSetCookieWithReason) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork51(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ExemptedSetCookieWithReason) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork51(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ExemptedSetCookieWithReason) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork51(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ExemptedSetCookieWithReason) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork51(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork52(in *jlexer.Lexer, out *EventWebTransportCreated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "transportId":
- out.TransportID = RequestID(in.String())
- case "url":
- out.URL = string(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "initiator":
- if in.IsNull() {
- in.Skip()
- out.Initiator = nil
- } else {
- if out.Initiator == nil {
- out.Initiator = new(Initiator)
- }
- (*out.Initiator).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork52(out *jwriter.Writer, in EventWebTransportCreated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"transportId\":"
- out.RawString(prefix[1:])
- out.String(string(in.TransportID))
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- if in.Initiator != nil {
- const prefix string = ",\"initiator\":"
- out.RawString(prefix)
- (*in.Initiator).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebTransportCreated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork52(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebTransportCreated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork52(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebTransportCreated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork52(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebTransportCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork52(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork53(in *jlexer.Lexer, out *EventWebTransportConnectionEstablished) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "transportId":
- out.TransportID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork53(out *jwriter.Writer, in EventWebTransportConnectionEstablished) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"transportId\":"
- out.RawString(prefix[1:])
- out.String(string(in.TransportID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebTransportConnectionEstablished) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork53(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebTransportConnectionEstablished) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork53(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebTransportConnectionEstablished) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork53(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebTransportConnectionEstablished) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork53(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork54(in *jlexer.Lexer, out *EventWebTransportClosed) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "transportId":
- out.TransportID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork54(out *jwriter.Writer, in EventWebTransportClosed) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"transportId\":"
- out.RawString(prefix[1:])
- out.String(string(in.TransportID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebTransportClosed) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork54(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebTransportClosed) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork54(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebTransportClosed) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork54(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebTransportClosed) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork54(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork55(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "wallTime":
- if in.IsNull() {
- in.Skip()
- out.WallTime = nil
- } else {
- if out.WallTime == nil {
- out.WallTime = new(cdp.TimeSinceEpoch)
- }
- (*out.WallTime).UnmarshalEasyJSON(in)
- }
- case "request":
- if in.IsNull() {
- in.Skip()
- out.Request = nil
- } else {
- if out.Request == nil {
- out.Request = new(WebSocketRequest)
- }
- (*out.Request).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork55(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"wallTime\":"
- out.RawString(prefix)
- if in.WallTime == nil {
- out.RawString("null")
- } else {
- (*in.WallTime).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"request\":"
- out.RawString(prefix)
- if in.Request == nil {
- out.RawString("null")
- } else {
- (*in.Request).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork55(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork55(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork55(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork55(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork56(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "response":
- if in.IsNull() {
- in.Skip()
- out.Response = nil
- } else {
- if out.Response == nil {
- out.Response = new(WebSocketResponse)
- }
- (*out.Response).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork56(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"response\":"
- out.RawString(prefix)
- if in.Response == nil {
- out.RawString("null")
- } else {
- (*in.Response).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork56(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork56(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork56(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork56(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork57(in *jlexer.Lexer, out *EventWebSocketFrameSent) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "response":
- if in.IsNull() {
- in.Skip()
- out.Response = nil
- } else {
- if out.Response == nil {
- out.Response = new(WebSocketFrame)
- }
- (*out.Response).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork57(out *jwriter.Writer, in EventWebSocketFrameSent) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"response\":"
- out.RawString(prefix)
- if in.Response == nil {
- out.RawString("null")
- } else {
- (*in.Response).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork57(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork57(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork57(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork57(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork58(in *jlexer.Lexer, out *EventWebSocketFrameReceived) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "response":
- if in.IsNull() {
- in.Skip()
- out.Response = nil
- } else {
- if out.Response == nil {
- out.Response = new(WebSocketFrame)
- }
- (*out.Response).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork58(out *jwriter.Writer, in EventWebSocketFrameReceived) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"response\":"
- out.RawString(prefix)
- if in.Response == nil {
- out.RawString("null")
- } else {
- (*in.Response).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork58(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork58(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork58(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork58(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork59(in *jlexer.Lexer, out *EventWebSocketFrameError) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "errorMessage":
- out.ErrorMessage = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork59(out *jwriter.Writer, in EventWebSocketFrameError) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"errorMessage\":"
- out.RawString(prefix)
- out.String(string(in.ErrorMessage))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork59(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork59(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork59(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork59(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork60(in *jlexer.Lexer, out *EventWebSocketCreated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "url":
- out.URL = string(in.String())
- case "initiator":
- if in.IsNull() {
- in.Skip()
- out.Initiator = nil
- } else {
- if out.Initiator == nil {
- out.Initiator = new(Initiator)
- }
- (*out.Initiator).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork60(out *jwriter.Writer, in EventWebSocketCreated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- if in.Initiator != nil {
- const prefix string = ",\"initiator\":"
- out.RawString(prefix)
- (*in.Initiator).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebSocketCreated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork60(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork60(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork60(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork60(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork61(in *jlexer.Lexer, out *EventWebSocketClosed) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork61(out *jwriter.Writer, in EventWebSocketClosed) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWebSocketClosed) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork61(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork61(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork61(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork61(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork62(in *jlexer.Lexer, out *EventTrustTokenOperationDone) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "status":
- (out.Status).UnmarshalEasyJSON(in)
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "topLevelOrigin":
- out.TopLevelOrigin = string(in.String())
- case "issuerOrigin":
- out.IssuerOrigin = string(in.String())
- case "issuedTokenCount":
- out.IssuedTokenCount = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork62(out *jwriter.Writer, in EventTrustTokenOperationDone) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"status\":"
- out.RawString(prefix[1:])
- (in.Status).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix)
- out.String(string(in.RequestID))
- }
- if in.TopLevelOrigin != "" {
- const prefix string = ",\"topLevelOrigin\":"
- out.RawString(prefix)
- out.String(string(in.TopLevelOrigin))
- }
- if in.IssuerOrigin != "" {
- const prefix string = ",\"issuerOrigin\":"
- out.RawString(prefix)
- out.String(string(in.IssuerOrigin))
- }
- if in.IssuedTokenCount != 0 {
- const prefix string = ",\"issuedTokenCount\":"
- out.RawString(prefix)
- out.Int64(int64(in.IssuedTokenCount))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventTrustTokenOperationDone) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork62(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventTrustTokenOperationDone) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork62(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventTrustTokenOperationDone) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork62(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventTrustTokenOperationDone) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork62(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork63(in *jlexer.Lexer, out *EventSubresourceWebBundleMetadataReceived) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "urls":
- if in.IsNull() {
- in.Skip()
- out.Urls = nil
- } else {
- in.Delim('[')
- if out.Urls == nil {
- if !in.IsDelim(']') {
- out.Urls = make([]string, 0, 4)
- } else {
- out.Urls = []string{}
- }
- } else {
- out.Urls = (out.Urls)[:0]
- }
- for !in.IsDelim(']') {
- var v64 string
- v64 = string(in.String())
- out.Urls = append(out.Urls, v64)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork63(out *jwriter.Writer, in EventSubresourceWebBundleMetadataReceived) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"urls\":"
- out.RawString(prefix)
- if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v65, v66 := range in.Urls {
- if v65 > 0 {
- out.RawByte(',')
- }
- out.String(string(v66))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventSubresourceWebBundleMetadataReceived) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork63(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventSubresourceWebBundleMetadataReceived) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork63(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventSubresourceWebBundleMetadataReceived) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork63(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventSubresourceWebBundleMetadataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork63(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork64(in *jlexer.Lexer, out *EventSubresourceWebBundleMetadataError) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "errorMessage":
- out.ErrorMessage = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork64(out *jwriter.Writer, in EventSubresourceWebBundleMetadataError) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"errorMessage\":"
- out.RawString(prefix)
- out.String(string(in.ErrorMessage))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventSubresourceWebBundleMetadataError) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork64(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventSubresourceWebBundleMetadataError) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork64(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventSubresourceWebBundleMetadataError) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork64(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventSubresourceWebBundleMetadataError) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork64(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork65(in *jlexer.Lexer, out *EventSubresourceWebBundleInnerResponseParsed) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "innerRequestId":
- out.InnerRequestID = RequestID(in.String())
- case "innerRequestURL":
- out.InnerRequestURL = string(in.String())
- case "bundleRequestId":
- out.BundleRequestID = RequestID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork65(out *jwriter.Writer, in EventSubresourceWebBundleInnerResponseParsed) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"innerRequestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.InnerRequestID))
- }
- {
- const prefix string = ",\"innerRequestURL\":"
- out.RawString(prefix)
- out.String(string(in.InnerRequestURL))
- }
- if in.BundleRequestID != "" {
- const prefix string = ",\"bundleRequestId\":"
- out.RawString(prefix)
- out.String(string(in.BundleRequestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventSubresourceWebBundleInnerResponseParsed) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork65(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventSubresourceWebBundleInnerResponseParsed) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork65(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventSubresourceWebBundleInnerResponseParsed) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork65(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventSubresourceWebBundleInnerResponseParsed) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork65(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork66(in *jlexer.Lexer, out *EventSubresourceWebBundleInnerResponseError) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "innerRequestId":
- out.InnerRequestID = RequestID(in.String())
- case "innerRequestURL":
- out.InnerRequestURL = string(in.String())
- case "errorMessage":
- out.ErrorMessage = string(in.String())
- case "bundleRequestId":
- out.BundleRequestID = RequestID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork66(out *jwriter.Writer, in EventSubresourceWebBundleInnerResponseError) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"innerRequestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.InnerRequestID))
- }
- {
- const prefix string = ",\"innerRequestURL\":"
- out.RawString(prefix)
- out.String(string(in.InnerRequestURL))
- }
- {
- const prefix string = ",\"errorMessage\":"
- out.RawString(prefix)
- out.String(string(in.ErrorMessage))
- }
- if in.BundleRequestID != "" {
- const prefix string = ",\"bundleRequestId\":"
- out.RawString(prefix)
- out.String(string(in.BundleRequestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventSubresourceWebBundleInnerResponseError) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork66(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventSubresourceWebBundleInnerResponseError) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork66(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventSubresourceWebBundleInnerResponseError) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork66(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventSubresourceWebBundleInnerResponseError) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork66(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork67(in *jlexer.Lexer, out *EventSignedExchangeReceived) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "info":
- if in.IsNull() {
- in.Skip()
- out.Info = nil
- } else {
- if out.Info == nil {
- out.Info = new(SignedExchangeInfo)
- }
- (*out.Info).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork67(out *jwriter.Writer, in EventSignedExchangeReceived) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"info\":"
- out.RawString(prefix)
- if in.Info == nil {
- out.RawString("null")
- } else {
- (*in.Info).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventSignedExchangeReceived) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork67(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventSignedExchangeReceived) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork67(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventSignedExchangeReceived) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork67(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventSignedExchangeReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork67(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork68(in *jlexer.Lexer, out *EventResponseReceivedExtraInfo) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "blockedCookies":
- if in.IsNull() {
- in.Skip()
- out.BlockedCookies = nil
- } else {
- in.Delim('[')
- if out.BlockedCookies == nil {
- if !in.IsDelim(']') {
- out.BlockedCookies = make([]*BlockedSetCookieWithReason, 0, 8)
- } else {
- out.BlockedCookies = []*BlockedSetCookieWithReason{}
- }
- } else {
- out.BlockedCookies = (out.BlockedCookies)[:0]
- }
- for !in.IsDelim(']') {
- var v67 *BlockedSetCookieWithReason
- if in.IsNull() {
- in.Skip()
- v67 = nil
- } else {
- if v67 == nil {
- v67 = new(BlockedSetCookieWithReason)
- }
- (*v67).UnmarshalEasyJSON(in)
- }
- out.BlockedCookies = append(out.BlockedCookies, v67)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.Headers = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v68 interface{}
- if m, ok := v68.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v68.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v68 = in.Interface()
- }
- (out.Headers)[key] = v68
- in.WantComma()
- }
- in.Delim('}')
- }
- case "resourceIPAddressSpace":
- (out.ResourceIPAddressSpace).UnmarshalEasyJSON(in)
- case "statusCode":
- out.StatusCode = int64(in.Int64())
- case "headersText":
- out.HeadersText = string(in.String())
- case "cookiePartitionKey":
- out.CookiePartitionKey = string(in.String())
- case "cookiePartitionKeyOpaque":
- out.CookiePartitionKeyOpaque = bool(in.Bool())
- case "exemptedCookies":
- if in.IsNull() {
- in.Skip()
- out.ExemptedCookies = nil
- } else {
- in.Delim('[')
- if out.ExemptedCookies == nil {
- if !in.IsDelim(']') {
- out.ExemptedCookies = make([]*ExemptedSetCookieWithReason, 0, 8)
- } else {
- out.ExemptedCookies = []*ExemptedSetCookieWithReason{}
- }
- } else {
- out.ExemptedCookies = (out.ExemptedCookies)[:0]
- }
- for !in.IsDelim(']') {
- var v69 *ExemptedSetCookieWithReason
- if in.IsNull() {
- in.Skip()
- v69 = nil
- } else {
- if v69 == nil {
- v69 = new(ExemptedSetCookieWithReason)
- }
- (*v69).UnmarshalEasyJSON(in)
- }
- out.ExemptedCookies = append(out.ExemptedCookies, v69)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork68(out *jwriter.Writer, in EventResponseReceivedExtraInfo) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"blockedCookies\":"
- out.RawString(prefix)
- if in.BlockedCookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v70, v71 := range in.BlockedCookies {
- if v70 > 0 {
- out.RawByte(',')
- }
- if v71 == nil {
- out.RawString("null")
- } else {
- (*v71).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"headers\":"
- out.RawString(prefix)
- if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v72First := true
- for v72Name, v72Value := range in.Headers {
- if v72First {
- v72First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v72Name))
- out.RawByte(':')
- if m, ok := v72Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v72Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v72Value))
- }
- }
- out.RawByte('}')
- }
- }
- {
- const prefix string = ",\"resourceIPAddressSpace\":"
- out.RawString(prefix)
- (in.ResourceIPAddressSpace).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"statusCode\":"
- out.RawString(prefix)
- out.Int64(int64(in.StatusCode))
- }
- if in.HeadersText != "" {
- const prefix string = ",\"headersText\":"
- out.RawString(prefix)
- out.String(string(in.HeadersText))
- }
- if in.CookiePartitionKey != "" {
- const prefix string = ",\"cookiePartitionKey\":"
- out.RawString(prefix)
- out.String(string(in.CookiePartitionKey))
- }
- if in.CookiePartitionKeyOpaque {
- const prefix string = ",\"cookiePartitionKeyOpaque\":"
- out.RawString(prefix)
- out.Bool(bool(in.CookiePartitionKeyOpaque))
- }
- if len(in.ExemptedCookies) != 0 {
- const prefix string = ",\"exemptedCookies\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v73, v74 := range in.ExemptedCookies {
- if v73 > 0 {
- out.RawByte(',')
- }
- if v74 == nil {
- out.RawString("null")
- } else {
- (*v74).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventResponseReceivedExtraInfo) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork68(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventResponseReceivedExtraInfo) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork68(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventResponseReceivedExtraInfo) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork68(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventResponseReceivedExtraInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork68(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork69(in *jlexer.Lexer, out *EventResponseReceivedEarlyHints) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.Headers = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v75 interface{}
- if m, ok := v75.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v75.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v75 = in.Interface()
- }
- (out.Headers)[key] = v75
- in.WantComma()
- }
- in.Delim('}')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork69(out *jwriter.Writer, in EventResponseReceivedEarlyHints) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"headers\":"
- out.RawString(prefix)
- if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v76First := true
- for v76Name, v76Value := range in.Headers {
- if v76First {
- v76First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v76Name))
- out.RawByte(':')
- if m, ok := v76Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v76Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v76Value))
- }
- }
- out.RawByte('}')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventResponseReceivedEarlyHints) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork69(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventResponseReceivedEarlyHints) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork69(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventResponseReceivedEarlyHints) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork69(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventResponseReceivedEarlyHints) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork69(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork70(in *jlexer.Lexer, out *EventResponseReceived) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "loaderId":
- out.LoaderID = cdp.LoaderID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "response":
- if in.IsNull() {
- in.Skip()
- out.Response = nil
- } else {
- if out.Response == nil {
- out.Response = new(Response)
- }
- (*out.Response).UnmarshalEasyJSON(in)
- }
- case "hasExtraInfo":
- out.HasExtraInfo = bool(in.Bool())
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork70(out *jwriter.Writer, in EventResponseReceived) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"loaderId\":"
- out.RawString(prefix)
- out.String(string(in.LoaderID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"response\":"
- out.RawString(prefix)
- if in.Response == nil {
- out.RawString("null")
- } else {
- (*in.Response).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"hasExtraInfo\":"
- out.RawString(prefix)
- out.Bool(bool(in.HasExtraInfo))
- }
- if in.FrameID != "" {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix)
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventResponseReceived) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork70(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork70(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventResponseReceived) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork70(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork70(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork71(in *jlexer.Lexer, out *EventResourceChangedPriority) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "newPriority":
- (out.NewPriority).UnmarshalEasyJSON(in)
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork71(out *jwriter.Writer, in EventResourceChangedPriority) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"newPriority\":"
- out.RawString(prefix)
- (in.NewPriority).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork71(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork71(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork71(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork71(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork72(in *jlexer.Lexer, out *EventRequestWillBeSentExtraInfo) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "associatedCookies":
- if in.IsNull() {
- in.Skip()
- out.AssociatedCookies = nil
- } else {
- in.Delim('[')
- if out.AssociatedCookies == nil {
- if !in.IsDelim(']') {
- out.AssociatedCookies = make([]*AssociatedCookie, 0, 8)
- } else {
- out.AssociatedCookies = []*AssociatedCookie{}
- }
- } else {
- out.AssociatedCookies = (out.AssociatedCookies)[:0]
- }
- for !in.IsDelim(']') {
- var v77 *AssociatedCookie
- if in.IsNull() {
- in.Skip()
- v77 = nil
- } else {
- if v77 == nil {
- v77 = new(AssociatedCookie)
- }
- (*v77).UnmarshalEasyJSON(in)
- }
- out.AssociatedCookies = append(out.AssociatedCookies, v77)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "headers":
- if in.IsNull() {
- in.Skip()
- } else {
- in.Delim('{')
- out.Headers = make(Headers)
- for !in.IsDelim('}') {
- key := string(in.String())
- in.WantColon()
- var v78 interface{}
- if m, ok := v78.(easyjson.Unmarshaler); ok {
- m.UnmarshalEasyJSON(in)
- } else if m, ok := v78.(json.Unmarshaler); ok {
- _ = m.UnmarshalJSON(in.Raw())
- } else {
- v78 = in.Interface()
- }
- (out.Headers)[key] = v78
- in.WantComma()
- }
- in.Delim('}')
- }
- case "connectTiming":
- if in.IsNull() {
- in.Skip()
- out.ConnectTiming = nil
- } else {
- if out.ConnectTiming == nil {
- out.ConnectTiming = new(ConnectTiming)
- }
- (*out.ConnectTiming).UnmarshalEasyJSON(in)
- }
- case "clientSecurityState":
- if in.IsNull() {
- in.Skip()
- out.ClientSecurityState = nil
- } else {
- if out.ClientSecurityState == nil {
- out.ClientSecurityState = new(ClientSecurityState)
- }
- (*out.ClientSecurityState).UnmarshalEasyJSON(in)
- }
- case "siteHasCookieInOtherPartition":
- out.SiteHasCookieInOtherPartition = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork72(out *jwriter.Writer, in EventRequestWillBeSentExtraInfo) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"associatedCookies\":"
- out.RawString(prefix)
- if in.AssociatedCookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v79, v80 := range in.AssociatedCookies {
- if v79 > 0 {
- out.RawByte(',')
- }
- if v80 == nil {
- out.RawString("null")
- } else {
- (*v80).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"headers\":"
- out.RawString(prefix)
- if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
- out.RawString(`null`)
- } else {
- out.RawByte('{')
- v81First := true
- for v81Name, v81Value := range in.Headers {
- if v81First {
- v81First = false
- } else {
- out.RawByte(',')
- }
- out.String(string(v81Name))
- out.RawByte(':')
- if m, ok := v81Value.(easyjson.Marshaler); ok {
- m.MarshalEasyJSON(out)
- } else if m, ok := v81Value.(json.Marshaler); ok {
- out.Raw(m.MarshalJSON())
- } else {
- out.Raw(json.Marshal(v81Value))
- }
- }
- out.RawByte('}')
- }
- }
- {
- const prefix string = ",\"connectTiming\":"
- out.RawString(prefix)
- if in.ConnectTiming == nil {
- out.RawString("null")
- } else {
- (*in.ConnectTiming).MarshalEasyJSON(out)
- }
- }
- if in.ClientSecurityState != nil {
- const prefix string = ",\"clientSecurityState\":"
- out.RawString(prefix)
- (*in.ClientSecurityState).MarshalEasyJSON(out)
- }
- if in.SiteHasCookieInOtherPartition {
- const prefix string = ",\"siteHasCookieInOtherPartition\":"
- out.RawString(prefix)
- out.Bool(bool(in.SiteHasCookieInOtherPartition))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventRequestWillBeSentExtraInfo) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork72(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventRequestWillBeSentExtraInfo) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork72(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventRequestWillBeSentExtraInfo) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork72(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventRequestWillBeSentExtraInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork72(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork73(in *jlexer.Lexer, out *EventRequestWillBeSent) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "loaderId":
- out.LoaderID = cdp.LoaderID(in.String())
- case "documentURL":
- out.DocumentURL = string(in.String())
- case "request":
- if in.IsNull() {
- in.Skip()
- out.Request = nil
- } else {
- if out.Request == nil {
- out.Request = new(Request)
- }
- (*out.Request).UnmarshalEasyJSON(in)
- }
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "wallTime":
- if in.IsNull() {
- in.Skip()
- out.WallTime = nil
- } else {
- if out.WallTime == nil {
- out.WallTime = new(cdp.TimeSinceEpoch)
- }
- (*out.WallTime).UnmarshalEasyJSON(in)
- }
- case "initiator":
- if in.IsNull() {
- in.Skip()
- out.Initiator = nil
- } else {
- if out.Initiator == nil {
- out.Initiator = new(Initiator)
- }
- (*out.Initiator).UnmarshalEasyJSON(in)
- }
- case "redirectHasExtraInfo":
- out.RedirectHasExtraInfo = bool(in.Bool())
- case "redirectResponse":
- if in.IsNull() {
- in.Skip()
- out.RedirectResponse = nil
- } else {
- if out.RedirectResponse == nil {
- out.RedirectResponse = new(Response)
- }
- (*out.RedirectResponse).UnmarshalEasyJSON(in)
- }
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "hasUserGesture":
- out.HasUserGesture = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork73(out *jwriter.Writer, in EventRequestWillBeSent) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"loaderId\":"
- out.RawString(prefix)
- out.String(string(in.LoaderID))
- }
- {
- const prefix string = ",\"documentURL\":"
- out.RawString(prefix)
- out.String(string(in.DocumentURL))
- }
- {
- const prefix string = ",\"request\":"
- out.RawString(prefix)
- if in.Request == nil {
- out.RawString("null")
- } else {
- (*in.Request).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"wallTime\":"
- out.RawString(prefix)
- if in.WallTime == nil {
- out.RawString("null")
- } else {
- (*in.WallTime).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"initiator\":"
- out.RawString(prefix)
- if in.Initiator == nil {
- out.RawString("null")
- } else {
- (*in.Initiator).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"redirectHasExtraInfo\":"
- out.RawString(prefix)
- out.Bool(bool(in.RedirectHasExtraInfo))
- }
- if in.RedirectResponse != nil {
- const prefix string = ",\"redirectResponse\":"
- out.RawString(prefix)
- (*in.RedirectResponse).MarshalEasyJSON(out)
- }
- if in.Type != "" {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- if in.FrameID != "" {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix)
- out.String(string(in.FrameID))
- }
- if in.HasUserGesture {
- const prefix string = ",\"hasUserGesture\":"
- out.RawString(prefix)
- out.Bool(bool(in.HasUserGesture))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork73(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork73(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork73(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork73(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork74(in *jlexer.Lexer, out *EventRequestServedFromCache) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork74(out *jwriter.Writer, in EventRequestServedFromCache) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork74(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork74(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork74(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork74(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork75(in *jlexer.Lexer, out *EventReportingAPIReportUpdated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "report":
- if in.IsNull() {
- in.Skip()
- out.Report = nil
- } else {
- if out.Report == nil {
- out.Report = new(ReportingAPIReport)
- }
- (*out.Report).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork75(out *jwriter.Writer, in EventReportingAPIReportUpdated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"report\":"
- out.RawString(prefix[1:])
- if in.Report == nil {
- out.RawString("null")
- } else {
- (*in.Report).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventReportingAPIReportUpdated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork75(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventReportingAPIReportUpdated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork75(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventReportingAPIReportUpdated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork75(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventReportingAPIReportUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork75(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork76(in *jlexer.Lexer, out *EventReportingAPIReportAdded) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "report":
- if in.IsNull() {
- in.Skip()
- out.Report = nil
- } else {
- if out.Report == nil {
- out.Report = new(ReportingAPIReport)
- }
- (*out.Report).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork76(out *jwriter.Writer, in EventReportingAPIReportAdded) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"report\":"
- out.RawString(prefix[1:])
- if in.Report == nil {
- out.RawString("null")
- } else {
- (*in.Report).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventReportingAPIReportAdded) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork76(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventReportingAPIReportAdded) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork76(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventReportingAPIReportAdded) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork76(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventReportingAPIReportAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork76(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork77(in *jlexer.Lexer, out *EventReportingAPIEndpointsChangedForOrigin) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- case "endpoints":
- if in.IsNull() {
- in.Skip()
- out.Endpoints = nil
- } else {
- in.Delim('[')
- if out.Endpoints == nil {
- if !in.IsDelim(']') {
- out.Endpoints = make([]*ReportingAPIEndpoint, 0, 8)
- } else {
- out.Endpoints = []*ReportingAPIEndpoint{}
- }
- } else {
- out.Endpoints = (out.Endpoints)[:0]
- }
- for !in.IsDelim(']') {
- var v82 *ReportingAPIEndpoint
- if in.IsNull() {
- in.Skip()
- v82 = nil
- } else {
- if v82 == nil {
- v82 = new(ReportingAPIEndpoint)
- }
- (*v82).UnmarshalEasyJSON(in)
- }
- out.Endpoints = append(out.Endpoints, v82)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork77(out *jwriter.Writer, in EventReportingAPIEndpointsChangedForOrigin) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"endpoints\":"
- out.RawString(prefix)
- if in.Endpoints == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v83, v84 := range in.Endpoints {
- if v83 > 0 {
- out.RawByte(',')
- }
- if v84 == nil {
- out.RawString("null")
- } else {
- (*v84).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventReportingAPIEndpointsChangedForOrigin) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork77(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventReportingAPIEndpointsChangedForOrigin) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork77(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventReportingAPIEndpointsChangedForOrigin) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork77(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventReportingAPIEndpointsChangedForOrigin) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork77(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(in *jlexer.Lexer, out *EventLoadingFinished) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "encodedDataLength":
- out.EncodedDataLength = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(out *jwriter.Writer, in EventLoadingFinished) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"encodedDataLength\":"
- out.RawString(prefix)
- out.Float64(float64(in.EncodedDataLength))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventLoadingFinished) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(in *jlexer.Lexer, out *EventLoadingFailed) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "errorText":
- out.ErrorText = string(in.String())
- case "canceled":
- out.Canceled = bool(in.Bool())
- case "blockedReason":
- (out.BlockedReason).UnmarshalEasyJSON(in)
- case "corsErrorStatus":
- if in.IsNull() {
- in.Skip()
- out.CorsErrorStatus = nil
- } else {
- if out.CorsErrorStatus == nil {
- out.CorsErrorStatus = new(CorsErrorStatus)
- }
- (*out.CorsErrorStatus).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(out *jwriter.Writer, in EventLoadingFailed) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"errorText\":"
- out.RawString(prefix)
- out.String(string(in.ErrorText))
- }
- if in.Canceled {
- const prefix string = ",\"canceled\":"
- out.RawString(prefix)
- out.Bool(bool(in.Canceled))
- }
- if in.BlockedReason != "" {
- const prefix string = ",\"blockedReason\":"
- out.RawString(prefix)
- (in.BlockedReason).MarshalEasyJSON(out)
- }
- if in.CorsErrorStatus != nil {
- const prefix string = ",\"corsErrorStatus\":"
- out.RawString(prefix)
- (*in.CorsErrorStatus).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventLoadingFailed) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(in *jlexer.Lexer, out *EventEventSourceMessageReceived) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "eventName":
- out.EventName = string(in.String())
- case "eventId":
- out.EventID = string(in.String())
- case "data":
- out.Data = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(out *jwriter.Writer, in EventEventSourceMessageReceived) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"eventName\":"
- out.RawString(prefix)
- out.String(string(in.EventName))
- }
- {
- const prefix string = ",\"eventId\":"
- out.RawString(prefix)
- out.String(string(in.EventID))
- }
- {
- const prefix string = ",\"data\":"
- out.RawString(prefix)
- out.String(string(in.Data))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(in *jlexer.Lexer, out *EventDataReceived) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestId":
- out.RequestID = RequestID(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- case "dataLength":
- out.DataLength = int64(in.Int64())
- case "encodedDataLength":
- out.EncodedDataLength = int64(in.Int64())
- case "data":
- out.Data = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(out *jwriter.Writer, in EventDataReceived) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestId\":"
- out.RawString(prefix[1:])
- out.String(string(in.RequestID))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"dataLength\":"
- out.RawString(prefix)
- out.Int64(int64(in.DataLength))
- }
- {
- const prefix string = ",\"encodedDataLength\":"
- out.RawString(prefix)
- out.Int64(int64(in.EncodedDataLength))
- }
- if in.Data != "" {
- const prefix string = ",\"data\":"
- out.RawString(prefix)
- out.String(string(in.Data))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventDataReceived) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventDataReceived) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(in *jlexer.Lexer, out *EnableReportingAPIParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enable":
- out.Enable = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(out *jwriter.Writer, in EnableReportingAPIParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enable\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enable))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EnableReportingAPIParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EnableReportingAPIParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EnableReportingAPIParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EnableReportingAPIParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(in *jlexer.Lexer, out *EnableParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "maxTotalBufferSize":
- out.MaxTotalBufferSize = int64(in.Int64())
- case "maxResourceBufferSize":
- out.MaxResourceBufferSize = int64(in.Int64())
- case "maxPostDataSize":
- out.MaxPostDataSize = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(out *jwriter.Writer, in EnableParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.MaxTotalBufferSize != 0 {
- const prefix string = ",\"maxTotalBufferSize\":"
- first = false
- out.RawString(prefix[1:])
- out.Int64(int64(in.MaxTotalBufferSize))
- }
- if in.MaxResourceBufferSize != 0 {
- const prefix string = ",\"maxResourceBufferSize\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.MaxResourceBufferSize))
- }
- if in.MaxPostDataSize != 0 {
- const prefix string = ",\"maxPostDataSize\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.MaxPostDataSize))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EnableParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EnableParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "offline":
- out.Offline = bool(in.Bool())
- case "latency":
- out.Latency = float64(in.Float64())
- case "downloadThroughput":
- out.DownloadThroughput = float64(in.Float64())
- case "uploadThroughput":
- out.UploadThroughput = float64(in.Float64())
- case "connectionType":
- (out.ConnectionType).UnmarshalEasyJSON(in)
- case "packetLoss":
- out.PacketLoss = float64(in.Float64())
- case "packetQueueLength":
- out.PacketQueueLength = int64(in.Int64())
- case "packetReordering":
- out.PacketReordering = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(out *jwriter.Writer, in EmulateNetworkConditionsParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"offline\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Offline))
- }
- {
- const prefix string = ",\"latency\":"
- out.RawString(prefix)
- out.Float64(float64(in.Latency))
- }
- {
- const prefix string = ",\"downloadThroughput\":"
- out.RawString(prefix)
- out.Float64(float64(in.DownloadThroughput))
- }
- {
- const prefix string = ",\"uploadThroughput\":"
- out.RawString(prefix)
- out.Float64(float64(in.UploadThroughput))
- }
- if in.ConnectionType != "" {
- const prefix string = ",\"connectionType\":"
- out.RawString(prefix)
- (in.ConnectionType).MarshalEasyJSON(out)
- }
- if in.PacketLoss != 0 {
- const prefix string = ",\"packetLoss\":"
- out.RawString(prefix)
- out.Float64(float64(in.PacketLoss))
- }
- if in.PacketQueueLength != 0 {
- const prefix string = ",\"packetQueueLength\":"
- out.RawString(prefix)
- out.Int64(int64(in.PacketQueueLength))
- }
- if in.PacketReordering {
- const prefix string = ",\"packetReordering\":"
- out.RawString(prefix)
- out.Bool(bool(in.PacketReordering))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(in *jlexer.Lexer, out *DisableParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(out *jwriter.Writer, in DisableParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v DisableParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *DisableParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(in *jlexer.Lexer, out *DeleteCookiesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "url":
- out.URL = string(in.String())
- case "domain":
- out.Domain = string(in.String())
- case "path":
- out.Path = string(in.String())
- case "partitionKey":
- out.PartitionKey = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(out *jwriter.Writer, in DeleteCookiesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- if in.URL != "" {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- if in.Domain != "" {
- const prefix string = ",\"domain\":"
- out.RawString(prefix)
- out.String(string(in.Domain))
- }
- if in.Path != "" {
- const prefix string = ",\"path\":"
- out.RawString(prefix)
- out.String(string(in.Path))
- }
- if in.PartitionKey != "" {
- const prefix string = ",\"partitionKey\":"
- out.RawString(prefix)
- out.String(string(in.PartitionKey))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v DeleteCookiesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(in *jlexer.Lexer, out *CrossOriginOpenerPolicyStatus) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "value":
- (out.Value).UnmarshalEasyJSON(in)
- case "reportOnlyValue":
- (out.ReportOnlyValue).UnmarshalEasyJSON(in)
- case "reportingEndpoint":
- out.ReportingEndpoint = string(in.String())
- case "reportOnlyReportingEndpoint":
- out.ReportOnlyReportingEndpoint = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(out *jwriter.Writer, in CrossOriginOpenerPolicyStatus) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix[1:])
- (in.Value).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"reportOnlyValue\":"
- out.RawString(prefix)
- (in.ReportOnlyValue).MarshalEasyJSON(out)
- }
- if in.ReportingEndpoint != "" {
- const prefix string = ",\"reportingEndpoint\":"
- out.RawString(prefix)
- out.String(string(in.ReportingEndpoint))
- }
- if in.ReportOnlyReportingEndpoint != "" {
- const prefix string = ",\"reportOnlyReportingEndpoint\":"
- out.RawString(prefix)
- out.String(string(in.ReportOnlyReportingEndpoint))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CrossOriginOpenerPolicyStatus) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CrossOriginOpenerPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CrossOriginOpenerPolicyStatus) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CrossOriginOpenerPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(in *jlexer.Lexer, out *CrossOriginEmbedderPolicyStatus) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "value":
- (out.Value).UnmarshalEasyJSON(in)
- case "reportOnlyValue":
- (out.ReportOnlyValue).UnmarshalEasyJSON(in)
- case "reportingEndpoint":
- out.ReportingEndpoint = string(in.String())
- case "reportOnlyReportingEndpoint":
- out.ReportOnlyReportingEndpoint = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(out *jwriter.Writer, in CrossOriginEmbedderPolicyStatus) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix[1:])
- (in.Value).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"reportOnlyValue\":"
- out.RawString(prefix)
- (in.ReportOnlyValue).MarshalEasyJSON(out)
- }
- if in.ReportingEndpoint != "" {
- const prefix string = ",\"reportingEndpoint\":"
- out.RawString(prefix)
- out.String(string(in.ReportingEndpoint))
- }
- if in.ReportOnlyReportingEndpoint != "" {
- const prefix string = ",\"reportOnlyReportingEndpoint\":"
- out.RawString(prefix)
- out.String(string(in.ReportOnlyReportingEndpoint))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CrossOriginEmbedderPolicyStatus) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CrossOriginEmbedderPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CrossOriginEmbedderPolicyStatus) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CrossOriginEmbedderPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(in *jlexer.Lexer, out *CorsErrorStatus) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "corsError":
- (out.CorsError).UnmarshalEasyJSON(in)
- case "failedParameter":
- out.FailedParameter = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(out *jwriter.Writer, in CorsErrorStatus) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"corsError\":"
- out.RawString(prefix[1:])
- (in.CorsError).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"failedParameter\":"
- out.RawString(prefix)
- out.String(string(in.FailedParameter))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CorsErrorStatus) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CorsErrorStatus) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CorsErrorStatus) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CorsErrorStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(in *jlexer.Lexer, out *CookieParam) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "value":
- out.Value = string(in.String())
- case "url":
- out.URL = string(in.String())
- case "domain":
- out.Domain = string(in.String())
- case "path":
- out.Path = string(in.String())
- case "secure":
- out.Secure = bool(in.Bool())
- case "httpOnly":
- out.HTTPOnly = bool(in.Bool())
- case "sameSite":
- (out.SameSite).UnmarshalEasyJSON(in)
- case "expires":
- if in.IsNull() {
- in.Skip()
- out.Expires = nil
- } else {
- if out.Expires == nil {
- out.Expires = new(cdp.TimeSinceEpoch)
- }
- (*out.Expires).UnmarshalEasyJSON(in)
- }
- case "priority":
- (out.Priority).UnmarshalEasyJSON(in)
- case "sameParty":
- out.SameParty = bool(in.Bool())
- case "sourceScheme":
- (out.SourceScheme).UnmarshalEasyJSON(in)
- case "sourcePort":
- out.SourcePort = int64(in.Int64())
- case "partitionKey":
- out.PartitionKey = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(out *jwriter.Writer, in CookieParam) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- if in.URL != "" {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- if in.Domain != "" {
- const prefix string = ",\"domain\":"
- out.RawString(prefix)
- out.String(string(in.Domain))
- }
- if in.Path != "" {
- const prefix string = ",\"path\":"
- out.RawString(prefix)
- out.String(string(in.Path))
- }
- if in.Secure {
- const prefix string = ",\"secure\":"
- out.RawString(prefix)
- out.Bool(bool(in.Secure))
- }
- if in.HTTPOnly {
- const prefix string = ",\"httpOnly\":"
- out.RawString(prefix)
- out.Bool(bool(in.HTTPOnly))
- }
- if in.SameSite != "" {
- const prefix string = ",\"sameSite\":"
- out.RawString(prefix)
- (in.SameSite).MarshalEasyJSON(out)
- }
- if in.Expires != nil {
- const prefix string = ",\"expires\":"
- out.RawString(prefix)
- (*in.Expires).MarshalEasyJSON(out)
- }
- if in.Priority != "" {
- const prefix string = ",\"priority\":"
- out.RawString(prefix)
- (in.Priority).MarshalEasyJSON(out)
- }
- if in.SameParty {
- const prefix string = ",\"sameParty\":"
- out.RawString(prefix)
- out.Bool(bool(in.SameParty))
- }
- if in.SourceScheme != "" {
- const prefix string = ",\"sourceScheme\":"
- out.RawString(prefix)
- (in.SourceScheme).MarshalEasyJSON(out)
- }
- if in.SourcePort != 0 {
- const prefix string = ",\"sourcePort\":"
- out.RawString(prefix)
- out.Int64(int64(in.SourcePort))
- }
- if in.PartitionKey != "" {
- const prefix string = ",\"partitionKey\":"
- out.RawString(prefix)
- out.String(string(in.PartitionKey))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CookieParam) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CookieParam) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CookieParam) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CookieParam) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(in *jlexer.Lexer, out *Cookie) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "value":
- out.Value = string(in.String())
- case "domain":
- out.Domain = string(in.String())
- case "path":
- out.Path = string(in.String())
- case "expires":
- out.Expires = float64(in.Float64())
- case "size":
- out.Size = int64(in.Int64())
- case "httpOnly":
- out.HTTPOnly = bool(in.Bool())
- case "secure":
- out.Secure = bool(in.Bool())
- case "session":
- out.Session = bool(in.Bool())
- case "sameSite":
- (out.SameSite).UnmarshalEasyJSON(in)
- case "priority":
- (out.Priority).UnmarshalEasyJSON(in)
- case "sourceScheme":
- (out.SourceScheme).UnmarshalEasyJSON(in)
- case "sourcePort":
- out.SourcePort = int64(in.Int64())
- case "partitionKey":
- out.PartitionKey = string(in.String())
- case "partitionKeyOpaque":
- out.PartitionKeyOpaque = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(out *jwriter.Writer, in Cookie) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- {
- const prefix string = ",\"domain\":"
- out.RawString(prefix)
- out.String(string(in.Domain))
- }
- {
- const prefix string = ",\"path\":"
- out.RawString(prefix)
- out.String(string(in.Path))
- }
- {
- const prefix string = ",\"expires\":"
- out.RawString(prefix)
- out.Float64(float64(in.Expires))
- }
- {
- const prefix string = ",\"size\":"
- out.RawString(prefix)
- out.Int64(int64(in.Size))
- }
- {
- const prefix string = ",\"httpOnly\":"
- out.RawString(prefix)
- out.Bool(bool(in.HTTPOnly))
- }
- {
- const prefix string = ",\"secure\":"
- out.RawString(prefix)
- out.Bool(bool(in.Secure))
- }
- {
- const prefix string = ",\"session\":"
- out.RawString(prefix)
- out.Bool(bool(in.Session))
- }
- if in.SameSite != "" {
- const prefix string = ",\"sameSite\":"
- out.RawString(prefix)
- (in.SameSite).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"priority\":"
- out.RawString(prefix)
- (in.Priority).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"sourceScheme\":"
- out.RawString(prefix)
- (in.SourceScheme).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"sourcePort\":"
- out.RawString(prefix)
- out.Int64(int64(in.SourcePort))
- }
- if in.PartitionKey != "" {
- const prefix string = ",\"partitionKey\":"
- out.RawString(prefix)
- out.String(string(in.PartitionKey))
- }
- if in.PartitionKeyOpaque {
- const prefix string = ",\"partitionKeyOpaque\":"
- out.RawString(prefix)
- out.Bool(bool(in.PartitionKeyOpaque))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Cookie) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Cookie) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(in *jlexer.Lexer, out *ContentSecurityPolicyStatus) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "effectiveDirectives":
- out.EffectiveDirectives = string(in.String())
- case "isEnforced":
- out.IsEnforced = bool(in.Bool())
- case "source":
- (out.Source).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(out *jwriter.Writer, in ContentSecurityPolicyStatus) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"effectiveDirectives\":"
- out.RawString(prefix[1:])
- out.String(string(in.EffectiveDirectives))
- }
- {
- const prefix string = ",\"isEnforced\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsEnforced))
- }
- {
- const prefix string = ",\"source\":"
- out.RawString(prefix)
- (in.Source).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ContentSecurityPolicyStatus) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ContentSecurityPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ContentSecurityPolicyStatus) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ContentSecurityPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(in *jlexer.Lexer, out *ConnectTiming) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "requestTime":
- out.RequestTime = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(out *jwriter.Writer, in ConnectTiming) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"requestTime\":"
- out.RawString(prefix[1:])
- out.Float64(float64(in.RequestTime))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ConnectTiming) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ConnectTiming) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ConnectTiming) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ConnectTiming) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(in *jlexer.Lexer, out *ClientSecurityState) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "initiatorIsSecureContext":
- out.InitiatorIsSecureContext = bool(in.Bool())
- case "initiatorIPAddressSpace":
- (out.InitiatorIPAddressSpace).UnmarshalEasyJSON(in)
- case "privateNetworkRequestPolicy":
- (out.PrivateNetworkRequestPolicy).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(out *jwriter.Writer, in ClientSecurityState) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"initiatorIsSecureContext\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.InitiatorIsSecureContext))
- }
- {
- const prefix string = ",\"initiatorIPAddressSpace\":"
- out.RawString(prefix)
- (in.InitiatorIPAddressSpace).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"privateNetworkRequestPolicy\":"
- out.RawString(prefix)
- (in.PrivateNetworkRequestPolicy).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClientSecurityState) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClientSecurityState) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClientSecurityState) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClientSecurityState) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(in *jlexer.Lexer, out *ClearBrowserCookiesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(out *jwriter.Writer, in ClearBrowserCookiesParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(in *jlexer.Lexer, out *ClearBrowserCacheParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(out *jwriter.Writer, in ClearBrowserCacheParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(in *jlexer.Lexer, out *ClearAcceptedEncodingsOverrideParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(out *jwriter.Writer, in ClearAcceptedEncodingsOverrideParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearAcceptedEncodingsOverrideParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearAcceptedEncodingsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearAcceptedEncodingsOverrideParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearAcceptedEncodingsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(in *jlexer.Lexer, out *CachedResource) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "response":
- if in.IsNull() {
- in.Skip()
- out.Response = nil
- } else {
- if out.Response == nil {
- out.Response = new(Response)
- }
- (*out.Response).UnmarshalEasyJSON(in)
- }
- case "bodySize":
- out.BodySize = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(out *jwriter.Writer, in CachedResource) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- if in.Response != nil {
- const prefix string = ",\"response\":"
- out.RawString(prefix)
- (*in.Response).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"bodySize\":"
- out.RawString(prefix)
- out.Float64(float64(in.BodySize))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CachedResource) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CachedResource) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(in *jlexer.Lexer, out *BlockedSetCookieWithReason) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "blockedReasons":
- if in.IsNull() {
- in.Skip()
- out.BlockedReasons = nil
- } else {
- in.Delim('[')
- if out.BlockedReasons == nil {
- if !in.IsDelim(']') {
- out.BlockedReasons = make([]SetCookieBlockedReason, 0, 4)
- } else {
- out.BlockedReasons = []SetCookieBlockedReason{}
- }
- } else {
- out.BlockedReasons = (out.BlockedReasons)[:0]
- }
- for !in.IsDelim(']') {
- var v85 SetCookieBlockedReason
- (v85).UnmarshalEasyJSON(in)
- out.BlockedReasons = append(out.BlockedReasons, v85)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "cookieLine":
- out.CookieLine = string(in.String())
- case "cookie":
- if in.IsNull() {
- in.Skip()
- out.Cookie = nil
- } else {
- if out.Cookie == nil {
- out.Cookie = new(Cookie)
- }
- (*out.Cookie).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(out *jwriter.Writer, in BlockedSetCookieWithReason) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"blockedReasons\":"
- out.RawString(prefix[1:])
- if in.BlockedReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v86, v87 := range in.BlockedReasons {
- if v86 > 0 {
- out.RawByte(',')
- }
- (v87).MarshalEasyJSON(out)
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"cookieLine\":"
- out.RawString(prefix)
- out.String(string(in.CookieLine))
- }
- if in.Cookie != nil {
- const prefix string = ",\"cookie\":"
- out.RawString(prefix)
- (*in.Cookie).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v BlockedSetCookieWithReason) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v BlockedSetCookieWithReason) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *BlockedSetCookieWithReason) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *BlockedSetCookieWithReason) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(in *jlexer.Lexer, out *AuthChallengeResponse) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "response":
- (out.Response).UnmarshalEasyJSON(in)
- case "username":
- out.Username = string(in.String())
- case "password":
- out.Password = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(out *jwriter.Writer, in AuthChallengeResponse) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"response\":"
- out.RawString(prefix[1:])
- (in.Response).MarshalEasyJSON(out)
- }
- if in.Username != "" {
- const prefix string = ",\"username\":"
- out.RawString(prefix)
- out.String(string(in.Username))
- }
- if in.Password != "" {
- const prefix string = ",\"password\":"
- out.RawString(prefix)
- out.String(string(in.Password))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AuthChallengeResponse) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(in *jlexer.Lexer, out *AuthChallenge) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "source":
- (out.Source).UnmarshalEasyJSON(in)
- case "origin":
- out.Origin = string(in.String())
- case "scheme":
- out.Scheme = string(in.String())
- case "realm":
- out.Realm = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(out *jwriter.Writer, in AuthChallenge) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Source != "" {
- const prefix string = ",\"source\":"
- first = false
- out.RawString(prefix[1:])
- (in.Source).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"origin\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"scheme\":"
- out.RawString(prefix)
- out.String(string(in.Scheme))
- }
- {
- const prefix string = ",\"realm\":"
- out.RawString(prefix)
- out.String(string(in.Realm))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AuthChallenge) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AuthChallenge) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(in *jlexer.Lexer, out *AssociatedCookie) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "cookie":
- if in.IsNull() {
- in.Skip()
- out.Cookie = nil
- } else {
- if out.Cookie == nil {
- out.Cookie = new(Cookie)
- }
- (*out.Cookie).UnmarshalEasyJSON(in)
- }
- case "blockedReasons":
- if in.IsNull() {
- in.Skip()
- out.BlockedReasons = nil
- } else {
- in.Delim('[')
- if out.BlockedReasons == nil {
- if !in.IsDelim(']') {
- out.BlockedReasons = make([]CookieBlockedReason, 0, 4)
- } else {
- out.BlockedReasons = []CookieBlockedReason{}
- }
- } else {
- out.BlockedReasons = (out.BlockedReasons)[:0]
- }
- for !in.IsDelim(']') {
- var v88 CookieBlockedReason
- (v88).UnmarshalEasyJSON(in)
- out.BlockedReasons = append(out.BlockedReasons, v88)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "exemptionReason":
- (out.ExemptionReason).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(out *jwriter.Writer, in AssociatedCookie) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"cookie\":"
- out.RawString(prefix[1:])
- if in.Cookie == nil {
- out.RawString("null")
- } else {
- (*in.Cookie).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"blockedReasons\":"
- out.RawString(prefix)
- if in.BlockedReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v89, v90 := range in.BlockedReasons {
- if v89 > 0 {
- out.RawByte(',')
- }
- (v90).MarshalEasyJSON(out)
- }
- out.RawByte(']')
- }
- }
- if in.ExemptionReason != "" {
- const prefix string = ",\"exemptionReason\":"
- out.RawString(prefix)
- (in.ExemptionReason).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AssociatedCookie) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AssociatedCookie) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AssociatedCookie) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AssociatedCookie) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(l, v)
- }
|