1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006 |
- // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
- package page
- import (
- json "encoding/json"
- cdp "github.com/chromedp/cdproto/cdp"
- debugger "github.com/chromedp/cdproto/debugger"
- dom "github.com/chromedp/cdproto/dom"
- io "github.com/chromedp/cdproto/io"
- runtime "github.com/chromedp/cdproto/runtime"
- easyjson "github.com/mailru/easyjson"
- jlexer "github.com/mailru/easyjson/jlexer"
- jwriter "github.com/mailru/easyjson/jwriter"
- )
- // suppress unused package warning
- var (
- _ *json.RawMessage
- _ *jlexer.Lexer
- _ *jwriter.Writer
- _ easyjson.Marshaler
- )
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage(in *jlexer.Lexer, out *WebAppManifest) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "backgroundColor":
- out.BackgroundColor = string(in.String())
- case "description":
- out.Description = string(in.String())
- case "dir":
- out.Dir = string(in.String())
- case "display":
- out.Display = string(in.String())
- case "displayOverrides":
- if in.IsNull() {
- in.Skip()
- out.DisplayOverrides = nil
- } else {
- in.Delim('[')
- if out.DisplayOverrides == nil {
- if !in.IsDelim(']') {
- out.DisplayOverrides = make([]string, 0, 4)
- } else {
- out.DisplayOverrides = []string{}
- }
- } else {
- out.DisplayOverrides = (out.DisplayOverrides)[:0]
- }
- for !in.IsDelim(']') {
- var v1 string
- v1 = string(in.String())
- out.DisplayOverrides = append(out.DisplayOverrides, v1)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "fileHandlers":
- if in.IsNull() {
- in.Skip()
- out.FileHandlers = nil
- } else {
- in.Delim('[')
- if out.FileHandlers == nil {
- if !in.IsDelim(']') {
- out.FileHandlers = make([]*FileHandler, 0, 8)
- } else {
- out.FileHandlers = []*FileHandler{}
- }
- } else {
- out.FileHandlers = (out.FileHandlers)[:0]
- }
- for !in.IsDelim(']') {
- var v2 *FileHandler
- if in.IsNull() {
- in.Skip()
- v2 = nil
- } else {
- if v2 == nil {
- v2 = new(FileHandler)
- }
- (*v2).UnmarshalEasyJSON(in)
- }
- out.FileHandlers = append(out.FileHandlers, v2)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "icons":
- if in.IsNull() {
- in.Skip()
- out.Icons = nil
- } else {
- in.Delim('[')
- if out.Icons == nil {
- if !in.IsDelim(']') {
- out.Icons = make([]*ImageResource, 0, 8)
- } else {
- out.Icons = []*ImageResource{}
- }
- } else {
- out.Icons = (out.Icons)[:0]
- }
- for !in.IsDelim(']') {
- var v3 *ImageResource
- if in.IsNull() {
- in.Skip()
- v3 = nil
- } else {
- if v3 == nil {
- v3 = new(ImageResource)
- }
- (*v3).UnmarshalEasyJSON(in)
- }
- out.Icons = append(out.Icons, v3)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "id":
- out.ID = string(in.String())
- case "lang":
- out.Lang = string(in.String())
- case "launchHandler":
- if in.IsNull() {
- in.Skip()
- out.LaunchHandler = nil
- } else {
- if out.LaunchHandler == nil {
- out.LaunchHandler = new(LaunchHandler)
- }
- (*out.LaunchHandler).UnmarshalEasyJSON(in)
- }
- case "name":
- out.Name = string(in.String())
- case "orientation":
- out.Orientation = string(in.String())
- case "preferRelatedApplications":
- out.PreferRelatedApplications = bool(in.Bool())
- case "protocolHandlers":
- if in.IsNull() {
- in.Skip()
- out.ProtocolHandlers = nil
- } else {
- in.Delim('[')
- if out.ProtocolHandlers == nil {
- if !in.IsDelim(']') {
- out.ProtocolHandlers = make([]*ProtocolHandler, 0, 8)
- } else {
- out.ProtocolHandlers = []*ProtocolHandler{}
- }
- } else {
- out.ProtocolHandlers = (out.ProtocolHandlers)[:0]
- }
- for !in.IsDelim(']') {
- var v4 *ProtocolHandler
- if in.IsNull() {
- in.Skip()
- v4 = nil
- } else {
- if v4 == nil {
- v4 = new(ProtocolHandler)
- }
- (*v4).UnmarshalEasyJSON(in)
- }
- out.ProtocolHandlers = append(out.ProtocolHandlers, v4)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "relatedApplications":
- if in.IsNull() {
- in.Skip()
- out.RelatedApplications = nil
- } else {
- in.Delim('[')
- if out.RelatedApplications == nil {
- if !in.IsDelim(']') {
- out.RelatedApplications = make([]*RelatedApplication, 0, 8)
- } else {
- out.RelatedApplications = []*RelatedApplication{}
- }
- } else {
- out.RelatedApplications = (out.RelatedApplications)[:0]
- }
- for !in.IsDelim(']') {
- var v5 *RelatedApplication
- if in.IsNull() {
- in.Skip()
- v5 = nil
- } else {
- if v5 == nil {
- v5 = new(RelatedApplication)
- }
- (*v5).UnmarshalEasyJSON(in)
- }
- out.RelatedApplications = append(out.RelatedApplications, v5)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "scope":
- out.Scope = string(in.String())
- case "scopeExtensions":
- if in.IsNull() {
- in.Skip()
- out.ScopeExtensions = nil
- } else {
- in.Delim('[')
- if out.ScopeExtensions == nil {
- if !in.IsDelim(']') {
- out.ScopeExtensions = make([]*ScopeExtension, 0, 8)
- } else {
- out.ScopeExtensions = []*ScopeExtension{}
- }
- } else {
- out.ScopeExtensions = (out.ScopeExtensions)[:0]
- }
- for !in.IsDelim(']') {
- var v6 *ScopeExtension
- if in.IsNull() {
- in.Skip()
- v6 = nil
- } else {
- if v6 == nil {
- v6 = new(ScopeExtension)
- }
- (*v6).UnmarshalEasyJSON(in)
- }
- out.ScopeExtensions = append(out.ScopeExtensions, v6)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "screenshots":
- if in.IsNull() {
- in.Skip()
- out.Screenshots = nil
- } else {
- in.Delim('[')
- if out.Screenshots == nil {
- if !in.IsDelim(']') {
- out.Screenshots = make([]*Screenshot, 0, 8)
- } else {
- out.Screenshots = []*Screenshot{}
- }
- } else {
- out.Screenshots = (out.Screenshots)[:0]
- }
- for !in.IsDelim(']') {
- var v7 *Screenshot
- if in.IsNull() {
- in.Skip()
- v7 = nil
- } else {
- if v7 == nil {
- v7 = new(Screenshot)
- }
- (*v7).UnmarshalEasyJSON(in)
- }
- out.Screenshots = append(out.Screenshots, v7)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "shareTarget":
- if in.IsNull() {
- in.Skip()
- out.ShareTarget = nil
- } else {
- if out.ShareTarget == nil {
- out.ShareTarget = new(ShareTarget)
- }
- (*out.ShareTarget).UnmarshalEasyJSON(in)
- }
- case "shortName":
- out.ShortName = string(in.String())
- case "shortcuts":
- if in.IsNull() {
- in.Skip()
- out.Shortcuts = nil
- } else {
- in.Delim('[')
- if out.Shortcuts == nil {
- if !in.IsDelim(']') {
- out.Shortcuts = make([]*Shortcut, 0, 8)
- } else {
- out.Shortcuts = []*Shortcut{}
- }
- } else {
- out.Shortcuts = (out.Shortcuts)[:0]
- }
- for !in.IsDelim(']') {
- var v8 *Shortcut
- if in.IsNull() {
- in.Skip()
- v8 = nil
- } else {
- if v8 == nil {
- v8 = new(Shortcut)
- }
- (*v8).UnmarshalEasyJSON(in)
- }
- out.Shortcuts = append(out.Shortcuts, v8)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "startUrl":
- out.StartURL = string(in.String())
- case "themeColor":
- out.ThemeColor = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage(out *jwriter.Writer, in WebAppManifest) {
- out.RawByte('{')
- first := true
- _ = first
- if in.BackgroundColor != "" {
- const prefix string = ",\"backgroundColor\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.BackgroundColor))
- }
- if in.Description != "" {
- const prefix string = ",\"description\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Description))
- }
- if in.Dir != "" {
- const prefix string = ",\"dir\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Dir))
- }
- if in.Display != "" {
- const prefix string = ",\"display\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Display))
- }
- if len(in.DisplayOverrides) != 0 {
- const prefix string = ",\"displayOverrides\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v9, v10 := range in.DisplayOverrides {
- if v9 > 0 {
- out.RawByte(',')
- }
- out.String(string(v10))
- }
- out.RawByte(']')
- }
- }
- if len(in.FileHandlers) != 0 {
- const prefix string = ",\"fileHandlers\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v11, v12 := range in.FileHandlers {
- if v11 > 0 {
- out.RawByte(',')
- }
- if v12 == nil {
- out.RawString("null")
- } else {
- (*v12).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.Icons) != 0 {
- const prefix string = ",\"icons\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v13, v14 := range in.Icons {
- if v13 > 0 {
- out.RawByte(',')
- }
- if v14 == nil {
- out.RawString("null")
- } else {
- (*v14).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.ID != "" {
- const prefix string = ",\"id\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.ID))
- }
- if in.Lang != "" {
- const prefix string = ",\"lang\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Lang))
- }
- if in.LaunchHandler != nil {
- const prefix string = ",\"launchHandler\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (*in.LaunchHandler).MarshalEasyJSON(out)
- }
- if in.Name != "" {
- const prefix string = ",\"name\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Name))
- }
- if in.Orientation != "" {
- const prefix string = ",\"orientation\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Orientation))
- }
- if in.PreferRelatedApplications {
- const prefix string = ",\"preferRelatedApplications\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.PreferRelatedApplications))
- }
- if len(in.ProtocolHandlers) != 0 {
- const prefix string = ",\"protocolHandlers\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v15, v16 := range in.ProtocolHandlers {
- if v15 > 0 {
- out.RawByte(',')
- }
- if v16 == nil {
- out.RawString("null")
- } else {
- (*v16).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.RelatedApplications) != 0 {
- const prefix string = ",\"relatedApplications\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v17, v18 := range in.RelatedApplications {
- if v17 > 0 {
- out.RawByte(',')
- }
- if v18 == nil {
- out.RawString("null")
- } else {
- (*v18).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.Scope != "" {
- const prefix string = ",\"scope\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Scope))
- }
- if len(in.ScopeExtensions) != 0 {
- const prefix string = ",\"scopeExtensions\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v19, v20 := range in.ScopeExtensions {
- if v19 > 0 {
- out.RawByte(',')
- }
- if v20 == nil {
- out.RawString("null")
- } else {
- (*v20).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.Screenshots) != 0 {
- const prefix string = ",\"screenshots\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v21, v22 := range in.Screenshots {
- if v21 > 0 {
- out.RawByte(',')
- }
- if v22 == nil {
- out.RawString("null")
- } else {
- (*v22).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.ShareTarget != nil {
- const prefix string = ",\"shareTarget\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (*in.ShareTarget).MarshalEasyJSON(out)
- }
- if in.ShortName != "" {
- const prefix string = ",\"shortName\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.ShortName))
- }
- if len(in.Shortcuts) != 0 {
- const prefix string = ",\"shortcuts\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v23, v24 := range in.Shortcuts {
- if v23 > 0 {
- out.RawByte(',')
- }
- if v24 == nil {
- out.RawString("null")
- } else {
- (*v24).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.StartURL != "" {
- const prefix string = ",\"startUrl\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.StartURL))
- }
- if in.ThemeColor != "" {
- const prefix string = ",\"themeColor\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.ThemeColor))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v WebAppManifest) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v WebAppManifest) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *WebAppManifest) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *WebAppManifest) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage1(in *jlexer.Lexer, out *WaitForDebuggerParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage1(out *jwriter.Writer, in WaitForDebuggerParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v WaitForDebuggerParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage1(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v WaitForDebuggerParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage1(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *WaitForDebuggerParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage1(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *WaitForDebuggerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage1(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage2(in *jlexer.Lexer, out *VisualViewport) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "offsetX":
- out.OffsetX = float64(in.Float64())
- case "offsetY":
- out.OffsetY = float64(in.Float64())
- case "pageX":
- out.PageX = float64(in.Float64())
- case "pageY":
- out.PageY = float64(in.Float64())
- case "clientWidth":
- out.ClientWidth = float64(in.Float64())
- case "clientHeight":
- out.ClientHeight = float64(in.Float64())
- case "scale":
- out.Scale = float64(in.Float64())
- case "zoom":
- out.Zoom = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage2(out *jwriter.Writer, in VisualViewport) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"offsetX\":"
- out.RawString(prefix[1:])
- out.Float64(float64(in.OffsetX))
- }
- {
- const prefix string = ",\"offsetY\":"
- out.RawString(prefix)
- out.Float64(float64(in.OffsetY))
- }
- {
- const prefix string = ",\"pageX\":"
- out.RawString(prefix)
- out.Float64(float64(in.PageX))
- }
- {
- const prefix string = ",\"pageY\":"
- out.RawString(prefix)
- out.Float64(float64(in.PageY))
- }
- {
- const prefix string = ",\"clientWidth\":"
- out.RawString(prefix)
- out.Float64(float64(in.ClientWidth))
- }
- {
- const prefix string = ",\"clientHeight\":"
- out.RawString(prefix)
- out.Float64(float64(in.ClientHeight))
- }
- {
- const prefix string = ",\"scale\":"
- out.RawString(prefix)
- out.Float64(float64(in.Scale))
- }
- if in.Zoom != 0 {
- const prefix string = ",\"zoom\":"
- out.RawString(prefix)
- out.Float64(float64(in.Zoom))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v VisualViewport) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage2(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v VisualViewport) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage2(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *VisualViewport) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage2(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *VisualViewport) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage2(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage3(in *jlexer.Lexer, out *Viewport) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "x":
- out.X = float64(in.Float64())
- case "y":
- out.Y = float64(in.Float64())
- case "width":
- out.Width = float64(in.Float64())
- case "height":
- out.Height = float64(in.Float64())
- case "scale":
- out.Scale = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage3(out *jwriter.Writer, in Viewport) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"x\":"
- out.RawString(prefix[1:])
- out.Float64(float64(in.X))
- }
- {
- const prefix string = ",\"y\":"
- out.RawString(prefix)
- out.Float64(float64(in.Y))
- }
- {
- const prefix string = ",\"width\":"
- out.RawString(prefix)
- out.Float64(float64(in.Width))
- }
- {
- const prefix string = ",\"height\":"
- out.RawString(prefix)
- out.Float64(float64(in.Height))
- }
- {
- const prefix string = ",\"scale\":"
- out.RawString(prefix)
- out.Float64(float64(in.Scale))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Viewport) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage3(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Viewport) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage3(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Viewport) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage3(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Viewport) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage3(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage4(in *jlexer.Lexer, out *StopScreencastParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage4(out *jwriter.Writer, in StopScreencastParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StopScreencastParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage4(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage4(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StopScreencastParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage4(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StopScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage4(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage5(in *jlexer.Lexer, out *StopLoadingParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage5(out *jwriter.Writer, in StopLoadingParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StopLoadingParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage5(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage5(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StopLoadingParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage5(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StopLoadingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage5(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage6(in *jlexer.Lexer, out *StartScreencastParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "format":
- (out.Format).UnmarshalEasyJSON(in)
- case "quality":
- out.Quality = int64(in.Int64())
- case "maxWidth":
- out.MaxWidth = int64(in.Int64())
- case "maxHeight":
- out.MaxHeight = int64(in.Int64())
- case "everyNthFrame":
- out.EveryNthFrame = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage6(out *jwriter.Writer, in StartScreencastParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Format != "" {
- const prefix string = ",\"format\":"
- first = false
- out.RawString(prefix[1:])
- (in.Format).MarshalEasyJSON(out)
- }
- if in.Quality != 0 {
- const prefix string = ",\"quality\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.Quality))
- }
- if in.MaxWidth != 0 {
- const prefix string = ",\"maxWidth\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.MaxWidth))
- }
- if in.MaxHeight != 0 {
- const prefix string = ",\"maxHeight\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.MaxHeight))
- }
- if in.EveryNthFrame != 0 {
- const prefix string = ",\"everyNthFrame\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.EveryNthFrame))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StartScreencastParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage6(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage6(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StartScreencastParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage6(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StartScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage6(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage7(in *jlexer.Lexer, out *Shortcut) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "url":
- out.URL = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage7(out *jwriter.Writer, in Shortcut) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Shortcut) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage7(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Shortcut) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage7(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Shortcut) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage7(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Shortcut) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage7(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage8(in *jlexer.Lexer, out *ShareTarget) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "action":
- out.Action = string(in.String())
- case "method":
- out.Method = string(in.String())
- case "enctype":
- out.Enctype = string(in.String())
- case "title":
- out.Title = string(in.String())
- case "text":
- out.Text = string(in.String())
- case "url":
- out.URL = string(in.String())
- case "files":
- if in.IsNull() {
- in.Skip()
- out.Files = nil
- } else {
- in.Delim('[')
- if out.Files == nil {
- if !in.IsDelim(']') {
- out.Files = make([]*FileFilter, 0, 8)
- } else {
- out.Files = []*FileFilter{}
- }
- } else {
- out.Files = (out.Files)[:0]
- }
- for !in.IsDelim(']') {
- var v25 *FileFilter
- if in.IsNull() {
- in.Skip()
- v25 = nil
- } else {
- if v25 == nil {
- v25 = new(FileFilter)
- }
- (*v25).UnmarshalEasyJSON(in)
- }
- out.Files = append(out.Files, v25)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage8(out *jwriter.Writer, in ShareTarget) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"action\":"
- out.RawString(prefix[1:])
- out.String(string(in.Action))
- }
- {
- const prefix string = ",\"method\":"
- out.RawString(prefix)
- out.String(string(in.Method))
- }
- {
- const prefix string = ",\"enctype\":"
- out.RawString(prefix)
- out.String(string(in.Enctype))
- }
- if in.Title != "" {
- const prefix string = ",\"title\":"
- out.RawString(prefix)
- out.String(string(in.Title))
- }
- if in.Text != "" {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- if in.URL != "" {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- if len(in.Files) != 0 {
- const prefix string = ",\"files\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v26, v27 := range in.Files {
- if v26 > 0 {
- out.RawByte(',')
- }
- if v27 == nil {
- out.RawString("null")
- } else {
- (*v27).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ShareTarget) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage8(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ShareTarget) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage8(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ShareTarget) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage8(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ShareTarget) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage8(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage9(in *jlexer.Lexer, out *SetWebLifecycleStateParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "state":
- (out.State).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage9(out *jwriter.Writer, in SetWebLifecycleStateParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"state\":"
- out.RawString(prefix[1:])
- (in.State).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetWebLifecycleStateParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage9(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetWebLifecycleStateParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage9(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetWebLifecycleStateParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage9(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetWebLifecycleStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage9(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage10(in *jlexer.Lexer, out *SetSPCTransactionModeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "mode":
- (out.Mode).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage10(out *jwriter.Writer, in SetSPCTransactionModeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"mode\":"
- out.RawString(prefix[1:])
- (in.Mode).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetSPCTransactionModeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage10(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetSPCTransactionModeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage10(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetSPCTransactionModeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage10(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetSPCTransactionModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage10(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage11(in *jlexer.Lexer, out *SetRPHRegistrationModeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "mode":
- (out.Mode).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage11(out *jwriter.Writer, in SetRPHRegistrationModeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"mode\":"
- out.RawString(prefix[1:])
- (in.Mode).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetRPHRegistrationModeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage11(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetRPHRegistrationModeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage11(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetRPHRegistrationModeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage11(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetRPHRegistrationModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage11(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage12(in *jlexer.Lexer, out *SetPrerenderingAllowedParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "isAllowed":
- out.IsAllowed = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage12(out *jwriter.Writer, in SetPrerenderingAllowedParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"isAllowed\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.IsAllowed))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetPrerenderingAllowedParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage12(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetPrerenderingAllowedParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage12(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetPrerenderingAllowedParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage12(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetPrerenderingAllowedParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage12(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage13(in *jlexer.Lexer, out *SetLifecycleEventsEnabledParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enabled":
- out.Enabled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage13(out *jwriter.Writer, in SetLifecycleEventsEnabledParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enabled\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enabled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetLifecycleEventsEnabledParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage13(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetLifecycleEventsEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage13(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetLifecycleEventsEnabledParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage13(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetLifecycleEventsEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage13(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage14(in *jlexer.Lexer, out *SetInterceptFileChooserDialogParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enabled":
- out.Enabled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage14(out *jwriter.Writer, in SetInterceptFileChooserDialogParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enabled\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enabled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetInterceptFileChooserDialogParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage14(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetInterceptFileChooserDialogParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage14(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetInterceptFileChooserDialogParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage14(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetInterceptFileChooserDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage14(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage15(in *jlexer.Lexer, out *SetFontSizesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "fontSizes":
- if in.IsNull() {
- in.Skip()
- out.FontSizes = nil
- } else {
- if out.FontSizes == nil {
- out.FontSizes = new(FontSizes)
- }
- (*out.FontSizes).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage15(out *jwriter.Writer, in SetFontSizesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"fontSizes\":"
- out.RawString(prefix[1:])
- if in.FontSizes == nil {
- out.RawString("null")
- } else {
- (*in.FontSizes).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetFontSizesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage15(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetFontSizesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage15(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetFontSizesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage15(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetFontSizesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage15(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage16(in *jlexer.Lexer, out *SetFontFamiliesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "fontFamilies":
- if in.IsNull() {
- in.Skip()
- out.FontFamilies = nil
- } else {
- if out.FontFamilies == nil {
- out.FontFamilies = new(FontFamilies)
- }
- (*out.FontFamilies).UnmarshalEasyJSON(in)
- }
- case "forScripts":
- if in.IsNull() {
- in.Skip()
- out.ForScripts = nil
- } else {
- in.Delim('[')
- if out.ForScripts == nil {
- if !in.IsDelim(']') {
- out.ForScripts = make([]*ScriptFontFamilies, 0, 8)
- } else {
- out.ForScripts = []*ScriptFontFamilies{}
- }
- } else {
- out.ForScripts = (out.ForScripts)[:0]
- }
- for !in.IsDelim(']') {
- var v28 *ScriptFontFamilies
- if in.IsNull() {
- in.Skip()
- v28 = nil
- } else {
- if v28 == nil {
- v28 = new(ScriptFontFamilies)
- }
- (*v28).UnmarshalEasyJSON(in)
- }
- out.ForScripts = append(out.ForScripts, v28)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage16(out *jwriter.Writer, in SetFontFamiliesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"fontFamilies\":"
- out.RawString(prefix[1:])
- if in.FontFamilies == nil {
- out.RawString("null")
- } else {
- (*in.FontFamilies).MarshalEasyJSON(out)
- }
- }
- if len(in.ForScripts) != 0 {
- const prefix string = ",\"forScripts\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v29, v30 := range in.ForScripts {
- if v29 > 0 {
- out.RawByte(',')
- }
- if v30 == nil {
- out.RawString("null")
- } else {
- (*v30).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetFontFamiliesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage16(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetFontFamiliesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage16(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetFontFamiliesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage16(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetFontFamiliesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage16(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage17(in *jlexer.Lexer, out *SetDocumentContentParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "html":
- out.HTML = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage17(out *jwriter.Writer, in SetDocumentContentParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"html\":"
- out.RawString(prefix)
- out.String(string(in.HTML))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetDocumentContentParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage17(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage17(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage17(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetDocumentContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage17(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage18(in *jlexer.Lexer, out *SetBypassCSPParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enabled":
- out.Enabled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage18(out *jwriter.Writer, in SetBypassCSPParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enabled\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enabled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetBypassCSPParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage18(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetBypassCSPParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage18(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetBypassCSPParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage18(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetBypassCSPParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage18(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage19(in *jlexer.Lexer, out *SetAdBlockingEnabledParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enabled":
- out.Enabled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage19(out *jwriter.Writer, in SetAdBlockingEnabledParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enabled\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enabled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetAdBlockingEnabledParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage19(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetAdBlockingEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage19(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetAdBlockingEnabledParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage19(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetAdBlockingEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage19(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage20(in *jlexer.Lexer, out *SearchInResourceReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "result":
- if in.IsNull() {
- in.Skip()
- out.Result = nil
- } else {
- in.Delim('[')
- if out.Result == nil {
- if !in.IsDelim(']') {
- out.Result = make([]*debugger.SearchMatch, 0, 8)
- } else {
- out.Result = []*debugger.SearchMatch{}
- }
- } else {
- out.Result = (out.Result)[:0]
- }
- for !in.IsDelim(']') {
- var v31 *debugger.SearchMatch
- if in.IsNull() {
- in.Skip()
- v31 = nil
- } else {
- if v31 == nil {
- v31 = new(debugger.SearchMatch)
- }
- (*v31).UnmarshalEasyJSON(in)
- }
- out.Result = append(out.Result, v31)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage20(out *jwriter.Writer, in SearchInResourceReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Result) != 0 {
- const prefix string = ",\"result\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v32, v33 := range in.Result {
- if v32 > 0 {
- out.RawByte(',')
- }
- if v33 == nil {
- out.RawString("null")
- } else {
- (*v33).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SearchInResourceReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage20(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SearchInResourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage20(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SearchInResourceReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage20(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SearchInResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage20(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage21(in *jlexer.Lexer, out *SearchInResourceParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "url":
- out.URL = string(in.String())
- case "query":
- out.Query = string(in.String())
- case "caseSensitive":
- out.CaseSensitive = bool(in.Bool())
- case "isRegex":
- out.IsRegex = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage21(out *jwriter.Writer, in SearchInResourceParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"query\":"
- out.RawString(prefix)
- out.String(string(in.Query))
- }
- if in.CaseSensitive {
- const prefix string = ",\"caseSensitive\":"
- out.RawString(prefix)
- out.Bool(bool(in.CaseSensitive))
- }
- if in.IsRegex {
- const prefix string = ",\"isRegex\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsRegex))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SearchInResourceParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage21(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage21(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage21(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SearchInResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage21(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage22(in *jlexer.Lexer, out *ScriptFontFamilies) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "script":
- out.Script = string(in.String())
- case "fontFamilies":
- if in.IsNull() {
- in.Skip()
- out.FontFamilies = nil
- } else {
- if out.FontFamilies == nil {
- out.FontFamilies = new(FontFamilies)
- }
- (*out.FontFamilies).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage22(out *jwriter.Writer, in ScriptFontFamilies) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"script\":"
- out.RawString(prefix[1:])
- out.String(string(in.Script))
- }
- {
- const prefix string = ",\"fontFamilies\":"
- out.RawString(prefix)
- if in.FontFamilies == nil {
- out.RawString("null")
- } else {
- (*in.FontFamilies).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ScriptFontFamilies) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage22(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ScriptFontFamilies) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage22(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ScriptFontFamilies) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage22(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ScriptFontFamilies) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage22(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage23(in *jlexer.Lexer, out *Screenshot) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "image":
- if in.IsNull() {
- in.Skip()
- out.Image = nil
- } else {
- if out.Image == nil {
- out.Image = new(ImageResource)
- }
- (*out.Image).UnmarshalEasyJSON(in)
- }
- case "formFactor":
- out.FormFactor = string(in.String())
- case "label":
- out.Label = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage23(out *jwriter.Writer, in Screenshot) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"image\":"
- out.RawString(prefix[1:])
- if in.Image == nil {
- out.RawString("null")
- } else {
- (*in.Image).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"formFactor\":"
- out.RawString(prefix)
- out.String(string(in.FormFactor))
- }
- if in.Label != "" {
- const prefix string = ",\"label\":"
- out.RawString(prefix)
- out.String(string(in.Label))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Screenshot) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage23(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Screenshot) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage23(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Screenshot) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage23(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Screenshot) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage23(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage24(in *jlexer.Lexer, out *ScreencastFrameMetadata) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "offsetTop":
- out.OffsetTop = float64(in.Float64())
- case "pageScaleFactor":
- out.PageScaleFactor = float64(in.Float64())
- case "deviceWidth":
- out.DeviceWidth = float64(in.Float64())
- case "deviceHeight":
- out.DeviceHeight = float64(in.Float64())
- case "scrollOffsetX":
- out.ScrollOffsetX = float64(in.Float64())
- case "scrollOffsetY":
- out.ScrollOffsetY = float64(in.Float64())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.TimeSinceEpoch)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage24(out *jwriter.Writer, in ScreencastFrameMetadata) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"offsetTop\":"
- out.RawString(prefix[1:])
- out.Float64(float64(in.OffsetTop))
- }
- {
- const prefix string = ",\"pageScaleFactor\":"
- out.RawString(prefix)
- out.Float64(float64(in.PageScaleFactor))
- }
- {
- const prefix string = ",\"deviceWidth\":"
- out.RawString(prefix)
- out.Float64(float64(in.DeviceWidth))
- }
- {
- const prefix string = ",\"deviceHeight\":"
- out.RawString(prefix)
- out.Float64(float64(in.DeviceHeight))
- }
- {
- const prefix string = ",\"scrollOffsetX\":"
- out.RawString(prefix)
- out.Float64(float64(in.ScrollOffsetX))
- }
- {
- const prefix string = ",\"scrollOffsetY\":"
- out.RawString(prefix)
- out.Float64(float64(in.ScrollOffsetY))
- }
- if in.Timestamp != nil {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ScreencastFrameMetadata) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage24(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ScreencastFrameMetadata) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage24(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ScreencastFrameMetadata) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage24(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ScreencastFrameMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage24(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage25(in *jlexer.Lexer, out *ScreencastFrameAckParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "sessionId":
- out.SessionID = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage25(out *jwriter.Writer, in ScreencastFrameAckParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"sessionId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.SessionID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage25(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage25(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage25(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ScreencastFrameAckParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage25(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage26(in *jlexer.Lexer, out *ScopeExtension) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "origin":
- out.Origin = string(in.String())
- case "hasOriginWildcard":
- out.HasOriginWildcard = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage26(out *jwriter.Writer, in ScopeExtension) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix[1:])
- out.String(string(in.Origin))
- }
- {
- const prefix string = ",\"hasOriginWildcard\":"
- out.RawString(prefix)
- out.Bool(bool(in.HasOriginWildcard))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ScopeExtension) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage26(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ScopeExtension) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage26(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ScopeExtension) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage26(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ScopeExtension) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage26(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage27(in *jlexer.Lexer, out *ResetNavigationHistoryParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage27(out *jwriter.Writer, in ResetNavigationHistoryParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ResetNavigationHistoryParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage27(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ResetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage27(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ResetNavigationHistoryParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage27(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ResetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage27(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage28(in *jlexer.Lexer, out *RemoveScriptToEvaluateOnNewDocumentParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "identifier":
- out.Identifier = ScriptIdentifier(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage28(out *jwriter.Writer, in RemoveScriptToEvaluateOnNewDocumentParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"identifier\":"
- out.RawString(prefix[1:])
- out.String(string(in.Identifier))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v RemoveScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage28(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v RemoveScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage28(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage28(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage28(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage29(in *jlexer.Lexer, out *ReloadParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ignoreCache":
- out.IgnoreCache = bool(in.Bool())
- case "scriptToEvaluateOnLoad":
- out.ScriptToEvaluateOnLoad = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage29(out *jwriter.Writer, in ReloadParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.IgnoreCache {
- const prefix string = ",\"ignoreCache\":"
- first = false
- out.RawString(prefix[1:])
- out.Bool(bool(in.IgnoreCache))
- }
- if in.ScriptToEvaluateOnLoad != "" {
- const prefix string = ",\"scriptToEvaluateOnLoad\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.ScriptToEvaluateOnLoad))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ReloadParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage29(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage29(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ReloadParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage29(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage29(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage30(in *jlexer.Lexer, out *RelatedApplication) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "id":
- out.ID = string(in.String())
- case "url":
- out.URL = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage30(out *jwriter.Writer, in RelatedApplication) {
- out.RawByte('{')
- first := true
- _ = first
- if in.ID != "" {
- const prefix string = ",\"id\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.ID))
- }
- {
- const prefix string = ",\"url\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.URL))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v RelatedApplication) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage30(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v RelatedApplication) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage30(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *RelatedApplication) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage30(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *RelatedApplication) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage30(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage31(in *jlexer.Lexer, out *ProtocolHandler) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "protocol":
- out.Protocol = string(in.String())
- case "url":
- out.URL = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage31(out *jwriter.Writer, in ProtocolHandler) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"protocol\":"
- out.RawString(prefix[1:])
- out.String(string(in.Protocol))
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ProtocolHandler) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage31(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ProtocolHandler) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage31(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ProtocolHandler) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage31(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ProtocolHandler) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage31(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage32(in *jlexer.Lexer, out *ProduceCompilationCacheParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "scripts":
- if in.IsNull() {
- in.Skip()
- out.Scripts = nil
- } else {
- in.Delim('[')
- if out.Scripts == nil {
- if !in.IsDelim(']') {
- out.Scripts = make([]*CompilationCacheParams, 0, 8)
- } else {
- out.Scripts = []*CompilationCacheParams{}
- }
- } else {
- out.Scripts = (out.Scripts)[:0]
- }
- for !in.IsDelim(']') {
- var v34 *CompilationCacheParams
- if in.IsNull() {
- in.Skip()
- v34 = nil
- } else {
- if v34 == nil {
- v34 = new(CompilationCacheParams)
- }
- (*v34).UnmarshalEasyJSON(in)
- }
- out.Scripts = append(out.Scripts, v34)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage32(out *jwriter.Writer, in ProduceCompilationCacheParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"scripts\":"
- out.RawString(prefix[1:])
- if in.Scripts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v35, v36 := range in.Scripts {
- if v35 > 0 {
- out.RawByte(',')
- }
- if v36 == nil {
- out.RawString("null")
- } else {
- (*v36).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ProduceCompilationCacheParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage32(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ProduceCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage32(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ProduceCompilationCacheParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage32(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ProduceCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage32(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage33(in *jlexer.Lexer, out *PrintToPDFReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "data":
- out.Data = string(in.String())
- case "stream":
- out.Stream = io.StreamHandle(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage33(out *jwriter.Writer, in PrintToPDFReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Data != "" {
- const prefix string = ",\"data\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Data))
- }
- if in.Stream != "" {
- const prefix string = ",\"stream\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Stream))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PrintToPDFReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage33(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PrintToPDFReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage33(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PrintToPDFReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage33(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PrintToPDFReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage33(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage34(in *jlexer.Lexer, out *PrintToPDFParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "landscape":
- out.Landscape = bool(in.Bool())
- case "displayHeaderFooter":
- out.DisplayHeaderFooter = bool(in.Bool())
- case "printBackground":
- out.PrintBackground = bool(in.Bool())
- case "scale":
- out.Scale = float64(in.Float64())
- case "paperWidth":
- out.PaperWidth = float64(in.Float64())
- case "paperHeight":
- out.PaperHeight = float64(in.Float64())
- case "marginTop":
- out.MarginTop = float64(in.Float64())
- case "marginBottom":
- out.MarginBottom = float64(in.Float64())
- case "marginLeft":
- out.MarginLeft = float64(in.Float64())
- case "marginRight":
- out.MarginRight = float64(in.Float64())
- case "pageRanges":
- out.PageRanges = string(in.String())
- case "headerTemplate":
- out.HeaderTemplate = string(in.String())
- case "footerTemplate":
- out.FooterTemplate = string(in.String())
- case "preferCSSPageSize":
- out.PreferCSSPageSize = bool(in.Bool())
- case "transferMode":
- (out.TransferMode).UnmarshalEasyJSON(in)
- case "generateTaggedPDF":
- out.GenerateTaggedPDF = bool(in.Bool())
- case "generateDocumentOutline":
- out.GenerateDocumentOutline = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage34(out *jwriter.Writer, in PrintToPDFParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Landscape {
- const prefix string = ",\"landscape\":"
- first = false
- out.RawString(prefix[1:])
- out.Bool(bool(in.Landscape))
- }
- if in.DisplayHeaderFooter {
- const prefix string = ",\"displayHeaderFooter\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.DisplayHeaderFooter))
- }
- if in.PrintBackground {
- const prefix string = ",\"printBackground\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.PrintBackground))
- }
- if in.Scale != 0 {
- const prefix string = ",\"scale\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Float64(float64(in.Scale))
- }
- if in.PaperWidth != 0 {
- const prefix string = ",\"paperWidth\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Float64(float64(in.PaperWidth))
- }
- if in.PaperHeight != 0 {
- const prefix string = ",\"paperHeight\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Float64(float64(in.PaperHeight))
- }
- {
- const prefix string = ",\"marginTop\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Float64(float64(in.MarginTop))
- }
- {
- const prefix string = ",\"marginBottom\":"
- out.RawString(prefix)
- out.Float64(float64(in.MarginBottom))
- }
- {
- const prefix string = ",\"marginLeft\":"
- out.RawString(prefix)
- out.Float64(float64(in.MarginLeft))
- }
- {
- const prefix string = ",\"marginRight\":"
- out.RawString(prefix)
- out.Float64(float64(in.MarginRight))
- }
- if in.PageRanges != "" {
- const prefix string = ",\"pageRanges\":"
- out.RawString(prefix)
- out.String(string(in.PageRanges))
- }
- if in.HeaderTemplate != "" {
- const prefix string = ",\"headerTemplate\":"
- out.RawString(prefix)
- out.String(string(in.HeaderTemplate))
- }
- if in.FooterTemplate != "" {
- const prefix string = ",\"footerTemplate\":"
- out.RawString(prefix)
- out.String(string(in.FooterTemplate))
- }
- if in.PreferCSSPageSize {
- const prefix string = ",\"preferCSSPageSize\":"
- out.RawString(prefix)
- out.Bool(bool(in.PreferCSSPageSize))
- }
- if in.TransferMode != "" {
- const prefix string = ",\"transferMode\":"
- out.RawString(prefix)
- (in.TransferMode).MarshalEasyJSON(out)
- }
- if in.GenerateTaggedPDF {
- const prefix string = ",\"generateTaggedPDF\":"
- out.RawString(prefix)
- out.Bool(bool(in.GenerateTaggedPDF))
- }
- if in.GenerateDocumentOutline {
- const prefix string = ",\"generateDocumentOutline\":"
- out.RawString(prefix)
- out.Bool(bool(in.GenerateDocumentOutline))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PrintToPDFParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage34(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PrintToPDFParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage34(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PrintToPDFParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage34(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PrintToPDFParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage34(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage35(in *jlexer.Lexer, out *PermissionsPolicyFeatureState) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "feature":
- (out.Feature).UnmarshalEasyJSON(in)
- case "allowed":
- out.Allowed = bool(in.Bool())
- case "locator":
- if in.IsNull() {
- in.Skip()
- out.Locator = nil
- } else {
- if out.Locator == nil {
- out.Locator = new(PermissionsPolicyBlockLocator)
- }
- (*out.Locator).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage35(out *jwriter.Writer, in PermissionsPolicyFeatureState) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"feature\":"
- out.RawString(prefix[1:])
- (in.Feature).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"allowed\":"
- out.RawString(prefix)
- out.Bool(bool(in.Allowed))
- }
- if in.Locator != nil {
- const prefix string = ",\"locator\":"
- out.RawString(prefix)
- (*in.Locator).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PermissionsPolicyFeatureState) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage35(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PermissionsPolicyFeatureState) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage35(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PermissionsPolicyFeatureState) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage35(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PermissionsPolicyFeatureState) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage35(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage36(in *jlexer.Lexer, out *PermissionsPolicyBlockLocator) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "blockReason":
- (out.BlockReason).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage36(out *jwriter.Writer, in PermissionsPolicyBlockLocator) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"blockReason\":"
- out.RawString(prefix)
- (in.BlockReason).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PermissionsPolicyBlockLocator) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage36(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PermissionsPolicyBlockLocator) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage36(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PermissionsPolicyBlockLocator) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage36(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PermissionsPolicyBlockLocator) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage36(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage37(in *jlexer.Lexer, out *NavigationEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "id":
- out.ID = int64(in.Int64())
- case "url":
- out.URL = string(in.String())
- case "userTypedURL":
- out.UserTypedURL = string(in.String())
- case "title":
- out.Title = string(in.String())
- case "transitionType":
- (out.TransitionType).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage37(out *jwriter.Writer, in NavigationEntry) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"id\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.ID))
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"userTypedURL\":"
- out.RawString(prefix)
- out.String(string(in.UserTypedURL))
- }
- {
- const prefix string = ",\"title\":"
- out.RawString(prefix)
- out.String(string(in.Title))
- }
- {
- const prefix string = ",\"transitionType\":"
- out.RawString(prefix)
- (in.TransitionType).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v NavigationEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage37(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v NavigationEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage37(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *NavigationEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage37(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *NavigationEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage37(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage38(in *jlexer.Lexer, out *NavigateToHistoryEntryParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "entryId":
- out.EntryID = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage38(out *jwriter.Writer, in NavigateToHistoryEntryParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"entryId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.EntryID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage38(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage38(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage38(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage38(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage39(in *jlexer.Lexer, out *NavigateReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "loaderId":
- out.LoaderID = cdp.LoaderID(in.String())
- case "errorText":
- out.ErrorText = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage39(out *jwriter.Writer, in NavigateReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.FrameID != "" {
- const prefix string = ",\"frameId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- if in.LoaderID != "" {
- const prefix string = ",\"loaderId\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.LoaderID))
- }
- if in.ErrorText != "" {
- const prefix string = ",\"errorText\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.ErrorText))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v NavigateReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage39(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage39(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *NavigateReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage39(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *NavigateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage39(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage40(in *jlexer.Lexer, out *NavigateParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "referrer":
- out.Referrer = string(in.String())
- case "transitionType":
- (out.TransitionType).UnmarshalEasyJSON(in)
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "referrerPolicy":
- (out.ReferrerPolicy).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage40(out *jwriter.Writer, in NavigateParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- if in.Referrer != "" {
- const prefix string = ",\"referrer\":"
- out.RawString(prefix)
- out.String(string(in.Referrer))
- }
- if in.TransitionType != "" {
- const prefix string = ",\"transitionType\":"
- out.RawString(prefix)
- (in.TransitionType).MarshalEasyJSON(out)
- }
- if in.FrameID != "" {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix)
- out.String(string(in.FrameID))
- }
- if in.ReferrerPolicy != "" {
- const prefix string = ",\"referrerPolicy\":"
- out.RawString(prefix)
- (in.ReferrerPolicy).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v NavigateParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage40(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage40(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *NavigateParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage40(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage40(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage41(in *jlexer.Lexer, out *LayoutViewport) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "pageX":
- out.PageX = int64(in.Int64())
- case "pageY":
- out.PageY = int64(in.Int64())
- case "clientWidth":
- out.ClientWidth = int64(in.Int64())
- case "clientHeight":
- out.ClientHeight = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage41(out *jwriter.Writer, in LayoutViewport) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"pageX\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.PageX))
- }
- {
- const prefix string = ",\"pageY\":"
- out.RawString(prefix)
- out.Int64(int64(in.PageY))
- }
- {
- const prefix string = ",\"clientWidth\":"
- out.RawString(prefix)
- out.Int64(int64(in.ClientWidth))
- }
- {
- const prefix string = ",\"clientHeight\":"
- out.RawString(prefix)
- out.Int64(int64(in.ClientHeight))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v LayoutViewport) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage41(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage41(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *LayoutViewport) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage41(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *LayoutViewport) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage41(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage42(in *jlexer.Lexer, out *LaunchHandler) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "clientMode":
- out.ClientMode = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage42(out *jwriter.Writer, in LaunchHandler) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"clientMode\":"
- out.RawString(prefix[1:])
- out.String(string(in.ClientMode))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v LaunchHandler) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage42(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v LaunchHandler) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage42(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *LaunchHandler) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage42(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *LaunchHandler) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage42(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage43(in *jlexer.Lexer, out *InstallabilityErrorArgument) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "value":
- out.Value = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage43(out *jwriter.Writer, in InstallabilityErrorArgument) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v InstallabilityErrorArgument) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage43(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v InstallabilityErrorArgument) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage43(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *InstallabilityErrorArgument) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage43(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *InstallabilityErrorArgument) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage43(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage44(in *jlexer.Lexer, out *InstallabilityError) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "errorId":
- out.ErrorID = string(in.String())
- case "errorArguments":
- if in.IsNull() {
- in.Skip()
- out.ErrorArguments = nil
- } else {
- in.Delim('[')
- if out.ErrorArguments == nil {
- if !in.IsDelim(']') {
- out.ErrorArguments = make([]*InstallabilityErrorArgument, 0, 8)
- } else {
- out.ErrorArguments = []*InstallabilityErrorArgument{}
- }
- } else {
- out.ErrorArguments = (out.ErrorArguments)[:0]
- }
- for !in.IsDelim(']') {
- var v37 *InstallabilityErrorArgument
- if in.IsNull() {
- in.Skip()
- v37 = nil
- } else {
- if v37 == nil {
- v37 = new(InstallabilityErrorArgument)
- }
- (*v37).UnmarshalEasyJSON(in)
- }
- out.ErrorArguments = append(out.ErrorArguments, v37)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage44(out *jwriter.Writer, in InstallabilityError) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"errorId\":"
- out.RawString(prefix[1:])
- out.String(string(in.ErrorID))
- }
- {
- const prefix string = ",\"errorArguments\":"
- out.RawString(prefix)
- if in.ErrorArguments == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v38, v39 := range in.ErrorArguments {
- if v38 > 0 {
- out.RawByte(',')
- }
- if v39 == nil {
- out.RawString("null")
- } else {
- (*v39).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v InstallabilityError) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage44(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v InstallabilityError) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage44(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *InstallabilityError) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage44(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *InstallabilityError) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage44(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage45(in *jlexer.Lexer, out *ImageResource) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "sizes":
- out.Sizes = string(in.String())
- case "type":
- out.Type = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage45(out *jwriter.Writer, in ImageResource) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- if in.Sizes != "" {
- const prefix string = ",\"sizes\":"
- out.RawString(prefix)
- out.String(string(in.Sizes))
- }
- if in.Type != "" {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- out.String(string(in.Type))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ImageResource) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage45(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ImageResource) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage45(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ImageResource) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage45(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ImageResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage45(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage46(in *jlexer.Lexer, out *HandleJavaScriptDialogParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "accept":
- out.Accept = bool(in.Bool())
- case "promptText":
- out.PromptText = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage46(out *jwriter.Writer, in HandleJavaScriptDialogParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"accept\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Accept))
- }
- if in.PromptText != "" {
- const prefix string = ",\"promptText\":"
- out.RawString(prefix)
- out.String(string(in.PromptText))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage46(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage46(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage46(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage46(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage47(in *jlexer.Lexer, out *GetResourceTreeReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameTree":
- if in.IsNull() {
- in.Skip()
- out.FrameTree = nil
- } else {
- if out.FrameTree == nil {
- out.FrameTree = new(FrameResourceTree)
- }
- (*out.FrameTree).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage47(out *jwriter.Writer, in GetResourceTreeReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.FrameTree != nil {
- const prefix string = ",\"frameTree\":"
- first = false
- out.RawString(prefix[1:])
- (*in.FrameTree).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage47(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage47(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage47(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetResourceTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage47(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage48(in *jlexer.Lexer, out *GetResourceTreeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage48(out *jwriter.Writer, in GetResourceTreeParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetResourceTreeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage48(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage48(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage48(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage48(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage49(in *jlexer.Lexer, out *GetResourceContentReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "content":
- out.Content = string(in.String())
- case "base64Encoded":
- out.Base64encoded = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage49(out *jwriter.Writer, in GetResourceContentReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Content != "" {
- const prefix string = ",\"content\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Content))
- }
- if in.Base64encoded {
- const prefix string = ",\"base64Encoded\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.Base64encoded))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetResourceContentReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage49(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage49(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage49(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage49(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage50(in *jlexer.Lexer, out *GetResourceContentParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "url":
- out.URL = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage50(out *jwriter.Writer, in GetResourceContentParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetResourceContentParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage50(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage50(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage50(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage50(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage51(in *jlexer.Lexer, out *GetPermissionsPolicyStateReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "states":
- if in.IsNull() {
- in.Skip()
- out.States = nil
- } else {
- in.Delim('[')
- if out.States == nil {
- if !in.IsDelim(']') {
- out.States = make([]*PermissionsPolicyFeatureState, 0, 8)
- } else {
- out.States = []*PermissionsPolicyFeatureState{}
- }
- } else {
- out.States = (out.States)[:0]
- }
- for !in.IsDelim(']') {
- var v40 *PermissionsPolicyFeatureState
- if in.IsNull() {
- in.Skip()
- v40 = nil
- } else {
- if v40 == nil {
- v40 = new(PermissionsPolicyFeatureState)
- }
- (*v40).UnmarshalEasyJSON(in)
- }
- out.States = append(out.States, v40)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage51(out *jwriter.Writer, in GetPermissionsPolicyStateReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.States) != 0 {
- const prefix string = ",\"states\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v41, v42 := range in.States {
- if v41 > 0 {
- out.RawByte(',')
- }
- if v42 == nil {
- out.RawString("null")
- } else {
- (*v42).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetPermissionsPolicyStateReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage51(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetPermissionsPolicyStateReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage51(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetPermissionsPolicyStateReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage51(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetPermissionsPolicyStateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage51(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage52(in *jlexer.Lexer, out *GetPermissionsPolicyStateParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage52(out *jwriter.Writer, in GetPermissionsPolicyStateParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetPermissionsPolicyStateParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage52(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetPermissionsPolicyStateParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage52(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetPermissionsPolicyStateParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage52(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetPermissionsPolicyStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage52(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage53(in *jlexer.Lexer, out *GetOriginTrialsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "originTrials":
- if in.IsNull() {
- in.Skip()
- out.OriginTrials = nil
- } else {
- in.Delim('[')
- if out.OriginTrials == nil {
- if !in.IsDelim(']') {
- out.OriginTrials = make([]*cdp.OriginTrial, 0, 8)
- } else {
- out.OriginTrials = []*cdp.OriginTrial{}
- }
- } else {
- out.OriginTrials = (out.OriginTrials)[:0]
- }
- for !in.IsDelim(']') {
- var v43 *cdp.OriginTrial
- if in.IsNull() {
- in.Skip()
- v43 = nil
- } else {
- if v43 == nil {
- v43 = new(cdp.OriginTrial)
- }
- (*v43).UnmarshalEasyJSON(in)
- }
- out.OriginTrials = append(out.OriginTrials, v43)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage53(out *jwriter.Writer, in GetOriginTrialsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.OriginTrials) != 0 {
- const prefix string = ",\"originTrials\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v44, v45 := range in.OriginTrials {
- if v44 > 0 {
- out.RawByte(',')
- }
- if v45 == nil {
- out.RawString("null")
- } else {
- (*v45).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetOriginTrialsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage53(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetOriginTrialsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage53(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetOriginTrialsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage53(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetOriginTrialsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage53(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage54(in *jlexer.Lexer, out *GetOriginTrialsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage54(out *jwriter.Writer, in GetOriginTrialsParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetOriginTrialsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage54(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetOriginTrialsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage54(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetOriginTrialsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage54(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetOriginTrialsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage54(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage55(in *jlexer.Lexer, out *GetNavigationHistoryReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "currentIndex":
- out.CurrentIndex = int64(in.Int64())
- case "entries":
- if in.IsNull() {
- in.Skip()
- out.Entries = nil
- } else {
- in.Delim('[')
- if out.Entries == nil {
- if !in.IsDelim(']') {
- out.Entries = make([]*NavigationEntry, 0, 8)
- } else {
- out.Entries = []*NavigationEntry{}
- }
- } else {
- out.Entries = (out.Entries)[:0]
- }
- for !in.IsDelim(']') {
- var v46 *NavigationEntry
- if in.IsNull() {
- in.Skip()
- v46 = nil
- } else {
- if v46 == nil {
- v46 = new(NavigationEntry)
- }
- (*v46).UnmarshalEasyJSON(in)
- }
- out.Entries = append(out.Entries, v46)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage55(out *jwriter.Writer, in GetNavigationHistoryReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.CurrentIndex != 0 {
- const prefix string = ",\"currentIndex\":"
- first = false
- out.RawString(prefix[1:])
- out.Int64(int64(in.CurrentIndex))
- }
- if len(in.Entries) != 0 {
- const prefix string = ",\"entries\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v47, v48 := range in.Entries {
- if v47 > 0 {
- out.RawByte(',')
- }
- if v48 == nil {
- out.RawString("null")
- } else {
- (*v48).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetNavigationHistoryReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage55(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage55(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage55(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetNavigationHistoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage55(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage56(in *jlexer.Lexer, out *GetNavigationHistoryParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage56(out *jwriter.Writer, in GetNavigationHistoryParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage56(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage56(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage56(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage56(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage57(in *jlexer.Lexer, out *GetLayoutMetricsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "layoutViewport":
- if in.IsNull() {
- in.Skip()
- out.LayoutViewport = nil
- } else {
- if out.LayoutViewport == nil {
- out.LayoutViewport = new(LayoutViewport)
- }
- (*out.LayoutViewport).UnmarshalEasyJSON(in)
- }
- case "visualViewport":
- if in.IsNull() {
- in.Skip()
- out.VisualViewport = nil
- } else {
- if out.VisualViewport == nil {
- out.VisualViewport = new(VisualViewport)
- }
- (*out.VisualViewport).UnmarshalEasyJSON(in)
- }
- case "contentSize":
- if in.IsNull() {
- in.Skip()
- out.ContentSize = nil
- } else {
- if out.ContentSize == nil {
- out.ContentSize = new(dom.Rect)
- }
- (*out.ContentSize).UnmarshalEasyJSON(in)
- }
- case "cssLayoutViewport":
- if in.IsNull() {
- in.Skip()
- out.CSSLayoutViewport = nil
- } else {
- if out.CSSLayoutViewport == nil {
- out.CSSLayoutViewport = new(LayoutViewport)
- }
- (*out.CSSLayoutViewport).UnmarshalEasyJSON(in)
- }
- case "cssVisualViewport":
- if in.IsNull() {
- in.Skip()
- out.CSSVisualViewport = nil
- } else {
- if out.CSSVisualViewport == nil {
- out.CSSVisualViewport = new(VisualViewport)
- }
- (*out.CSSVisualViewport).UnmarshalEasyJSON(in)
- }
- case "cssContentSize":
- if in.IsNull() {
- in.Skip()
- out.CSSContentSize = nil
- } else {
- if out.CSSContentSize == nil {
- out.CSSContentSize = new(dom.Rect)
- }
- (*out.CSSContentSize).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage57(out *jwriter.Writer, in GetLayoutMetricsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"layoutViewport\":"
- out.RawString(prefix[1:])
- if in.LayoutViewport == nil {
- out.RawString("null")
- } else {
- (*in.LayoutViewport).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"visualViewport\":"
- out.RawString(prefix)
- if in.VisualViewport == nil {
- out.RawString("null")
- } else {
- (*in.VisualViewport).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"contentSize\":"
- out.RawString(prefix)
- if in.ContentSize == nil {
- out.RawString("null")
- } else {
- (*in.ContentSize).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"cssLayoutViewport\":"
- out.RawString(prefix)
- if in.CSSLayoutViewport == nil {
- out.RawString("null")
- } else {
- (*in.CSSLayoutViewport).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"cssVisualViewport\":"
- out.RawString(prefix)
- if in.CSSVisualViewport == nil {
- out.RawString("null")
- } else {
- (*in.CSSVisualViewport).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"cssContentSize\":"
- out.RawString(prefix)
- if in.CSSContentSize == nil {
- out.RawString("null")
- } else {
- (*in.CSSContentSize).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage57(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage57(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage57(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetLayoutMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage57(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage58(in *jlexer.Lexer, out *GetLayoutMetricsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage58(out *jwriter.Writer, in GetLayoutMetricsParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetLayoutMetricsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage58(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage58(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage58(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage58(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage59(in *jlexer.Lexer, out *GetInstallabilityErrorsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "installabilityErrors":
- if in.IsNull() {
- in.Skip()
- out.InstallabilityErrors = nil
- } else {
- in.Delim('[')
- if out.InstallabilityErrors == nil {
- if !in.IsDelim(']') {
- out.InstallabilityErrors = make([]*InstallabilityError, 0, 8)
- } else {
- out.InstallabilityErrors = []*InstallabilityError{}
- }
- } else {
- out.InstallabilityErrors = (out.InstallabilityErrors)[:0]
- }
- for !in.IsDelim(']') {
- var v49 *InstallabilityError
- if in.IsNull() {
- in.Skip()
- v49 = nil
- } else {
- if v49 == nil {
- v49 = new(InstallabilityError)
- }
- (*v49).UnmarshalEasyJSON(in)
- }
- out.InstallabilityErrors = append(out.InstallabilityErrors, v49)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage59(out *jwriter.Writer, in GetInstallabilityErrorsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.InstallabilityErrors) != 0 {
- const prefix string = ",\"installabilityErrors\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v50, v51 := range in.InstallabilityErrors {
- if v50 > 0 {
- out.RawByte(',')
- }
- if v51 == nil {
- out.RawString("null")
- } else {
- (*v51).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetInstallabilityErrorsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage59(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetInstallabilityErrorsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage59(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetInstallabilityErrorsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage59(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetInstallabilityErrorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage59(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage60(in *jlexer.Lexer, out *GetInstallabilityErrorsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage60(out *jwriter.Writer, in GetInstallabilityErrorsParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetInstallabilityErrorsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage60(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetInstallabilityErrorsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage60(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetInstallabilityErrorsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage60(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetInstallabilityErrorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage60(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage61(in *jlexer.Lexer, out *GetFrameTreeReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameTree":
- if in.IsNull() {
- in.Skip()
- out.FrameTree = nil
- } else {
- if out.FrameTree == nil {
- out.FrameTree = new(FrameTree)
- }
- (*out.FrameTree).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage61(out *jwriter.Writer, in GetFrameTreeReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.FrameTree != nil {
- const prefix string = ",\"frameTree\":"
- first = false
- out.RawString(prefix[1:])
- (*in.FrameTree).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetFrameTreeReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage61(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetFrameTreeReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage61(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetFrameTreeReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage61(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetFrameTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage61(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage62(in *jlexer.Lexer, out *GetFrameTreeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage62(out *jwriter.Writer, in GetFrameTreeParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetFrameTreeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage62(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetFrameTreeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage62(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetFrameTreeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage62(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetFrameTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage62(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage63(in *jlexer.Lexer, out *GetAppManifestReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "errors":
- if in.IsNull() {
- in.Skip()
- out.Errors = nil
- } else {
- in.Delim('[')
- if out.Errors == nil {
- if !in.IsDelim(']') {
- out.Errors = make([]*AppManifestError, 0, 8)
- } else {
- out.Errors = []*AppManifestError{}
- }
- } else {
- out.Errors = (out.Errors)[:0]
- }
- for !in.IsDelim(']') {
- var v52 *AppManifestError
- if in.IsNull() {
- in.Skip()
- v52 = nil
- } else {
- if v52 == nil {
- v52 = new(AppManifestError)
- }
- (*v52).UnmarshalEasyJSON(in)
- }
- out.Errors = append(out.Errors, v52)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "data":
- out.Data = string(in.String())
- case "manifest":
- if in.IsNull() {
- in.Skip()
- out.Manifest = nil
- } else {
- if out.Manifest == nil {
- out.Manifest = new(WebAppManifest)
- }
- (*out.Manifest).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage63(out *jwriter.Writer, in GetAppManifestReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.URL != "" {
- const prefix string = ",\"url\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- if len(in.Errors) != 0 {
- const prefix string = ",\"errors\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v53, v54 := range in.Errors {
- if v53 > 0 {
- out.RawByte(',')
- }
- if v54 == nil {
- out.RawString("null")
- } else {
- (*v54).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.Data != "" {
- const prefix string = ",\"data\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Data))
- }
- if in.Manifest != nil {
- const prefix string = ",\"manifest\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (*in.Manifest).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetAppManifestReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage63(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage63(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage63(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage63(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage64(in *jlexer.Lexer, out *GetAppManifestParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "manifestId":
- out.ManifestID = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage64(out *jwriter.Writer, in GetAppManifestParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.ManifestID != "" {
- const prefix string = ",\"manifestId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.ManifestID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetAppManifestParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage64(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage64(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage64(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage64(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage65(in *jlexer.Lexer, out *GetAppIDReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "appId":
- out.AppID = string(in.String())
- case "recommendedId":
- out.RecommendedID = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage65(out *jwriter.Writer, in GetAppIDReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.AppID != "" {
- const prefix string = ",\"appId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.AppID))
- }
- if in.RecommendedID != "" {
- const prefix string = ",\"recommendedId\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.RecommendedID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetAppIDReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage65(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetAppIDReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage65(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetAppIDReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage65(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetAppIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage65(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage66(in *jlexer.Lexer, out *GetAppIDParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage66(out *jwriter.Writer, in GetAppIDParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetAppIDParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage66(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetAppIDParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage66(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetAppIDParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage66(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetAppIDParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage66(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage67(in *jlexer.Lexer, out *GetAdScriptIDReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "adScriptId":
- if in.IsNull() {
- in.Skip()
- out.AdScriptID = nil
- } else {
- if out.AdScriptID == nil {
- out.AdScriptID = new(AdScriptID)
- }
- (*out.AdScriptID).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage67(out *jwriter.Writer, in GetAdScriptIDReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.AdScriptID != nil {
- const prefix string = ",\"adScriptId\":"
- first = false
- out.RawString(prefix[1:])
- (*in.AdScriptID).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetAdScriptIDReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage67(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetAdScriptIDReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage67(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetAdScriptIDReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage67(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetAdScriptIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage67(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage68(in *jlexer.Lexer, out *GetAdScriptIDParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage68(out *jwriter.Writer, in GetAdScriptIDParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetAdScriptIDParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage68(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetAdScriptIDParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage68(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetAdScriptIDParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage68(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetAdScriptIDParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage68(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage69(in *jlexer.Lexer, out *GenerateTestReportParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "message":
- out.Message = string(in.String())
- case "group":
- out.Group = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage69(out *jwriter.Writer, in GenerateTestReportParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"message\":"
- out.RawString(prefix[1:])
- out.String(string(in.Message))
- }
- if in.Group != "" {
- const prefix string = ",\"group\":"
- out.RawString(prefix)
- out.String(string(in.Group))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GenerateTestReportParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage69(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GenerateTestReportParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage69(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GenerateTestReportParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage69(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GenerateTestReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage69(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage70(in *jlexer.Lexer, out *FrameTree) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frame":
- if in.IsNull() {
- in.Skip()
- out.Frame = nil
- } else {
- if out.Frame == nil {
- out.Frame = new(cdp.Frame)
- }
- (*out.Frame).UnmarshalEasyJSON(in)
- }
- case "childFrames":
- if in.IsNull() {
- in.Skip()
- out.ChildFrames = nil
- } else {
- in.Delim('[')
- if out.ChildFrames == nil {
- if !in.IsDelim(']') {
- out.ChildFrames = make([]*FrameTree, 0, 8)
- } else {
- out.ChildFrames = []*FrameTree{}
- }
- } else {
- out.ChildFrames = (out.ChildFrames)[:0]
- }
- for !in.IsDelim(']') {
- var v55 *FrameTree
- if in.IsNull() {
- in.Skip()
- v55 = nil
- } else {
- if v55 == nil {
- v55 = new(FrameTree)
- }
- (*v55).UnmarshalEasyJSON(in)
- }
- out.ChildFrames = append(out.ChildFrames, v55)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage70(out *jwriter.Writer, in FrameTree) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frame\":"
- out.RawString(prefix[1:])
- if in.Frame == nil {
- out.RawString("null")
- } else {
- (*in.Frame).MarshalEasyJSON(out)
- }
- }
- if len(in.ChildFrames) != 0 {
- const prefix string = ",\"childFrames\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v56, v57 := range in.ChildFrames {
- if v56 > 0 {
- out.RawByte(',')
- }
- if v57 == nil {
- out.RawString("null")
- } else {
- (*v57).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FrameTree) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage70(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FrameTree) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage70(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FrameTree) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage70(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FrameTree) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage70(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage71(in *jlexer.Lexer, out *FrameResourceTree) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frame":
- if in.IsNull() {
- in.Skip()
- out.Frame = nil
- } else {
- if out.Frame == nil {
- out.Frame = new(cdp.Frame)
- }
- (*out.Frame).UnmarshalEasyJSON(in)
- }
- case "childFrames":
- if in.IsNull() {
- in.Skip()
- out.ChildFrames = nil
- } else {
- in.Delim('[')
- if out.ChildFrames == nil {
- if !in.IsDelim(']') {
- out.ChildFrames = make([]*FrameResourceTree, 0, 8)
- } else {
- out.ChildFrames = []*FrameResourceTree{}
- }
- } else {
- out.ChildFrames = (out.ChildFrames)[:0]
- }
- for !in.IsDelim(']') {
- var v58 *FrameResourceTree
- if in.IsNull() {
- in.Skip()
- v58 = nil
- } else {
- if v58 == nil {
- v58 = new(FrameResourceTree)
- }
- (*v58).UnmarshalEasyJSON(in)
- }
- out.ChildFrames = append(out.ChildFrames, v58)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "resources":
- if in.IsNull() {
- in.Skip()
- out.Resources = nil
- } else {
- in.Delim('[')
- if out.Resources == nil {
- if !in.IsDelim(']') {
- out.Resources = make([]*FrameResource, 0, 8)
- } else {
- out.Resources = []*FrameResource{}
- }
- } else {
- out.Resources = (out.Resources)[:0]
- }
- for !in.IsDelim(']') {
- var v59 *FrameResource
- if in.IsNull() {
- in.Skip()
- v59 = nil
- } else {
- if v59 == nil {
- v59 = new(FrameResource)
- }
- (*v59).UnmarshalEasyJSON(in)
- }
- out.Resources = append(out.Resources, v59)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage71(out *jwriter.Writer, in FrameResourceTree) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frame\":"
- out.RawString(prefix[1:])
- if in.Frame == nil {
- out.RawString("null")
- } else {
- (*in.Frame).MarshalEasyJSON(out)
- }
- }
- if len(in.ChildFrames) != 0 {
- const prefix string = ",\"childFrames\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v60, v61 := range in.ChildFrames {
- if v60 > 0 {
- out.RawByte(',')
- }
- if v61 == nil {
- out.RawString("null")
- } else {
- (*v61).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"resources\":"
- out.RawString(prefix)
- if in.Resources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v62, v63 := range in.Resources {
- if v62 > 0 {
- out.RawByte(',')
- }
- if v63 == nil {
- out.RawString("null")
- } else {
- (*v63).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FrameResourceTree) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage71(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FrameResourceTree) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage71(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FrameResourceTree) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage71(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FrameResourceTree) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage71(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage72(in *jlexer.Lexer, out *FrameResource) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "mimeType":
- out.MimeType = string(in.String())
- case "lastModified":
- if in.IsNull() {
- in.Skip()
- out.LastModified = nil
- } else {
- if out.LastModified == nil {
- out.LastModified = new(cdp.TimeSinceEpoch)
- }
- (*out.LastModified).UnmarshalEasyJSON(in)
- }
- case "contentSize":
- out.ContentSize = float64(in.Float64())
- case "failed":
- out.Failed = bool(in.Bool())
- case "canceled":
- out.Canceled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage72(out *jwriter.Writer, in FrameResource) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"mimeType\":"
- out.RawString(prefix)
- out.String(string(in.MimeType))
- }
- if in.LastModified != nil {
- const prefix string = ",\"lastModified\":"
- out.RawString(prefix)
- (*in.LastModified).MarshalEasyJSON(out)
- }
- if in.ContentSize != 0 {
- const prefix string = ",\"contentSize\":"
- out.RawString(prefix)
- out.Float64(float64(in.ContentSize))
- }
- if in.Failed {
- const prefix string = ",\"failed\":"
- out.RawString(prefix)
- out.Bool(bool(in.Failed))
- }
- if in.Canceled {
- const prefix string = ",\"canceled\":"
- out.RawString(prefix)
- out.Bool(bool(in.Canceled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FrameResource) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage72(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage72(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FrameResource) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage72(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage72(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage73(in *jlexer.Lexer, out *FontSizes) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "standard":
- out.Standard = int64(in.Int64())
- case "fixed":
- out.Fixed = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage73(out *jwriter.Writer, in FontSizes) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Standard != 0 {
- const prefix string = ",\"standard\":"
- first = false
- out.RawString(prefix[1:])
- out.Int64(int64(in.Standard))
- }
- if in.Fixed != 0 {
- const prefix string = ",\"fixed\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.Fixed))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FontSizes) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage73(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FontSizes) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage73(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FontSizes) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage73(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FontSizes) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage73(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage74(in *jlexer.Lexer, out *FontFamilies) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "standard":
- out.Standard = string(in.String())
- case "fixed":
- out.Fixed = string(in.String())
- case "serif":
- out.Serif = string(in.String())
- case "sansSerif":
- out.SansSerif = string(in.String())
- case "cursive":
- out.Cursive = string(in.String())
- case "fantasy":
- out.Fantasy = string(in.String())
- case "math":
- out.Math = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage74(out *jwriter.Writer, in FontFamilies) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Standard != "" {
- const prefix string = ",\"standard\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Standard))
- }
- if in.Fixed != "" {
- const prefix string = ",\"fixed\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Fixed))
- }
- if in.Serif != "" {
- const prefix string = ",\"serif\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Serif))
- }
- if in.SansSerif != "" {
- const prefix string = ",\"sansSerif\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.SansSerif))
- }
- if in.Cursive != "" {
- const prefix string = ",\"cursive\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Cursive))
- }
- if in.Fantasy != "" {
- const prefix string = ",\"fantasy\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Fantasy))
- }
- if in.Math != "" {
- const prefix string = ",\"math\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Math))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FontFamilies) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage74(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FontFamilies) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage74(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FontFamilies) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage74(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FontFamilies) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage74(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage75(in *jlexer.Lexer, out *FileHandler) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "action":
- out.Action = string(in.String())
- case "name":
- out.Name = string(in.String())
- case "icons":
- if in.IsNull() {
- in.Skip()
- out.Icons = nil
- } else {
- in.Delim('[')
- if out.Icons == nil {
- if !in.IsDelim(']') {
- out.Icons = make([]*ImageResource, 0, 8)
- } else {
- out.Icons = []*ImageResource{}
- }
- } else {
- out.Icons = (out.Icons)[:0]
- }
- for !in.IsDelim(']') {
- var v64 *ImageResource
- if in.IsNull() {
- in.Skip()
- v64 = nil
- } else {
- if v64 == nil {
- v64 = new(ImageResource)
- }
- (*v64).UnmarshalEasyJSON(in)
- }
- out.Icons = append(out.Icons, v64)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "accepts":
- if in.IsNull() {
- in.Skip()
- out.Accepts = nil
- } else {
- in.Delim('[')
- if out.Accepts == nil {
- if !in.IsDelim(']') {
- out.Accepts = make([]*FileFilter, 0, 8)
- } else {
- out.Accepts = []*FileFilter{}
- }
- } else {
- out.Accepts = (out.Accepts)[:0]
- }
- for !in.IsDelim(']') {
- var v65 *FileFilter
- if in.IsNull() {
- in.Skip()
- v65 = nil
- } else {
- if v65 == nil {
- v65 = new(FileFilter)
- }
- (*v65).UnmarshalEasyJSON(in)
- }
- out.Accepts = append(out.Accepts, v65)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "launchType":
- out.LaunchType = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage75(out *jwriter.Writer, in FileHandler) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"action\":"
- out.RawString(prefix[1:])
- out.String(string(in.Action))
- }
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix)
- out.String(string(in.Name))
- }
- if len(in.Icons) != 0 {
- const prefix string = ",\"icons\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v66, v67 := range in.Icons {
- if v66 > 0 {
- out.RawByte(',')
- }
- if v67 == nil {
- out.RawString("null")
- } else {
- (*v67).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.Accepts) != 0 {
- const prefix string = ",\"accepts\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v68, v69 := range in.Accepts {
- if v68 > 0 {
- out.RawByte(',')
- }
- if v69 == nil {
- out.RawString("null")
- } else {
- (*v69).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"launchType\":"
- out.RawString(prefix)
- out.String(string(in.LaunchType))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FileHandler) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage75(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FileHandler) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage75(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FileHandler) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage75(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FileHandler) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage75(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage76(in *jlexer.Lexer, out *FileFilter) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "accepts":
- if in.IsNull() {
- in.Skip()
- out.Accepts = nil
- } else {
- in.Delim('[')
- if out.Accepts == nil {
- if !in.IsDelim(']') {
- out.Accepts = make([]string, 0, 4)
- } else {
- out.Accepts = []string{}
- }
- } else {
- out.Accepts = (out.Accepts)[:0]
- }
- for !in.IsDelim(']') {
- var v70 string
- v70 = string(in.String())
- out.Accepts = append(out.Accepts, v70)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage76(out *jwriter.Writer, in FileFilter) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Name != "" {
- const prefix string = ",\"name\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- if len(in.Accepts) != 0 {
- const prefix string = ",\"accepts\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v71, v72 := range in.Accepts {
- if v71 > 0 {
- out.RawByte(',')
- }
- out.String(string(v72))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FileFilter) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage76(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FileFilter) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage76(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FileFilter) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage76(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FileFilter) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage76(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage77(in *jlexer.Lexer, out *EventWindowOpen) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "windowName":
- out.WindowName = string(in.String())
- case "windowFeatures":
- if in.IsNull() {
- in.Skip()
- out.WindowFeatures = nil
- } else {
- in.Delim('[')
- if out.WindowFeatures == nil {
- if !in.IsDelim(']') {
- out.WindowFeatures = make([]string, 0, 4)
- } else {
- out.WindowFeatures = []string{}
- }
- } else {
- out.WindowFeatures = (out.WindowFeatures)[:0]
- }
- for !in.IsDelim(']') {
- var v73 string
- v73 = string(in.String())
- out.WindowFeatures = append(out.WindowFeatures, v73)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "userGesture":
- out.UserGesture = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage77(out *jwriter.Writer, in EventWindowOpen) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"windowName\":"
- out.RawString(prefix)
- out.String(string(in.WindowName))
- }
- {
- const prefix string = ",\"windowFeatures\":"
- out.RawString(prefix)
- if in.WindowFeatures == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v74, v75 := range in.WindowFeatures {
- if v74 > 0 {
- out.RawByte(',')
- }
- out.String(string(v75))
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"userGesture\":"
- out.RawString(prefix)
- out.Bool(bool(in.UserGesture))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventWindowOpen) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage77(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventWindowOpen) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage77(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventWindowOpen) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage77(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventWindowOpen) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage77(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage78(in *jlexer.Lexer, out *EventScreencastVisibilityChanged) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "visible":
- out.Visible = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage78(out *jwriter.Writer, in EventScreencastVisibilityChanged) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"visible\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Visible))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage78(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage78(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage78(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage78(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage79(in *jlexer.Lexer, out *EventScreencastFrame) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "data":
- out.Data = string(in.String())
- case "metadata":
- if in.IsNull() {
- in.Skip()
- out.Metadata = nil
- } else {
- if out.Metadata == nil {
- out.Metadata = new(ScreencastFrameMetadata)
- }
- (*out.Metadata).UnmarshalEasyJSON(in)
- }
- case "sessionId":
- out.SessionID = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage79(out *jwriter.Writer, in EventScreencastFrame) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"data\":"
- out.RawString(prefix[1:])
- out.String(string(in.Data))
- }
- {
- const prefix string = ",\"metadata\":"
- out.RawString(prefix)
- if in.Metadata == nil {
- out.RawString("null")
- } else {
- (*in.Metadata).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"sessionId\":"
- out.RawString(prefix)
- out.Int64(int64(in.SessionID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventScreencastFrame) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage79(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventScreencastFrame) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage79(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventScreencastFrame) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage79(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventScreencastFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage79(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage80(in *jlexer.Lexer, out *EventNavigatedWithinDocument) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "url":
- out.URL = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage80(out *jwriter.Writer, in EventNavigatedWithinDocument) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventNavigatedWithinDocument) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage80(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventNavigatedWithinDocument) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage80(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventNavigatedWithinDocument) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage80(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventNavigatedWithinDocument) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage80(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage81(in *jlexer.Lexer, out *EventLoadEventFired) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage81(out *jwriter.Writer, in EventLoadEventFired) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix[1:])
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventLoadEventFired) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage81(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage81(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage81(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage81(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage82(in *jlexer.Lexer, out *EventLifecycleEvent) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "loaderId":
- out.LoaderID = cdp.LoaderID(in.String())
- case "name":
- out.Name = string(in.String())
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage82(out *jwriter.Writer, in EventLifecycleEvent) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"loaderId\":"
- out.RawString(prefix)
- out.String(string(in.LoaderID))
- }
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix)
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix)
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventLifecycleEvent) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage82(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventLifecycleEvent) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage82(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventLifecycleEvent) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage82(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventLifecycleEvent) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage82(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage83(in *jlexer.Lexer, out *EventJavascriptDialogOpening) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "message":
- out.Message = string(in.String())
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "hasBrowserHandler":
- out.HasBrowserHandler = bool(in.Bool())
- case "defaultPrompt":
- out.DefaultPrompt = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage83(out *jwriter.Writer, in EventJavascriptDialogOpening) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"message\":"
- out.RawString(prefix)
- out.String(string(in.Message))
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"hasBrowserHandler\":"
- out.RawString(prefix)
- out.Bool(bool(in.HasBrowserHandler))
- }
- if in.DefaultPrompt != "" {
- const prefix string = ",\"defaultPrompt\":"
- out.RawString(prefix)
- out.String(string(in.DefaultPrompt))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventJavascriptDialogOpening) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage83(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventJavascriptDialogOpening) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage83(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventJavascriptDialogOpening) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage83(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventJavascriptDialogOpening) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage83(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage84(in *jlexer.Lexer, out *EventJavascriptDialogClosed) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "result":
- out.Result = bool(in.Bool())
- case "userInput":
- out.UserInput = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage84(out *jwriter.Writer, in EventJavascriptDialogClosed) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"result\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Result))
- }
- {
- const prefix string = ",\"userInput\":"
- out.RawString(prefix)
- out.String(string(in.UserInput))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventJavascriptDialogClosed) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage84(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage84(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage84(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage84(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage85(in *jlexer.Lexer, out *EventInterstitialShown) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage85(out *jwriter.Writer, in EventInterstitialShown) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventInterstitialShown) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage85(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage85(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage85(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage85(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage86(in *jlexer.Lexer, out *EventInterstitialHidden) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage86(out *jwriter.Writer, in EventInterstitialHidden) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventInterstitialHidden) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage86(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventInterstitialHidden) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage86(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventInterstitialHidden) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage86(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventInterstitialHidden) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage86(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage87(in *jlexer.Lexer, out *EventFrameStoppedLoading) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage87(out *jwriter.Writer, in EventFrameStoppedLoading) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFrameStoppedLoading) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage87(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage87(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage87(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage87(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage88(in *jlexer.Lexer, out *EventFrameStartedLoading) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage88(out *jwriter.Writer, in EventFrameStartedLoading) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage88(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage88(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage88(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage88(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(in *jlexer.Lexer, out *EventFrameResized) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage89(out *jwriter.Writer, in EventFrameResized) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFrameResized) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage89(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage89(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFrameResized) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(in *jlexer.Lexer, out *EventFrameRequestedNavigation) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "reason":
- (out.Reason).UnmarshalEasyJSON(in)
- case "url":
- out.URL = string(in.String())
- case "disposition":
- (out.Disposition).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage90(out *jwriter.Writer, in EventFrameRequestedNavigation) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"reason\":"
- out.RawString(prefix)
- (in.Reason).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix)
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"disposition\":"
- out.RawString(prefix)
- (in.Disposition).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFrameRequestedNavigation) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage90(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFrameRequestedNavigation) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage90(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFrameRequestedNavigation) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFrameRequestedNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(in *jlexer.Lexer, out *EventFrameNavigated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frame":
- if in.IsNull() {
- in.Skip()
- out.Frame = nil
- } else {
- if out.Frame == nil {
- out.Frame = new(cdp.Frame)
- }
- (*out.Frame).UnmarshalEasyJSON(in)
- }
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(out *jwriter.Writer, in EventFrameNavigated) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frame\":"
- out.RawString(prefix[1:])
- if in.Frame == nil {
- out.RawString("null")
- } else {
- (*in.Frame).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix)
- (in.Type).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFrameNavigated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(in *jlexer.Lexer, out *EventFrameDetached) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "reason":
- (out.Reason).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(out *jwriter.Writer, in EventFrameDetached) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"reason\":"
- out.RawString(prefix)
- (in.Reason).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFrameDetached) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFrameDetached) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(in *jlexer.Lexer, out *EventFrameAttached) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "parentFrameId":
- (out.ParentFrameID).UnmarshalEasyJSON(in)
- case "stack":
- if in.IsNull() {
- in.Skip()
- out.Stack = nil
- } else {
- if out.Stack == nil {
- out.Stack = new(runtime.StackTrace)
- }
- (*out.Stack).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(out *jwriter.Writer, in EventFrameAttached) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"parentFrameId\":"
- out.RawString(prefix)
- out.String(string(in.ParentFrameID))
- }
- if in.Stack != nil {
- const prefix string = ",\"stack\":"
- out.RawString(prefix)
- (*in.Stack).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFrameAttached) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFrameAttached) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(in *jlexer.Lexer, out *EventFileChooserOpened) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "mode":
- (out.Mode).UnmarshalEasyJSON(in)
- case "backendNodeId":
- (out.BackendNodeID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(out *jwriter.Writer, in EventFileChooserOpened) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"mode\":"
- out.RawString(prefix)
- (in.Mode).MarshalEasyJSON(out)
- }
- if in.BackendNodeID != 0 {
- const prefix string = ",\"backendNodeId\":"
- out.RawString(prefix)
- out.Int64(int64(in.BackendNodeID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFileChooserOpened) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFileChooserOpened) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFileChooserOpened) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFileChooserOpened) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(in *jlexer.Lexer, out *EventDomContentEventFired) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "timestamp":
- if in.IsNull() {
- in.Skip()
- out.Timestamp = nil
- } else {
- if out.Timestamp == nil {
- out.Timestamp = new(cdp.MonotonicTime)
- }
- (*out.Timestamp).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(out *jwriter.Writer, in EventDomContentEventFired) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"timestamp\":"
- out.RawString(prefix[1:])
- if in.Timestamp == nil {
- out.RawString("null")
- } else {
- (*in.Timestamp).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventDomContentEventFired) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(in *jlexer.Lexer, out *EventDocumentOpened) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frame":
- if in.IsNull() {
- in.Skip()
- out.Frame = nil
- } else {
- if out.Frame == nil {
- out.Frame = new(cdp.Frame)
- }
- (*out.Frame).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(out *jwriter.Writer, in EventDocumentOpened) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frame\":"
- out.RawString(prefix[1:])
- if in.Frame == nil {
- out.RawString("null")
- } else {
- (*in.Frame).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventDocumentOpened) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventDocumentOpened) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventDocumentOpened) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventDocumentOpened) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(in *jlexer.Lexer, out *EventCompilationCacheProduced) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "data":
- out.Data = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(out *jwriter.Writer, in EventCompilationCacheProduced) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"data\":"
- out.RawString(prefix)
- out.String(string(in.Data))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventCompilationCacheProduced) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventCompilationCacheProduced) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventCompilationCacheProduced) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventCompilationCacheProduced) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(in *jlexer.Lexer, out *EventBackForwardCacheNotUsed) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "loaderId":
- out.LoaderID = cdp.LoaderID(in.String())
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "notRestoredExplanations":
- if in.IsNull() {
- in.Skip()
- out.NotRestoredExplanations = nil
- } else {
- in.Delim('[')
- if out.NotRestoredExplanations == nil {
- if !in.IsDelim(']') {
- out.NotRestoredExplanations = make([]*BackForwardCacheNotRestoredExplanation, 0, 8)
- } else {
- out.NotRestoredExplanations = []*BackForwardCacheNotRestoredExplanation{}
- }
- } else {
- out.NotRestoredExplanations = (out.NotRestoredExplanations)[:0]
- }
- for !in.IsDelim(']') {
- var v76 *BackForwardCacheNotRestoredExplanation
- if in.IsNull() {
- in.Skip()
- v76 = nil
- } else {
- if v76 == nil {
- v76 = new(BackForwardCacheNotRestoredExplanation)
- }
- (*v76).UnmarshalEasyJSON(in)
- }
- out.NotRestoredExplanations = append(out.NotRestoredExplanations, v76)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "notRestoredExplanationsTree":
- if in.IsNull() {
- in.Skip()
- out.NotRestoredExplanationsTree = nil
- } else {
- if out.NotRestoredExplanationsTree == nil {
- out.NotRestoredExplanationsTree = new(BackForwardCacheNotRestoredExplanationTree)
- }
- (*out.NotRestoredExplanationsTree).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(out *jwriter.Writer, in EventBackForwardCacheNotUsed) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"loaderId\":"
- out.RawString(prefix[1:])
- out.String(string(in.LoaderID))
- }
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix)
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"notRestoredExplanations\":"
- out.RawString(prefix)
- if in.NotRestoredExplanations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v77, v78 := range in.NotRestoredExplanations {
- if v77 > 0 {
- out.RawByte(',')
- }
- if v78 == nil {
- out.RawString("null")
- } else {
- (*v78).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.NotRestoredExplanationsTree != nil {
- const prefix string = ",\"notRestoredExplanationsTree\":"
- out.RawString(prefix)
- (*in.NotRestoredExplanationsTree).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventBackForwardCacheNotUsed) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventBackForwardCacheNotUsed) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventBackForwardCacheNotUsed) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventBackForwardCacheNotUsed) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(in *jlexer.Lexer, out *EnableParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(out *jwriter.Writer, in EnableParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EnableParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EnableParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(in *jlexer.Lexer, out *DisableParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(out *jwriter.Writer, in DisableParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v DisableParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *DisableParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(in *jlexer.Lexer, out *CreateIsolatedWorldReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "executionContextId":
- out.ExecutionContextID = runtime.ExecutionContextID(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(out *jwriter.Writer, in CreateIsolatedWorldReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.ExecutionContextID != 0 {
- const prefix string = ",\"executionContextId\":"
- first = false
- out.RawString(prefix[1:])
- out.Int64(int64(in.ExecutionContextID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CreateIsolatedWorldReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CreateIsolatedWorldReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CreateIsolatedWorldReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CreateIsolatedWorldReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(in *jlexer.Lexer, out *CreateIsolatedWorldParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "worldName":
- out.WorldName = string(in.String())
- case "grantUniveralAccess":
- out.GrantUniveralAccess = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(out *jwriter.Writer, in CreateIsolatedWorldParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- if in.WorldName != "" {
- const prefix string = ",\"worldName\":"
- out.RawString(prefix)
- out.String(string(in.WorldName))
- }
- if in.GrantUniveralAccess {
- const prefix string = ",\"grantUniveralAccess\":"
- out.RawString(prefix)
- out.Bool(bool(in.GrantUniveralAccess))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CreateIsolatedWorldParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CreateIsolatedWorldParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CreateIsolatedWorldParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CreateIsolatedWorldParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(in *jlexer.Lexer, out *CrashParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(out *jwriter.Writer, in CrashParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CrashParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CrashParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CrashParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CrashParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(in *jlexer.Lexer, out *CompilationCacheParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "eager":
- out.Eager = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(out *jwriter.Writer, in CompilationCacheParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- if in.Eager {
- const prefix string = ",\"eager\":"
- out.RawString(prefix)
- out.Bool(bool(in.Eager))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CompilationCacheParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CompilationCacheParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(in *jlexer.Lexer, out *CloseParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(out *jwriter.Writer, in CloseParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CloseParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CloseParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(in *jlexer.Lexer, out *ClearCompilationCacheParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(out *jwriter.Writer, in ClearCompilationCacheParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ClearCompilationCacheParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ClearCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ClearCompilationCacheParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ClearCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(in *jlexer.Lexer, out *CaptureSnapshotReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "data":
- out.Data = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(out *jwriter.Writer, in CaptureSnapshotReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Data != "" {
- const prefix string = ",\"data\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Data))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CaptureSnapshotReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CaptureSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CaptureSnapshotReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CaptureSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(in *jlexer.Lexer, out *CaptureSnapshotParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "format":
- (out.Format).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(out *jwriter.Writer, in CaptureSnapshotParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Format != "" {
- const prefix string = ",\"format\":"
- first = false
- out.RawString(prefix[1:])
- (in.Format).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CaptureSnapshotParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CaptureSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CaptureSnapshotParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CaptureSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(in *jlexer.Lexer, out *CaptureScreenshotReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "data":
- out.Data = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(out *jwriter.Writer, in CaptureScreenshotReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Data != "" {
- const prefix string = ",\"data\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Data))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CaptureScreenshotReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(in *jlexer.Lexer, out *CaptureScreenshotParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "format":
- (out.Format).UnmarshalEasyJSON(in)
- case "quality":
- out.Quality = int64(in.Int64())
- case "clip":
- if in.IsNull() {
- in.Skip()
- out.Clip = nil
- } else {
- if out.Clip == nil {
- out.Clip = new(Viewport)
- }
- (*out.Clip).UnmarshalEasyJSON(in)
- }
- case "fromSurface":
- out.FromSurface = bool(in.Bool())
- case "captureBeyondViewport":
- out.CaptureBeyondViewport = bool(in.Bool())
- case "optimizeForSpeed":
- out.OptimizeForSpeed = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(out *jwriter.Writer, in CaptureScreenshotParams) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Format != "" {
- const prefix string = ",\"format\":"
- first = false
- out.RawString(prefix[1:])
- (in.Format).MarshalEasyJSON(out)
- }
- if in.Quality != 0 {
- const prefix string = ",\"quality\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.Quality))
- }
- if in.Clip != nil {
- const prefix string = ",\"clip\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (*in.Clip).MarshalEasyJSON(out)
- }
- if in.FromSurface {
- const prefix string = ",\"fromSurface\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.FromSurface))
- }
- if in.CaptureBeyondViewport {
- const prefix string = ",\"captureBeyondViewport\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.CaptureBeyondViewport))
- }
- if in.OptimizeForSpeed {
- const prefix string = ",\"optimizeForSpeed\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Bool(bool(in.OptimizeForSpeed))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(in *jlexer.Lexer, out *BringToFrontParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(out *jwriter.Writer, in BringToFrontParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v BringToFrontParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v BringToFrontParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *BringToFrontParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *BringToFrontParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(in *jlexer.Lexer, out *BackForwardCacheNotRestoredExplanationTree) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "explanations":
- if in.IsNull() {
- in.Skip()
- out.Explanations = nil
- } else {
- in.Delim('[')
- if out.Explanations == nil {
- if !in.IsDelim(']') {
- out.Explanations = make([]*BackForwardCacheNotRestoredExplanation, 0, 8)
- } else {
- out.Explanations = []*BackForwardCacheNotRestoredExplanation{}
- }
- } else {
- out.Explanations = (out.Explanations)[:0]
- }
- for !in.IsDelim(']') {
- var v79 *BackForwardCacheNotRestoredExplanation
- if in.IsNull() {
- in.Skip()
- v79 = nil
- } else {
- if v79 == nil {
- v79 = new(BackForwardCacheNotRestoredExplanation)
- }
- (*v79).UnmarshalEasyJSON(in)
- }
- out.Explanations = append(out.Explanations, v79)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "children":
- if in.IsNull() {
- in.Skip()
- out.Children = nil
- } else {
- in.Delim('[')
- if out.Children == nil {
- if !in.IsDelim(']') {
- out.Children = make([]*BackForwardCacheNotRestoredExplanationTree, 0, 8)
- } else {
- out.Children = []*BackForwardCacheNotRestoredExplanationTree{}
- }
- } else {
- out.Children = (out.Children)[:0]
- }
- for !in.IsDelim(']') {
- var v80 *BackForwardCacheNotRestoredExplanationTree
- if in.IsNull() {
- in.Skip()
- v80 = nil
- } else {
- if v80 == nil {
- v80 = new(BackForwardCacheNotRestoredExplanationTree)
- }
- (*v80).UnmarshalEasyJSON(in)
- }
- out.Children = append(out.Children, v80)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(out *jwriter.Writer, in BackForwardCacheNotRestoredExplanationTree) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"explanations\":"
- out.RawString(prefix)
- if in.Explanations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v81, v82 := range in.Explanations {
- if v81 > 0 {
- out.RawByte(',')
- }
- if v82 == nil {
- out.RawString("null")
- } else {
- (*v82).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"children\":"
- out.RawString(prefix)
- if in.Children == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v83, v84 := range in.Children {
- if v83 > 0 {
- out.RawByte(',')
- }
- if v84 == nil {
- out.RawString("null")
- } else {
- (*v84).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v BackForwardCacheNotRestoredExplanationTree) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v BackForwardCacheNotRestoredExplanationTree) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *BackForwardCacheNotRestoredExplanationTree) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *BackForwardCacheNotRestoredExplanationTree) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(in *jlexer.Lexer, out *BackForwardCacheNotRestoredExplanation) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "type":
- (out.Type).UnmarshalEasyJSON(in)
- case "reason":
- (out.Reason).UnmarshalEasyJSON(in)
- case "context":
- out.Context = string(in.String())
- case "details":
- if in.IsNull() {
- in.Skip()
- out.Details = nil
- } else {
- in.Delim('[')
- if out.Details == nil {
- if !in.IsDelim(']') {
- out.Details = make([]*BackForwardCacheBlockingDetails, 0, 8)
- } else {
- out.Details = []*BackForwardCacheBlockingDetails{}
- }
- } else {
- out.Details = (out.Details)[:0]
- }
- for !in.IsDelim(']') {
- var v85 *BackForwardCacheBlockingDetails
- if in.IsNull() {
- in.Skip()
- v85 = nil
- } else {
- if v85 == nil {
- v85 = new(BackForwardCacheBlockingDetails)
- }
- (*v85).UnmarshalEasyJSON(in)
- }
- out.Details = append(out.Details, v85)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(out *jwriter.Writer, in BackForwardCacheNotRestoredExplanation) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"type\":"
- out.RawString(prefix[1:])
- (in.Type).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"reason\":"
- out.RawString(prefix)
- (in.Reason).MarshalEasyJSON(out)
- }
- if in.Context != "" {
- const prefix string = ",\"context\":"
- out.RawString(prefix)
- out.String(string(in.Context))
- }
- if len(in.Details) != 0 {
- const prefix string = ",\"details\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v86, v87 := range in.Details {
- if v86 > 0 {
- out.RawByte(',')
- }
- if v87 == nil {
- out.RawString("null")
- } else {
- (*v87).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v BackForwardCacheNotRestoredExplanation) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v BackForwardCacheNotRestoredExplanation) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *BackForwardCacheNotRestoredExplanation) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *BackForwardCacheNotRestoredExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(in *jlexer.Lexer, out *BackForwardCacheBlockingDetails) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "function":
- out.Function = string(in.String())
- case "lineNumber":
- out.LineNumber = int64(in.Int64())
- case "columnNumber":
- out.ColumnNumber = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(out *jwriter.Writer, in BackForwardCacheBlockingDetails) {
- out.RawByte('{')
- first := true
- _ = first
- if in.URL != "" {
- const prefix string = ",\"url\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- if in.Function != "" {
- const prefix string = ",\"function\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.Function))
- }
- {
- const prefix string = ",\"lineNumber\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.LineNumber))
- }
- {
- const prefix string = ",\"columnNumber\":"
- out.RawString(prefix)
- out.Int64(int64(in.ColumnNumber))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v BackForwardCacheBlockingDetails) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v BackForwardCacheBlockingDetails) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *BackForwardCacheBlockingDetails) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *BackForwardCacheBlockingDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(in *jlexer.Lexer, out *AppManifestParsedProperties) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "scope":
- out.Scope = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(out *jwriter.Writer, in AppManifestParsedProperties) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"scope\":"
- out.RawString(prefix[1:])
- out.String(string(in.Scope))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AppManifestParsedProperties) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AppManifestParsedProperties) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AppManifestParsedProperties) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AppManifestParsedProperties) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(in *jlexer.Lexer, out *AppManifestError) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "message":
- out.Message = string(in.String())
- case "critical":
- out.Critical = int64(in.Int64())
- case "line":
- out.Line = int64(in.Int64())
- case "column":
- out.Column = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(out *jwriter.Writer, in AppManifestError) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"message\":"
- out.RawString(prefix[1:])
- out.String(string(in.Message))
- }
- {
- const prefix string = ",\"critical\":"
- out.RawString(prefix)
- out.Int64(int64(in.Critical))
- }
- {
- const prefix string = ",\"line\":"
- out.RawString(prefix)
- out.Int64(int64(in.Line))
- }
- {
- const prefix string = ",\"column\":"
- out.RawString(prefix)
- out.Int64(int64(in.Column))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AppManifestError) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AppManifestError) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "identifier":
- out.Identifier = ScriptIdentifier(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Identifier != "" {
- const prefix string = ",\"identifier\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Identifier))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "source":
- out.Source = string(in.String())
- case "worldName":
- out.WorldName = string(in.String())
- case "includeCommandLineAPI":
- out.IncludeCommandLineAPI = bool(in.Bool())
- case "runImmediately":
- out.RunImmediately = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"source\":"
- out.RawString(prefix[1:])
- out.String(string(in.Source))
- }
- if in.WorldName != "" {
- const prefix string = ",\"worldName\":"
- out.RawString(prefix)
- out.String(string(in.WorldName))
- }
- if in.IncludeCommandLineAPI {
- const prefix string = ",\"includeCommandLineAPI\":"
- out.RawString(prefix)
- out.Bool(bool(in.IncludeCommandLineAPI))
- }
- if in.RunImmediately {
- const prefix string = ",\"runImmediately\":"
- out.RawString(prefix)
- out.Bool(bool(in.RunImmediately))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AddScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AddScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(in *jlexer.Lexer, out *AddCompilationCacheParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "url":
- out.URL = string(in.String())
- case "data":
- out.Data = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(out *jwriter.Writer, in AddCompilationCacheParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"url\":"
- out.RawString(prefix[1:])
- out.String(string(in.URL))
- }
- {
- const prefix string = ",\"data\":"
- out.RawString(prefix)
- out.String(string(in.Data))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AddCompilationCacheParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AddCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AddCompilationCacheParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AddCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(in *jlexer.Lexer, out *AdScriptID) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "scriptId":
- out.ScriptID = runtime.ScriptID(in.String())
- case "debuggerId":
- out.DebuggerID = runtime.UniqueDebuggerID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(out *jwriter.Writer, in AdScriptID) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"scriptId\":"
- out.RawString(prefix[1:])
- out.String(string(in.ScriptID))
- }
- {
- const prefix string = ",\"debuggerId\":"
- out.RawString(prefix)
- out.String(string(in.DebuggerID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AdScriptID) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AdScriptID) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AdScriptID) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AdScriptID) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(l, v)
- }
|