easyjson.go 264 KB

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