easyjson.go 182 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package dom
  3. import (
  4. json "encoding/json"
  5. cdp "github.com/chromedp/cdproto/cdp"
  6. runtime "github.com/chromedp/cdproto/runtime"
  7. easyjson "github.com/mailru/easyjson"
  8. jlexer "github.com/mailru/easyjson/jlexer"
  9. jwriter "github.com/mailru/easyjson/jwriter"
  10. )
  11. // suppress unused package warning
  12. var (
  13. _ *json.RawMessage
  14. _ *jlexer.Lexer
  15. _ *jwriter.Writer
  16. _ easyjson.Marshaler
  17. )
  18. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom(in *jlexer.Lexer, out *UndoParams) {
  19. isTopLevel := in.IsStart()
  20. if in.IsNull() {
  21. if isTopLevel {
  22. in.Consumed()
  23. }
  24. in.Skip()
  25. return
  26. }
  27. in.Delim('{')
  28. for !in.IsDelim('}') {
  29. key := in.UnsafeFieldName(false)
  30. in.WantColon()
  31. if in.IsNull() {
  32. in.Skip()
  33. in.WantComma()
  34. continue
  35. }
  36. switch key {
  37. default:
  38. in.SkipRecursive()
  39. }
  40. in.WantComma()
  41. }
  42. in.Delim('}')
  43. if isTopLevel {
  44. in.Consumed()
  45. }
  46. }
  47. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom(out *jwriter.Writer, in UndoParams) {
  48. out.RawByte('{')
  49. first := true
  50. _ = first
  51. out.RawByte('}')
  52. }
  53. // MarshalJSON supports json.Marshaler interface
  54. func (v UndoParams) MarshalJSON() ([]byte, error) {
  55. w := jwriter.Writer{}
  56. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom(&w, v)
  57. return w.Buffer.BuildBytes(), w.Error
  58. }
  59. // MarshalEasyJSON supports easyjson.Marshaler interface
  60. func (v UndoParams) MarshalEasyJSON(w *jwriter.Writer) {
  61. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom(w, v)
  62. }
  63. // UnmarshalJSON supports json.Unmarshaler interface
  64. func (v *UndoParams) UnmarshalJSON(data []byte) error {
  65. r := jlexer.Lexer{Data: data}
  66. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom(&r, v)
  67. return r.Error()
  68. }
  69. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  70. func (v *UndoParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  71. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom(l, v)
  72. }
  73. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom1(in *jlexer.Lexer, out *ShapeOutsideInfo) {
  74. isTopLevel := in.IsStart()
  75. if in.IsNull() {
  76. if isTopLevel {
  77. in.Consumed()
  78. }
  79. in.Skip()
  80. return
  81. }
  82. in.Delim('{')
  83. for !in.IsDelim('}') {
  84. key := in.UnsafeFieldName(false)
  85. in.WantColon()
  86. if in.IsNull() {
  87. in.Skip()
  88. in.WantComma()
  89. continue
  90. }
  91. switch key {
  92. case "bounds":
  93. if in.IsNull() {
  94. in.Skip()
  95. out.Bounds = nil
  96. } else {
  97. in.Delim('[')
  98. if out.Bounds == nil {
  99. if !in.IsDelim(']') {
  100. out.Bounds = make(Quad, 0, 8)
  101. } else {
  102. out.Bounds = Quad{}
  103. }
  104. } else {
  105. out.Bounds = (out.Bounds)[:0]
  106. }
  107. for !in.IsDelim(']') {
  108. var v1 float64
  109. v1 = float64(in.Float64())
  110. out.Bounds = append(out.Bounds, v1)
  111. in.WantComma()
  112. }
  113. in.Delim(']')
  114. }
  115. case "shape":
  116. if in.IsNull() {
  117. in.Skip()
  118. out.Shape = nil
  119. } else {
  120. in.Delim('[')
  121. if out.Shape == nil {
  122. if !in.IsDelim(']') {
  123. out.Shape = make([]easyjson.RawMessage, 0, 2)
  124. } else {
  125. out.Shape = []easyjson.RawMessage{}
  126. }
  127. } else {
  128. out.Shape = (out.Shape)[:0]
  129. }
  130. for !in.IsDelim(']') {
  131. var v2 easyjson.RawMessage
  132. (v2).UnmarshalEasyJSON(in)
  133. out.Shape = append(out.Shape, v2)
  134. in.WantComma()
  135. }
  136. in.Delim(']')
  137. }
  138. case "marginShape":
  139. if in.IsNull() {
  140. in.Skip()
  141. out.MarginShape = nil
  142. } else {
  143. in.Delim('[')
  144. if out.MarginShape == nil {
  145. if !in.IsDelim(']') {
  146. out.MarginShape = make([]easyjson.RawMessage, 0, 2)
  147. } else {
  148. out.MarginShape = []easyjson.RawMessage{}
  149. }
  150. } else {
  151. out.MarginShape = (out.MarginShape)[:0]
  152. }
  153. for !in.IsDelim(']') {
  154. var v3 easyjson.RawMessage
  155. (v3).UnmarshalEasyJSON(in)
  156. out.MarginShape = append(out.MarginShape, v3)
  157. in.WantComma()
  158. }
  159. in.Delim(']')
  160. }
  161. default:
  162. in.SkipRecursive()
  163. }
  164. in.WantComma()
  165. }
  166. in.Delim('}')
  167. if isTopLevel {
  168. in.Consumed()
  169. }
  170. }
  171. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom1(out *jwriter.Writer, in ShapeOutsideInfo) {
  172. out.RawByte('{')
  173. first := true
  174. _ = first
  175. {
  176. const prefix string = ",\"bounds\":"
  177. out.RawString(prefix[1:])
  178. if in.Bounds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  179. out.RawString("null")
  180. } else {
  181. out.RawByte('[')
  182. for v4, v5 := range in.Bounds {
  183. if v4 > 0 {
  184. out.RawByte(',')
  185. }
  186. out.Float64(float64(v5))
  187. }
  188. out.RawByte(']')
  189. }
  190. }
  191. {
  192. const prefix string = ",\"shape\":"
  193. out.RawString(prefix)
  194. if in.Shape == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  195. out.RawString("null")
  196. } else {
  197. out.RawByte('[')
  198. for v6, v7 := range in.Shape {
  199. if v6 > 0 {
  200. out.RawByte(',')
  201. }
  202. (v7).MarshalEasyJSON(out)
  203. }
  204. out.RawByte(']')
  205. }
  206. }
  207. {
  208. const prefix string = ",\"marginShape\":"
  209. out.RawString(prefix)
  210. if in.MarginShape == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  211. out.RawString("null")
  212. } else {
  213. out.RawByte('[')
  214. for v8, v9 := range in.MarginShape {
  215. if v8 > 0 {
  216. out.RawByte(',')
  217. }
  218. (v9).MarshalEasyJSON(out)
  219. }
  220. out.RawByte(']')
  221. }
  222. }
  223. out.RawByte('}')
  224. }
  225. // MarshalJSON supports json.Marshaler interface
  226. func (v ShapeOutsideInfo) MarshalJSON() ([]byte, error) {
  227. w := jwriter.Writer{}
  228. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom1(&w, v)
  229. return w.Buffer.BuildBytes(), w.Error
  230. }
  231. // MarshalEasyJSON supports easyjson.Marshaler interface
  232. func (v ShapeOutsideInfo) MarshalEasyJSON(w *jwriter.Writer) {
  233. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom1(w, v)
  234. }
  235. // UnmarshalJSON supports json.Unmarshaler interface
  236. func (v *ShapeOutsideInfo) UnmarshalJSON(data []byte) error {
  237. r := jlexer.Lexer{Data: data}
  238. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom1(&r, v)
  239. return r.Error()
  240. }
  241. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  242. func (v *ShapeOutsideInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
  243. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom1(l, v)
  244. }
  245. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom2(in *jlexer.Lexer, out *SetOuterHTMLParams) {
  246. isTopLevel := in.IsStart()
  247. if in.IsNull() {
  248. if isTopLevel {
  249. in.Consumed()
  250. }
  251. in.Skip()
  252. return
  253. }
  254. in.Delim('{')
  255. for !in.IsDelim('}') {
  256. key := in.UnsafeFieldName(false)
  257. in.WantColon()
  258. if in.IsNull() {
  259. in.Skip()
  260. in.WantComma()
  261. continue
  262. }
  263. switch key {
  264. case "nodeId":
  265. (out.NodeID).UnmarshalEasyJSON(in)
  266. case "outerHTML":
  267. out.OuterHTML = string(in.String())
  268. default:
  269. in.SkipRecursive()
  270. }
  271. in.WantComma()
  272. }
  273. in.Delim('}')
  274. if isTopLevel {
  275. in.Consumed()
  276. }
  277. }
  278. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom2(out *jwriter.Writer, in SetOuterHTMLParams) {
  279. out.RawByte('{')
  280. first := true
  281. _ = first
  282. {
  283. const prefix string = ",\"nodeId\":"
  284. out.RawString(prefix[1:])
  285. out.Int64(int64(in.NodeID))
  286. }
  287. {
  288. const prefix string = ",\"outerHTML\":"
  289. out.RawString(prefix)
  290. out.String(string(in.OuterHTML))
  291. }
  292. out.RawByte('}')
  293. }
  294. // MarshalJSON supports json.Marshaler interface
  295. func (v SetOuterHTMLParams) MarshalJSON() ([]byte, error) {
  296. w := jwriter.Writer{}
  297. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom2(&w, v)
  298. return w.Buffer.BuildBytes(), w.Error
  299. }
  300. // MarshalEasyJSON supports easyjson.Marshaler interface
  301. func (v SetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer) {
  302. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom2(w, v)
  303. }
  304. // UnmarshalJSON supports json.Unmarshaler interface
  305. func (v *SetOuterHTMLParams) UnmarshalJSON(data []byte) error {
  306. r := jlexer.Lexer{Data: data}
  307. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom2(&r, v)
  308. return r.Error()
  309. }
  310. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  311. func (v *SetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  312. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom2(l, v)
  313. }
  314. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom3(in *jlexer.Lexer, out *SetNodeValueParams) {
  315. isTopLevel := in.IsStart()
  316. if in.IsNull() {
  317. if isTopLevel {
  318. in.Consumed()
  319. }
  320. in.Skip()
  321. return
  322. }
  323. in.Delim('{')
  324. for !in.IsDelim('}') {
  325. key := in.UnsafeFieldName(false)
  326. in.WantColon()
  327. if in.IsNull() {
  328. in.Skip()
  329. in.WantComma()
  330. continue
  331. }
  332. switch key {
  333. case "nodeId":
  334. (out.NodeID).UnmarshalEasyJSON(in)
  335. case "value":
  336. out.Value = string(in.String())
  337. default:
  338. in.SkipRecursive()
  339. }
  340. in.WantComma()
  341. }
  342. in.Delim('}')
  343. if isTopLevel {
  344. in.Consumed()
  345. }
  346. }
  347. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom3(out *jwriter.Writer, in SetNodeValueParams) {
  348. out.RawByte('{')
  349. first := true
  350. _ = first
  351. {
  352. const prefix string = ",\"nodeId\":"
  353. out.RawString(prefix[1:])
  354. out.Int64(int64(in.NodeID))
  355. }
  356. {
  357. const prefix string = ",\"value\":"
  358. out.RawString(prefix)
  359. out.String(string(in.Value))
  360. }
  361. out.RawByte('}')
  362. }
  363. // MarshalJSON supports json.Marshaler interface
  364. func (v SetNodeValueParams) MarshalJSON() ([]byte, error) {
  365. w := jwriter.Writer{}
  366. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom3(&w, v)
  367. return w.Buffer.BuildBytes(), w.Error
  368. }
  369. // MarshalEasyJSON supports easyjson.Marshaler interface
  370. func (v SetNodeValueParams) MarshalEasyJSON(w *jwriter.Writer) {
  371. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom3(w, v)
  372. }
  373. // UnmarshalJSON supports json.Unmarshaler interface
  374. func (v *SetNodeValueParams) UnmarshalJSON(data []byte) error {
  375. r := jlexer.Lexer{Data: data}
  376. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom3(&r, v)
  377. return r.Error()
  378. }
  379. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  380. func (v *SetNodeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  381. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom3(l, v)
  382. }
  383. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom4(in *jlexer.Lexer, out *SetNodeStackTracesEnabledParams) {
  384. isTopLevel := in.IsStart()
  385. if in.IsNull() {
  386. if isTopLevel {
  387. in.Consumed()
  388. }
  389. in.Skip()
  390. return
  391. }
  392. in.Delim('{')
  393. for !in.IsDelim('}') {
  394. key := in.UnsafeFieldName(false)
  395. in.WantColon()
  396. if in.IsNull() {
  397. in.Skip()
  398. in.WantComma()
  399. continue
  400. }
  401. switch key {
  402. case "enable":
  403. out.Enable = bool(in.Bool())
  404. default:
  405. in.SkipRecursive()
  406. }
  407. in.WantComma()
  408. }
  409. in.Delim('}')
  410. if isTopLevel {
  411. in.Consumed()
  412. }
  413. }
  414. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom4(out *jwriter.Writer, in SetNodeStackTracesEnabledParams) {
  415. out.RawByte('{')
  416. first := true
  417. _ = first
  418. {
  419. const prefix string = ",\"enable\":"
  420. out.RawString(prefix[1:])
  421. out.Bool(bool(in.Enable))
  422. }
  423. out.RawByte('}')
  424. }
  425. // MarshalJSON supports json.Marshaler interface
  426. func (v SetNodeStackTracesEnabledParams) MarshalJSON() ([]byte, error) {
  427. w := jwriter.Writer{}
  428. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom4(&w, v)
  429. return w.Buffer.BuildBytes(), w.Error
  430. }
  431. // MarshalEasyJSON supports easyjson.Marshaler interface
  432. func (v SetNodeStackTracesEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
  433. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom4(w, v)
  434. }
  435. // UnmarshalJSON supports json.Unmarshaler interface
  436. func (v *SetNodeStackTracesEnabledParams) UnmarshalJSON(data []byte) error {
  437. r := jlexer.Lexer{Data: data}
  438. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom4(&r, v)
  439. return r.Error()
  440. }
  441. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  442. func (v *SetNodeStackTracesEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  443. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom4(l, v)
  444. }
  445. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom5(in *jlexer.Lexer, out *SetNodeNameReturns) {
  446. isTopLevel := in.IsStart()
  447. if in.IsNull() {
  448. if isTopLevel {
  449. in.Consumed()
  450. }
  451. in.Skip()
  452. return
  453. }
  454. in.Delim('{')
  455. for !in.IsDelim('}') {
  456. key := in.UnsafeFieldName(false)
  457. in.WantColon()
  458. if in.IsNull() {
  459. in.Skip()
  460. in.WantComma()
  461. continue
  462. }
  463. switch key {
  464. case "nodeId":
  465. (out.NodeID).UnmarshalEasyJSON(in)
  466. default:
  467. in.SkipRecursive()
  468. }
  469. in.WantComma()
  470. }
  471. in.Delim('}')
  472. if isTopLevel {
  473. in.Consumed()
  474. }
  475. }
  476. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom5(out *jwriter.Writer, in SetNodeNameReturns) {
  477. out.RawByte('{')
  478. first := true
  479. _ = first
  480. if in.NodeID != 0 {
  481. const prefix string = ",\"nodeId\":"
  482. first = false
  483. out.RawString(prefix[1:])
  484. out.Int64(int64(in.NodeID))
  485. }
  486. out.RawByte('}')
  487. }
  488. // MarshalJSON supports json.Marshaler interface
  489. func (v SetNodeNameReturns) MarshalJSON() ([]byte, error) {
  490. w := jwriter.Writer{}
  491. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom5(&w, v)
  492. return w.Buffer.BuildBytes(), w.Error
  493. }
  494. // MarshalEasyJSON supports easyjson.Marshaler interface
  495. func (v SetNodeNameReturns) MarshalEasyJSON(w *jwriter.Writer) {
  496. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom5(w, v)
  497. }
  498. // UnmarshalJSON supports json.Unmarshaler interface
  499. func (v *SetNodeNameReturns) UnmarshalJSON(data []byte) error {
  500. r := jlexer.Lexer{Data: data}
  501. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom5(&r, v)
  502. return r.Error()
  503. }
  504. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  505. func (v *SetNodeNameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  506. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom5(l, v)
  507. }
  508. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom6(in *jlexer.Lexer, out *SetNodeNameParams) {
  509. isTopLevel := in.IsStart()
  510. if in.IsNull() {
  511. if isTopLevel {
  512. in.Consumed()
  513. }
  514. in.Skip()
  515. return
  516. }
  517. in.Delim('{')
  518. for !in.IsDelim('}') {
  519. key := in.UnsafeFieldName(false)
  520. in.WantColon()
  521. if in.IsNull() {
  522. in.Skip()
  523. in.WantComma()
  524. continue
  525. }
  526. switch key {
  527. case "nodeId":
  528. (out.NodeID).UnmarshalEasyJSON(in)
  529. case "name":
  530. out.Name = string(in.String())
  531. default:
  532. in.SkipRecursive()
  533. }
  534. in.WantComma()
  535. }
  536. in.Delim('}')
  537. if isTopLevel {
  538. in.Consumed()
  539. }
  540. }
  541. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom6(out *jwriter.Writer, in SetNodeNameParams) {
  542. out.RawByte('{')
  543. first := true
  544. _ = first
  545. {
  546. const prefix string = ",\"nodeId\":"
  547. out.RawString(prefix[1:])
  548. out.Int64(int64(in.NodeID))
  549. }
  550. {
  551. const prefix string = ",\"name\":"
  552. out.RawString(prefix)
  553. out.String(string(in.Name))
  554. }
  555. out.RawByte('}')
  556. }
  557. // MarshalJSON supports json.Marshaler interface
  558. func (v SetNodeNameParams) MarshalJSON() ([]byte, error) {
  559. w := jwriter.Writer{}
  560. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom6(&w, v)
  561. return w.Buffer.BuildBytes(), w.Error
  562. }
  563. // MarshalEasyJSON supports easyjson.Marshaler interface
  564. func (v SetNodeNameParams) MarshalEasyJSON(w *jwriter.Writer) {
  565. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom6(w, v)
  566. }
  567. // UnmarshalJSON supports json.Unmarshaler interface
  568. func (v *SetNodeNameParams) UnmarshalJSON(data []byte) error {
  569. r := jlexer.Lexer{Data: data}
  570. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom6(&r, v)
  571. return r.Error()
  572. }
  573. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  574. func (v *SetNodeNameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  575. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom6(l, v)
  576. }
  577. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom7(in *jlexer.Lexer, out *SetInspectedNodeParams) {
  578. isTopLevel := in.IsStart()
  579. if in.IsNull() {
  580. if isTopLevel {
  581. in.Consumed()
  582. }
  583. in.Skip()
  584. return
  585. }
  586. in.Delim('{')
  587. for !in.IsDelim('}') {
  588. key := in.UnsafeFieldName(false)
  589. in.WantColon()
  590. if in.IsNull() {
  591. in.Skip()
  592. in.WantComma()
  593. continue
  594. }
  595. switch key {
  596. case "nodeId":
  597. (out.NodeID).UnmarshalEasyJSON(in)
  598. default:
  599. in.SkipRecursive()
  600. }
  601. in.WantComma()
  602. }
  603. in.Delim('}')
  604. if isTopLevel {
  605. in.Consumed()
  606. }
  607. }
  608. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom7(out *jwriter.Writer, in SetInspectedNodeParams) {
  609. out.RawByte('{')
  610. first := true
  611. _ = first
  612. {
  613. const prefix string = ",\"nodeId\":"
  614. out.RawString(prefix[1:])
  615. out.Int64(int64(in.NodeID))
  616. }
  617. out.RawByte('}')
  618. }
  619. // MarshalJSON supports json.Marshaler interface
  620. func (v SetInspectedNodeParams) MarshalJSON() ([]byte, error) {
  621. w := jwriter.Writer{}
  622. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom7(&w, v)
  623. return w.Buffer.BuildBytes(), w.Error
  624. }
  625. // MarshalEasyJSON supports easyjson.Marshaler interface
  626. func (v SetInspectedNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  627. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom7(w, v)
  628. }
  629. // UnmarshalJSON supports json.Unmarshaler interface
  630. func (v *SetInspectedNodeParams) UnmarshalJSON(data []byte) error {
  631. r := jlexer.Lexer{Data: data}
  632. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom7(&r, v)
  633. return r.Error()
  634. }
  635. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  636. func (v *SetInspectedNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  637. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom7(l, v)
  638. }
  639. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom8(in *jlexer.Lexer, out *SetFileInputFilesParams) {
  640. isTopLevel := in.IsStart()
  641. if in.IsNull() {
  642. if isTopLevel {
  643. in.Consumed()
  644. }
  645. in.Skip()
  646. return
  647. }
  648. in.Delim('{')
  649. for !in.IsDelim('}') {
  650. key := in.UnsafeFieldName(false)
  651. in.WantColon()
  652. if in.IsNull() {
  653. in.Skip()
  654. in.WantComma()
  655. continue
  656. }
  657. switch key {
  658. case "files":
  659. if in.IsNull() {
  660. in.Skip()
  661. out.Files = nil
  662. } else {
  663. in.Delim('[')
  664. if out.Files == nil {
  665. if !in.IsDelim(']') {
  666. out.Files = make([]string, 0, 4)
  667. } else {
  668. out.Files = []string{}
  669. }
  670. } else {
  671. out.Files = (out.Files)[:0]
  672. }
  673. for !in.IsDelim(']') {
  674. var v10 string
  675. v10 = string(in.String())
  676. out.Files = append(out.Files, v10)
  677. in.WantComma()
  678. }
  679. in.Delim(']')
  680. }
  681. case "nodeId":
  682. (out.NodeID).UnmarshalEasyJSON(in)
  683. case "backendNodeId":
  684. (out.BackendNodeID).UnmarshalEasyJSON(in)
  685. case "objectId":
  686. out.ObjectID = runtime.RemoteObjectID(in.String())
  687. default:
  688. in.SkipRecursive()
  689. }
  690. in.WantComma()
  691. }
  692. in.Delim('}')
  693. if isTopLevel {
  694. in.Consumed()
  695. }
  696. }
  697. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom8(out *jwriter.Writer, in SetFileInputFilesParams) {
  698. out.RawByte('{')
  699. first := true
  700. _ = first
  701. {
  702. const prefix string = ",\"files\":"
  703. out.RawString(prefix[1:])
  704. if in.Files == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  705. out.RawString("null")
  706. } else {
  707. out.RawByte('[')
  708. for v11, v12 := range in.Files {
  709. if v11 > 0 {
  710. out.RawByte(',')
  711. }
  712. out.String(string(v12))
  713. }
  714. out.RawByte(']')
  715. }
  716. }
  717. if in.NodeID != 0 {
  718. const prefix string = ",\"nodeId\":"
  719. out.RawString(prefix)
  720. out.Int64(int64(in.NodeID))
  721. }
  722. if in.BackendNodeID != 0 {
  723. const prefix string = ",\"backendNodeId\":"
  724. out.RawString(prefix)
  725. out.Int64(int64(in.BackendNodeID))
  726. }
  727. if in.ObjectID != "" {
  728. const prefix string = ",\"objectId\":"
  729. out.RawString(prefix)
  730. out.String(string(in.ObjectID))
  731. }
  732. out.RawByte('}')
  733. }
  734. // MarshalJSON supports json.Marshaler interface
  735. func (v SetFileInputFilesParams) MarshalJSON() ([]byte, error) {
  736. w := jwriter.Writer{}
  737. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom8(&w, v)
  738. return w.Buffer.BuildBytes(), w.Error
  739. }
  740. // MarshalEasyJSON supports easyjson.Marshaler interface
  741. func (v SetFileInputFilesParams) MarshalEasyJSON(w *jwriter.Writer) {
  742. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom8(w, v)
  743. }
  744. // UnmarshalJSON supports json.Unmarshaler interface
  745. func (v *SetFileInputFilesParams) UnmarshalJSON(data []byte) error {
  746. r := jlexer.Lexer{Data: data}
  747. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom8(&r, v)
  748. return r.Error()
  749. }
  750. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  751. func (v *SetFileInputFilesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  752. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom8(l, v)
  753. }
  754. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom9(in *jlexer.Lexer, out *SetAttributesAsTextParams) {
  755. isTopLevel := in.IsStart()
  756. if in.IsNull() {
  757. if isTopLevel {
  758. in.Consumed()
  759. }
  760. in.Skip()
  761. return
  762. }
  763. in.Delim('{')
  764. for !in.IsDelim('}') {
  765. key := in.UnsafeFieldName(false)
  766. in.WantColon()
  767. if in.IsNull() {
  768. in.Skip()
  769. in.WantComma()
  770. continue
  771. }
  772. switch key {
  773. case "nodeId":
  774. (out.NodeID).UnmarshalEasyJSON(in)
  775. case "text":
  776. out.Text = string(in.String())
  777. case "name":
  778. out.Name = string(in.String())
  779. default:
  780. in.SkipRecursive()
  781. }
  782. in.WantComma()
  783. }
  784. in.Delim('}')
  785. if isTopLevel {
  786. in.Consumed()
  787. }
  788. }
  789. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom9(out *jwriter.Writer, in SetAttributesAsTextParams) {
  790. out.RawByte('{')
  791. first := true
  792. _ = first
  793. {
  794. const prefix string = ",\"nodeId\":"
  795. out.RawString(prefix[1:])
  796. out.Int64(int64(in.NodeID))
  797. }
  798. {
  799. const prefix string = ",\"text\":"
  800. out.RawString(prefix)
  801. out.String(string(in.Text))
  802. }
  803. if in.Name != "" {
  804. const prefix string = ",\"name\":"
  805. out.RawString(prefix)
  806. out.String(string(in.Name))
  807. }
  808. out.RawByte('}')
  809. }
  810. // MarshalJSON supports json.Marshaler interface
  811. func (v SetAttributesAsTextParams) MarshalJSON() ([]byte, error) {
  812. w := jwriter.Writer{}
  813. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom9(&w, v)
  814. return w.Buffer.BuildBytes(), w.Error
  815. }
  816. // MarshalEasyJSON supports easyjson.Marshaler interface
  817. func (v SetAttributesAsTextParams) MarshalEasyJSON(w *jwriter.Writer) {
  818. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom9(w, v)
  819. }
  820. // UnmarshalJSON supports json.Unmarshaler interface
  821. func (v *SetAttributesAsTextParams) UnmarshalJSON(data []byte) error {
  822. r := jlexer.Lexer{Data: data}
  823. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom9(&r, v)
  824. return r.Error()
  825. }
  826. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  827. func (v *SetAttributesAsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  828. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom9(l, v)
  829. }
  830. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom10(in *jlexer.Lexer, out *SetAttributeValueParams) {
  831. isTopLevel := in.IsStart()
  832. if in.IsNull() {
  833. if isTopLevel {
  834. in.Consumed()
  835. }
  836. in.Skip()
  837. return
  838. }
  839. in.Delim('{')
  840. for !in.IsDelim('}') {
  841. key := in.UnsafeFieldName(false)
  842. in.WantColon()
  843. if in.IsNull() {
  844. in.Skip()
  845. in.WantComma()
  846. continue
  847. }
  848. switch key {
  849. case "nodeId":
  850. (out.NodeID).UnmarshalEasyJSON(in)
  851. case "name":
  852. out.Name = string(in.String())
  853. case "value":
  854. out.Value = string(in.String())
  855. default:
  856. in.SkipRecursive()
  857. }
  858. in.WantComma()
  859. }
  860. in.Delim('}')
  861. if isTopLevel {
  862. in.Consumed()
  863. }
  864. }
  865. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom10(out *jwriter.Writer, in SetAttributeValueParams) {
  866. out.RawByte('{')
  867. first := true
  868. _ = first
  869. {
  870. const prefix string = ",\"nodeId\":"
  871. out.RawString(prefix[1:])
  872. out.Int64(int64(in.NodeID))
  873. }
  874. {
  875. const prefix string = ",\"name\":"
  876. out.RawString(prefix)
  877. out.String(string(in.Name))
  878. }
  879. {
  880. const prefix string = ",\"value\":"
  881. out.RawString(prefix)
  882. out.String(string(in.Value))
  883. }
  884. out.RawByte('}')
  885. }
  886. // MarshalJSON supports json.Marshaler interface
  887. func (v SetAttributeValueParams) MarshalJSON() ([]byte, error) {
  888. w := jwriter.Writer{}
  889. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom10(&w, v)
  890. return w.Buffer.BuildBytes(), w.Error
  891. }
  892. // MarshalEasyJSON supports easyjson.Marshaler interface
  893. func (v SetAttributeValueParams) MarshalEasyJSON(w *jwriter.Writer) {
  894. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom10(w, v)
  895. }
  896. // UnmarshalJSON supports json.Unmarshaler interface
  897. func (v *SetAttributeValueParams) UnmarshalJSON(data []byte) error {
  898. r := jlexer.Lexer{Data: data}
  899. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom10(&r, v)
  900. return r.Error()
  901. }
  902. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  903. func (v *SetAttributeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  904. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom10(l, v)
  905. }
  906. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom11(in *jlexer.Lexer, out *ScrollIntoViewIfNeededParams) {
  907. isTopLevel := in.IsStart()
  908. if in.IsNull() {
  909. if isTopLevel {
  910. in.Consumed()
  911. }
  912. in.Skip()
  913. return
  914. }
  915. in.Delim('{')
  916. for !in.IsDelim('}') {
  917. key := in.UnsafeFieldName(false)
  918. in.WantColon()
  919. if in.IsNull() {
  920. in.Skip()
  921. in.WantComma()
  922. continue
  923. }
  924. switch key {
  925. case "nodeId":
  926. (out.NodeID).UnmarshalEasyJSON(in)
  927. case "backendNodeId":
  928. (out.BackendNodeID).UnmarshalEasyJSON(in)
  929. case "objectId":
  930. out.ObjectID = runtime.RemoteObjectID(in.String())
  931. case "rect":
  932. if in.IsNull() {
  933. in.Skip()
  934. out.Rect = nil
  935. } else {
  936. if out.Rect == nil {
  937. out.Rect = new(Rect)
  938. }
  939. (*out.Rect).UnmarshalEasyJSON(in)
  940. }
  941. default:
  942. in.SkipRecursive()
  943. }
  944. in.WantComma()
  945. }
  946. in.Delim('}')
  947. if isTopLevel {
  948. in.Consumed()
  949. }
  950. }
  951. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom11(out *jwriter.Writer, in ScrollIntoViewIfNeededParams) {
  952. out.RawByte('{')
  953. first := true
  954. _ = first
  955. if in.NodeID != 0 {
  956. const prefix string = ",\"nodeId\":"
  957. first = false
  958. out.RawString(prefix[1:])
  959. out.Int64(int64(in.NodeID))
  960. }
  961. if in.BackendNodeID != 0 {
  962. const prefix string = ",\"backendNodeId\":"
  963. if first {
  964. first = false
  965. out.RawString(prefix[1:])
  966. } else {
  967. out.RawString(prefix)
  968. }
  969. out.Int64(int64(in.BackendNodeID))
  970. }
  971. if in.ObjectID != "" {
  972. const prefix string = ",\"objectId\":"
  973. if first {
  974. first = false
  975. out.RawString(prefix[1:])
  976. } else {
  977. out.RawString(prefix)
  978. }
  979. out.String(string(in.ObjectID))
  980. }
  981. if in.Rect != nil {
  982. const prefix string = ",\"rect\":"
  983. if first {
  984. first = false
  985. out.RawString(prefix[1:])
  986. } else {
  987. out.RawString(prefix)
  988. }
  989. (*in.Rect).MarshalEasyJSON(out)
  990. }
  991. out.RawByte('}')
  992. }
  993. // MarshalJSON supports json.Marshaler interface
  994. func (v ScrollIntoViewIfNeededParams) MarshalJSON() ([]byte, error) {
  995. w := jwriter.Writer{}
  996. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom11(&w, v)
  997. return w.Buffer.BuildBytes(), w.Error
  998. }
  999. // MarshalEasyJSON supports easyjson.Marshaler interface
  1000. func (v ScrollIntoViewIfNeededParams) MarshalEasyJSON(w *jwriter.Writer) {
  1001. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom11(w, v)
  1002. }
  1003. // UnmarshalJSON supports json.Unmarshaler interface
  1004. func (v *ScrollIntoViewIfNeededParams) UnmarshalJSON(data []byte) error {
  1005. r := jlexer.Lexer{Data: data}
  1006. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom11(&r, v)
  1007. return r.Error()
  1008. }
  1009. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1010. func (v *ScrollIntoViewIfNeededParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1011. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom11(l, v)
  1012. }
  1013. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom12(in *jlexer.Lexer, out *ResolveNodeReturns) {
  1014. isTopLevel := in.IsStart()
  1015. if in.IsNull() {
  1016. if isTopLevel {
  1017. in.Consumed()
  1018. }
  1019. in.Skip()
  1020. return
  1021. }
  1022. in.Delim('{')
  1023. for !in.IsDelim('}') {
  1024. key := in.UnsafeFieldName(false)
  1025. in.WantColon()
  1026. if in.IsNull() {
  1027. in.Skip()
  1028. in.WantComma()
  1029. continue
  1030. }
  1031. switch key {
  1032. case "object":
  1033. if in.IsNull() {
  1034. in.Skip()
  1035. out.Object = nil
  1036. } else {
  1037. if out.Object == nil {
  1038. out.Object = new(runtime.RemoteObject)
  1039. }
  1040. (*out.Object).UnmarshalEasyJSON(in)
  1041. }
  1042. default:
  1043. in.SkipRecursive()
  1044. }
  1045. in.WantComma()
  1046. }
  1047. in.Delim('}')
  1048. if isTopLevel {
  1049. in.Consumed()
  1050. }
  1051. }
  1052. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom12(out *jwriter.Writer, in ResolveNodeReturns) {
  1053. out.RawByte('{')
  1054. first := true
  1055. _ = first
  1056. if in.Object != nil {
  1057. const prefix string = ",\"object\":"
  1058. first = false
  1059. out.RawString(prefix[1:])
  1060. (*in.Object).MarshalEasyJSON(out)
  1061. }
  1062. out.RawByte('}')
  1063. }
  1064. // MarshalJSON supports json.Marshaler interface
  1065. func (v ResolveNodeReturns) MarshalJSON() ([]byte, error) {
  1066. w := jwriter.Writer{}
  1067. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom12(&w, v)
  1068. return w.Buffer.BuildBytes(), w.Error
  1069. }
  1070. // MarshalEasyJSON supports easyjson.Marshaler interface
  1071. func (v ResolveNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1072. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom12(w, v)
  1073. }
  1074. // UnmarshalJSON supports json.Unmarshaler interface
  1075. func (v *ResolveNodeReturns) UnmarshalJSON(data []byte) error {
  1076. r := jlexer.Lexer{Data: data}
  1077. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom12(&r, v)
  1078. return r.Error()
  1079. }
  1080. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1081. func (v *ResolveNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1082. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom12(l, v)
  1083. }
  1084. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom13(in *jlexer.Lexer, out *ResolveNodeParams) {
  1085. isTopLevel := in.IsStart()
  1086. if in.IsNull() {
  1087. if isTopLevel {
  1088. in.Consumed()
  1089. }
  1090. in.Skip()
  1091. return
  1092. }
  1093. in.Delim('{')
  1094. for !in.IsDelim('}') {
  1095. key := in.UnsafeFieldName(false)
  1096. in.WantColon()
  1097. if in.IsNull() {
  1098. in.Skip()
  1099. in.WantComma()
  1100. continue
  1101. }
  1102. switch key {
  1103. case "nodeId":
  1104. (out.NodeID).UnmarshalEasyJSON(in)
  1105. case "backendNodeId":
  1106. (out.BackendNodeID).UnmarshalEasyJSON(in)
  1107. case "objectGroup":
  1108. out.ObjectGroup = string(in.String())
  1109. case "executionContextId":
  1110. out.ExecutionContextID = runtime.ExecutionContextID(in.Int64())
  1111. default:
  1112. in.SkipRecursive()
  1113. }
  1114. in.WantComma()
  1115. }
  1116. in.Delim('}')
  1117. if isTopLevel {
  1118. in.Consumed()
  1119. }
  1120. }
  1121. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom13(out *jwriter.Writer, in ResolveNodeParams) {
  1122. out.RawByte('{')
  1123. first := true
  1124. _ = first
  1125. if in.NodeID != 0 {
  1126. const prefix string = ",\"nodeId\":"
  1127. first = false
  1128. out.RawString(prefix[1:])
  1129. out.Int64(int64(in.NodeID))
  1130. }
  1131. if in.BackendNodeID != 0 {
  1132. const prefix string = ",\"backendNodeId\":"
  1133. if first {
  1134. first = false
  1135. out.RawString(prefix[1:])
  1136. } else {
  1137. out.RawString(prefix)
  1138. }
  1139. out.Int64(int64(in.BackendNodeID))
  1140. }
  1141. if in.ObjectGroup != "" {
  1142. const prefix string = ",\"objectGroup\":"
  1143. if first {
  1144. first = false
  1145. out.RawString(prefix[1:])
  1146. } else {
  1147. out.RawString(prefix)
  1148. }
  1149. out.String(string(in.ObjectGroup))
  1150. }
  1151. if in.ExecutionContextID != 0 {
  1152. const prefix string = ",\"executionContextId\":"
  1153. if first {
  1154. first = false
  1155. out.RawString(prefix[1:])
  1156. } else {
  1157. out.RawString(prefix)
  1158. }
  1159. out.Int64(int64(in.ExecutionContextID))
  1160. }
  1161. out.RawByte('}')
  1162. }
  1163. // MarshalJSON supports json.Marshaler interface
  1164. func (v ResolveNodeParams) MarshalJSON() ([]byte, error) {
  1165. w := jwriter.Writer{}
  1166. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom13(&w, v)
  1167. return w.Buffer.BuildBytes(), w.Error
  1168. }
  1169. // MarshalEasyJSON supports easyjson.Marshaler interface
  1170. func (v ResolveNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1171. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom13(w, v)
  1172. }
  1173. // UnmarshalJSON supports json.Unmarshaler interface
  1174. func (v *ResolveNodeParams) UnmarshalJSON(data []byte) error {
  1175. r := jlexer.Lexer{Data: data}
  1176. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom13(&r, v)
  1177. return r.Error()
  1178. }
  1179. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1180. func (v *ResolveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1181. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom13(l, v)
  1182. }
  1183. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom14(in *jlexer.Lexer, out *RequestNodeReturns) {
  1184. isTopLevel := in.IsStart()
  1185. if in.IsNull() {
  1186. if isTopLevel {
  1187. in.Consumed()
  1188. }
  1189. in.Skip()
  1190. return
  1191. }
  1192. in.Delim('{')
  1193. for !in.IsDelim('}') {
  1194. key := in.UnsafeFieldName(false)
  1195. in.WantColon()
  1196. if in.IsNull() {
  1197. in.Skip()
  1198. in.WantComma()
  1199. continue
  1200. }
  1201. switch key {
  1202. case "nodeId":
  1203. (out.NodeID).UnmarshalEasyJSON(in)
  1204. default:
  1205. in.SkipRecursive()
  1206. }
  1207. in.WantComma()
  1208. }
  1209. in.Delim('}')
  1210. if isTopLevel {
  1211. in.Consumed()
  1212. }
  1213. }
  1214. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom14(out *jwriter.Writer, in RequestNodeReturns) {
  1215. out.RawByte('{')
  1216. first := true
  1217. _ = first
  1218. if in.NodeID != 0 {
  1219. const prefix string = ",\"nodeId\":"
  1220. first = false
  1221. out.RawString(prefix[1:])
  1222. out.Int64(int64(in.NodeID))
  1223. }
  1224. out.RawByte('}')
  1225. }
  1226. // MarshalJSON supports json.Marshaler interface
  1227. func (v RequestNodeReturns) MarshalJSON() ([]byte, error) {
  1228. w := jwriter.Writer{}
  1229. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom14(&w, v)
  1230. return w.Buffer.BuildBytes(), w.Error
  1231. }
  1232. // MarshalEasyJSON supports easyjson.Marshaler interface
  1233. func (v RequestNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1234. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom14(w, v)
  1235. }
  1236. // UnmarshalJSON supports json.Unmarshaler interface
  1237. func (v *RequestNodeReturns) UnmarshalJSON(data []byte) error {
  1238. r := jlexer.Lexer{Data: data}
  1239. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom14(&r, v)
  1240. return r.Error()
  1241. }
  1242. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1243. func (v *RequestNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1244. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom14(l, v)
  1245. }
  1246. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom15(in *jlexer.Lexer, out *RequestNodeParams) {
  1247. isTopLevel := in.IsStart()
  1248. if in.IsNull() {
  1249. if isTopLevel {
  1250. in.Consumed()
  1251. }
  1252. in.Skip()
  1253. return
  1254. }
  1255. in.Delim('{')
  1256. for !in.IsDelim('}') {
  1257. key := in.UnsafeFieldName(false)
  1258. in.WantColon()
  1259. if in.IsNull() {
  1260. in.Skip()
  1261. in.WantComma()
  1262. continue
  1263. }
  1264. switch key {
  1265. case "objectId":
  1266. out.ObjectID = runtime.RemoteObjectID(in.String())
  1267. default:
  1268. in.SkipRecursive()
  1269. }
  1270. in.WantComma()
  1271. }
  1272. in.Delim('}')
  1273. if isTopLevel {
  1274. in.Consumed()
  1275. }
  1276. }
  1277. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom15(out *jwriter.Writer, in RequestNodeParams) {
  1278. out.RawByte('{')
  1279. first := true
  1280. _ = first
  1281. {
  1282. const prefix string = ",\"objectId\":"
  1283. out.RawString(prefix[1:])
  1284. out.String(string(in.ObjectID))
  1285. }
  1286. out.RawByte('}')
  1287. }
  1288. // MarshalJSON supports json.Marshaler interface
  1289. func (v RequestNodeParams) MarshalJSON() ([]byte, error) {
  1290. w := jwriter.Writer{}
  1291. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom15(&w, v)
  1292. return w.Buffer.BuildBytes(), w.Error
  1293. }
  1294. // MarshalEasyJSON supports easyjson.Marshaler interface
  1295. func (v RequestNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1296. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom15(w, v)
  1297. }
  1298. // UnmarshalJSON supports json.Unmarshaler interface
  1299. func (v *RequestNodeParams) UnmarshalJSON(data []byte) error {
  1300. r := jlexer.Lexer{Data: data}
  1301. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom15(&r, v)
  1302. return r.Error()
  1303. }
  1304. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1305. func (v *RequestNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1306. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom15(l, v)
  1307. }
  1308. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom16(in *jlexer.Lexer, out *RequestChildNodesParams) {
  1309. isTopLevel := in.IsStart()
  1310. if in.IsNull() {
  1311. if isTopLevel {
  1312. in.Consumed()
  1313. }
  1314. in.Skip()
  1315. return
  1316. }
  1317. in.Delim('{')
  1318. for !in.IsDelim('}') {
  1319. key := in.UnsafeFieldName(false)
  1320. in.WantColon()
  1321. if in.IsNull() {
  1322. in.Skip()
  1323. in.WantComma()
  1324. continue
  1325. }
  1326. switch key {
  1327. case "nodeId":
  1328. (out.NodeID).UnmarshalEasyJSON(in)
  1329. case "depth":
  1330. out.Depth = int64(in.Int64())
  1331. case "pierce":
  1332. out.Pierce = bool(in.Bool())
  1333. default:
  1334. in.SkipRecursive()
  1335. }
  1336. in.WantComma()
  1337. }
  1338. in.Delim('}')
  1339. if isTopLevel {
  1340. in.Consumed()
  1341. }
  1342. }
  1343. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom16(out *jwriter.Writer, in RequestChildNodesParams) {
  1344. out.RawByte('{')
  1345. first := true
  1346. _ = first
  1347. {
  1348. const prefix string = ",\"nodeId\":"
  1349. out.RawString(prefix[1:])
  1350. out.Int64(int64(in.NodeID))
  1351. }
  1352. if in.Depth != 0 {
  1353. const prefix string = ",\"depth\":"
  1354. out.RawString(prefix)
  1355. out.Int64(int64(in.Depth))
  1356. }
  1357. if in.Pierce {
  1358. const prefix string = ",\"pierce\":"
  1359. out.RawString(prefix)
  1360. out.Bool(bool(in.Pierce))
  1361. }
  1362. out.RawByte('}')
  1363. }
  1364. // MarshalJSON supports json.Marshaler interface
  1365. func (v RequestChildNodesParams) MarshalJSON() ([]byte, error) {
  1366. w := jwriter.Writer{}
  1367. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom16(&w, v)
  1368. return w.Buffer.BuildBytes(), w.Error
  1369. }
  1370. // MarshalEasyJSON supports easyjson.Marshaler interface
  1371. func (v RequestChildNodesParams) MarshalEasyJSON(w *jwriter.Writer) {
  1372. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom16(w, v)
  1373. }
  1374. // UnmarshalJSON supports json.Unmarshaler interface
  1375. func (v *RequestChildNodesParams) UnmarshalJSON(data []byte) error {
  1376. r := jlexer.Lexer{Data: data}
  1377. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom16(&r, v)
  1378. return r.Error()
  1379. }
  1380. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1381. func (v *RequestChildNodesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1382. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom16(l, v)
  1383. }
  1384. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom17(in *jlexer.Lexer, out *RemoveNodeParams) {
  1385. isTopLevel := in.IsStart()
  1386. if in.IsNull() {
  1387. if isTopLevel {
  1388. in.Consumed()
  1389. }
  1390. in.Skip()
  1391. return
  1392. }
  1393. in.Delim('{')
  1394. for !in.IsDelim('}') {
  1395. key := in.UnsafeFieldName(false)
  1396. in.WantColon()
  1397. if in.IsNull() {
  1398. in.Skip()
  1399. in.WantComma()
  1400. continue
  1401. }
  1402. switch key {
  1403. case "nodeId":
  1404. (out.NodeID).UnmarshalEasyJSON(in)
  1405. default:
  1406. in.SkipRecursive()
  1407. }
  1408. in.WantComma()
  1409. }
  1410. in.Delim('}')
  1411. if isTopLevel {
  1412. in.Consumed()
  1413. }
  1414. }
  1415. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom17(out *jwriter.Writer, in RemoveNodeParams) {
  1416. out.RawByte('{')
  1417. first := true
  1418. _ = first
  1419. {
  1420. const prefix string = ",\"nodeId\":"
  1421. out.RawString(prefix[1:])
  1422. out.Int64(int64(in.NodeID))
  1423. }
  1424. out.RawByte('}')
  1425. }
  1426. // MarshalJSON supports json.Marshaler interface
  1427. func (v RemoveNodeParams) MarshalJSON() ([]byte, error) {
  1428. w := jwriter.Writer{}
  1429. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom17(&w, v)
  1430. return w.Buffer.BuildBytes(), w.Error
  1431. }
  1432. // MarshalEasyJSON supports easyjson.Marshaler interface
  1433. func (v RemoveNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1434. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom17(w, v)
  1435. }
  1436. // UnmarshalJSON supports json.Unmarshaler interface
  1437. func (v *RemoveNodeParams) UnmarshalJSON(data []byte) error {
  1438. r := jlexer.Lexer{Data: data}
  1439. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom17(&r, v)
  1440. return r.Error()
  1441. }
  1442. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1443. func (v *RemoveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1444. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom17(l, v)
  1445. }
  1446. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom18(in *jlexer.Lexer, out *RemoveAttributeParams) {
  1447. isTopLevel := in.IsStart()
  1448. if in.IsNull() {
  1449. if isTopLevel {
  1450. in.Consumed()
  1451. }
  1452. in.Skip()
  1453. return
  1454. }
  1455. in.Delim('{')
  1456. for !in.IsDelim('}') {
  1457. key := in.UnsafeFieldName(false)
  1458. in.WantColon()
  1459. if in.IsNull() {
  1460. in.Skip()
  1461. in.WantComma()
  1462. continue
  1463. }
  1464. switch key {
  1465. case "nodeId":
  1466. (out.NodeID).UnmarshalEasyJSON(in)
  1467. case "name":
  1468. out.Name = string(in.String())
  1469. default:
  1470. in.SkipRecursive()
  1471. }
  1472. in.WantComma()
  1473. }
  1474. in.Delim('}')
  1475. if isTopLevel {
  1476. in.Consumed()
  1477. }
  1478. }
  1479. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom18(out *jwriter.Writer, in RemoveAttributeParams) {
  1480. out.RawByte('{')
  1481. first := true
  1482. _ = first
  1483. {
  1484. const prefix string = ",\"nodeId\":"
  1485. out.RawString(prefix[1:])
  1486. out.Int64(int64(in.NodeID))
  1487. }
  1488. {
  1489. const prefix string = ",\"name\":"
  1490. out.RawString(prefix)
  1491. out.String(string(in.Name))
  1492. }
  1493. out.RawByte('}')
  1494. }
  1495. // MarshalJSON supports json.Marshaler interface
  1496. func (v RemoveAttributeParams) MarshalJSON() ([]byte, error) {
  1497. w := jwriter.Writer{}
  1498. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom18(&w, v)
  1499. return w.Buffer.BuildBytes(), w.Error
  1500. }
  1501. // MarshalEasyJSON supports easyjson.Marshaler interface
  1502. func (v RemoveAttributeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1503. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom18(w, v)
  1504. }
  1505. // UnmarshalJSON supports json.Unmarshaler interface
  1506. func (v *RemoveAttributeParams) UnmarshalJSON(data []byte) error {
  1507. r := jlexer.Lexer{Data: data}
  1508. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom18(&r, v)
  1509. return r.Error()
  1510. }
  1511. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1512. func (v *RemoveAttributeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1513. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom18(l, v)
  1514. }
  1515. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom19(in *jlexer.Lexer, out *RedoParams) {
  1516. isTopLevel := in.IsStart()
  1517. if in.IsNull() {
  1518. if isTopLevel {
  1519. in.Consumed()
  1520. }
  1521. in.Skip()
  1522. return
  1523. }
  1524. in.Delim('{')
  1525. for !in.IsDelim('}') {
  1526. key := in.UnsafeFieldName(false)
  1527. in.WantColon()
  1528. if in.IsNull() {
  1529. in.Skip()
  1530. in.WantComma()
  1531. continue
  1532. }
  1533. switch key {
  1534. default:
  1535. in.SkipRecursive()
  1536. }
  1537. in.WantComma()
  1538. }
  1539. in.Delim('}')
  1540. if isTopLevel {
  1541. in.Consumed()
  1542. }
  1543. }
  1544. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom19(out *jwriter.Writer, in RedoParams) {
  1545. out.RawByte('{')
  1546. first := true
  1547. _ = first
  1548. out.RawByte('}')
  1549. }
  1550. // MarshalJSON supports json.Marshaler interface
  1551. func (v RedoParams) MarshalJSON() ([]byte, error) {
  1552. w := jwriter.Writer{}
  1553. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom19(&w, v)
  1554. return w.Buffer.BuildBytes(), w.Error
  1555. }
  1556. // MarshalEasyJSON supports easyjson.Marshaler interface
  1557. func (v RedoParams) MarshalEasyJSON(w *jwriter.Writer) {
  1558. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom19(w, v)
  1559. }
  1560. // UnmarshalJSON supports json.Unmarshaler interface
  1561. func (v *RedoParams) UnmarshalJSON(data []byte) error {
  1562. r := jlexer.Lexer{Data: data}
  1563. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom19(&r, v)
  1564. return r.Error()
  1565. }
  1566. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1567. func (v *RedoParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1568. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom19(l, v)
  1569. }
  1570. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom20(in *jlexer.Lexer, out *Rect) {
  1571. isTopLevel := in.IsStart()
  1572. if in.IsNull() {
  1573. if isTopLevel {
  1574. in.Consumed()
  1575. }
  1576. in.Skip()
  1577. return
  1578. }
  1579. in.Delim('{')
  1580. for !in.IsDelim('}') {
  1581. key := in.UnsafeFieldName(false)
  1582. in.WantColon()
  1583. if in.IsNull() {
  1584. in.Skip()
  1585. in.WantComma()
  1586. continue
  1587. }
  1588. switch key {
  1589. case "x":
  1590. out.X = float64(in.Float64())
  1591. case "y":
  1592. out.Y = float64(in.Float64())
  1593. case "width":
  1594. out.Width = float64(in.Float64())
  1595. case "height":
  1596. out.Height = float64(in.Float64())
  1597. default:
  1598. in.SkipRecursive()
  1599. }
  1600. in.WantComma()
  1601. }
  1602. in.Delim('}')
  1603. if isTopLevel {
  1604. in.Consumed()
  1605. }
  1606. }
  1607. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom20(out *jwriter.Writer, in Rect) {
  1608. out.RawByte('{')
  1609. first := true
  1610. _ = first
  1611. {
  1612. const prefix string = ",\"x\":"
  1613. out.RawString(prefix[1:])
  1614. out.Float64(float64(in.X))
  1615. }
  1616. {
  1617. const prefix string = ",\"y\":"
  1618. out.RawString(prefix)
  1619. out.Float64(float64(in.Y))
  1620. }
  1621. {
  1622. const prefix string = ",\"width\":"
  1623. out.RawString(prefix)
  1624. out.Float64(float64(in.Width))
  1625. }
  1626. {
  1627. const prefix string = ",\"height\":"
  1628. out.RawString(prefix)
  1629. out.Float64(float64(in.Height))
  1630. }
  1631. out.RawByte('}')
  1632. }
  1633. // MarshalJSON supports json.Marshaler interface
  1634. func (v Rect) MarshalJSON() ([]byte, error) {
  1635. w := jwriter.Writer{}
  1636. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom20(&w, v)
  1637. return w.Buffer.BuildBytes(), w.Error
  1638. }
  1639. // MarshalEasyJSON supports easyjson.Marshaler interface
  1640. func (v Rect) MarshalEasyJSON(w *jwriter.Writer) {
  1641. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom20(w, v)
  1642. }
  1643. // UnmarshalJSON supports json.Unmarshaler interface
  1644. func (v *Rect) UnmarshalJSON(data []byte) error {
  1645. r := jlexer.Lexer{Data: data}
  1646. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom20(&r, v)
  1647. return r.Error()
  1648. }
  1649. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1650. func (v *Rect) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1651. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom20(l, v)
  1652. }
  1653. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom21(in *jlexer.Lexer, out *QuerySelectorReturns) {
  1654. isTopLevel := in.IsStart()
  1655. if in.IsNull() {
  1656. if isTopLevel {
  1657. in.Consumed()
  1658. }
  1659. in.Skip()
  1660. return
  1661. }
  1662. in.Delim('{')
  1663. for !in.IsDelim('}') {
  1664. key := in.UnsafeFieldName(false)
  1665. in.WantColon()
  1666. if in.IsNull() {
  1667. in.Skip()
  1668. in.WantComma()
  1669. continue
  1670. }
  1671. switch key {
  1672. case "nodeId":
  1673. (out.NodeID).UnmarshalEasyJSON(in)
  1674. default:
  1675. in.SkipRecursive()
  1676. }
  1677. in.WantComma()
  1678. }
  1679. in.Delim('}')
  1680. if isTopLevel {
  1681. in.Consumed()
  1682. }
  1683. }
  1684. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom21(out *jwriter.Writer, in QuerySelectorReturns) {
  1685. out.RawByte('{')
  1686. first := true
  1687. _ = first
  1688. if in.NodeID != 0 {
  1689. const prefix string = ",\"nodeId\":"
  1690. first = false
  1691. out.RawString(prefix[1:])
  1692. out.Int64(int64(in.NodeID))
  1693. }
  1694. out.RawByte('}')
  1695. }
  1696. // MarshalJSON supports json.Marshaler interface
  1697. func (v QuerySelectorReturns) MarshalJSON() ([]byte, error) {
  1698. w := jwriter.Writer{}
  1699. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom21(&w, v)
  1700. return w.Buffer.BuildBytes(), w.Error
  1701. }
  1702. // MarshalEasyJSON supports easyjson.Marshaler interface
  1703. func (v QuerySelectorReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1704. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom21(w, v)
  1705. }
  1706. // UnmarshalJSON supports json.Unmarshaler interface
  1707. func (v *QuerySelectorReturns) UnmarshalJSON(data []byte) error {
  1708. r := jlexer.Lexer{Data: data}
  1709. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom21(&r, v)
  1710. return r.Error()
  1711. }
  1712. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1713. func (v *QuerySelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1714. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom21(l, v)
  1715. }
  1716. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom22(in *jlexer.Lexer, out *QuerySelectorParams) {
  1717. isTopLevel := in.IsStart()
  1718. if in.IsNull() {
  1719. if isTopLevel {
  1720. in.Consumed()
  1721. }
  1722. in.Skip()
  1723. return
  1724. }
  1725. in.Delim('{')
  1726. for !in.IsDelim('}') {
  1727. key := in.UnsafeFieldName(false)
  1728. in.WantColon()
  1729. if in.IsNull() {
  1730. in.Skip()
  1731. in.WantComma()
  1732. continue
  1733. }
  1734. switch key {
  1735. case "nodeId":
  1736. (out.NodeID).UnmarshalEasyJSON(in)
  1737. case "selector":
  1738. out.Selector = string(in.String())
  1739. default:
  1740. in.SkipRecursive()
  1741. }
  1742. in.WantComma()
  1743. }
  1744. in.Delim('}')
  1745. if isTopLevel {
  1746. in.Consumed()
  1747. }
  1748. }
  1749. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom22(out *jwriter.Writer, in QuerySelectorParams) {
  1750. out.RawByte('{')
  1751. first := true
  1752. _ = first
  1753. {
  1754. const prefix string = ",\"nodeId\":"
  1755. out.RawString(prefix[1:])
  1756. out.Int64(int64(in.NodeID))
  1757. }
  1758. {
  1759. const prefix string = ",\"selector\":"
  1760. out.RawString(prefix)
  1761. out.String(string(in.Selector))
  1762. }
  1763. out.RawByte('}')
  1764. }
  1765. // MarshalJSON supports json.Marshaler interface
  1766. func (v QuerySelectorParams) MarshalJSON() ([]byte, error) {
  1767. w := jwriter.Writer{}
  1768. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom22(&w, v)
  1769. return w.Buffer.BuildBytes(), w.Error
  1770. }
  1771. // MarshalEasyJSON supports easyjson.Marshaler interface
  1772. func (v QuerySelectorParams) MarshalEasyJSON(w *jwriter.Writer) {
  1773. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom22(w, v)
  1774. }
  1775. // UnmarshalJSON supports json.Unmarshaler interface
  1776. func (v *QuerySelectorParams) UnmarshalJSON(data []byte) error {
  1777. r := jlexer.Lexer{Data: data}
  1778. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom22(&r, v)
  1779. return r.Error()
  1780. }
  1781. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1782. func (v *QuerySelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1783. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom22(l, v)
  1784. }
  1785. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom23(in *jlexer.Lexer, out *QuerySelectorAllReturns) {
  1786. isTopLevel := in.IsStart()
  1787. if in.IsNull() {
  1788. if isTopLevel {
  1789. in.Consumed()
  1790. }
  1791. in.Skip()
  1792. return
  1793. }
  1794. in.Delim('{')
  1795. for !in.IsDelim('}') {
  1796. key := in.UnsafeFieldName(false)
  1797. in.WantColon()
  1798. if in.IsNull() {
  1799. in.Skip()
  1800. in.WantComma()
  1801. continue
  1802. }
  1803. switch key {
  1804. case "nodeIds":
  1805. if in.IsNull() {
  1806. in.Skip()
  1807. out.NodeIDs = nil
  1808. } else {
  1809. in.Delim('[')
  1810. if out.NodeIDs == nil {
  1811. if !in.IsDelim(']') {
  1812. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  1813. } else {
  1814. out.NodeIDs = []cdp.NodeID{}
  1815. }
  1816. } else {
  1817. out.NodeIDs = (out.NodeIDs)[:0]
  1818. }
  1819. for !in.IsDelim(']') {
  1820. var v13 cdp.NodeID
  1821. (v13).UnmarshalEasyJSON(in)
  1822. out.NodeIDs = append(out.NodeIDs, v13)
  1823. in.WantComma()
  1824. }
  1825. in.Delim(']')
  1826. }
  1827. default:
  1828. in.SkipRecursive()
  1829. }
  1830. in.WantComma()
  1831. }
  1832. in.Delim('}')
  1833. if isTopLevel {
  1834. in.Consumed()
  1835. }
  1836. }
  1837. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom23(out *jwriter.Writer, in QuerySelectorAllReturns) {
  1838. out.RawByte('{')
  1839. first := true
  1840. _ = first
  1841. if len(in.NodeIDs) != 0 {
  1842. const prefix string = ",\"nodeIds\":"
  1843. first = false
  1844. out.RawString(prefix[1:])
  1845. {
  1846. out.RawByte('[')
  1847. for v14, v15 := range in.NodeIDs {
  1848. if v14 > 0 {
  1849. out.RawByte(',')
  1850. }
  1851. out.Int64(int64(v15))
  1852. }
  1853. out.RawByte(']')
  1854. }
  1855. }
  1856. out.RawByte('}')
  1857. }
  1858. // MarshalJSON supports json.Marshaler interface
  1859. func (v QuerySelectorAllReturns) MarshalJSON() ([]byte, error) {
  1860. w := jwriter.Writer{}
  1861. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom23(&w, v)
  1862. return w.Buffer.BuildBytes(), w.Error
  1863. }
  1864. // MarshalEasyJSON supports easyjson.Marshaler interface
  1865. func (v QuerySelectorAllReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1866. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom23(w, v)
  1867. }
  1868. // UnmarshalJSON supports json.Unmarshaler interface
  1869. func (v *QuerySelectorAllReturns) UnmarshalJSON(data []byte) error {
  1870. r := jlexer.Lexer{Data: data}
  1871. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom23(&r, v)
  1872. return r.Error()
  1873. }
  1874. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1875. func (v *QuerySelectorAllReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1876. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom23(l, v)
  1877. }
  1878. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom24(in *jlexer.Lexer, out *QuerySelectorAllParams) {
  1879. isTopLevel := in.IsStart()
  1880. if in.IsNull() {
  1881. if isTopLevel {
  1882. in.Consumed()
  1883. }
  1884. in.Skip()
  1885. return
  1886. }
  1887. in.Delim('{')
  1888. for !in.IsDelim('}') {
  1889. key := in.UnsafeFieldName(false)
  1890. in.WantColon()
  1891. if in.IsNull() {
  1892. in.Skip()
  1893. in.WantComma()
  1894. continue
  1895. }
  1896. switch key {
  1897. case "nodeId":
  1898. (out.NodeID).UnmarshalEasyJSON(in)
  1899. case "selector":
  1900. out.Selector = string(in.String())
  1901. default:
  1902. in.SkipRecursive()
  1903. }
  1904. in.WantComma()
  1905. }
  1906. in.Delim('}')
  1907. if isTopLevel {
  1908. in.Consumed()
  1909. }
  1910. }
  1911. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom24(out *jwriter.Writer, in QuerySelectorAllParams) {
  1912. out.RawByte('{')
  1913. first := true
  1914. _ = first
  1915. {
  1916. const prefix string = ",\"nodeId\":"
  1917. out.RawString(prefix[1:])
  1918. out.Int64(int64(in.NodeID))
  1919. }
  1920. {
  1921. const prefix string = ",\"selector\":"
  1922. out.RawString(prefix)
  1923. out.String(string(in.Selector))
  1924. }
  1925. out.RawByte('}')
  1926. }
  1927. // MarshalJSON supports json.Marshaler interface
  1928. func (v QuerySelectorAllParams) MarshalJSON() ([]byte, error) {
  1929. w := jwriter.Writer{}
  1930. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom24(&w, v)
  1931. return w.Buffer.BuildBytes(), w.Error
  1932. }
  1933. // MarshalEasyJSON supports easyjson.Marshaler interface
  1934. func (v QuerySelectorAllParams) MarshalEasyJSON(w *jwriter.Writer) {
  1935. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom24(w, v)
  1936. }
  1937. // UnmarshalJSON supports json.Unmarshaler interface
  1938. func (v *QuerySelectorAllParams) UnmarshalJSON(data []byte) error {
  1939. r := jlexer.Lexer{Data: data}
  1940. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom24(&r, v)
  1941. return r.Error()
  1942. }
  1943. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1944. func (v *QuerySelectorAllParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1945. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom24(l, v)
  1946. }
  1947. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom25(in *jlexer.Lexer, out *PushNodesByBackendIDsToFrontendReturns) {
  1948. isTopLevel := in.IsStart()
  1949. if in.IsNull() {
  1950. if isTopLevel {
  1951. in.Consumed()
  1952. }
  1953. in.Skip()
  1954. return
  1955. }
  1956. in.Delim('{')
  1957. for !in.IsDelim('}') {
  1958. key := in.UnsafeFieldName(false)
  1959. in.WantColon()
  1960. if in.IsNull() {
  1961. in.Skip()
  1962. in.WantComma()
  1963. continue
  1964. }
  1965. switch key {
  1966. case "nodeIds":
  1967. if in.IsNull() {
  1968. in.Skip()
  1969. out.NodeIDs = nil
  1970. } else {
  1971. in.Delim('[')
  1972. if out.NodeIDs == nil {
  1973. if !in.IsDelim(']') {
  1974. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  1975. } else {
  1976. out.NodeIDs = []cdp.NodeID{}
  1977. }
  1978. } else {
  1979. out.NodeIDs = (out.NodeIDs)[:0]
  1980. }
  1981. for !in.IsDelim(']') {
  1982. var v16 cdp.NodeID
  1983. (v16).UnmarshalEasyJSON(in)
  1984. out.NodeIDs = append(out.NodeIDs, v16)
  1985. in.WantComma()
  1986. }
  1987. in.Delim(']')
  1988. }
  1989. default:
  1990. in.SkipRecursive()
  1991. }
  1992. in.WantComma()
  1993. }
  1994. in.Delim('}')
  1995. if isTopLevel {
  1996. in.Consumed()
  1997. }
  1998. }
  1999. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom25(out *jwriter.Writer, in PushNodesByBackendIDsToFrontendReturns) {
  2000. out.RawByte('{')
  2001. first := true
  2002. _ = first
  2003. if len(in.NodeIDs) != 0 {
  2004. const prefix string = ",\"nodeIds\":"
  2005. first = false
  2006. out.RawString(prefix[1:])
  2007. {
  2008. out.RawByte('[')
  2009. for v17, v18 := range in.NodeIDs {
  2010. if v17 > 0 {
  2011. out.RawByte(',')
  2012. }
  2013. out.Int64(int64(v18))
  2014. }
  2015. out.RawByte(']')
  2016. }
  2017. }
  2018. out.RawByte('}')
  2019. }
  2020. // MarshalJSON supports json.Marshaler interface
  2021. func (v PushNodesByBackendIDsToFrontendReturns) MarshalJSON() ([]byte, error) {
  2022. w := jwriter.Writer{}
  2023. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom25(&w, v)
  2024. return w.Buffer.BuildBytes(), w.Error
  2025. }
  2026. // MarshalEasyJSON supports easyjson.Marshaler interface
  2027. func (v PushNodesByBackendIDsToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2028. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom25(w, v)
  2029. }
  2030. // UnmarshalJSON supports json.Unmarshaler interface
  2031. func (v *PushNodesByBackendIDsToFrontendReturns) UnmarshalJSON(data []byte) error {
  2032. r := jlexer.Lexer{Data: data}
  2033. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom25(&r, v)
  2034. return r.Error()
  2035. }
  2036. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2037. func (v *PushNodesByBackendIDsToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2038. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom25(l, v)
  2039. }
  2040. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom26(in *jlexer.Lexer, out *PushNodesByBackendIDsToFrontendParams) {
  2041. isTopLevel := in.IsStart()
  2042. if in.IsNull() {
  2043. if isTopLevel {
  2044. in.Consumed()
  2045. }
  2046. in.Skip()
  2047. return
  2048. }
  2049. in.Delim('{')
  2050. for !in.IsDelim('}') {
  2051. key := in.UnsafeFieldName(false)
  2052. in.WantColon()
  2053. if in.IsNull() {
  2054. in.Skip()
  2055. in.WantComma()
  2056. continue
  2057. }
  2058. switch key {
  2059. case "backendNodeIds":
  2060. if in.IsNull() {
  2061. in.Skip()
  2062. out.BackendNodeIDs = nil
  2063. } else {
  2064. in.Delim('[')
  2065. if out.BackendNodeIDs == nil {
  2066. if !in.IsDelim(']') {
  2067. out.BackendNodeIDs = make([]cdp.BackendNodeID, 0, 8)
  2068. } else {
  2069. out.BackendNodeIDs = []cdp.BackendNodeID{}
  2070. }
  2071. } else {
  2072. out.BackendNodeIDs = (out.BackendNodeIDs)[:0]
  2073. }
  2074. for !in.IsDelim(']') {
  2075. var v19 cdp.BackendNodeID
  2076. (v19).UnmarshalEasyJSON(in)
  2077. out.BackendNodeIDs = append(out.BackendNodeIDs, v19)
  2078. in.WantComma()
  2079. }
  2080. in.Delim(']')
  2081. }
  2082. default:
  2083. in.SkipRecursive()
  2084. }
  2085. in.WantComma()
  2086. }
  2087. in.Delim('}')
  2088. if isTopLevel {
  2089. in.Consumed()
  2090. }
  2091. }
  2092. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom26(out *jwriter.Writer, in PushNodesByBackendIDsToFrontendParams) {
  2093. out.RawByte('{')
  2094. first := true
  2095. _ = first
  2096. {
  2097. const prefix string = ",\"backendNodeIds\":"
  2098. out.RawString(prefix[1:])
  2099. if in.BackendNodeIDs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2100. out.RawString("null")
  2101. } else {
  2102. out.RawByte('[')
  2103. for v20, v21 := range in.BackendNodeIDs {
  2104. if v20 > 0 {
  2105. out.RawByte(',')
  2106. }
  2107. out.Int64(int64(v21))
  2108. }
  2109. out.RawByte(']')
  2110. }
  2111. }
  2112. out.RawByte('}')
  2113. }
  2114. // MarshalJSON supports json.Marshaler interface
  2115. func (v PushNodesByBackendIDsToFrontendParams) MarshalJSON() ([]byte, error) {
  2116. w := jwriter.Writer{}
  2117. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom26(&w, v)
  2118. return w.Buffer.BuildBytes(), w.Error
  2119. }
  2120. // MarshalEasyJSON supports easyjson.Marshaler interface
  2121. func (v PushNodesByBackendIDsToFrontendParams) MarshalEasyJSON(w *jwriter.Writer) {
  2122. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom26(w, v)
  2123. }
  2124. // UnmarshalJSON supports json.Unmarshaler interface
  2125. func (v *PushNodesByBackendIDsToFrontendParams) UnmarshalJSON(data []byte) error {
  2126. r := jlexer.Lexer{Data: data}
  2127. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom26(&r, v)
  2128. return r.Error()
  2129. }
  2130. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2131. func (v *PushNodesByBackendIDsToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2132. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom26(l, v)
  2133. }
  2134. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom27(in *jlexer.Lexer, out *PushNodeByPathToFrontendReturns) {
  2135. isTopLevel := in.IsStart()
  2136. if in.IsNull() {
  2137. if isTopLevel {
  2138. in.Consumed()
  2139. }
  2140. in.Skip()
  2141. return
  2142. }
  2143. in.Delim('{')
  2144. for !in.IsDelim('}') {
  2145. key := in.UnsafeFieldName(false)
  2146. in.WantColon()
  2147. if in.IsNull() {
  2148. in.Skip()
  2149. in.WantComma()
  2150. continue
  2151. }
  2152. switch key {
  2153. case "nodeId":
  2154. (out.NodeID).UnmarshalEasyJSON(in)
  2155. default:
  2156. in.SkipRecursive()
  2157. }
  2158. in.WantComma()
  2159. }
  2160. in.Delim('}')
  2161. if isTopLevel {
  2162. in.Consumed()
  2163. }
  2164. }
  2165. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom27(out *jwriter.Writer, in PushNodeByPathToFrontendReturns) {
  2166. out.RawByte('{')
  2167. first := true
  2168. _ = first
  2169. if in.NodeID != 0 {
  2170. const prefix string = ",\"nodeId\":"
  2171. first = false
  2172. out.RawString(prefix[1:])
  2173. out.Int64(int64(in.NodeID))
  2174. }
  2175. out.RawByte('}')
  2176. }
  2177. // MarshalJSON supports json.Marshaler interface
  2178. func (v PushNodeByPathToFrontendReturns) MarshalJSON() ([]byte, error) {
  2179. w := jwriter.Writer{}
  2180. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom27(&w, v)
  2181. return w.Buffer.BuildBytes(), w.Error
  2182. }
  2183. // MarshalEasyJSON supports easyjson.Marshaler interface
  2184. func (v PushNodeByPathToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2185. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom27(w, v)
  2186. }
  2187. // UnmarshalJSON supports json.Unmarshaler interface
  2188. func (v *PushNodeByPathToFrontendReturns) UnmarshalJSON(data []byte) error {
  2189. r := jlexer.Lexer{Data: data}
  2190. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom27(&r, v)
  2191. return r.Error()
  2192. }
  2193. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2194. func (v *PushNodeByPathToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2195. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom27(l, v)
  2196. }
  2197. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom28(in *jlexer.Lexer, out *PushNodeByPathToFrontendParams) {
  2198. isTopLevel := in.IsStart()
  2199. if in.IsNull() {
  2200. if isTopLevel {
  2201. in.Consumed()
  2202. }
  2203. in.Skip()
  2204. return
  2205. }
  2206. in.Delim('{')
  2207. for !in.IsDelim('}') {
  2208. key := in.UnsafeFieldName(false)
  2209. in.WantColon()
  2210. if in.IsNull() {
  2211. in.Skip()
  2212. in.WantComma()
  2213. continue
  2214. }
  2215. switch key {
  2216. case "path":
  2217. out.Path = string(in.String())
  2218. default:
  2219. in.SkipRecursive()
  2220. }
  2221. in.WantComma()
  2222. }
  2223. in.Delim('}')
  2224. if isTopLevel {
  2225. in.Consumed()
  2226. }
  2227. }
  2228. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom28(out *jwriter.Writer, in PushNodeByPathToFrontendParams) {
  2229. out.RawByte('{')
  2230. first := true
  2231. _ = first
  2232. {
  2233. const prefix string = ",\"path\":"
  2234. out.RawString(prefix[1:])
  2235. out.String(string(in.Path))
  2236. }
  2237. out.RawByte('}')
  2238. }
  2239. // MarshalJSON supports json.Marshaler interface
  2240. func (v PushNodeByPathToFrontendParams) MarshalJSON() ([]byte, error) {
  2241. w := jwriter.Writer{}
  2242. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom28(&w, v)
  2243. return w.Buffer.BuildBytes(), w.Error
  2244. }
  2245. // MarshalEasyJSON supports easyjson.Marshaler interface
  2246. func (v PushNodeByPathToFrontendParams) MarshalEasyJSON(w *jwriter.Writer) {
  2247. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom28(w, v)
  2248. }
  2249. // UnmarshalJSON supports json.Unmarshaler interface
  2250. func (v *PushNodeByPathToFrontendParams) UnmarshalJSON(data []byte) error {
  2251. r := jlexer.Lexer{Data: data}
  2252. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom28(&r, v)
  2253. return r.Error()
  2254. }
  2255. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2256. func (v *PushNodeByPathToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2257. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom28(l, v)
  2258. }
  2259. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom29(in *jlexer.Lexer, out *PerformSearchReturns) {
  2260. isTopLevel := in.IsStart()
  2261. if in.IsNull() {
  2262. if isTopLevel {
  2263. in.Consumed()
  2264. }
  2265. in.Skip()
  2266. return
  2267. }
  2268. in.Delim('{')
  2269. for !in.IsDelim('}') {
  2270. key := in.UnsafeFieldName(false)
  2271. in.WantColon()
  2272. if in.IsNull() {
  2273. in.Skip()
  2274. in.WantComma()
  2275. continue
  2276. }
  2277. switch key {
  2278. case "searchId":
  2279. out.SearchID = string(in.String())
  2280. case "resultCount":
  2281. out.ResultCount = int64(in.Int64())
  2282. default:
  2283. in.SkipRecursive()
  2284. }
  2285. in.WantComma()
  2286. }
  2287. in.Delim('}')
  2288. if isTopLevel {
  2289. in.Consumed()
  2290. }
  2291. }
  2292. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom29(out *jwriter.Writer, in PerformSearchReturns) {
  2293. out.RawByte('{')
  2294. first := true
  2295. _ = first
  2296. if in.SearchID != "" {
  2297. const prefix string = ",\"searchId\":"
  2298. first = false
  2299. out.RawString(prefix[1:])
  2300. out.String(string(in.SearchID))
  2301. }
  2302. if in.ResultCount != 0 {
  2303. const prefix string = ",\"resultCount\":"
  2304. if first {
  2305. first = false
  2306. out.RawString(prefix[1:])
  2307. } else {
  2308. out.RawString(prefix)
  2309. }
  2310. out.Int64(int64(in.ResultCount))
  2311. }
  2312. out.RawByte('}')
  2313. }
  2314. // MarshalJSON supports json.Marshaler interface
  2315. func (v PerformSearchReturns) MarshalJSON() ([]byte, error) {
  2316. w := jwriter.Writer{}
  2317. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom29(&w, v)
  2318. return w.Buffer.BuildBytes(), w.Error
  2319. }
  2320. // MarshalEasyJSON supports easyjson.Marshaler interface
  2321. func (v PerformSearchReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2322. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom29(w, v)
  2323. }
  2324. // UnmarshalJSON supports json.Unmarshaler interface
  2325. func (v *PerformSearchReturns) UnmarshalJSON(data []byte) error {
  2326. r := jlexer.Lexer{Data: data}
  2327. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom29(&r, v)
  2328. return r.Error()
  2329. }
  2330. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2331. func (v *PerformSearchReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2332. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom29(l, v)
  2333. }
  2334. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom30(in *jlexer.Lexer, out *PerformSearchParams) {
  2335. isTopLevel := in.IsStart()
  2336. if in.IsNull() {
  2337. if isTopLevel {
  2338. in.Consumed()
  2339. }
  2340. in.Skip()
  2341. return
  2342. }
  2343. in.Delim('{')
  2344. for !in.IsDelim('}') {
  2345. key := in.UnsafeFieldName(false)
  2346. in.WantColon()
  2347. if in.IsNull() {
  2348. in.Skip()
  2349. in.WantComma()
  2350. continue
  2351. }
  2352. switch key {
  2353. case "query":
  2354. out.Query = string(in.String())
  2355. case "includeUserAgentShadowDOM":
  2356. out.IncludeUserAgentShadowDOM = bool(in.Bool())
  2357. default:
  2358. in.SkipRecursive()
  2359. }
  2360. in.WantComma()
  2361. }
  2362. in.Delim('}')
  2363. if isTopLevel {
  2364. in.Consumed()
  2365. }
  2366. }
  2367. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom30(out *jwriter.Writer, in PerformSearchParams) {
  2368. out.RawByte('{')
  2369. first := true
  2370. _ = first
  2371. {
  2372. const prefix string = ",\"query\":"
  2373. out.RawString(prefix[1:])
  2374. out.String(string(in.Query))
  2375. }
  2376. if in.IncludeUserAgentShadowDOM {
  2377. const prefix string = ",\"includeUserAgentShadowDOM\":"
  2378. out.RawString(prefix)
  2379. out.Bool(bool(in.IncludeUserAgentShadowDOM))
  2380. }
  2381. out.RawByte('}')
  2382. }
  2383. // MarshalJSON supports json.Marshaler interface
  2384. func (v PerformSearchParams) MarshalJSON() ([]byte, error) {
  2385. w := jwriter.Writer{}
  2386. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom30(&w, v)
  2387. return w.Buffer.BuildBytes(), w.Error
  2388. }
  2389. // MarshalEasyJSON supports easyjson.Marshaler interface
  2390. func (v PerformSearchParams) MarshalEasyJSON(w *jwriter.Writer) {
  2391. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom30(w, v)
  2392. }
  2393. // UnmarshalJSON supports json.Unmarshaler interface
  2394. func (v *PerformSearchParams) UnmarshalJSON(data []byte) error {
  2395. r := jlexer.Lexer{Data: data}
  2396. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom30(&r, v)
  2397. return r.Error()
  2398. }
  2399. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2400. func (v *PerformSearchParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2401. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom30(l, v)
  2402. }
  2403. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom31(in *jlexer.Lexer, out *MoveToReturns) {
  2404. isTopLevel := in.IsStart()
  2405. if in.IsNull() {
  2406. if isTopLevel {
  2407. in.Consumed()
  2408. }
  2409. in.Skip()
  2410. return
  2411. }
  2412. in.Delim('{')
  2413. for !in.IsDelim('}') {
  2414. key := in.UnsafeFieldName(false)
  2415. in.WantColon()
  2416. if in.IsNull() {
  2417. in.Skip()
  2418. in.WantComma()
  2419. continue
  2420. }
  2421. switch key {
  2422. case "nodeId":
  2423. (out.NodeID).UnmarshalEasyJSON(in)
  2424. default:
  2425. in.SkipRecursive()
  2426. }
  2427. in.WantComma()
  2428. }
  2429. in.Delim('}')
  2430. if isTopLevel {
  2431. in.Consumed()
  2432. }
  2433. }
  2434. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom31(out *jwriter.Writer, in MoveToReturns) {
  2435. out.RawByte('{')
  2436. first := true
  2437. _ = first
  2438. if in.NodeID != 0 {
  2439. const prefix string = ",\"nodeId\":"
  2440. first = false
  2441. out.RawString(prefix[1:])
  2442. out.Int64(int64(in.NodeID))
  2443. }
  2444. out.RawByte('}')
  2445. }
  2446. // MarshalJSON supports json.Marshaler interface
  2447. func (v MoveToReturns) MarshalJSON() ([]byte, error) {
  2448. w := jwriter.Writer{}
  2449. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom31(&w, v)
  2450. return w.Buffer.BuildBytes(), w.Error
  2451. }
  2452. // MarshalEasyJSON supports easyjson.Marshaler interface
  2453. func (v MoveToReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2454. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom31(w, v)
  2455. }
  2456. // UnmarshalJSON supports json.Unmarshaler interface
  2457. func (v *MoveToReturns) UnmarshalJSON(data []byte) error {
  2458. r := jlexer.Lexer{Data: data}
  2459. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom31(&r, v)
  2460. return r.Error()
  2461. }
  2462. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2463. func (v *MoveToReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2464. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom31(l, v)
  2465. }
  2466. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom32(in *jlexer.Lexer, out *MoveToParams) {
  2467. isTopLevel := in.IsStart()
  2468. if in.IsNull() {
  2469. if isTopLevel {
  2470. in.Consumed()
  2471. }
  2472. in.Skip()
  2473. return
  2474. }
  2475. in.Delim('{')
  2476. for !in.IsDelim('}') {
  2477. key := in.UnsafeFieldName(false)
  2478. in.WantColon()
  2479. if in.IsNull() {
  2480. in.Skip()
  2481. in.WantComma()
  2482. continue
  2483. }
  2484. switch key {
  2485. case "nodeId":
  2486. (out.NodeID).UnmarshalEasyJSON(in)
  2487. case "targetNodeId":
  2488. (out.TargetNodeID).UnmarshalEasyJSON(in)
  2489. case "insertBeforeNodeId":
  2490. (out.InsertBeforeNodeID).UnmarshalEasyJSON(in)
  2491. default:
  2492. in.SkipRecursive()
  2493. }
  2494. in.WantComma()
  2495. }
  2496. in.Delim('}')
  2497. if isTopLevel {
  2498. in.Consumed()
  2499. }
  2500. }
  2501. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom32(out *jwriter.Writer, in MoveToParams) {
  2502. out.RawByte('{')
  2503. first := true
  2504. _ = first
  2505. {
  2506. const prefix string = ",\"nodeId\":"
  2507. out.RawString(prefix[1:])
  2508. out.Int64(int64(in.NodeID))
  2509. }
  2510. {
  2511. const prefix string = ",\"targetNodeId\":"
  2512. out.RawString(prefix)
  2513. out.Int64(int64(in.TargetNodeID))
  2514. }
  2515. if in.InsertBeforeNodeID != 0 {
  2516. const prefix string = ",\"insertBeforeNodeId\":"
  2517. out.RawString(prefix)
  2518. out.Int64(int64(in.InsertBeforeNodeID))
  2519. }
  2520. out.RawByte('}')
  2521. }
  2522. // MarshalJSON supports json.Marshaler interface
  2523. func (v MoveToParams) MarshalJSON() ([]byte, error) {
  2524. w := jwriter.Writer{}
  2525. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom32(&w, v)
  2526. return w.Buffer.BuildBytes(), w.Error
  2527. }
  2528. // MarshalEasyJSON supports easyjson.Marshaler interface
  2529. func (v MoveToParams) MarshalEasyJSON(w *jwriter.Writer) {
  2530. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom32(w, v)
  2531. }
  2532. // UnmarshalJSON supports json.Unmarshaler interface
  2533. func (v *MoveToParams) UnmarshalJSON(data []byte) error {
  2534. r := jlexer.Lexer{Data: data}
  2535. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom32(&r, v)
  2536. return r.Error()
  2537. }
  2538. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2539. func (v *MoveToParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2540. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom32(l, v)
  2541. }
  2542. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom33(in *jlexer.Lexer, out *MarkUndoableStateParams) {
  2543. isTopLevel := in.IsStart()
  2544. if in.IsNull() {
  2545. if isTopLevel {
  2546. in.Consumed()
  2547. }
  2548. in.Skip()
  2549. return
  2550. }
  2551. in.Delim('{')
  2552. for !in.IsDelim('}') {
  2553. key := in.UnsafeFieldName(false)
  2554. in.WantColon()
  2555. if in.IsNull() {
  2556. in.Skip()
  2557. in.WantComma()
  2558. continue
  2559. }
  2560. switch key {
  2561. default:
  2562. in.SkipRecursive()
  2563. }
  2564. in.WantComma()
  2565. }
  2566. in.Delim('}')
  2567. if isTopLevel {
  2568. in.Consumed()
  2569. }
  2570. }
  2571. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom33(out *jwriter.Writer, in MarkUndoableStateParams) {
  2572. out.RawByte('{')
  2573. first := true
  2574. _ = first
  2575. out.RawByte('}')
  2576. }
  2577. // MarshalJSON supports json.Marshaler interface
  2578. func (v MarkUndoableStateParams) MarshalJSON() ([]byte, error) {
  2579. w := jwriter.Writer{}
  2580. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom33(&w, v)
  2581. return w.Buffer.BuildBytes(), w.Error
  2582. }
  2583. // MarshalEasyJSON supports easyjson.Marshaler interface
  2584. func (v MarkUndoableStateParams) MarshalEasyJSON(w *jwriter.Writer) {
  2585. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom33(w, v)
  2586. }
  2587. // UnmarshalJSON supports json.Unmarshaler interface
  2588. func (v *MarkUndoableStateParams) UnmarshalJSON(data []byte) error {
  2589. r := jlexer.Lexer{Data: data}
  2590. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom33(&r, v)
  2591. return r.Error()
  2592. }
  2593. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2594. func (v *MarkUndoableStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2595. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom33(l, v)
  2596. }
  2597. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom34(in *jlexer.Lexer, out *GetTopLayerElementsReturns) {
  2598. isTopLevel := in.IsStart()
  2599. if in.IsNull() {
  2600. if isTopLevel {
  2601. in.Consumed()
  2602. }
  2603. in.Skip()
  2604. return
  2605. }
  2606. in.Delim('{')
  2607. for !in.IsDelim('}') {
  2608. key := in.UnsafeFieldName(false)
  2609. in.WantColon()
  2610. if in.IsNull() {
  2611. in.Skip()
  2612. in.WantComma()
  2613. continue
  2614. }
  2615. switch key {
  2616. case "nodeIds":
  2617. if in.IsNull() {
  2618. in.Skip()
  2619. out.NodeIDs = nil
  2620. } else {
  2621. in.Delim('[')
  2622. if out.NodeIDs == nil {
  2623. if !in.IsDelim(']') {
  2624. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  2625. } else {
  2626. out.NodeIDs = []cdp.NodeID{}
  2627. }
  2628. } else {
  2629. out.NodeIDs = (out.NodeIDs)[:0]
  2630. }
  2631. for !in.IsDelim(']') {
  2632. var v22 cdp.NodeID
  2633. (v22).UnmarshalEasyJSON(in)
  2634. out.NodeIDs = append(out.NodeIDs, v22)
  2635. in.WantComma()
  2636. }
  2637. in.Delim(']')
  2638. }
  2639. default:
  2640. in.SkipRecursive()
  2641. }
  2642. in.WantComma()
  2643. }
  2644. in.Delim('}')
  2645. if isTopLevel {
  2646. in.Consumed()
  2647. }
  2648. }
  2649. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom34(out *jwriter.Writer, in GetTopLayerElementsReturns) {
  2650. out.RawByte('{')
  2651. first := true
  2652. _ = first
  2653. if len(in.NodeIDs) != 0 {
  2654. const prefix string = ",\"nodeIds\":"
  2655. first = false
  2656. out.RawString(prefix[1:])
  2657. {
  2658. out.RawByte('[')
  2659. for v23, v24 := range in.NodeIDs {
  2660. if v23 > 0 {
  2661. out.RawByte(',')
  2662. }
  2663. out.Int64(int64(v24))
  2664. }
  2665. out.RawByte(']')
  2666. }
  2667. }
  2668. out.RawByte('}')
  2669. }
  2670. // MarshalJSON supports json.Marshaler interface
  2671. func (v GetTopLayerElementsReturns) MarshalJSON() ([]byte, error) {
  2672. w := jwriter.Writer{}
  2673. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom34(&w, v)
  2674. return w.Buffer.BuildBytes(), w.Error
  2675. }
  2676. // MarshalEasyJSON supports easyjson.Marshaler interface
  2677. func (v GetTopLayerElementsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2678. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom34(w, v)
  2679. }
  2680. // UnmarshalJSON supports json.Unmarshaler interface
  2681. func (v *GetTopLayerElementsReturns) UnmarshalJSON(data []byte) error {
  2682. r := jlexer.Lexer{Data: data}
  2683. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom34(&r, v)
  2684. return r.Error()
  2685. }
  2686. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2687. func (v *GetTopLayerElementsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2688. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom34(l, v)
  2689. }
  2690. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom35(in *jlexer.Lexer, out *GetTopLayerElementsParams) {
  2691. isTopLevel := in.IsStart()
  2692. if in.IsNull() {
  2693. if isTopLevel {
  2694. in.Consumed()
  2695. }
  2696. in.Skip()
  2697. return
  2698. }
  2699. in.Delim('{')
  2700. for !in.IsDelim('}') {
  2701. key := in.UnsafeFieldName(false)
  2702. in.WantColon()
  2703. if in.IsNull() {
  2704. in.Skip()
  2705. in.WantComma()
  2706. continue
  2707. }
  2708. switch key {
  2709. default:
  2710. in.SkipRecursive()
  2711. }
  2712. in.WantComma()
  2713. }
  2714. in.Delim('}')
  2715. if isTopLevel {
  2716. in.Consumed()
  2717. }
  2718. }
  2719. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom35(out *jwriter.Writer, in GetTopLayerElementsParams) {
  2720. out.RawByte('{')
  2721. first := true
  2722. _ = first
  2723. out.RawByte('}')
  2724. }
  2725. // MarshalJSON supports json.Marshaler interface
  2726. func (v GetTopLayerElementsParams) MarshalJSON() ([]byte, error) {
  2727. w := jwriter.Writer{}
  2728. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom35(&w, v)
  2729. return w.Buffer.BuildBytes(), w.Error
  2730. }
  2731. // MarshalEasyJSON supports easyjson.Marshaler interface
  2732. func (v GetTopLayerElementsParams) MarshalEasyJSON(w *jwriter.Writer) {
  2733. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom35(w, v)
  2734. }
  2735. // UnmarshalJSON supports json.Unmarshaler interface
  2736. func (v *GetTopLayerElementsParams) UnmarshalJSON(data []byte) error {
  2737. r := jlexer.Lexer{Data: data}
  2738. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom35(&r, v)
  2739. return r.Error()
  2740. }
  2741. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2742. func (v *GetTopLayerElementsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2743. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom35(l, v)
  2744. }
  2745. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom36(in *jlexer.Lexer, out *GetSearchResultsReturns) {
  2746. isTopLevel := in.IsStart()
  2747. if in.IsNull() {
  2748. if isTopLevel {
  2749. in.Consumed()
  2750. }
  2751. in.Skip()
  2752. return
  2753. }
  2754. in.Delim('{')
  2755. for !in.IsDelim('}') {
  2756. key := in.UnsafeFieldName(false)
  2757. in.WantColon()
  2758. if in.IsNull() {
  2759. in.Skip()
  2760. in.WantComma()
  2761. continue
  2762. }
  2763. switch key {
  2764. case "nodeIds":
  2765. if in.IsNull() {
  2766. in.Skip()
  2767. out.NodeIDs = nil
  2768. } else {
  2769. in.Delim('[')
  2770. if out.NodeIDs == nil {
  2771. if !in.IsDelim(']') {
  2772. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  2773. } else {
  2774. out.NodeIDs = []cdp.NodeID{}
  2775. }
  2776. } else {
  2777. out.NodeIDs = (out.NodeIDs)[:0]
  2778. }
  2779. for !in.IsDelim(']') {
  2780. var v25 cdp.NodeID
  2781. (v25).UnmarshalEasyJSON(in)
  2782. out.NodeIDs = append(out.NodeIDs, v25)
  2783. in.WantComma()
  2784. }
  2785. in.Delim(']')
  2786. }
  2787. default:
  2788. in.SkipRecursive()
  2789. }
  2790. in.WantComma()
  2791. }
  2792. in.Delim('}')
  2793. if isTopLevel {
  2794. in.Consumed()
  2795. }
  2796. }
  2797. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom36(out *jwriter.Writer, in GetSearchResultsReturns) {
  2798. out.RawByte('{')
  2799. first := true
  2800. _ = first
  2801. if len(in.NodeIDs) != 0 {
  2802. const prefix string = ",\"nodeIds\":"
  2803. first = false
  2804. out.RawString(prefix[1:])
  2805. {
  2806. out.RawByte('[')
  2807. for v26, v27 := range in.NodeIDs {
  2808. if v26 > 0 {
  2809. out.RawByte(',')
  2810. }
  2811. out.Int64(int64(v27))
  2812. }
  2813. out.RawByte(']')
  2814. }
  2815. }
  2816. out.RawByte('}')
  2817. }
  2818. // MarshalJSON supports json.Marshaler interface
  2819. func (v GetSearchResultsReturns) MarshalJSON() ([]byte, error) {
  2820. w := jwriter.Writer{}
  2821. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom36(&w, v)
  2822. return w.Buffer.BuildBytes(), w.Error
  2823. }
  2824. // MarshalEasyJSON supports easyjson.Marshaler interface
  2825. func (v GetSearchResultsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2826. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom36(w, v)
  2827. }
  2828. // UnmarshalJSON supports json.Unmarshaler interface
  2829. func (v *GetSearchResultsReturns) UnmarshalJSON(data []byte) error {
  2830. r := jlexer.Lexer{Data: data}
  2831. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom36(&r, v)
  2832. return r.Error()
  2833. }
  2834. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2835. func (v *GetSearchResultsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2836. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom36(l, v)
  2837. }
  2838. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom37(in *jlexer.Lexer, out *GetSearchResultsParams) {
  2839. isTopLevel := in.IsStart()
  2840. if in.IsNull() {
  2841. if isTopLevel {
  2842. in.Consumed()
  2843. }
  2844. in.Skip()
  2845. return
  2846. }
  2847. in.Delim('{')
  2848. for !in.IsDelim('}') {
  2849. key := in.UnsafeFieldName(false)
  2850. in.WantColon()
  2851. if in.IsNull() {
  2852. in.Skip()
  2853. in.WantComma()
  2854. continue
  2855. }
  2856. switch key {
  2857. case "searchId":
  2858. out.SearchID = string(in.String())
  2859. case "fromIndex":
  2860. out.FromIndex = int64(in.Int64())
  2861. case "toIndex":
  2862. out.ToIndex = int64(in.Int64())
  2863. default:
  2864. in.SkipRecursive()
  2865. }
  2866. in.WantComma()
  2867. }
  2868. in.Delim('}')
  2869. if isTopLevel {
  2870. in.Consumed()
  2871. }
  2872. }
  2873. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom37(out *jwriter.Writer, in GetSearchResultsParams) {
  2874. out.RawByte('{')
  2875. first := true
  2876. _ = first
  2877. {
  2878. const prefix string = ",\"searchId\":"
  2879. out.RawString(prefix[1:])
  2880. out.String(string(in.SearchID))
  2881. }
  2882. {
  2883. const prefix string = ",\"fromIndex\":"
  2884. out.RawString(prefix)
  2885. out.Int64(int64(in.FromIndex))
  2886. }
  2887. {
  2888. const prefix string = ",\"toIndex\":"
  2889. out.RawString(prefix)
  2890. out.Int64(int64(in.ToIndex))
  2891. }
  2892. out.RawByte('}')
  2893. }
  2894. // MarshalJSON supports json.Marshaler interface
  2895. func (v GetSearchResultsParams) MarshalJSON() ([]byte, error) {
  2896. w := jwriter.Writer{}
  2897. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom37(&w, v)
  2898. return w.Buffer.BuildBytes(), w.Error
  2899. }
  2900. // MarshalEasyJSON supports easyjson.Marshaler interface
  2901. func (v GetSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer) {
  2902. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom37(w, v)
  2903. }
  2904. // UnmarshalJSON supports json.Unmarshaler interface
  2905. func (v *GetSearchResultsParams) UnmarshalJSON(data []byte) error {
  2906. r := jlexer.Lexer{Data: data}
  2907. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom37(&r, v)
  2908. return r.Error()
  2909. }
  2910. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2911. func (v *GetSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2912. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom37(l, v)
  2913. }
  2914. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom38(in *jlexer.Lexer, out *GetRelayoutBoundaryReturns) {
  2915. isTopLevel := in.IsStart()
  2916. if in.IsNull() {
  2917. if isTopLevel {
  2918. in.Consumed()
  2919. }
  2920. in.Skip()
  2921. return
  2922. }
  2923. in.Delim('{')
  2924. for !in.IsDelim('}') {
  2925. key := in.UnsafeFieldName(false)
  2926. in.WantColon()
  2927. if in.IsNull() {
  2928. in.Skip()
  2929. in.WantComma()
  2930. continue
  2931. }
  2932. switch key {
  2933. case "nodeId":
  2934. (out.NodeID).UnmarshalEasyJSON(in)
  2935. default:
  2936. in.SkipRecursive()
  2937. }
  2938. in.WantComma()
  2939. }
  2940. in.Delim('}')
  2941. if isTopLevel {
  2942. in.Consumed()
  2943. }
  2944. }
  2945. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom38(out *jwriter.Writer, in GetRelayoutBoundaryReturns) {
  2946. out.RawByte('{')
  2947. first := true
  2948. _ = first
  2949. if in.NodeID != 0 {
  2950. const prefix string = ",\"nodeId\":"
  2951. first = false
  2952. out.RawString(prefix[1:])
  2953. out.Int64(int64(in.NodeID))
  2954. }
  2955. out.RawByte('}')
  2956. }
  2957. // MarshalJSON supports json.Marshaler interface
  2958. func (v GetRelayoutBoundaryReturns) MarshalJSON() ([]byte, error) {
  2959. w := jwriter.Writer{}
  2960. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom38(&w, v)
  2961. return w.Buffer.BuildBytes(), w.Error
  2962. }
  2963. // MarshalEasyJSON supports easyjson.Marshaler interface
  2964. func (v GetRelayoutBoundaryReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2965. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom38(w, v)
  2966. }
  2967. // UnmarshalJSON supports json.Unmarshaler interface
  2968. func (v *GetRelayoutBoundaryReturns) UnmarshalJSON(data []byte) error {
  2969. r := jlexer.Lexer{Data: data}
  2970. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom38(&r, v)
  2971. return r.Error()
  2972. }
  2973. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2974. func (v *GetRelayoutBoundaryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2975. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom38(l, v)
  2976. }
  2977. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom39(in *jlexer.Lexer, out *GetRelayoutBoundaryParams) {
  2978. isTopLevel := in.IsStart()
  2979. if in.IsNull() {
  2980. if isTopLevel {
  2981. in.Consumed()
  2982. }
  2983. in.Skip()
  2984. return
  2985. }
  2986. in.Delim('{')
  2987. for !in.IsDelim('}') {
  2988. key := in.UnsafeFieldName(false)
  2989. in.WantColon()
  2990. if in.IsNull() {
  2991. in.Skip()
  2992. in.WantComma()
  2993. continue
  2994. }
  2995. switch key {
  2996. case "nodeId":
  2997. (out.NodeID).UnmarshalEasyJSON(in)
  2998. default:
  2999. in.SkipRecursive()
  3000. }
  3001. in.WantComma()
  3002. }
  3003. in.Delim('}')
  3004. if isTopLevel {
  3005. in.Consumed()
  3006. }
  3007. }
  3008. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom39(out *jwriter.Writer, in GetRelayoutBoundaryParams) {
  3009. out.RawByte('{')
  3010. first := true
  3011. _ = first
  3012. {
  3013. const prefix string = ",\"nodeId\":"
  3014. out.RawString(prefix[1:])
  3015. out.Int64(int64(in.NodeID))
  3016. }
  3017. out.RawByte('}')
  3018. }
  3019. // MarshalJSON supports json.Marshaler interface
  3020. func (v GetRelayoutBoundaryParams) MarshalJSON() ([]byte, error) {
  3021. w := jwriter.Writer{}
  3022. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom39(&w, v)
  3023. return w.Buffer.BuildBytes(), w.Error
  3024. }
  3025. // MarshalEasyJSON supports easyjson.Marshaler interface
  3026. func (v GetRelayoutBoundaryParams) MarshalEasyJSON(w *jwriter.Writer) {
  3027. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom39(w, v)
  3028. }
  3029. // UnmarshalJSON supports json.Unmarshaler interface
  3030. func (v *GetRelayoutBoundaryParams) UnmarshalJSON(data []byte) error {
  3031. r := jlexer.Lexer{Data: data}
  3032. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom39(&r, v)
  3033. return r.Error()
  3034. }
  3035. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3036. func (v *GetRelayoutBoundaryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3037. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom39(l, v)
  3038. }
  3039. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom40(in *jlexer.Lexer, out *GetQueryingDescendantsForContainerReturns) {
  3040. isTopLevel := in.IsStart()
  3041. if in.IsNull() {
  3042. if isTopLevel {
  3043. in.Consumed()
  3044. }
  3045. in.Skip()
  3046. return
  3047. }
  3048. in.Delim('{')
  3049. for !in.IsDelim('}') {
  3050. key := in.UnsafeFieldName(false)
  3051. in.WantColon()
  3052. if in.IsNull() {
  3053. in.Skip()
  3054. in.WantComma()
  3055. continue
  3056. }
  3057. switch key {
  3058. case "nodeIds":
  3059. if in.IsNull() {
  3060. in.Skip()
  3061. out.NodeIDs = nil
  3062. } else {
  3063. in.Delim('[')
  3064. if out.NodeIDs == nil {
  3065. if !in.IsDelim(']') {
  3066. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  3067. } else {
  3068. out.NodeIDs = []cdp.NodeID{}
  3069. }
  3070. } else {
  3071. out.NodeIDs = (out.NodeIDs)[:0]
  3072. }
  3073. for !in.IsDelim(']') {
  3074. var v28 cdp.NodeID
  3075. (v28).UnmarshalEasyJSON(in)
  3076. out.NodeIDs = append(out.NodeIDs, v28)
  3077. in.WantComma()
  3078. }
  3079. in.Delim(']')
  3080. }
  3081. default:
  3082. in.SkipRecursive()
  3083. }
  3084. in.WantComma()
  3085. }
  3086. in.Delim('}')
  3087. if isTopLevel {
  3088. in.Consumed()
  3089. }
  3090. }
  3091. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom40(out *jwriter.Writer, in GetQueryingDescendantsForContainerReturns) {
  3092. out.RawByte('{')
  3093. first := true
  3094. _ = first
  3095. if len(in.NodeIDs) != 0 {
  3096. const prefix string = ",\"nodeIds\":"
  3097. first = false
  3098. out.RawString(prefix[1:])
  3099. {
  3100. out.RawByte('[')
  3101. for v29, v30 := range in.NodeIDs {
  3102. if v29 > 0 {
  3103. out.RawByte(',')
  3104. }
  3105. out.Int64(int64(v30))
  3106. }
  3107. out.RawByte(']')
  3108. }
  3109. }
  3110. out.RawByte('}')
  3111. }
  3112. // MarshalJSON supports json.Marshaler interface
  3113. func (v GetQueryingDescendantsForContainerReturns) MarshalJSON() ([]byte, error) {
  3114. w := jwriter.Writer{}
  3115. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom40(&w, v)
  3116. return w.Buffer.BuildBytes(), w.Error
  3117. }
  3118. // MarshalEasyJSON supports easyjson.Marshaler interface
  3119. func (v GetQueryingDescendantsForContainerReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3120. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom40(w, v)
  3121. }
  3122. // UnmarshalJSON supports json.Unmarshaler interface
  3123. func (v *GetQueryingDescendantsForContainerReturns) UnmarshalJSON(data []byte) error {
  3124. r := jlexer.Lexer{Data: data}
  3125. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom40(&r, v)
  3126. return r.Error()
  3127. }
  3128. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3129. func (v *GetQueryingDescendantsForContainerReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3130. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom40(l, v)
  3131. }
  3132. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom41(in *jlexer.Lexer, out *GetQueryingDescendantsForContainerParams) {
  3133. isTopLevel := in.IsStart()
  3134. if in.IsNull() {
  3135. if isTopLevel {
  3136. in.Consumed()
  3137. }
  3138. in.Skip()
  3139. return
  3140. }
  3141. in.Delim('{')
  3142. for !in.IsDelim('}') {
  3143. key := in.UnsafeFieldName(false)
  3144. in.WantColon()
  3145. if in.IsNull() {
  3146. in.Skip()
  3147. in.WantComma()
  3148. continue
  3149. }
  3150. switch key {
  3151. case "nodeId":
  3152. (out.NodeID).UnmarshalEasyJSON(in)
  3153. default:
  3154. in.SkipRecursive()
  3155. }
  3156. in.WantComma()
  3157. }
  3158. in.Delim('}')
  3159. if isTopLevel {
  3160. in.Consumed()
  3161. }
  3162. }
  3163. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom41(out *jwriter.Writer, in GetQueryingDescendantsForContainerParams) {
  3164. out.RawByte('{')
  3165. first := true
  3166. _ = first
  3167. {
  3168. const prefix string = ",\"nodeId\":"
  3169. out.RawString(prefix[1:])
  3170. out.Int64(int64(in.NodeID))
  3171. }
  3172. out.RawByte('}')
  3173. }
  3174. // MarshalJSON supports json.Marshaler interface
  3175. func (v GetQueryingDescendantsForContainerParams) MarshalJSON() ([]byte, error) {
  3176. w := jwriter.Writer{}
  3177. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom41(&w, v)
  3178. return w.Buffer.BuildBytes(), w.Error
  3179. }
  3180. // MarshalEasyJSON supports easyjson.Marshaler interface
  3181. func (v GetQueryingDescendantsForContainerParams) MarshalEasyJSON(w *jwriter.Writer) {
  3182. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom41(w, v)
  3183. }
  3184. // UnmarshalJSON supports json.Unmarshaler interface
  3185. func (v *GetQueryingDescendantsForContainerParams) UnmarshalJSON(data []byte) error {
  3186. r := jlexer.Lexer{Data: data}
  3187. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom41(&r, v)
  3188. return r.Error()
  3189. }
  3190. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3191. func (v *GetQueryingDescendantsForContainerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3192. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom41(l, v)
  3193. }
  3194. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom42(in *jlexer.Lexer, out *GetOuterHTMLReturns) {
  3195. isTopLevel := in.IsStart()
  3196. if in.IsNull() {
  3197. if isTopLevel {
  3198. in.Consumed()
  3199. }
  3200. in.Skip()
  3201. return
  3202. }
  3203. in.Delim('{')
  3204. for !in.IsDelim('}') {
  3205. key := in.UnsafeFieldName(false)
  3206. in.WantColon()
  3207. if in.IsNull() {
  3208. in.Skip()
  3209. in.WantComma()
  3210. continue
  3211. }
  3212. switch key {
  3213. case "outerHTML":
  3214. out.OuterHTML = string(in.String())
  3215. default:
  3216. in.SkipRecursive()
  3217. }
  3218. in.WantComma()
  3219. }
  3220. in.Delim('}')
  3221. if isTopLevel {
  3222. in.Consumed()
  3223. }
  3224. }
  3225. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom42(out *jwriter.Writer, in GetOuterHTMLReturns) {
  3226. out.RawByte('{')
  3227. first := true
  3228. _ = first
  3229. if in.OuterHTML != "" {
  3230. const prefix string = ",\"outerHTML\":"
  3231. first = false
  3232. out.RawString(prefix[1:])
  3233. out.String(string(in.OuterHTML))
  3234. }
  3235. out.RawByte('}')
  3236. }
  3237. // MarshalJSON supports json.Marshaler interface
  3238. func (v GetOuterHTMLReturns) MarshalJSON() ([]byte, error) {
  3239. w := jwriter.Writer{}
  3240. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom42(&w, v)
  3241. return w.Buffer.BuildBytes(), w.Error
  3242. }
  3243. // MarshalEasyJSON supports easyjson.Marshaler interface
  3244. func (v GetOuterHTMLReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3245. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom42(w, v)
  3246. }
  3247. // UnmarshalJSON supports json.Unmarshaler interface
  3248. func (v *GetOuterHTMLReturns) UnmarshalJSON(data []byte) error {
  3249. r := jlexer.Lexer{Data: data}
  3250. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom42(&r, v)
  3251. return r.Error()
  3252. }
  3253. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3254. func (v *GetOuterHTMLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3255. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom42(l, v)
  3256. }
  3257. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom43(in *jlexer.Lexer, out *GetOuterHTMLParams) {
  3258. isTopLevel := in.IsStart()
  3259. if in.IsNull() {
  3260. if isTopLevel {
  3261. in.Consumed()
  3262. }
  3263. in.Skip()
  3264. return
  3265. }
  3266. in.Delim('{')
  3267. for !in.IsDelim('}') {
  3268. key := in.UnsafeFieldName(false)
  3269. in.WantColon()
  3270. if in.IsNull() {
  3271. in.Skip()
  3272. in.WantComma()
  3273. continue
  3274. }
  3275. switch key {
  3276. case "nodeId":
  3277. (out.NodeID).UnmarshalEasyJSON(in)
  3278. case "backendNodeId":
  3279. (out.BackendNodeID).UnmarshalEasyJSON(in)
  3280. case "objectId":
  3281. out.ObjectID = runtime.RemoteObjectID(in.String())
  3282. default:
  3283. in.SkipRecursive()
  3284. }
  3285. in.WantComma()
  3286. }
  3287. in.Delim('}')
  3288. if isTopLevel {
  3289. in.Consumed()
  3290. }
  3291. }
  3292. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom43(out *jwriter.Writer, in GetOuterHTMLParams) {
  3293. out.RawByte('{')
  3294. first := true
  3295. _ = first
  3296. if in.NodeID != 0 {
  3297. const prefix string = ",\"nodeId\":"
  3298. first = false
  3299. out.RawString(prefix[1:])
  3300. out.Int64(int64(in.NodeID))
  3301. }
  3302. if in.BackendNodeID != 0 {
  3303. const prefix string = ",\"backendNodeId\":"
  3304. if first {
  3305. first = false
  3306. out.RawString(prefix[1:])
  3307. } else {
  3308. out.RawString(prefix)
  3309. }
  3310. out.Int64(int64(in.BackendNodeID))
  3311. }
  3312. if in.ObjectID != "" {
  3313. const prefix string = ",\"objectId\":"
  3314. if first {
  3315. first = false
  3316. out.RawString(prefix[1:])
  3317. } else {
  3318. out.RawString(prefix)
  3319. }
  3320. out.String(string(in.ObjectID))
  3321. }
  3322. out.RawByte('}')
  3323. }
  3324. // MarshalJSON supports json.Marshaler interface
  3325. func (v GetOuterHTMLParams) MarshalJSON() ([]byte, error) {
  3326. w := jwriter.Writer{}
  3327. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom43(&w, v)
  3328. return w.Buffer.BuildBytes(), w.Error
  3329. }
  3330. // MarshalEasyJSON supports easyjson.Marshaler interface
  3331. func (v GetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer) {
  3332. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom43(w, v)
  3333. }
  3334. // UnmarshalJSON supports json.Unmarshaler interface
  3335. func (v *GetOuterHTMLParams) UnmarshalJSON(data []byte) error {
  3336. r := jlexer.Lexer{Data: data}
  3337. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom43(&r, v)
  3338. return r.Error()
  3339. }
  3340. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3341. func (v *GetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3342. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom43(l, v)
  3343. }
  3344. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom44(in *jlexer.Lexer, out *GetNodesForSubtreeByStyleReturns) {
  3345. isTopLevel := in.IsStart()
  3346. if in.IsNull() {
  3347. if isTopLevel {
  3348. in.Consumed()
  3349. }
  3350. in.Skip()
  3351. return
  3352. }
  3353. in.Delim('{')
  3354. for !in.IsDelim('}') {
  3355. key := in.UnsafeFieldName(false)
  3356. in.WantColon()
  3357. if in.IsNull() {
  3358. in.Skip()
  3359. in.WantComma()
  3360. continue
  3361. }
  3362. switch key {
  3363. case "nodeIds":
  3364. if in.IsNull() {
  3365. in.Skip()
  3366. out.NodeIDs = nil
  3367. } else {
  3368. in.Delim('[')
  3369. if out.NodeIDs == nil {
  3370. if !in.IsDelim(']') {
  3371. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  3372. } else {
  3373. out.NodeIDs = []cdp.NodeID{}
  3374. }
  3375. } else {
  3376. out.NodeIDs = (out.NodeIDs)[:0]
  3377. }
  3378. for !in.IsDelim(']') {
  3379. var v31 cdp.NodeID
  3380. (v31).UnmarshalEasyJSON(in)
  3381. out.NodeIDs = append(out.NodeIDs, v31)
  3382. in.WantComma()
  3383. }
  3384. in.Delim(']')
  3385. }
  3386. default:
  3387. in.SkipRecursive()
  3388. }
  3389. in.WantComma()
  3390. }
  3391. in.Delim('}')
  3392. if isTopLevel {
  3393. in.Consumed()
  3394. }
  3395. }
  3396. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom44(out *jwriter.Writer, in GetNodesForSubtreeByStyleReturns) {
  3397. out.RawByte('{')
  3398. first := true
  3399. _ = first
  3400. if len(in.NodeIDs) != 0 {
  3401. const prefix string = ",\"nodeIds\":"
  3402. first = false
  3403. out.RawString(prefix[1:])
  3404. {
  3405. out.RawByte('[')
  3406. for v32, v33 := range in.NodeIDs {
  3407. if v32 > 0 {
  3408. out.RawByte(',')
  3409. }
  3410. out.Int64(int64(v33))
  3411. }
  3412. out.RawByte(']')
  3413. }
  3414. }
  3415. out.RawByte('}')
  3416. }
  3417. // MarshalJSON supports json.Marshaler interface
  3418. func (v GetNodesForSubtreeByStyleReturns) MarshalJSON() ([]byte, error) {
  3419. w := jwriter.Writer{}
  3420. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom44(&w, v)
  3421. return w.Buffer.BuildBytes(), w.Error
  3422. }
  3423. // MarshalEasyJSON supports easyjson.Marshaler interface
  3424. func (v GetNodesForSubtreeByStyleReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3425. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom44(w, v)
  3426. }
  3427. // UnmarshalJSON supports json.Unmarshaler interface
  3428. func (v *GetNodesForSubtreeByStyleReturns) UnmarshalJSON(data []byte) error {
  3429. r := jlexer.Lexer{Data: data}
  3430. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom44(&r, v)
  3431. return r.Error()
  3432. }
  3433. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3434. func (v *GetNodesForSubtreeByStyleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3435. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom44(l, v)
  3436. }
  3437. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom45(in *jlexer.Lexer, out *GetNodesForSubtreeByStyleParams) {
  3438. isTopLevel := in.IsStart()
  3439. if in.IsNull() {
  3440. if isTopLevel {
  3441. in.Consumed()
  3442. }
  3443. in.Skip()
  3444. return
  3445. }
  3446. in.Delim('{')
  3447. for !in.IsDelim('}') {
  3448. key := in.UnsafeFieldName(false)
  3449. in.WantColon()
  3450. if in.IsNull() {
  3451. in.Skip()
  3452. in.WantComma()
  3453. continue
  3454. }
  3455. switch key {
  3456. case "nodeId":
  3457. (out.NodeID).UnmarshalEasyJSON(in)
  3458. case "computedStyles":
  3459. if in.IsNull() {
  3460. in.Skip()
  3461. out.ComputedStyles = nil
  3462. } else {
  3463. in.Delim('[')
  3464. if out.ComputedStyles == nil {
  3465. if !in.IsDelim(']') {
  3466. out.ComputedStyles = make([]*CSSComputedStyleProperty, 0, 8)
  3467. } else {
  3468. out.ComputedStyles = []*CSSComputedStyleProperty{}
  3469. }
  3470. } else {
  3471. out.ComputedStyles = (out.ComputedStyles)[:0]
  3472. }
  3473. for !in.IsDelim(']') {
  3474. var v34 *CSSComputedStyleProperty
  3475. if in.IsNull() {
  3476. in.Skip()
  3477. v34 = nil
  3478. } else {
  3479. if v34 == nil {
  3480. v34 = new(CSSComputedStyleProperty)
  3481. }
  3482. (*v34).UnmarshalEasyJSON(in)
  3483. }
  3484. out.ComputedStyles = append(out.ComputedStyles, v34)
  3485. in.WantComma()
  3486. }
  3487. in.Delim(']')
  3488. }
  3489. case "pierce":
  3490. out.Pierce = bool(in.Bool())
  3491. default:
  3492. in.SkipRecursive()
  3493. }
  3494. in.WantComma()
  3495. }
  3496. in.Delim('}')
  3497. if isTopLevel {
  3498. in.Consumed()
  3499. }
  3500. }
  3501. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom45(out *jwriter.Writer, in GetNodesForSubtreeByStyleParams) {
  3502. out.RawByte('{')
  3503. first := true
  3504. _ = first
  3505. {
  3506. const prefix string = ",\"nodeId\":"
  3507. out.RawString(prefix[1:])
  3508. out.Int64(int64(in.NodeID))
  3509. }
  3510. {
  3511. const prefix string = ",\"computedStyles\":"
  3512. out.RawString(prefix)
  3513. if in.ComputedStyles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3514. out.RawString("null")
  3515. } else {
  3516. out.RawByte('[')
  3517. for v35, v36 := range in.ComputedStyles {
  3518. if v35 > 0 {
  3519. out.RawByte(',')
  3520. }
  3521. if v36 == nil {
  3522. out.RawString("null")
  3523. } else {
  3524. (*v36).MarshalEasyJSON(out)
  3525. }
  3526. }
  3527. out.RawByte(']')
  3528. }
  3529. }
  3530. if in.Pierce {
  3531. const prefix string = ",\"pierce\":"
  3532. out.RawString(prefix)
  3533. out.Bool(bool(in.Pierce))
  3534. }
  3535. out.RawByte('}')
  3536. }
  3537. // MarshalJSON supports json.Marshaler interface
  3538. func (v GetNodesForSubtreeByStyleParams) MarshalJSON() ([]byte, error) {
  3539. w := jwriter.Writer{}
  3540. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom45(&w, v)
  3541. return w.Buffer.BuildBytes(), w.Error
  3542. }
  3543. // MarshalEasyJSON supports easyjson.Marshaler interface
  3544. func (v GetNodesForSubtreeByStyleParams) MarshalEasyJSON(w *jwriter.Writer) {
  3545. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom45(w, v)
  3546. }
  3547. // UnmarshalJSON supports json.Unmarshaler interface
  3548. func (v *GetNodesForSubtreeByStyleParams) UnmarshalJSON(data []byte) error {
  3549. r := jlexer.Lexer{Data: data}
  3550. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom45(&r, v)
  3551. return r.Error()
  3552. }
  3553. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3554. func (v *GetNodesForSubtreeByStyleParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3555. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom45(l, v)
  3556. }
  3557. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom46(in *jlexer.Lexer, out *GetNodeStackTracesReturns) {
  3558. isTopLevel := in.IsStart()
  3559. if in.IsNull() {
  3560. if isTopLevel {
  3561. in.Consumed()
  3562. }
  3563. in.Skip()
  3564. return
  3565. }
  3566. in.Delim('{')
  3567. for !in.IsDelim('}') {
  3568. key := in.UnsafeFieldName(false)
  3569. in.WantColon()
  3570. if in.IsNull() {
  3571. in.Skip()
  3572. in.WantComma()
  3573. continue
  3574. }
  3575. switch key {
  3576. case "creation":
  3577. if in.IsNull() {
  3578. in.Skip()
  3579. out.Creation = nil
  3580. } else {
  3581. if out.Creation == nil {
  3582. out.Creation = new(runtime.StackTrace)
  3583. }
  3584. (*out.Creation).UnmarshalEasyJSON(in)
  3585. }
  3586. default:
  3587. in.SkipRecursive()
  3588. }
  3589. in.WantComma()
  3590. }
  3591. in.Delim('}')
  3592. if isTopLevel {
  3593. in.Consumed()
  3594. }
  3595. }
  3596. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom46(out *jwriter.Writer, in GetNodeStackTracesReturns) {
  3597. out.RawByte('{')
  3598. first := true
  3599. _ = first
  3600. if in.Creation != nil {
  3601. const prefix string = ",\"creation\":"
  3602. first = false
  3603. out.RawString(prefix[1:])
  3604. (*in.Creation).MarshalEasyJSON(out)
  3605. }
  3606. out.RawByte('}')
  3607. }
  3608. // MarshalJSON supports json.Marshaler interface
  3609. func (v GetNodeStackTracesReturns) MarshalJSON() ([]byte, error) {
  3610. w := jwriter.Writer{}
  3611. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom46(&w, v)
  3612. return w.Buffer.BuildBytes(), w.Error
  3613. }
  3614. // MarshalEasyJSON supports easyjson.Marshaler interface
  3615. func (v GetNodeStackTracesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3616. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom46(w, v)
  3617. }
  3618. // UnmarshalJSON supports json.Unmarshaler interface
  3619. func (v *GetNodeStackTracesReturns) UnmarshalJSON(data []byte) error {
  3620. r := jlexer.Lexer{Data: data}
  3621. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom46(&r, v)
  3622. return r.Error()
  3623. }
  3624. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3625. func (v *GetNodeStackTracesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3626. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom46(l, v)
  3627. }
  3628. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom47(in *jlexer.Lexer, out *GetNodeStackTracesParams) {
  3629. isTopLevel := in.IsStart()
  3630. if in.IsNull() {
  3631. if isTopLevel {
  3632. in.Consumed()
  3633. }
  3634. in.Skip()
  3635. return
  3636. }
  3637. in.Delim('{')
  3638. for !in.IsDelim('}') {
  3639. key := in.UnsafeFieldName(false)
  3640. in.WantColon()
  3641. if in.IsNull() {
  3642. in.Skip()
  3643. in.WantComma()
  3644. continue
  3645. }
  3646. switch key {
  3647. case "nodeId":
  3648. (out.NodeID).UnmarshalEasyJSON(in)
  3649. default:
  3650. in.SkipRecursive()
  3651. }
  3652. in.WantComma()
  3653. }
  3654. in.Delim('}')
  3655. if isTopLevel {
  3656. in.Consumed()
  3657. }
  3658. }
  3659. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom47(out *jwriter.Writer, in GetNodeStackTracesParams) {
  3660. out.RawByte('{')
  3661. first := true
  3662. _ = first
  3663. {
  3664. const prefix string = ",\"nodeId\":"
  3665. out.RawString(prefix[1:])
  3666. out.Int64(int64(in.NodeID))
  3667. }
  3668. out.RawByte('}')
  3669. }
  3670. // MarshalJSON supports json.Marshaler interface
  3671. func (v GetNodeStackTracesParams) MarshalJSON() ([]byte, error) {
  3672. w := jwriter.Writer{}
  3673. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom47(&w, v)
  3674. return w.Buffer.BuildBytes(), w.Error
  3675. }
  3676. // MarshalEasyJSON supports easyjson.Marshaler interface
  3677. func (v GetNodeStackTracesParams) MarshalEasyJSON(w *jwriter.Writer) {
  3678. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom47(w, v)
  3679. }
  3680. // UnmarshalJSON supports json.Unmarshaler interface
  3681. func (v *GetNodeStackTracesParams) UnmarshalJSON(data []byte) error {
  3682. r := jlexer.Lexer{Data: data}
  3683. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom47(&r, v)
  3684. return r.Error()
  3685. }
  3686. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3687. func (v *GetNodeStackTracesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3688. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom47(l, v)
  3689. }
  3690. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom48(in *jlexer.Lexer, out *GetNodeForLocationReturns) {
  3691. isTopLevel := in.IsStart()
  3692. if in.IsNull() {
  3693. if isTopLevel {
  3694. in.Consumed()
  3695. }
  3696. in.Skip()
  3697. return
  3698. }
  3699. in.Delim('{')
  3700. for !in.IsDelim('}') {
  3701. key := in.UnsafeFieldName(false)
  3702. in.WantColon()
  3703. if in.IsNull() {
  3704. in.Skip()
  3705. in.WantComma()
  3706. continue
  3707. }
  3708. switch key {
  3709. case "backendNodeId":
  3710. (out.BackendNodeID).UnmarshalEasyJSON(in)
  3711. case "frameId":
  3712. (out.FrameID).UnmarshalEasyJSON(in)
  3713. case "nodeId":
  3714. (out.NodeID).UnmarshalEasyJSON(in)
  3715. default:
  3716. in.SkipRecursive()
  3717. }
  3718. in.WantComma()
  3719. }
  3720. in.Delim('}')
  3721. if isTopLevel {
  3722. in.Consumed()
  3723. }
  3724. }
  3725. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom48(out *jwriter.Writer, in GetNodeForLocationReturns) {
  3726. out.RawByte('{')
  3727. first := true
  3728. _ = first
  3729. if in.BackendNodeID != 0 {
  3730. const prefix string = ",\"backendNodeId\":"
  3731. first = false
  3732. out.RawString(prefix[1:])
  3733. out.Int64(int64(in.BackendNodeID))
  3734. }
  3735. if in.FrameID != "" {
  3736. const prefix string = ",\"frameId\":"
  3737. if first {
  3738. first = false
  3739. out.RawString(prefix[1:])
  3740. } else {
  3741. out.RawString(prefix)
  3742. }
  3743. out.String(string(in.FrameID))
  3744. }
  3745. if in.NodeID != 0 {
  3746. const prefix string = ",\"nodeId\":"
  3747. if first {
  3748. first = false
  3749. out.RawString(prefix[1:])
  3750. } else {
  3751. out.RawString(prefix)
  3752. }
  3753. out.Int64(int64(in.NodeID))
  3754. }
  3755. out.RawByte('}')
  3756. }
  3757. // MarshalJSON supports json.Marshaler interface
  3758. func (v GetNodeForLocationReturns) MarshalJSON() ([]byte, error) {
  3759. w := jwriter.Writer{}
  3760. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom48(&w, v)
  3761. return w.Buffer.BuildBytes(), w.Error
  3762. }
  3763. // MarshalEasyJSON supports easyjson.Marshaler interface
  3764. func (v GetNodeForLocationReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3765. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom48(w, v)
  3766. }
  3767. // UnmarshalJSON supports json.Unmarshaler interface
  3768. func (v *GetNodeForLocationReturns) UnmarshalJSON(data []byte) error {
  3769. r := jlexer.Lexer{Data: data}
  3770. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom48(&r, v)
  3771. return r.Error()
  3772. }
  3773. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3774. func (v *GetNodeForLocationReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3775. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom48(l, v)
  3776. }
  3777. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom49(in *jlexer.Lexer, out *GetNodeForLocationParams) {
  3778. isTopLevel := in.IsStart()
  3779. if in.IsNull() {
  3780. if isTopLevel {
  3781. in.Consumed()
  3782. }
  3783. in.Skip()
  3784. return
  3785. }
  3786. in.Delim('{')
  3787. for !in.IsDelim('}') {
  3788. key := in.UnsafeFieldName(false)
  3789. in.WantColon()
  3790. if in.IsNull() {
  3791. in.Skip()
  3792. in.WantComma()
  3793. continue
  3794. }
  3795. switch key {
  3796. case "x":
  3797. out.X = int64(in.Int64())
  3798. case "y":
  3799. out.Y = int64(in.Int64())
  3800. case "includeUserAgentShadowDOM":
  3801. out.IncludeUserAgentShadowDOM = bool(in.Bool())
  3802. case "ignorePointerEventsNone":
  3803. out.IgnorePointerEventsNone = bool(in.Bool())
  3804. default:
  3805. in.SkipRecursive()
  3806. }
  3807. in.WantComma()
  3808. }
  3809. in.Delim('}')
  3810. if isTopLevel {
  3811. in.Consumed()
  3812. }
  3813. }
  3814. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom49(out *jwriter.Writer, in GetNodeForLocationParams) {
  3815. out.RawByte('{')
  3816. first := true
  3817. _ = first
  3818. {
  3819. const prefix string = ",\"x\":"
  3820. out.RawString(prefix[1:])
  3821. out.Int64(int64(in.X))
  3822. }
  3823. {
  3824. const prefix string = ",\"y\":"
  3825. out.RawString(prefix)
  3826. out.Int64(int64(in.Y))
  3827. }
  3828. if in.IncludeUserAgentShadowDOM {
  3829. const prefix string = ",\"includeUserAgentShadowDOM\":"
  3830. out.RawString(prefix)
  3831. out.Bool(bool(in.IncludeUserAgentShadowDOM))
  3832. }
  3833. if in.IgnorePointerEventsNone {
  3834. const prefix string = ",\"ignorePointerEventsNone\":"
  3835. out.RawString(prefix)
  3836. out.Bool(bool(in.IgnorePointerEventsNone))
  3837. }
  3838. out.RawByte('}')
  3839. }
  3840. // MarshalJSON supports json.Marshaler interface
  3841. func (v GetNodeForLocationParams) MarshalJSON() ([]byte, error) {
  3842. w := jwriter.Writer{}
  3843. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom49(&w, v)
  3844. return w.Buffer.BuildBytes(), w.Error
  3845. }
  3846. // MarshalEasyJSON supports easyjson.Marshaler interface
  3847. func (v GetNodeForLocationParams) MarshalEasyJSON(w *jwriter.Writer) {
  3848. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom49(w, v)
  3849. }
  3850. // UnmarshalJSON supports json.Unmarshaler interface
  3851. func (v *GetNodeForLocationParams) UnmarshalJSON(data []byte) error {
  3852. r := jlexer.Lexer{Data: data}
  3853. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom49(&r, v)
  3854. return r.Error()
  3855. }
  3856. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3857. func (v *GetNodeForLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3858. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom49(l, v)
  3859. }
  3860. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom50(in *jlexer.Lexer, out *GetFrameOwnerReturns) {
  3861. isTopLevel := in.IsStart()
  3862. if in.IsNull() {
  3863. if isTopLevel {
  3864. in.Consumed()
  3865. }
  3866. in.Skip()
  3867. return
  3868. }
  3869. in.Delim('{')
  3870. for !in.IsDelim('}') {
  3871. key := in.UnsafeFieldName(false)
  3872. in.WantColon()
  3873. if in.IsNull() {
  3874. in.Skip()
  3875. in.WantComma()
  3876. continue
  3877. }
  3878. switch key {
  3879. case "backendNodeId":
  3880. (out.BackendNodeID).UnmarshalEasyJSON(in)
  3881. case "nodeId":
  3882. (out.NodeID).UnmarshalEasyJSON(in)
  3883. default:
  3884. in.SkipRecursive()
  3885. }
  3886. in.WantComma()
  3887. }
  3888. in.Delim('}')
  3889. if isTopLevel {
  3890. in.Consumed()
  3891. }
  3892. }
  3893. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom50(out *jwriter.Writer, in GetFrameOwnerReturns) {
  3894. out.RawByte('{')
  3895. first := true
  3896. _ = first
  3897. if in.BackendNodeID != 0 {
  3898. const prefix string = ",\"backendNodeId\":"
  3899. first = false
  3900. out.RawString(prefix[1:])
  3901. out.Int64(int64(in.BackendNodeID))
  3902. }
  3903. if in.NodeID != 0 {
  3904. const prefix string = ",\"nodeId\":"
  3905. if first {
  3906. first = false
  3907. out.RawString(prefix[1:])
  3908. } else {
  3909. out.RawString(prefix)
  3910. }
  3911. out.Int64(int64(in.NodeID))
  3912. }
  3913. out.RawByte('}')
  3914. }
  3915. // MarshalJSON supports json.Marshaler interface
  3916. func (v GetFrameOwnerReturns) MarshalJSON() ([]byte, error) {
  3917. w := jwriter.Writer{}
  3918. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom50(&w, v)
  3919. return w.Buffer.BuildBytes(), w.Error
  3920. }
  3921. // MarshalEasyJSON supports easyjson.Marshaler interface
  3922. func (v GetFrameOwnerReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3923. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom50(w, v)
  3924. }
  3925. // UnmarshalJSON supports json.Unmarshaler interface
  3926. func (v *GetFrameOwnerReturns) UnmarshalJSON(data []byte) error {
  3927. r := jlexer.Lexer{Data: data}
  3928. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom50(&r, v)
  3929. return r.Error()
  3930. }
  3931. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3932. func (v *GetFrameOwnerReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3933. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom50(l, v)
  3934. }
  3935. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom51(in *jlexer.Lexer, out *GetFrameOwnerParams) {
  3936. isTopLevel := in.IsStart()
  3937. if in.IsNull() {
  3938. if isTopLevel {
  3939. in.Consumed()
  3940. }
  3941. in.Skip()
  3942. return
  3943. }
  3944. in.Delim('{')
  3945. for !in.IsDelim('}') {
  3946. key := in.UnsafeFieldName(false)
  3947. in.WantColon()
  3948. if in.IsNull() {
  3949. in.Skip()
  3950. in.WantComma()
  3951. continue
  3952. }
  3953. switch key {
  3954. case "frameId":
  3955. (out.FrameID).UnmarshalEasyJSON(in)
  3956. default:
  3957. in.SkipRecursive()
  3958. }
  3959. in.WantComma()
  3960. }
  3961. in.Delim('}')
  3962. if isTopLevel {
  3963. in.Consumed()
  3964. }
  3965. }
  3966. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom51(out *jwriter.Writer, in GetFrameOwnerParams) {
  3967. out.RawByte('{')
  3968. first := true
  3969. _ = first
  3970. {
  3971. const prefix string = ",\"frameId\":"
  3972. out.RawString(prefix[1:])
  3973. out.String(string(in.FrameID))
  3974. }
  3975. out.RawByte('}')
  3976. }
  3977. // MarshalJSON supports json.Marshaler interface
  3978. func (v GetFrameOwnerParams) MarshalJSON() ([]byte, error) {
  3979. w := jwriter.Writer{}
  3980. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom51(&w, v)
  3981. return w.Buffer.BuildBytes(), w.Error
  3982. }
  3983. // MarshalEasyJSON supports easyjson.Marshaler interface
  3984. func (v GetFrameOwnerParams) MarshalEasyJSON(w *jwriter.Writer) {
  3985. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom51(w, v)
  3986. }
  3987. // UnmarshalJSON supports json.Unmarshaler interface
  3988. func (v *GetFrameOwnerParams) UnmarshalJSON(data []byte) error {
  3989. r := jlexer.Lexer{Data: data}
  3990. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom51(&r, v)
  3991. return r.Error()
  3992. }
  3993. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3994. func (v *GetFrameOwnerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3995. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom51(l, v)
  3996. }
  3997. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom52(in *jlexer.Lexer, out *GetFileInfoReturns) {
  3998. isTopLevel := in.IsStart()
  3999. if in.IsNull() {
  4000. if isTopLevel {
  4001. in.Consumed()
  4002. }
  4003. in.Skip()
  4004. return
  4005. }
  4006. in.Delim('{')
  4007. for !in.IsDelim('}') {
  4008. key := in.UnsafeFieldName(false)
  4009. in.WantColon()
  4010. if in.IsNull() {
  4011. in.Skip()
  4012. in.WantComma()
  4013. continue
  4014. }
  4015. switch key {
  4016. case "path":
  4017. out.Path = string(in.String())
  4018. default:
  4019. in.SkipRecursive()
  4020. }
  4021. in.WantComma()
  4022. }
  4023. in.Delim('}')
  4024. if isTopLevel {
  4025. in.Consumed()
  4026. }
  4027. }
  4028. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom52(out *jwriter.Writer, in GetFileInfoReturns) {
  4029. out.RawByte('{')
  4030. first := true
  4031. _ = first
  4032. if in.Path != "" {
  4033. const prefix string = ",\"path\":"
  4034. first = false
  4035. out.RawString(prefix[1:])
  4036. out.String(string(in.Path))
  4037. }
  4038. out.RawByte('}')
  4039. }
  4040. // MarshalJSON supports json.Marshaler interface
  4041. func (v GetFileInfoReturns) MarshalJSON() ([]byte, error) {
  4042. w := jwriter.Writer{}
  4043. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom52(&w, v)
  4044. return w.Buffer.BuildBytes(), w.Error
  4045. }
  4046. // MarshalEasyJSON supports easyjson.Marshaler interface
  4047. func (v GetFileInfoReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4048. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom52(w, v)
  4049. }
  4050. // UnmarshalJSON supports json.Unmarshaler interface
  4051. func (v *GetFileInfoReturns) UnmarshalJSON(data []byte) error {
  4052. r := jlexer.Lexer{Data: data}
  4053. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom52(&r, v)
  4054. return r.Error()
  4055. }
  4056. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4057. func (v *GetFileInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4058. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom52(l, v)
  4059. }
  4060. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom53(in *jlexer.Lexer, out *GetFileInfoParams) {
  4061. isTopLevel := in.IsStart()
  4062. if in.IsNull() {
  4063. if isTopLevel {
  4064. in.Consumed()
  4065. }
  4066. in.Skip()
  4067. return
  4068. }
  4069. in.Delim('{')
  4070. for !in.IsDelim('}') {
  4071. key := in.UnsafeFieldName(false)
  4072. in.WantColon()
  4073. if in.IsNull() {
  4074. in.Skip()
  4075. in.WantComma()
  4076. continue
  4077. }
  4078. switch key {
  4079. case "objectId":
  4080. out.ObjectID = runtime.RemoteObjectID(in.String())
  4081. default:
  4082. in.SkipRecursive()
  4083. }
  4084. in.WantComma()
  4085. }
  4086. in.Delim('}')
  4087. if isTopLevel {
  4088. in.Consumed()
  4089. }
  4090. }
  4091. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom53(out *jwriter.Writer, in GetFileInfoParams) {
  4092. out.RawByte('{')
  4093. first := true
  4094. _ = first
  4095. {
  4096. const prefix string = ",\"objectId\":"
  4097. out.RawString(prefix[1:])
  4098. out.String(string(in.ObjectID))
  4099. }
  4100. out.RawByte('}')
  4101. }
  4102. // MarshalJSON supports json.Marshaler interface
  4103. func (v GetFileInfoParams) MarshalJSON() ([]byte, error) {
  4104. w := jwriter.Writer{}
  4105. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom53(&w, v)
  4106. return w.Buffer.BuildBytes(), w.Error
  4107. }
  4108. // MarshalEasyJSON supports easyjson.Marshaler interface
  4109. func (v GetFileInfoParams) MarshalEasyJSON(w *jwriter.Writer) {
  4110. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom53(w, v)
  4111. }
  4112. // UnmarshalJSON supports json.Unmarshaler interface
  4113. func (v *GetFileInfoParams) UnmarshalJSON(data []byte) error {
  4114. r := jlexer.Lexer{Data: data}
  4115. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom53(&r, v)
  4116. return r.Error()
  4117. }
  4118. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4119. func (v *GetFileInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4120. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom53(l, v)
  4121. }
  4122. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom54(in *jlexer.Lexer, out *GetDocumentReturns) {
  4123. isTopLevel := in.IsStart()
  4124. if in.IsNull() {
  4125. if isTopLevel {
  4126. in.Consumed()
  4127. }
  4128. in.Skip()
  4129. return
  4130. }
  4131. in.Delim('{')
  4132. for !in.IsDelim('}') {
  4133. key := in.UnsafeFieldName(false)
  4134. in.WantColon()
  4135. if in.IsNull() {
  4136. in.Skip()
  4137. in.WantComma()
  4138. continue
  4139. }
  4140. switch key {
  4141. case "root":
  4142. if in.IsNull() {
  4143. in.Skip()
  4144. out.Root = nil
  4145. } else {
  4146. if out.Root == nil {
  4147. out.Root = new(cdp.Node)
  4148. }
  4149. (*out.Root).UnmarshalEasyJSON(in)
  4150. }
  4151. default:
  4152. in.SkipRecursive()
  4153. }
  4154. in.WantComma()
  4155. }
  4156. in.Delim('}')
  4157. if isTopLevel {
  4158. in.Consumed()
  4159. }
  4160. }
  4161. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom54(out *jwriter.Writer, in GetDocumentReturns) {
  4162. out.RawByte('{')
  4163. first := true
  4164. _ = first
  4165. if in.Root != nil {
  4166. const prefix string = ",\"root\":"
  4167. first = false
  4168. out.RawString(prefix[1:])
  4169. (*in.Root).MarshalEasyJSON(out)
  4170. }
  4171. out.RawByte('}')
  4172. }
  4173. // MarshalJSON supports json.Marshaler interface
  4174. func (v GetDocumentReturns) MarshalJSON() ([]byte, error) {
  4175. w := jwriter.Writer{}
  4176. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom54(&w, v)
  4177. return w.Buffer.BuildBytes(), w.Error
  4178. }
  4179. // MarshalEasyJSON supports easyjson.Marshaler interface
  4180. func (v GetDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4181. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom54(w, v)
  4182. }
  4183. // UnmarshalJSON supports json.Unmarshaler interface
  4184. func (v *GetDocumentReturns) UnmarshalJSON(data []byte) error {
  4185. r := jlexer.Lexer{Data: data}
  4186. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom54(&r, v)
  4187. return r.Error()
  4188. }
  4189. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4190. func (v *GetDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4191. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom54(l, v)
  4192. }
  4193. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom55(in *jlexer.Lexer, out *GetDocumentParams) {
  4194. isTopLevel := in.IsStart()
  4195. if in.IsNull() {
  4196. if isTopLevel {
  4197. in.Consumed()
  4198. }
  4199. in.Skip()
  4200. return
  4201. }
  4202. in.Delim('{')
  4203. for !in.IsDelim('}') {
  4204. key := in.UnsafeFieldName(false)
  4205. in.WantColon()
  4206. if in.IsNull() {
  4207. in.Skip()
  4208. in.WantComma()
  4209. continue
  4210. }
  4211. switch key {
  4212. case "depth":
  4213. out.Depth = int64(in.Int64())
  4214. case "pierce":
  4215. out.Pierce = bool(in.Bool())
  4216. default:
  4217. in.SkipRecursive()
  4218. }
  4219. in.WantComma()
  4220. }
  4221. in.Delim('}')
  4222. if isTopLevel {
  4223. in.Consumed()
  4224. }
  4225. }
  4226. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom55(out *jwriter.Writer, in GetDocumentParams) {
  4227. out.RawByte('{')
  4228. first := true
  4229. _ = first
  4230. if in.Depth != 0 {
  4231. const prefix string = ",\"depth\":"
  4232. first = false
  4233. out.RawString(prefix[1:])
  4234. out.Int64(int64(in.Depth))
  4235. }
  4236. if in.Pierce {
  4237. const prefix string = ",\"pierce\":"
  4238. if first {
  4239. first = false
  4240. out.RawString(prefix[1:])
  4241. } else {
  4242. out.RawString(prefix)
  4243. }
  4244. out.Bool(bool(in.Pierce))
  4245. }
  4246. out.RawByte('}')
  4247. }
  4248. // MarshalJSON supports json.Marshaler interface
  4249. func (v GetDocumentParams) MarshalJSON() ([]byte, error) {
  4250. w := jwriter.Writer{}
  4251. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom55(&w, v)
  4252. return w.Buffer.BuildBytes(), w.Error
  4253. }
  4254. // MarshalEasyJSON supports easyjson.Marshaler interface
  4255. func (v GetDocumentParams) MarshalEasyJSON(w *jwriter.Writer) {
  4256. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom55(w, v)
  4257. }
  4258. // UnmarshalJSON supports json.Unmarshaler interface
  4259. func (v *GetDocumentParams) UnmarshalJSON(data []byte) error {
  4260. r := jlexer.Lexer{Data: data}
  4261. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom55(&r, v)
  4262. return r.Error()
  4263. }
  4264. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4265. func (v *GetDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4266. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom55(l, v)
  4267. }
  4268. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom56(in *jlexer.Lexer, out *GetContentQuadsReturns) {
  4269. isTopLevel := in.IsStart()
  4270. if in.IsNull() {
  4271. if isTopLevel {
  4272. in.Consumed()
  4273. }
  4274. in.Skip()
  4275. return
  4276. }
  4277. in.Delim('{')
  4278. for !in.IsDelim('}') {
  4279. key := in.UnsafeFieldName(false)
  4280. in.WantColon()
  4281. if in.IsNull() {
  4282. in.Skip()
  4283. in.WantComma()
  4284. continue
  4285. }
  4286. switch key {
  4287. case "quads":
  4288. if in.IsNull() {
  4289. in.Skip()
  4290. out.Quads = nil
  4291. } else {
  4292. in.Delim('[')
  4293. if out.Quads == nil {
  4294. if !in.IsDelim(']') {
  4295. out.Quads = make([]Quad, 0, 2)
  4296. } else {
  4297. out.Quads = []Quad{}
  4298. }
  4299. } else {
  4300. out.Quads = (out.Quads)[:0]
  4301. }
  4302. for !in.IsDelim(']') {
  4303. var v37 Quad
  4304. if in.IsNull() {
  4305. in.Skip()
  4306. v37 = nil
  4307. } else {
  4308. in.Delim('[')
  4309. if v37 == nil {
  4310. if !in.IsDelim(']') {
  4311. v37 = make(Quad, 0, 8)
  4312. } else {
  4313. v37 = Quad{}
  4314. }
  4315. } else {
  4316. v37 = (v37)[:0]
  4317. }
  4318. for !in.IsDelim(']') {
  4319. var v38 float64
  4320. v38 = float64(in.Float64())
  4321. v37 = append(v37, v38)
  4322. in.WantComma()
  4323. }
  4324. in.Delim(']')
  4325. }
  4326. out.Quads = append(out.Quads, v37)
  4327. in.WantComma()
  4328. }
  4329. in.Delim(']')
  4330. }
  4331. default:
  4332. in.SkipRecursive()
  4333. }
  4334. in.WantComma()
  4335. }
  4336. in.Delim('}')
  4337. if isTopLevel {
  4338. in.Consumed()
  4339. }
  4340. }
  4341. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom56(out *jwriter.Writer, in GetContentQuadsReturns) {
  4342. out.RawByte('{')
  4343. first := true
  4344. _ = first
  4345. if len(in.Quads) != 0 {
  4346. const prefix string = ",\"quads\":"
  4347. first = false
  4348. out.RawString(prefix[1:])
  4349. {
  4350. out.RawByte('[')
  4351. for v39, v40 := range in.Quads {
  4352. if v39 > 0 {
  4353. out.RawByte(',')
  4354. }
  4355. if v40 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  4356. out.RawString("null")
  4357. } else {
  4358. out.RawByte('[')
  4359. for v41, v42 := range v40 {
  4360. if v41 > 0 {
  4361. out.RawByte(',')
  4362. }
  4363. out.Float64(float64(v42))
  4364. }
  4365. out.RawByte(']')
  4366. }
  4367. }
  4368. out.RawByte(']')
  4369. }
  4370. }
  4371. out.RawByte('}')
  4372. }
  4373. // MarshalJSON supports json.Marshaler interface
  4374. func (v GetContentQuadsReturns) MarshalJSON() ([]byte, error) {
  4375. w := jwriter.Writer{}
  4376. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom56(&w, v)
  4377. return w.Buffer.BuildBytes(), w.Error
  4378. }
  4379. // MarshalEasyJSON supports easyjson.Marshaler interface
  4380. func (v GetContentQuadsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4381. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom56(w, v)
  4382. }
  4383. // UnmarshalJSON supports json.Unmarshaler interface
  4384. func (v *GetContentQuadsReturns) UnmarshalJSON(data []byte) error {
  4385. r := jlexer.Lexer{Data: data}
  4386. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom56(&r, v)
  4387. return r.Error()
  4388. }
  4389. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4390. func (v *GetContentQuadsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4391. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom56(l, v)
  4392. }
  4393. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom57(in *jlexer.Lexer, out *GetContentQuadsParams) {
  4394. isTopLevel := in.IsStart()
  4395. if in.IsNull() {
  4396. if isTopLevel {
  4397. in.Consumed()
  4398. }
  4399. in.Skip()
  4400. return
  4401. }
  4402. in.Delim('{')
  4403. for !in.IsDelim('}') {
  4404. key := in.UnsafeFieldName(false)
  4405. in.WantColon()
  4406. if in.IsNull() {
  4407. in.Skip()
  4408. in.WantComma()
  4409. continue
  4410. }
  4411. switch key {
  4412. case "nodeId":
  4413. (out.NodeID).UnmarshalEasyJSON(in)
  4414. case "backendNodeId":
  4415. (out.BackendNodeID).UnmarshalEasyJSON(in)
  4416. case "objectId":
  4417. out.ObjectID = runtime.RemoteObjectID(in.String())
  4418. default:
  4419. in.SkipRecursive()
  4420. }
  4421. in.WantComma()
  4422. }
  4423. in.Delim('}')
  4424. if isTopLevel {
  4425. in.Consumed()
  4426. }
  4427. }
  4428. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom57(out *jwriter.Writer, in GetContentQuadsParams) {
  4429. out.RawByte('{')
  4430. first := true
  4431. _ = first
  4432. if in.NodeID != 0 {
  4433. const prefix string = ",\"nodeId\":"
  4434. first = false
  4435. out.RawString(prefix[1:])
  4436. out.Int64(int64(in.NodeID))
  4437. }
  4438. if in.BackendNodeID != 0 {
  4439. const prefix string = ",\"backendNodeId\":"
  4440. if first {
  4441. first = false
  4442. out.RawString(prefix[1:])
  4443. } else {
  4444. out.RawString(prefix)
  4445. }
  4446. out.Int64(int64(in.BackendNodeID))
  4447. }
  4448. if in.ObjectID != "" {
  4449. const prefix string = ",\"objectId\":"
  4450. if first {
  4451. first = false
  4452. out.RawString(prefix[1:])
  4453. } else {
  4454. out.RawString(prefix)
  4455. }
  4456. out.String(string(in.ObjectID))
  4457. }
  4458. out.RawByte('}')
  4459. }
  4460. // MarshalJSON supports json.Marshaler interface
  4461. func (v GetContentQuadsParams) MarshalJSON() ([]byte, error) {
  4462. w := jwriter.Writer{}
  4463. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom57(&w, v)
  4464. return w.Buffer.BuildBytes(), w.Error
  4465. }
  4466. // MarshalEasyJSON supports easyjson.Marshaler interface
  4467. func (v GetContentQuadsParams) MarshalEasyJSON(w *jwriter.Writer) {
  4468. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom57(w, v)
  4469. }
  4470. // UnmarshalJSON supports json.Unmarshaler interface
  4471. func (v *GetContentQuadsParams) UnmarshalJSON(data []byte) error {
  4472. r := jlexer.Lexer{Data: data}
  4473. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom57(&r, v)
  4474. return r.Error()
  4475. }
  4476. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4477. func (v *GetContentQuadsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4478. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom57(l, v)
  4479. }
  4480. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom58(in *jlexer.Lexer, out *GetContainerForNodeReturns) {
  4481. isTopLevel := in.IsStart()
  4482. if in.IsNull() {
  4483. if isTopLevel {
  4484. in.Consumed()
  4485. }
  4486. in.Skip()
  4487. return
  4488. }
  4489. in.Delim('{')
  4490. for !in.IsDelim('}') {
  4491. key := in.UnsafeFieldName(false)
  4492. in.WantColon()
  4493. if in.IsNull() {
  4494. in.Skip()
  4495. in.WantComma()
  4496. continue
  4497. }
  4498. switch key {
  4499. case "nodeId":
  4500. (out.NodeID).UnmarshalEasyJSON(in)
  4501. default:
  4502. in.SkipRecursive()
  4503. }
  4504. in.WantComma()
  4505. }
  4506. in.Delim('}')
  4507. if isTopLevel {
  4508. in.Consumed()
  4509. }
  4510. }
  4511. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom58(out *jwriter.Writer, in GetContainerForNodeReturns) {
  4512. out.RawByte('{')
  4513. first := true
  4514. _ = first
  4515. if in.NodeID != 0 {
  4516. const prefix string = ",\"nodeId\":"
  4517. first = false
  4518. out.RawString(prefix[1:])
  4519. out.Int64(int64(in.NodeID))
  4520. }
  4521. out.RawByte('}')
  4522. }
  4523. // MarshalJSON supports json.Marshaler interface
  4524. func (v GetContainerForNodeReturns) MarshalJSON() ([]byte, error) {
  4525. w := jwriter.Writer{}
  4526. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom58(&w, v)
  4527. return w.Buffer.BuildBytes(), w.Error
  4528. }
  4529. // MarshalEasyJSON supports easyjson.Marshaler interface
  4530. func (v GetContainerForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4531. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom58(w, v)
  4532. }
  4533. // UnmarshalJSON supports json.Unmarshaler interface
  4534. func (v *GetContainerForNodeReturns) UnmarshalJSON(data []byte) error {
  4535. r := jlexer.Lexer{Data: data}
  4536. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom58(&r, v)
  4537. return r.Error()
  4538. }
  4539. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4540. func (v *GetContainerForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4541. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom58(l, v)
  4542. }
  4543. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom59(in *jlexer.Lexer, out *GetContainerForNodeParams) {
  4544. isTopLevel := in.IsStart()
  4545. if in.IsNull() {
  4546. if isTopLevel {
  4547. in.Consumed()
  4548. }
  4549. in.Skip()
  4550. return
  4551. }
  4552. in.Delim('{')
  4553. for !in.IsDelim('}') {
  4554. key := in.UnsafeFieldName(false)
  4555. in.WantColon()
  4556. if in.IsNull() {
  4557. in.Skip()
  4558. in.WantComma()
  4559. continue
  4560. }
  4561. switch key {
  4562. case "nodeId":
  4563. (out.NodeID).UnmarshalEasyJSON(in)
  4564. case "containerName":
  4565. out.ContainerName = string(in.String())
  4566. case "physicalAxes":
  4567. (out.PhysicalAxes).UnmarshalEasyJSON(in)
  4568. case "logicalAxes":
  4569. (out.LogicalAxes).UnmarshalEasyJSON(in)
  4570. default:
  4571. in.SkipRecursive()
  4572. }
  4573. in.WantComma()
  4574. }
  4575. in.Delim('}')
  4576. if isTopLevel {
  4577. in.Consumed()
  4578. }
  4579. }
  4580. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom59(out *jwriter.Writer, in GetContainerForNodeParams) {
  4581. out.RawByte('{')
  4582. first := true
  4583. _ = first
  4584. {
  4585. const prefix string = ",\"nodeId\":"
  4586. out.RawString(prefix[1:])
  4587. out.Int64(int64(in.NodeID))
  4588. }
  4589. if in.ContainerName != "" {
  4590. const prefix string = ",\"containerName\":"
  4591. out.RawString(prefix)
  4592. out.String(string(in.ContainerName))
  4593. }
  4594. if in.PhysicalAxes != "" {
  4595. const prefix string = ",\"physicalAxes\":"
  4596. out.RawString(prefix)
  4597. (in.PhysicalAxes).MarshalEasyJSON(out)
  4598. }
  4599. if in.LogicalAxes != "" {
  4600. const prefix string = ",\"logicalAxes\":"
  4601. out.RawString(prefix)
  4602. (in.LogicalAxes).MarshalEasyJSON(out)
  4603. }
  4604. out.RawByte('}')
  4605. }
  4606. // MarshalJSON supports json.Marshaler interface
  4607. func (v GetContainerForNodeParams) MarshalJSON() ([]byte, error) {
  4608. w := jwriter.Writer{}
  4609. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom59(&w, v)
  4610. return w.Buffer.BuildBytes(), w.Error
  4611. }
  4612. // MarshalEasyJSON supports easyjson.Marshaler interface
  4613. func (v GetContainerForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  4614. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom59(w, v)
  4615. }
  4616. // UnmarshalJSON supports json.Unmarshaler interface
  4617. func (v *GetContainerForNodeParams) UnmarshalJSON(data []byte) error {
  4618. r := jlexer.Lexer{Data: data}
  4619. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom59(&r, v)
  4620. return r.Error()
  4621. }
  4622. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4623. func (v *GetContainerForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4624. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom59(l, v)
  4625. }
  4626. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom60(in *jlexer.Lexer, out *GetBoxModelReturns) {
  4627. isTopLevel := in.IsStart()
  4628. if in.IsNull() {
  4629. if isTopLevel {
  4630. in.Consumed()
  4631. }
  4632. in.Skip()
  4633. return
  4634. }
  4635. in.Delim('{')
  4636. for !in.IsDelim('}') {
  4637. key := in.UnsafeFieldName(false)
  4638. in.WantColon()
  4639. if in.IsNull() {
  4640. in.Skip()
  4641. in.WantComma()
  4642. continue
  4643. }
  4644. switch key {
  4645. case "model":
  4646. if in.IsNull() {
  4647. in.Skip()
  4648. out.Model = nil
  4649. } else {
  4650. if out.Model == nil {
  4651. out.Model = new(BoxModel)
  4652. }
  4653. (*out.Model).UnmarshalEasyJSON(in)
  4654. }
  4655. default:
  4656. in.SkipRecursive()
  4657. }
  4658. in.WantComma()
  4659. }
  4660. in.Delim('}')
  4661. if isTopLevel {
  4662. in.Consumed()
  4663. }
  4664. }
  4665. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom60(out *jwriter.Writer, in GetBoxModelReturns) {
  4666. out.RawByte('{')
  4667. first := true
  4668. _ = first
  4669. if in.Model != nil {
  4670. const prefix string = ",\"model\":"
  4671. first = false
  4672. out.RawString(prefix[1:])
  4673. (*in.Model).MarshalEasyJSON(out)
  4674. }
  4675. out.RawByte('}')
  4676. }
  4677. // MarshalJSON supports json.Marshaler interface
  4678. func (v GetBoxModelReturns) MarshalJSON() ([]byte, error) {
  4679. w := jwriter.Writer{}
  4680. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom60(&w, v)
  4681. return w.Buffer.BuildBytes(), w.Error
  4682. }
  4683. // MarshalEasyJSON supports easyjson.Marshaler interface
  4684. func (v GetBoxModelReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4685. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom60(w, v)
  4686. }
  4687. // UnmarshalJSON supports json.Unmarshaler interface
  4688. func (v *GetBoxModelReturns) UnmarshalJSON(data []byte) error {
  4689. r := jlexer.Lexer{Data: data}
  4690. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom60(&r, v)
  4691. return r.Error()
  4692. }
  4693. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4694. func (v *GetBoxModelReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4695. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom60(l, v)
  4696. }
  4697. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom61(in *jlexer.Lexer, out *GetBoxModelParams) {
  4698. isTopLevel := in.IsStart()
  4699. if in.IsNull() {
  4700. if isTopLevel {
  4701. in.Consumed()
  4702. }
  4703. in.Skip()
  4704. return
  4705. }
  4706. in.Delim('{')
  4707. for !in.IsDelim('}') {
  4708. key := in.UnsafeFieldName(false)
  4709. in.WantColon()
  4710. if in.IsNull() {
  4711. in.Skip()
  4712. in.WantComma()
  4713. continue
  4714. }
  4715. switch key {
  4716. case "nodeId":
  4717. (out.NodeID).UnmarshalEasyJSON(in)
  4718. case "backendNodeId":
  4719. (out.BackendNodeID).UnmarshalEasyJSON(in)
  4720. case "objectId":
  4721. out.ObjectID = runtime.RemoteObjectID(in.String())
  4722. default:
  4723. in.SkipRecursive()
  4724. }
  4725. in.WantComma()
  4726. }
  4727. in.Delim('}')
  4728. if isTopLevel {
  4729. in.Consumed()
  4730. }
  4731. }
  4732. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom61(out *jwriter.Writer, in GetBoxModelParams) {
  4733. out.RawByte('{')
  4734. first := true
  4735. _ = first
  4736. if in.NodeID != 0 {
  4737. const prefix string = ",\"nodeId\":"
  4738. first = false
  4739. out.RawString(prefix[1:])
  4740. out.Int64(int64(in.NodeID))
  4741. }
  4742. if in.BackendNodeID != 0 {
  4743. const prefix string = ",\"backendNodeId\":"
  4744. if first {
  4745. first = false
  4746. out.RawString(prefix[1:])
  4747. } else {
  4748. out.RawString(prefix)
  4749. }
  4750. out.Int64(int64(in.BackendNodeID))
  4751. }
  4752. if in.ObjectID != "" {
  4753. const prefix string = ",\"objectId\":"
  4754. if first {
  4755. first = false
  4756. out.RawString(prefix[1:])
  4757. } else {
  4758. out.RawString(prefix)
  4759. }
  4760. out.String(string(in.ObjectID))
  4761. }
  4762. out.RawByte('}')
  4763. }
  4764. // MarshalJSON supports json.Marshaler interface
  4765. func (v GetBoxModelParams) MarshalJSON() ([]byte, error) {
  4766. w := jwriter.Writer{}
  4767. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom61(&w, v)
  4768. return w.Buffer.BuildBytes(), w.Error
  4769. }
  4770. // MarshalEasyJSON supports easyjson.Marshaler interface
  4771. func (v GetBoxModelParams) MarshalEasyJSON(w *jwriter.Writer) {
  4772. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom61(w, v)
  4773. }
  4774. // UnmarshalJSON supports json.Unmarshaler interface
  4775. func (v *GetBoxModelParams) UnmarshalJSON(data []byte) error {
  4776. r := jlexer.Lexer{Data: data}
  4777. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom61(&r, v)
  4778. return r.Error()
  4779. }
  4780. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4781. func (v *GetBoxModelParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4782. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom61(l, v)
  4783. }
  4784. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom62(in *jlexer.Lexer, out *GetAttributesReturns) {
  4785. isTopLevel := in.IsStart()
  4786. if in.IsNull() {
  4787. if isTopLevel {
  4788. in.Consumed()
  4789. }
  4790. in.Skip()
  4791. return
  4792. }
  4793. in.Delim('{')
  4794. for !in.IsDelim('}') {
  4795. key := in.UnsafeFieldName(false)
  4796. in.WantColon()
  4797. if in.IsNull() {
  4798. in.Skip()
  4799. in.WantComma()
  4800. continue
  4801. }
  4802. switch key {
  4803. case "attributes":
  4804. if in.IsNull() {
  4805. in.Skip()
  4806. out.Attributes = nil
  4807. } else {
  4808. in.Delim('[')
  4809. if out.Attributes == nil {
  4810. if !in.IsDelim(']') {
  4811. out.Attributes = make([]string, 0, 4)
  4812. } else {
  4813. out.Attributes = []string{}
  4814. }
  4815. } else {
  4816. out.Attributes = (out.Attributes)[:0]
  4817. }
  4818. for !in.IsDelim(']') {
  4819. var v43 string
  4820. v43 = string(in.String())
  4821. out.Attributes = append(out.Attributes, v43)
  4822. in.WantComma()
  4823. }
  4824. in.Delim(']')
  4825. }
  4826. default:
  4827. in.SkipRecursive()
  4828. }
  4829. in.WantComma()
  4830. }
  4831. in.Delim('}')
  4832. if isTopLevel {
  4833. in.Consumed()
  4834. }
  4835. }
  4836. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom62(out *jwriter.Writer, in GetAttributesReturns) {
  4837. out.RawByte('{')
  4838. first := true
  4839. _ = first
  4840. if len(in.Attributes) != 0 {
  4841. const prefix string = ",\"attributes\":"
  4842. first = false
  4843. out.RawString(prefix[1:])
  4844. {
  4845. out.RawByte('[')
  4846. for v44, v45 := range in.Attributes {
  4847. if v44 > 0 {
  4848. out.RawByte(',')
  4849. }
  4850. out.String(string(v45))
  4851. }
  4852. out.RawByte(']')
  4853. }
  4854. }
  4855. out.RawByte('}')
  4856. }
  4857. // MarshalJSON supports json.Marshaler interface
  4858. func (v GetAttributesReturns) MarshalJSON() ([]byte, error) {
  4859. w := jwriter.Writer{}
  4860. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom62(&w, v)
  4861. return w.Buffer.BuildBytes(), w.Error
  4862. }
  4863. // MarshalEasyJSON supports easyjson.Marshaler interface
  4864. func (v GetAttributesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4865. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom62(w, v)
  4866. }
  4867. // UnmarshalJSON supports json.Unmarshaler interface
  4868. func (v *GetAttributesReturns) UnmarshalJSON(data []byte) error {
  4869. r := jlexer.Lexer{Data: data}
  4870. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom62(&r, v)
  4871. return r.Error()
  4872. }
  4873. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4874. func (v *GetAttributesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4875. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom62(l, v)
  4876. }
  4877. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom63(in *jlexer.Lexer, out *GetAttributesParams) {
  4878. isTopLevel := in.IsStart()
  4879. if in.IsNull() {
  4880. if isTopLevel {
  4881. in.Consumed()
  4882. }
  4883. in.Skip()
  4884. return
  4885. }
  4886. in.Delim('{')
  4887. for !in.IsDelim('}') {
  4888. key := in.UnsafeFieldName(false)
  4889. in.WantColon()
  4890. if in.IsNull() {
  4891. in.Skip()
  4892. in.WantComma()
  4893. continue
  4894. }
  4895. switch key {
  4896. case "nodeId":
  4897. (out.NodeID).UnmarshalEasyJSON(in)
  4898. default:
  4899. in.SkipRecursive()
  4900. }
  4901. in.WantComma()
  4902. }
  4903. in.Delim('}')
  4904. if isTopLevel {
  4905. in.Consumed()
  4906. }
  4907. }
  4908. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom63(out *jwriter.Writer, in GetAttributesParams) {
  4909. out.RawByte('{')
  4910. first := true
  4911. _ = first
  4912. {
  4913. const prefix string = ",\"nodeId\":"
  4914. out.RawString(prefix[1:])
  4915. out.Int64(int64(in.NodeID))
  4916. }
  4917. out.RawByte('}')
  4918. }
  4919. // MarshalJSON supports json.Marshaler interface
  4920. func (v GetAttributesParams) MarshalJSON() ([]byte, error) {
  4921. w := jwriter.Writer{}
  4922. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom63(&w, v)
  4923. return w.Buffer.BuildBytes(), w.Error
  4924. }
  4925. // MarshalEasyJSON supports easyjson.Marshaler interface
  4926. func (v GetAttributesParams) MarshalEasyJSON(w *jwriter.Writer) {
  4927. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom63(w, v)
  4928. }
  4929. // UnmarshalJSON supports json.Unmarshaler interface
  4930. func (v *GetAttributesParams) UnmarshalJSON(data []byte) error {
  4931. r := jlexer.Lexer{Data: data}
  4932. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom63(&r, v)
  4933. return r.Error()
  4934. }
  4935. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4936. func (v *GetAttributesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4937. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom63(l, v)
  4938. }
  4939. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom64(in *jlexer.Lexer, out *FocusParams) {
  4940. isTopLevel := in.IsStart()
  4941. if in.IsNull() {
  4942. if isTopLevel {
  4943. in.Consumed()
  4944. }
  4945. in.Skip()
  4946. return
  4947. }
  4948. in.Delim('{')
  4949. for !in.IsDelim('}') {
  4950. key := in.UnsafeFieldName(false)
  4951. in.WantColon()
  4952. if in.IsNull() {
  4953. in.Skip()
  4954. in.WantComma()
  4955. continue
  4956. }
  4957. switch key {
  4958. case "nodeId":
  4959. (out.NodeID).UnmarshalEasyJSON(in)
  4960. case "backendNodeId":
  4961. (out.BackendNodeID).UnmarshalEasyJSON(in)
  4962. case "objectId":
  4963. out.ObjectID = runtime.RemoteObjectID(in.String())
  4964. default:
  4965. in.SkipRecursive()
  4966. }
  4967. in.WantComma()
  4968. }
  4969. in.Delim('}')
  4970. if isTopLevel {
  4971. in.Consumed()
  4972. }
  4973. }
  4974. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom64(out *jwriter.Writer, in FocusParams) {
  4975. out.RawByte('{')
  4976. first := true
  4977. _ = first
  4978. if in.NodeID != 0 {
  4979. const prefix string = ",\"nodeId\":"
  4980. first = false
  4981. out.RawString(prefix[1:])
  4982. out.Int64(int64(in.NodeID))
  4983. }
  4984. if in.BackendNodeID != 0 {
  4985. const prefix string = ",\"backendNodeId\":"
  4986. if first {
  4987. first = false
  4988. out.RawString(prefix[1:])
  4989. } else {
  4990. out.RawString(prefix)
  4991. }
  4992. out.Int64(int64(in.BackendNodeID))
  4993. }
  4994. if in.ObjectID != "" {
  4995. const prefix string = ",\"objectId\":"
  4996. if first {
  4997. first = false
  4998. out.RawString(prefix[1:])
  4999. } else {
  5000. out.RawString(prefix)
  5001. }
  5002. out.String(string(in.ObjectID))
  5003. }
  5004. out.RawByte('}')
  5005. }
  5006. // MarshalJSON supports json.Marshaler interface
  5007. func (v FocusParams) MarshalJSON() ([]byte, error) {
  5008. w := jwriter.Writer{}
  5009. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom64(&w, v)
  5010. return w.Buffer.BuildBytes(), w.Error
  5011. }
  5012. // MarshalEasyJSON supports easyjson.Marshaler interface
  5013. func (v FocusParams) MarshalEasyJSON(w *jwriter.Writer) {
  5014. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom64(w, v)
  5015. }
  5016. // UnmarshalJSON supports json.Unmarshaler interface
  5017. func (v *FocusParams) UnmarshalJSON(data []byte) error {
  5018. r := jlexer.Lexer{Data: data}
  5019. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom64(&r, v)
  5020. return r.Error()
  5021. }
  5022. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5023. func (v *FocusParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5024. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom64(l, v)
  5025. }
  5026. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom65(in *jlexer.Lexer, out *EventTopLayerElementsUpdated) {
  5027. isTopLevel := in.IsStart()
  5028. if in.IsNull() {
  5029. if isTopLevel {
  5030. in.Consumed()
  5031. }
  5032. in.Skip()
  5033. return
  5034. }
  5035. in.Delim('{')
  5036. for !in.IsDelim('}') {
  5037. key := in.UnsafeFieldName(false)
  5038. in.WantColon()
  5039. if in.IsNull() {
  5040. in.Skip()
  5041. in.WantComma()
  5042. continue
  5043. }
  5044. switch key {
  5045. default:
  5046. in.SkipRecursive()
  5047. }
  5048. in.WantComma()
  5049. }
  5050. in.Delim('}')
  5051. if isTopLevel {
  5052. in.Consumed()
  5053. }
  5054. }
  5055. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom65(out *jwriter.Writer, in EventTopLayerElementsUpdated) {
  5056. out.RawByte('{')
  5057. first := true
  5058. _ = first
  5059. out.RawByte('}')
  5060. }
  5061. // MarshalJSON supports json.Marshaler interface
  5062. func (v EventTopLayerElementsUpdated) MarshalJSON() ([]byte, error) {
  5063. w := jwriter.Writer{}
  5064. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom65(&w, v)
  5065. return w.Buffer.BuildBytes(), w.Error
  5066. }
  5067. // MarshalEasyJSON supports easyjson.Marshaler interface
  5068. func (v EventTopLayerElementsUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  5069. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom65(w, v)
  5070. }
  5071. // UnmarshalJSON supports json.Unmarshaler interface
  5072. func (v *EventTopLayerElementsUpdated) UnmarshalJSON(data []byte) error {
  5073. r := jlexer.Lexer{Data: data}
  5074. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom65(&r, v)
  5075. return r.Error()
  5076. }
  5077. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5078. func (v *EventTopLayerElementsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5079. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom65(l, v)
  5080. }
  5081. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom66(in *jlexer.Lexer, out *EventShadowRootPushed) {
  5082. isTopLevel := in.IsStart()
  5083. if in.IsNull() {
  5084. if isTopLevel {
  5085. in.Consumed()
  5086. }
  5087. in.Skip()
  5088. return
  5089. }
  5090. in.Delim('{')
  5091. for !in.IsDelim('}') {
  5092. key := in.UnsafeFieldName(false)
  5093. in.WantColon()
  5094. if in.IsNull() {
  5095. in.Skip()
  5096. in.WantComma()
  5097. continue
  5098. }
  5099. switch key {
  5100. case "hostId":
  5101. (out.HostID).UnmarshalEasyJSON(in)
  5102. case "root":
  5103. if in.IsNull() {
  5104. in.Skip()
  5105. out.Root = nil
  5106. } else {
  5107. if out.Root == nil {
  5108. out.Root = new(cdp.Node)
  5109. }
  5110. (*out.Root).UnmarshalEasyJSON(in)
  5111. }
  5112. default:
  5113. in.SkipRecursive()
  5114. }
  5115. in.WantComma()
  5116. }
  5117. in.Delim('}')
  5118. if isTopLevel {
  5119. in.Consumed()
  5120. }
  5121. }
  5122. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom66(out *jwriter.Writer, in EventShadowRootPushed) {
  5123. out.RawByte('{')
  5124. first := true
  5125. _ = first
  5126. {
  5127. const prefix string = ",\"hostId\":"
  5128. out.RawString(prefix[1:])
  5129. out.Int64(int64(in.HostID))
  5130. }
  5131. {
  5132. const prefix string = ",\"root\":"
  5133. out.RawString(prefix)
  5134. if in.Root == nil {
  5135. out.RawString("null")
  5136. } else {
  5137. (*in.Root).MarshalEasyJSON(out)
  5138. }
  5139. }
  5140. out.RawByte('}')
  5141. }
  5142. // MarshalJSON supports json.Marshaler interface
  5143. func (v EventShadowRootPushed) MarshalJSON() ([]byte, error) {
  5144. w := jwriter.Writer{}
  5145. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom66(&w, v)
  5146. return w.Buffer.BuildBytes(), w.Error
  5147. }
  5148. // MarshalEasyJSON supports easyjson.Marshaler interface
  5149. func (v EventShadowRootPushed) MarshalEasyJSON(w *jwriter.Writer) {
  5150. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom66(w, v)
  5151. }
  5152. // UnmarshalJSON supports json.Unmarshaler interface
  5153. func (v *EventShadowRootPushed) UnmarshalJSON(data []byte) error {
  5154. r := jlexer.Lexer{Data: data}
  5155. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom66(&r, v)
  5156. return r.Error()
  5157. }
  5158. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5159. func (v *EventShadowRootPushed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5160. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom66(l, v)
  5161. }
  5162. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom67(in *jlexer.Lexer, out *EventShadowRootPopped) {
  5163. isTopLevel := in.IsStart()
  5164. if in.IsNull() {
  5165. if isTopLevel {
  5166. in.Consumed()
  5167. }
  5168. in.Skip()
  5169. return
  5170. }
  5171. in.Delim('{')
  5172. for !in.IsDelim('}') {
  5173. key := in.UnsafeFieldName(false)
  5174. in.WantColon()
  5175. if in.IsNull() {
  5176. in.Skip()
  5177. in.WantComma()
  5178. continue
  5179. }
  5180. switch key {
  5181. case "hostId":
  5182. (out.HostID).UnmarshalEasyJSON(in)
  5183. case "rootId":
  5184. (out.RootID).UnmarshalEasyJSON(in)
  5185. default:
  5186. in.SkipRecursive()
  5187. }
  5188. in.WantComma()
  5189. }
  5190. in.Delim('}')
  5191. if isTopLevel {
  5192. in.Consumed()
  5193. }
  5194. }
  5195. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom67(out *jwriter.Writer, in EventShadowRootPopped) {
  5196. out.RawByte('{')
  5197. first := true
  5198. _ = first
  5199. {
  5200. const prefix string = ",\"hostId\":"
  5201. out.RawString(prefix[1:])
  5202. out.Int64(int64(in.HostID))
  5203. }
  5204. {
  5205. const prefix string = ",\"rootId\":"
  5206. out.RawString(prefix)
  5207. out.Int64(int64(in.RootID))
  5208. }
  5209. out.RawByte('}')
  5210. }
  5211. // MarshalJSON supports json.Marshaler interface
  5212. func (v EventShadowRootPopped) MarshalJSON() ([]byte, error) {
  5213. w := jwriter.Writer{}
  5214. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom67(&w, v)
  5215. return w.Buffer.BuildBytes(), w.Error
  5216. }
  5217. // MarshalEasyJSON supports easyjson.Marshaler interface
  5218. func (v EventShadowRootPopped) MarshalEasyJSON(w *jwriter.Writer) {
  5219. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom67(w, v)
  5220. }
  5221. // UnmarshalJSON supports json.Unmarshaler interface
  5222. func (v *EventShadowRootPopped) UnmarshalJSON(data []byte) error {
  5223. r := jlexer.Lexer{Data: data}
  5224. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom67(&r, v)
  5225. return r.Error()
  5226. }
  5227. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5228. func (v *EventShadowRootPopped) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5229. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom67(l, v)
  5230. }
  5231. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom68(in *jlexer.Lexer, out *EventSetChildNodes) {
  5232. isTopLevel := in.IsStart()
  5233. if in.IsNull() {
  5234. if isTopLevel {
  5235. in.Consumed()
  5236. }
  5237. in.Skip()
  5238. return
  5239. }
  5240. in.Delim('{')
  5241. for !in.IsDelim('}') {
  5242. key := in.UnsafeFieldName(false)
  5243. in.WantColon()
  5244. if in.IsNull() {
  5245. in.Skip()
  5246. in.WantComma()
  5247. continue
  5248. }
  5249. switch key {
  5250. case "parentId":
  5251. (out.ParentID).UnmarshalEasyJSON(in)
  5252. case "nodes":
  5253. if in.IsNull() {
  5254. in.Skip()
  5255. out.Nodes = nil
  5256. } else {
  5257. in.Delim('[')
  5258. if out.Nodes == nil {
  5259. if !in.IsDelim(']') {
  5260. out.Nodes = make([]*cdp.Node, 0, 8)
  5261. } else {
  5262. out.Nodes = []*cdp.Node{}
  5263. }
  5264. } else {
  5265. out.Nodes = (out.Nodes)[:0]
  5266. }
  5267. for !in.IsDelim(']') {
  5268. var v46 *cdp.Node
  5269. if in.IsNull() {
  5270. in.Skip()
  5271. v46 = nil
  5272. } else {
  5273. if v46 == nil {
  5274. v46 = new(cdp.Node)
  5275. }
  5276. (*v46).UnmarshalEasyJSON(in)
  5277. }
  5278. out.Nodes = append(out.Nodes, v46)
  5279. in.WantComma()
  5280. }
  5281. in.Delim(']')
  5282. }
  5283. default:
  5284. in.SkipRecursive()
  5285. }
  5286. in.WantComma()
  5287. }
  5288. in.Delim('}')
  5289. if isTopLevel {
  5290. in.Consumed()
  5291. }
  5292. }
  5293. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom68(out *jwriter.Writer, in EventSetChildNodes) {
  5294. out.RawByte('{')
  5295. first := true
  5296. _ = first
  5297. {
  5298. const prefix string = ",\"parentId\":"
  5299. out.RawString(prefix[1:])
  5300. out.Int64(int64(in.ParentID))
  5301. }
  5302. {
  5303. const prefix string = ",\"nodes\":"
  5304. out.RawString(prefix)
  5305. if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5306. out.RawString("null")
  5307. } else {
  5308. out.RawByte('[')
  5309. for v47, v48 := range in.Nodes {
  5310. if v47 > 0 {
  5311. out.RawByte(',')
  5312. }
  5313. if v48 == nil {
  5314. out.RawString("null")
  5315. } else {
  5316. (*v48).MarshalEasyJSON(out)
  5317. }
  5318. }
  5319. out.RawByte(']')
  5320. }
  5321. }
  5322. out.RawByte('}')
  5323. }
  5324. // MarshalJSON supports json.Marshaler interface
  5325. func (v EventSetChildNodes) MarshalJSON() ([]byte, error) {
  5326. w := jwriter.Writer{}
  5327. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom68(&w, v)
  5328. return w.Buffer.BuildBytes(), w.Error
  5329. }
  5330. // MarshalEasyJSON supports easyjson.Marshaler interface
  5331. func (v EventSetChildNodes) MarshalEasyJSON(w *jwriter.Writer) {
  5332. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom68(w, v)
  5333. }
  5334. // UnmarshalJSON supports json.Unmarshaler interface
  5335. func (v *EventSetChildNodes) UnmarshalJSON(data []byte) error {
  5336. r := jlexer.Lexer{Data: data}
  5337. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom68(&r, v)
  5338. return r.Error()
  5339. }
  5340. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5341. func (v *EventSetChildNodes) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5342. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom68(l, v)
  5343. }
  5344. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom69(in *jlexer.Lexer, out *EventPseudoElementRemoved) {
  5345. isTopLevel := in.IsStart()
  5346. if in.IsNull() {
  5347. if isTopLevel {
  5348. in.Consumed()
  5349. }
  5350. in.Skip()
  5351. return
  5352. }
  5353. in.Delim('{')
  5354. for !in.IsDelim('}') {
  5355. key := in.UnsafeFieldName(false)
  5356. in.WantColon()
  5357. if in.IsNull() {
  5358. in.Skip()
  5359. in.WantComma()
  5360. continue
  5361. }
  5362. switch key {
  5363. case "parentId":
  5364. (out.ParentID).UnmarshalEasyJSON(in)
  5365. case "pseudoElementId":
  5366. (out.PseudoElementID).UnmarshalEasyJSON(in)
  5367. default:
  5368. in.SkipRecursive()
  5369. }
  5370. in.WantComma()
  5371. }
  5372. in.Delim('}')
  5373. if isTopLevel {
  5374. in.Consumed()
  5375. }
  5376. }
  5377. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom69(out *jwriter.Writer, in EventPseudoElementRemoved) {
  5378. out.RawByte('{')
  5379. first := true
  5380. _ = first
  5381. {
  5382. const prefix string = ",\"parentId\":"
  5383. out.RawString(prefix[1:])
  5384. out.Int64(int64(in.ParentID))
  5385. }
  5386. {
  5387. const prefix string = ",\"pseudoElementId\":"
  5388. out.RawString(prefix)
  5389. out.Int64(int64(in.PseudoElementID))
  5390. }
  5391. out.RawByte('}')
  5392. }
  5393. // MarshalJSON supports json.Marshaler interface
  5394. func (v EventPseudoElementRemoved) MarshalJSON() ([]byte, error) {
  5395. w := jwriter.Writer{}
  5396. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom69(&w, v)
  5397. return w.Buffer.BuildBytes(), w.Error
  5398. }
  5399. // MarshalEasyJSON supports easyjson.Marshaler interface
  5400. func (v EventPseudoElementRemoved) MarshalEasyJSON(w *jwriter.Writer) {
  5401. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom69(w, v)
  5402. }
  5403. // UnmarshalJSON supports json.Unmarshaler interface
  5404. func (v *EventPseudoElementRemoved) UnmarshalJSON(data []byte) error {
  5405. r := jlexer.Lexer{Data: data}
  5406. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom69(&r, v)
  5407. return r.Error()
  5408. }
  5409. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5410. func (v *EventPseudoElementRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5411. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom69(l, v)
  5412. }
  5413. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom70(in *jlexer.Lexer, out *EventPseudoElementAdded) {
  5414. isTopLevel := in.IsStart()
  5415. if in.IsNull() {
  5416. if isTopLevel {
  5417. in.Consumed()
  5418. }
  5419. in.Skip()
  5420. return
  5421. }
  5422. in.Delim('{')
  5423. for !in.IsDelim('}') {
  5424. key := in.UnsafeFieldName(false)
  5425. in.WantColon()
  5426. if in.IsNull() {
  5427. in.Skip()
  5428. in.WantComma()
  5429. continue
  5430. }
  5431. switch key {
  5432. case "parentId":
  5433. (out.ParentID).UnmarshalEasyJSON(in)
  5434. case "pseudoElement":
  5435. if in.IsNull() {
  5436. in.Skip()
  5437. out.PseudoElement = nil
  5438. } else {
  5439. if out.PseudoElement == nil {
  5440. out.PseudoElement = new(cdp.Node)
  5441. }
  5442. (*out.PseudoElement).UnmarshalEasyJSON(in)
  5443. }
  5444. default:
  5445. in.SkipRecursive()
  5446. }
  5447. in.WantComma()
  5448. }
  5449. in.Delim('}')
  5450. if isTopLevel {
  5451. in.Consumed()
  5452. }
  5453. }
  5454. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom70(out *jwriter.Writer, in EventPseudoElementAdded) {
  5455. out.RawByte('{')
  5456. first := true
  5457. _ = first
  5458. {
  5459. const prefix string = ",\"parentId\":"
  5460. out.RawString(prefix[1:])
  5461. out.Int64(int64(in.ParentID))
  5462. }
  5463. {
  5464. const prefix string = ",\"pseudoElement\":"
  5465. out.RawString(prefix)
  5466. if in.PseudoElement == nil {
  5467. out.RawString("null")
  5468. } else {
  5469. (*in.PseudoElement).MarshalEasyJSON(out)
  5470. }
  5471. }
  5472. out.RawByte('}')
  5473. }
  5474. // MarshalJSON supports json.Marshaler interface
  5475. func (v EventPseudoElementAdded) MarshalJSON() ([]byte, error) {
  5476. w := jwriter.Writer{}
  5477. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom70(&w, v)
  5478. return w.Buffer.BuildBytes(), w.Error
  5479. }
  5480. // MarshalEasyJSON supports easyjson.Marshaler interface
  5481. func (v EventPseudoElementAdded) MarshalEasyJSON(w *jwriter.Writer) {
  5482. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom70(w, v)
  5483. }
  5484. // UnmarshalJSON supports json.Unmarshaler interface
  5485. func (v *EventPseudoElementAdded) UnmarshalJSON(data []byte) error {
  5486. r := jlexer.Lexer{Data: data}
  5487. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom70(&r, v)
  5488. return r.Error()
  5489. }
  5490. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5491. func (v *EventPseudoElementAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5492. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom70(l, v)
  5493. }
  5494. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom71(in *jlexer.Lexer, out *EventInlineStyleInvalidated) {
  5495. isTopLevel := in.IsStart()
  5496. if in.IsNull() {
  5497. if isTopLevel {
  5498. in.Consumed()
  5499. }
  5500. in.Skip()
  5501. return
  5502. }
  5503. in.Delim('{')
  5504. for !in.IsDelim('}') {
  5505. key := in.UnsafeFieldName(false)
  5506. in.WantColon()
  5507. if in.IsNull() {
  5508. in.Skip()
  5509. in.WantComma()
  5510. continue
  5511. }
  5512. switch key {
  5513. case "nodeIds":
  5514. if in.IsNull() {
  5515. in.Skip()
  5516. out.NodeIDs = nil
  5517. } else {
  5518. in.Delim('[')
  5519. if out.NodeIDs == nil {
  5520. if !in.IsDelim(']') {
  5521. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  5522. } else {
  5523. out.NodeIDs = []cdp.NodeID{}
  5524. }
  5525. } else {
  5526. out.NodeIDs = (out.NodeIDs)[:0]
  5527. }
  5528. for !in.IsDelim(']') {
  5529. var v49 cdp.NodeID
  5530. (v49).UnmarshalEasyJSON(in)
  5531. out.NodeIDs = append(out.NodeIDs, v49)
  5532. in.WantComma()
  5533. }
  5534. in.Delim(']')
  5535. }
  5536. default:
  5537. in.SkipRecursive()
  5538. }
  5539. in.WantComma()
  5540. }
  5541. in.Delim('}')
  5542. if isTopLevel {
  5543. in.Consumed()
  5544. }
  5545. }
  5546. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom71(out *jwriter.Writer, in EventInlineStyleInvalidated) {
  5547. out.RawByte('{')
  5548. first := true
  5549. _ = first
  5550. {
  5551. const prefix string = ",\"nodeIds\":"
  5552. out.RawString(prefix[1:])
  5553. if in.NodeIDs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5554. out.RawString("null")
  5555. } else {
  5556. out.RawByte('[')
  5557. for v50, v51 := range in.NodeIDs {
  5558. if v50 > 0 {
  5559. out.RawByte(',')
  5560. }
  5561. out.Int64(int64(v51))
  5562. }
  5563. out.RawByte(']')
  5564. }
  5565. }
  5566. out.RawByte('}')
  5567. }
  5568. // MarshalJSON supports json.Marshaler interface
  5569. func (v EventInlineStyleInvalidated) MarshalJSON() ([]byte, error) {
  5570. w := jwriter.Writer{}
  5571. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom71(&w, v)
  5572. return w.Buffer.BuildBytes(), w.Error
  5573. }
  5574. // MarshalEasyJSON supports easyjson.Marshaler interface
  5575. func (v EventInlineStyleInvalidated) MarshalEasyJSON(w *jwriter.Writer) {
  5576. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom71(w, v)
  5577. }
  5578. // UnmarshalJSON supports json.Unmarshaler interface
  5579. func (v *EventInlineStyleInvalidated) UnmarshalJSON(data []byte) error {
  5580. r := jlexer.Lexer{Data: data}
  5581. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom71(&r, v)
  5582. return r.Error()
  5583. }
  5584. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5585. func (v *EventInlineStyleInvalidated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5586. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom71(l, v)
  5587. }
  5588. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom72(in *jlexer.Lexer, out *EventDocumentUpdated) {
  5589. isTopLevel := in.IsStart()
  5590. if in.IsNull() {
  5591. if isTopLevel {
  5592. in.Consumed()
  5593. }
  5594. in.Skip()
  5595. return
  5596. }
  5597. in.Delim('{')
  5598. for !in.IsDelim('}') {
  5599. key := in.UnsafeFieldName(false)
  5600. in.WantColon()
  5601. if in.IsNull() {
  5602. in.Skip()
  5603. in.WantComma()
  5604. continue
  5605. }
  5606. switch key {
  5607. default:
  5608. in.SkipRecursive()
  5609. }
  5610. in.WantComma()
  5611. }
  5612. in.Delim('}')
  5613. if isTopLevel {
  5614. in.Consumed()
  5615. }
  5616. }
  5617. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom72(out *jwriter.Writer, in EventDocumentUpdated) {
  5618. out.RawByte('{')
  5619. first := true
  5620. _ = first
  5621. out.RawByte('}')
  5622. }
  5623. // MarshalJSON supports json.Marshaler interface
  5624. func (v EventDocumentUpdated) MarshalJSON() ([]byte, error) {
  5625. w := jwriter.Writer{}
  5626. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom72(&w, v)
  5627. return w.Buffer.BuildBytes(), w.Error
  5628. }
  5629. // MarshalEasyJSON supports easyjson.Marshaler interface
  5630. func (v EventDocumentUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  5631. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom72(w, v)
  5632. }
  5633. // UnmarshalJSON supports json.Unmarshaler interface
  5634. func (v *EventDocumentUpdated) UnmarshalJSON(data []byte) error {
  5635. r := jlexer.Lexer{Data: data}
  5636. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom72(&r, v)
  5637. return r.Error()
  5638. }
  5639. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5640. func (v *EventDocumentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5641. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom72(l, v)
  5642. }
  5643. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom73(in *jlexer.Lexer, out *EventDistributedNodesUpdated) {
  5644. isTopLevel := in.IsStart()
  5645. if in.IsNull() {
  5646. if isTopLevel {
  5647. in.Consumed()
  5648. }
  5649. in.Skip()
  5650. return
  5651. }
  5652. in.Delim('{')
  5653. for !in.IsDelim('}') {
  5654. key := in.UnsafeFieldName(false)
  5655. in.WantColon()
  5656. if in.IsNull() {
  5657. in.Skip()
  5658. in.WantComma()
  5659. continue
  5660. }
  5661. switch key {
  5662. case "insertionPointId":
  5663. (out.InsertionPointID).UnmarshalEasyJSON(in)
  5664. case "distributedNodes":
  5665. if in.IsNull() {
  5666. in.Skip()
  5667. out.DistributedNodes = nil
  5668. } else {
  5669. in.Delim('[')
  5670. if out.DistributedNodes == nil {
  5671. if !in.IsDelim(']') {
  5672. out.DistributedNodes = make([]*cdp.BackendNode, 0, 8)
  5673. } else {
  5674. out.DistributedNodes = []*cdp.BackendNode{}
  5675. }
  5676. } else {
  5677. out.DistributedNodes = (out.DistributedNodes)[:0]
  5678. }
  5679. for !in.IsDelim(']') {
  5680. var v52 *cdp.BackendNode
  5681. if in.IsNull() {
  5682. in.Skip()
  5683. v52 = nil
  5684. } else {
  5685. if v52 == nil {
  5686. v52 = new(cdp.BackendNode)
  5687. }
  5688. (*v52).UnmarshalEasyJSON(in)
  5689. }
  5690. out.DistributedNodes = append(out.DistributedNodes, v52)
  5691. in.WantComma()
  5692. }
  5693. in.Delim(']')
  5694. }
  5695. default:
  5696. in.SkipRecursive()
  5697. }
  5698. in.WantComma()
  5699. }
  5700. in.Delim('}')
  5701. if isTopLevel {
  5702. in.Consumed()
  5703. }
  5704. }
  5705. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom73(out *jwriter.Writer, in EventDistributedNodesUpdated) {
  5706. out.RawByte('{')
  5707. first := true
  5708. _ = first
  5709. {
  5710. const prefix string = ",\"insertionPointId\":"
  5711. out.RawString(prefix[1:])
  5712. out.Int64(int64(in.InsertionPointID))
  5713. }
  5714. {
  5715. const prefix string = ",\"distributedNodes\":"
  5716. out.RawString(prefix)
  5717. if in.DistributedNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5718. out.RawString("null")
  5719. } else {
  5720. out.RawByte('[')
  5721. for v53, v54 := range in.DistributedNodes {
  5722. if v53 > 0 {
  5723. out.RawByte(',')
  5724. }
  5725. if v54 == nil {
  5726. out.RawString("null")
  5727. } else {
  5728. (*v54).MarshalEasyJSON(out)
  5729. }
  5730. }
  5731. out.RawByte(']')
  5732. }
  5733. }
  5734. out.RawByte('}')
  5735. }
  5736. // MarshalJSON supports json.Marshaler interface
  5737. func (v EventDistributedNodesUpdated) MarshalJSON() ([]byte, error) {
  5738. w := jwriter.Writer{}
  5739. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom73(&w, v)
  5740. return w.Buffer.BuildBytes(), w.Error
  5741. }
  5742. // MarshalEasyJSON supports easyjson.Marshaler interface
  5743. func (v EventDistributedNodesUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  5744. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom73(w, v)
  5745. }
  5746. // UnmarshalJSON supports json.Unmarshaler interface
  5747. func (v *EventDistributedNodesUpdated) UnmarshalJSON(data []byte) error {
  5748. r := jlexer.Lexer{Data: data}
  5749. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom73(&r, v)
  5750. return r.Error()
  5751. }
  5752. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5753. func (v *EventDistributedNodesUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5754. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom73(l, v)
  5755. }
  5756. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom74(in *jlexer.Lexer, out *EventChildNodeRemoved) {
  5757. isTopLevel := in.IsStart()
  5758. if in.IsNull() {
  5759. if isTopLevel {
  5760. in.Consumed()
  5761. }
  5762. in.Skip()
  5763. return
  5764. }
  5765. in.Delim('{')
  5766. for !in.IsDelim('}') {
  5767. key := in.UnsafeFieldName(false)
  5768. in.WantColon()
  5769. if in.IsNull() {
  5770. in.Skip()
  5771. in.WantComma()
  5772. continue
  5773. }
  5774. switch key {
  5775. case "parentNodeId":
  5776. (out.ParentNodeID).UnmarshalEasyJSON(in)
  5777. case "nodeId":
  5778. (out.NodeID).UnmarshalEasyJSON(in)
  5779. default:
  5780. in.SkipRecursive()
  5781. }
  5782. in.WantComma()
  5783. }
  5784. in.Delim('}')
  5785. if isTopLevel {
  5786. in.Consumed()
  5787. }
  5788. }
  5789. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom74(out *jwriter.Writer, in EventChildNodeRemoved) {
  5790. out.RawByte('{')
  5791. first := true
  5792. _ = first
  5793. {
  5794. const prefix string = ",\"parentNodeId\":"
  5795. out.RawString(prefix[1:])
  5796. out.Int64(int64(in.ParentNodeID))
  5797. }
  5798. {
  5799. const prefix string = ",\"nodeId\":"
  5800. out.RawString(prefix)
  5801. out.Int64(int64(in.NodeID))
  5802. }
  5803. out.RawByte('}')
  5804. }
  5805. // MarshalJSON supports json.Marshaler interface
  5806. func (v EventChildNodeRemoved) MarshalJSON() ([]byte, error) {
  5807. w := jwriter.Writer{}
  5808. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom74(&w, v)
  5809. return w.Buffer.BuildBytes(), w.Error
  5810. }
  5811. // MarshalEasyJSON supports easyjson.Marshaler interface
  5812. func (v EventChildNodeRemoved) MarshalEasyJSON(w *jwriter.Writer) {
  5813. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom74(w, v)
  5814. }
  5815. // UnmarshalJSON supports json.Unmarshaler interface
  5816. func (v *EventChildNodeRemoved) UnmarshalJSON(data []byte) error {
  5817. r := jlexer.Lexer{Data: data}
  5818. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom74(&r, v)
  5819. return r.Error()
  5820. }
  5821. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5822. func (v *EventChildNodeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5823. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom74(l, v)
  5824. }
  5825. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom75(in *jlexer.Lexer, out *EventChildNodeInserted) {
  5826. isTopLevel := in.IsStart()
  5827. if in.IsNull() {
  5828. if isTopLevel {
  5829. in.Consumed()
  5830. }
  5831. in.Skip()
  5832. return
  5833. }
  5834. in.Delim('{')
  5835. for !in.IsDelim('}') {
  5836. key := in.UnsafeFieldName(false)
  5837. in.WantColon()
  5838. if in.IsNull() {
  5839. in.Skip()
  5840. in.WantComma()
  5841. continue
  5842. }
  5843. switch key {
  5844. case "parentNodeId":
  5845. (out.ParentNodeID).UnmarshalEasyJSON(in)
  5846. case "previousNodeId":
  5847. (out.PreviousNodeID).UnmarshalEasyJSON(in)
  5848. case "node":
  5849. if in.IsNull() {
  5850. in.Skip()
  5851. out.Node = nil
  5852. } else {
  5853. if out.Node == nil {
  5854. out.Node = new(cdp.Node)
  5855. }
  5856. (*out.Node).UnmarshalEasyJSON(in)
  5857. }
  5858. default:
  5859. in.SkipRecursive()
  5860. }
  5861. in.WantComma()
  5862. }
  5863. in.Delim('}')
  5864. if isTopLevel {
  5865. in.Consumed()
  5866. }
  5867. }
  5868. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom75(out *jwriter.Writer, in EventChildNodeInserted) {
  5869. out.RawByte('{')
  5870. first := true
  5871. _ = first
  5872. {
  5873. const prefix string = ",\"parentNodeId\":"
  5874. out.RawString(prefix[1:])
  5875. out.Int64(int64(in.ParentNodeID))
  5876. }
  5877. {
  5878. const prefix string = ",\"previousNodeId\":"
  5879. out.RawString(prefix)
  5880. out.Int64(int64(in.PreviousNodeID))
  5881. }
  5882. {
  5883. const prefix string = ",\"node\":"
  5884. out.RawString(prefix)
  5885. if in.Node == nil {
  5886. out.RawString("null")
  5887. } else {
  5888. (*in.Node).MarshalEasyJSON(out)
  5889. }
  5890. }
  5891. out.RawByte('}')
  5892. }
  5893. // MarshalJSON supports json.Marshaler interface
  5894. func (v EventChildNodeInserted) MarshalJSON() ([]byte, error) {
  5895. w := jwriter.Writer{}
  5896. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom75(&w, v)
  5897. return w.Buffer.BuildBytes(), w.Error
  5898. }
  5899. // MarshalEasyJSON supports easyjson.Marshaler interface
  5900. func (v EventChildNodeInserted) MarshalEasyJSON(w *jwriter.Writer) {
  5901. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom75(w, v)
  5902. }
  5903. // UnmarshalJSON supports json.Unmarshaler interface
  5904. func (v *EventChildNodeInserted) UnmarshalJSON(data []byte) error {
  5905. r := jlexer.Lexer{Data: data}
  5906. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom75(&r, v)
  5907. return r.Error()
  5908. }
  5909. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5910. func (v *EventChildNodeInserted) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5911. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom75(l, v)
  5912. }
  5913. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom76(in *jlexer.Lexer, out *EventChildNodeCountUpdated) {
  5914. isTopLevel := in.IsStart()
  5915. if in.IsNull() {
  5916. if isTopLevel {
  5917. in.Consumed()
  5918. }
  5919. in.Skip()
  5920. return
  5921. }
  5922. in.Delim('{')
  5923. for !in.IsDelim('}') {
  5924. key := in.UnsafeFieldName(false)
  5925. in.WantColon()
  5926. if in.IsNull() {
  5927. in.Skip()
  5928. in.WantComma()
  5929. continue
  5930. }
  5931. switch key {
  5932. case "nodeId":
  5933. (out.NodeID).UnmarshalEasyJSON(in)
  5934. case "childNodeCount":
  5935. out.ChildNodeCount = int64(in.Int64())
  5936. default:
  5937. in.SkipRecursive()
  5938. }
  5939. in.WantComma()
  5940. }
  5941. in.Delim('}')
  5942. if isTopLevel {
  5943. in.Consumed()
  5944. }
  5945. }
  5946. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom76(out *jwriter.Writer, in EventChildNodeCountUpdated) {
  5947. out.RawByte('{')
  5948. first := true
  5949. _ = first
  5950. {
  5951. const prefix string = ",\"nodeId\":"
  5952. out.RawString(prefix[1:])
  5953. out.Int64(int64(in.NodeID))
  5954. }
  5955. {
  5956. const prefix string = ",\"childNodeCount\":"
  5957. out.RawString(prefix)
  5958. out.Int64(int64(in.ChildNodeCount))
  5959. }
  5960. out.RawByte('}')
  5961. }
  5962. // MarshalJSON supports json.Marshaler interface
  5963. func (v EventChildNodeCountUpdated) MarshalJSON() ([]byte, error) {
  5964. w := jwriter.Writer{}
  5965. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom76(&w, v)
  5966. return w.Buffer.BuildBytes(), w.Error
  5967. }
  5968. // MarshalEasyJSON supports easyjson.Marshaler interface
  5969. func (v EventChildNodeCountUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  5970. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom76(w, v)
  5971. }
  5972. // UnmarshalJSON supports json.Unmarshaler interface
  5973. func (v *EventChildNodeCountUpdated) UnmarshalJSON(data []byte) error {
  5974. r := jlexer.Lexer{Data: data}
  5975. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom76(&r, v)
  5976. return r.Error()
  5977. }
  5978. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5979. func (v *EventChildNodeCountUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5980. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom76(l, v)
  5981. }
  5982. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom77(in *jlexer.Lexer, out *EventCharacterDataModified) {
  5983. isTopLevel := in.IsStart()
  5984. if in.IsNull() {
  5985. if isTopLevel {
  5986. in.Consumed()
  5987. }
  5988. in.Skip()
  5989. return
  5990. }
  5991. in.Delim('{')
  5992. for !in.IsDelim('}') {
  5993. key := in.UnsafeFieldName(false)
  5994. in.WantColon()
  5995. if in.IsNull() {
  5996. in.Skip()
  5997. in.WantComma()
  5998. continue
  5999. }
  6000. switch key {
  6001. case "nodeId":
  6002. (out.NodeID).UnmarshalEasyJSON(in)
  6003. case "characterData":
  6004. out.CharacterData = string(in.String())
  6005. default:
  6006. in.SkipRecursive()
  6007. }
  6008. in.WantComma()
  6009. }
  6010. in.Delim('}')
  6011. if isTopLevel {
  6012. in.Consumed()
  6013. }
  6014. }
  6015. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom77(out *jwriter.Writer, in EventCharacterDataModified) {
  6016. out.RawByte('{')
  6017. first := true
  6018. _ = first
  6019. {
  6020. const prefix string = ",\"nodeId\":"
  6021. out.RawString(prefix[1:])
  6022. out.Int64(int64(in.NodeID))
  6023. }
  6024. {
  6025. const prefix string = ",\"characterData\":"
  6026. out.RawString(prefix)
  6027. out.String(string(in.CharacterData))
  6028. }
  6029. out.RawByte('}')
  6030. }
  6031. // MarshalJSON supports json.Marshaler interface
  6032. func (v EventCharacterDataModified) MarshalJSON() ([]byte, error) {
  6033. w := jwriter.Writer{}
  6034. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom77(&w, v)
  6035. return w.Buffer.BuildBytes(), w.Error
  6036. }
  6037. // MarshalEasyJSON supports easyjson.Marshaler interface
  6038. func (v EventCharacterDataModified) MarshalEasyJSON(w *jwriter.Writer) {
  6039. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom77(w, v)
  6040. }
  6041. // UnmarshalJSON supports json.Unmarshaler interface
  6042. func (v *EventCharacterDataModified) UnmarshalJSON(data []byte) error {
  6043. r := jlexer.Lexer{Data: data}
  6044. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom77(&r, v)
  6045. return r.Error()
  6046. }
  6047. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6048. func (v *EventCharacterDataModified) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6049. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom77(l, v)
  6050. }
  6051. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom78(in *jlexer.Lexer, out *EventAttributeRemoved) {
  6052. isTopLevel := in.IsStart()
  6053. if in.IsNull() {
  6054. if isTopLevel {
  6055. in.Consumed()
  6056. }
  6057. in.Skip()
  6058. return
  6059. }
  6060. in.Delim('{')
  6061. for !in.IsDelim('}') {
  6062. key := in.UnsafeFieldName(false)
  6063. in.WantColon()
  6064. if in.IsNull() {
  6065. in.Skip()
  6066. in.WantComma()
  6067. continue
  6068. }
  6069. switch key {
  6070. case "nodeId":
  6071. (out.NodeID).UnmarshalEasyJSON(in)
  6072. case "name":
  6073. out.Name = string(in.String())
  6074. default:
  6075. in.SkipRecursive()
  6076. }
  6077. in.WantComma()
  6078. }
  6079. in.Delim('}')
  6080. if isTopLevel {
  6081. in.Consumed()
  6082. }
  6083. }
  6084. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom78(out *jwriter.Writer, in EventAttributeRemoved) {
  6085. out.RawByte('{')
  6086. first := true
  6087. _ = first
  6088. {
  6089. const prefix string = ",\"nodeId\":"
  6090. out.RawString(prefix[1:])
  6091. out.Int64(int64(in.NodeID))
  6092. }
  6093. {
  6094. const prefix string = ",\"name\":"
  6095. out.RawString(prefix)
  6096. out.String(string(in.Name))
  6097. }
  6098. out.RawByte('}')
  6099. }
  6100. // MarshalJSON supports json.Marshaler interface
  6101. func (v EventAttributeRemoved) MarshalJSON() ([]byte, error) {
  6102. w := jwriter.Writer{}
  6103. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom78(&w, v)
  6104. return w.Buffer.BuildBytes(), w.Error
  6105. }
  6106. // MarshalEasyJSON supports easyjson.Marshaler interface
  6107. func (v EventAttributeRemoved) MarshalEasyJSON(w *jwriter.Writer) {
  6108. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom78(w, v)
  6109. }
  6110. // UnmarshalJSON supports json.Unmarshaler interface
  6111. func (v *EventAttributeRemoved) UnmarshalJSON(data []byte) error {
  6112. r := jlexer.Lexer{Data: data}
  6113. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom78(&r, v)
  6114. return r.Error()
  6115. }
  6116. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6117. func (v *EventAttributeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6118. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom78(l, v)
  6119. }
  6120. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom79(in *jlexer.Lexer, out *EventAttributeModified) {
  6121. isTopLevel := in.IsStart()
  6122. if in.IsNull() {
  6123. if isTopLevel {
  6124. in.Consumed()
  6125. }
  6126. in.Skip()
  6127. return
  6128. }
  6129. in.Delim('{')
  6130. for !in.IsDelim('}') {
  6131. key := in.UnsafeFieldName(false)
  6132. in.WantColon()
  6133. if in.IsNull() {
  6134. in.Skip()
  6135. in.WantComma()
  6136. continue
  6137. }
  6138. switch key {
  6139. case "nodeId":
  6140. (out.NodeID).UnmarshalEasyJSON(in)
  6141. case "name":
  6142. out.Name = string(in.String())
  6143. case "value":
  6144. out.Value = string(in.String())
  6145. default:
  6146. in.SkipRecursive()
  6147. }
  6148. in.WantComma()
  6149. }
  6150. in.Delim('}')
  6151. if isTopLevel {
  6152. in.Consumed()
  6153. }
  6154. }
  6155. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom79(out *jwriter.Writer, in EventAttributeModified) {
  6156. out.RawByte('{')
  6157. first := true
  6158. _ = first
  6159. {
  6160. const prefix string = ",\"nodeId\":"
  6161. out.RawString(prefix[1:])
  6162. out.Int64(int64(in.NodeID))
  6163. }
  6164. {
  6165. const prefix string = ",\"name\":"
  6166. out.RawString(prefix)
  6167. out.String(string(in.Name))
  6168. }
  6169. {
  6170. const prefix string = ",\"value\":"
  6171. out.RawString(prefix)
  6172. out.String(string(in.Value))
  6173. }
  6174. out.RawByte('}')
  6175. }
  6176. // MarshalJSON supports json.Marshaler interface
  6177. func (v EventAttributeModified) MarshalJSON() ([]byte, error) {
  6178. w := jwriter.Writer{}
  6179. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom79(&w, v)
  6180. return w.Buffer.BuildBytes(), w.Error
  6181. }
  6182. // MarshalEasyJSON supports easyjson.Marshaler interface
  6183. func (v EventAttributeModified) MarshalEasyJSON(w *jwriter.Writer) {
  6184. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom79(w, v)
  6185. }
  6186. // UnmarshalJSON supports json.Unmarshaler interface
  6187. func (v *EventAttributeModified) UnmarshalJSON(data []byte) error {
  6188. r := jlexer.Lexer{Data: data}
  6189. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom79(&r, v)
  6190. return r.Error()
  6191. }
  6192. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6193. func (v *EventAttributeModified) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6194. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom79(l, v)
  6195. }
  6196. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom80(in *jlexer.Lexer, out *EnableParams) {
  6197. isTopLevel := in.IsStart()
  6198. if in.IsNull() {
  6199. if isTopLevel {
  6200. in.Consumed()
  6201. }
  6202. in.Skip()
  6203. return
  6204. }
  6205. in.Delim('{')
  6206. for !in.IsDelim('}') {
  6207. key := in.UnsafeFieldName(false)
  6208. in.WantColon()
  6209. if in.IsNull() {
  6210. in.Skip()
  6211. in.WantComma()
  6212. continue
  6213. }
  6214. switch key {
  6215. case "includeWhitespace":
  6216. (out.IncludeWhitespace).UnmarshalEasyJSON(in)
  6217. default:
  6218. in.SkipRecursive()
  6219. }
  6220. in.WantComma()
  6221. }
  6222. in.Delim('}')
  6223. if isTopLevel {
  6224. in.Consumed()
  6225. }
  6226. }
  6227. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom80(out *jwriter.Writer, in EnableParams) {
  6228. out.RawByte('{')
  6229. first := true
  6230. _ = first
  6231. if in.IncludeWhitespace != "" {
  6232. const prefix string = ",\"includeWhitespace\":"
  6233. first = false
  6234. out.RawString(prefix[1:])
  6235. (in.IncludeWhitespace).MarshalEasyJSON(out)
  6236. }
  6237. out.RawByte('}')
  6238. }
  6239. // MarshalJSON supports json.Marshaler interface
  6240. func (v EnableParams) MarshalJSON() ([]byte, error) {
  6241. w := jwriter.Writer{}
  6242. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom80(&w, v)
  6243. return w.Buffer.BuildBytes(), w.Error
  6244. }
  6245. // MarshalEasyJSON supports easyjson.Marshaler interface
  6246. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  6247. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom80(w, v)
  6248. }
  6249. // UnmarshalJSON supports json.Unmarshaler interface
  6250. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  6251. r := jlexer.Lexer{Data: data}
  6252. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom80(&r, v)
  6253. return r.Error()
  6254. }
  6255. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6256. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6257. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom80(l, v)
  6258. }
  6259. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom81(in *jlexer.Lexer, out *DiscardSearchResultsParams) {
  6260. isTopLevel := in.IsStart()
  6261. if in.IsNull() {
  6262. if isTopLevel {
  6263. in.Consumed()
  6264. }
  6265. in.Skip()
  6266. return
  6267. }
  6268. in.Delim('{')
  6269. for !in.IsDelim('}') {
  6270. key := in.UnsafeFieldName(false)
  6271. in.WantColon()
  6272. if in.IsNull() {
  6273. in.Skip()
  6274. in.WantComma()
  6275. continue
  6276. }
  6277. switch key {
  6278. case "searchId":
  6279. out.SearchID = string(in.String())
  6280. default:
  6281. in.SkipRecursive()
  6282. }
  6283. in.WantComma()
  6284. }
  6285. in.Delim('}')
  6286. if isTopLevel {
  6287. in.Consumed()
  6288. }
  6289. }
  6290. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom81(out *jwriter.Writer, in DiscardSearchResultsParams) {
  6291. out.RawByte('{')
  6292. first := true
  6293. _ = first
  6294. {
  6295. const prefix string = ",\"searchId\":"
  6296. out.RawString(prefix[1:])
  6297. out.String(string(in.SearchID))
  6298. }
  6299. out.RawByte('}')
  6300. }
  6301. // MarshalJSON supports json.Marshaler interface
  6302. func (v DiscardSearchResultsParams) MarshalJSON() ([]byte, error) {
  6303. w := jwriter.Writer{}
  6304. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom81(&w, v)
  6305. return w.Buffer.BuildBytes(), w.Error
  6306. }
  6307. // MarshalEasyJSON supports easyjson.Marshaler interface
  6308. func (v DiscardSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer) {
  6309. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom81(w, v)
  6310. }
  6311. // UnmarshalJSON supports json.Unmarshaler interface
  6312. func (v *DiscardSearchResultsParams) UnmarshalJSON(data []byte) error {
  6313. r := jlexer.Lexer{Data: data}
  6314. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom81(&r, v)
  6315. return r.Error()
  6316. }
  6317. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6318. func (v *DiscardSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6319. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom81(l, v)
  6320. }
  6321. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom82(in *jlexer.Lexer, out *DisableParams) {
  6322. isTopLevel := in.IsStart()
  6323. if in.IsNull() {
  6324. if isTopLevel {
  6325. in.Consumed()
  6326. }
  6327. in.Skip()
  6328. return
  6329. }
  6330. in.Delim('{')
  6331. for !in.IsDelim('}') {
  6332. key := in.UnsafeFieldName(false)
  6333. in.WantColon()
  6334. if in.IsNull() {
  6335. in.Skip()
  6336. in.WantComma()
  6337. continue
  6338. }
  6339. switch key {
  6340. default:
  6341. in.SkipRecursive()
  6342. }
  6343. in.WantComma()
  6344. }
  6345. in.Delim('}')
  6346. if isTopLevel {
  6347. in.Consumed()
  6348. }
  6349. }
  6350. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom82(out *jwriter.Writer, in DisableParams) {
  6351. out.RawByte('{')
  6352. first := true
  6353. _ = first
  6354. out.RawByte('}')
  6355. }
  6356. // MarshalJSON supports json.Marshaler interface
  6357. func (v DisableParams) MarshalJSON() ([]byte, error) {
  6358. w := jwriter.Writer{}
  6359. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom82(&w, v)
  6360. return w.Buffer.BuildBytes(), w.Error
  6361. }
  6362. // MarshalEasyJSON supports easyjson.Marshaler interface
  6363. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  6364. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom82(w, v)
  6365. }
  6366. // UnmarshalJSON supports json.Unmarshaler interface
  6367. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  6368. r := jlexer.Lexer{Data: data}
  6369. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom82(&r, v)
  6370. return r.Error()
  6371. }
  6372. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6373. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6374. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom82(l, v)
  6375. }
  6376. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom83(in *jlexer.Lexer, out *DescribeNodeReturns) {
  6377. isTopLevel := in.IsStart()
  6378. if in.IsNull() {
  6379. if isTopLevel {
  6380. in.Consumed()
  6381. }
  6382. in.Skip()
  6383. return
  6384. }
  6385. in.Delim('{')
  6386. for !in.IsDelim('}') {
  6387. key := in.UnsafeFieldName(false)
  6388. in.WantColon()
  6389. if in.IsNull() {
  6390. in.Skip()
  6391. in.WantComma()
  6392. continue
  6393. }
  6394. switch key {
  6395. case "node":
  6396. if in.IsNull() {
  6397. in.Skip()
  6398. out.Node = nil
  6399. } else {
  6400. if out.Node == nil {
  6401. out.Node = new(cdp.Node)
  6402. }
  6403. (*out.Node).UnmarshalEasyJSON(in)
  6404. }
  6405. default:
  6406. in.SkipRecursive()
  6407. }
  6408. in.WantComma()
  6409. }
  6410. in.Delim('}')
  6411. if isTopLevel {
  6412. in.Consumed()
  6413. }
  6414. }
  6415. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom83(out *jwriter.Writer, in DescribeNodeReturns) {
  6416. out.RawByte('{')
  6417. first := true
  6418. _ = first
  6419. if in.Node != nil {
  6420. const prefix string = ",\"node\":"
  6421. first = false
  6422. out.RawString(prefix[1:])
  6423. (*in.Node).MarshalEasyJSON(out)
  6424. }
  6425. out.RawByte('}')
  6426. }
  6427. // MarshalJSON supports json.Marshaler interface
  6428. func (v DescribeNodeReturns) MarshalJSON() ([]byte, error) {
  6429. w := jwriter.Writer{}
  6430. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom83(&w, v)
  6431. return w.Buffer.BuildBytes(), w.Error
  6432. }
  6433. // MarshalEasyJSON supports easyjson.Marshaler interface
  6434. func (v DescribeNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  6435. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom83(w, v)
  6436. }
  6437. // UnmarshalJSON supports json.Unmarshaler interface
  6438. func (v *DescribeNodeReturns) UnmarshalJSON(data []byte) error {
  6439. r := jlexer.Lexer{Data: data}
  6440. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom83(&r, v)
  6441. return r.Error()
  6442. }
  6443. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6444. func (v *DescribeNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6445. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom83(l, v)
  6446. }
  6447. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom84(in *jlexer.Lexer, out *DescribeNodeParams) {
  6448. isTopLevel := in.IsStart()
  6449. if in.IsNull() {
  6450. if isTopLevel {
  6451. in.Consumed()
  6452. }
  6453. in.Skip()
  6454. return
  6455. }
  6456. in.Delim('{')
  6457. for !in.IsDelim('}') {
  6458. key := in.UnsafeFieldName(false)
  6459. in.WantColon()
  6460. if in.IsNull() {
  6461. in.Skip()
  6462. in.WantComma()
  6463. continue
  6464. }
  6465. switch key {
  6466. case "nodeId":
  6467. (out.NodeID).UnmarshalEasyJSON(in)
  6468. case "backendNodeId":
  6469. (out.BackendNodeID).UnmarshalEasyJSON(in)
  6470. case "objectId":
  6471. out.ObjectID = runtime.RemoteObjectID(in.String())
  6472. case "depth":
  6473. out.Depth = int64(in.Int64())
  6474. case "pierce":
  6475. out.Pierce = bool(in.Bool())
  6476. default:
  6477. in.SkipRecursive()
  6478. }
  6479. in.WantComma()
  6480. }
  6481. in.Delim('}')
  6482. if isTopLevel {
  6483. in.Consumed()
  6484. }
  6485. }
  6486. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom84(out *jwriter.Writer, in DescribeNodeParams) {
  6487. out.RawByte('{')
  6488. first := true
  6489. _ = first
  6490. if in.NodeID != 0 {
  6491. const prefix string = ",\"nodeId\":"
  6492. first = false
  6493. out.RawString(prefix[1:])
  6494. out.Int64(int64(in.NodeID))
  6495. }
  6496. if in.BackendNodeID != 0 {
  6497. const prefix string = ",\"backendNodeId\":"
  6498. if first {
  6499. first = false
  6500. out.RawString(prefix[1:])
  6501. } else {
  6502. out.RawString(prefix)
  6503. }
  6504. out.Int64(int64(in.BackendNodeID))
  6505. }
  6506. if in.ObjectID != "" {
  6507. const prefix string = ",\"objectId\":"
  6508. if first {
  6509. first = false
  6510. out.RawString(prefix[1:])
  6511. } else {
  6512. out.RawString(prefix)
  6513. }
  6514. out.String(string(in.ObjectID))
  6515. }
  6516. if in.Depth != 0 {
  6517. const prefix string = ",\"depth\":"
  6518. if first {
  6519. first = false
  6520. out.RawString(prefix[1:])
  6521. } else {
  6522. out.RawString(prefix)
  6523. }
  6524. out.Int64(int64(in.Depth))
  6525. }
  6526. if in.Pierce {
  6527. const prefix string = ",\"pierce\":"
  6528. if first {
  6529. first = false
  6530. out.RawString(prefix[1:])
  6531. } else {
  6532. out.RawString(prefix)
  6533. }
  6534. out.Bool(bool(in.Pierce))
  6535. }
  6536. out.RawByte('}')
  6537. }
  6538. // MarshalJSON supports json.Marshaler interface
  6539. func (v DescribeNodeParams) MarshalJSON() ([]byte, error) {
  6540. w := jwriter.Writer{}
  6541. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom84(&w, v)
  6542. return w.Buffer.BuildBytes(), w.Error
  6543. }
  6544. // MarshalEasyJSON supports easyjson.Marshaler interface
  6545. func (v DescribeNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  6546. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom84(w, v)
  6547. }
  6548. // UnmarshalJSON supports json.Unmarshaler interface
  6549. func (v *DescribeNodeParams) UnmarshalJSON(data []byte) error {
  6550. r := jlexer.Lexer{Data: data}
  6551. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom84(&r, v)
  6552. return r.Error()
  6553. }
  6554. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6555. func (v *DescribeNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6556. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom84(l, v)
  6557. }
  6558. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom85(in *jlexer.Lexer, out *CopyToReturns) {
  6559. isTopLevel := in.IsStart()
  6560. if in.IsNull() {
  6561. if isTopLevel {
  6562. in.Consumed()
  6563. }
  6564. in.Skip()
  6565. return
  6566. }
  6567. in.Delim('{')
  6568. for !in.IsDelim('}') {
  6569. key := in.UnsafeFieldName(false)
  6570. in.WantColon()
  6571. if in.IsNull() {
  6572. in.Skip()
  6573. in.WantComma()
  6574. continue
  6575. }
  6576. switch key {
  6577. case "nodeId":
  6578. (out.NodeID).UnmarshalEasyJSON(in)
  6579. default:
  6580. in.SkipRecursive()
  6581. }
  6582. in.WantComma()
  6583. }
  6584. in.Delim('}')
  6585. if isTopLevel {
  6586. in.Consumed()
  6587. }
  6588. }
  6589. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom85(out *jwriter.Writer, in CopyToReturns) {
  6590. out.RawByte('{')
  6591. first := true
  6592. _ = first
  6593. if in.NodeID != 0 {
  6594. const prefix string = ",\"nodeId\":"
  6595. first = false
  6596. out.RawString(prefix[1:])
  6597. out.Int64(int64(in.NodeID))
  6598. }
  6599. out.RawByte('}')
  6600. }
  6601. // MarshalJSON supports json.Marshaler interface
  6602. func (v CopyToReturns) MarshalJSON() ([]byte, error) {
  6603. w := jwriter.Writer{}
  6604. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom85(&w, v)
  6605. return w.Buffer.BuildBytes(), w.Error
  6606. }
  6607. // MarshalEasyJSON supports easyjson.Marshaler interface
  6608. func (v CopyToReturns) MarshalEasyJSON(w *jwriter.Writer) {
  6609. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom85(w, v)
  6610. }
  6611. // UnmarshalJSON supports json.Unmarshaler interface
  6612. func (v *CopyToReturns) UnmarshalJSON(data []byte) error {
  6613. r := jlexer.Lexer{Data: data}
  6614. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom85(&r, v)
  6615. return r.Error()
  6616. }
  6617. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6618. func (v *CopyToReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6619. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom85(l, v)
  6620. }
  6621. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom86(in *jlexer.Lexer, out *CopyToParams) {
  6622. isTopLevel := in.IsStart()
  6623. if in.IsNull() {
  6624. if isTopLevel {
  6625. in.Consumed()
  6626. }
  6627. in.Skip()
  6628. return
  6629. }
  6630. in.Delim('{')
  6631. for !in.IsDelim('}') {
  6632. key := in.UnsafeFieldName(false)
  6633. in.WantColon()
  6634. if in.IsNull() {
  6635. in.Skip()
  6636. in.WantComma()
  6637. continue
  6638. }
  6639. switch key {
  6640. case "nodeId":
  6641. (out.NodeID).UnmarshalEasyJSON(in)
  6642. case "targetNodeId":
  6643. (out.TargetNodeID).UnmarshalEasyJSON(in)
  6644. case "insertBeforeNodeId":
  6645. (out.InsertBeforeNodeID).UnmarshalEasyJSON(in)
  6646. default:
  6647. in.SkipRecursive()
  6648. }
  6649. in.WantComma()
  6650. }
  6651. in.Delim('}')
  6652. if isTopLevel {
  6653. in.Consumed()
  6654. }
  6655. }
  6656. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom86(out *jwriter.Writer, in CopyToParams) {
  6657. out.RawByte('{')
  6658. first := true
  6659. _ = first
  6660. {
  6661. const prefix string = ",\"nodeId\":"
  6662. out.RawString(prefix[1:])
  6663. out.Int64(int64(in.NodeID))
  6664. }
  6665. {
  6666. const prefix string = ",\"targetNodeId\":"
  6667. out.RawString(prefix)
  6668. out.Int64(int64(in.TargetNodeID))
  6669. }
  6670. if in.InsertBeforeNodeID != 0 {
  6671. const prefix string = ",\"insertBeforeNodeId\":"
  6672. out.RawString(prefix)
  6673. out.Int64(int64(in.InsertBeforeNodeID))
  6674. }
  6675. out.RawByte('}')
  6676. }
  6677. // MarshalJSON supports json.Marshaler interface
  6678. func (v CopyToParams) MarshalJSON() ([]byte, error) {
  6679. w := jwriter.Writer{}
  6680. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom86(&w, v)
  6681. return w.Buffer.BuildBytes(), w.Error
  6682. }
  6683. // MarshalEasyJSON supports easyjson.Marshaler interface
  6684. func (v CopyToParams) MarshalEasyJSON(w *jwriter.Writer) {
  6685. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom86(w, v)
  6686. }
  6687. // UnmarshalJSON supports json.Unmarshaler interface
  6688. func (v *CopyToParams) UnmarshalJSON(data []byte) error {
  6689. r := jlexer.Lexer{Data: data}
  6690. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom86(&r, v)
  6691. return r.Error()
  6692. }
  6693. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6694. func (v *CopyToParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6695. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom86(l, v)
  6696. }
  6697. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom87(in *jlexer.Lexer, out *CollectClassNamesFromSubtreeReturns) {
  6698. isTopLevel := in.IsStart()
  6699. if in.IsNull() {
  6700. if isTopLevel {
  6701. in.Consumed()
  6702. }
  6703. in.Skip()
  6704. return
  6705. }
  6706. in.Delim('{')
  6707. for !in.IsDelim('}') {
  6708. key := in.UnsafeFieldName(false)
  6709. in.WantColon()
  6710. if in.IsNull() {
  6711. in.Skip()
  6712. in.WantComma()
  6713. continue
  6714. }
  6715. switch key {
  6716. case "classNames":
  6717. if in.IsNull() {
  6718. in.Skip()
  6719. out.ClassNames = nil
  6720. } else {
  6721. in.Delim('[')
  6722. if out.ClassNames == nil {
  6723. if !in.IsDelim(']') {
  6724. out.ClassNames = make([]string, 0, 4)
  6725. } else {
  6726. out.ClassNames = []string{}
  6727. }
  6728. } else {
  6729. out.ClassNames = (out.ClassNames)[:0]
  6730. }
  6731. for !in.IsDelim(']') {
  6732. var v55 string
  6733. v55 = string(in.String())
  6734. out.ClassNames = append(out.ClassNames, v55)
  6735. in.WantComma()
  6736. }
  6737. in.Delim(']')
  6738. }
  6739. default:
  6740. in.SkipRecursive()
  6741. }
  6742. in.WantComma()
  6743. }
  6744. in.Delim('}')
  6745. if isTopLevel {
  6746. in.Consumed()
  6747. }
  6748. }
  6749. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom87(out *jwriter.Writer, in CollectClassNamesFromSubtreeReturns) {
  6750. out.RawByte('{')
  6751. first := true
  6752. _ = first
  6753. if len(in.ClassNames) != 0 {
  6754. const prefix string = ",\"classNames\":"
  6755. first = false
  6756. out.RawString(prefix[1:])
  6757. {
  6758. out.RawByte('[')
  6759. for v56, v57 := range in.ClassNames {
  6760. if v56 > 0 {
  6761. out.RawByte(',')
  6762. }
  6763. out.String(string(v57))
  6764. }
  6765. out.RawByte(']')
  6766. }
  6767. }
  6768. out.RawByte('}')
  6769. }
  6770. // MarshalJSON supports json.Marshaler interface
  6771. func (v CollectClassNamesFromSubtreeReturns) MarshalJSON() ([]byte, error) {
  6772. w := jwriter.Writer{}
  6773. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom87(&w, v)
  6774. return w.Buffer.BuildBytes(), w.Error
  6775. }
  6776. // MarshalEasyJSON supports easyjson.Marshaler interface
  6777. func (v CollectClassNamesFromSubtreeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  6778. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom87(w, v)
  6779. }
  6780. // UnmarshalJSON supports json.Unmarshaler interface
  6781. func (v *CollectClassNamesFromSubtreeReturns) UnmarshalJSON(data []byte) error {
  6782. r := jlexer.Lexer{Data: data}
  6783. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom87(&r, v)
  6784. return r.Error()
  6785. }
  6786. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6787. func (v *CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6788. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom87(l, v)
  6789. }
  6790. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom88(in *jlexer.Lexer, out *CollectClassNamesFromSubtreeParams) {
  6791. isTopLevel := in.IsStart()
  6792. if in.IsNull() {
  6793. if isTopLevel {
  6794. in.Consumed()
  6795. }
  6796. in.Skip()
  6797. return
  6798. }
  6799. in.Delim('{')
  6800. for !in.IsDelim('}') {
  6801. key := in.UnsafeFieldName(false)
  6802. in.WantColon()
  6803. if in.IsNull() {
  6804. in.Skip()
  6805. in.WantComma()
  6806. continue
  6807. }
  6808. switch key {
  6809. case "nodeId":
  6810. (out.NodeID).UnmarshalEasyJSON(in)
  6811. default:
  6812. in.SkipRecursive()
  6813. }
  6814. in.WantComma()
  6815. }
  6816. in.Delim('}')
  6817. if isTopLevel {
  6818. in.Consumed()
  6819. }
  6820. }
  6821. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom88(out *jwriter.Writer, in CollectClassNamesFromSubtreeParams) {
  6822. out.RawByte('{')
  6823. first := true
  6824. _ = first
  6825. {
  6826. const prefix string = ",\"nodeId\":"
  6827. out.RawString(prefix[1:])
  6828. out.Int64(int64(in.NodeID))
  6829. }
  6830. out.RawByte('}')
  6831. }
  6832. // MarshalJSON supports json.Marshaler interface
  6833. func (v CollectClassNamesFromSubtreeParams) MarshalJSON() ([]byte, error) {
  6834. w := jwriter.Writer{}
  6835. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom88(&w, v)
  6836. return w.Buffer.BuildBytes(), w.Error
  6837. }
  6838. // MarshalEasyJSON supports easyjson.Marshaler interface
  6839. func (v CollectClassNamesFromSubtreeParams) MarshalEasyJSON(w *jwriter.Writer) {
  6840. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom88(w, v)
  6841. }
  6842. // UnmarshalJSON supports json.Unmarshaler interface
  6843. func (v *CollectClassNamesFromSubtreeParams) UnmarshalJSON(data []byte) error {
  6844. r := jlexer.Lexer{Data: data}
  6845. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom88(&r, v)
  6846. return r.Error()
  6847. }
  6848. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6849. func (v *CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6850. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom88(l, v)
  6851. }
  6852. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom89(in *jlexer.Lexer, out *CSSComputedStyleProperty) {
  6853. isTopLevel := in.IsStart()
  6854. if in.IsNull() {
  6855. if isTopLevel {
  6856. in.Consumed()
  6857. }
  6858. in.Skip()
  6859. return
  6860. }
  6861. in.Delim('{')
  6862. for !in.IsDelim('}') {
  6863. key := in.UnsafeFieldName(false)
  6864. in.WantColon()
  6865. if in.IsNull() {
  6866. in.Skip()
  6867. in.WantComma()
  6868. continue
  6869. }
  6870. switch key {
  6871. case "name":
  6872. out.Name = string(in.String())
  6873. case "value":
  6874. out.Value = string(in.String())
  6875. default:
  6876. in.SkipRecursive()
  6877. }
  6878. in.WantComma()
  6879. }
  6880. in.Delim('}')
  6881. if isTopLevel {
  6882. in.Consumed()
  6883. }
  6884. }
  6885. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom89(out *jwriter.Writer, in CSSComputedStyleProperty) {
  6886. out.RawByte('{')
  6887. first := true
  6888. _ = first
  6889. {
  6890. const prefix string = ",\"name\":"
  6891. out.RawString(prefix[1:])
  6892. out.String(string(in.Name))
  6893. }
  6894. {
  6895. const prefix string = ",\"value\":"
  6896. out.RawString(prefix)
  6897. out.String(string(in.Value))
  6898. }
  6899. out.RawByte('}')
  6900. }
  6901. // MarshalJSON supports json.Marshaler interface
  6902. func (v CSSComputedStyleProperty) MarshalJSON() ([]byte, error) {
  6903. w := jwriter.Writer{}
  6904. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom89(&w, v)
  6905. return w.Buffer.BuildBytes(), w.Error
  6906. }
  6907. // MarshalEasyJSON supports easyjson.Marshaler interface
  6908. func (v CSSComputedStyleProperty) MarshalEasyJSON(w *jwriter.Writer) {
  6909. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom89(w, v)
  6910. }
  6911. // UnmarshalJSON supports json.Unmarshaler interface
  6912. func (v *CSSComputedStyleProperty) UnmarshalJSON(data []byte) error {
  6913. r := jlexer.Lexer{Data: data}
  6914. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom89(&r, v)
  6915. return r.Error()
  6916. }
  6917. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6918. func (v *CSSComputedStyleProperty) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6919. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom89(l, v)
  6920. }
  6921. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom90(in *jlexer.Lexer, out *BoxModel) {
  6922. isTopLevel := in.IsStart()
  6923. if in.IsNull() {
  6924. if isTopLevel {
  6925. in.Consumed()
  6926. }
  6927. in.Skip()
  6928. return
  6929. }
  6930. in.Delim('{')
  6931. for !in.IsDelim('}') {
  6932. key := in.UnsafeFieldName(false)
  6933. in.WantColon()
  6934. if in.IsNull() {
  6935. in.Skip()
  6936. in.WantComma()
  6937. continue
  6938. }
  6939. switch key {
  6940. case "content":
  6941. if in.IsNull() {
  6942. in.Skip()
  6943. out.Content = nil
  6944. } else {
  6945. in.Delim('[')
  6946. if out.Content == nil {
  6947. if !in.IsDelim(']') {
  6948. out.Content = make(Quad, 0, 8)
  6949. } else {
  6950. out.Content = Quad{}
  6951. }
  6952. } else {
  6953. out.Content = (out.Content)[:0]
  6954. }
  6955. for !in.IsDelim(']') {
  6956. var v58 float64
  6957. v58 = float64(in.Float64())
  6958. out.Content = append(out.Content, v58)
  6959. in.WantComma()
  6960. }
  6961. in.Delim(']')
  6962. }
  6963. case "padding":
  6964. if in.IsNull() {
  6965. in.Skip()
  6966. out.Padding = nil
  6967. } else {
  6968. in.Delim('[')
  6969. if out.Padding == nil {
  6970. if !in.IsDelim(']') {
  6971. out.Padding = make(Quad, 0, 8)
  6972. } else {
  6973. out.Padding = Quad{}
  6974. }
  6975. } else {
  6976. out.Padding = (out.Padding)[:0]
  6977. }
  6978. for !in.IsDelim(']') {
  6979. var v59 float64
  6980. v59 = float64(in.Float64())
  6981. out.Padding = append(out.Padding, v59)
  6982. in.WantComma()
  6983. }
  6984. in.Delim(']')
  6985. }
  6986. case "border":
  6987. if in.IsNull() {
  6988. in.Skip()
  6989. out.Border = nil
  6990. } else {
  6991. in.Delim('[')
  6992. if out.Border == nil {
  6993. if !in.IsDelim(']') {
  6994. out.Border = make(Quad, 0, 8)
  6995. } else {
  6996. out.Border = Quad{}
  6997. }
  6998. } else {
  6999. out.Border = (out.Border)[:0]
  7000. }
  7001. for !in.IsDelim(']') {
  7002. var v60 float64
  7003. v60 = float64(in.Float64())
  7004. out.Border = append(out.Border, v60)
  7005. in.WantComma()
  7006. }
  7007. in.Delim(']')
  7008. }
  7009. case "margin":
  7010. if in.IsNull() {
  7011. in.Skip()
  7012. out.Margin = nil
  7013. } else {
  7014. in.Delim('[')
  7015. if out.Margin == nil {
  7016. if !in.IsDelim(']') {
  7017. out.Margin = make(Quad, 0, 8)
  7018. } else {
  7019. out.Margin = Quad{}
  7020. }
  7021. } else {
  7022. out.Margin = (out.Margin)[:0]
  7023. }
  7024. for !in.IsDelim(']') {
  7025. var v61 float64
  7026. v61 = float64(in.Float64())
  7027. out.Margin = append(out.Margin, v61)
  7028. in.WantComma()
  7029. }
  7030. in.Delim(']')
  7031. }
  7032. case "width":
  7033. out.Width = int64(in.Int64())
  7034. case "height":
  7035. out.Height = int64(in.Int64())
  7036. case "shapeOutside":
  7037. if in.IsNull() {
  7038. in.Skip()
  7039. out.ShapeOutside = nil
  7040. } else {
  7041. if out.ShapeOutside == nil {
  7042. out.ShapeOutside = new(ShapeOutsideInfo)
  7043. }
  7044. (*out.ShapeOutside).UnmarshalEasyJSON(in)
  7045. }
  7046. default:
  7047. in.SkipRecursive()
  7048. }
  7049. in.WantComma()
  7050. }
  7051. in.Delim('}')
  7052. if isTopLevel {
  7053. in.Consumed()
  7054. }
  7055. }
  7056. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom90(out *jwriter.Writer, in BoxModel) {
  7057. out.RawByte('{')
  7058. first := true
  7059. _ = first
  7060. {
  7061. const prefix string = ",\"content\":"
  7062. out.RawString(prefix[1:])
  7063. if in.Content == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  7064. out.RawString("null")
  7065. } else {
  7066. out.RawByte('[')
  7067. for v62, v63 := range in.Content {
  7068. if v62 > 0 {
  7069. out.RawByte(',')
  7070. }
  7071. out.Float64(float64(v63))
  7072. }
  7073. out.RawByte(']')
  7074. }
  7075. }
  7076. {
  7077. const prefix string = ",\"padding\":"
  7078. out.RawString(prefix)
  7079. if in.Padding == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  7080. out.RawString("null")
  7081. } else {
  7082. out.RawByte('[')
  7083. for v64, v65 := range in.Padding {
  7084. if v64 > 0 {
  7085. out.RawByte(',')
  7086. }
  7087. out.Float64(float64(v65))
  7088. }
  7089. out.RawByte(']')
  7090. }
  7091. }
  7092. {
  7093. const prefix string = ",\"border\":"
  7094. out.RawString(prefix)
  7095. if in.Border == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  7096. out.RawString("null")
  7097. } else {
  7098. out.RawByte('[')
  7099. for v66, v67 := range in.Border {
  7100. if v66 > 0 {
  7101. out.RawByte(',')
  7102. }
  7103. out.Float64(float64(v67))
  7104. }
  7105. out.RawByte(']')
  7106. }
  7107. }
  7108. {
  7109. const prefix string = ",\"margin\":"
  7110. out.RawString(prefix)
  7111. if in.Margin == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  7112. out.RawString("null")
  7113. } else {
  7114. out.RawByte('[')
  7115. for v68, v69 := range in.Margin {
  7116. if v68 > 0 {
  7117. out.RawByte(',')
  7118. }
  7119. out.Float64(float64(v69))
  7120. }
  7121. out.RawByte(']')
  7122. }
  7123. }
  7124. {
  7125. const prefix string = ",\"width\":"
  7126. out.RawString(prefix)
  7127. out.Int64(int64(in.Width))
  7128. }
  7129. {
  7130. const prefix string = ",\"height\":"
  7131. out.RawString(prefix)
  7132. out.Int64(int64(in.Height))
  7133. }
  7134. if in.ShapeOutside != nil {
  7135. const prefix string = ",\"shapeOutside\":"
  7136. out.RawString(prefix)
  7137. (*in.ShapeOutside).MarshalEasyJSON(out)
  7138. }
  7139. out.RawByte('}')
  7140. }
  7141. // MarshalJSON supports json.Marshaler interface
  7142. func (v BoxModel) MarshalJSON() ([]byte, error) {
  7143. w := jwriter.Writer{}
  7144. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom90(&w, v)
  7145. return w.Buffer.BuildBytes(), w.Error
  7146. }
  7147. // MarshalEasyJSON supports easyjson.Marshaler interface
  7148. func (v BoxModel) MarshalEasyJSON(w *jwriter.Writer) {
  7149. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom90(w, v)
  7150. }
  7151. // UnmarshalJSON supports json.Unmarshaler interface
  7152. func (v *BoxModel) UnmarshalJSON(data []byte) error {
  7153. r := jlexer.Lexer{Data: data}
  7154. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom90(&r, v)
  7155. return r.Error()
  7156. }
  7157. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7158. func (v *BoxModel) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7159. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom90(l, v)
  7160. }