easyjson.go 224 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package css
  3. import (
  4. json "encoding/json"
  5. cdp "github.com/chromedp/cdproto/cdp"
  6. easyjson "github.com/mailru/easyjson"
  7. jlexer "github.com/mailru/easyjson/jlexer"
  8. jwriter "github.com/mailru/easyjson/jwriter"
  9. )
  10. // suppress unused package warning
  11. var (
  12. _ *json.RawMessage
  13. _ *jlexer.Lexer
  14. _ *jwriter.Writer
  15. _ easyjson.Marshaler
  16. )
  17. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss(in *jlexer.Lexer, out *Value) {
  18. isTopLevel := in.IsStart()
  19. if in.IsNull() {
  20. if isTopLevel {
  21. in.Consumed()
  22. }
  23. in.Skip()
  24. return
  25. }
  26. in.Delim('{')
  27. for !in.IsDelim('}') {
  28. key := in.UnsafeFieldName(false)
  29. in.WantColon()
  30. if in.IsNull() {
  31. in.Skip()
  32. in.WantComma()
  33. continue
  34. }
  35. switch key {
  36. case "text":
  37. out.Text = string(in.String())
  38. case "range":
  39. if in.IsNull() {
  40. in.Skip()
  41. out.Range = nil
  42. } else {
  43. if out.Range == nil {
  44. out.Range = new(SourceRange)
  45. }
  46. (*out.Range).UnmarshalEasyJSON(in)
  47. }
  48. case "specificity":
  49. if in.IsNull() {
  50. in.Skip()
  51. out.Specificity = nil
  52. } else {
  53. if out.Specificity == nil {
  54. out.Specificity = new(Specificity)
  55. }
  56. (*out.Specificity).UnmarshalEasyJSON(in)
  57. }
  58. default:
  59. in.SkipRecursive()
  60. }
  61. in.WantComma()
  62. }
  63. in.Delim('}')
  64. if isTopLevel {
  65. in.Consumed()
  66. }
  67. }
  68. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss(out *jwriter.Writer, in Value) {
  69. out.RawByte('{')
  70. first := true
  71. _ = first
  72. {
  73. const prefix string = ",\"text\":"
  74. out.RawString(prefix[1:])
  75. out.String(string(in.Text))
  76. }
  77. if in.Range != nil {
  78. const prefix string = ",\"range\":"
  79. out.RawString(prefix)
  80. (*in.Range).MarshalEasyJSON(out)
  81. }
  82. if in.Specificity != nil {
  83. const prefix string = ",\"specificity\":"
  84. out.RawString(prefix)
  85. (*in.Specificity).MarshalEasyJSON(out)
  86. }
  87. out.RawByte('}')
  88. }
  89. // MarshalJSON supports json.Marshaler interface
  90. func (v Value) MarshalJSON() ([]byte, error) {
  91. w := jwriter.Writer{}
  92. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss(&w, v)
  93. return w.Buffer.BuildBytes(), w.Error
  94. }
  95. // MarshalEasyJSON supports easyjson.Marshaler interface
  96. func (v Value) MarshalEasyJSON(w *jwriter.Writer) {
  97. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss(w, v)
  98. }
  99. // UnmarshalJSON supports json.Unmarshaler interface
  100. func (v *Value) UnmarshalJSON(data []byte) error {
  101. r := jlexer.Lexer{Data: data}
  102. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss(&r, v)
  103. return r.Error()
  104. }
  105. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  106. func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer) {
  107. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss(l, v)
  108. }
  109. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss1(in *jlexer.Lexer, out *TryRule) {
  110. isTopLevel := in.IsStart()
  111. if in.IsNull() {
  112. if isTopLevel {
  113. in.Consumed()
  114. }
  115. in.Skip()
  116. return
  117. }
  118. in.Delim('{')
  119. for !in.IsDelim('}') {
  120. key := in.UnsafeFieldName(false)
  121. in.WantColon()
  122. if in.IsNull() {
  123. in.Skip()
  124. in.WantComma()
  125. continue
  126. }
  127. switch key {
  128. case "styleSheetId":
  129. out.StyleSheetID = StyleSheetID(in.String())
  130. case "origin":
  131. (out.Origin).UnmarshalEasyJSON(in)
  132. case "style":
  133. if in.IsNull() {
  134. in.Skip()
  135. out.Style = nil
  136. } else {
  137. if out.Style == nil {
  138. out.Style = new(Style)
  139. }
  140. (*out.Style).UnmarshalEasyJSON(in)
  141. }
  142. default:
  143. in.SkipRecursive()
  144. }
  145. in.WantComma()
  146. }
  147. in.Delim('}')
  148. if isTopLevel {
  149. in.Consumed()
  150. }
  151. }
  152. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss1(out *jwriter.Writer, in TryRule) {
  153. out.RawByte('{')
  154. first := true
  155. _ = first
  156. if in.StyleSheetID != "" {
  157. const prefix string = ",\"styleSheetId\":"
  158. first = false
  159. out.RawString(prefix[1:])
  160. out.String(string(in.StyleSheetID))
  161. }
  162. {
  163. const prefix string = ",\"origin\":"
  164. if first {
  165. first = false
  166. out.RawString(prefix[1:])
  167. } else {
  168. out.RawString(prefix)
  169. }
  170. (in.Origin).MarshalEasyJSON(out)
  171. }
  172. {
  173. const prefix string = ",\"style\":"
  174. out.RawString(prefix)
  175. if in.Style == nil {
  176. out.RawString("null")
  177. } else {
  178. (*in.Style).MarshalEasyJSON(out)
  179. }
  180. }
  181. out.RawByte('}')
  182. }
  183. // MarshalJSON supports json.Marshaler interface
  184. func (v TryRule) MarshalJSON() ([]byte, error) {
  185. w := jwriter.Writer{}
  186. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss1(&w, v)
  187. return w.Buffer.BuildBytes(), w.Error
  188. }
  189. // MarshalEasyJSON supports easyjson.Marshaler interface
  190. func (v TryRule) MarshalEasyJSON(w *jwriter.Writer) {
  191. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss1(w, v)
  192. }
  193. // UnmarshalJSON supports json.Unmarshaler interface
  194. func (v *TryRule) UnmarshalJSON(data []byte) error {
  195. r := jlexer.Lexer{Data: data}
  196. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss1(&r, v)
  197. return r.Error()
  198. }
  199. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  200. func (v *TryRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
  201. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss1(l, v)
  202. }
  203. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss2(in *jlexer.Lexer, out *TrackComputedStyleUpdatesParams) {
  204. isTopLevel := in.IsStart()
  205. if in.IsNull() {
  206. if isTopLevel {
  207. in.Consumed()
  208. }
  209. in.Skip()
  210. return
  211. }
  212. in.Delim('{')
  213. for !in.IsDelim('}') {
  214. key := in.UnsafeFieldName(false)
  215. in.WantColon()
  216. if in.IsNull() {
  217. in.Skip()
  218. in.WantComma()
  219. continue
  220. }
  221. switch key {
  222. case "propertiesToTrack":
  223. if in.IsNull() {
  224. in.Skip()
  225. out.PropertiesToTrack = nil
  226. } else {
  227. in.Delim('[')
  228. if out.PropertiesToTrack == nil {
  229. if !in.IsDelim(']') {
  230. out.PropertiesToTrack = make([]*ComputedStyleProperty, 0, 8)
  231. } else {
  232. out.PropertiesToTrack = []*ComputedStyleProperty{}
  233. }
  234. } else {
  235. out.PropertiesToTrack = (out.PropertiesToTrack)[:0]
  236. }
  237. for !in.IsDelim(']') {
  238. var v1 *ComputedStyleProperty
  239. if in.IsNull() {
  240. in.Skip()
  241. v1 = nil
  242. } else {
  243. if v1 == nil {
  244. v1 = new(ComputedStyleProperty)
  245. }
  246. (*v1).UnmarshalEasyJSON(in)
  247. }
  248. out.PropertiesToTrack = append(out.PropertiesToTrack, v1)
  249. in.WantComma()
  250. }
  251. in.Delim(']')
  252. }
  253. default:
  254. in.SkipRecursive()
  255. }
  256. in.WantComma()
  257. }
  258. in.Delim('}')
  259. if isTopLevel {
  260. in.Consumed()
  261. }
  262. }
  263. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss2(out *jwriter.Writer, in TrackComputedStyleUpdatesParams) {
  264. out.RawByte('{')
  265. first := true
  266. _ = first
  267. {
  268. const prefix string = ",\"propertiesToTrack\":"
  269. out.RawString(prefix[1:])
  270. if in.PropertiesToTrack == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  271. out.RawString("null")
  272. } else {
  273. out.RawByte('[')
  274. for v2, v3 := range in.PropertiesToTrack {
  275. if v2 > 0 {
  276. out.RawByte(',')
  277. }
  278. if v3 == nil {
  279. out.RawString("null")
  280. } else {
  281. (*v3).MarshalEasyJSON(out)
  282. }
  283. }
  284. out.RawByte(']')
  285. }
  286. }
  287. out.RawByte('}')
  288. }
  289. // MarshalJSON supports json.Marshaler interface
  290. func (v TrackComputedStyleUpdatesParams) MarshalJSON() ([]byte, error) {
  291. w := jwriter.Writer{}
  292. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss2(&w, v)
  293. return w.Buffer.BuildBytes(), w.Error
  294. }
  295. // MarshalEasyJSON supports easyjson.Marshaler interface
  296. func (v TrackComputedStyleUpdatesParams) MarshalEasyJSON(w *jwriter.Writer) {
  297. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss2(w, v)
  298. }
  299. // UnmarshalJSON supports json.Unmarshaler interface
  300. func (v *TrackComputedStyleUpdatesParams) UnmarshalJSON(data []byte) error {
  301. r := jlexer.Lexer{Data: data}
  302. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss2(&r, v)
  303. return r.Error()
  304. }
  305. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  306. func (v *TrackComputedStyleUpdatesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  307. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss2(l, v)
  308. }
  309. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss3(in *jlexer.Lexer, out *TakeCoverageDeltaReturns) {
  310. isTopLevel := in.IsStart()
  311. if in.IsNull() {
  312. if isTopLevel {
  313. in.Consumed()
  314. }
  315. in.Skip()
  316. return
  317. }
  318. in.Delim('{')
  319. for !in.IsDelim('}') {
  320. key := in.UnsafeFieldName(false)
  321. in.WantColon()
  322. if in.IsNull() {
  323. in.Skip()
  324. in.WantComma()
  325. continue
  326. }
  327. switch key {
  328. case "coverage":
  329. if in.IsNull() {
  330. in.Skip()
  331. out.Coverage = nil
  332. } else {
  333. in.Delim('[')
  334. if out.Coverage == nil {
  335. if !in.IsDelim(']') {
  336. out.Coverage = make([]*RuleUsage, 0, 8)
  337. } else {
  338. out.Coverage = []*RuleUsage{}
  339. }
  340. } else {
  341. out.Coverage = (out.Coverage)[:0]
  342. }
  343. for !in.IsDelim(']') {
  344. var v4 *RuleUsage
  345. if in.IsNull() {
  346. in.Skip()
  347. v4 = nil
  348. } else {
  349. if v4 == nil {
  350. v4 = new(RuleUsage)
  351. }
  352. (*v4).UnmarshalEasyJSON(in)
  353. }
  354. out.Coverage = append(out.Coverage, v4)
  355. in.WantComma()
  356. }
  357. in.Delim(']')
  358. }
  359. case "timestamp":
  360. out.Timestamp = float64(in.Float64())
  361. default:
  362. in.SkipRecursive()
  363. }
  364. in.WantComma()
  365. }
  366. in.Delim('}')
  367. if isTopLevel {
  368. in.Consumed()
  369. }
  370. }
  371. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss3(out *jwriter.Writer, in TakeCoverageDeltaReturns) {
  372. out.RawByte('{')
  373. first := true
  374. _ = first
  375. if len(in.Coverage) != 0 {
  376. const prefix string = ",\"coverage\":"
  377. first = false
  378. out.RawString(prefix[1:])
  379. {
  380. out.RawByte('[')
  381. for v5, v6 := range in.Coverage {
  382. if v5 > 0 {
  383. out.RawByte(',')
  384. }
  385. if v6 == nil {
  386. out.RawString("null")
  387. } else {
  388. (*v6).MarshalEasyJSON(out)
  389. }
  390. }
  391. out.RawByte(']')
  392. }
  393. }
  394. if in.Timestamp != 0 {
  395. const prefix string = ",\"timestamp\":"
  396. if first {
  397. first = false
  398. out.RawString(prefix[1:])
  399. } else {
  400. out.RawString(prefix)
  401. }
  402. out.Float64(float64(in.Timestamp))
  403. }
  404. out.RawByte('}')
  405. }
  406. // MarshalJSON supports json.Marshaler interface
  407. func (v TakeCoverageDeltaReturns) MarshalJSON() ([]byte, error) {
  408. w := jwriter.Writer{}
  409. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss3(&w, v)
  410. return w.Buffer.BuildBytes(), w.Error
  411. }
  412. // MarshalEasyJSON supports easyjson.Marshaler interface
  413. func (v TakeCoverageDeltaReturns) MarshalEasyJSON(w *jwriter.Writer) {
  414. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss3(w, v)
  415. }
  416. // UnmarshalJSON supports json.Unmarshaler interface
  417. func (v *TakeCoverageDeltaReturns) UnmarshalJSON(data []byte) error {
  418. r := jlexer.Lexer{Data: data}
  419. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss3(&r, v)
  420. return r.Error()
  421. }
  422. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  423. func (v *TakeCoverageDeltaReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  424. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss3(l, v)
  425. }
  426. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss4(in *jlexer.Lexer, out *TakeCoverageDeltaParams) {
  427. isTopLevel := in.IsStart()
  428. if in.IsNull() {
  429. if isTopLevel {
  430. in.Consumed()
  431. }
  432. in.Skip()
  433. return
  434. }
  435. in.Delim('{')
  436. for !in.IsDelim('}') {
  437. key := in.UnsafeFieldName(false)
  438. in.WantColon()
  439. if in.IsNull() {
  440. in.Skip()
  441. in.WantComma()
  442. continue
  443. }
  444. switch key {
  445. default:
  446. in.SkipRecursive()
  447. }
  448. in.WantComma()
  449. }
  450. in.Delim('}')
  451. if isTopLevel {
  452. in.Consumed()
  453. }
  454. }
  455. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss4(out *jwriter.Writer, in TakeCoverageDeltaParams) {
  456. out.RawByte('{')
  457. first := true
  458. _ = first
  459. out.RawByte('}')
  460. }
  461. // MarshalJSON supports json.Marshaler interface
  462. func (v TakeCoverageDeltaParams) MarshalJSON() ([]byte, error) {
  463. w := jwriter.Writer{}
  464. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss4(&w, v)
  465. return w.Buffer.BuildBytes(), w.Error
  466. }
  467. // MarshalEasyJSON supports easyjson.Marshaler interface
  468. func (v TakeCoverageDeltaParams) MarshalEasyJSON(w *jwriter.Writer) {
  469. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss4(w, v)
  470. }
  471. // UnmarshalJSON supports json.Unmarshaler interface
  472. func (v *TakeCoverageDeltaParams) UnmarshalJSON(data []byte) error {
  473. r := jlexer.Lexer{Data: data}
  474. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss4(&r, v)
  475. return r.Error()
  476. }
  477. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  478. func (v *TakeCoverageDeltaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  479. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss4(l, v)
  480. }
  481. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss5(in *jlexer.Lexer, out *TakeComputedStyleUpdatesReturns) {
  482. isTopLevel := in.IsStart()
  483. if in.IsNull() {
  484. if isTopLevel {
  485. in.Consumed()
  486. }
  487. in.Skip()
  488. return
  489. }
  490. in.Delim('{')
  491. for !in.IsDelim('}') {
  492. key := in.UnsafeFieldName(false)
  493. in.WantColon()
  494. if in.IsNull() {
  495. in.Skip()
  496. in.WantComma()
  497. continue
  498. }
  499. switch key {
  500. case "nodeIds":
  501. if in.IsNull() {
  502. in.Skip()
  503. out.NodeIDs = nil
  504. } else {
  505. in.Delim('[')
  506. if out.NodeIDs == nil {
  507. if !in.IsDelim(']') {
  508. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  509. } else {
  510. out.NodeIDs = []cdp.NodeID{}
  511. }
  512. } else {
  513. out.NodeIDs = (out.NodeIDs)[:0]
  514. }
  515. for !in.IsDelim(']') {
  516. var v7 cdp.NodeID
  517. (v7).UnmarshalEasyJSON(in)
  518. out.NodeIDs = append(out.NodeIDs, v7)
  519. in.WantComma()
  520. }
  521. in.Delim(']')
  522. }
  523. default:
  524. in.SkipRecursive()
  525. }
  526. in.WantComma()
  527. }
  528. in.Delim('}')
  529. if isTopLevel {
  530. in.Consumed()
  531. }
  532. }
  533. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss5(out *jwriter.Writer, in TakeComputedStyleUpdatesReturns) {
  534. out.RawByte('{')
  535. first := true
  536. _ = first
  537. if len(in.NodeIDs) != 0 {
  538. const prefix string = ",\"nodeIds\":"
  539. first = false
  540. out.RawString(prefix[1:])
  541. {
  542. out.RawByte('[')
  543. for v8, v9 := range in.NodeIDs {
  544. if v8 > 0 {
  545. out.RawByte(',')
  546. }
  547. out.Int64(int64(v9))
  548. }
  549. out.RawByte(']')
  550. }
  551. }
  552. out.RawByte('}')
  553. }
  554. // MarshalJSON supports json.Marshaler interface
  555. func (v TakeComputedStyleUpdatesReturns) MarshalJSON() ([]byte, error) {
  556. w := jwriter.Writer{}
  557. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss5(&w, v)
  558. return w.Buffer.BuildBytes(), w.Error
  559. }
  560. // MarshalEasyJSON supports easyjson.Marshaler interface
  561. func (v TakeComputedStyleUpdatesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  562. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss5(w, v)
  563. }
  564. // UnmarshalJSON supports json.Unmarshaler interface
  565. func (v *TakeComputedStyleUpdatesReturns) UnmarshalJSON(data []byte) error {
  566. r := jlexer.Lexer{Data: data}
  567. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss5(&r, v)
  568. return r.Error()
  569. }
  570. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  571. func (v *TakeComputedStyleUpdatesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  572. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss5(l, v)
  573. }
  574. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss6(in *jlexer.Lexer, out *TakeComputedStyleUpdatesParams) {
  575. isTopLevel := in.IsStart()
  576. if in.IsNull() {
  577. if isTopLevel {
  578. in.Consumed()
  579. }
  580. in.Skip()
  581. return
  582. }
  583. in.Delim('{')
  584. for !in.IsDelim('}') {
  585. key := in.UnsafeFieldName(false)
  586. in.WantColon()
  587. if in.IsNull() {
  588. in.Skip()
  589. in.WantComma()
  590. continue
  591. }
  592. switch key {
  593. default:
  594. in.SkipRecursive()
  595. }
  596. in.WantComma()
  597. }
  598. in.Delim('}')
  599. if isTopLevel {
  600. in.Consumed()
  601. }
  602. }
  603. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss6(out *jwriter.Writer, in TakeComputedStyleUpdatesParams) {
  604. out.RawByte('{')
  605. first := true
  606. _ = first
  607. out.RawByte('}')
  608. }
  609. // MarshalJSON supports json.Marshaler interface
  610. func (v TakeComputedStyleUpdatesParams) MarshalJSON() ([]byte, error) {
  611. w := jwriter.Writer{}
  612. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss6(&w, v)
  613. return w.Buffer.BuildBytes(), w.Error
  614. }
  615. // MarshalEasyJSON supports easyjson.Marshaler interface
  616. func (v TakeComputedStyleUpdatesParams) MarshalEasyJSON(w *jwriter.Writer) {
  617. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss6(w, v)
  618. }
  619. // UnmarshalJSON supports json.Unmarshaler interface
  620. func (v *TakeComputedStyleUpdatesParams) UnmarshalJSON(data []byte) error {
  621. r := jlexer.Lexer{Data: data}
  622. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss6(&r, v)
  623. return r.Error()
  624. }
  625. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  626. func (v *TakeComputedStyleUpdatesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  627. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss6(l, v)
  628. }
  629. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss7(in *jlexer.Lexer, out *Supports) {
  630. isTopLevel := in.IsStart()
  631. if in.IsNull() {
  632. if isTopLevel {
  633. in.Consumed()
  634. }
  635. in.Skip()
  636. return
  637. }
  638. in.Delim('{')
  639. for !in.IsDelim('}') {
  640. key := in.UnsafeFieldName(false)
  641. in.WantColon()
  642. if in.IsNull() {
  643. in.Skip()
  644. in.WantComma()
  645. continue
  646. }
  647. switch key {
  648. case "text":
  649. out.Text = string(in.String())
  650. case "active":
  651. out.Active = bool(in.Bool())
  652. case "range":
  653. if in.IsNull() {
  654. in.Skip()
  655. out.Range = nil
  656. } else {
  657. if out.Range == nil {
  658. out.Range = new(SourceRange)
  659. }
  660. (*out.Range).UnmarshalEasyJSON(in)
  661. }
  662. case "styleSheetId":
  663. out.StyleSheetID = StyleSheetID(in.String())
  664. default:
  665. in.SkipRecursive()
  666. }
  667. in.WantComma()
  668. }
  669. in.Delim('}')
  670. if isTopLevel {
  671. in.Consumed()
  672. }
  673. }
  674. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss7(out *jwriter.Writer, in Supports) {
  675. out.RawByte('{')
  676. first := true
  677. _ = first
  678. {
  679. const prefix string = ",\"text\":"
  680. out.RawString(prefix[1:])
  681. out.String(string(in.Text))
  682. }
  683. {
  684. const prefix string = ",\"active\":"
  685. out.RawString(prefix)
  686. out.Bool(bool(in.Active))
  687. }
  688. if in.Range != nil {
  689. const prefix string = ",\"range\":"
  690. out.RawString(prefix)
  691. (*in.Range).MarshalEasyJSON(out)
  692. }
  693. if in.StyleSheetID != "" {
  694. const prefix string = ",\"styleSheetId\":"
  695. out.RawString(prefix)
  696. out.String(string(in.StyleSheetID))
  697. }
  698. out.RawByte('}')
  699. }
  700. // MarshalJSON supports json.Marshaler interface
  701. func (v Supports) MarshalJSON() ([]byte, error) {
  702. w := jwriter.Writer{}
  703. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss7(&w, v)
  704. return w.Buffer.BuildBytes(), w.Error
  705. }
  706. // MarshalEasyJSON supports easyjson.Marshaler interface
  707. func (v Supports) MarshalEasyJSON(w *jwriter.Writer) {
  708. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss7(w, v)
  709. }
  710. // UnmarshalJSON supports json.Unmarshaler interface
  711. func (v *Supports) UnmarshalJSON(data []byte) error {
  712. r := jlexer.Lexer{Data: data}
  713. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss7(&r, v)
  714. return r.Error()
  715. }
  716. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  717. func (v *Supports) UnmarshalEasyJSON(l *jlexer.Lexer) {
  718. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss7(l, v)
  719. }
  720. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss8(in *jlexer.Lexer, out *StyleSheetHeader) {
  721. isTopLevel := in.IsStart()
  722. if in.IsNull() {
  723. if isTopLevel {
  724. in.Consumed()
  725. }
  726. in.Skip()
  727. return
  728. }
  729. in.Delim('{')
  730. for !in.IsDelim('}') {
  731. key := in.UnsafeFieldName(false)
  732. in.WantColon()
  733. if in.IsNull() {
  734. in.Skip()
  735. in.WantComma()
  736. continue
  737. }
  738. switch key {
  739. case "styleSheetId":
  740. out.StyleSheetID = StyleSheetID(in.String())
  741. case "frameId":
  742. (out.FrameID).UnmarshalEasyJSON(in)
  743. case "sourceURL":
  744. out.SourceURL = string(in.String())
  745. case "sourceMapURL":
  746. out.SourceMapURL = string(in.String())
  747. case "origin":
  748. (out.Origin).UnmarshalEasyJSON(in)
  749. case "title":
  750. out.Title = string(in.String())
  751. case "ownerNode":
  752. (out.OwnerNode).UnmarshalEasyJSON(in)
  753. case "disabled":
  754. out.Disabled = bool(in.Bool())
  755. case "hasSourceURL":
  756. out.HasSourceURL = bool(in.Bool())
  757. case "isInline":
  758. out.IsInline = bool(in.Bool())
  759. case "isMutable":
  760. out.IsMutable = bool(in.Bool())
  761. case "isConstructed":
  762. out.IsConstructed = bool(in.Bool())
  763. case "startLine":
  764. out.StartLine = float64(in.Float64())
  765. case "startColumn":
  766. out.StartColumn = float64(in.Float64())
  767. case "length":
  768. out.Length = float64(in.Float64())
  769. case "endLine":
  770. out.EndLine = float64(in.Float64())
  771. case "endColumn":
  772. out.EndColumn = float64(in.Float64())
  773. case "loadingFailed":
  774. out.LoadingFailed = bool(in.Bool())
  775. default:
  776. in.SkipRecursive()
  777. }
  778. in.WantComma()
  779. }
  780. in.Delim('}')
  781. if isTopLevel {
  782. in.Consumed()
  783. }
  784. }
  785. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss8(out *jwriter.Writer, in StyleSheetHeader) {
  786. out.RawByte('{')
  787. first := true
  788. _ = first
  789. {
  790. const prefix string = ",\"styleSheetId\":"
  791. out.RawString(prefix[1:])
  792. out.String(string(in.StyleSheetID))
  793. }
  794. {
  795. const prefix string = ",\"frameId\":"
  796. out.RawString(prefix)
  797. out.String(string(in.FrameID))
  798. }
  799. {
  800. const prefix string = ",\"sourceURL\":"
  801. out.RawString(prefix)
  802. out.String(string(in.SourceURL))
  803. }
  804. if in.SourceMapURL != "" {
  805. const prefix string = ",\"sourceMapURL\":"
  806. out.RawString(prefix)
  807. out.String(string(in.SourceMapURL))
  808. }
  809. {
  810. const prefix string = ",\"origin\":"
  811. out.RawString(prefix)
  812. (in.Origin).MarshalEasyJSON(out)
  813. }
  814. {
  815. const prefix string = ",\"title\":"
  816. out.RawString(prefix)
  817. out.String(string(in.Title))
  818. }
  819. if in.OwnerNode != 0 {
  820. const prefix string = ",\"ownerNode\":"
  821. out.RawString(prefix)
  822. out.Int64(int64(in.OwnerNode))
  823. }
  824. {
  825. const prefix string = ",\"disabled\":"
  826. out.RawString(prefix)
  827. out.Bool(bool(in.Disabled))
  828. }
  829. if in.HasSourceURL {
  830. const prefix string = ",\"hasSourceURL\":"
  831. out.RawString(prefix)
  832. out.Bool(bool(in.HasSourceURL))
  833. }
  834. {
  835. const prefix string = ",\"isInline\":"
  836. out.RawString(prefix)
  837. out.Bool(bool(in.IsInline))
  838. }
  839. {
  840. const prefix string = ",\"isMutable\":"
  841. out.RawString(prefix)
  842. out.Bool(bool(in.IsMutable))
  843. }
  844. {
  845. const prefix string = ",\"isConstructed\":"
  846. out.RawString(prefix)
  847. out.Bool(bool(in.IsConstructed))
  848. }
  849. {
  850. const prefix string = ",\"startLine\":"
  851. out.RawString(prefix)
  852. out.Float64(float64(in.StartLine))
  853. }
  854. {
  855. const prefix string = ",\"startColumn\":"
  856. out.RawString(prefix)
  857. out.Float64(float64(in.StartColumn))
  858. }
  859. {
  860. const prefix string = ",\"length\":"
  861. out.RawString(prefix)
  862. out.Float64(float64(in.Length))
  863. }
  864. {
  865. const prefix string = ",\"endLine\":"
  866. out.RawString(prefix)
  867. out.Float64(float64(in.EndLine))
  868. }
  869. {
  870. const prefix string = ",\"endColumn\":"
  871. out.RawString(prefix)
  872. out.Float64(float64(in.EndColumn))
  873. }
  874. if in.LoadingFailed {
  875. const prefix string = ",\"loadingFailed\":"
  876. out.RawString(prefix)
  877. out.Bool(bool(in.LoadingFailed))
  878. }
  879. out.RawByte('}')
  880. }
  881. // MarshalJSON supports json.Marshaler interface
  882. func (v StyleSheetHeader) MarshalJSON() ([]byte, error) {
  883. w := jwriter.Writer{}
  884. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss8(&w, v)
  885. return w.Buffer.BuildBytes(), w.Error
  886. }
  887. // MarshalEasyJSON supports easyjson.Marshaler interface
  888. func (v StyleSheetHeader) MarshalEasyJSON(w *jwriter.Writer) {
  889. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss8(w, v)
  890. }
  891. // UnmarshalJSON supports json.Unmarshaler interface
  892. func (v *StyleSheetHeader) UnmarshalJSON(data []byte) error {
  893. r := jlexer.Lexer{Data: data}
  894. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss8(&r, v)
  895. return r.Error()
  896. }
  897. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  898. func (v *StyleSheetHeader) UnmarshalEasyJSON(l *jlexer.Lexer) {
  899. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss8(l, v)
  900. }
  901. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss9(in *jlexer.Lexer, out *StyleDeclarationEdit) {
  902. isTopLevel := in.IsStart()
  903. if in.IsNull() {
  904. if isTopLevel {
  905. in.Consumed()
  906. }
  907. in.Skip()
  908. return
  909. }
  910. in.Delim('{')
  911. for !in.IsDelim('}') {
  912. key := in.UnsafeFieldName(false)
  913. in.WantColon()
  914. if in.IsNull() {
  915. in.Skip()
  916. in.WantComma()
  917. continue
  918. }
  919. switch key {
  920. case "styleSheetId":
  921. out.StyleSheetID = StyleSheetID(in.String())
  922. case "range":
  923. if in.IsNull() {
  924. in.Skip()
  925. out.Range = nil
  926. } else {
  927. if out.Range == nil {
  928. out.Range = new(SourceRange)
  929. }
  930. (*out.Range).UnmarshalEasyJSON(in)
  931. }
  932. case "text":
  933. out.Text = string(in.String())
  934. default:
  935. in.SkipRecursive()
  936. }
  937. in.WantComma()
  938. }
  939. in.Delim('}')
  940. if isTopLevel {
  941. in.Consumed()
  942. }
  943. }
  944. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss9(out *jwriter.Writer, in StyleDeclarationEdit) {
  945. out.RawByte('{')
  946. first := true
  947. _ = first
  948. {
  949. const prefix string = ",\"styleSheetId\":"
  950. out.RawString(prefix[1:])
  951. out.String(string(in.StyleSheetID))
  952. }
  953. {
  954. const prefix string = ",\"range\":"
  955. out.RawString(prefix)
  956. if in.Range == nil {
  957. out.RawString("null")
  958. } else {
  959. (*in.Range).MarshalEasyJSON(out)
  960. }
  961. }
  962. {
  963. const prefix string = ",\"text\":"
  964. out.RawString(prefix)
  965. out.String(string(in.Text))
  966. }
  967. out.RawByte('}')
  968. }
  969. // MarshalJSON supports json.Marshaler interface
  970. func (v StyleDeclarationEdit) MarshalJSON() ([]byte, error) {
  971. w := jwriter.Writer{}
  972. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss9(&w, v)
  973. return w.Buffer.BuildBytes(), w.Error
  974. }
  975. // MarshalEasyJSON supports easyjson.Marshaler interface
  976. func (v StyleDeclarationEdit) MarshalEasyJSON(w *jwriter.Writer) {
  977. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss9(w, v)
  978. }
  979. // UnmarshalJSON supports json.Unmarshaler interface
  980. func (v *StyleDeclarationEdit) UnmarshalJSON(data []byte) error {
  981. r := jlexer.Lexer{Data: data}
  982. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss9(&r, v)
  983. return r.Error()
  984. }
  985. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  986. func (v *StyleDeclarationEdit) UnmarshalEasyJSON(l *jlexer.Lexer) {
  987. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss9(l, v)
  988. }
  989. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss10(in *jlexer.Lexer, out *Style) {
  990. isTopLevel := in.IsStart()
  991. if in.IsNull() {
  992. if isTopLevel {
  993. in.Consumed()
  994. }
  995. in.Skip()
  996. return
  997. }
  998. in.Delim('{')
  999. for !in.IsDelim('}') {
  1000. key := in.UnsafeFieldName(false)
  1001. in.WantColon()
  1002. if in.IsNull() {
  1003. in.Skip()
  1004. in.WantComma()
  1005. continue
  1006. }
  1007. switch key {
  1008. case "styleSheetId":
  1009. out.StyleSheetID = StyleSheetID(in.String())
  1010. case "cssProperties":
  1011. if in.IsNull() {
  1012. in.Skip()
  1013. out.CSSProperties = nil
  1014. } else {
  1015. in.Delim('[')
  1016. if out.CSSProperties == nil {
  1017. if !in.IsDelim(']') {
  1018. out.CSSProperties = make([]*Property, 0, 8)
  1019. } else {
  1020. out.CSSProperties = []*Property{}
  1021. }
  1022. } else {
  1023. out.CSSProperties = (out.CSSProperties)[:0]
  1024. }
  1025. for !in.IsDelim(']') {
  1026. var v10 *Property
  1027. if in.IsNull() {
  1028. in.Skip()
  1029. v10 = nil
  1030. } else {
  1031. if v10 == nil {
  1032. v10 = new(Property)
  1033. }
  1034. (*v10).UnmarshalEasyJSON(in)
  1035. }
  1036. out.CSSProperties = append(out.CSSProperties, v10)
  1037. in.WantComma()
  1038. }
  1039. in.Delim(']')
  1040. }
  1041. case "shorthandEntries":
  1042. if in.IsNull() {
  1043. in.Skip()
  1044. out.ShorthandEntries = nil
  1045. } else {
  1046. in.Delim('[')
  1047. if out.ShorthandEntries == nil {
  1048. if !in.IsDelim(']') {
  1049. out.ShorthandEntries = make([]*ShorthandEntry, 0, 8)
  1050. } else {
  1051. out.ShorthandEntries = []*ShorthandEntry{}
  1052. }
  1053. } else {
  1054. out.ShorthandEntries = (out.ShorthandEntries)[:0]
  1055. }
  1056. for !in.IsDelim(']') {
  1057. var v11 *ShorthandEntry
  1058. if in.IsNull() {
  1059. in.Skip()
  1060. v11 = nil
  1061. } else {
  1062. if v11 == nil {
  1063. v11 = new(ShorthandEntry)
  1064. }
  1065. (*v11).UnmarshalEasyJSON(in)
  1066. }
  1067. out.ShorthandEntries = append(out.ShorthandEntries, v11)
  1068. in.WantComma()
  1069. }
  1070. in.Delim(']')
  1071. }
  1072. case "cssText":
  1073. out.CSSText = string(in.String())
  1074. case "range":
  1075. if in.IsNull() {
  1076. in.Skip()
  1077. out.Range = nil
  1078. } else {
  1079. if out.Range == nil {
  1080. out.Range = new(SourceRange)
  1081. }
  1082. (*out.Range).UnmarshalEasyJSON(in)
  1083. }
  1084. default:
  1085. in.SkipRecursive()
  1086. }
  1087. in.WantComma()
  1088. }
  1089. in.Delim('}')
  1090. if isTopLevel {
  1091. in.Consumed()
  1092. }
  1093. }
  1094. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss10(out *jwriter.Writer, in Style) {
  1095. out.RawByte('{')
  1096. first := true
  1097. _ = first
  1098. if in.StyleSheetID != "" {
  1099. const prefix string = ",\"styleSheetId\":"
  1100. first = false
  1101. out.RawString(prefix[1:])
  1102. out.String(string(in.StyleSheetID))
  1103. }
  1104. {
  1105. const prefix string = ",\"cssProperties\":"
  1106. if first {
  1107. first = false
  1108. out.RawString(prefix[1:])
  1109. } else {
  1110. out.RawString(prefix)
  1111. }
  1112. if in.CSSProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1113. out.RawString("null")
  1114. } else {
  1115. out.RawByte('[')
  1116. for v12, v13 := range in.CSSProperties {
  1117. if v12 > 0 {
  1118. out.RawByte(',')
  1119. }
  1120. if v13 == nil {
  1121. out.RawString("null")
  1122. } else {
  1123. (*v13).MarshalEasyJSON(out)
  1124. }
  1125. }
  1126. out.RawByte(']')
  1127. }
  1128. }
  1129. {
  1130. const prefix string = ",\"shorthandEntries\":"
  1131. out.RawString(prefix)
  1132. if in.ShorthandEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1133. out.RawString("null")
  1134. } else {
  1135. out.RawByte('[')
  1136. for v14, v15 := range in.ShorthandEntries {
  1137. if v14 > 0 {
  1138. out.RawByte(',')
  1139. }
  1140. if v15 == nil {
  1141. out.RawString("null")
  1142. } else {
  1143. (*v15).MarshalEasyJSON(out)
  1144. }
  1145. }
  1146. out.RawByte(']')
  1147. }
  1148. }
  1149. if in.CSSText != "" {
  1150. const prefix string = ",\"cssText\":"
  1151. out.RawString(prefix)
  1152. out.String(string(in.CSSText))
  1153. }
  1154. if in.Range != nil {
  1155. const prefix string = ",\"range\":"
  1156. out.RawString(prefix)
  1157. (*in.Range).MarshalEasyJSON(out)
  1158. }
  1159. out.RawByte('}')
  1160. }
  1161. // MarshalJSON supports json.Marshaler interface
  1162. func (v Style) MarshalJSON() ([]byte, error) {
  1163. w := jwriter.Writer{}
  1164. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss10(&w, v)
  1165. return w.Buffer.BuildBytes(), w.Error
  1166. }
  1167. // MarshalEasyJSON supports easyjson.Marshaler interface
  1168. func (v Style) MarshalEasyJSON(w *jwriter.Writer) {
  1169. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss10(w, v)
  1170. }
  1171. // UnmarshalJSON supports json.Unmarshaler interface
  1172. func (v *Style) UnmarshalJSON(data []byte) error {
  1173. r := jlexer.Lexer{Data: data}
  1174. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss10(&r, v)
  1175. return r.Error()
  1176. }
  1177. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1178. func (v *Style) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1179. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss10(l, v)
  1180. }
  1181. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss11(in *jlexer.Lexer, out *StopRuleUsageTrackingReturns) {
  1182. isTopLevel := in.IsStart()
  1183. if in.IsNull() {
  1184. if isTopLevel {
  1185. in.Consumed()
  1186. }
  1187. in.Skip()
  1188. return
  1189. }
  1190. in.Delim('{')
  1191. for !in.IsDelim('}') {
  1192. key := in.UnsafeFieldName(false)
  1193. in.WantColon()
  1194. if in.IsNull() {
  1195. in.Skip()
  1196. in.WantComma()
  1197. continue
  1198. }
  1199. switch key {
  1200. case "ruleUsage":
  1201. if in.IsNull() {
  1202. in.Skip()
  1203. out.RuleUsage = nil
  1204. } else {
  1205. in.Delim('[')
  1206. if out.RuleUsage == nil {
  1207. if !in.IsDelim(']') {
  1208. out.RuleUsage = make([]*RuleUsage, 0, 8)
  1209. } else {
  1210. out.RuleUsage = []*RuleUsage{}
  1211. }
  1212. } else {
  1213. out.RuleUsage = (out.RuleUsage)[:0]
  1214. }
  1215. for !in.IsDelim(']') {
  1216. var v16 *RuleUsage
  1217. if in.IsNull() {
  1218. in.Skip()
  1219. v16 = nil
  1220. } else {
  1221. if v16 == nil {
  1222. v16 = new(RuleUsage)
  1223. }
  1224. (*v16).UnmarshalEasyJSON(in)
  1225. }
  1226. out.RuleUsage = append(out.RuleUsage, v16)
  1227. in.WantComma()
  1228. }
  1229. in.Delim(']')
  1230. }
  1231. default:
  1232. in.SkipRecursive()
  1233. }
  1234. in.WantComma()
  1235. }
  1236. in.Delim('}')
  1237. if isTopLevel {
  1238. in.Consumed()
  1239. }
  1240. }
  1241. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss11(out *jwriter.Writer, in StopRuleUsageTrackingReturns) {
  1242. out.RawByte('{')
  1243. first := true
  1244. _ = first
  1245. if len(in.RuleUsage) != 0 {
  1246. const prefix string = ",\"ruleUsage\":"
  1247. first = false
  1248. out.RawString(prefix[1:])
  1249. {
  1250. out.RawByte('[')
  1251. for v17, v18 := range in.RuleUsage {
  1252. if v17 > 0 {
  1253. out.RawByte(',')
  1254. }
  1255. if v18 == nil {
  1256. out.RawString("null")
  1257. } else {
  1258. (*v18).MarshalEasyJSON(out)
  1259. }
  1260. }
  1261. out.RawByte(']')
  1262. }
  1263. }
  1264. out.RawByte('}')
  1265. }
  1266. // MarshalJSON supports json.Marshaler interface
  1267. func (v StopRuleUsageTrackingReturns) MarshalJSON() ([]byte, error) {
  1268. w := jwriter.Writer{}
  1269. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss11(&w, v)
  1270. return w.Buffer.BuildBytes(), w.Error
  1271. }
  1272. // MarshalEasyJSON supports easyjson.Marshaler interface
  1273. func (v StopRuleUsageTrackingReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1274. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss11(w, v)
  1275. }
  1276. // UnmarshalJSON supports json.Unmarshaler interface
  1277. func (v *StopRuleUsageTrackingReturns) UnmarshalJSON(data []byte) error {
  1278. r := jlexer.Lexer{Data: data}
  1279. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss11(&r, v)
  1280. return r.Error()
  1281. }
  1282. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1283. func (v *StopRuleUsageTrackingReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1284. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss11(l, v)
  1285. }
  1286. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss12(in *jlexer.Lexer, out *StopRuleUsageTrackingParams) {
  1287. isTopLevel := in.IsStart()
  1288. if in.IsNull() {
  1289. if isTopLevel {
  1290. in.Consumed()
  1291. }
  1292. in.Skip()
  1293. return
  1294. }
  1295. in.Delim('{')
  1296. for !in.IsDelim('}') {
  1297. key := in.UnsafeFieldName(false)
  1298. in.WantColon()
  1299. if in.IsNull() {
  1300. in.Skip()
  1301. in.WantComma()
  1302. continue
  1303. }
  1304. switch key {
  1305. default:
  1306. in.SkipRecursive()
  1307. }
  1308. in.WantComma()
  1309. }
  1310. in.Delim('}')
  1311. if isTopLevel {
  1312. in.Consumed()
  1313. }
  1314. }
  1315. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss12(out *jwriter.Writer, in StopRuleUsageTrackingParams) {
  1316. out.RawByte('{')
  1317. first := true
  1318. _ = first
  1319. out.RawByte('}')
  1320. }
  1321. // MarshalJSON supports json.Marshaler interface
  1322. func (v StopRuleUsageTrackingParams) MarshalJSON() ([]byte, error) {
  1323. w := jwriter.Writer{}
  1324. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss12(&w, v)
  1325. return w.Buffer.BuildBytes(), w.Error
  1326. }
  1327. // MarshalEasyJSON supports easyjson.Marshaler interface
  1328. func (v StopRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
  1329. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss12(w, v)
  1330. }
  1331. // UnmarshalJSON supports json.Unmarshaler interface
  1332. func (v *StopRuleUsageTrackingParams) UnmarshalJSON(data []byte) error {
  1333. r := jlexer.Lexer{Data: data}
  1334. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss12(&r, v)
  1335. return r.Error()
  1336. }
  1337. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1338. func (v *StopRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1339. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss12(l, v)
  1340. }
  1341. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss13(in *jlexer.Lexer, out *StartRuleUsageTrackingParams) {
  1342. isTopLevel := in.IsStart()
  1343. if in.IsNull() {
  1344. if isTopLevel {
  1345. in.Consumed()
  1346. }
  1347. in.Skip()
  1348. return
  1349. }
  1350. in.Delim('{')
  1351. for !in.IsDelim('}') {
  1352. key := in.UnsafeFieldName(false)
  1353. in.WantColon()
  1354. if in.IsNull() {
  1355. in.Skip()
  1356. in.WantComma()
  1357. continue
  1358. }
  1359. switch key {
  1360. default:
  1361. in.SkipRecursive()
  1362. }
  1363. in.WantComma()
  1364. }
  1365. in.Delim('}')
  1366. if isTopLevel {
  1367. in.Consumed()
  1368. }
  1369. }
  1370. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss13(out *jwriter.Writer, in StartRuleUsageTrackingParams) {
  1371. out.RawByte('{')
  1372. first := true
  1373. _ = first
  1374. out.RawByte('}')
  1375. }
  1376. // MarshalJSON supports json.Marshaler interface
  1377. func (v StartRuleUsageTrackingParams) MarshalJSON() ([]byte, error) {
  1378. w := jwriter.Writer{}
  1379. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss13(&w, v)
  1380. return w.Buffer.BuildBytes(), w.Error
  1381. }
  1382. // MarshalEasyJSON supports easyjson.Marshaler interface
  1383. func (v StartRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
  1384. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss13(w, v)
  1385. }
  1386. // UnmarshalJSON supports json.Unmarshaler interface
  1387. func (v *StartRuleUsageTrackingParams) UnmarshalJSON(data []byte) error {
  1388. r := jlexer.Lexer{Data: data}
  1389. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss13(&r, v)
  1390. return r.Error()
  1391. }
  1392. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1393. func (v *StartRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1394. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss13(l, v)
  1395. }
  1396. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss14(in *jlexer.Lexer, out *Specificity) {
  1397. isTopLevel := in.IsStart()
  1398. if in.IsNull() {
  1399. if isTopLevel {
  1400. in.Consumed()
  1401. }
  1402. in.Skip()
  1403. return
  1404. }
  1405. in.Delim('{')
  1406. for !in.IsDelim('}') {
  1407. key := in.UnsafeFieldName(false)
  1408. in.WantColon()
  1409. if in.IsNull() {
  1410. in.Skip()
  1411. in.WantComma()
  1412. continue
  1413. }
  1414. switch key {
  1415. case "a":
  1416. out.A = int64(in.Int64())
  1417. case "b":
  1418. out.B = int64(in.Int64())
  1419. case "c":
  1420. out.C = int64(in.Int64())
  1421. default:
  1422. in.SkipRecursive()
  1423. }
  1424. in.WantComma()
  1425. }
  1426. in.Delim('}')
  1427. if isTopLevel {
  1428. in.Consumed()
  1429. }
  1430. }
  1431. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss14(out *jwriter.Writer, in Specificity) {
  1432. out.RawByte('{')
  1433. first := true
  1434. _ = first
  1435. {
  1436. const prefix string = ",\"a\":"
  1437. out.RawString(prefix[1:])
  1438. out.Int64(int64(in.A))
  1439. }
  1440. {
  1441. const prefix string = ",\"b\":"
  1442. out.RawString(prefix)
  1443. out.Int64(int64(in.B))
  1444. }
  1445. {
  1446. const prefix string = ",\"c\":"
  1447. out.RawString(prefix)
  1448. out.Int64(int64(in.C))
  1449. }
  1450. out.RawByte('}')
  1451. }
  1452. // MarshalJSON supports json.Marshaler interface
  1453. func (v Specificity) MarshalJSON() ([]byte, error) {
  1454. w := jwriter.Writer{}
  1455. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss14(&w, v)
  1456. return w.Buffer.BuildBytes(), w.Error
  1457. }
  1458. // MarshalEasyJSON supports easyjson.Marshaler interface
  1459. func (v Specificity) MarshalEasyJSON(w *jwriter.Writer) {
  1460. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss14(w, v)
  1461. }
  1462. // UnmarshalJSON supports json.Unmarshaler interface
  1463. func (v *Specificity) UnmarshalJSON(data []byte) error {
  1464. r := jlexer.Lexer{Data: data}
  1465. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss14(&r, v)
  1466. return r.Error()
  1467. }
  1468. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1469. func (v *Specificity) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1470. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss14(l, v)
  1471. }
  1472. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss15(in *jlexer.Lexer, out *SourceRange) {
  1473. isTopLevel := in.IsStart()
  1474. if in.IsNull() {
  1475. if isTopLevel {
  1476. in.Consumed()
  1477. }
  1478. in.Skip()
  1479. return
  1480. }
  1481. in.Delim('{')
  1482. for !in.IsDelim('}') {
  1483. key := in.UnsafeFieldName(false)
  1484. in.WantColon()
  1485. if in.IsNull() {
  1486. in.Skip()
  1487. in.WantComma()
  1488. continue
  1489. }
  1490. switch key {
  1491. case "startLine":
  1492. out.StartLine = int64(in.Int64())
  1493. case "startColumn":
  1494. out.StartColumn = int64(in.Int64())
  1495. case "endLine":
  1496. out.EndLine = int64(in.Int64())
  1497. case "endColumn":
  1498. out.EndColumn = int64(in.Int64())
  1499. default:
  1500. in.SkipRecursive()
  1501. }
  1502. in.WantComma()
  1503. }
  1504. in.Delim('}')
  1505. if isTopLevel {
  1506. in.Consumed()
  1507. }
  1508. }
  1509. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss15(out *jwriter.Writer, in SourceRange) {
  1510. out.RawByte('{')
  1511. first := true
  1512. _ = first
  1513. {
  1514. const prefix string = ",\"startLine\":"
  1515. out.RawString(prefix[1:])
  1516. out.Int64(int64(in.StartLine))
  1517. }
  1518. {
  1519. const prefix string = ",\"startColumn\":"
  1520. out.RawString(prefix)
  1521. out.Int64(int64(in.StartColumn))
  1522. }
  1523. {
  1524. const prefix string = ",\"endLine\":"
  1525. out.RawString(prefix)
  1526. out.Int64(int64(in.EndLine))
  1527. }
  1528. {
  1529. const prefix string = ",\"endColumn\":"
  1530. out.RawString(prefix)
  1531. out.Int64(int64(in.EndColumn))
  1532. }
  1533. out.RawByte('}')
  1534. }
  1535. // MarshalJSON supports json.Marshaler interface
  1536. func (v SourceRange) MarshalJSON() ([]byte, error) {
  1537. w := jwriter.Writer{}
  1538. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss15(&w, v)
  1539. return w.Buffer.BuildBytes(), w.Error
  1540. }
  1541. // MarshalEasyJSON supports easyjson.Marshaler interface
  1542. func (v SourceRange) MarshalEasyJSON(w *jwriter.Writer) {
  1543. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss15(w, v)
  1544. }
  1545. // UnmarshalJSON supports json.Unmarshaler interface
  1546. func (v *SourceRange) UnmarshalJSON(data []byte) error {
  1547. r := jlexer.Lexer{Data: data}
  1548. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss15(&r, v)
  1549. return r.Error()
  1550. }
  1551. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1552. func (v *SourceRange) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1553. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss15(l, v)
  1554. }
  1555. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss16(in *jlexer.Lexer, out *ShorthandEntry) {
  1556. isTopLevel := in.IsStart()
  1557. if in.IsNull() {
  1558. if isTopLevel {
  1559. in.Consumed()
  1560. }
  1561. in.Skip()
  1562. return
  1563. }
  1564. in.Delim('{')
  1565. for !in.IsDelim('}') {
  1566. key := in.UnsafeFieldName(false)
  1567. in.WantColon()
  1568. if in.IsNull() {
  1569. in.Skip()
  1570. in.WantComma()
  1571. continue
  1572. }
  1573. switch key {
  1574. case "name":
  1575. out.Name = string(in.String())
  1576. case "value":
  1577. out.Value = string(in.String())
  1578. case "important":
  1579. out.Important = bool(in.Bool())
  1580. default:
  1581. in.SkipRecursive()
  1582. }
  1583. in.WantComma()
  1584. }
  1585. in.Delim('}')
  1586. if isTopLevel {
  1587. in.Consumed()
  1588. }
  1589. }
  1590. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss16(out *jwriter.Writer, in ShorthandEntry) {
  1591. out.RawByte('{')
  1592. first := true
  1593. _ = first
  1594. {
  1595. const prefix string = ",\"name\":"
  1596. out.RawString(prefix[1:])
  1597. out.String(string(in.Name))
  1598. }
  1599. {
  1600. const prefix string = ",\"value\":"
  1601. out.RawString(prefix)
  1602. out.String(string(in.Value))
  1603. }
  1604. if in.Important {
  1605. const prefix string = ",\"important\":"
  1606. out.RawString(prefix)
  1607. out.Bool(bool(in.Important))
  1608. }
  1609. out.RawByte('}')
  1610. }
  1611. // MarshalJSON supports json.Marshaler interface
  1612. func (v ShorthandEntry) MarshalJSON() ([]byte, error) {
  1613. w := jwriter.Writer{}
  1614. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss16(&w, v)
  1615. return w.Buffer.BuildBytes(), w.Error
  1616. }
  1617. // MarshalEasyJSON supports easyjson.Marshaler interface
  1618. func (v ShorthandEntry) MarshalEasyJSON(w *jwriter.Writer) {
  1619. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss16(w, v)
  1620. }
  1621. // UnmarshalJSON supports json.Unmarshaler interface
  1622. func (v *ShorthandEntry) UnmarshalJSON(data []byte) error {
  1623. r := jlexer.Lexer{Data: data}
  1624. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss16(&r, v)
  1625. return r.Error()
  1626. }
  1627. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1628. func (v *ShorthandEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1629. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss16(l, v)
  1630. }
  1631. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss17(in *jlexer.Lexer, out *SetSupportsTextReturns) {
  1632. isTopLevel := in.IsStart()
  1633. if in.IsNull() {
  1634. if isTopLevel {
  1635. in.Consumed()
  1636. }
  1637. in.Skip()
  1638. return
  1639. }
  1640. in.Delim('{')
  1641. for !in.IsDelim('}') {
  1642. key := in.UnsafeFieldName(false)
  1643. in.WantColon()
  1644. if in.IsNull() {
  1645. in.Skip()
  1646. in.WantComma()
  1647. continue
  1648. }
  1649. switch key {
  1650. case "supports":
  1651. if in.IsNull() {
  1652. in.Skip()
  1653. out.Supports = nil
  1654. } else {
  1655. if out.Supports == nil {
  1656. out.Supports = new(Supports)
  1657. }
  1658. (*out.Supports).UnmarshalEasyJSON(in)
  1659. }
  1660. default:
  1661. in.SkipRecursive()
  1662. }
  1663. in.WantComma()
  1664. }
  1665. in.Delim('}')
  1666. if isTopLevel {
  1667. in.Consumed()
  1668. }
  1669. }
  1670. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss17(out *jwriter.Writer, in SetSupportsTextReturns) {
  1671. out.RawByte('{')
  1672. first := true
  1673. _ = first
  1674. if in.Supports != nil {
  1675. const prefix string = ",\"supports\":"
  1676. first = false
  1677. out.RawString(prefix[1:])
  1678. (*in.Supports).MarshalEasyJSON(out)
  1679. }
  1680. out.RawByte('}')
  1681. }
  1682. // MarshalJSON supports json.Marshaler interface
  1683. func (v SetSupportsTextReturns) MarshalJSON() ([]byte, error) {
  1684. w := jwriter.Writer{}
  1685. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss17(&w, v)
  1686. return w.Buffer.BuildBytes(), w.Error
  1687. }
  1688. // MarshalEasyJSON supports easyjson.Marshaler interface
  1689. func (v SetSupportsTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1690. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss17(w, v)
  1691. }
  1692. // UnmarshalJSON supports json.Unmarshaler interface
  1693. func (v *SetSupportsTextReturns) UnmarshalJSON(data []byte) error {
  1694. r := jlexer.Lexer{Data: data}
  1695. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss17(&r, v)
  1696. return r.Error()
  1697. }
  1698. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1699. func (v *SetSupportsTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1700. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss17(l, v)
  1701. }
  1702. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss18(in *jlexer.Lexer, out *SetSupportsTextParams) {
  1703. isTopLevel := in.IsStart()
  1704. if in.IsNull() {
  1705. if isTopLevel {
  1706. in.Consumed()
  1707. }
  1708. in.Skip()
  1709. return
  1710. }
  1711. in.Delim('{')
  1712. for !in.IsDelim('}') {
  1713. key := in.UnsafeFieldName(false)
  1714. in.WantColon()
  1715. if in.IsNull() {
  1716. in.Skip()
  1717. in.WantComma()
  1718. continue
  1719. }
  1720. switch key {
  1721. case "styleSheetId":
  1722. out.StyleSheetID = StyleSheetID(in.String())
  1723. case "range":
  1724. if in.IsNull() {
  1725. in.Skip()
  1726. out.Range = nil
  1727. } else {
  1728. if out.Range == nil {
  1729. out.Range = new(SourceRange)
  1730. }
  1731. (*out.Range).UnmarshalEasyJSON(in)
  1732. }
  1733. case "text":
  1734. out.Text = string(in.String())
  1735. default:
  1736. in.SkipRecursive()
  1737. }
  1738. in.WantComma()
  1739. }
  1740. in.Delim('}')
  1741. if isTopLevel {
  1742. in.Consumed()
  1743. }
  1744. }
  1745. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss18(out *jwriter.Writer, in SetSupportsTextParams) {
  1746. out.RawByte('{')
  1747. first := true
  1748. _ = first
  1749. {
  1750. const prefix string = ",\"styleSheetId\":"
  1751. out.RawString(prefix[1:])
  1752. out.String(string(in.StyleSheetID))
  1753. }
  1754. {
  1755. const prefix string = ",\"range\":"
  1756. out.RawString(prefix)
  1757. if in.Range == nil {
  1758. out.RawString("null")
  1759. } else {
  1760. (*in.Range).MarshalEasyJSON(out)
  1761. }
  1762. }
  1763. {
  1764. const prefix string = ",\"text\":"
  1765. out.RawString(prefix)
  1766. out.String(string(in.Text))
  1767. }
  1768. out.RawByte('}')
  1769. }
  1770. // MarshalJSON supports json.Marshaler interface
  1771. func (v SetSupportsTextParams) MarshalJSON() ([]byte, error) {
  1772. w := jwriter.Writer{}
  1773. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss18(&w, v)
  1774. return w.Buffer.BuildBytes(), w.Error
  1775. }
  1776. // MarshalEasyJSON supports easyjson.Marshaler interface
  1777. func (v SetSupportsTextParams) MarshalEasyJSON(w *jwriter.Writer) {
  1778. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss18(w, v)
  1779. }
  1780. // UnmarshalJSON supports json.Unmarshaler interface
  1781. func (v *SetSupportsTextParams) UnmarshalJSON(data []byte) error {
  1782. r := jlexer.Lexer{Data: data}
  1783. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss18(&r, v)
  1784. return r.Error()
  1785. }
  1786. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1787. func (v *SetSupportsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1788. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss18(l, v)
  1789. }
  1790. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss19(in *jlexer.Lexer, out *SetStyleTextsReturns) {
  1791. isTopLevel := in.IsStart()
  1792. if in.IsNull() {
  1793. if isTopLevel {
  1794. in.Consumed()
  1795. }
  1796. in.Skip()
  1797. return
  1798. }
  1799. in.Delim('{')
  1800. for !in.IsDelim('}') {
  1801. key := in.UnsafeFieldName(false)
  1802. in.WantColon()
  1803. if in.IsNull() {
  1804. in.Skip()
  1805. in.WantComma()
  1806. continue
  1807. }
  1808. switch key {
  1809. case "styles":
  1810. if in.IsNull() {
  1811. in.Skip()
  1812. out.Styles = nil
  1813. } else {
  1814. in.Delim('[')
  1815. if out.Styles == nil {
  1816. if !in.IsDelim(']') {
  1817. out.Styles = make([]*Style, 0, 8)
  1818. } else {
  1819. out.Styles = []*Style{}
  1820. }
  1821. } else {
  1822. out.Styles = (out.Styles)[:0]
  1823. }
  1824. for !in.IsDelim(']') {
  1825. var v19 *Style
  1826. if in.IsNull() {
  1827. in.Skip()
  1828. v19 = nil
  1829. } else {
  1830. if v19 == nil {
  1831. v19 = new(Style)
  1832. }
  1833. (*v19).UnmarshalEasyJSON(in)
  1834. }
  1835. out.Styles = append(out.Styles, v19)
  1836. in.WantComma()
  1837. }
  1838. in.Delim(']')
  1839. }
  1840. default:
  1841. in.SkipRecursive()
  1842. }
  1843. in.WantComma()
  1844. }
  1845. in.Delim('}')
  1846. if isTopLevel {
  1847. in.Consumed()
  1848. }
  1849. }
  1850. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss19(out *jwriter.Writer, in SetStyleTextsReturns) {
  1851. out.RawByte('{')
  1852. first := true
  1853. _ = first
  1854. if len(in.Styles) != 0 {
  1855. const prefix string = ",\"styles\":"
  1856. first = false
  1857. out.RawString(prefix[1:])
  1858. {
  1859. out.RawByte('[')
  1860. for v20, v21 := range in.Styles {
  1861. if v20 > 0 {
  1862. out.RawByte(',')
  1863. }
  1864. if v21 == nil {
  1865. out.RawString("null")
  1866. } else {
  1867. (*v21).MarshalEasyJSON(out)
  1868. }
  1869. }
  1870. out.RawByte(']')
  1871. }
  1872. }
  1873. out.RawByte('}')
  1874. }
  1875. // MarshalJSON supports json.Marshaler interface
  1876. func (v SetStyleTextsReturns) MarshalJSON() ([]byte, error) {
  1877. w := jwriter.Writer{}
  1878. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss19(&w, v)
  1879. return w.Buffer.BuildBytes(), w.Error
  1880. }
  1881. // MarshalEasyJSON supports easyjson.Marshaler interface
  1882. func (v SetStyleTextsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1883. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss19(w, v)
  1884. }
  1885. // UnmarshalJSON supports json.Unmarshaler interface
  1886. func (v *SetStyleTextsReturns) UnmarshalJSON(data []byte) error {
  1887. r := jlexer.Lexer{Data: data}
  1888. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss19(&r, v)
  1889. return r.Error()
  1890. }
  1891. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1892. func (v *SetStyleTextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1893. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss19(l, v)
  1894. }
  1895. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss20(in *jlexer.Lexer, out *SetStyleTextsParams) {
  1896. isTopLevel := in.IsStart()
  1897. if in.IsNull() {
  1898. if isTopLevel {
  1899. in.Consumed()
  1900. }
  1901. in.Skip()
  1902. return
  1903. }
  1904. in.Delim('{')
  1905. for !in.IsDelim('}') {
  1906. key := in.UnsafeFieldName(false)
  1907. in.WantColon()
  1908. if in.IsNull() {
  1909. in.Skip()
  1910. in.WantComma()
  1911. continue
  1912. }
  1913. switch key {
  1914. case "edits":
  1915. if in.IsNull() {
  1916. in.Skip()
  1917. out.Edits = nil
  1918. } else {
  1919. in.Delim('[')
  1920. if out.Edits == nil {
  1921. if !in.IsDelim(']') {
  1922. out.Edits = make([]*StyleDeclarationEdit, 0, 8)
  1923. } else {
  1924. out.Edits = []*StyleDeclarationEdit{}
  1925. }
  1926. } else {
  1927. out.Edits = (out.Edits)[:0]
  1928. }
  1929. for !in.IsDelim(']') {
  1930. var v22 *StyleDeclarationEdit
  1931. if in.IsNull() {
  1932. in.Skip()
  1933. v22 = nil
  1934. } else {
  1935. if v22 == nil {
  1936. v22 = new(StyleDeclarationEdit)
  1937. }
  1938. (*v22).UnmarshalEasyJSON(in)
  1939. }
  1940. out.Edits = append(out.Edits, v22)
  1941. in.WantComma()
  1942. }
  1943. in.Delim(']')
  1944. }
  1945. case "nodeForPropertySyntaxValidation":
  1946. (out.NodeForPropertySyntaxValidation).UnmarshalEasyJSON(in)
  1947. default:
  1948. in.SkipRecursive()
  1949. }
  1950. in.WantComma()
  1951. }
  1952. in.Delim('}')
  1953. if isTopLevel {
  1954. in.Consumed()
  1955. }
  1956. }
  1957. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss20(out *jwriter.Writer, in SetStyleTextsParams) {
  1958. out.RawByte('{')
  1959. first := true
  1960. _ = first
  1961. {
  1962. const prefix string = ",\"edits\":"
  1963. out.RawString(prefix[1:])
  1964. if in.Edits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1965. out.RawString("null")
  1966. } else {
  1967. out.RawByte('[')
  1968. for v23, v24 := range in.Edits {
  1969. if v23 > 0 {
  1970. out.RawByte(',')
  1971. }
  1972. if v24 == nil {
  1973. out.RawString("null")
  1974. } else {
  1975. (*v24).MarshalEasyJSON(out)
  1976. }
  1977. }
  1978. out.RawByte(']')
  1979. }
  1980. }
  1981. if in.NodeForPropertySyntaxValidation != 0 {
  1982. const prefix string = ",\"nodeForPropertySyntaxValidation\":"
  1983. out.RawString(prefix)
  1984. out.Int64(int64(in.NodeForPropertySyntaxValidation))
  1985. }
  1986. out.RawByte('}')
  1987. }
  1988. // MarshalJSON supports json.Marshaler interface
  1989. func (v SetStyleTextsParams) MarshalJSON() ([]byte, error) {
  1990. w := jwriter.Writer{}
  1991. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss20(&w, v)
  1992. return w.Buffer.BuildBytes(), w.Error
  1993. }
  1994. // MarshalEasyJSON supports easyjson.Marshaler interface
  1995. func (v SetStyleTextsParams) MarshalEasyJSON(w *jwriter.Writer) {
  1996. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss20(w, v)
  1997. }
  1998. // UnmarshalJSON supports json.Unmarshaler interface
  1999. func (v *SetStyleTextsParams) UnmarshalJSON(data []byte) error {
  2000. r := jlexer.Lexer{Data: data}
  2001. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss20(&r, v)
  2002. return r.Error()
  2003. }
  2004. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2005. func (v *SetStyleTextsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2006. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss20(l, v)
  2007. }
  2008. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss21(in *jlexer.Lexer, out *SetStyleSheetTextReturns) {
  2009. isTopLevel := in.IsStart()
  2010. if in.IsNull() {
  2011. if isTopLevel {
  2012. in.Consumed()
  2013. }
  2014. in.Skip()
  2015. return
  2016. }
  2017. in.Delim('{')
  2018. for !in.IsDelim('}') {
  2019. key := in.UnsafeFieldName(false)
  2020. in.WantColon()
  2021. if in.IsNull() {
  2022. in.Skip()
  2023. in.WantComma()
  2024. continue
  2025. }
  2026. switch key {
  2027. case "sourceMapURL":
  2028. out.SourceMapURL = string(in.String())
  2029. default:
  2030. in.SkipRecursive()
  2031. }
  2032. in.WantComma()
  2033. }
  2034. in.Delim('}')
  2035. if isTopLevel {
  2036. in.Consumed()
  2037. }
  2038. }
  2039. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss21(out *jwriter.Writer, in SetStyleSheetTextReturns) {
  2040. out.RawByte('{')
  2041. first := true
  2042. _ = first
  2043. if in.SourceMapURL != "" {
  2044. const prefix string = ",\"sourceMapURL\":"
  2045. first = false
  2046. out.RawString(prefix[1:])
  2047. out.String(string(in.SourceMapURL))
  2048. }
  2049. out.RawByte('}')
  2050. }
  2051. // MarshalJSON supports json.Marshaler interface
  2052. func (v SetStyleSheetTextReturns) MarshalJSON() ([]byte, error) {
  2053. w := jwriter.Writer{}
  2054. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss21(&w, v)
  2055. return w.Buffer.BuildBytes(), w.Error
  2056. }
  2057. // MarshalEasyJSON supports easyjson.Marshaler interface
  2058. func (v SetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2059. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss21(w, v)
  2060. }
  2061. // UnmarshalJSON supports json.Unmarshaler interface
  2062. func (v *SetStyleSheetTextReturns) UnmarshalJSON(data []byte) error {
  2063. r := jlexer.Lexer{Data: data}
  2064. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss21(&r, v)
  2065. return r.Error()
  2066. }
  2067. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2068. func (v *SetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2069. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss21(l, v)
  2070. }
  2071. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss22(in *jlexer.Lexer, out *SetStyleSheetTextParams) {
  2072. isTopLevel := in.IsStart()
  2073. if in.IsNull() {
  2074. if isTopLevel {
  2075. in.Consumed()
  2076. }
  2077. in.Skip()
  2078. return
  2079. }
  2080. in.Delim('{')
  2081. for !in.IsDelim('}') {
  2082. key := in.UnsafeFieldName(false)
  2083. in.WantColon()
  2084. if in.IsNull() {
  2085. in.Skip()
  2086. in.WantComma()
  2087. continue
  2088. }
  2089. switch key {
  2090. case "styleSheetId":
  2091. out.StyleSheetID = StyleSheetID(in.String())
  2092. case "text":
  2093. out.Text = string(in.String())
  2094. default:
  2095. in.SkipRecursive()
  2096. }
  2097. in.WantComma()
  2098. }
  2099. in.Delim('}')
  2100. if isTopLevel {
  2101. in.Consumed()
  2102. }
  2103. }
  2104. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss22(out *jwriter.Writer, in SetStyleSheetTextParams) {
  2105. out.RawByte('{')
  2106. first := true
  2107. _ = first
  2108. {
  2109. const prefix string = ",\"styleSheetId\":"
  2110. out.RawString(prefix[1:])
  2111. out.String(string(in.StyleSheetID))
  2112. }
  2113. {
  2114. const prefix string = ",\"text\":"
  2115. out.RawString(prefix)
  2116. out.String(string(in.Text))
  2117. }
  2118. out.RawByte('}')
  2119. }
  2120. // MarshalJSON supports json.Marshaler interface
  2121. func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error) {
  2122. w := jwriter.Writer{}
  2123. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss22(&w, v)
  2124. return w.Buffer.BuildBytes(), w.Error
  2125. }
  2126. // MarshalEasyJSON supports easyjson.Marshaler interface
  2127. func (v SetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) {
  2128. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss22(w, v)
  2129. }
  2130. // UnmarshalJSON supports json.Unmarshaler interface
  2131. func (v *SetStyleSheetTextParams) UnmarshalJSON(data []byte) error {
  2132. r := jlexer.Lexer{Data: data}
  2133. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss22(&r, v)
  2134. return r.Error()
  2135. }
  2136. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2137. func (v *SetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2138. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss22(l, v)
  2139. }
  2140. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss23(in *jlexer.Lexer, out *SetScopeTextReturns) {
  2141. isTopLevel := in.IsStart()
  2142. if in.IsNull() {
  2143. if isTopLevel {
  2144. in.Consumed()
  2145. }
  2146. in.Skip()
  2147. return
  2148. }
  2149. in.Delim('{')
  2150. for !in.IsDelim('}') {
  2151. key := in.UnsafeFieldName(false)
  2152. in.WantColon()
  2153. if in.IsNull() {
  2154. in.Skip()
  2155. in.WantComma()
  2156. continue
  2157. }
  2158. switch key {
  2159. case "scope":
  2160. if in.IsNull() {
  2161. in.Skip()
  2162. out.Scope = nil
  2163. } else {
  2164. if out.Scope == nil {
  2165. out.Scope = new(Scope)
  2166. }
  2167. (*out.Scope).UnmarshalEasyJSON(in)
  2168. }
  2169. default:
  2170. in.SkipRecursive()
  2171. }
  2172. in.WantComma()
  2173. }
  2174. in.Delim('}')
  2175. if isTopLevel {
  2176. in.Consumed()
  2177. }
  2178. }
  2179. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss23(out *jwriter.Writer, in SetScopeTextReturns) {
  2180. out.RawByte('{')
  2181. first := true
  2182. _ = first
  2183. if in.Scope != nil {
  2184. const prefix string = ",\"scope\":"
  2185. first = false
  2186. out.RawString(prefix[1:])
  2187. (*in.Scope).MarshalEasyJSON(out)
  2188. }
  2189. out.RawByte('}')
  2190. }
  2191. // MarshalJSON supports json.Marshaler interface
  2192. func (v SetScopeTextReturns) MarshalJSON() ([]byte, error) {
  2193. w := jwriter.Writer{}
  2194. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss23(&w, v)
  2195. return w.Buffer.BuildBytes(), w.Error
  2196. }
  2197. // MarshalEasyJSON supports easyjson.Marshaler interface
  2198. func (v SetScopeTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2199. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss23(w, v)
  2200. }
  2201. // UnmarshalJSON supports json.Unmarshaler interface
  2202. func (v *SetScopeTextReturns) UnmarshalJSON(data []byte) error {
  2203. r := jlexer.Lexer{Data: data}
  2204. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss23(&r, v)
  2205. return r.Error()
  2206. }
  2207. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2208. func (v *SetScopeTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2209. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss23(l, v)
  2210. }
  2211. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss24(in *jlexer.Lexer, out *SetScopeTextParams) {
  2212. isTopLevel := in.IsStart()
  2213. if in.IsNull() {
  2214. if isTopLevel {
  2215. in.Consumed()
  2216. }
  2217. in.Skip()
  2218. return
  2219. }
  2220. in.Delim('{')
  2221. for !in.IsDelim('}') {
  2222. key := in.UnsafeFieldName(false)
  2223. in.WantColon()
  2224. if in.IsNull() {
  2225. in.Skip()
  2226. in.WantComma()
  2227. continue
  2228. }
  2229. switch key {
  2230. case "styleSheetId":
  2231. out.StyleSheetID = StyleSheetID(in.String())
  2232. case "range":
  2233. if in.IsNull() {
  2234. in.Skip()
  2235. out.Range = nil
  2236. } else {
  2237. if out.Range == nil {
  2238. out.Range = new(SourceRange)
  2239. }
  2240. (*out.Range).UnmarshalEasyJSON(in)
  2241. }
  2242. case "text":
  2243. out.Text = string(in.String())
  2244. default:
  2245. in.SkipRecursive()
  2246. }
  2247. in.WantComma()
  2248. }
  2249. in.Delim('}')
  2250. if isTopLevel {
  2251. in.Consumed()
  2252. }
  2253. }
  2254. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss24(out *jwriter.Writer, in SetScopeTextParams) {
  2255. out.RawByte('{')
  2256. first := true
  2257. _ = first
  2258. {
  2259. const prefix string = ",\"styleSheetId\":"
  2260. out.RawString(prefix[1:])
  2261. out.String(string(in.StyleSheetID))
  2262. }
  2263. {
  2264. const prefix string = ",\"range\":"
  2265. out.RawString(prefix)
  2266. if in.Range == nil {
  2267. out.RawString("null")
  2268. } else {
  2269. (*in.Range).MarshalEasyJSON(out)
  2270. }
  2271. }
  2272. {
  2273. const prefix string = ",\"text\":"
  2274. out.RawString(prefix)
  2275. out.String(string(in.Text))
  2276. }
  2277. out.RawByte('}')
  2278. }
  2279. // MarshalJSON supports json.Marshaler interface
  2280. func (v SetScopeTextParams) MarshalJSON() ([]byte, error) {
  2281. w := jwriter.Writer{}
  2282. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss24(&w, v)
  2283. return w.Buffer.BuildBytes(), w.Error
  2284. }
  2285. // MarshalEasyJSON supports easyjson.Marshaler interface
  2286. func (v SetScopeTextParams) MarshalEasyJSON(w *jwriter.Writer) {
  2287. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss24(w, v)
  2288. }
  2289. // UnmarshalJSON supports json.Unmarshaler interface
  2290. func (v *SetScopeTextParams) UnmarshalJSON(data []byte) error {
  2291. r := jlexer.Lexer{Data: data}
  2292. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss24(&r, v)
  2293. return r.Error()
  2294. }
  2295. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2296. func (v *SetScopeTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2297. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss24(l, v)
  2298. }
  2299. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss25(in *jlexer.Lexer, out *SetRuleSelectorReturns) {
  2300. isTopLevel := in.IsStart()
  2301. if in.IsNull() {
  2302. if isTopLevel {
  2303. in.Consumed()
  2304. }
  2305. in.Skip()
  2306. return
  2307. }
  2308. in.Delim('{')
  2309. for !in.IsDelim('}') {
  2310. key := in.UnsafeFieldName(false)
  2311. in.WantColon()
  2312. if in.IsNull() {
  2313. in.Skip()
  2314. in.WantComma()
  2315. continue
  2316. }
  2317. switch key {
  2318. case "selectorList":
  2319. if in.IsNull() {
  2320. in.Skip()
  2321. out.SelectorList = nil
  2322. } else {
  2323. if out.SelectorList == nil {
  2324. out.SelectorList = new(SelectorList)
  2325. }
  2326. (*out.SelectorList).UnmarshalEasyJSON(in)
  2327. }
  2328. default:
  2329. in.SkipRecursive()
  2330. }
  2331. in.WantComma()
  2332. }
  2333. in.Delim('}')
  2334. if isTopLevel {
  2335. in.Consumed()
  2336. }
  2337. }
  2338. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss25(out *jwriter.Writer, in SetRuleSelectorReturns) {
  2339. out.RawByte('{')
  2340. first := true
  2341. _ = first
  2342. if in.SelectorList != nil {
  2343. const prefix string = ",\"selectorList\":"
  2344. first = false
  2345. out.RawString(prefix[1:])
  2346. (*in.SelectorList).MarshalEasyJSON(out)
  2347. }
  2348. out.RawByte('}')
  2349. }
  2350. // MarshalJSON supports json.Marshaler interface
  2351. func (v SetRuleSelectorReturns) MarshalJSON() ([]byte, error) {
  2352. w := jwriter.Writer{}
  2353. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss25(&w, v)
  2354. return w.Buffer.BuildBytes(), w.Error
  2355. }
  2356. // MarshalEasyJSON supports easyjson.Marshaler interface
  2357. func (v SetRuleSelectorReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2358. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss25(w, v)
  2359. }
  2360. // UnmarshalJSON supports json.Unmarshaler interface
  2361. func (v *SetRuleSelectorReturns) UnmarshalJSON(data []byte) error {
  2362. r := jlexer.Lexer{Data: data}
  2363. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss25(&r, v)
  2364. return r.Error()
  2365. }
  2366. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2367. func (v *SetRuleSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2368. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss25(l, v)
  2369. }
  2370. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss26(in *jlexer.Lexer, out *SetRuleSelectorParams) {
  2371. isTopLevel := in.IsStart()
  2372. if in.IsNull() {
  2373. if isTopLevel {
  2374. in.Consumed()
  2375. }
  2376. in.Skip()
  2377. return
  2378. }
  2379. in.Delim('{')
  2380. for !in.IsDelim('}') {
  2381. key := in.UnsafeFieldName(false)
  2382. in.WantColon()
  2383. if in.IsNull() {
  2384. in.Skip()
  2385. in.WantComma()
  2386. continue
  2387. }
  2388. switch key {
  2389. case "styleSheetId":
  2390. out.StyleSheetID = StyleSheetID(in.String())
  2391. case "range":
  2392. if in.IsNull() {
  2393. in.Skip()
  2394. out.Range = nil
  2395. } else {
  2396. if out.Range == nil {
  2397. out.Range = new(SourceRange)
  2398. }
  2399. (*out.Range).UnmarshalEasyJSON(in)
  2400. }
  2401. case "selector":
  2402. out.Selector = string(in.String())
  2403. default:
  2404. in.SkipRecursive()
  2405. }
  2406. in.WantComma()
  2407. }
  2408. in.Delim('}')
  2409. if isTopLevel {
  2410. in.Consumed()
  2411. }
  2412. }
  2413. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss26(out *jwriter.Writer, in SetRuleSelectorParams) {
  2414. out.RawByte('{')
  2415. first := true
  2416. _ = first
  2417. {
  2418. const prefix string = ",\"styleSheetId\":"
  2419. out.RawString(prefix[1:])
  2420. out.String(string(in.StyleSheetID))
  2421. }
  2422. {
  2423. const prefix string = ",\"range\":"
  2424. out.RawString(prefix)
  2425. if in.Range == nil {
  2426. out.RawString("null")
  2427. } else {
  2428. (*in.Range).MarshalEasyJSON(out)
  2429. }
  2430. }
  2431. {
  2432. const prefix string = ",\"selector\":"
  2433. out.RawString(prefix)
  2434. out.String(string(in.Selector))
  2435. }
  2436. out.RawByte('}')
  2437. }
  2438. // MarshalJSON supports json.Marshaler interface
  2439. func (v SetRuleSelectorParams) MarshalJSON() ([]byte, error) {
  2440. w := jwriter.Writer{}
  2441. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss26(&w, v)
  2442. return w.Buffer.BuildBytes(), w.Error
  2443. }
  2444. // MarshalEasyJSON supports easyjson.Marshaler interface
  2445. func (v SetRuleSelectorParams) MarshalEasyJSON(w *jwriter.Writer) {
  2446. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss26(w, v)
  2447. }
  2448. // UnmarshalJSON supports json.Unmarshaler interface
  2449. func (v *SetRuleSelectorParams) UnmarshalJSON(data []byte) error {
  2450. r := jlexer.Lexer{Data: data}
  2451. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss26(&r, v)
  2452. return r.Error()
  2453. }
  2454. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2455. func (v *SetRuleSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2456. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss26(l, v)
  2457. }
  2458. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss27(in *jlexer.Lexer, out *SetPropertyRulePropertyNameReturns) {
  2459. isTopLevel := in.IsStart()
  2460. if in.IsNull() {
  2461. if isTopLevel {
  2462. in.Consumed()
  2463. }
  2464. in.Skip()
  2465. return
  2466. }
  2467. in.Delim('{')
  2468. for !in.IsDelim('}') {
  2469. key := in.UnsafeFieldName(false)
  2470. in.WantColon()
  2471. if in.IsNull() {
  2472. in.Skip()
  2473. in.WantComma()
  2474. continue
  2475. }
  2476. switch key {
  2477. case "propertyName":
  2478. if in.IsNull() {
  2479. in.Skip()
  2480. out.PropertyName = nil
  2481. } else {
  2482. if out.PropertyName == nil {
  2483. out.PropertyName = new(Value)
  2484. }
  2485. (*out.PropertyName).UnmarshalEasyJSON(in)
  2486. }
  2487. default:
  2488. in.SkipRecursive()
  2489. }
  2490. in.WantComma()
  2491. }
  2492. in.Delim('}')
  2493. if isTopLevel {
  2494. in.Consumed()
  2495. }
  2496. }
  2497. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss27(out *jwriter.Writer, in SetPropertyRulePropertyNameReturns) {
  2498. out.RawByte('{')
  2499. first := true
  2500. _ = first
  2501. if in.PropertyName != nil {
  2502. const prefix string = ",\"propertyName\":"
  2503. first = false
  2504. out.RawString(prefix[1:])
  2505. (*in.PropertyName).MarshalEasyJSON(out)
  2506. }
  2507. out.RawByte('}')
  2508. }
  2509. // MarshalJSON supports json.Marshaler interface
  2510. func (v SetPropertyRulePropertyNameReturns) MarshalJSON() ([]byte, error) {
  2511. w := jwriter.Writer{}
  2512. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss27(&w, v)
  2513. return w.Buffer.BuildBytes(), w.Error
  2514. }
  2515. // MarshalEasyJSON supports easyjson.Marshaler interface
  2516. func (v SetPropertyRulePropertyNameReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2517. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss27(w, v)
  2518. }
  2519. // UnmarshalJSON supports json.Unmarshaler interface
  2520. func (v *SetPropertyRulePropertyNameReturns) UnmarshalJSON(data []byte) error {
  2521. r := jlexer.Lexer{Data: data}
  2522. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss27(&r, v)
  2523. return r.Error()
  2524. }
  2525. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2526. func (v *SetPropertyRulePropertyNameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2527. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss27(l, v)
  2528. }
  2529. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss28(in *jlexer.Lexer, out *SetPropertyRulePropertyNameParams) {
  2530. isTopLevel := in.IsStart()
  2531. if in.IsNull() {
  2532. if isTopLevel {
  2533. in.Consumed()
  2534. }
  2535. in.Skip()
  2536. return
  2537. }
  2538. in.Delim('{')
  2539. for !in.IsDelim('}') {
  2540. key := in.UnsafeFieldName(false)
  2541. in.WantColon()
  2542. if in.IsNull() {
  2543. in.Skip()
  2544. in.WantComma()
  2545. continue
  2546. }
  2547. switch key {
  2548. case "styleSheetId":
  2549. out.StyleSheetID = StyleSheetID(in.String())
  2550. case "range":
  2551. if in.IsNull() {
  2552. in.Skip()
  2553. out.Range = nil
  2554. } else {
  2555. if out.Range == nil {
  2556. out.Range = new(SourceRange)
  2557. }
  2558. (*out.Range).UnmarshalEasyJSON(in)
  2559. }
  2560. case "propertyName":
  2561. out.PropertyName = string(in.String())
  2562. default:
  2563. in.SkipRecursive()
  2564. }
  2565. in.WantComma()
  2566. }
  2567. in.Delim('}')
  2568. if isTopLevel {
  2569. in.Consumed()
  2570. }
  2571. }
  2572. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss28(out *jwriter.Writer, in SetPropertyRulePropertyNameParams) {
  2573. out.RawByte('{')
  2574. first := true
  2575. _ = first
  2576. {
  2577. const prefix string = ",\"styleSheetId\":"
  2578. out.RawString(prefix[1:])
  2579. out.String(string(in.StyleSheetID))
  2580. }
  2581. {
  2582. const prefix string = ",\"range\":"
  2583. out.RawString(prefix)
  2584. if in.Range == nil {
  2585. out.RawString("null")
  2586. } else {
  2587. (*in.Range).MarshalEasyJSON(out)
  2588. }
  2589. }
  2590. {
  2591. const prefix string = ",\"propertyName\":"
  2592. out.RawString(prefix)
  2593. out.String(string(in.PropertyName))
  2594. }
  2595. out.RawByte('}')
  2596. }
  2597. // MarshalJSON supports json.Marshaler interface
  2598. func (v SetPropertyRulePropertyNameParams) MarshalJSON() ([]byte, error) {
  2599. w := jwriter.Writer{}
  2600. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss28(&w, v)
  2601. return w.Buffer.BuildBytes(), w.Error
  2602. }
  2603. // MarshalEasyJSON supports easyjson.Marshaler interface
  2604. func (v SetPropertyRulePropertyNameParams) MarshalEasyJSON(w *jwriter.Writer) {
  2605. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss28(w, v)
  2606. }
  2607. // UnmarshalJSON supports json.Unmarshaler interface
  2608. func (v *SetPropertyRulePropertyNameParams) UnmarshalJSON(data []byte) error {
  2609. r := jlexer.Lexer{Data: data}
  2610. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss28(&r, v)
  2611. return r.Error()
  2612. }
  2613. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2614. func (v *SetPropertyRulePropertyNameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2615. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss28(l, v)
  2616. }
  2617. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss29(in *jlexer.Lexer, out *SetMediaTextReturns) {
  2618. isTopLevel := in.IsStart()
  2619. if in.IsNull() {
  2620. if isTopLevel {
  2621. in.Consumed()
  2622. }
  2623. in.Skip()
  2624. return
  2625. }
  2626. in.Delim('{')
  2627. for !in.IsDelim('}') {
  2628. key := in.UnsafeFieldName(false)
  2629. in.WantColon()
  2630. if in.IsNull() {
  2631. in.Skip()
  2632. in.WantComma()
  2633. continue
  2634. }
  2635. switch key {
  2636. case "media":
  2637. if in.IsNull() {
  2638. in.Skip()
  2639. out.Media = nil
  2640. } else {
  2641. if out.Media == nil {
  2642. out.Media = new(Media)
  2643. }
  2644. (*out.Media).UnmarshalEasyJSON(in)
  2645. }
  2646. default:
  2647. in.SkipRecursive()
  2648. }
  2649. in.WantComma()
  2650. }
  2651. in.Delim('}')
  2652. if isTopLevel {
  2653. in.Consumed()
  2654. }
  2655. }
  2656. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss29(out *jwriter.Writer, in SetMediaTextReturns) {
  2657. out.RawByte('{')
  2658. first := true
  2659. _ = first
  2660. if in.Media != nil {
  2661. const prefix string = ",\"media\":"
  2662. first = false
  2663. out.RawString(prefix[1:])
  2664. (*in.Media).MarshalEasyJSON(out)
  2665. }
  2666. out.RawByte('}')
  2667. }
  2668. // MarshalJSON supports json.Marshaler interface
  2669. func (v SetMediaTextReturns) MarshalJSON() ([]byte, error) {
  2670. w := jwriter.Writer{}
  2671. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss29(&w, v)
  2672. return w.Buffer.BuildBytes(), w.Error
  2673. }
  2674. // MarshalEasyJSON supports easyjson.Marshaler interface
  2675. func (v SetMediaTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2676. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss29(w, v)
  2677. }
  2678. // UnmarshalJSON supports json.Unmarshaler interface
  2679. func (v *SetMediaTextReturns) UnmarshalJSON(data []byte) error {
  2680. r := jlexer.Lexer{Data: data}
  2681. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss29(&r, v)
  2682. return r.Error()
  2683. }
  2684. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2685. func (v *SetMediaTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2686. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss29(l, v)
  2687. }
  2688. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss30(in *jlexer.Lexer, out *SetMediaTextParams) {
  2689. isTopLevel := in.IsStart()
  2690. if in.IsNull() {
  2691. if isTopLevel {
  2692. in.Consumed()
  2693. }
  2694. in.Skip()
  2695. return
  2696. }
  2697. in.Delim('{')
  2698. for !in.IsDelim('}') {
  2699. key := in.UnsafeFieldName(false)
  2700. in.WantColon()
  2701. if in.IsNull() {
  2702. in.Skip()
  2703. in.WantComma()
  2704. continue
  2705. }
  2706. switch key {
  2707. case "styleSheetId":
  2708. out.StyleSheetID = StyleSheetID(in.String())
  2709. case "range":
  2710. if in.IsNull() {
  2711. in.Skip()
  2712. out.Range = nil
  2713. } else {
  2714. if out.Range == nil {
  2715. out.Range = new(SourceRange)
  2716. }
  2717. (*out.Range).UnmarshalEasyJSON(in)
  2718. }
  2719. case "text":
  2720. out.Text = string(in.String())
  2721. default:
  2722. in.SkipRecursive()
  2723. }
  2724. in.WantComma()
  2725. }
  2726. in.Delim('}')
  2727. if isTopLevel {
  2728. in.Consumed()
  2729. }
  2730. }
  2731. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss30(out *jwriter.Writer, in SetMediaTextParams) {
  2732. out.RawByte('{')
  2733. first := true
  2734. _ = first
  2735. {
  2736. const prefix string = ",\"styleSheetId\":"
  2737. out.RawString(prefix[1:])
  2738. out.String(string(in.StyleSheetID))
  2739. }
  2740. {
  2741. const prefix string = ",\"range\":"
  2742. out.RawString(prefix)
  2743. if in.Range == nil {
  2744. out.RawString("null")
  2745. } else {
  2746. (*in.Range).MarshalEasyJSON(out)
  2747. }
  2748. }
  2749. {
  2750. const prefix string = ",\"text\":"
  2751. out.RawString(prefix)
  2752. out.String(string(in.Text))
  2753. }
  2754. out.RawByte('}')
  2755. }
  2756. // MarshalJSON supports json.Marshaler interface
  2757. func (v SetMediaTextParams) MarshalJSON() ([]byte, error) {
  2758. w := jwriter.Writer{}
  2759. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss30(&w, v)
  2760. return w.Buffer.BuildBytes(), w.Error
  2761. }
  2762. // MarshalEasyJSON supports easyjson.Marshaler interface
  2763. func (v SetMediaTextParams) MarshalEasyJSON(w *jwriter.Writer) {
  2764. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss30(w, v)
  2765. }
  2766. // UnmarshalJSON supports json.Unmarshaler interface
  2767. func (v *SetMediaTextParams) UnmarshalJSON(data []byte) error {
  2768. r := jlexer.Lexer{Data: data}
  2769. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss30(&r, v)
  2770. return r.Error()
  2771. }
  2772. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2773. func (v *SetMediaTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2774. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss30(l, v)
  2775. }
  2776. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss31(in *jlexer.Lexer, out *SetLocalFontsEnabledParams) {
  2777. isTopLevel := in.IsStart()
  2778. if in.IsNull() {
  2779. if isTopLevel {
  2780. in.Consumed()
  2781. }
  2782. in.Skip()
  2783. return
  2784. }
  2785. in.Delim('{')
  2786. for !in.IsDelim('}') {
  2787. key := in.UnsafeFieldName(false)
  2788. in.WantColon()
  2789. if in.IsNull() {
  2790. in.Skip()
  2791. in.WantComma()
  2792. continue
  2793. }
  2794. switch key {
  2795. case "enabled":
  2796. out.Enabled = bool(in.Bool())
  2797. default:
  2798. in.SkipRecursive()
  2799. }
  2800. in.WantComma()
  2801. }
  2802. in.Delim('}')
  2803. if isTopLevel {
  2804. in.Consumed()
  2805. }
  2806. }
  2807. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss31(out *jwriter.Writer, in SetLocalFontsEnabledParams) {
  2808. out.RawByte('{')
  2809. first := true
  2810. _ = first
  2811. {
  2812. const prefix string = ",\"enabled\":"
  2813. out.RawString(prefix[1:])
  2814. out.Bool(bool(in.Enabled))
  2815. }
  2816. out.RawByte('}')
  2817. }
  2818. // MarshalJSON supports json.Marshaler interface
  2819. func (v SetLocalFontsEnabledParams) MarshalJSON() ([]byte, error) {
  2820. w := jwriter.Writer{}
  2821. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss31(&w, v)
  2822. return w.Buffer.BuildBytes(), w.Error
  2823. }
  2824. // MarshalEasyJSON supports easyjson.Marshaler interface
  2825. func (v SetLocalFontsEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
  2826. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss31(w, v)
  2827. }
  2828. // UnmarshalJSON supports json.Unmarshaler interface
  2829. func (v *SetLocalFontsEnabledParams) UnmarshalJSON(data []byte) error {
  2830. r := jlexer.Lexer{Data: data}
  2831. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss31(&r, v)
  2832. return r.Error()
  2833. }
  2834. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2835. func (v *SetLocalFontsEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2836. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss31(l, v)
  2837. }
  2838. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss32(in *jlexer.Lexer, out *SetKeyframeKeyReturns) {
  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 "keyText":
  2858. if in.IsNull() {
  2859. in.Skip()
  2860. out.KeyText = nil
  2861. } else {
  2862. if out.KeyText == nil {
  2863. out.KeyText = new(Value)
  2864. }
  2865. (*out.KeyText).UnmarshalEasyJSON(in)
  2866. }
  2867. default:
  2868. in.SkipRecursive()
  2869. }
  2870. in.WantComma()
  2871. }
  2872. in.Delim('}')
  2873. if isTopLevel {
  2874. in.Consumed()
  2875. }
  2876. }
  2877. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss32(out *jwriter.Writer, in SetKeyframeKeyReturns) {
  2878. out.RawByte('{')
  2879. first := true
  2880. _ = first
  2881. if in.KeyText != nil {
  2882. const prefix string = ",\"keyText\":"
  2883. first = false
  2884. out.RawString(prefix[1:])
  2885. (*in.KeyText).MarshalEasyJSON(out)
  2886. }
  2887. out.RawByte('}')
  2888. }
  2889. // MarshalJSON supports json.Marshaler interface
  2890. func (v SetKeyframeKeyReturns) MarshalJSON() ([]byte, error) {
  2891. w := jwriter.Writer{}
  2892. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss32(&w, v)
  2893. return w.Buffer.BuildBytes(), w.Error
  2894. }
  2895. // MarshalEasyJSON supports easyjson.Marshaler interface
  2896. func (v SetKeyframeKeyReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2897. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss32(w, v)
  2898. }
  2899. // UnmarshalJSON supports json.Unmarshaler interface
  2900. func (v *SetKeyframeKeyReturns) UnmarshalJSON(data []byte) error {
  2901. r := jlexer.Lexer{Data: data}
  2902. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss32(&r, v)
  2903. return r.Error()
  2904. }
  2905. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2906. func (v *SetKeyframeKeyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2907. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss32(l, v)
  2908. }
  2909. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss33(in *jlexer.Lexer, out *SetKeyframeKeyParams) {
  2910. isTopLevel := in.IsStart()
  2911. if in.IsNull() {
  2912. if isTopLevel {
  2913. in.Consumed()
  2914. }
  2915. in.Skip()
  2916. return
  2917. }
  2918. in.Delim('{')
  2919. for !in.IsDelim('}') {
  2920. key := in.UnsafeFieldName(false)
  2921. in.WantColon()
  2922. if in.IsNull() {
  2923. in.Skip()
  2924. in.WantComma()
  2925. continue
  2926. }
  2927. switch key {
  2928. case "styleSheetId":
  2929. out.StyleSheetID = StyleSheetID(in.String())
  2930. case "range":
  2931. if in.IsNull() {
  2932. in.Skip()
  2933. out.Range = nil
  2934. } else {
  2935. if out.Range == nil {
  2936. out.Range = new(SourceRange)
  2937. }
  2938. (*out.Range).UnmarshalEasyJSON(in)
  2939. }
  2940. case "keyText":
  2941. out.KeyText = string(in.String())
  2942. default:
  2943. in.SkipRecursive()
  2944. }
  2945. in.WantComma()
  2946. }
  2947. in.Delim('}')
  2948. if isTopLevel {
  2949. in.Consumed()
  2950. }
  2951. }
  2952. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss33(out *jwriter.Writer, in SetKeyframeKeyParams) {
  2953. out.RawByte('{')
  2954. first := true
  2955. _ = first
  2956. {
  2957. const prefix string = ",\"styleSheetId\":"
  2958. out.RawString(prefix[1:])
  2959. out.String(string(in.StyleSheetID))
  2960. }
  2961. {
  2962. const prefix string = ",\"range\":"
  2963. out.RawString(prefix)
  2964. if in.Range == nil {
  2965. out.RawString("null")
  2966. } else {
  2967. (*in.Range).MarshalEasyJSON(out)
  2968. }
  2969. }
  2970. {
  2971. const prefix string = ",\"keyText\":"
  2972. out.RawString(prefix)
  2973. out.String(string(in.KeyText))
  2974. }
  2975. out.RawByte('}')
  2976. }
  2977. // MarshalJSON supports json.Marshaler interface
  2978. func (v SetKeyframeKeyParams) MarshalJSON() ([]byte, error) {
  2979. w := jwriter.Writer{}
  2980. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss33(&w, v)
  2981. return w.Buffer.BuildBytes(), w.Error
  2982. }
  2983. // MarshalEasyJSON supports easyjson.Marshaler interface
  2984. func (v SetKeyframeKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
  2985. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss33(w, v)
  2986. }
  2987. // UnmarshalJSON supports json.Unmarshaler interface
  2988. func (v *SetKeyframeKeyParams) UnmarshalJSON(data []byte) error {
  2989. r := jlexer.Lexer{Data: data}
  2990. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss33(&r, v)
  2991. return r.Error()
  2992. }
  2993. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2994. func (v *SetKeyframeKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2995. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss33(l, v)
  2996. }
  2997. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss34(in *jlexer.Lexer, out *SetEffectivePropertyValueForNodeParams) {
  2998. isTopLevel := in.IsStart()
  2999. if in.IsNull() {
  3000. if isTopLevel {
  3001. in.Consumed()
  3002. }
  3003. in.Skip()
  3004. return
  3005. }
  3006. in.Delim('{')
  3007. for !in.IsDelim('}') {
  3008. key := in.UnsafeFieldName(false)
  3009. in.WantColon()
  3010. if in.IsNull() {
  3011. in.Skip()
  3012. in.WantComma()
  3013. continue
  3014. }
  3015. switch key {
  3016. case "nodeId":
  3017. (out.NodeID).UnmarshalEasyJSON(in)
  3018. case "propertyName":
  3019. out.PropertyName = string(in.String())
  3020. case "value":
  3021. out.Value = string(in.String())
  3022. default:
  3023. in.SkipRecursive()
  3024. }
  3025. in.WantComma()
  3026. }
  3027. in.Delim('}')
  3028. if isTopLevel {
  3029. in.Consumed()
  3030. }
  3031. }
  3032. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss34(out *jwriter.Writer, in SetEffectivePropertyValueForNodeParams) {
  3033. out.RawByte('{')
  3034. first := true
  3035. _ = first
  3036. {
  3037. const prefix string = ",\"nodeId\":"
  3038. out.RawString(prefix[1:])
  3039. out.Int64(int64(in.NodeID))
  3040. }
  3041. {
  3042. const prefix string = ",\"propertyName\":"
  3043. out.RawString(prefix)
  3044. out.String(string(in.PropertyName))
  3045. }
  3046. {
  3047. const prefix string = ",\"value\":"
  3048. out.RawString(prefix)
  3049. out.String(string(in.Value))
  3050. }
  3051. out.RawByte('}')
  3052. }
  3053. // MarshalJSON supports json.Marshaler interface
  3054. func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error) {
  3055. w := jwriter.Writer{}
  3056. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss34(&w, v)
  3057. return w.Buffer.BuildBytes(), w.Error
  3058. }
  3059. // MarshalEasyJSON supports easyjson.Marshaler interface
  3060. func (v SetEffectivePropertyValueForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  3061. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss34(w, v)
  3062. }
  3063. // UnmarshalJSON supports json.Unmarshaler interface
  3064. func (v *SetEffectivePropertyValueForNodeParams) UnmarshalJSON(data []byte) error {
  3065. r := jlexer.Lexer{Data: data}
  3066. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss34(&r, v)
  3067. return r.Error()
  3068. }
  3069. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3070. func (v *SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3071. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss34(l, v)
  3072. }
  3073. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss35(in *jlexer.Lexer, out *SetContainerQueryTextReturns) {
  3074. isTopLevel := in.IsStart()
  3075. if in.IsNull() {
  3076. if isTopLevel {
  3077. in.Consumed()
  3078. }
  3079. in.Skip()
  3080. return
  3081. }
  3082. in.Delim('{')
  3083. for !in.IsDelim('}') {
  3084. key := in.UnsafeFieldName(false)
  3085. in.WantColon()
  3086. if in.IsNull() {
  3087. in.Skip()
  3088. in.WantComma()
  3089. continue
  3090. }
  3091. switch key {
  3092. case "containerQuery":
  3093. if in.IsNull() {
  3094. in.Skip()
  3095. out.ContainerQuery = nil
  3096. } else {
  3097. if out.ContainerQuery == nil {
  3098. out.ContainerQuery = new(ContainerQuery)
  3099. }
  3100. (*out.ContainerQuery).UnmarshalEasyJSON(in)
  3101. }
  3102. default:
  3103. in.SkipRecursive()
  3104. }
  3105. in.WantComma()
  3106. }
  3107. in.Delim('}')
  3108. if isTopLevel {
  3109. in.Consumed()
  3110. }
  3111. }
  3112. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss35(out *jwriter.Writer, in SetContainerQueryTextReturns) {
  3113. out.RawByte('{')
  3114. first := true
  3115. _ = first
  3116. if in.ContainerQuery != nil {
  3117. const prefix string = ",\"containerQuery\":"
  3118. first = false
  3119. out.RawString(prefix[1:])
  3120. (*in.ContainerQuery).MarshalEasyJSON(out)
  3121. }
  3122. out.RawByte('}')
  3123. }
  3124. // MarshalJSON supports json.Marshaler interface
  3125. func (v SetContainerQueryTextReturns) MarshalJSON() ([]byte, error) {
  3126. w := jwriter.Writer{}
  3127. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss35(&w, v)
  3128. return w.Buffer.BuildBytes(), w.Error
  3129. }
  3130. // MarshalEasyJSON supports easyjson.Marshaler interface
  3131. func (v SetContainerQueryTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3132. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss35(w, v)
  3133. }
  3134. // UnmarshalJSON supports json.Unmarshaler interface
  3135. func (v *SetContainerQueryTextReturns) UnmarshalJSON(data []byte) error {
  3136. r := jlexer.Lexer{Data: data}
  3137. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss35(&r, v)
  3138. return r.Error()
  3139. }
  3140. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3141. func (v *SetContainerQueryTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3142. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss35(l, v)
  3143. }
  3144. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss36(in *jlexer.Lexer, out *SetContainerQueryTextParams) {
  3145. isTopLevel := in.IsStart()
  3146. if in.IsNull() {
  3147. if isTopLevel {
  3148. in.Consumed()
  3149. }
  3150. in.Skip()
  3151. return
  3152. }
  3153. in.Delim('{')
  3154. for !in.IsDelim('}') {
  3155. key := in.UnsafeFieldName(false)
  3156. in.WantColon()
  3157. if in.IsNull() {
  3158. in.Skip()
  3159. in.WantComma()
  3160. continue
  3161. }
  3162. switch key {
  3163. case "styleSheetId":
  3164. out.StyleSheetID = StyleSheetID(in.String())
  3165. case "range":
  3166. if in.IsNull() {
  3167. in.Skip()
  3168. out.Range = nil
  3169. } else {
  3170. if out.Range == nil {
  3171. out.Range = new(SourceRange)
  3172. }
  3173. (*out.Range).UnmarshalEasyJSON(in)
  3174. }
  3175. case "text":
  3176. out.Text = string(in.String())
  3177. default:
  3178. in.SkipRecursive()
  3179. }
  3180. in.WantComma()
  3181. }
  3182. in.Delim('}')
  3183. if isTopLevel {
  3184. in.Consumed()
  3185. }
  3186. }
  3187. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss36(out *jwriter.Writer, in SetContainerQueryTextParams) {
  3188. out.RawByte('{')
  3189. first := true
  3190. _ = first
  3191. {
  3192. const prefix string = ",\"styleSheetId\":"
  3193. out.RawString(prefix[1:])
  3194. out.String(string(in.StyleSheetID))
  3195. }
  3196. {
  3197. const prefix string = ",\"range\":"
  3198. out.RawString(prefix)
  3199. if in.Range == nil {
  3200. out.RawString("null")
  3201. } else {
  3202. (*in.Range).MarshalEasyJSON(out)
  3203. }
  3204. }
  3205. {
  3206. const prefix string = ",\"text\":"
  3207. out.RawString(prefix)
  3208. out.String(string(in.Text))
  3209. }
  3210. out.RawByte('}')
  3211. }
  3212. // MarshalJSON supports json.Marshaler interface
  3213. func (v SetContainerQueryTextParams) MarshalJSON() ([]byte, error) {
  3214. w := jwriter.Writer{}
  3215. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss36(&w, v)
  3216. return w.Buffer.BuildBytes(), w.Error
  3217. }
  3218. // MarshalEasyJSON supports easyjson.Marshaler interface
  3219. func (v SetContainerQueryTextParams) MarshalEasyJSON(w *jwriter.Writer) {
  3220. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss36(w, v)
  3221. }
  3222. // UnmarshalJSON supports json.Unmarshaler interface
  3223. func (v *SetContainerQueryTextParams) UnmarshalJSON(data []byte) error {
  3224. r := jlexer.Lexer{Data: data}
  3225. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss36(&r, v)
  3226. return r.Error()
  3227. }
  3228. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3229. func (v *SetContainerQueryTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3230. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss36(l, v)
  3231. }
  3232. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss37(in *jlexer.Lexer, out *SelectorList) {
  3233. isTopLevel := in.IsStart()
  3234. if in.IsNull() {
  3235. if isTopLevel {
  3236. in.Consumed()
  3237. }
  3238. in.Skip()
  3239. return
  3240. }
  3241. in.Delim('{')
  3242. for !in.IsDelim('}') {
  3243. key := in.UnsafeFieldName(false)
  3244. in.WantColon()
  3245. if in.IsNull() {
  3246. in.Skip()
  3247. in.WantComma()
  3248. continue
  3249. }
  3250. switch key {
  3251. case "selectors":
  3252. if in.IsNull() {
  3253. in.Skip()
  3254. out.Selectors = nil
  3255. } else {
  3256. in.Delim('[')
  3257. if out.Selectors == nil {
  3258. if !in.IsDelim(']') {
  3259. out.Selectors = make([]*Value, 0, 8)
  3260. } else {
  3261. out.Selectors = []*Value{}
  3262. }
  3263. } else {
  3264. out.Selectors = (out.Selectors)[:0]
  3265. }
  3266. for !in.IsDelim(']') {
  3267. var v25 *Value
  3268. if in.IsNull() {
  3269. in.Skip()
  3270. v25 = nil
  3271. } else {
  3272. if v25 == nil {
  3273. v25 = new(Value)
  3274. }
  3275. (*v25).UnmarshalEasyJSON(in)
  3276. }
  3277. out.Selectors = append(out.Selectors, v25)
  3278. in.WantComma()
  3279. }
  3280. in.Delim(']')
  3281. }
  3282. case "text":
  3283. out.Text = string(in.String())
  3284. default:
  3285. in.SkipRecursive()
  3286. }
  3287. in.WantComma()
  3288. }
  3289. in.Delim('}')
  3290. if isTopLevel {
  3291. in.Consumed()
  3292. }
  3293. }
  3294. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss37(out *jwriter.Writer, in SelectorList) {
  3295. out.RawByte('{')
  3296. first := true
  3297. _ = first
  3298. {
  3299. const prefix string = ",\"selectors\":"
  3300. out.RawString(prefix[1:])
  3301. if in.Selectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3302. out.RawString("null")
  3303. } else {
  3304. out.RawByte('[')
  3305. for v26, v27 := range in.Selectors {
  3306. if v26 > 0 {
  3307. out.RawByte(',')
  3308. }
  3309. if v27 == nil {
  3310. out.RawString("null")
  3311. } else {
  3312. (*v27).MarshalEasyJSON(out)
  3313. }
  3314. }
  3315. out.RawByte(']')
  3316. }
  3317. }
  3318. {
  3319. const prefix string = ",\"text\":"
  3320. out.RawString(prefix)
  3321. out.String(string(in.Text))
  3322. }
  3323. out.RawByte('}')
  3324. }
  3325. // MarshalJSON supports json.Marshaler interface
  3326. func (v SelectorList) MarshalJSON() ([]byte, error) {
  3327. w := jwriter.Writer{}
  3328. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss37(&w, v)
  3329. return w.Buffer.BuildBytes(), w.Error
  3330. }
  3331. // MarshalEasyJSON supports easyjson.Marshaler interface
  3332. func (v SelectorList) MarshalEasyJSON(w *jwriter.Writer) {
  3333. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss37(w, v)
  3334. }
  3335. // UnmarshalJSON supports json.Unmarshaler interface
  3336. func (v *SelectorList) UnmarshalJSON(data []byte) error {
  3337. r := jlexer.Lexer{Data: data}
  3338. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss37(&r, v)
  3339. return r.Error()
  3340. }
  3341. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3342. func (v *SelectorList) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3343. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss37(l, v)
  3344. }
  3345. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss38(in *jlexer.Lexer, out *Scope) {
  3346. isTopLevel := in.IsStart()
  3347. if in.IsNull() {
  3348. if isTopLevel {
  3349. in.Consumed()
  3350. }
  3351. in.Skip()
  3352. return
  3353. }
  3354. in.Delim('{')
  3355. for !in.IsDelim('}') {
  3356. key := in.UnsafeFieldName(false)
  3357. in.WantColon()
  3358. if in.IsNull() {
  3359. in.Skip()
  3360. in.WantComma()
  3361. continue
  3362. }
  3363. switch key {
  3364. case "text":
  3365. out.Text = string(in.String())
  3366. case "range":
  3367. if in.IsNull() {
  3368. in.Skip()
  3369. out.Range = nil
  3370. } else {
  3371. if out.Range == nil {
  3372. out.Range = new(SourceRange)
  3373. }
  3374. (*out.Range).UnmarshalEasyJSON(in)
  3375. }
  3376. case "styleSheetId":
  3377. out.StyleSheetID = StyleSheetID(in.String())
  3378. default:
  3379. in.SkipRecursive()
  3380. }
  3381. in.WantComma()
  3382. }
  3383. in.Delim('}')
  3384. if isTopLevel {
  3385. in.Consumed()
  3386. }
  3387. }
  3388. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss38(out *jwriter.Writer, in Scope) {
  3389. out.RawByte('{')
  3390. first := true
  3391. _ = first
  3392. {
  3393. const prefix string = ",\"text\":"
  3394. out.RawString(prefix[1:])
  3395. out.String(string(in.Text))
  3396. }
  3397. if in.Range != nil {
  3398. const prefix string = ",\"range\":"
  3399. out.RawString(prefix)
  3400. (*in.Range).MarshalEasyJSON(out)
  3401. }
  3402. if in.StyleSheetID != "" {
  3403. const prefix string = ",\"styleSheetId\":"
  3404. out.RawString(prefix)
  3405. out.String(string(in.StyleSheetID))
  3406. }
  3407. out.RawByte('}')
  3408. }
  3409. // MarshalJSON supports json.Marshaler interface
  3410. func (v Scope) MarshalJSON() ([]byte, error) {
  3411. w := jwriter.Writer{}
  3412. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss38(&w, v)
  3413. return w.Buffer.BuildBytes(), w.Error
  3414. }
  3415. // MarshalEasyJSON supports easyjson.Marshaler interface
  3416. func (v Scope) MarshalEasyJSON(w *jwriter.Writer) {
  3417. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss38(w, v)
  3418. }
  3419. // UnmarshalJSON supports json.Unmarshaler interface
  3420. func (v *Scope) UnmarshalJSON(data []byte) error {
  3421. r := jlexer.Lexer{Data: data}
  3422. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss38(&r, v)
  3423. return r.Error()
  3424. }
  3425. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3426. func (v *Scope) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3427. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss38(l, v)
  3428. }
  3429. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss39(in *jlexer.Lexer, out *RuleUsage) {
  3430. isTopLevel := in.IsStart()
  3431. if in.IsNull() {
  3432. if isTopLevel {
  3433. in.Consumed()
  3434. }
  3435. in.Skip()
  3436. return
  3437. }
  3438. in.Delim('{')
  3439. for !in.IsDelim('}') {
  3440. key := in.UnsafeFieldName(false)
  3441. in.WantColon()
  3442. if in.IsNull() {
  3443. in.Skip()
  3444. in.WantComma()
  3445. continue
  3446. }
  3447. switch key {
  3448. case "styleSheetId":
  3449. out.StyleSheetID = StyleSheetID(in.String())
  3450. case "startOffset":
  3451. out.StartOffset = float64(in.Float64())
  3452. case "endOffset":
  3453. out.EndOffset = float64(in.Float64())
  3454. case "used":
  3455. out.Used = bool(in.Bool())
  3456. default:
  3457. in.SkipRecursive()
  3458. }
  3459. in.WantComma()
  3460. }
  3461. in.Delim('}')
  3462. if isTopLevel {
  3463. in.Consumed()
  3464. }
  3465. }
  3466. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss39(out *jwriter.Writer, in RuleUsage) {
  3467. out.RawByte('{')
  3468. first := true
  3469. _ = first
  3470. {
  3471. const prefix string = ",\"styleSheetId\":"
  3472. out.RawString(prefix[1:])
  3473. out.String(string(in.StyleSheetID))
  3474. }
  3475. {
  3476. const prefix string = ",\"startOffset\":"
  3477. out.RawString(prefix)
  3478. out.Float64(float64(in.StartOffset))
  3479. }
  3480. {
  3481. const prefix string = ",\"endOffset\":"
  3482. out.RawString(prefix)
  3483. out.Float64(float64(in.EndOffset))
  3484. }
  3485. {
  3486. const prefix string = ",\"used\":"
  3487. out.RawString(prefix)
  3488. out.Bool(bool(in.Used))
  3489. }
  3490. out.RawByte('}')
  3491. }
  3492. // MarshalJSON supports json.Marshaler interface
  3493. func (v RuleUsage) MarshalJSON() ([]byte, error) {
  3494. w := jwriter.Writer{}
  3495. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss39(&w, v)
  3496. return w.Buffer.BuildBytes(), w.Error
  3497. }
  3498. // MarshalEasyJSON supports easyjson.Marshaler interface
  3499. func (v RuleUsage) MarshalEasyJSON(w *jwriter.Writer) {
  3500. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss39(w, v)
  3501. }
  3502. // UnmarshalJSON supports json.Unmarshaler interface
  3503. func (v *RuleUsage) UnmarshalJSON(data []byte) error {
  3504. r := jlexer.Lexer{Data: data}
  3505. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss39(&r, v)
  3506. return r.Error()
  3507. }
  3508. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3509. func (v *RuleUsage) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3510. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss39(l, v)
  3511. }
  3512. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss40(in *jlexer.Lexer, out *RuleMatch) {
  3513. isTopLevel := in.IsStart()
  3514. if in.IsNull() {
  3515. if isTopLevel {
  3516. in.Consumed()
  3517. }
  3518. in.Skip()
  3519. return
  3520. }
  3521. in.Delim('{')
  3522. for !in.IsDelim('}') {
  3523. key := in.UnsafeFieldName(false)
  3524. in.WantColon()
  3525. if in.IsNull() {
  3526. in.Skip()
  3527. in.WantComma()
  3528. continue
  3529. }
  3530. switch key {
  3531. case "rule":
  3532. if in.IsNull() {
  3533. in.Skip()
  3534. out.Rule = nil
  3535. } else {
  3536. if out.Rule == nil {
  3537. out.Rule = new(Rule)
  3538. }
  3539. (*out.Rule).UnmarshalEasyJSON(in)
  3540. }
  3541. case "matchingSelectors":
  3542. if in.IsNull() {
  3543. in.Skip()
  3544. out.MatchingSelectors = nil
  3545. } else {
  3546. in.Delim('[')
  3547. if out.MatchingSelectors == nil {
  3548. if !in.IsDelim(']') {
  3549. out.MatchingSelectors = make([]int64, 0, 8)
  3550. } else {
  3551. out.MatchingSelectors = []int64{}
  3552. }
  3553. } else {
  3554. out.MatchingSelectors = (out.MatchingSelectors)[:0]
  3555. }
  3556. for !in.IsDelim(']') {
  3557. var v28 int64
  3558. v28 = int64(in.Int64())
  3559. out.MatchingSelectors = append(out.MatchingSelectors, v28)
  3560. in.WantComma()
  3561. }
  3562. in.Delim(']')
  3563. }
  3564. default:
  3565. in.SkipRecursive()
  3566. }
  3567. in.WantComma()
  3568. }
  3569. in.Delim('}')
  3570. if isTopLevel {
  3571. in.Consumed()
  3572. }
  3573. }
  3574. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss40(out *jwriter.Writer, in RuleMatch) {
  3575. out.RawByte('{')
  3576. first := true
  3577. _ = first
  3578. {
  3579. const prefix string = ",\"rule\":"
  3580. out.RawString(prefix[1:])
  3581. if in.Rule == nil {
  3582. out.RawString("null")
  3583. } else {
  3584. (*in.Rule).MarshalEasyJSON(out)
  3585. }
  3586. }
  3587. {
  3588. const prefix string = ",\"matchingSelectors\":"
  3589. out.RawString(prefix)
  3590. if in.MatchingSelectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3591. out.RawString("null")
  3592. } else {
  3593. out.RawByte('[')
  3594. for v29, v30 := range in.MatchingSelectors {
  3595. if v29 > 0 {
  3596. out.RawByte(',')
  3597. }
  3598. out.Int64(int64(v30))
  3599. }
  3600. out.RawByte(']')
  3601. }
  3602. }
  3603. out.RawByte('}')
  3604. }
  3605. // MarshalJSON supports json.Marshaler interface
  3606. func (v RuleMatch) MarshalJSON() ([]byte, error) {
  3607. w := jwriter.Writer{}
  3608. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss40(&w, v)
  3609. return w.Buffer.BuildBytes(), w.Error
  3610. }
  3611. // MarshalEasyJSON supports easyjson.Marshaler interface
  3612. func (v RuleMatch) MarshalEasyJSON(w *jwriter.Writer) {
  3613. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss40(w, v)
  3614. }
  3615. // UnmarshalJSON supports json.Unmarshaler interface
  3616. func (v *RuleMatch) UnmarshalJSON(data []byte) error {
  3617. r := jlexer.Lexer{Data: data}
  3618. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss40(&r, v)
  3619. return r.Error()
  3620. }
  3621. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3622. func (v *RuleMatch) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3623. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss40(l, v)
  3624. }
  3625. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss41(in *jlexer.Lexer, out *Rule) {
  3626. isTopLevel := in.IsStart()
  3627. if in.IsNull() {
  3628. if isTopLevel {
  3629. in.Consumed()
  3630. }
  3631. in.Skip()
  3632. return
  3633. }
  3634. in.Delim('{')
  3635. for !in.IsDelim('}') {
  3636. key := in.UnsafeFieldName(false)
  3637. in.WantColon()
  3638. if in.IsNull() {
  3639. in.Skip()
  3640. in.WantComma()
  3641. continue
  3642. }
  3643. switch key {
  3644. case "styleSheetId":
  3645. out.StyleSheetID = StyleSheetID(in.String())
  3646. case "selectorList":
  3647. if in.IsNull() {
  3648. in.Skip()
  3649. out.SelectorList = nil
  3650. } else {
  3651. if out.SelectorList == nil {
  3652. out.SelectorList = new(SelectorList)
  3653. }
  3654. (*out.SelectorList).UnmarshalEasyJSON(in)
  3655. }
  3656. case "nestingSelectors":
  3657. if in.IsNull() {
  3658. in.Skip()
  3659. out.NestingSelectors = nil
  3660. } else {
  3661. in.Delim('[')
  3662. if out.NestingSelectors == nil {
  3663. if !in.IsDelim(']') {
  3664. out.NestingSelectors = make([]string, 0, 4)
  3665. } else {
  3666. out.NestingSelectors = []string{}
  3667. }
  3668. } else {
  3669. out.NestingSelectors = (out.NestingSelectors)[:0]
  3670. }
  3671. for !in.IsDelim(']') {
  3672. var v31 string
  3673. v31 = string(in.String())
  3674. out.NestingSelectors = append(out.NestingSelectors, v31)
  3675. in.WantComma()
  3676. }
  3677. in.Delim(']')
  3678. }
  3679. case "origin":
  3680. (out.Origin).UnmarshalEasyJSON(in)
  3681. case "style":
  3682. if in.IsNull() {
  3683. in.Skip()
  3684. out.Style = nil
  3685. } else {
  3686. if out.Style == nil {
  3687. out.Style = new(Style)
  3688. }
  3689. (*out.Style).UnmarshalEasyJSON(in)
  3690. }
  3691. case "media":
  3692. if in.IsNull() {
  3693. in.Skip()
  3694. out.Media = nil
  3695. } else {
  3696. in.Delim('[')
  3697. if out.Media == nil {
  3698. if !in.IsDelim(']') {
  3699. out.Media = make([]*Media, 0, 8)
  3700. } else {
  3701. out.Media = []*Media{}
  3702. }
  3703. } else {
  3704. out.Media = (out.Media)[:0]
  3705. }
  3706. for !in.IsDelim(']') {
  3707. var v32 *Media
  3708. if in.IsNull() {
  3709. in.Skip()
  3710. v32 = nil
  3711. } else {
  3712. if v32 == nil {
  3713. v32 = new(Media)
  3714. }
  3715. (*v32).UnmarshalEasyJSON(in)
  3716. }
  3717. out.Media = append(out.Media, v32)
  3718. in.WantComma()
  3719. }
  3720. in.Delim(']')
  3721. }
  3722. case "containerQueries":
  3723. if in.IsNull() {
  3724. in.Skip()
  3725. out.ContainerQueries = nil
  3726. } else {
  3727. in.Delim('[')
  3728. if out.ContainerQueries == nil {
  3729. if !in.IsDelim(']') {
  3730. out.ContainerQueries = make([]*ContainerQuery, 0, 8)
  3731. } else {
  3732. out.ContainerQueries = []*ContainerQuery{}
  3733. }
  3734. } else {
  3735. out.ContainerQueries = (out.ContainerQueries)[:0]
  3736. }
  3737. for !in.IsDelim(']') {
  3738. var v33 *ContainerQuery
  3739. if in.IsNull() {
  3740. in.Skip()
  3741. v33 = nil
  3742. } else {
  3743. if v33 == nil {
  3744. v33 = new(ContainerQuery)
  3745. }
  3746. (*v33).UnmarshalEasyJSON(in)
  3747. }
  3748. out.ContainerQueries = append(out.ContainerQueries, v33)
  3749. in.WantComma()
  3750. }
  3751. in.Delim(']')
  3752. }
  3753. case "supports":
  3754. if in.IsNull() {
  3755. in.Skip()
  3756. out.Supports = nil
  3757. } else {
  3758. in.Delim('[')
  3759. if out.Supports == nil {
  3760. if !in.IsDelim(']') {
  3761. out.Supports = make([]*Supports, 0, 8)
  3762. } else {
  3763. out.Supports = []*Supports{}
  3764. }
  3765. } else {
  3766. out.Supports = (out.Supports)[:0]
  3767. }
  3768. for !in.IsDelim(']') {
  3769. var v34 *Supports
  3770. if in.IsNull() {
  3771. in.Skip()
  3772. v34 = nil
  3773. } else {
  3774. if v34 == nil {
  3775. v34 = new(Supports)
  3776. }
  3777. (*v34).UnmarshalEasyJSON(in)
  3778. }
  3779. out.Supports = append(out.Supports, v34)
  3780. in.WantComma()
  3781. }
  3782. in.Delim(']')
  3783. }
  3784. case "layers":
  3785. if in.IsNull() {
  3786. in.Skip()
  3787. out.Layers = nil
  3788. } else {
  3789. in.Delim('[')
  3790. if out.Layers == nil {
  3791. if !in.IsDelim(']') {
  3792. out.Layers = make([]*Layer, 0, 8)
  3793. } else {
  3794. out.Layers = []*Layer{}
  3795. }
  3796. } else {
  3797. out.Layers = (out.Layers)[:0]
  3798. }
  3799. for !in.IsDelim(']') {
  3800. var v35 *Layer
  3801. if in.IsNull() {
  3802. in.Skip()
  3803. v35 = nil
  3804. } else {
  3805. if v35 == nil {
  3806. v35 = new(Layer)
  3807. }
  3808. (*v35).UnmarshalEasyJSON(in)
  3809. }
  3810. out.Layers = append(out.Layers, v35)
  3811. in.WantComma()
  3812. }
  3813. in.Delim(']')
  3814. }
  3815. case "scopes":
  3816. if in.IsNull() {
  3817. in.Skip()
  3818. out.Scopes = nil
  3819. } else {
  3820. in.Delim('[')
  3821. if out.Scopes == nil {
  3822. if !in.IsDelim(']') {
  3823. out.Scopes = make([]*Scope, 0, 8)
  3824. } else {
  3825. out.Scopes = []*Scope{}
  3826. }
  3827. } else {
  3828. out.Scopes = (out.Scopes)[:0]
  3829. }
  3830. for !in.IsDelim(']') {
  3831. var v36 *Scope
  3832. if in.IsNull() {
  3833. in.Skip()
  3834. v36 = nil
  3835. } else {
  3836. if v36 == nil {
  3837. v36 = new(Scope)
  3838. }
  3839. (*v36).UnmarshalEasyJSON(in)
  3840. }
  3841. out.Scopes = append(out.Scopes, v36)
  3842. in.WantComma()
  3843. }
  3844. in.Delim(']')
  3845. }
  3846. case "ruleTypes":
  3847. if in.IsNull() {
  3848. in.Skip()
  3849. out.RuleTypes = nil
  3850. } else {
  3851. in.Delim('[')
  3852. if out.RuleTypes == nil {
  3853. if !in.IsDelim(']') {
  3854. out.RuleTypes = make([]RuleType, 0, 4)
  3855. } else {
  3856. out.RuleTypes = []RuleType{}
  3857. }
  3858. } else {
  3859. out.RuleTypes = (out.RuleTypes)[:0]
  3860. }
  3861. for !in.IsDelim(']') {
  3862. var v37 RuleType
  3863. (v37).UnmarshalEasyJSON(in)
  3864. out.RuleTypes = append(out.RuleTypes, v37)
  3865. in.WantComma()
  3866. }
  3867. in.Delim(']')
  3868. }
  3869. default:
  3870. in.SkipRecursive()
  3871. }
  3872. in.WantComma()
  3873. }
  3874. in.Delim('}')
  3875. if isTopLevel {
  3876. in.Consumed()
  3877. }
  3878. }
  3879. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss41(out *jwriter.Writer, in Rule) {
  3880. out.RawByte('{')
  3881. first := true
  3882. _ = first
  3883. if in.StyleSheetID != "" {
  3884. const prefix string = ",\"styleSheetId\":"
  3885. first = false
  3886. out.RawString(prefix[1:])
  3887. out.String(string(in.StyleSheetID))
  3888. }
  3889. {
  3890. const prefix string = ",\"selectorList\":"
  3891. if first {
  3892. first = false
  3893. out.RawString(prefix[1:])
  3894. } else {
  3895. out.RawString(prefix)
  3896. }
  3897. if in.SelectorList == nil {
  3898. out.RawString("null")
  3899. } else {
  3900. (*in.SelectorList).MarshalEasyJSON(out)
  3901. }
  3902. }
  3903. if len(in.NestingSelectors) != 0 {
  3904. const prefix string = ",\"nestingSelectors\":"
  3905. out.RawString(prefix)
  3906. {
  3907. out.RawByte('[')
  3908. for v38, v39 := range in.NestingSelectors {
  3909. if v38 > 0 {
  3910. out.RawByte(',')
  3911. }
  3912. out.String(string(v39))
  3913. }
  3914. out.RawByte(']')
  3915. }
  3916. }
  3917. {
  3918. const prefix string = ",\"origin\":"
  3919. out.RawString(prefix)
  3920. (in.Origin).MarshalEasyJSON(out)
  3921. }
  3922. {
  3923. const prefix string = ",\"style\":"
  3924. out.RawString(prefix)
  3925. if in.Style == nil {
  3926. out.RawString("null")
  3927. } else {
  3928. (*in.Style).MarshalEasyJSON(out)
  3929. }
  3930. }
  3931. if len(in.Media) != 0 {
  3932. const prefix string = ",\"media\":"
  3933. out.RawString(prefix)
  3934. {
  3935. out.RawByte('[')
  3936. for v40, v41 := range in.Media {
  3937. if v40 > 0 {
  3938. out.RawByte(',')
  3939. }
  3940. if v41 == nil {
  3941. out.RawString("null")
  3942. } else {
  3943. (*v41).MarshalEasyJSON(out)
  3944. }
  3945. }
  3946. out.RawByte(']')
  3947. }
  3948. }
  3949. if len(in.ContainerQueries) != 0 {
  3950. const prefix string = ",\"containerQueries\":"
  3951. out.RawString(prefix)
  3952. {
  3953. out.RawByte('[')
  3954. for v42, v43 := range in.ContainerQueries {
  3955. if v42 > 0 {
  3956. out.RawByte(',')
  3957. }
  3958. if v43 == nil {
  3959. out.RawString("null")
  3960. } else {
  3961. (*v43).MarshalEasyJSON(out)
  3962. }
  3963. }
  3964. out.RawByte(']')
  3965. }
  3966. }
  3967. if len(in.Supports) != 0 {
  3968. const prefix string = ",\"supports\":"
  3969. out.RawString(prefix)
  3970. {
  3971. out.RawByte('[')
  3972. for v44, v45 := range in.Supports {
  3973. if v44 > 0 {
  3974. out.RawByte(',')
  3975. }
  3976. if v45 == nil {
  3977. out.RawString("null")
  3978. } else {
  3979. (*v45).MarshalEasyJSON(out)
  3980. }
  3981. }
  3982. out.RawByte(']')
  3983. }
  3984. }
  3985. if len(in.Layers) != 0 {
  3986. const prefix string = ",\"layers\":"
  3987. out.RawString(prefix)
  3988. {
  3989. out.RawByte('[')
  3990. for v46, v47 := range in.Layers {
  3991. if v46 > 0 {
  3992. out.RawByte(',')
  3993. }
  3994. if v47 == nil {
  3995. out.RawString("null")
  3996. } else {
  3997. (*v47).MarshalEasyJSON(out)
  3998. }
  3999. }
  4000. out.RawByte(']')
  4001. }
  4002. }
  4003. if len(in.Scopes) != 0 {
  4004. const prefix string = ",\"scopes\":"
  4005. out.RawString(prefix)
  4006. {
  4007. out.RawByte('[')
  4008. for v48, v49 := range in.Scopes {
  4009. if v48 > 0 {
  4010. out.RawByte(',')
  4011. }
  4012. if v49 == nil {
  4013. out.RawString("null")
  4014. } else {
  4015. (*v49).MarshalEasyJSON(out)
  4016. }
  4017. }
  4018. out.RawByte(']')
  4019. }
  4020. }
  4021. if len(in.RuleTypes) != 0 {
  4022. const prefix string = ",\"ruleTypes\":"
  4023. out.RawString(prefix)
  4024. {
  4025. out.RawByte('[')
  4026. for v50, v51 := range in.RuleTypes {
  4027. if v50 > 0 {
  4028. out.RawByte(',')
  4029. }
  4030. (v51).MarshalEasyJSON(out)
  4031. }
  4032. out.RawByte(']')
  4033. }
  4034. }
  4035. out.RawByte('}')
  4036. }
  4037. // MarshalJSON supports json.Marshaler interface
  4038. func (v Rule) MarshalJSON() ([]byte, error) {
  4039. w := jwriter.Writer{}
  4040. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss41(&w, v)
  4041. return w.Buffer.BuildBytes(), w.Error
  4042. }
  4043. // MarshalEasyJSON supports easyjson.Marshaler interface
  4044. func (v Rule) MarshalEasyJSON(w *jwriter.Writer) {
  4045. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss41(w, v)
  4046. }
  4047. // UnmarshalJSON supports json.Unmarshaler interface
  4048. func (v *Rule) UnmarshalJSON(data []byte) error {
  4049. r := jlexer.Lexer{Data: data}
  4050. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss41(&r, v)
  4051. return r.Error()
  4052. }
  4053. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4054. func (v *Rule) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4055. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss41(l, v)
  4056. }
  4057. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss42(in *jlexer.Lexer, out *PseudoElementMatches) {
  4058. isTopLevel := in.IsStart()
  4059. if in.IsNull() {
  4060. if isTopLevel {
  4061. in.Consumed()
  4062. }
  4063. in.Skip()
  4064. return
  4065. }
  4066. in.Delim('{')
  4067. for !in.IsDelim('}') {
  4068. key := in.UnsafeFieldName(false)
  4069. in.WantColon()
  4070. if in.IsNull() {
  4071. in.Skip()
  4072. in.WantComma()
  4073. continue
  4074. }
  4075. switch key {
  4076. case "pseudoType":
  4077. (out.PseudoType).UnmarshalEasyJSON(in)
  4078. case "pseudoIdentifier":
  4079. out.PseudoIdentifier = string(in.String())
  4080. case "matches":
  4081. if in.IsNull() {
  4082. in.Skip()
  4083. out.Matches = nil
  4084. } else {
  4085. in.Delim('[')
  4086. if out.Matches == nil {
  4087. if !in.IsDelim(']') {
  4088. out.Matches = make([]*RuleMatch, 0, 8)
  4089. } else {
  4090. out.Matches = []*RuleMatch{}
  4091. }
  4092. } else {
  4093. out.Matches = (out.Matches)[:0]
  4094. }
  4095. for !in.IsDelim(']') {
  4096. var v52 *RuleMatch
  4097. if in.IsNull() {
  4098. in.Skip()
  4099. v52 = nil
  4100. } else {
  4101. if v52 == nil {
  4102. v52 = new(RuleMatch)
  4103. }
  4104. (*v52).UnmarshalEasyJSON(in)
  4105. }
  4106. out.Matches = append(out.Matches, v52)
  4107. in.WantComma()
  4108. }
  4109. in.Delim(']')
  4110. }
  4111. default:
  4112. in.SkipRecursive()
  4113. }
  4114. in.WantComma()
  4115. }
  4116. in.Delim('}')
  4117. if isTopLevel {
  4118. in.Consumed()
  4119. }
  4120. }
  4121. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss42(out *jwriter.Writer, in PseudoElementMatches) {
  4122. out.RawByte('{')
  4123. first := true
  4124. _ = first
  4125. {
  4126. const prefix string = ",\"pseudoType\":"
  4127. out.RawString(prefix[1:])
  4128. (in.PseudoType).MarshalEasyJSON(out)
  4129. }
  4130. if in.PseudoIdentifier != "" {
  4131. const prefix string = ",\"pseudoIdentifier\":"
  4132. out.RawString(prefix)
  4133. out.String(string(in.PseudoIdentifier))
  4134. }
  4135. {
  4136. const prefix string = ",\"matches\":"
  4137. out.RawString(prefix)
  4138. if in.Matches == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  4139. out.RawString("null")
  4140. } else {
  4141. out.RawByte('[')
  4142. for v53, v54 := range in.Matches {
  4143. if v53 > 0 {
  4144. out.RawByte(',')
  4145. }
  4146. if v54 == nil {
  4147. out.RawString("null")
  4148. } else {
  4149. (*v54).MarshalEasyJSON(out)
  4150. }
  4151. }
  4152. out.RawByte(']')
  4153. }
  4154. }
  4155. out.RawByte('}')
  4156. }
  4157. // MarshalJSON supports json.Marshaler interface
  4158. func (v PseudoElementMatches) MarshalJSON() ([]byte, error) {
  4159. w := jwriter.Writer{}
  4160. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss42(&w, v)
  4161. return w.Buffer.BuildBytes(), w.Error
  4162. }
  4163. // MarshalEasyJSON supports easyjson.Marshaler interface
  4164. func (v PseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer) {
  4165. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss42(w, v)
  4166. }
  4167. // UnmarshalJSON supports json.Unmarshaler interface
  4168. func (v *PseudoElementMatches) UnmarshalJSON(data []byte) error {
  4169. r := jlexer.Lexer{Data: data}
  4170. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss42(&r, v)
  4171. return r.Error()
  4172. }
  4173. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4174. func (v *PseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4175. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss42(l, v)
  4176. }
  4177. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss43(in *jlexer.Lexer, out *PropertyRule) {
  4178. isTopLevel := in.IsStart()
  4179. if in.IsNull() {
  4180. if isTopLevel {
  4181. in.Consumed()
  4182. }
  4183. in.Skip()
  4184. return
  4185. }
  4186. in.Delim('{')
  4187. for !in.IsDelim('}') {
  4188. key := in.UnsafeFieldName(false)
  4189. in.WantColon()
  4190. if in.IsNull() {
  4191. in.Skip()
  4192. in.WantComma()
  4193. continue
  4194. }
  4195. switch key {
  4196. case "styleSheetId":
  4197. out.StyleSheetID = StyleSheetID(in.String())
  4198. case "origin":
  4199. (out.Origin).UnmarshalEasyJSON(in)
  4200. case "propertyName":
  4201. if in.IsNull() {
  4202. in.Skip()
  4203. out.PropertyName = nil
  4204. } else {
  4205. if out.PropertyName == nil {
  4206. out.PropertyName = new(Value)
  4207. }
  4208. (*out.PropertyName).UnmarshalEasyJSON(in)
  4209. }
  4210. case "style":
  4211. if in.IsNull() {
  4212. in.Skip()
  4213. out.Style = nil
  4214. } else {
  4215. if out.Style == nil {
  4216. out.Style = new(Style)
  4217. }
  4218. (*out.Style).UnmarshalEasyJSON(in)
  4219. }
  4220. default:
  4221. in.SkipRecursive()
  4222. }
  4223. in.WantComma()
  4224. }
  4225. in.Delim('}')
  4226. if isTopLevel {
  4227. in.Consumed()
  4228. }
  4229. }
  4230. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss43(out *jwriter.Writer, in PropertyRule) {
  4231. out.RawByte('{')
  4232. first := true
  4233. _ = first
  4234. if in.StyleSheetID != "" {
  4235. const prefix string = ",\"styleSheetId\":"
  4236. first = false
  4237. out.RawString(prefix[1:])
  4238. out.String(string(in.StyleSheetID))
  4239. }
  4240. {
  4241. const prefix string = ",\"origin\":"
  4242. if first {
  4243. first = false
  4244. out.RawString(prefix[1:])
  4245. } else {
  4246. out.RawString(prefix)
  4247. }
  4248. (in.Origin).MarshalEasyJSON(out)
  4249. }
  4250. {
  4251. const prefix string = ",\"propertyName\":"
  4252. out.RawString(prefix)
  4253. if in.PropertyName == nil {
  4254. out.RawString("null")
  4255. } else {
  4256. (*in.PropertyName).MarshalEasyJSON(out)
  4257. }
  4258. }
  4259. {
  4260. const prefix string = ",\"style\":"
  4261. out.RawString(prefix)
  4262. if in.Style == nil {
  4263. out.RawString("null")
  4264. } else {
  4265. (*in.Style).MarshalEasyJSON(out)
  4266. }
  4267. }
  4268. out.RawByte('}')
  4269. }
  4270. // MarshalJSON supports json.Marshaler interface
  4271. func (v PropertyRule) MarshalJSON() ([]byte, error) {
  4272. w := jwriter.Writer{}
  4273. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss43(&w, v)
  4274. return w.Buffer.BuildBytes(), w.Error
  4275. }
  4276. // MarshalEasyJSON supports easyjson.Marshaler interface
  4277. func (v PropertyRule) MarshalEasyJSON(w *jwriter.Writer) {
  4278. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss43(w, v)
  4279. }
  4280. // UnmarshalJSON supports json.Unmarshaler interface
  4281. func (v *PropertyRule) UnmarshalJSON(data []byte) error {
  4282. r := jlexer.Lexer{Data: data}
  4283. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss43(&r, v)
  4284. return r.Error()
  4285. }
  4286. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4287. func (v *PropertyRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4288. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss43(l, v)
  4289. }
  4290. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss44(in *jlexer.Lexer, out *PropertyRegistration) {
  4291. isTopLevel := in.IsStart()
  4292. if in.IsNull() {
  4293. if isTopLevel {
  4294. in.Consumed()
  4295. }
  4296. in.Skip()
  4297. return
  4298. }
  4299. in.Delim('{')
  4300. for !in.IsDelim('}') {
  4301. key := in.UnsafeFieldName(false)
  4302. in.WantColon()
  4303. if in.IsNull() {
  4304. in.Skip()
  4305. in.WantComma()
  4306. continue
  4307. }
  4308. switch key {
  4309. case "propertyName":
  4310. out.PropertyName = string(in.String())
  4311. case "initialValue":
  4312. if in.IsNull() {
  4313. in.Skip()
  4314. out.InitialValue = nil
  4315. } else {
  4316. if out.InitialValue == nil {
  4317. out.InitialValue = new(Value)
  4318. }
  4319. (*out.InitialValue).UnmarshalEasyJSON(in)
  4320. }
  4321. case "inherits":
  4322. out.Inherits = bool(in.Bool())
  4323. case "syntax":
  4324. out.Syntax = string(in.String())
  4325. default:
  4326. in.SkipRecursive()
  4327. }
  4328. in.WantComma()
  4329. }
  4330. in.Delim('}')
  4331. if isTopLevel {
  4332. in.Consumed()
  4333. }
  4334. }
  4335. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss44(out *jwriter.Writer, in PropertyRegistration) {
  4336. out.RawByte('{')
  4337. first := true
  4338. _ = first
  4339. {
  4340. const prefix string = ",\"propertyName\":"
  4341. out.RawString(prefix[1:])
  4342. out.String(string(in.PropertyName))
  4343. }
  4344. if in.InitialValue != nil {
  4345. const prefix string = ",\"initialValue\":"
  4346. out.RawString(prefix)
  4347. (*in.InitialValue).MarshalEasyJSON(out)
  4348. }
  4349. {
  4350. const prefix string = ",\"inherits\":"
  4351. out.RawString(prefix)
  4352. out.Bool(bool(in.Inherits))
  4353. }
  4354. {
  4355. const prefix string = ",\"syntax\":"
  4356. out.RawString(prefix)
  4357. out.String(string(in.Syntax))
  4358. }
  4359. out.RawByte('}')
  4360. }
  4361. // MarshalJSON supports json.Marshaler interface
  4362. func (v PropertyRegistration) MarshalJSON() ([]byte, error) {
  4363. w := jwriter.Writer{}
  4364. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss44(&w, v)
  4365. return w.Buffer.BuildBytes(), w.Error
  4366. }
  4367. // MarshalEasyJSON supports easyjson.Marshaler interface
  4368. func (v PropertyRegistration) MarshalEasyJSON(w *jwriter.Writer) {
  4369. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss44(w, v)
  4370. }
  4371. // UnmarshalJSON supports json.Unmarshaler interface
  4372. func (v *PropertyRegistration) UnmarshalJSON(data []byte) error {
  4373. r := jlexer.Lexer{Data: data}
  4374. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss44(&r, v)
  4375. return r.Error()
  4376. }
  4377. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4378. func (v *PropertyRegistration) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4379. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss44(l, v)
  4380. }
  4381. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss45(in *jlexer.Lexer, out *Property) {
  4382. isTopLevel := in.IsStart()
  4383. if in.IsNull() {
  4384. if isTopLevel {
  4385. in.Consumed()
  4386. }
  4387. in.Skip()
  4388. return
  4389. }
  4390. in.Delim('{')
  4391. for !in.IsDelim('}') {
  4392. key := in.UnsafeFieldName(false)
  4393. in.WantColon()
  4394. if in.IsNull() {
  4395. in.Skip()
  4396. in.WantComma()
  4397. continue
  4398. }
  4399. switch key {
  4400. case "name":
  4401. out.Name = string(in.String())
  4402. case "value":
  4403. out.Value = string(in.String())
  4404. case "important":
  4405. out.Important = bool(in.Bool())
  4406. case "implicit":
  4407. out.Implicit = bool(in.Bool())
  4408. case "text":
  4409. out.Text = string(in.String())
  4410. case "parsedOk":
  4411. out.ParsedOk = bool(in.Bool())
  4412. case "disabled":
  4413. out.Disabled = bool(in.Bool())
  4414. case "range":
  4415. if in.IsNull() {
  4416. in.Skip()
  4417. out.Range = nil
  4418. } else {
  4419. if out.Range == nil {
  4420. out.Range = new(SourceRange)
  4421. }
  4422. (*out.Range).UnmarshalEasyJSON(in)
  4423. }
  4424. case "longhandProperties":
  4425. if in.IsNull() {
  4426. in.Skip()
  4427. out.LonghandProperties = nil
  4428. } else {
  4429. in.Delim('[')
  4430. if out.LonghandProperties == nil {
  4431. if !in.IsDelim(']') {
  4432. out.LonghandProperties = make([]*Property, 0, 8)
  4433. } else {
  4434. out.LonghandProperties = []*Property{}
  4435. }
  4436. } else {
  4437. out.LonghandProperties = (out.LonghandProperties)[:0]
  4438. }
  4439. for !in.IsDelim(']') {
  4440. var v55 *Property
  4441. if in.IsNull() {
  4442. in.Skip()
  4443. v55 = nil
  4444. } else {
  4445. if v55 == nil {
  4446. v55 = new(Property)
  4447. }
  4448. (*v55).UnmarshalEasyJSON(in)
  4449. }
  4450. out.LonghandProperties = append(out.LonghandProperties, v55)
  4451. in.WantComma()
  4452. }
  4453. in.Delim(']')
  4454. }
  4455. default:
  4456. in.SkipRecursive()
  4457. }
  4458. in.WantComma()
  4459. }
  4460. in.Delim('}')
  4461. if isTopLevel {
  4462. in.Consumed()
  4463. }
  4464. }
  4465. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss45(out *jwriter.Writer, in Property) {
  4466. out.RawByte('{')
  4467. first := true
  4468. _ = first
  4469. {
  4470. const prefix string = ",\"name\":"
  4471. out.RawString(prefix[1:])
  4472. out.String(string(in.Name))
  4473. }
  4474. {
  4475. const prefix string = ",\"value\":"
  4476. out.RawString(prefix)
  4477. out.String(string(in.Value))
  4478. }
  4479. if in.Important {
  4480. const prefix string = ",\"important\":"
  4481. out.RawString(prefix)
  4482. out.Bool(bool(in.Important))
  4483. }
  4484. if in.Implicit {
  4485. const prefix string = ",\"implicit\":"
  4486. out.RawString(prefix)
  4487. out.Bool(bool(in.Implicit))
  4488. }
  4489. if in.Text != "" {
  4490. const prefix string = ",\"text\":"
  4491. out.RawString(prefix)
  4492. out.String(string(in.Text))
  4493. }
  4494. if in.ParsedOk {
  4495. const prefix string = ",\"parsedOk\":"
  4496. out.RawString(prefix)
  4497. out.Bool(bool(in.ParsedOk))
  4498. }
  4499. if in.Disabled {
  4500. const prefix string = ",\"disabled\":"
  4501. out.RawString(prefix)
  4502. out.Bool(bool(in.Disabled))
  4503. }
  4504. if in.Range != nil {
  4505. const prefix string = ",\"range\":"
  4506. out.RawString(prefix)
  4507. (*in.Range).MarshalEasyJSON(out)
  4508. }
  4509. if len(in.LonghandProperties) != 0 {
  4510. const prefix string = ",\"longhandProperties\":"
  4511. out.RawString(prefix)
  4512. {
  4513. out.RawByte('[')
  4514. for v56, v57 := range in.LonghandProperties {
  4515. if v56 > 0 {
  4516. out.RawByte(',')
  4517. }
  4518. if v57 == nil {
  4519. out.RawString("null")
  4520. } else {
  4521. (*v57).MarshalEasyJSON(out)
  4522. }
  4523. }
  4524. out.RawByte(']')
  4525. }
  4526. }
  4527. out.RawByte('}')
  4528. }
  4529. // MarshalJSON supports json.Marshaler interface
  4530. func (v Property) MarshalJSON() ([]byte, error) {
  4531. w := jwriter.Writer{}
  4532. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss45(&w, v)
  4533. return w.Buffer.BuildBytes(), w.Error
  4534. }
  4535. // MarshalEasyJSON supports easyjson.Marshaler interface
  4536. func (v Property) MarshalEasyJSON(w *jwriter.Writer) {
  4537. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss45(w, v)
  4538. }
  4539. // UnmarshalJSON supports json.Unmarshaler interface
  4540. func (v *Property) UnmarshalJSON(data []byte) error {
  4541. r := jlexer.Lexer{Data: data}
  4542. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss45(&r, v)
  4543. return r.Error()
  4544. }
  4545. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4546. func (v *Property) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4547. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss45(l, v)
  4548. }
  4549. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(in *jlexer.Lexer, out *PositionTryRule) {
  4550. isTopLevel := in.IsStart()
  4551. if in.IsNull() {
  4552. if isTopLevel {
  4553. in.Consumed()
  4554. }
  4555. in.Skip()
  4556. return
  4557. }
  4558. in.Delim('{')
  4559. for !in.IsDelim('}') {
  4560. key := in.UnsafeFieldName(false)
  4561. in.WantColon()
  4562. if in.IsNull() {
  4563. in.Skip()
  4564. in.WantComma()
  4565. continue
  4566. }
  4567. switch key {
  4568. case "name":
  4569. if in.IsNull() {
  4570. in.Skip()
  4571. out.Name = nil
  4572. } else {
  4573. if out.Name == nil {
  4574. out.Name = new(Value)
  4575. }
  4576. (*out.Name).UnmarshalEasyJSON(in)
  4577. }
  4578. case "styleSheetId":
  4579. out.StyleSheetID = StyleSheetID(in.String())
  4580. case "origin":
  4581. (out.Origin).UnmarshalEasyJSON(in)
  4582. case "style":
  4583. if in.IsNull() {
  4584. in.Skip()
  4585. out.Style = nil
  4586. } else {
  4587. if out.Style == nil {
  4588. out.Style = new(Style)
  4589. }
  4590. (*out.Style).UnmarshalEasyJSON(in)
  4591. }
  4592. default:
  4593. in.SkipRecursive()
  4594. }
  4595. in.WantComma()
  4596. }
  4597. in.Delim('}')
  4598. if isTopLevel {
  4599. in.Consumed()
  4600. }
  4601. }
  4602. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(out *jwriter.Writer, in PositionTryRule) {
  4603. out.RawByte('{')
  4604. first := true
  4605. _ = first
  4606. {
  4607. const prefix string = ",\"name\":"
  4608. out.RawString(prefix[1:])
  4609. if in.Name == nil {
  4610. out.RawString("null")
  4611. } else {
  4612. (*in.Name).MarshalEasyJSON(out)
  4613. }
  4614. }
  4615. if in.StyleSheetID != "" {
  4616. const prefix string = ",\"styleSheetId\":"
  4617. out.RawString(prefix)
  4618. out.String(string(in.StyleSheetID))
  4619. }
  4620. {
  4621. const prefix string = ",\"origin\":"
  4622. out.RawString(prefix)
  4623. (in.Origin).MarshalEasyJSON(out)
  4624. }
  4625. {
  4626. const prefix string = ",\"style\":"
  4627. out.RawString(prefix)
  4628. if in.Style == nil {
  4629. out.RawString("null")
  4630. } else {
  4631. (*in.Style).MarshalEasyJSON(out)
  4632. }
  4633. }
  4634. out.RawByte('}')
  4635. }
  4636. // MarshalJSON supports json.Marshaler interface
  4637. func (v PositionTryRule) MarshalJSON() ([]byte, error) {
  4638. w := jwriter.Writer{}
  4639. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(&w, v)
  4640. return w.Buffer.BuildBytes(), w.Error
  4641. }
  4642. // MarshalEasyJSON supports easyjson.Marshaler interface
  4643. func (v PositionTryRule) MarshalEasyJSON(w *jwriter.Writer) {
  4644. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(w, v)
  4645. }
  4646. // UnmarshalJSON supports json.Unmarshaler interface
  4647. func (v *PositionTryRule) UnmarshalJSON(data []byte) error {
  4648. r := jlexer.Lexer{Data: data}
  4649. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(&r, v)
  4650. return r.Error()
  4651. }
  4652. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4653. func (v *PositionTryRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4654. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(l, v)
  4655. }
  4656. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss47(in *jlexer.Lexer, out *PlatformFontUsage) {
  4657. isTopLevel := in.IsStart()
  4658. if in.IsNull() {
  4659. if isTopLevel {
  4660. in.Consumed()
  4661. }
  4662. in.Skip()
  4663. return
  4664. }
  4665. in.Delim('{')
  4666. for !in.IsDelim('}') {
  4667. key := in.UnsafeFieldName(false)
  4668. in.WantColon()
  4669. if in.IsNull() {
  4670. in.Skip()
  4671. in.WantComma()
  4672. continue
  4673. }
  4674. switch key {
  4675. case "familyName":
  4676. out.FamilyName = string(in.String())
  4677. case "postScriptName":
  4678. out.PostScriptName = string(in.String())
  4679. case "isCustomFont":
  4680. out.IsCustomFont = bool(in.Bool())
  4681. case "glyphCount":
  4682. out.GlyphCount = float64(in.Float64())
  4683. default:
  4684. in.SkipRecursive()
  4685. }
  4686. in.WantComma()
  4687. }
  4688. in.Delim('}')
  4689. if isTopLevel {
  4690. in.Consumed()
  4691. }
  4692. }
  4693. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss47(out *jwriter.Writer, in PlatformFontUsage) {
  4694. out.RawByte('{')
  4695. first := true
  4696. _ = first
  4697. {
  4698. const prefix string = ",\"familyName\":"
  4699. out.RawString(prefix[1:])
  4700. out.String(string(in.FamilyName))
  4701. }
  4702. {
  4703. const prefix string = ",\"postScriptName\":"
  4704. out.RawString(prefix)
  4705. out.String(string(in.PostScriptName))
  4706. }
  4707. {
  4708. const prefix string = ",\"isCustomFont\":"
  4709. out.RawString(prefix)
  4710. out.Bool(bool(in.IsCustomFont))
  4711. }
  4712. {
  4713. const prefix string = ",\"glyphCount\":"
  4714. out.RawString(prefix)
  4715. out.Float64(float64(in.GlyphCount))
  4716. }
  4717. out.RawByte('}')
  4718. }
  4719. // MarshalJSON supports json.Marshaler interface
  4720. func (v PlatformFontUsage) MarshalJSON() ([]byte, error) {
  4721. w := jwriter.Writer{}
  4722. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss47(&w, v)
  4723. return w.Buffer.BuildBytes(), w.Error
  4724. }
  4725. // MarshalEasyJSON supports easyjson.Marshaler interface
  4726. func (v PlatformFontUsage) MarshalEasyJSON(w *jwriter.Writer) {
  4727. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss47(w, v)
  4728. }
  4729. // UnmarshalJSON supports json.Unmarshaler interface
  4730. func (v *PlatformFontUsage) UnmarshalJSON(data []byte) error {
  4731. r := jlexer.Lexer{Data: data}
  4732. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss47(&r, v)
  4733. return r.Error()
  4734. }
  4735. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4736. func (v *PlatformFontUsage) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4737. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss47(l, v)
  4738. }
  4739. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss48(in *jlexer.Lexer, out *MediaQueryExpression) {
  4740. isTopLevel := in.IsStart()
  4741. if in.IsNull() {
  4742. if isTopLevel {
  4743. in.Consumed()
  4744. }
  4745. in.Skip()
  4746. return
  4747. }
  4748. in.Delim('{')
  4749. for !in.IsDelim('}') {
  4750. key := in.UnsafeFieldName(false)
  4751. in.WantColon()
  4752. if in.IsNull() {
  4753. in.Skip()
  4754. in.WantComma()
  4755. continue
  4756. }
  4757. switch key {
  4758. case "value":
  4759. out.Value = float64(in.Float64())
  4760. case "unit":
  4761. out.Unit = string(in.String())
  4762. case "feature":
  4763. out.Feature = string(in.String())
  4764. case "valueRange":
  4765. if in.IsNull() {
  4766. in.Skip()
  4767. out.ValueRange = nil
  4768. } else {
  4769. if out.ValueRange == nil {
  4770. out.ValueRange = new(SourceRange)
  4771. }
  4772. (*out.ValueRange).UnmarshalEasyJSON(in)
  4773. }
  4774. case "computedLength":
  4775. out.ComputedLength = float64(in.Float64())
  4776. default:
  4777. in.SkipRecursive()
  4778. }
  4779. in.WantComma()
  4780. }
  4781. in.Delim('}')
  4782. if isTopLevel {
  4783. in.Consumed()
  4784. }
  4785. }
  4786. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss48(out *jwriter.Writer, in MediaQueryExpression) {
  4787. out.RawByte('{')
  4788. first := true
  4789. _ = first
  4790. {
  4791. const prefix string = ",\"value\":"
  4792. out.RawString(prefix[1:])
  4793. out.Float64(float64(in.Value))
  4794. }
  4795. {
  4796. const prefix string = ",\"unit\":"
  4797. out.RawString(prefix)
  4798. out.String(string(in.Unit))
  4799. }
  4800. {
  4801. const prefix string = ",\"feature\":"
  4802. out.RawString(prefix)
  4803. out.String(string(in.Feature))
  4804. }
  4805. if in.ValueRange != nil {
  4806. const prefix string = ",\"valueRange\":"
  4807. out.RawString(prefix)
  4808. (*in.ValueRange).MarshalEasyJSON(out)
  4809. }
  4810. if in.ComputedLength != 0 {
  4811. const prefix string = ",\"computedLength\":"
  4812. out.RawString(prefix)
  4813. out.Float64(float64(in.ComputedLength))
  4814. }
  4815. out.RawByte('}')
  4816. }
  4817. // MarshalJSON supports json.Marshaler interface
  4818. func (v MediaQueryExpression) MarshalJSON() ([]byte, error) {
  4819. w := jwriter.Writer{}
  4820. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss48(&w, v)
  4821. return w.Buffer.BuildBytes(), w.Error
  4822. }
  4823. // MarshalEasyJSON supports easyjson.Marshaler interface
  4824. func (v MediaQueryExpression) MarshalEasyJSON(w *jwriter.Writer) {
  4825. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss48(w, v)
  4826. }
  4827. // UnmarshalJSON supports json.Unmarshaler interface
  4828. func (v *MediaQueryExpression) UnmarshalJSON(data []byte) error {
  4829. r := jlexer.Lexer{Data: data}
  4830. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss48(&r, v)
  4831. return r.Error()
  4832. }
  4833. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4834. func (v *MediaQueryExpression) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4835. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss48(l, v)
  4836. }
  4837. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss49(in *jlexer.Lexer, out *MediaQuery) {
  4838. isTopLevel := in.IsStart()
  4839. if in.IsNull() {
  4840. if isTopLevel {
  4841. in.Consumed()
  4842. }
  4843. in.Skip()
  4844. return
  4845. }
  4846. in.Delim('{')
  4847. for !in.IsDelim('}') {
  4848. key := in.UnsafeFieldName(false)
  4849. in.WantColon()
  4850. if in.IsNull() {
  4851. in.Skip()
  4852. in.WantComma()
  4853. continue
  4854. }
  4855. switch key {
  4856. case "expressions":
  4857. if in.IsNull() {
  4858. in.Skip()
  4859. out.Expressions = nil
  4860. } else {
  4861. in.Delim('[')
  4862. if out.Expressions == nil {
  4863. if !in.IsDelim(']') {
  4864. out.Expressions = make([]*MediaQueryExpression, 0, 8)
  4865. } else {
  4866. out.Expressions = []*MediaQueryExpression{}
  4867. }
  4868. } else {
  4869. out.Expressions = (out.Expressions)[:0]
  4870. }
  4871. for !in.IsDelim(']') {
  4872. var v58 *MediaQueryExpression
  4873. if in.IsNull() {
  4874. in.Skip()
  4875. v58 = nil
  4876. } else {
  4877. if v58 == nil {
  4878. v58 = new(MediaQueryExpression)
  4879. }
  4880. (*v58).UnmarshalEasyJSON(in)
  4881. }
  4882. out.Expressions = append(out.Expressions, v58)
  4883. in.WantComma()
  4884. }
  4885. in.Delim(']')
  4886. }
  4887. case "active":
  4888. out.Active = bool(in.Bool())
  4889. default:
  4890. in.SkipRecursive()
  4891. }
  4892. in.WantComma()
  4893. }
  4894. in.Delim('}')
  4895. if isTopLevel {
  4896. in.Consumed()
  4897. }
  4898. }
  4899. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss49(out *jwriter.Writer, in MediaQuery) {
  4900. out.RawByte('{')
  4901. first := true
  4902. _ = first
  4903. {
  4904. const prefix string = ",\"expressions\":"
  4905. out.RawString(prefix[1:])
  4906. if in.Expressions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  4907. out.RawString("null")
  4908. } else {
  4909. out.RawByte('[')
  4910. for v59, v60 := range in.Expressions {
  4911. if v59 > 0 {
  4912. out.RawByte(',')
  4913. }
  4914. if v60 == nil {
  4915. out.RawString("null")
  4916. } else {
  4917. (*v60).MarshalEasyJSON(out)
  4918. }
  4919. }
  4920. out.RawByte(']')
  4921. }
  4922. }
  4923. {
  4924. const prefix string = ",\"active\":"
  4925. out.RawString(prefix)
  4926. out.Bool(bool(in.Active))
  4927. }
  4928. out.RawByte('}')
  4929. }
  4930. // MarshalJSON supports json.Marshaler interface
  4931. func (v MediaQuery) MarshalJSON() ([]byte, error) {
  4932. w := jwriter.Writer{}
  4933. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss49(&w, v)
  4934. return w.Buffer.BuildBytes(), w.Error
  4935. }
  4936. // MarshalEasyJSON supports easyjson.Marshaler interface
  4937. func (v MediaQuery) MarshalEasyJSON(w *jwriter.Writer) {
  4938. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss49(w, v)
  4939. }
  4940. // UnmarshalJSON supports json.Unmarshaler interface
  4941. func (v *MediaQuery) UnmarshalJSON(data []byte) error {
  4942. r := jlexer.Lexer{Data: data}
  4943. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss49(&r, v)
  4944. return r.Error()
  4945. }
  4946. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4947. func (v *MediaQuery) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4948. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss49(l, v)
  4949. }
  4950. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss50(in *jlexer.Lexer, out *Media) {
  4951. isTopLevel := in.IsStart()
  4952. if in.IsNull() {
  4953. if isTopLevel {
  4954. in.Consumed()
  4955. }
  4956. in.Skip()
  4957. return
  4958. }
  4959. in.Delim('{')
  4960. for !in.IsDelim('}') {
  4961. key := in.UnsafeFieldName(false)
  4962. in.WantColon()
  4963. if in.IsNull() {
  4964. in.Skip()
  4965. in.WantComma()
  4966. continue
  4967. }
  4968. switch key {
  4969. case "text":
  4970. out.Text = string(in.String())
  4971. case "source":
  4972. (out.Source).UnmarshalEasyJSON(in)
  4973. case "sourceURL":
  4974. out.SourceURL = string(in.String())
  4975. case "range":
  4976. if in.IsNull() {
  4977. in.Skip()
  4978. out.Range = nil
  4979. } else {
  4980. if out.Range == nil {
  4981. out.Range = new(SourceRange)
  4982. }
  4983. (*out.Range).UnmarshalEasyJSON(in)
  4984. }
  4985. case "styleSheetId":
  4986. out.StyleSheetID = StyleSheetID(in.String())
  4987. case "mediaList":
  4988. if in.IsNull() {
  4989. in.Skip()
  4990. out.MediaList = nil
  4991. } else {
  4992. in.Delim('[')
  4993. if out.MediaList == nil {
  4994. if !in.IsDelim(']') {
  4995. out.MediaList = make([]*MediaQuery, 0, 8)
  4996. } else {
  4997. out.MediaList = []*MediaQuery{}
  4998. }
  4999. } else {
  5000. out.MediaList = (out.MediaList)[:0]
  5001. }
  5002. for !in.IsDelim(']') {
  5003. var v61 *MediaQuery
  5004. if in.IsNull() {
  5005. in.Skip()
  5006. v61 = nil
  5007. } else {
  5008. if v61 == nil {
  5009. v61 = new(MediaQuery)
  5010. }
  5011. (*v61).UnmarshalEasyJSON(in)
  5012. }
  5013. out.MediaList = append(out.MediaList, v61)
  5014. in.WantComma()
  5015. }
  5016. in.Delim(']')
  5017. }
  5018. default:
  5019. in.SkipRecursive()
  5020. }
  5021. in.WantComma()
  5022. }
  5023. in.Delim('}')
  5024. if isTopLevel {
  5025. in.Consumed()
  5026. }
  5027. }
  5028. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss50(out *jwriter.Writer, in Media) {
  5029. out.RawByte('{')
  5030. first := true
  5031. _ = first
  5032. {
  5033. const prefix string = ",\"text\":"
  5034. out.RawString(prefix[1:])
  5035. out.String(string(in.Text))
  5036. }
  5037. {
  5038. const prefix string = ",\"source\":"
  5039. out.RawString(prefix)
  5040. (in.Source).MarshalEasyJSON(out)
  5041. }
  5042. if in.SourceURL != "" {
  5043. const prefix string = ",\"sourceURL\":"
  5044. out.RawString(prefix)
  5045. out.String(string(in.SourceURL))
  5046. }
  5047. if in.Range != nil {
  5048. const prefix string = ",\"range\":"
  5049. out.RawString(prefix)
  5050. (*in.Range).MarshalEasyJSON(out)
  5051. }
  5052. if in.StyleSheetID != "" {
  5053. const prefix string = ",\"styleSheetId\":"
  5054. out.RawString(prefix)
  5055. out.String(string(in.StyleSheetID))
  5056. }
  5057. if len(in.MediaList) != 0 {
  5058. const prefix string = ",\"mediaList\":"
  5059. out.RawString(prefix)
  5060. {
  5061. out.RawByte('[')
  5062. for v62, v63 := range in.MediaList {
  5063. if v62 > 0 {
  5064. out.RawByte(',')
  5065. }
  5066. if v63 == nil {
  5067. out.RawString("null")
  5068. } else {
  5069. (*v63).MarshalEasyJSON(out)
  5070. }
  5071. }
  5072. out.RawByte(']')
  5073. }
  5074. }
  5075. out.RawByte('}')
  5076. }
  5077. // MarshalJSON supports json.Marshaler interface
  5078. func (v Media) MarshalJSON() ([]byte, error) {
  5079. w := jwriter.Writer{}
  5080. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss50(&w, v)
  5081. return w.Buffer.BuildBytes(), w.Error
  5082. }
  5083. // MarshalEasyJSON supports easyjson.Marshaler interface
  5084. func (v Media) MarshalEasyJSON(w *jwriter.Writer) {
  5085. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss50(w, v)
  5086. }
  5087. // UnmarshalJSON supports json.Unmarshaler interface
  5088. func (v *Media) UnmarshalJSON(data []byte) error {
  5089. r := jlexer.Lexer{Data: data}
  5090. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss50(&r, v)
  5091. return r.Error()
  5092. }
  5093. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5094. func (v *Media) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5095. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss50(l, v)
  5096. }
  5097. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss51(in *jlexer.Lexer, out *LayerData) {
  5098. isTopLevel := in.IsStart()
  5099. if in.IsNull() {
  5100. if isTopLevel {
  5101. in.Consumed()
  5102. }
  5103. in.Skip()
  5104. return
  5105. }
  5106. in.Delim('{')
  5107. for !in.IsDelim('}') {
  5108. key := in.UnsafeFieldName(false)
  5109. in.WantColon()
  5110. if in.IsNull() {
  5111. in.Skip()
  5112. in.WantComma()
  5113. continue
  5114. }
  5115. switch key {
  5116. case "name":
  5117. out.Name = string(in.String())
  5118. case "subLayers":
  5119. if in.IsNull() {
  5120. in.Skip()
  5121. out.SubLayers = nil
  5122. } else {
  5123. in.Delim('[')
  5124. if out.SubLayers == nil {
  5125. if !in.IsDelim(']') {
  5126. out.SubLayers = make([]*LayerData, 0, 8)
  5127. } else {
  5128. out.SubLayers = []*LayerData{}
  5129. }
  5130. } else {
  5131. out.SubLayers = (out.SubLayers)[:0]
  5132. }
  5133. for !in.IsDelim(']') {
  5134. var v64 *LayerData
  5135. if in.IsNull() {
  5136. in.Skip()
  5137. v64 = nil
  5138. } else {
  5139. if v64 == nil {
  5140. v64 = new(LayerData)
  5141. }
  5142. (*v64).UnmarshalEasyJSON(in)
  5143. }
  5144. out.SubLayers = append(out.SubLayers, v64)
  5145. in.WantComma()
  5146. }
  5147. in.Delim(']')
  5148. }
  5149. case "order":
  5150. out.Order = float64(in.Float64())
  5151. default:
  5152. in.SkipRecursive()
  5153. }
  5154. in.WantComma()
  5155. }
  5156. in.Delim('}')
  5157. if isTopLevel {
  5158. in.Consumed()
  5159. }
  5160. }
  5161. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss51(out *jwriter.Writer, in LayerData) {
  5162. out.RawByte('{')
  5163. first := true
  5164. _ = first
  5165. {
  5166. const prefix string = ",\"name\":"
  5167. out.RawString(prefix[1:])
  5168. out.String(string(in.Name))
  5169. }
  5170. if len(in.SubLayers) != 0 {
  5171. const prefix string = ",\"subLayers\":"
  5172. out.RawString(prefix)
  5173. {
  5174. out.RawByte('[')
  5175. for v65, v66 := range in.SubLayers {
  5176. if v65 > 0 {
  5177. out.RawByte(',')
  5178. }
  5179. if v66 == nil {
  5180. out.RawString("null")
  5181. } else {
  5182. (*v66).MarshalEasyJSON(out)
  5183. }
  5184. }
  5185. out.RawByte(']')
  5186. }
  5187. }
  5188. {
  5189. const prefix string = ",\"order\":"
  5190. out.RawString(prefix)
  5191. out.Float64(float64(in.Order))
  5192. }
  5193. out.RawByte('}')
  5194. }
  5195. // MarshalJSON supports json.Marshaler interface
  5196. func (v LayerData) MarshalJSON() ([]byte, error) {
  5197. w := jwriter.Writer{}
  5198. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss51(&w, v)
  5199. return w.Buffer.BuildBytes(), w.Error
  5200. }
  5201. // MarshalEasyJSON supports easyjson.Marshaler interface
  5202. func (v LayerData) MarshalEasyJSON(w *jwriter.Writer) {
  5203. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss51(w, v)
  5204. }
  5205. // UnmarshalJSON supports json.Unmarshaler interface
  5206. func (v *LayerData) UnmarshalJSON(data []byte) error {
  5207. r := jlexer.Lexer{Data: data}
  5208. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss51(&r, v)
  5209. return r.Error()
  5210. }
  5211. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5212. func (v *LayerData) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5213. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss51(l, v)
  5214. }
  5215. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss52(in *jlexer.Lexer, out *Layer) {
  5216. isTopLevel := in.IsStart()
  5217. if in.IsNull() {
  5218. if isTopLevel {
  5219. in.Consumed()
  5220. }
  5221. in.Skip()
  5222. return
  5223. }
  5224. in.Delim('{')
  5225. for !in.IsDelim('}') {
  5226. key := in.UnsafeFieldName(false)
  5227. in.WantColon()
  5228. if in.IsNull() {
  5229. in.Skip()
  5230. in.WantComma()
  5231. continue
  5232. }
  5233. switch key {
  5234. case "text":
  5235. out.Text = string(in.String())
  5236. case "range":
  5237. if in.IsNull() {
  5238. in.Skip()
  5239. out.Range = nil
  5240. } else {
  5241. if out.Range == nil {
  5242. out.Range = new(SourceRange)
  5243. }
  5244. (*out.Range).UnmarshalEasyJSON(in)
  5245. }
  5246. case "styleSheetId":
  5247. out.StyleSheetID = StyleSheetID(in.String())
  5248. default:
  5249. in.SkipRecursive()
  5250. }
  5251. in.WantComma()
  5252. }
  5253. in.Delim('}')
  5254. if isTopLevel {
  5255. in.Consumed()
  5256. }
  5257. }
  5258. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss52(out *jwriter.Writer, in Layer) {
  5259. out.RawByte('{')
  5260. first := true
  5261. _ = first
  5262. {
  5263. const prefix string = ",\"text\":"
  5264. out.RawString(prefix[1:])
  5265. out.String(string(in.Text))
  5266. }
  5267. if in.Range != nil {
  5268. const prefix string = ",\"range\":"
  5269. out.RawString(prefix)
  5270. (*in.Range).MarshalEasyJSON(out)
  5271. }
  5272. if in.StyleSheetID != "" {
  5273. const prefix string = ",\"styleSheetId\":"
  5274. out.RawString(prefix)
  5275. out.String(string(in.StyleSheetID))
  5276. }
  5277. out.RawByte('}')
  5278. }
  5279. // MarshalJSON supports json.Marshaler interface
  5280. func (v Layer) MarshalJSON() ([]byte, error) {
  5281. w := jwriter.Writer{}
  5282. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss52(&w, v)
  5283. return w.Buffer.BuildBytes(), w.Error
  5284. }
  5285. // MarshalEasyJSON supports easyjson.Marshaler interface
  5286. func (v Layer) MarshalEasyJSON(w *jwriter.Writer) {
  5287. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss52(w, v)
  5288. }
  5289. // UnmarshalJSON supports json.Unmarshaler interface
  5290. func (v *Layer) UnmarshalJSON(data []byte) error {
  5291. r := jlexer.Lexer{Data: data}
  5292. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss52(&r, v)
  5293. return r.Error()
  5294. }
  5295. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5296. func (v *Layer) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5297. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss52(l, v)
  5298. }
  5299. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss53(in *jlexer.Lexer, out *KeyframesRule) {
  5300. isTopLevel := in.IsStart()
  5301. if in.IsNull() {
  5302. if isTopLevel {
  5303. in.Consumed()
  5304. }
  5305. in.Skip()
  5306. return
  5307. }
  5308. in.Delim('{')
  5309. for !in.IsDelim('}') {
  5310. key := in.UnsafeFieldName(false)
  5311. in.WantColon()
  5312. if in.IsNull() {
  5313. in.Skip()
  5314. in.WantComma()
  5315. continue
  5316. }
  5317. switch key {
  5318. case "animationName":
  5319. if in.IsNull() {
  5320. in.Skip()
  5321. out.AnimationName = nil
  5322. } else {
  5323. if out.AnimationName == nil {
  5324. out.AnimationName = new(Value)
  5325. }
  5326. (*out.AnimationName).UnmarshalEasyJSON(in)
  5327. }
  5328. case "keyframes":
  5329. if in.IsNull() {
  5330. in.Skip()
  5331. out.Keyframes = nil
  5332. } else {
  5333. in.Delim('[')
  5334. if out.Keyframes == nil {
  5335. if !in.IsDelim(']') {
  5336. out.Keyframes = make([]*KeyframeRule, 0, 8)
  5337. } else {
  5338. out.Keyframes = []*KeyframeRule{}
  5339. }
  5340. } else {
  5341. out.Keyframes = (out.Keyframes)[:0]
  5342. }
  5343. for !in.IsDelim(']') {
  5344. var v67 *KeyframeRule
  5345. if in.IsNull() {
  5346. in.Skip()
  5347. v67 = nil
  5348. } else {
  5349. if v67 == nil {
  5350. v67 = new(KeyframeRule)
  5351. }
  5352. (*v67).UnmarshalEasyJSON(in)
  5353. }
  5354. out.Keyframes = append(out.Keyframes, v67)
  5355. in.WantComma()
  5356. }
  5357. in.Delim(']')
  5358. }
  5359. default:
  5360. in.SkipRecursive()
  5361. }
  5362. in.WantComma()
  5363. }
  5364. in.Delim('}')
  5365. if isTopLevel {
  5366. in.Consumed()
  5367. }
  5368. }
  5369. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss53(out *jwriter.Writer, in KeyframesRule) {
  5370. out.RawByte('{')
  5371. first := true
  5372. _ = first
  5373. {
  5374. const prefix string = ",\"animationName\":"
  5375. out.RawString(prefix[1:])
  5376. if in.AnimationName == nil {
  5377. out.RawString("null")
  5378. } else {
  5379. (*in.AnimationName).MarshalEasyJSON(out)
  5380. }
  5381. }
  5382. {
  5383. const prefix string = ",\"keyframes\":"
  5384. out.RawString(prefix)
  5385. if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5386. out.RawString("null")
  5387. } else {
  5388. out.RawByte('[')
  5389. for v68, v69 := range in.Keyframes {
  5390. if v68 > 0 {
  5391. out.RawByte(',')
  5392. }
  5393. if v69 == nil {
  5394. out.RawString("null")
  5395. } else {
  5396. (*v69).MarshalEasyJSON(out)
  5397. }
  5398. }
  5399. out.RawByte(']')
  5400. }
  5401. }
  5402. out.RawByte('}')
  5403. }
  5404. // MarshalJSON supports json.Marshaler interface
  5405. func (v KeyframesRule) MarshalJSON() ([]byte, error) {
  5406. w := jwriter.Writer{}
  5407. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss53(&w, v)
  5408. return w.Buffer.BuildBytes(), w.Error
  5409. }
  5410. // MarshalEasyJSON supports easyjson.Marshaler interface
  5411. func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) {
  5412. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss53(w, v)
  5413. }
  5414. // UnmarshalJSON supports json.Unmarshaler interface
  5415. func (v *KeyframesRule) UnmarshalJSON(data []byte) error {
  5416. r := jlexer.Lexer{Data: data}
  5417. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss53(&r, v)
  5418. return r.Error()
  5419. }
  5420. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5421. func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5422. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss53(l, v)
  5423. }
  5424. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss54(in *jlexer.Lexer, out *KeyframeRule) {
  5425. isTopLevel := in.IsStart()
  5426. if in.IsNull() {
  5427. if isTopLevel {
  5428. in.Consumed()
  5429. }
  5430. in.Skip()
  5431. return
  5432. }
  5433. in.Delim('{')
  5434. for !in.IsDelim('}') {
  5435. key := in.UnsafeFieldName(false)
  5436. in.WantColon()
  5437. if in.IsNull() {
  5438. in.Skip()
  5439. in.WantComma()
  5440. continue
  5441. }
  5442. switch key {
  5443. case "styleSheetId":
  5444. out.StyleSheetID = StyleSheetID(in.String())
  5445. case "origin":
  5446. (out.Origin).UnmarshalEasyJSON(in)
  5447. case "keyText":
  5448. if in.IsNull() {
  5449. in.Skip()
  5450. out.KeyText = nil
  5451. } else {
  5452. if out.KeyText == nil {
  5453. out.KeyText = new(Value)
  5454. }
  5455. (*out.KeyText).UnmarshalEasyJSON(in)
  5456. }
  5457. case "style":
  5458. if in.IsNull() {
  5459. in.Skip()
  5460. out.Style = nil
  5461. } else {
  5462. if out.Style == nil {
  5463. out.Style = new(Style)
  5464. }
  5465. (*out.Style).UnmarshalEasyJSON(in)
  5466. }
  5467. default:
  5468. in.SkipRecursive()
  5469. }
  5470. in.WantComma()
  5471. }
  5472. in.Delim('}')
  5473. if isTopLevel {
  5474. in.Consumed()
  5475. }
  5476. }
  5477. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss54(out *jwriter.Writer, in KeyframeRule) {
  5478. out.RawByte('{')
  5479. first := true
  5480. _ = first
  5481. if in.StyleSheetID != "" {
  5482. const prefix string = ",\"styleSheetId\":"
  5483. first = false
  5484. out.RawString(prefix[1:])
  5485. out.String(string(in.StyleSheetID))
  5486. }
  5487. {
  5488. const prefix string = ",\"origin\":"
  5489. if first {
  5490. first = false
  5491. out.RawString(prefix[1:])
  5492. } else {
  5493. out.RawString(prefix)
  5494. }
  5495. (in.Origin).MarshalEasyJSON(out)
  5496. }
  5497. {
  5498. const prefix string = ",\"keyText\":"
  5499. out.RawString(prefix)
  5500. if in.KeyText == nil {
  5501. out.RawString("null")
  5502. } else {
  5503. (*in.KeyText).MarshalEasyJSON(out)
  5504. }
  5505. }
  5506. {
  5507. const prefix string = ",\"style\":"
  5508. out.RawString(prefix)
  5509. if in.Style == nil {
  5510. out.RawString("null")
  5511. } else {
  5512. (*in.Style).MarshalEasyJSON(out)
  5513. }
  5514. }
  5515. out.RawByte('}')
  5516. }
  5517. // MarshalJSON supports json.Marshaler interface
  5518. func (v KeyframeRule) MarshalJSON() ([]byte, error) {
  5519. w := jwriter.Writer{}
  5520. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss54(&w, v)
  5521. return w.Buffer.BuildBytes(), w.Error
  5522. }
  5523. // MarshalEasyJSON supports easyjson.Marshaler interface
  5524. func (v KeyframeRule) MarshalEasyJSON(w *jwriter.Writer) {
  5525. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss54(w, v)
  5526. }
  5527. // UnmarshalJSON supports json.Unmarshaler interface
  5528. func (v *KeyframeRule) UnmarshalJSON(data []byte) error {
  5529. r := jlexer.Lexer{Data: data}
  5530. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss54(&r, v)
  5531. return r.Error()
  5532. }
  5533. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5534. func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5535. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss54(l, v)
  5536. }
  5537. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss55(in *jlexer.Lexer, out *InheritedStyleEntry) {
  5538. isTopLevel := in.IsStart()
  5539. if in.IsNull() {
  5540. if isTopLevel {
  5541. in.Consumed()
  5542. }
  5543. in.Skip()
  5544. return
  5545. }
  5546. in.Delim('{')
  5547. for !in.IsDelim('}') {
  5548. key := in.UnsafeFieldName(false)
  5549. in.WantColon()
  5550. if in.IsNull() {
  5551. in.Skip()
  5552. in.WantComma()
  5553. continue
  5554. }
  5555. switch key {
  5556. case "inlineStyle":
  5557. if in.IsNull() {
  5558. in.Skip()
  5559. out.InlineStyle = nil
  5560. } else {
  5561. if out.InlineStyle == nil {
  5562. out.InlineStyle = new(Style)
  5563. }
  5564. (*out.InlineStyle).UnmarshalEasyJSON(in)
  5565. }
  5566. case "matchedCSSRules":
  5567. if in.IsNull() {
  5568. in.Skip()
  5569. out.MatchedCSSRules = nil
  5570. } else {
  5571. in.Delim('[')
  5572. if out.MatchedCSSRules == nil {
  5573. if !in.IsDelim(']') {
  5574. out.MatchedCSSRules = make([]*RuleMatch, 0, 8)
  5575. } else {
  5576. out.MatchedCSSRules = []*RuleMatch{}
  5577. }
  5578. } else {
  5579. out.MatchedCSSRules = (out.MatchedCSSRules)[:0]
  5580. }
  5581. for !in.IsDelim(']') {
  5582. var v70 *RuleMatch
  5583. if in.IsNull() {
  5584. in.Skip()
  5585. v70 = nil
  5586. } else {
  5587. if v70 == nil {
  5588. v70 = new(RuleMatch)
  5589. }
  5590. (*v70).UnmarshalEasyJSON(in)
  5591. }
  5592. out.MatchedCSSRules = append(out.MatchedCSSRules, v70)
  5593. in.WantComma()
  5594. }
  5595. in.Delim(']')
  5596. }
  5597. default:
  5598. in.SkipRecursive()
  5599. }
  5600. in.WantComma()
  5601. }
  5602. in.Delim('}')
  5603. if isTopLevel {
  5604. in.Consumed()
  5605. }
  5606. }
  5607. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss55(out *jwriter.Writer, in InheritedStyleEntry) {
  5608. out.RawByte('{')
  5609. first := true
  5610. _ = first
  5611. if in.InlineStyle != nil {
  5612. const prefix string = ",\"inlineStyle\":"
  5613. first = false
  5614. out.RawString(prefix[1:])
  5615. (*in.InlineStyle).MarshalEasyJSON(out)
  5616. }
  5617. {
  5618. const prefix string = ",\"matchedCSSRules\":"
  5619. if first {
  5620. first = false
  5621. out.RawString(prefix[1:])
  5622. } else {
  5623. out.RawString(prefix)
  5624. }
  5625. if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5626. out.RawString("null")
  5627. } else {
  5628. out.RawByte('[')
  5629. for v71, v72 := range in.MatchedCSSRules {
  5630. if v71 > 0 {
  5631. out.RawByte(',')
  5632. }
  5633. if v72 == nil {
  5634. out.RawString("null")
  5635. } else {
  5636. (*v72).MarshalEasyJSON(out)
  5637. }
  5638. }
  5639. out.RawByte(']')
  5640. }
  5641. }
  5642. out.RawByte('}')
  5643. }
  5644. // MarshalJSON supports json.Marshaler interface
  5645. func (v InheritedStyleEntry) MarshalJSON() ([]byte, error) {
  5646. w := jwriter.Writer{}
  5647. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss55(&w, v)
  5648. return w.Buffer.BuildBytes(), w.Error
  5649. }
  5650. // MarshalEasyJSON supports easyjson.Marshaler interface
  5651. func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer) {
  5652. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss55(w, v)
  5653. }
  5654. // UnmarshalJSON supports json.Unmarshaler interface
  5655. func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error {
  5656. r := jlexer.Lexer{Data: data}
  5657. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss55(&r, v)
  5658. return r.Error()
  5659. }
  5660. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5661. func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5662. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss55(l, v)
  5663. }
  5664. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss56(in *jlexer.Lexer, out *InheritedPseudoElementMatches) {
  5665. isTopLevel := in.IsStart()
  5666. if in.IsNull() {
  5667. if isTopLevel {
  5668. in.Consumed()
  5669. }
  5670. in.Skip()
  5671. return
  5672. }
  5673. in.Delim('{')
  5674. for !in.IsDelim('}') {
  5675. key := in.UnsafeFieldName(false)
  5676. in.WantColon()
  5677. if in.IsNull() {
  5678. in.Skip()
  5679. in.WantComma()
  5680. continue
  5681. }
  5682. switch key {
  5683. case "pseudoElements":
  5684. if in.IsNull() {
  5685. in.Skip()
  5686. out.PseudoElements = nil
  5687. } else {
  5688. in.Delim('[')
  5689. if out.PseudoElements == nil {
  5690. if !in.IsDelim(']') {
  5691. out.PseudoElements = make([]*PseudoElementMatches, 0, 8)
  5692. } else {
  5693. out.PseudoElements = []*PseudoElementMatches{}
  5694. }
  5695. } else {
  5696. out.PseudoElements = (out.PseudoElements)[:0]
  5697. }
  5698. for !in.IsDelim(']') {
  5699. var v73 *PseudoElementMatches
  5700. if in.IsNull() {
  5701. in.Skip()
  5702. v73 = nil
  5703. } else {
  5704. if v73 == nil {
  5705. v73 = new(PseudoElementMatches)
  5706. }
  5707. (*v73).UnmarshalEasyJSON(in)
  5708. }
  5709. out.PseudoElements = append(out.PseudoElements, v73)
  5710. in.WantComma()
  5711. }
  5712. in.Delim(']')
  5713. }
  5714. default:
  5715. in.SkipRecursive()
  5716. }
  5717. in.WantComma()
  5718. }
  5719. in.Delim('}')
  5720. if isTopLevel {
  5721. in.Consumed()
  5722. }
  5723. }
  5724. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss56(out *jwriter.Writer, in InheritedPseudoElementMatches) {
  5725. out.RawByte('{')
  5726. first := true
  5727. _ = first
  5728. {
  5729. const prefix string = ",\"pseudoElements\":"
  5730. out.RawString(prefix[1:])
  5731. if in.PseudoElements == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  5732. out.RawString("null")
  5733. } else {
  5734. out.RawByte('[')
  5735. for v74, v75 := range in.PseudoElements {
  5736. if v74 > 0 {
  5737. out.RawByte(',')
  5738. }
  5739. if v75 == nil {
  5740. out.RawString("null")
  5741. } else {
  5742. (*v75).MarshalEasyJSON(out)
  5743. }
  5744. }
  5745. out.RawByte(']')
  5746. }
  5747. }
  5748. out.RawByte('}')
  5749. }
  5750. // MarshalJSON supports json.Marshaler interface
  5751. func (v InheritedPseudoElementMatches) MarshalJSON() ([]byte, error) {
  5752. w := jwriter.Writer{}
  5753. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss56(&w, v)
  5754. return w.Buffer.BuildBytes(), w.Error
  5755. }
  5756. // MarshalEasyJSON supports easyjson.Marshaler interface
  5757. func (v InheritedPseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer) {
  5758. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss56(w, v)
  5759. }
  5760. // UnmarshalJSON supports json.Unmarshaler interface
  5761. func (v *InheritedPseudoElementMatches) UnmarshalJSON(data []byte) error {
  5762. r := jlexer.Lexer{Data: data}
  5763. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss56(&r, v)
  5764. return r.Error()
  5765. }
  5766. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5767. func (v *InheritedPseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5768. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss56(l, v)
  5769. }
  5770. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss57(in *jlexer.Lexer, out *GetStyleSheetTextReturns) {
  5771. isTopLevel := in.IsStart()
  5772. if in.IsNull() {
  5773. if isTopLevel {
  5774. in.Consumed()
  5775. }
  5776. in.Skip()
  5777. return
  5778. }
  5779. in.Delim('{')
  5780. for !in.IsDelim('}') {
  5781. key := in.UnsafeFieldName(false)
  5782. in.WantColon()
  5783. if in.IsNull() {
  5784. in.Skip()
  5785. in.WantComma()
  5786. continue
  5787. }
  5788. switch key {
  5789. case "text":
  5790. out.Text = string(in.String())
  5791. default:
  5792. in.SkipRecursive()
  5793. }
  5794. in.WantComma()
  5795. }
  5796. in.Delim('}')
  5797. if isTopLevel {
  5798. in.Consumed()
  5799. }
  5800. }
  5801. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss57(out *jwriter.Writer, in GetStyleSheetTextReturns) {
  5802. out.RawByte('{')
  5803. first := true
  5804. _ = first
  5805. if in.Text != "" {
  5806. const prefix string = ",\"text\":"
  5807. first = false
  5808. out.RawString(prefix[1:])
  5809. out.String(string(in.Text))
  5810. }
  5811. out.RawByte('}')
  5812. }
  5813. // MarshalJSON supports json.Marshaler interface
  5814. func (v GetStyleSheetTextReturns) MarshalJSON() ([]byte, error) {
  5815. w := jwriter.Writer{}
  5816. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss57(&w, v)
  5817. return w.Buffer.BuildBytes(), w.Error
  5818. }
  5819. // MarshalEasyJSON supports easyjson.Marshaler interface
  5820. func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
  5821. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss57(w, v)
  5822. }
  5823. // UnmarshalJSON supports json.Unmarshaler interface
  5824. func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error {
  5825. r := jlexer.Lexer{Data: data}
  5826. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss57(&r, v)
  5827. return r.Error()
  5828. }
  5829. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5830. func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5831. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss57(l, v)
  5832. }
  5833. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss58(in *jlexer.Lexer, out *GetStyleSheetTextParams) {
  5834. isTopLevel := in.IsStart()
  5835. if in.IsNull() {
  5836. if isTopLevel {
  5837. in.Consumed()
  5838. }
  5839. in.Skip()
  5840. return
  5841. }
  5842. in.Delim('{')
  5843. for !in.IsDelim('}') {
  5844. key := in.UnsafeFieldName(false)
  5845. in.WantColon()
  5846. if in.IsNull() {
  5847. in.Skip()
  5848. in.WantComma()
  5849. continue
  5850. }
  5851. switch key {
  5852. case "styleSheetId":
  5853. out.StyleSheetID = StyleSheetID(in.String())
  5854. default:
  5855. in.SkipRecursive()
  5856. }
  5857. in.WantComma()
  5858. }
  5859. in.Delim('}')
  5860. if isTopLevel {
  5861. in.Consumed()
  5862. }
  5863. }
  5864. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss58(out *jwriter.Writer, in GetStyleSheetTextParams) {
  5865. out.RawByte('{')
  5866. first := true
  5867. _ = first
  5868. {
  5869. const prefix string = ",\"styleSheetId\":"
  5870. out.RawString(prefix[1:])
  5871. out.String(string(in.StyleSheetID))
  5872. }
  5873. out.RawByte('}')
  5874. }
  5875. // MarshalJSON supports json.Marshaler interface
  5876. func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error) {
  5877. w := jwriter.Writer{}
  5878. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss58(&w, v)
  5879. return w.Buffer.BuildBytes(), w.Error
  5880. }
  5881. // MarshalEasyJSON supports easyjson.Marshaler interface
  5882. func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) {
  5883. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss58(w, v)
  5884. }
  5885. // UnmarshalJSON supports json.Unmarshaler interface
  5886. func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error {
  5887. r := jlexer.Lexer{Data: data}
  5888. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss58(&r, v)
  5889. return r.Error()
  5890. }
  5891. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5892. func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5893. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss58(l, v)
  5894. }
  5895. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss59(in *jlexer.Lexer, out *GetPlatformFontsForNodeReturns) {
  5896. isTopLevel := in.IsStart()
  5897. if in.IsNull() {
  5898. if isTopLevel {
  5899. in.Consumed()
  5900. }
  5901. in.Skip()
  5902. return
  5903. }
  5904. in.Delim('{')
  5905. for !in.IsDelim('}') {
  5906. key := in.UnsafeFieldName(false)
  5907. in.WantColon()
  5908. if in.IsNull() {
  5909. in.Skip()
  5910. in.WantComma()
  5911. continue
  5912. }
  5913. switch key {
  5914. case "fonts":
  5915. if in.IsNull() {
  5916. in.Skip()
  5917. out.Fonts = nil
  5918. } else {
  5919. in.Delim('[')
  5920. if out.Fonts == nil {
  5921. if !in.IsDelim(']') {
  5922. out.Fonts = make([]*PlatformFontUsage, 0, 8)
  5923. } else {
  5924. out.Fonts = []*PlatformFontUsage{}
  5925. }
  5926. } else {
  5927. out.Fonts = (out.Fonts)[:0]
  5928. }
  5929. for !in.IsDelim(']') {
  5930. var v76 *PlatformFontUsage
  5931. if in.IsNull() {
  5932. in.Skip()
  5933. v76 = nil
  5934. } else {
  5935. if v76 == nil {
  5936. v76 = new(PlatformFontUsage)
  5937. }
  5938. (*v76).UnmarshalEasyJSON(in)
  5939. }
  5940. out.Fonts = append(out.Fonts, v76)
  5941. in.WantComma()
  5942. }
  5943. in.Delim(']')
  5944. }
  5945. default:
  5946. in.SkipRecursive()
  5947. }
  5948. in.WantComma()
  5949. }
  5950. in.Delim('}')
  5951. if isTopLevel {
  5952. in.Consumed()
  5953. }
  5954. }
  5955. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss59(out *jwriter.Writer, in GetPlatformFontsForNodeReturns) {
  5956. out.RawByte('{')
  5957. first := true
  5958. _ = first
  5959. if len(in.Fonts) != 0 {
  5960. const prefix string = ",\"fonts\":"
  5961. first = false
  5962. out.RawString(prefix[1:])
  5963. {
  5964. out.RawByte('[')
  5965. for v77, v78 := range in.Fonts {
  5966. if v77 > 0 {
  5967. out.RawByte(',')
  5968. }
  5969. if v78 == nil {
  5970. out.RawString("null")
  5971. } else {
  5972. (*v78).MarshalEasyJSON(out)
  5973. }
  5974. }
  5975. out.RawByte(']')
  5976. }
  5977. }
  5978. out.RawByte('}')
  5979. }
  5980. // MarshalJSON supports json.Marshaler interface
  5981. func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error) {
  5982. w := jwriter.Writer{}
  5983. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss59(&w, v)
  5984. return w.Buffer.BuildBytes(), w.Error
  5985. }
  5986. // MarshalEasyJSON supports easyjson.Marshaler interface
  5987. func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  5988. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss59(w, v)
  5989. }
  5990. // UnmarshalJSON supports json.Unmarshaler interface
  5991. func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error {
  5992. r := jlexer.Lexer{Data: data}
  5993. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss59(&r, v)
  5994. return r.Error()
  5995. }
  5996. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5997. func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5998. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss59(l, v)
  5999. }
  6000. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss60(in *jlexer.Lexer, out *GetPlatformFontsForNodeParams) {
  6001. isTopLevel := in.IsStart()
  6002. if in.IsNull() {
  6003. if isTopLevel {
  6004. in.Consumed()
  6005. }
  6006. in.Skip()
  6007. return
  6008. }
  6009. in.Delim('{')
  6010. for !in.IsDelim('}') {
  6011. key := in.UnsafeFieldName(false)
  6012. in.WantColon()
  6013. if in.IsNull() {
  6014. in.Skip()
  6015. in.WantComma()
  6016. continue
  6017. }
  6018. switch key {
  6019. case "nodeId":
  6020. (out.NodeID).UnmarshalEasyJSON(in)
  6021. default:
  6022. in.SkipRecursive()
  6023. }
  6024. in.WantComma()
  6025. }
  6026. in.Delim('}')
  6027. if isTopLevel {
  6028. in.Consumed()
  6029. }
  6030. }
  6031. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss60(out *jwriter.Writer, in GetPlatformFontsForNodeParams) {
  6032. out.RawByte('{')
  6033. first := true
  6034. _ = first
  6035. {
  6036. const prefix string = ",\"nodeId\":"
  6037. out.RawString(prefix[1:])
  6038. out.Int64(int64(in.NodeID))
  6039. }
  6040. out.RawByte('}')
  6041. }
  6042. // MarshalJSON supports json.Marshaler interface
  6043. func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error) {
  6044. w := jwriter.Writer{}
  6045. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss60(&w, v)
  6046. return w.Buffer.BuildBytes(), w.Error
  6047. }
  6048. // MarshalEasyJSON supports easyjson.Marshaler interface
  6049. func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  6050. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss60(w, v)
  6051. }
  6052. // UnmarshalJSON supports json.Unmarshaler interface
  6053. func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error {
  6054. r := jlexer.Lexer{Data: data}
  6055. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss60(&r, v)
  6056. return r.Error()
  6057. }
  6058. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6059. func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6060. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss60(l, v)
  6061. }
  6062. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss61(in *jlexer.Lexer, out *GetMediaQueriesReturns) {
  6063. isTopLevel := in.IsStart()
  6064. if in.IsNull() {
  6065. if isTopLevel {
  6066. in.Consumed()
  6067. }
  6068. in.Skip()
  6069. return
  6070. }
  6071. in.Delim('{')
  6072. for !in.IsDelim('}') {
  6073. key := in.UnsafeFieldName(false)
  6074. in.WantColon()
  6075. if in.IsNull() {
  6076. in.Skip()
  6077. in.WantComma()
  6078. continue
  6079. }
  6080. switch key {
  6081. case "medias":
  6082. if in.IsNull() {
  6083. in.Skip()
  6084. out.Medias = nil
  6085. } else {
  6086. in.Delim('[')
  6087. if out.Medias == nil {
  6088. if !in.IsDelim(']') {
  6089. out.Medias = make([]*Media, 0, 8)
  6090. } else {
  6091. out.Medias = []*Media{}
  6092. }
  6093. } else {
  6094. out.Medias = (out.Medias)[:0]
  6095. }
  6096. for !in.IsDelim(']') {
  6097. var v79 *Media
  6098. if in.IsNull() {
  6099. in.Skip()
  6100. v79 = nil
  6101. } else {
  6102. if v79 == nil {
  6103. v79 = new(Media)
  6104. }
  6105. (*v79).UnmarshalEasyJSON(in)
  6106. }
  6107. out.Medias = append(out.Medias, v79)
  6108. in.WantComma()
  6109. }
  6110. in.Delim(']')
  6111. }
  6112. default:
  6113. in.SkipRecursive()
  6114. }
  6115. in.WantComma()
  6116. }
  6117. in.Delim('}')
  6118. if isTopLevel {
  6119. in.Consumed()
  6120. }
  6121. }
  6122. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss61(out *jwriter.Writer, in GetMediaQueriesReturns) {
  6123. out.RawByte('{')
  6124. first := true
  6125. _ = first
  6126. if len(in.Medias) != 0 {
  6127. const prefix string = ",\"medias\":"
  6128. first = false
  6129. out.RawString(prefix[1:])
  6130. {
  6131. out.RawByte('[')
  6132. for v80, v81 := range in.Medias {
  6133. if v80 > 0 {
  6134. out.RawByte(',')
  6135. }
  6136. if v81 == nil {
  6137. out.RawString("null")
  6138. } else {
  6139. (*v81).MarshalEasyJSON(out)
  6140. }
  6141. }
  6142. out.RawByte(']')
  6143. }
  6144. }
  6145. out.RawByte('}')
  6146. }
  6147. // MarshalJSON supports json.Marshaler interface
  6148. func (v GetMediaQueriesReturns) MarshalJSON() ([]byte, error) {
  6149. w := jwriter.Writer{}
  6150. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss61(&w, v)
  6151. return w.Buffer.BuildBytes(), w.Error
  6152. }
  6153. // MarshalEasyJSON supports easyjson.Marshaler interface
  6154. func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  6155. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss61(w, v)
  6156. }
  6157. // UnmarshalJSON supports json.Unmarshaler interface
  6158. func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error {
  6159. r := jlexer.Lexer{Data: data}
  6160. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss61(&r, v)
  6161. return r.Error()
  6162. }
  6163. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6164. func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6165. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss61(l, v)
  6166. }
  6167. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss62(in *jlexer.Lexer, out *GetMediaQueriesParams) {
  6168. isTopLevel := in.IsStart()
  6169. if in.IsNull() {
  6170. if isTopLevel {
  6171. in.Consumed()
  6172. }
  6173. in.Skip()
  6174. return
  6175. }
  6176. in.Delim('{')
  6177. for !in.IsDelim('}') {
  6178. key := in.UnsafeFieldName(false)
  6179. in.WantColon()
  6180. if in.IsNull() {
  6181. in.Skip()
  6182. in.WantComma()
  6183. continue
  6184. }
  6185. switch key {
  6186. default:
  6187. in.SkipRecursive()
  6188. }
  6189. in.WantComma()
  6190. }
  6191. in.Delim('}')
  6192. if isTopLevel {
  6193. in.Consumed()
  6194. }
  6195. }
  6196. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss62(out *jwriter.Writer, in GetMediaQueriesParams) {
  6197. out.RawByte('{')
  6198. first := true
  6199. _ = first
  6200. out.RawByte('}')
  6201. }
  6202. // MarshalJSON supports json.Marshaler interface
  6203. func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error) {
  6204. w := jwriter.Writer{}
  6205. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss62(&w, v)
  6206. return w.Buffer.BuildBytes(), w.Error
  6207. }
  6208. // MarshalEasyJSON supports easyjson.Marshaler interface
  6209. func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer) {
  6210. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss62(w, v)
  6211. }
  6212. // UnmarshalJSON supports json.Unmarshaler interface
  6213. func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error {
  6214. r := jlexer.Lexer{Data: data}
  6215. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss62(&r, v)
  6216. return r.Error()
  6217. }
  6218. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6219. func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6220. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss62(l, v)
  6221. }
  6222. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out *GetMatchedStylesForNodeReturns) {
  6223. isTopLevel := in.IsStart()
  6224. if in.IsNull() {
  6225. if isTopLevel {
  6226. in.Consumed()
  6227. }
  6228. in.Skip()
  6229. return
  6230. }
  6231. in.Delim('{')
  6232. for !in.IsDelim('}') {
  6233. key := in.UnsafeFieldName(false)
  6234. in.WantColon()
  6235. if in.IsNull() {
  6236. in.Skip()
  6237. in.WantComma()
  6238. continue
  6239. }
  6240. switch key {
  6241. case "inlineStyle":
  6242. if in.IsNull() {
  6243. in.Skip()
  6244. out.InlineStyle = nil
  6245. } else {
  6246. if out.InlineStyle == nil {
  6247. out.InlineStyle = new(Style)
  6248. }
  6249. (*out.InlineStyle).UnmarshalEasyJSON(in)
  6250. }
  6251. case "attributesStyle":
  6252. if in.IsNull() {
  6253. in.Skip()
  6254. out.AttributesStyle = nil
  6255. } else {
  6256. if out.AttributesStyle == nil {
  6257. out.AttributesStyle = new(Style)
  6258. }
  6259. (*out.AttributesStyle).UnmarshalEasyJSON(in)
  6260. }
  6261. case "matchedCSSRules":
  6262. if in.IsNull() {
  6263. in.Skip()
  6264. out.MatchedCSSRules = nil
  6265. } else {
  6266. in.Delim('[')
  6267. if out.MatchedCSSRules == nil {
  6268. if !in.IsDelim(']') {
  6269. out.MatchedCSSRules = make([]*RuleMatch, 0, 8)
  6270. } else {
  6271. out.MatchedCSSRules = []*RuleMatch{}
  6272. }
  6273. } else {
  6274. out.MatchedCSSRules = (out.MatchedCSSRules)[:0]
  6275. }
  6276. for !in.IsDelim(']') {
  6277. var v82 *RuleMatch
  6278. if in.IsNull() {
  6279. in.Skip()
  6280. v82 = nil
  6281. } else {
  6282. if v82 == nil {
  6283. v82 = new(RuleMatch)
  6284. }
  6285. (*v82).UnmarshalEasyJSON(in)
  6286. }
  6287. out.MatchedCSSRules = append(out.MatchedCSSRules, v82)
  6288. in.WantComma()
  6289. }
  6290. in.Delim(']')
  6291. }
  6292. case "pseudoElements":
  6293. if in.IsNull() {
  6294. in.Skip()
  6295. out.PseudoElements = nil
  6296. } else {
  6297. in.Delim('[')
  6298. if out.PseudoElements == nil {
  6299. if !in.IsDelim(']') {
  6300. out.PseudoElements = make([]*PseudoElementMatches, 0, 8)
  6301. } else {
  6302. out.PseudoElements = []*PseudoElementMatches{}
  6303. }
  6304. } else {
  6305. out.PseudoElements = (out.PseudoElements)[:0]
  6306. }
  6307. for !in.IsDelim(']') {
  6308. var v83 *PseudoElementMatches
  6309. if in.IsNull() {
  6310. in.Skip()
  6311. v83 = nil
  6312. } else {
  6313. if v83 == nil {
  6314. v83 = new(PseudoElementMatches)
  6315. }
  6316. (*v83).UnmarshalEasyJSON(in)
  6317. }
  6318. out.PseudoElements = append(out.PseudoElements, v83)
  6319. in.WantComma()
  6320. }
  6321. in.Delim(']')
  6322. }
  6323. case "inherited":
  6324. if in.IsNull() {
  6325. in.Skip()
  6326. out.Inherited = nil
  6327. } else {
  6328. in.Delim('[')
  6329. if out.Inherited == nil {
  6330. if !in.IsDelim(']') {
  6331. out.Inherited = make([]*InheritedStyleEntry, 0, 8)
  6332. } else {
  6333. out.Inherited = []*InheritedStyleEntry{}
  6334. }
  6335. } else {
  6336. out.Inherited = (out.Inherited)[:0]
  6337. }
  6338. for !in.IsDelim(']') {
  6339. var v84 *InheritedStyleEntry
  6340. if in.IsNull() {
  6341. in.Skip()
  6342. v84 = nil
  6343. } else {
  6344. if v84 == nil {
  6345. v84 = new(InheritedStyleEntry)
  6346. }
  6347. (*v84).UnmarshalEasyJSON(in)
  6348. }
  6349. out.Inherited = append(out.Inherited, v84)
  6350. in.WantComma()
  6351. }
  6352. in.Delim(']')
  6353. }
  6354. case "inheritedPseudoElements":
  6355. if in.IsNull() {
  6356. in.Skip()
  6357. out.InheritedPseudoElements = nil
  6358. } else {
  6359. in.Delim('[')
  6360. if out.InheritedPseudoElements == nil {
  6361. if !in.IsDelim(']') {
  6362. out.InheritedPseudoElements = make([]*InheritedPseudoElementMatches, 0, 8)
  6363. } else {
  6364. out.InheritedPseudoElements = []*InheritedPseudoElementMatches{}
  6365. }
  6366. } else {
  6367. out.InheritedPseudoElements = (out.InheritedPseudoElements)[:0]
  6368. }
  6369. for !in.IsDelim(']') {
  6370. var v85 *InheritedPseudoElementMatches
  6371. if in.IsNull() {
  6372. in.Skip()
  6373. v85 = nil
  6374. } else {
  6375. if v85 == nil {
  6376. v85 = new(InheritedPseudoElementMatches)
  6377. }
  6378. (*v85).UnmarshalEasyJSON(in)
  6379. }
  6380. out.InheritedPseudoElements = append(out.InheritedPseudoElements, v85)
  6381. in.WantComma()
  6382. }
  6383. in.Delim(']')
  6384. }
  6385. case "cssKeyframesRules":
  6386. if in.IsNull() {
  6387. in.Skip()
  6388. out.CSSKeyframesRules = nil
  6389. } else {
  6390. in.Delim('[')
  6391. if out.CSSKeyframesRules == nil {
  6392. if !in.IsDelim(']') {
  6393. out.CSSKeyframesRules = make([]*KeyframesRule, 0, 8)
  6394. } else {
  6395. out.CSSKeyframesRules = []*KeyframesRule{}
  6396. }
  6397. } else {
  6398. out.CSSKeyframesRules = (out.CSSKeyframesRules)[:0]
  6399. }
  6400. for !in.IsDelim(']') {
  6401. var v86 *KeyframesRule
  6402. if in.IsNull() {
  6403. in.Skip()
  6404. v86 = nil
  6405. } else {
  6406. if v86 == nil {
  6407. v86 = new(KeyframesRule)
  6408. }
  6409. (*v86).UnmarshalEasyJSON(in)
  6410. }
  6411. out.CSSKeyframesRules = append(out.CSSKeyframesRules, v86)
  6412. in.WantComma()
  6413. }
  6414. in.Delim(']')
  6415. }
  6416. case "cssPositionTryRules":
  6417. if in.IsNull() {
  6418. in.Skip()
  6419. out.CSSPositionTryRules = nil
  6420. } else {
  6421. in.Delim('[')
  6422. if out.CSSPositionTryRules == nil {
  6423. if !in.IsDelim(']') {
  6424. out.CSSPositionTryRules = make([]*PositionTryRule, 0, 8)
  6425. } else {
  6426. out.CSSPositionTryRules = []*PositionTryRule{}
  6427. }
  6428. } else {
  6429. out.CSSPositionTryRules = (out.CSSPositionTryRules)[:0]
  6430. }
  6431. for !in.IsDelim(']') {
  6432. var v87 *PositionTryRule
  6433. if in.IsNull() {
  6434. in.Skip()
  6435. v87 = nil
  6436. } else {
  6437. if v87 == nil {
  6438. v87 = new(PositionTryRule)
  6439. }
  6440. (*v87).UnmarshalEasyJSON(in)
  6441. }
  6442. out.CSSPositionTryRules = append(out.CSSPositionTryRules, v87)
  6443. in.WantComma()
  6444. }
  6445. in.Delim(']')
  6446. }
  6447. case "cssPropertyRules":
  6448. if in.IsNull() {
  6449. in.Skip()
  6450. out.CSSPropertyRules = nil
  6451. } else {
  6452. in.Delim('[')
  6453. if out.CSSPropertyRules == nil {
  6454. if !in.IsDelim(']') {
  6455. out.CSSPropertyRules = make([]*PropertyRule, 0, 8)
  6456. } else {
  6457. out.CSSPropertyRules = []*PropertyRule{}
  6458. }
  6459. } else {
  6460. out.CSSPropertyRules = (out.CSSPropertyRules)[:0]
  6461. }
  6462. for !in.IsDelim(']') {
  6463. var v88 *PropertyRule
  6464. if in.IsNull() {
  6465. in.Skip()
  6466. v88 = nil
  6467. } else {
  6468. if v88 == nil {
  6469. v88 = new(PropertyRule)
  6470. }
  6471. (*v88).UnmarshalEasyJSON(in)
  6472. }
  6473. out.CSSPropertyRules = append(out.CSSPropertyRules, v88)
  6474. in.WantComma()
  6475. }
  6476. in.Delim(']')
  6477. }
  6478. case "cssPropertyRegistrations":
  6479. if in.IsNull() {
  6480. in.Skip()
  6481. out.CSSPropertyRegistrations = nil
  6482. } else {
  6483. in.Delim('[')
  6484. if out.CSSPropertyRegistrations == nil {
  6485. if !in.IsDelim(']') {
  6486. out.CSSPropertyRegistrations = make([]*PropertyRegistration, 0, 8)
  6487. } else {
  6488. out.CSSPropertyRegistrations = []*PropertyRegistration{}
  6489. }
  6490. } else {
  6491. out.CSSPropertyRegistrations = (out.CSSPropertyRegistrations)[:0]
  6492. }
  6493. for !in.IsDelim(']') {
  6494. var v89 *PropertyRegistration
  6495. if in.IsNull() {
  6496. in.Skip()
  6497. v89 = nil
  6498. } else {
  6499. if v89 == nil {
  6500. v89 = new(PropertyRegistration)
  6501. }
  6502. (*v89).UnmarshalEasyJSON(in)
  6503. }
  6504. out.CSSPropertyRegistrations = append(out.CSSPropertyRegistrations, v89)
  6505. in.WantComma()
  6506. }
  6507. in.Delim(']')
  6508. }
  6509. case "cssFontPaletteValuesRule":
  6510. if in.IsNull() {
  6511. in.Skip()
  6512. out.CSSFontPaletteValuesRule = nil
  6513. } else {
  6514. if out.CSSFontPaletteValuesRule == nil {
  6515. out.CSSFontPaletteValuesRule = new(FontPaletteValuesRule)
  6516. }
  6517. (*out.CSSFontPaletteValuesRule).UnmarshalEasyJSON(in)
  6518. }
  6519. case "parentLayoutNodeId":
  6520. (out.ParentLayoutNodeID).UnmarshalEasyJSON(in)
  6521. default:
  6522. in.SkipRecursive()
  6523. }
  6524. in.WantComma()
  6525. }
  6526. in.Delim('}')
  6527. if isTopLevel {
  6528. in.Consumed()
  6529. }
  6530. }
  6531. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in GetMatchedStylesForNodeReturns) {
  6532. out.RawByte('{')
  6533. first := true
  6534. _ = first
  6535. if in.InlineStyle != nil {
  6536. const prefix string = ",\"inlineStyle\":"
  6537. first = false
  6538. out.RawString(prefix[1:])
  6539. (*in.InlineStyle).MarshalEasyJSON(out)
  6540. }
  6541. if in.AttributesStyle != nil {
  6542. const prefix string = ",\"attributesStyle\":"
  6543. if first {
  6544. first = false
  6545. out.RawString(prefix[1:])
  6546. } else {
  6547. out.RawString(prefix)
  6548. }
  6549. (*in.AttributesStyle).MarshalEasyJSON(out)
  6550. }
  6551. if len(in.MatchedCSSRules) != 0 {
  6552. const prefix string = ",\"matchedCSSRules\":"
  6553. if first {
  6554. first = false
  6555. out.RawString(prefix[1:])
  6556. } else {
  6557. out.RawString(prefix)
  6558. }
  6559. {
  6560. out.RawByte('[')
  6561. for v90, v91 := range in.MatchedCSSRules {
  6562. if v90 > 0 {
  6563. out.RawByte(',')
  6564. }
  6565. if v91 == nil {
  6566. out.RawString("null")
  6567. } else {
  6568. (*v91).MarshalEasyJSON(out)
  6569. }
  6570. }
  6571. out.RawByte(']')
  6572. }
  6573. }
  6574. if len(in.PseudoElements) != 0 {
  6575. const prefix string = ",\"pseudoElements\":"
  6576. if first {
  6577. first = false
  6578. out.RawString(prefix[1:])
  6579. } else {
  6580. out.RawString(prefix)
  6581. }
  6582. {
  6583. out.RawByte('[')
  6584. for v92, v93 := range in.PseudoElements {
  6585. if v92 > 0 {
  6586. out.RawByte(',')
  6587. }
  6588. if v93 == nil {
  6589. out.RawString("null")
  6590. } else {
  6591. (*v93).MarshalEasyJSON(out)
  6592. }
  6593. }
  6594. out.RawByte(']')
  6595. }
  6596. }
  6597. if len(in.Inherited) != 0 {
  6598. const prefix string = ",\"inherited\":"
  6599. if first {
  6600. first = false
  6601. out.RawString(prefix[1:])
  6602. } else {
  6603. out.RawString(prefix)
  6604. }
  6605. {
  6606. out.RawByte('[')
  6607. for v94, v95 := range in.Inherited {
  6608. if v94 > 0 {
  6609. out.RawByte(',')
  6610. }
  6611. if v95 == nil {
  6612. out.RawString("null")
  6613. } else {
  6614. (*v95).MarshalEasyJSON(out)
  6615. }
  6616. }
  6617. out.RawByte(']')
  6618. }
  6619. }
  6620. if len(in.InheritedPseudoElements) != 0 {
  6621. const prefix string = ",\"inheritedPseudoElements\":"
  6622. if first {
  6623. first = false
  6624. out.RawString(prefix[1:])
  6625. } else {
  6626. out.RawString(prefix)
  6627. }
  6628. {
  6629. out.RawByte('[')
  6630. for v96, v97 := range in.InheritedPseudoElements {
  6631. if v96 > 0 {
  6632. out.RawByte(',')
  6633. }
  6634. if v97 == nil {
  6635. out.RawString("null")
  6636. } else {
  6637. (*v97).MarshalEasyJSON(out)
  6638. }
  6639. }
  6640. out.RawByte(']')
  6641. }
  6642. }
  6643. if len(in.CSSKeyframesRules) != 0 {
  6644. const prefix string = ",\"cssKeyframesRules\":"
  6645. if first {
  6646. first = false
  6647. out.RawString(prefix[1:])
  6648. } else {
  6649. out.RawString(prefix)
  6650. }
  6651. {
  6652. out.RawByte('[')
  6653. for v98, v99 := range in.CSSKeyframesRules {
  6654. if v98 > 0 {
  6655. out.RawByte(',')
  6656. }
  6657. if v99 == nil {
  6658. out.RawString("null")
  6659. } else {
  6660. (*v99).MarshalEasyJSON(out)
  6661. }
  6662. }
  6663. out.RawByte(']')
  6664. }
  6665. }
  6666. if len(in.CSSPositionTryRules) != 0 {
  6667. const prefix string = ",\"cssPositionTryRules\":"
  6668. if first {
  6669. first = false
  6670. out.RawString(prefix[1:])
  6671. } else {
  6672. out.RawString(prefix)
  6673. }
  6674. {
  6675. out.RawByte('[')
  6676. for v100, v101 := range in.CSSPositionTryRules {
  6677. if v100 > 0 {
  6678. out.RawByte(',')
  6679. }
  6680. if v101 == nil {
  6681. out.RawString("null")
  6682. } else {
  6683. (*v101).MarshalEasyJSON(out)
  6684. }
  6685. }
  6686. out.RawByte(']')
  6687. }
  6688. }
  6689. if len(in.CSSPropertyRules) != 0 {
  6690. const prefix string = ",\"cssPropertyRules\":"
  6691. if first {
  6692. first = false
  6693. out.RawString(prefix[1:])
  6694. } else {
  6695. out.RawString(prefix)
  6696. }
  6697. {
  6698. out.RawByte('[')
  6699. for v102, v103 := range in.CSSPropertyRules {
  6700. if v102 > 0 {
  6701. out.RawByte(',')
  6702. }
  6703. if v103 == nil {
  6704. out.RawString("null")
  6705. } else {
  6706. (*v103).MarshalEasyJSON(out)
  6707. }
  6708. }
  6709. out.RawByte(']')
  6710. }
  6711. }
  6712. if len(in.CSSPropertyRegistrations) != 0 {
  6713. const prefix string = ",\"cssPropertyRegistrations\":"
  6714. if first {
  6715. first = false
  6716. out.RawString(prefix[1:])
  6717. } else {
  6718. out.RawString(prefix)
  6719. }
  6720. {
  6721. out.RawByte('[')
  6722. for v104, v105 := range in.CSSPropertyRegistrations {
  6723. if v104 > 0 {
  6724. out.RawByte(',')
  6725. }
  6726. if v105 == nil {
  6727. out.RawString("null")
  6728. } else {
  6729. (*v105).MarshalEasyJSON(out)
  6730. }
  6731. }
  6732. out.RawByte(']')
  6733. }
  6734. }
  6735. if in.CSSFontPaletteValuesRule != nil {
  6736. const prefix string = ",\"cssFontPaletteValuesRule\":"
  6737. if first {
  6738. first = false
  6739. out.RawString(prefix[1:])
  6740. } else {
  6741. out.RawString(prefix)
  6742. }
  6743. (*in.CSSFontPaletteValuesRule).MarshalEasyJSON(out)
  6744. }
  6745. if in.ParentLayoutNodeID != 0 {
  6746. const prefix string = ",\"parentLayoutNodeId\":"
  6747. if first {
  6748. first = false
  6749. out.RawString(prefix[1:])
  6750. } else {
  6751. out.RawString(prefix)
  6752. }
  6753. out.Int64(int64(in.ParentLayoutNodeID))
  6754. }
  6755. out.RawByte('}')
  6756. }
  6757. // MarshalJSON supports json.Marshaler interface
  6758. func (v GetMatchedStylesForNodeReturns) MarshalJSON() ([]byte, error) {
  6759. w := jwriter.Writer{}
  6760. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(&w, v)
  6761. return w.Buffer.BuildBytes(), w.Error
  6762. }
  6763. // MarshalEasyJSON supports easyjson.Marshaler interface
  6764. func (v GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  6765. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(w, v)
  6766. }
  6767. // UnmarshalJSON supports json.Unmarshaler interface
  6768. func (v *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error {
  6769. r := jlexer.Lexer{Data: data}
  6770. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(&r, v)
  6771. return r.Error()
  6772. }
  6773. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6774. func (v *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6775. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(l, v)
  6776. }
  6777. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss64(in *jlexer.Lexer, out *GetMatchedStylesForNodeParams) {
  6778. isTopLevel := in.IsStart()
  6779. if in.IsNull() {
  6780. if isTopLevel {
  6781. in.Consumed()
  6782. }
  6783. in.Skip()
  6784. return
  6785. }
  6786. in.Delim('{')
  6787. for !in.IsDelim('}') {
  6788. key := in.UnsafeFieldName(false)
  6789. in.WantColon()
  6790. if in.IsNull() {
  6791. in.Skip()
  6792. in.WantComma()
  6793. continue
  6794. }
  6795. switch key {
  6796. case "nodeId":
  6797. (out.NodeID).UnmarshalEasyJSON(in)
  6798. default:
  6799. in.SkipRecursive()
  6800. }
  6801. in.WantComma()
  6802. }
  6803. in.Delim('}')
  6804. if isTopLevel {
  6805. in.Consumed()
  6806. }
  6807. }
  6808. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss64(out *jwriter.Writer, in GetMatchedStylesForNodeParams) {
  6809. out.RawByte('{')
  6810. first := true
  6811. _ = first
  6812. {
  6813. const prefix string = ",\"nodeId\":"
  6814. out.RawString(prefix[1:])
  6815. out.Int64(int64(in.NodeID))
  6816. }
  6817. out.RawByte('}')
  6818. }
  6819. // MarshalJSON supports json.Marshaler interface
  6820. func (v GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error) {
  6821. w := jwriter.Writer{}
  6822. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss64(&w, v)
  6823. return w.Buffer.BuildBytes(), w.Error
  6824. }
  6825. // MarshalEasyJSON supports easyjson.Marshaler interface
  6826. func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  6827. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss64(w, v)
  6828. }
  6829. // UnmarshalJSON supports json.Unmarshaler interface
  6830. func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error {
  6831. r := jlexer.Lexer{Data: data}
  6832. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss64(&r, v)
  6833. return r.Error()
  6834. }
  6835. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6836. func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6837. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss64(l, v)
  6838. }
  6839. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(in *jlexer.Lexer, out *GetLocationForSelectorReturns) {
  6840. isTopLevel := in.IsStart()
  6841. if in.IsNull() {
  6842. if isTopLevel {
  6843. in.Consumed()
  6844. }
  6845. in.Skip()
  6846. return
  6847. }
  6848. in.Delim('{')
  6849. for !in.IsDelim('}') {
  6850. key := in.UnsafeFieldName(false)
  6851. in.WantColon()
  6852. if in.IsNull() {
  6853. in.Skip()
  6854. in.WantComma()
  6855. continue
  6856. }
  6857. switch key {
  6858. case "ranges":
  6859. if in.IsNull() {
  6860. in.Skip()
  6861. out.Ranges = nil
  6862. } else {
  6863. in.Delim('[')
  6864. if out.Ranges == nil {
  6865. if !in.IsDelim(']') {
  6866. out.Ranges = make([]*SourceRange, 0, 8)
  6867. } else {
  6868. out.Ranges = []*SourceRange{}
  6869. }
  6870. } else {
  6871. out.Ranges = (out.Ranges)[:0]
  6872. }
  6873. for !in.IsDelim(']') {
  6874. var v106 *SourceRange
  6875. if in.IsNull() {
  6876. in.Skip()
  6877. v106 = nil
  6878. } else {
  6879. if v106 == nil {
  6880. v106 = new(SourceRange)
  6881. }
  6882. (*v106).UnmarshalEasyJSON(in)
  6883. }
  6884. out.Ranges = append(out.Ranges, v106)
  6885. in.WantComma()
  6886. }
  6887. in.Delim(']')
  6888. }
  6889. default:
  6890. in.SkipRecursive()
  6891. }
  6892. in.WantComma()
  6893. }
  6894. in.Delim('}')
  6895. if isTopLevel {
  6896. in.Consumed()
  6897. }
  6898. }
  6899. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(out *jwriter.Writer, in GetLocationForSelectorReturns) {
  6900. out.RawByte('{')
  6901. first := true
  6902. _ = first
  6903. if len(in.Ranges) != 0 {
  6904. const prefix string = ",\"ranges\":"
  6905. first = false
  6906. out.RawString(prefix[1:])
  6907. {
  6908. out.RawByte('[')
  6909. for v107, v108 := range in.Ranges {
  6910. if v107 > 0 {
  6911. out.RawByte(',')
  6912. }
  6913. if v108 == nil {
  6914. out.RawString("null")
  6915. } else {
  6916. (*v108).MarshalEasyJSON(out)
  6917. }
  6918. }
  6919. out.RawByte(']')
  6920. }
  6921. }
  6922. out.RawByte('}')
  6923. }
  6924. // MarshalJSON supports json.Marshaler interface
  6925. func (v GetLocationForSelectorReturns) MarshalJSON() ([]byte, error) {
  6926. w := jwriter.Writer{}
  6927. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(&w, v)
  6928. return w.Buffer.BuildBytes(), w.Error
  6929. }
  6930. // MarshalEasyJSON supports easyjson.Marshaler interface
  6931. func (v GetLocationForSelectorReturns) MarshalEasyJSON(w *jwriter.Writer) {
  6932. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(w, v)
  6933. }
  6934. // UnmarshalJSON supports json.Unmarshaler interface
  6935. func (v *GetLocationForSelectorReturns) UnmarshalJSON(data []byte) error {
  6936. r := jlexer.Lexer{Data: data}
  6937. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(&r, v)
  6938. return r.Error()
  6939. }
  6940. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  6941. func (v *GetLocationForSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  6942. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(l, v)
  6943. }
  6944. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(in *jlexer.Lexer, out *GetLocationForSelectorParams) {
  6945. isTopLevel := in.IsStart()
  6946. if in.IsNull() {
  6947. if isTopLevel {
  6948. in.Consumed()
  6949. }
  6950. in.Skip()
  6951. return
  6952. }
  6953. in.Delim('{')
  6954. for !in.IsDelim('}') {
  6955. key := in.UnsafeFieldName(false)
  6956. in.WantColon()
  6957. if in.IsNull() {
  6958. in.Skip()
  6959. in.WantComma()
  6960. continue
  6961. }
  6962. switch key {
  6963. case "styleSheetId":
  6964. out.StyleSheetID = StyleSheetID(in.String())
  6965. case "selectorText":
  6966. out.SelectorText = string(in.String())
  6967. default:
  6968. in.SkipRecursive()
  6969. }
  6970. in.WantComma()
  6971. }
  6972. in.Delim('}')
  6973. if isTopLevel {
  6974. in.Consumed()
  6975. }
  6976. }
  6977. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(out *jwriter.Writer, in GetLocationForSelectorParams) {
  6978. out.RawByte('{')
  6979. first := true
  6980. _ = first
  6981. {
  6982. const prefix string = ",\"styleSheetId\":"
  6983. out.RawString(prefix[1:])
  6984. out.String(string(in.StyleSheetID))
  6985. }
  6986. {
  6987. const prefix string = ",\"selectorText\":"
  6988. out.RawString(prefix)
  6989. out.String(string(in.SelectorText))
  6990. }
  6991. out.RawByte('}')
  6992. }
  6993. // MarshalJSON supports json.Marshaler interface
  6994. func (v GetLocationForSelectorParams) MarshalJSON() ([]byte, error) {
  6995. w := jwriter.Writer{}
  6996. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(&w, v)
  6997. return w.Buffer.BuildBytes(), w.Error
  6998. }
  6999. // MarshalEasyJSON supports easyjson.Marshaler interface
  7000. func (v GetLocationForSelectorParams) MarshalEasyJSON(w *jwriter.Writer) {
  7001. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(w, v)
  7002. }
  7003. // UnmarshalJSON supports json.Unmarshaler interface
  7004. func (v *GetLocationForSelectorParams) UnmarshalJSON(data []byte) error {
  7005. r := jlexer.Lexer{Data: data}
  7006. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(&r, v)
  7007. return r.Error()
  7008. }
  7009. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7010. func (v *GetLocationForSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7011. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(l, v)
  7012. }
  7013. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(in *jlexer.Lexer, out *GetLayersForNodeReturns) {
  7014. isTopLevel := in.IsStart()
  7015. if in.IsNull() {
  7016. if isTopLevel {
  7017. in.Consumed()
  7018. }
  7019. in.Skip()
  7020. return
  7021. }
  7022. in.Delim('{')
  7023. for !in.IsDelim('}') {
  7024. key := in.UnsafeFieldName(false)
  7025. in.WantColon()
  7026. if in.IsNull() {
  7027. in.Skip()
  7028. in.WantComma()
  7029. continue
  7030. }
  7031. switch key {
  7032. case "rootLayer":
  7033. if in.IsNull() {
  7034. in.Skip()
  7035. out.RootLayer = nil
  7036. } else {
  7037. if out.RootLayer == nil {
  7038. out.RootLayer = new(LayerData)
  7039. }
  7040. (*out.RootLayer).UnmarshalEasyJSON(in)
  7041. }
  7042. default:
  7043. in.SkipRecursive()
  7044. }
  7045. in.WantComma()
  7046. }
  7047. in.Delim('}')
  7048. if isTopLevel {
  7049. in.Consumed()
  7050. }
  7051. }
  7052. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(out *jwriter.Writer, in GetLayersForNodeReturns) {
  7053. out.RawByte('{')
  7054. first := true
  7055. _ = first
  7056. if in.RootLayer != nil {
  7057. const prefix string = ",\"rootLayer\":"
  7058. first = false
  7059. out.RawString(prefix[1:])
  7060. (*in.RootLayer).MarshalEasyJSON(out)
  7061. }
  7062. out.RawByte('}')
  7063. }
  7064. // MarshalJSON supports json.Marshaler interface
  7065. func (v GetLayersForNodeReturns) MarshalJSON() ([]byte, error) {
  7066. w := jwriter.Writer{}
  7067. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(&w, v)
  7068. return w.Buffer.BuildBytes(), w.Error
  7069. }
  7070. // MarshalEasyJSON supports easyjson.Marshaler interface
  7071. func (v GetLayersForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  7072. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(w, v)
  7073. }
  7074. // UnmarshalJSON supports json.Unmarshaler interface
  7075. func (v *GetLayersForNodeReturns) UnmarshalJSON(data []byte) error {
  7076. r := jlexer.Lexer{Data: data}
  7077. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(&r, v)
  7078. return r.Error()
  7079. }
  7080. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7081. func (v *GetLayersForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7082. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(l, v)
  7083. }
  7084. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(in *jlexer.Lexer, out *GetLayersForNodeParams) {
  7085. isTopLevel := in.IsStart()
  7086. if in.IsNull() {
  7087. if isTopLevel {
  7088. in.Consumed()
  7089. }
  7090. in.Skip()
  7091. return
  7092. }
  7093. in.Delim('{')
  7094. for !in.IsDelim('}') {
  7095. key := in.UnsafeFieldName(false)
  7096. in.WantColon()
  7097. if in.IsNull() {
  7098. in.Skip()
  7099. in.WantComma()
  7100. continue
  7101. }
  7102. switch key {
  7103. case "nodeId":
  7104. (out.NodeID).UnmarshalEasyJSON(in)
  7105. default:
  7106. in.SkipRecursive()
  7107. }
  7108. in.WantComma()
  7109. }
  7110. in.Delim('}')
  7111. if isTopLevel {
  7112. in.Consumed()
  7113. }
  7114. }
  7115. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(out *jwriter.Writer, in GetLayersForNodeParams) {
  7116. out.RawByte('{')
  7117. first := true
  7118. _ = first
  7119. {
  7120. const prefix string = ",\"nodeId\":"
  7121. out.RawString(prefix[1:])
  7122. out.Int64(int64(in.NodeID))
  7123. }
  7124. out.RawByte('}')
  7125. }
  7126. // MarshalJSON supports json.Marshaler interface
  7127. func (v GetLayersForNodeParams) MarshalJSON() ([]byte, error) {
  7128. w := jwriter.Writer{}
  7129. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(&w, v)
  7130. return w.Buffer.BuildBytes(), w.Error
  7131. }
  7132. // MarshalEasyJSON supports easyjson.Marshaler interface
  7133. func (v GetLayersForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  7134. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(w, v)
  7135. }
  7136. // UnmarshalJSON supports json.Unmarshaler interface
  7137. func (v *GetLayersForNodeParams) UnmarshalJSON(data []byte) error {
  7138. r := jlexer.Lexer{Data: data}
  7139. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(&r, v)
  7140. return r.Error()
  7141. }
  7142. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7143. func (v *GetLayersForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7144. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(l, v)
  7145. }
  7146. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) {
  7147. isTopLevel := in.IsStart()
  7148. if in.IsNull() {
  7149. if isTopLevel {
  7150. in.Consumed()
  7151. }
  7152. in.Skip()
  7153. return
  7154. }
  7155. in.Delim('{')
  7156. for !in.IsDelim('}') {
  7157. key := in.UnsafeFieldName(false)
  7158. in.WantColon()
  7159. if in.IsNull() {
  7160. in.Skip()
  7161. in.WantComma()
  7162. continue
  7163. }
  7164. switch key {
  7165. case "inlineStyle":
  7166. if in.IsNull() {
  7167. in.Skip()
  7168. out.InlineStyle = nil
  7169. } else {
  7170. if out.InlineStyle == nil {
  7171. out.InlineStyle = new(Style)
  7172. }
  7173. (*out.InlineStyle).UnmarshalEasyJSON(in)
  7174. }
  7175. case "attributesStyle":
  7176. if in.IsNull() {
  7177. in.Skip()
  7178. out.AttributesStyle = nil
  7179. } else {
  7180. if out.AttributesStyle == nil {
  7181. out.AttributesStyle = new(Style)
  7182. }
  7183. (*out.AttributesStyle).UnmarshalEasyJSON(in)
  7184. }
  7185. default:
  7186. in.SkipRecursive()
  7187. }
  7188. in.WantComma()
  7189. }
  7190. in.Delim('}')
  7191. if isTopLevel {
  7192. in.Consumed()
  7193. }
  7194. }
  7195. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(out *jwriter.Writer, in GetInlineStylesForNodeReturns) {
  7196. out.RawByte('{')
  7197. first := true
  7198. _ = first
  7199. if in.InlineStyle != nil {
  7200. const prefix string = ",\"inlineStyle\":"
  7201. first = false
  7202. out.RawString(prefix[1:])
  7203. (*in.InlineStyle).MarshalEasyJSON(out)
  7204. }
  7205. if in.AttributesStyle != nil {
  7206. const prefix string = ",\"attributesStyle\":"
  7207. if first {
  7208. first = false
  7209. out.RawString(prefix[1:])
  7210. } else {
  7211. out.RawString(prefix)
  7212. }
  7213. (*in.AttributesStyle).MarshalEasyJSON(out)
  7214. }
  7215. out.RawByte('}')
  7216. }
  7217. // MarshalJSON supports json.Marshaler interface
  7218. func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error) {
  7219. w := jwriter.Writer{}
  7220. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(&w, v)
  7221. return w.Buffer.BuildBytes(), w.Error
  7222. }
  7223. // MarshalEasyJSON supports easyjson.Marshaler interface
  7224. func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  7225. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(w, v)
  7226. }
  7227. // UnmarshalJSON supports json.Unmarshaler interface
  7228. func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error {
  7229. r := jlexer.Lexer{Data: data}
  7230. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(&r, v)
  7231. return r.Error()
  7232. }
  7233. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7234. func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7235. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(l, v)
  7236. }
  7237. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) {
  7238. isTopLevel := in.IsStart()
  7239. if in.IsNull() {
  7240. if isTopLevel {
  7241. in.Consumed()
  7242. }
  7243. in.Skip()
  7244. return
  7245. }
  7246. in.Delim('{')
  7247. for !in.IsDelim('}') {
  7248. key := in.UnsafeFieldName(false)
  7249. in.WantColon()
  7250. if in.IsNull() {
  7251. in.Skip()
  7252. in.WantComma()
  7253. continue
  7254. }
  7255. switch key {
  7256. case "nodeId":
  7257. (out.NodeID).UnmarshalEasyJSON(in)
  7258. default:
  7259. in.SkipRecursive()
  7260. }
  7261. in.WantComma()
  7262. }
  7263. in.Delim('}')
  7264. if isTopLevel {
  7265. in.Consumed()
  7266. }
  7267. }
  7268. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(out *jwriter.Writer, in GetInlineStylesForNodeParams) {
  7269. out.RawByte('{')
  7270. first := true
  7271. _ = first
  7272. {
  7273. const prefix string = ",\"nodeId\":"
  7274. out.RawString(prefix[1:])
  7275. out.Int64(int64(in.NodeID))
  7276. }
  7277. out.RawByte('}')
  7278. }
  7279. // MarshalJSON supports json.Marshaler interface
  7280. func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error) {
  7281. w := jwriter.Writer{}
  7282. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(&w, v)
  7283. return w.Buffer.BuildBytes(), w.Error
  7284. }
  7285. // MarshalEasyJSON supports easyjson.Marshaler interface
  7286. func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  7287. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(w, v)
  7288. }
  7289. // UnmarshalJSON supports json.Unmarshaler interface
  7290. func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error {
  7291. r := jlexer.Lexer{Data: data}
  7292. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(&r, v)
  7293. return r.Error()
  7294. }
  7295. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7296. func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7297. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(l, v)
  7298. }
  7299. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) {
  7300. isTopLevel := in.IsStart()
  7301. if in.IsNull() {
  7302. if isTopLevel {
  7303. in.Consumed()
  7304. }
  7305. in.Skip()
  7306. return
  7307. }
  7308. in.Delim('{')
  7309. for !in.IsDelim('}') {
  7310. key := in.UnsafeFieldName(false)
  7311. in.WantColon()
  7312. if in.IsNull() {
  7313. in.Skip()
  7314. in.WantComma()
  7315. continue
  7316. }
  7317. switch key {
  7318. case "computedStyle":
  7319. if in.IsNull() {
  7320. in.Skip()
  7321. out.ComputedStyle = nil
  7322. } else {
  7323. in.Delim('[')
  7324. if out.ComputedStyle == nil {
  7325. if !in.IsDelim(']') {
  7326. out.ComputedStyle = make([]*ComputedStyleProperty, 0, 8)
  7327. } else {
  7328. out.ComputedStyle = []*ComputedStyleProperty{}
  7329. }
  7330. } else {
  7331. out.ComputedStyle = (out.ComputedStyle)[:0]
  7332. }
  7333. for !in.IsDelim(']') {
  7334. var v109 *ComputedStyleProperty
  7335. if in.IsNull() {
  7336. in.Skip()
  7337. v109 = nil
  7338. } else {
  7339. if v109 == nil {
  7340. v109 = new(ComputedStyleProperty)
  7341. }
  7342. (*v109).UnmarshalEasyJSON(in)
  7343. }
  7344. out.ComputedStyle = append(out.ComputedStyle, v109)
  7345. in.WantComma()
  7346. }
  7347. in.Delim(']')
  7348. }
  7349. default:
  7350. in.SkipRecursive()
  7351. }
  7352. in.WantComma()
  7353. }
  7354. in.Delim('}')
  7355. if isTopLevel {
  7356. in.Consumed()
  7357. }
  7358. }
  7359. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(out *jwriter.Writer, in GetComputedStyleForNodeReturns) {
  7360. out.RawByte('{')
  7361. first := true
  7362. _ = first
  7363. if len(in.ComputedStyle) != 0 {
  7364. const prefix string = ",\"computedStyle\":"
  7365. first = false
  7366. out.RawString(prefix[1:])
  7367. {
  7368. out.RawByte('[')
  7369. for v110, v111 := range in.ComputedStyle {
  7370. if v110 > 0 {
  7371. out.RawByte(',')
  7372. }
  7373. if v111 == nil {
  7374. out.RawString("null")
  7375. } else {
  7376. (*v111).MarshalEasyJSON(out)
  7377. }
  7378. }
  7379. out.RawByte(']')
  7380. }
  7381. }
  7382. out.RawByte('}')
  7383. }
  7384. // MarshalJSON supports json.Marshaler interface
  7385. func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) {
  7386. w := jwriter.Writer{}
  7387. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(&w, v)
  7388. return w.Buffer.BuildBytes(), w.Error
  7389. }
  7390. // MarshalEasyJSON supports easyjson.Marshaler interface
  7391. func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  7392. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(w, v)
  7393. }
  7394. // UnmarshalJSON supports json.Unmarshaler interface
  7395. func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error {
  7396. r := jlexer.Lexer{Data: data}
  7397. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(&r, v)
  7398. return r.Error()
  7399. }
  7400. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7401. func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7402. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(l, v)
  7403. }
  7404. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) {
  7405. isTopLevel := in.IsStart()
  7406. if in.IsNull() {
  7407. if isTopLevel {
  7408. in.Consumed()
  7409. }
  7410. in.Skip()
  7411. return
  7412. }
  7413. in.Delim('{')
  7414. for !in.IsDelim('}') {
  7415. key := in.UnsafeFieldName(false)
  7416. in.WantColon()
  7417. if in.IsNull() {
  7418. in.Skip()
  7419. in.WantComma()
  7420. continue
  7421. }
  7422. switch key {
  7423. case "nodeId":
  7424. (out.NodeID).UnmarshalEasyJSON(in)
  7425. default:
  7426. in.SkipRecursive()
  7427. }
  7428. in.WantComma()
  7429. }
  7430. in.Delim('}')
  7431. if isTopLevel {
  7432. in.Consumed()
  7433. }
  7434. }
  7435. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(out *jwriter.Writer, in GetComputedStyleForNodeParams) {
  7436. out.RawByte('{')
  7437. first := true
  7438. _ = first
  7439. {
  7440. const prefix string = ",\"nodeId\":"
  7441. out.RawString(prefix[1:])
  7442. out.Int64(int64(in.NodeID))
  7443. }
  7444. out.RawByte('}')
  7445. }
  7446. // MarshalJSON supports json.Marshaler interface
  7447. func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error) {
  7448. w := jwriter.Writer{}
  7449. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(&w, v)
  7450. return w.Buffer.BuildBytes(), w.Error
  7451. }
  7452. // MarshalEasyJSON supports easyjson.Marshaler interface
  7453. func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  7454. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(w, v)
  7455. }
  7456. // UnmarshalJSON supports json.Unmarshaler interface
  7457. func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error {
  7458. r := jlexer.Lexer{Data: data}
  7459. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(&r, v)
  7460. return r.Error()
  7461. }
  7462. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7463. func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7464. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(l, v)
  7465. }
  7466. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(in *jlexer.Lexer, out *GetBackgroundColorsReturns) {
  7467. isTopLevel := in.IsStart()
  7468. if in.IsNull() {
  7469. if isTopLevel {
  7470. in.Consumed()
  7471. }
  7472. in.Skip()
  7473. return
  7474. }
  7475. in.Delim('{')
  7476. for !in.IsDelim('}') {
  7477. key := in.UnsafeFieldName(false)
  7478. in.WantColon()
  7479. if in.IsNull() {
  7480. in.Skip()
  7481. in.WantComma()
  7482. continue
  7483. }
  7484. switch key {
  7485. case "backgroundColors":
  7486. if in.IsNull() {
  7487. in.Skip()
  7488. out.BackgroundColors = nil
  7489. } else {
  7490. in.Delim('[')
  7491. if out.BackgroundColors == nil {
  7492. if !in.IsDelim(']') {
  7493. out.BackgroundColors = make([]string, 0, 4)
  7494. } else {
  7495. out.BackgroundColors = []string{}
  7496. }
  7497. } else {
  7498. out.BackgroundColors = (out.BackgroundColors)[:0]
  7499. }
  7500. for !in.IsDelim(']') {
  7501. var v112 string
  7502. v112 = string(in.String())
  7503. out.BackgroundColors = append(out.BackgroundColors, v112)
  7504. in.WantComma()
  7505. }
  7506. in.Delim(']')
  7507. }
  7508. case "computedFontSize":
  7509. out.ComputedFontSize = string(in.String())
  7510. case "computedFontWeight":
  7511. out.ComputedFontWeight = string(in.String())
  7512. default:
  7513. in.SkipRecursive()
  7514. }
  7515. in.WantComma()
  7516. }
  7517. in.Delim('}')
  7518. if isTopLevel {
  7519. in.Consumed()
  7520. }
  7521. }
  7522. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(out *jwriter.Writer, in GetBackgroundColorsReturns) {
  7523. out.RawByte('{')
  7524. first := true
  7525. _ = first
  7526. if len(in.BackgroundColors) != 0 {
  7527. const prefix string = ",\"backgroundColors\":"
  7528. first = false
  7529. out.RawString(prefix[1:])
  7530. {
  7531. out.RawByte('[')
  7532. for v113, v114 := range in.BackgroundColors {
  7533. if v113 > 0 {
  7534. out.RawByte(',')
  7535. }
  7536. out.String(string(v114))
  7537. }
  7538. out.RawByte(']')
  7539. }
  7540. }
  7541. if in.ComputedFontSize != "" {
  7542. const prefix string = ",\"computedFontSize\":"
  7543. if first {
  7544. first = false
  7545. out.RawString(prefix[1:])
  7546. } else {
  7547. out.RawString(prefix)
  7548. }
  7549. out.String(string(in.ComputedFontSize))
  7550. }
  7551. if in.ComputedFontWeight != "" {
  7552. const prefix string = ",\"computedFontWeight\":"
  7553. if first {
  7554. first = false
  7555. out.RawString(prefix[1:])
  7556. } else {
  7557. out.RawString(prefix)
  7558. }
  7559. out.String(string(in.ComputedFontWeight))
  7560. }
  7561. out.RawByte('}')
  7562. }
  7563. // MarshalJSON supports json.Marshaler interface
  7564. func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error) {
  7565. w := jwriter.Writer{}
  7566. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(&w, v)
  7567. return w.Buffer.BuildBytes(), w.Error
  7568. }
  7569. // MarshalEasyJSON supports easyjson.Marshaler interface
  7570. func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  7571. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(w, v)
  7572. }
  7573. // UnmarshalJSON supports json.Unmarshaler interface
  7574. func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error {
  7575. r := jlexer.Lexer{Data: data}
  7576. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(&r, v)
  7577. return r.Error()
  7578. }
  7579. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7580. func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7581. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(l, v)
  7582. }
  7583. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(in *jlexer.Lexer, out *GetBackgroundColorsParams) {
  7584. isTopLevel := in.IsStart()
  7585. if in.IsNull() {
  7586. if isTopLevel {
  7587. in.Consumed()
  7588. }
  7589. in.Skip()
  7590. return
  7591. }
  7592. in.Delim('{')
  7593. for !in.IsDelim('}') {
  7594. key := in.UnsafeFieldName(false)
  7595. in.WantColon()
  7596. if in.IsNull() {
  7597. in.Skip()
  7598. in.WantComma()
  7599. continue
  7600. }
  7601. switch key {
  7602. case "nodeId":
  7603. (out.NodeID).UnmarshalEasyJSON(in)
  7604. default:
  7605. in.SkipRecursive()
  7606. }
  7607. in.WantComma()
  7608. }
  7609. in.Delim('}')
  7610. if isTopLevel {
  7611. in.Consumed()
  7612. }
  7613. }
  7614. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(out *jwriter.Writer, in GetBackgroundColorsParams) {
  7615. out.RawByte('{')
  7616. first := true
  7617. _ = first
  7618. {
  7619. const prefix string = ",\"nodeId\":"
  7620. out.RawString(prefix[1:])
  7621. out.Int64(int64(in.NodeID))
  7622. }
  7623. out.RawByte('}')
  7624. }
  7625. // MarshalJSON supports json.Marshaler interface
  7626. func (v GetBackgroundColorsParams) MarshalJSON() ([]byte, error) {
  7627. w := jwriter.Writer{}
  7628. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(&w, v)
  7629. return w.Buffer.BuildBytes(), w.Error
  7630. }
  7631. // MarshalEasyJSON supports easyjson.Marshaler interface
  7632. func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) {
  7633. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(w, v)
  7634. }
  7635. // UnmarshalJSON supports json.Unmarshaler interface
  7636. func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error {
  7637. r := jlexer.Lexer{Data: data}
  7638. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(&r, v)
  7639. return r.Error()
  7640. }
  7641. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7642. func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7643. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(l, v)
  7644. }
  7645. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(in *jlexer.Lexer, out *ForcePseudoStateParams) {
  7646. isTopLevel := in.IsStart()
  7647. if in.IsNull() {
  7648. if isTopLevel {
  7649. in.Consumed()
  7650. }
  7651. in.Skip()
  7652. return
  7653. }
  7654. in.Delim('{')
  7655. for !in.IsDelim('}') {
  7656. key := in.UnsafeFieldName(false)
  7657. in.WantColon()
  7658. if in.IsNull() {
  7659. in.Skip()
  7660. in.WantComma()
  7661. continue
  7662. }
  7663. switch key {
  7664. case "nodeId":
  7665. (out.NodeID).UnmarshalEasyJSON(in)
  7666. case "forcedPseudoClasses":
  7667. if in.IsNull() {
  7668. in.Skip()
  7669. out.ForcedPseudoClasses = nil
  7670. } else {
  7671. in.Delim('[')
  7672. if out.ForcedPseudoClasses == nil {
  7673. if !in.IsDelim(']') {
  7674. out.ForcedPseudoClasses = make([]string, 0, 4)
  7675. } else {
  7676. out.ForcedPseudoClasses = []string{}
  7677. }
  7678. } else {
  7679. out.ForcedPseudoClasses = (out.ForcedPseudoClasses)[:0]
  7680. }
  7681. for !in.IsDelim(']') {
  7682. var v115 string
  7683. v115 = string(in.String())
  7684. out.ForcedPseudoClasses = append(out.ForcedPseudoClasses, v115)
  7685. in.WantComma()
  7686. }
  7687. in.Delim(']')
  7688. }
  7689. default:
  7690. in.SkipRecursive()
  7691. }
  7692. in.WantComma()
  7693. }
  7694. in.Delim('}')
  7695. if isTopLevel {
  7696. in.Consumed()
  7697. }
  7698. }
  7699. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(out *jwriter.Writer, in ForcePseudoStateParams) {
  7700. out.RawByte('{')
  7701. first := true
  7702. _ = first
  7703. {
  7704. const prefix string = ",\"nodeId\":"
  7705. out.RawString(prefix[1:])
  7706. out.Int64(int64(in.NodeID))
  7707. }
  7708. {
  7709. const prefix string = ",\"forcedPseudoClasses\":"
  7710. out.RawString(prefix)
  7711. if in.ForcedPseudoClasses == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  7712. out.RawString("null")
  7713. } else {
  7714. out.RawByte('[')
  7715. for v116, v117 := range in.ForcedPseudoClasses {
  7716. if v116 > 0 {
  7717. out.RawByte(',')
  7718. }
  7719. out.String(string(v117))
  7720. }
  7721. out.RawByte(']')
  7722. }
  7723. }
  7724. out.RawByte('}')
  7725. }
  7726. // MarshalJSON supports json.Marshaler interface
  7727. func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error) {
  7728. w := jwriter.Writer{}
  7729. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(&w, v)
  7730. return w.Buffer.BuildBytes(), w.Error
  7731. }
  7732. // MarshalEasyJSON supports easyjson.Marshaler interface
  7733. func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) {
  7734. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(w, v)
  7735. }
  7736. // UnmarshalJSON supports json.Unmarshaler interface
  7737. func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error {
  7738. r := jlexer.Lexer{Data: data}
  7739. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(&r, v)
  7740. return r.Error()
  7741. }
  7742. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7743. func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7744. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(l, v)
  7745. }
  7746. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(in *jlexer.Lexer, out *FontVariationAxis) {
  7747. isTopLevel := in.IsStart()
  7748. if in.IsNull() {
  7749. if isTopLevel {
  7750. in.Consumed()
  7751. }
  7752. in.Skip()
  7753. return
  7754. }
  7755. in.Delim('{')
  7756. for !in.IsDelim('}') {
  7757. key := in.UnsafeFieldName(false)
  7758. in.WantColon()
  7759. if in.IsNull() {
  7760. in.Skip()
  7761. in.WantComma()
  7762. continue
  7763. }
  7764. switch key {
  7765. case "tag":
  7766. out.Tag = string(in.String())
  7767. case "name":
  7768. out.Name = string(in.String())
  7769. case "minValue":
  7770. out.MinValue = float64(in.Float64())
  7771. case "maxValue":
  7772. out.MaxValue = float64(in.Float64())
  7773. case "defaultValue":
  7774. out.DefaultValue = float64(in.Float64())
  7775. default:
  7776. in.SkipRecursive()
  7777. }
  7778. in.WantComma()
  7779. }
  7780. in.Delim('}')
  7781. if isTopLevel {
  7782. in.Consumed()
  7783. }
  7784. }
  7785. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(out *jwriter.Writer, in FontVariationAxis) {
  7786. out.RawByte('{')
  7787. first := true
  7788. _ = first
  7789. {
  7790. const prefix string = ",\"tag\":"
  7791. out.RawString(prefix[1:])
  7792. out.String(string(in.Tag))
  7793. }
  7794. {
  7795. const prefix string = ",\"name\":"
  7796. out.RawString(prefix)
  7797. out.String(string(in.Name))
  7798. }
  7799. {
  7800. const prefix string = ",\"minValue\":"
  7801. out.RawString(prefix)
  7802. out.Float64(float64(in.MinValue))
  7803. }
  7804. {
  7805. const prefix string = ",\"maxValue\":"
  7806. out.RawString(prefix)
  7807. out.Float64(float64(in.MaxValue))
  7808. }
  7809. {
  7810. const prefix string = ",\"defaultValue\":"
  7811. out.RawString(prefix)
  7812. out.Float64(float64(in.DefaultValue))
  7813. }
  7814. out.RawByte('}')
  7815. }
  7816. // MarshalJSON supports json.Marshaler interface
  7817. func (v FontVariationAxis) MarshalJSON() ([]byte, error) {
  7818. w := jwriter.Writer{}
  7819. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(&w, v)
  7820. return w.Buffer.BuildBytes(), w.Error
  7821. }
  7822. // MarshalEasyJSON supports easyjson.Marshaler interface
  7823. func (v FontVariationAxis) MarshalEasyJSON(w *jwriter.Writer) {
  7824. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(w, v)
  7825. }
  7826. // UnmarshalJSON supports json.Unmarshaler interface
  7827. func (v *FontVariationAxis) UnmarshalJSON(data []byte) error {
  7828. r := jlexer.Lexer{Data: data}
  7829. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(&r, v)
  7830. return r.Error()
  7831. }
  7832. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7833. func (v *FontVariationAxis) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7834. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(l, v)
  7835. }
  7836. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(in *jlexer.Lexer, out *FontPaletteValuesRule) {
  7837. isTopLevel := in.IsStart()
  7838. if in.IsNull() {
  7839. if isTopLevel {
  7840. in.Consumed()
  7841. }
  7842. in.Skip()
  7843. return
  7844. }
  7845. in.Delim('{')
  7846. for !in.IsDelim('}') {
  7847. key := in.UnsafeFieldName(false)
  7848. in.WantColon()
  7849. if in.IsNull() {
  7850. in.Skip()
  7851. in.WantComma()
  7852. continue
  7853. }
  7854. switch key {
  7855. case "styleSheetId":
  7856. out.StyleSheetID = StyleSheetID(in.String())
  7857. case "origin":
  7858. (out.Origin).UnmarshalEasyJSON(in)
  7859. case "fontPaletteName":
  7860. if in.IsNull() {
  7861. in.Skip()
  7862. out.FontPaletteName = nil
  7863. } else {
  7864. if out.FontPaletteName == nil {
  7865. out.FontPaletteName = new(Value)
  7866. }
  7867. (*out.FontPaletteName).UnmarshalEasyJSON(in)
  7868. }
  7869. case "style":
  7870. if in.IsNull() {
  7871. in.Skip()
  7872. out.Style = nil
  7873. } else {
  7874. if out.Style == nil {
  7875. out.Style = new(Style)
  7876. }
  7877. (*out.Style).UnmarshalEasyJSON(in)
  7878. }
  7879. default:
  7880. in.SkipRecursive()
  7881. }
  7882. in.WantComma()
  7883. }
  7884. in.Delim('}')
  7885. if isTopLevel {
  7886. in.Consumed()
  7887. }
  7888. }
  7889. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(out *jwriter.Writer, in FontPaletteValuesRule) {
  7890. out.RawByte('{')
  7891. first := true
  7892. _ = first
  7893. if in.StyleSheetID != "" {
  7894. const prefix string = ",\"styleSheetId\":"
  7895. first = false
  7896. out.RawString(prefix[1:])
  7897. out.String(string(in.StyleSheetID))
  7898. }
  7899. {
  7900. const prefix string = ",\"origin\":"
  7901. if first {
  7902. first = false
  7903. out.RawString(prefix[1:])
  7904. } else {
  7905. out.RawString(prefix)
  7906. }
  7907. (in.Origin).MarshalEasyJSON(out)
  7908. }
  7909. {
  7910. const prefix string = ",\"fontPaletteName\":"
  7911. out.RawString(prefix)
  7912. if in.FontPaletteName == nil {
  7913. out.RawString("null")
  7914. } else {
  7915. (*in.FontPaletteName).MarshalEasyJSON(out)
  7916. }
  7917. }
  7918. {
  7919. const prefix string = ",\"style\":"
  7920. out.RawString(prefix)
  7921. if in.Style == nil {
  7922. out.RawString("null")
  7923. } else {
  7924. (*in.Style).MarshalEasyJSON(out)
  7925. }
  7926. }
  7927. out.RawByte('}')
  7928. }
  7929. // MarshalJSON supports json.Marshaler interface
  7930. func (v FontPaletteValuesRule) MarshalJSON() ([]byte, error) {
  7931. w := jwriter.Writer{}
  7932. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(&w, v)
  7933. return w.Buffer.BuildBytes(), w.Error
  7934. }
  7935. // MarshalEasyJSON supports easyjson.Marshaler interface
  7936. func (v FontPaletteValuesRule) MarshalEasyJSON(w *jwriter.Writer) {
  7937. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(w, v)
  7938. }
  7939. // UnmarshalJSON supports json.Unmarshaler interface
  7940. func (v *FontPaletteValuesRule) UnmarshalJSON(data []byte) error {
  7941. r := jlexer.Lexer{Data: data}
  7942. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(&r, v)
  7943. return r.Error()
  7944. }
  7945. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  7946. func (v *FontPaletteValuesRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
  7947. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(l, v)
  7948. }
  7949. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(in *jlexer.Lexer, out *FontFace) {
  7950. isTopLevel := in.IsStart()
  7951. if in.IsNull() {
  7952. if isTopLevel {
  7953. in.Consumed()
  7954. }
  7955. in.Skip()
  7956. return
  7957. }
  7958. in.Delim('{')
  7959. for !in.IsDelim('}') {
  7960. key := in.UnsafeFieldName(false)
  7961. in.WantColon()
  7962. if in.IsNull() {
  7963. in.Skip()
  7964. in.WantComma()
  7965. continue
  7966. }
  7967. switch key {
  7968. case "fontFamily":
  7969. out.FontFamily = string(in.String())
  7970. case "fontStyle":
  7971. out.FontStyle = string(in.String())
  7972. case "fontVariant":
  7973. out.FontVariant = string(in.String())
  7974. case "fontWeight":
  7975. out.FontWeight = string(in.String())
  7976. case "fontStretch":
  7977. out.FontStretch = string(in.String())
  7978. case "fontDisplay":
  7979. out.FontDisplay = string(in.String())
  7980. case "unicodeRange":
  7981. out.UnicodeRange = string(in.String())
  7982. case "src":
  7983. out.Src = string(in.String())
  7984. case "platformFontFamily":
  7985. out.PlatformFontFamily = string(in.String())
  7986. case "fontVariationAxes":
  7987. if in.IsNull() {
  7988. in.Skip()
  7989. out.FontVariationAxes = nil
  7990. } else {
  7991. in.Delim('[')
  7992. if out.FontVariationAxes == nil {
  7993. if !in.IsDelim(']') {
  7994. out.FontVariationAxes = make([]*FontVariationAxis, 0, 8)
  7995. } else {
  7996. out.FontVariationAxes = []*FontVariationAxis{}
  7997. }
  7998. } else {
  7999. out.FontVariationAxes = (out.FontVariationAxes)[:0]
  8000. }
  8001. for !in.IsDelim(']') {
  8002. var v118 *FontVariationAxis
  8003. if in.IsNull() {
  8004. in.Skip()
  8005. v118 = nil
  8006. } else {
  8007. if v118 == nil {
  8008. v118 = new(FontVariationAxis)
  8009. }
  8010. (*v118).UnmarshalEasyJSON(in)
  8011. }
  8012. out.FontVariationAxes = append(out.FontVariationAxes, v118)
  8013. in.WantComma()
  8014. }
  8015. in.Delim(']')
  8016. }
  8017. default:
  8018. in.SkipRecursive()
  8019. }
  8020. in.WantComma()
  8021. }
  8022. in.Delim('}')
  8023. if isTopLevel {
  8024. in.Consumed()
  8025. }
  8026. }
  8027. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(out *jwriter.Writer, in FontFace) {
  8028. out.RawByte('{')
  8029. first := true
  8030. _ = first
  8031. {
  8032. const prefix string = ",\"fontFamily\":"
  8033. out.RawString(prefix[1:])
  8034. out.String(string(in.FontFamily))
  8035. }
  8036. {
  8037. const prefix string = ",\"fontStyle\":"
  8038. out.RawString(prefix)
  8039. out.String(string(in.FontStyle))
  8040. }
  8041. {
  8042. const prefix string = ",\"fontVariant\":"
  8043. out.RawString(prefix)
  8044. out.String(string(in.FontVariant))
  8045. }
  8046. {
  8047. const prefix string = ",\"fontWeight\":"
  8048. out.RawString(prefix)
  8049. out.String(string(in.FontWeight))
  8050. }
  8051. {
  8052. const prefix string = ",\"fontStretch\":"
  8053. out.RawString(prefix)
  8054. out.String(string(in.FontStretch))
  8055. }
  8056. {
  8057. const prefix string = ",\"fontDisplay\":"
  8058. out.RawString(prefix)
  8059. out.String(string(in.FontDisplay))
  8060. }
  8061. {
  8062. const prefix string = ",\"unicodeRange\":"
  8063. out.RawString(prefix)
  8064. out.String(string(in.UnicodeRange))
  8065. }
  8066. {
  8067. const prefix string = ",\"src\":"
  8068. out.RawString(prefix)
  8069. out.String(string(in.Src))
  8070. }
  8071. {
  8072. const prefix string = ",\"platformFontFamily\":"
  8073. out.RawString(prefix)
  8074. out.String(string(in.PlatformFontFamily))
  8075. }
  8076. if len(in.FontVariationAxes) != 0 {
  8077. const prefix string = ",\"fontVariationAxes\":"
  8078. out.RawString(prefix)
  8079. {
  8080. out.RawByte('[')
  8081. for v119, v120 := range in.FontVariationAxes {
  8082. if v119 > 0 {
  8083. out.RawByte(',')
  8084. }
  8085. if v120 == nil {
  8086. out.RawString("null")
  8087. } else {
  8088. (*v120).MarshalEasyJSON(out)
  8089. }
  8090. }
  8091. out.RawByte(']')
  8092. }
  8093. }
  8094. out.RawByte('}')
  8095. }
  8096. // MarshalJSON supports json.Marshaler interface
  8097. func (v FontFace) MarshalJSON() ([]byte, error) {
  8098. w := jwriter.Writer{}
  8099. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(&w, v)
  8100. return w.Buffer.BuildBytes(), w.Error
  8101. }
  8102. // MarshalEasyJSON supports easyjson.Marshaler interface
  8103. func (v FontFace) MarshalEasyJSON(w *jwriter.Writer) {
  8104. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(w, v)
  8105. }
  8106. // UnmarshalJSON supports json.Unmarshaler interface
  8107. func (v *FontFace) UnmarshalJSON(data []byte) error {
  8108. r := jlexer.Lexer{Data: data}
  8109. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(&r, v)
  8110. return r.Error()
  8111. }
  8112. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8113. func (v *FontFace) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8114. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(l, v)
  8115. }
  8116. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(in *jlexer.Lexer, out *EventStyleSheetRemoved) {
  8117. isTopLevel := in.IsStart()
  8118. if in.IsNull() {
  8119. if isTopLevel {
  8120. in.Consumed()
  8121. }
  8122. in.Skip()
  8123. return
  8124. }
  8125. in.Delim('{')
  8126. for !in.IsDelim('}') {
  8127. key := in.UnsafeFieldName(false)
  8128. in.WantColon()
  8129. if in.IsNull() {
  8130. in.Skip()
  8131. in.WantComma()
  8132. continue
  8133. }
  8134. switch key {
  8135. case "styleSheetId":
  8136. out.StyleSheetID = StyleSheetID(in.String())
  8137. default:
  8138. in.SkipRecursive()
  8139. }
  8140. in.WantComma()
  8141. }
  8142. in.Delim('}')
  8143. if isTopLevel {
  8144. in.Consumed()
  8145. }
  8146. }
  8147. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(out *jwriter.Writer, in EventStyleSheetRemoved) {
  8148. out.RawByte('{')
  8149. first := true
  8150. _ = first
  8151. {
  8152. const prefix string = ",\"styleSheetId\":"
  8153. out.RawString(prefix[1:])
  8154. out.String(string(in.StyleSheetID))
  8155. }
  8156. out.RawByte('}')
  8157. }
  8158. // MarshalJSON supports json.Marshaler interface
  8159. func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error) {
  8160. w := jwriter.Writer{}
  8161. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(&w, v)
  8162. return w.Buffer.BuildBytes(), w.Error
  8163. }
  8164. // MarshalEasyJSON supports easyjson.Marshaler interface
  8165. func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) {
  8166. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(w, v)
  8167. }
  8168. // UnmarshalJSON supports json.Unmarshaler interface
  8169. func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error {
  8170. r := jlexer.Lexer{Data: data}
  8171. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(&r, v)
  8172. return r.Error()
  8173. }
  8174. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8175. func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8176. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(l, v)
  8177. }
  8178. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(in *jlexer.Lexer, out *EventStyleSheetChanged) {
  8179. isTopLevel := in.IsStart()
  8180. if in.IsNull() {
  8181. if isTopLevel {
  8182. in.Consumed()
  8183. }
  8184. in.Skip()
  8185. return
  8186. }
  8187. in.Delim('{')
  8188. for !in.IsDelim('}') {
  8189. key := in.UnsafeFieldName(false)
  8190. in.WantColon()
  8191. if in.IsNull() {
  8192. in.Skip()
  8193. in.WantComma()
  8194. continue
  8195. }
  8196. switch key {
  8197. case "styleSheetId":
  8198. out.StyleSheetID = StyleSheetID(in.String())
  8199. default:
  8200. in.SkipRecursive()
  8201. }
  8202. in.WantComma()
  8203. }
  8204. in.Delim('}')
  8205. if isTopLevel {
  8206. in.Consumed()
  8207. }
  8208. }
  8209. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(out *jwriter.Writer, in EventStyleSheetChanged) {
  8210. out.RawByte('{')
  8211. first := true
  8212. _ = first
  8213. {
  8214. const prefix string = ",\"styleSheetId\":"
  8215. out.RawString(prefix[1:])
  8216. out.String(string(in.StyleSheetID))
  8217. }
  8218. out.RawByte('}')
  8219. }
  8220. // MarshalJSON supports json.Marshaler interface
  8221. func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error) {
  8222. w := jwriter.Writer{}
  8223. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(&w, v)
  8224. return w.Buffer.BuildBytes(), w.Error
  8225. }
  8226. // MarshalEasyJSON supports easyjson.Marshaler interface
  8227. func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) {
  8228. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(w, v)
  8229. }
  8230. // UnmarshalJSON supports json.Unmarshaler interface
  8231. func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error {
  8232. r := jlexer.Lexer{Data: data}
  8233. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(&r, v)
  8234. return r.Error()
  8235. }
  8236. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8237. func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8238. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(l, v)
  8239. }
  8240. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(in *jlexer.Lexer, out *EventStyleSheetAdded) {
  8241. isTopLevel := in.IsStart()
  8242. if in.IsNull() {
  8243. if isTopLevel {
  8244. in.Consumed()
  8245. }
  8246. in.Skip()
  8247. return
  8248. }
  8249. in.Delim('{')
  8250. for !in.IsDelim('}') {
  8251. key := in.UnsafeFieldName(false)
  8252. in.WantColon()
  8253. if in.IsNull() {
  8254. in.Skip()
  8255. in.WantComma()
  8256. continue
  8257. }
  8258. switch key {
  8259. case "header":
  8260. if in.IsNull() {
  8261. in.Skip()
  8262. out.Header = nil
  8263. } else {
  8264. if out.Header == nil {
  8265. out.Header = new(StyleSheetHeader)
  8266. }
  8267. (*out.Header).UnmarshalEasyJSON(in)
  8268. }
  8269. default:
  8270. in.SkipRecursive()
  8271. }
  8272. in.WantComma()
  8273. }
  8274. in.Delim('}')
  8275. if isTopLevel {
  8276. in.Consumed()
  8277. }
  8278. }
  8279. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(out *jwriter.Writer, in EventStyleSheetAdded) {
  8280. out.RawByte('{')
  8281. first := true
  8282. _ = first
  8283. {
  8284. const prefix string = ",\"header\":"
  8285. out.RawString(prefix[1:])
  8286. if in.Header == nil {
  8287. out.RawString("null")
  8288. } else {
  8289. (*in.Header).MarshalEasyJSON(out)
  8290. }
  8291. }
  8292. out.RawByte('}')
  8293. }
  8294. // MarshalJSON supports json.Marshaler interface
  8295. func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error) {
  8296. w := jwriter.Writer{}
  8297. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(&w, v)
  8298. return w.Buffer.BuildBytes(), w.Error
  8299. }
  8300. // MarshalEasyJSON supports easyjson.Marshaler interface
  8301. func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) {
  8302. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(w, v)
  8303. }
  8304. // UnmarshalJSON supports json.Unmarshaler interface
  8305. func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error {
  8306. r := jlexer.Lexer{Data: data}
  8307. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(&r, v)
  8308. return r.Error()
  8309. }
  8310. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8311. func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8312. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(l, v)
  8313. }
  8314. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(in *jlexer.Lexer, out *EventMediaQueryResultChanged) {
  8315. isTopLevel := in.IsStart()
  8316. if in.IsNull() {
  8317. if isTopLevel {
  8318. in.Consumed()
  8319. }
  8320. in.Skip()
  8321. return
  8322. }
  8323. in.Delim('{')
  8324. for !in.IsDelim('}') {
  8325. key := in.UnsafeFieldName(false)
  8326. in.WantColon()
  8327. if in.IsNull() {
  8328. in.Skip()
  8329. in.WantComma()
  8330. continue
  8331. }
  8332. switch key {
  8333. default:
  8334. in.SkipRecursive()
  8335. }
  8336. in.WantComma()
  8337. }
  8338. in.Delim('}')
  8339. if isTopLevel {
  8340. in.Consumed()
  8341. }
  8342. }
  8343. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(out *jwriter.Writer, in EventMediaQueryResultChanged) {
  8344. out.RawByte('{')
  8345. first := true
  8346. _ = first
  8347. out.RawByte('}')
  8348. }
  8349. // MarshalJSON supports json.Marshaler interface
  8350. func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error) {
  8351. w := jwriter.Writer{}
  8352. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(&w, v)
  8353. return w.Buffer.BuildBytes(), w.Error
  8354. }
  8355. // MarshalEasyJSON supports easyjson.Marshaler interface
  8356. func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) {
  8357. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(w, v)
  8358. }
  8359. // UnmarshalJSON supports json.Unmarshaler interface
  8360. func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error {
  8361. r := jlexer.Lexer{Data: data}
  8362. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(&r, v)
  8363. return r.Error()
  8364. }
  8365. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8366. func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8367. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(l, v)
  8368. }
  8369. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(in *jlexer.Lexer, out *EventFontsUpdated) {
  8370. isTopLevel := in.IsStart()
  8371. if in.IsNull() {
  8372. if isTopLevel {
  8373. in.Consumed()
  8374. }
  8375. in.Skip()
  8376. return
  8377. }
  8378. in.Delim('{')
  8379. for !in.IsDelim('}') {
  8380. key := in.UnsafeFieldName(false)
  8381. in.WantColon()
  8382. if in.IsNull() {
  8383. in.Skip()
  8384. in.WantComma()
  8385. continue
  8386. }
  8387. switch key {
  8388. case "font":
  8389. if in.IsNull() {
  8390. in.Skip()
  8391. out.Font = nil
  8392. } else {
  8393. if out.Font == nil {
  8394. out.Font = new(FontFace)
  8395. }
  8396. (*out.Font).UnmarshalEasyJSON(in)
  8397. }
  8398. default:
  8399. in.SkipRecursive()
  8400. }
  8401. in.WantComma()
  8402. }
  8403. in.Delim('}')
  8404. if isTopLevel {
  8405. in.Consumed()
  8406. }
  8407. }
  8408. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(out *jwriter.Writer, in EventFontsUpdated) {
  8409. out.RawByte('{')
  8410. first := true
  8411. _ = first
  8412. if in.Font != nil {
  8413. const prefix string = ",\"font\":"
  8414. first = false
  8415. out.RawString(prefix[1:])
  8416. (*in.Font).MarshalEasyJSON(out)
  8417. }
  8418. out.RawByte('}')
  8419. }
  8420. // MarshalJSON supports json.Marshaler interface
  8421. func (v EventFontsUpdated) MarshalJSON() ([]byte, error) {
  8422. w := jwriter.Writer{}
  8423. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(&w, v)
  8424. return w.Buffer.BuildBytes(), w.Error
  8425. }
  8426. // MarshalEasyJSON supports easyjson.Marshaler interface
  8427. func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  8428. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(w, v)
  8429. }
  8430. // UnmarshalJSON supports json.Unmarshaler interface
  8431. func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error {
  8432. r := jlexer.Lexer{Data: data}
  8433. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(&r, v)
  8434. return r.Error()
  8435. }
  8436. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8437. func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8438. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(l, v)
  8439. }
  8440. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(in *jlexer.Lexer, out *EnableParams) {
  8441. isTopLevel := in.IsStart()
  8442. if in.IsNull() {
  8443. if isTopLevel {
  8444. in.Consumed()
  8445. }
  8446. in.Skip()
  8447. return
  8448. }
  8449. in.Delim('{')
  8450. for !in.IsDelim('}') {
  8451. key := in.UnsafeFieldName(false)
  8452. in.WantColon()
  8453. if in.IsNull() {
  8454. in.Skip()
  8455. in.WantComma()
  8456. continue
  8457. }
  8458. switch key {
  8459. default:
  8460. in.SkipRecursive()
  8461. }
  8462. in.WantComma()
  8463. }
  8464. in.Delim('}')
  8465. if isTopLevel {
  8466. in.Consumed()
  8467. }
  8468. }
  8469. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(out *jwriter.Writer, in EnableParams) {
  8470. out.RawByte('{')
  8471. first := true
  8472. _ = first
  8473. out.RawByte('}')
  8474. }
  8475. // MarshalJSON supports json.Marshaler interface
  8476. func (v EnableParams) MarshalJSON() ([]byte, error) {
  8477. w := jwriter.Writer{}
  8478. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(&w, v)
  8479. return w.Buffer.BuildBytes(), w.Error
  8480. }
  8481. // MarshalEasyJSON supports easyjson.Marshaler interface
  8482. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  8483. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(w, v)
  8484. }
  8485. // UnmarshalJSON supports json.Unmarshaler interface
  8486. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  8487. r := jlexer.Lexer{Data: data}
  8488. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(&r, v)
  8489. return r.Error()
  8490. }
  8491. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8492. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8493. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(l, v)
  8494. }
  8495. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(in *jlexer.Lexer, out *DisableParams) {
  8496. isTopLevel := in.IsStart()
  8497. if in.IsNull() {
  8498. if isTopLevel {
  8499. in.Consumed()
  8500. }
  8501. in.Skip()
  8502. return
  8503. }
  8504. in.Delim('{')
  8505. for !in.IsDelim('}') {
  8506. key := in.UnsafeFieldName(false)
  8507. in.WantColon()
  8508. if in.IsNull() {
  8509. in.Skip()
  8510. in.WantComma()
  8511. continue
  8512. }
  8513. switch key {
  8514. default:
  8515. in.SkipRecursive()
  8516. }
  8517. in.WantComma()
  8518. }
  8519. in.Delim('}')
  8520. if isTopLevel {
  8521. in.Consumed()
  8522. }
  8523. }
  8524. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(out *jwriter.Writer, in DisableParams) {
  8525. out.RawByte('{')
  8526. first := true
  8527. _ = first
  8528. out.RawByte('}')
  8529. }
  8530. // MarshalJSON supports json.Marshaler interface
  8531. func (v DisableParams) MarshalJSON() ([]byte, error) {
  8532. w := jwriter.Writer{}
  8533. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(&w, v)
  8534. return w.Buffer.BuildBytes(), w.Error
  8535. }
  8536. // MarshalEasyJSON supports easyjson.Marshaler interface
  8537. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  8538. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(w, v)
  8539. }
  8540. // UnmarshalJSON supports json.Unmarshaler interface
  8541. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  8542. r := jlexer.Lexer{Data: data}
  8543. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(&r, v)
  8544. return r.Error()
  8545. }
  8546. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8547. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8548. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(l, v)
  8549. }
  8550. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(in *jlexer.Lexer, out *CreateStyleSheetReturns) {
  8551. isTopLevel := in.IsStart()
  8552. if in.IsNull() {
  8553. if isTopLevel {
  8554. in.Consumed()
  8555. }
  8556. in.Skip()
  8557. return
  8558. }
  8559. in.Delim('{')
  8560. for !in.IsDelim('}') {
  8561. key := in.UnsafeFieldName(false)
  8562. in.WantColon()
  8563. if in.IsNull() {
  8564. in.Skip()
  8565. in.WantComma()
  8566. continue
  8567. }
  8568. switch key {
  8569. case "styleSheetId":
  8570. out.StyleSheetID = StyleSheetID(in.String())
  8571. default:
  8572. in.SkipRecursive()
  8573. }
  8574. in.WantComma()
  8575. }
  8576. in.Delim('}')
  8577. if isTopLevel {
  8578. in.Consumed()
  8579. }
  8580. }
  8581. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(out *jwriter.Writer, in CreateStyleSheetReturns) {
  8582. out.RawByte('{')
  8583. first := true
  8584. _ = first
  8585. if in.StyleSheetID != "" {
  8586. const prefix string = ",\"styleSheetId\":"
  8587. first = false
  8588. out.RawString(prefix[1:])
  8589. out.String(string(in.StyleSheetID))
  8590. }
  8591. out.RawByte('}')
  8592. }
  8593. // MarshalJSON supports json.Marshaler interface
  8594. func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error) {
  8595. w := jwriter.Writer{}
  8596. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(&w, v)
  8597. return w.Buffer.BuildBytes(), w.Error
  8598. }
  8599. // MarshalEasyJSON supports easyjson.Marshaler interface
  8600. func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) {
  8601. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(w, v)
  8602. }
  8603. // UnmarshalJSON supports json.Unmarshaler interface
  8604. func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error {
  8605. r := jlexer.Lexer{Data: data}
  8606. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(&r, v)
  8607. return r.Error()
  8608. }
  8609. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8610. func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8611. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(l, v)
  8612. }
  8613. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(in *jlexer.Lexer, out *CreateStyleSheetParams) {
  8614. isTopLevel := in.IsStart()
  8615. if in.IsNull() {
  8616. if isTopLevel {
  8617. in.Consumed()
  8618. }
  8619. in.Skip()
  8620. return
  8621. }
  8622. in.Delim('{')
  8623. for !in.IsDelim('}') {
  8624. key := in.UnsafeFieldName(false)
  8625. in.WantColon()
  8626. if in.IsNull() {
  8627. in.Skip()
  8628. in.WantComma()
  8629. continue
  8630. }
  8631. switch key {
  8632. case "frameId":
  8633. (out.FrameID).UnmarshalEasyJSON(in)
  8634. default:
  8635. in.SkipRecursive()
  8636. }
  8637. in.WantComma()
  8638. }
  8639. in.Delim('}')
  8640. if isTopLevel {
  8641. in.Consumed()
  8642. }
  8643. }
  8644. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(out *jwriter.Writer, in CreateStyleSheetParams) {
  8645. out.RawByte('{')
  8646. first := true
  8647. _ = first
  8648. {
  8649. const prefix string = ",\"frameId\":"
  8650. out.RawString(prefix[1:])
  8651. out.String(string(in.FrameID))
  8652. }
  8653. out.RawByte('}')
  8654. }
  8655. // MarshalJSON supports json.Marshaler interface
  8656. func (v CreateStyleSheetParams) MarshalJSON() ([]byte, error) {
  8657. w := jwriter.Writer{}
  8658. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(&w, v)
  8659. return w.Buffer.BuildBytes(), w.Error
  8660. }
  8661. // MarshalEasyJSON supports easyjson.Marshaler interface
  8662. func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) {
  8663. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(w, v)
  8664. }
  8665. // UnmarshalJSON supports json.Unmarshaler interface
  8666. func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error {
  8667. r := jlexer.Lexer{Data: data}
  8668. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(&r, v)
  8669. return r.Error()
  8670. }
  8671. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8672. func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8673. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(l, v)
  8674. }
  8675. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(in *jlexer.Lexer, out *ContainerQuery) {
  8676. isTopLevel := in.IsStart()
  8677. if in.IsNull() {
  8678. if isTopLevel {
  8679. in.Consumed()
  8680. }
  8681. in.Skip()
  8682. return
  8683. }
  8684. in.Delim('{')
  8685. for !in.IsDelim('}') {
  8686. key := in.UnsafeFieldName(false)
  8687. in.WantColon()
  8688. if in.IsNull() {
  8689. in.Skip()
  8690. in.WantComma()
  8691. continue
  8692. }
  8693. switch key {
  8694. case "text":
  8695. out.Text = string(in.String())
  8696. case "range":
  8697. if in.IsNull() {
  8698. in.Skip()
  8699. out.Range = nil
  8700. } else {
  8701. if out.Range == nil {
  8702. out.Range = new(SourceRange)
  8703. }
  8704. (*out.Range).UnmarshalEasyJSON(in)
  8705. }
  8706. case "styleSheetId":
  8707. out.StyleSheetID = StyleSheetID(in.String())
  8708. case "name":
  8709. out.Name = string(in.String())
  8710. case "physicalAxes":
  8711. (out.PhysicalAxes).UnmarshalEasyJSON(in)
  8712. case "logicalAxes":
  8713. (out.LogicalAxes).UnmarshalEasyJSON(in)
  8714. default:
  8715. in.SkipRecursive()
  8716. }
  8717. in.WantComma()
  8718. }
  8719. in.Delim('}')
  8720. if isTopLevel {
  8721. in.Consumed()
  8722. }
  8723. }
  8724. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(out *jwriter.Writer, in ContainerQuery) {
  8725. out.RawByte('{')
  8726. first := true
  8727. _ = first
  8728. {
  8729. const prefix string = ",\"text\":"
  8730. out.RawString(prefix[1:])
  8731. out.String(string(in.Text))
  8732. }
  8733. if in.Range != nil {
  8734. const prefix string = ",\"range\":"
  8735. out.RawString(prefix)
  8736. (*in.Range).MarshalEasyJSON(out)
  8737. }
  8738. if in.StyleSheetID != "" {
  8739. const prefix string = ",\"styleSheetId\":"
  8740. out.RawString(prefix)
  8741. out.String(string(in.StyleSheetID))
  8742. }
  8743. if in.Name != "" {
  8744. const prefix string = ",\"name\":"
  8745. out.RawString(prefix)
  8746. out.String(string(in.Name))
  8747. }
  8748. if in.PhysicalAxes != "" {
  8749. const prefix string = ",\"physicalAxes\":"
  8750. out.RawString(prefix)
  8751. (in.PhysicalAxes).MarshalEasyJSON(out)
  8752. }
  8753. if in.LogicalAxes != "" {
  8754. const prefix string = ",\"logicalAxes\":"
  8755. out.RawString(prefix)
  8756. (in.LogicalAxes).MarshalEasyJSON(out)
  8757. }
  8758. out.RawByte('}')
  8759. }
  8760. // MarshalJSON supports json.Marshaler interface
  8761. func (v ContainerQuery) MarshalJSON() ([]byte, error) {
  8762. w := jwriter.Writer{}
  8763. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(&w, v)
  8764. return w.Buffer.BuildBytes(), w.Error
  8765. }
  8766. // MarshalEasyJSON supports easyjson.Marshaler interface
  8767. func (v ContainerQuery) MarshalEasyJSON(w *jwriter.Writer) {
  8768. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(w, v)
  8769. }
  8770. // UnmarshalJSON supports json.Unmarshaler interface
  8771. func (v *ContainerQuery) UnmarshalJSON(data []byte) error {
  8772. r := jlexer.Lexer{Data: data}
  8773. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(&r, v)
  8774. return r.Error()
  8775. }
  8776. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8777. func (v *ContainerQuery) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8778. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(l, v)
  8779. }
  8780. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(in *jlexer.Lexer, out *ComputedStyleProperty) {
  8781. isTopLevel := in.IsStart()
  8782. if in.IsNull() {
  8783. if isTopLevel {
  8784. in.Consumed()
  8785. }
  8786. in.Skip()
  8787. return
  8788. }
  8789. in.Delim('{')
  8790. for !in.IsDelim('}') {
  8791. key := in.UnsafeFieldName(false)
  8792. in.WantColon()
  8793. if in.IsNull() {
  8794. in.Skip()
  8795. in.WantComma()
  8796. continue
  8797. }
  8798. switch key {
  8799. case "name":
  8800. out.Name = string(in.String())
  8801. case "value":
  8802. out.Value = string(in.String())
  8803. default:
  8804. in.SkipRecursive()
  8805. }
  8806. in.WantComma()
  8807. }
  8808. in.Delim('}')
  8809. if isTopLevel {
  8810. in.Consumed()
  8811. }
  8812. }
  8813. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(out *jwriter.Writer, in ComputedStyleProperty) {
  8814. out.RawByte('{')
  8815. first := true
  8816. _ = first
  8817. {
  8818. const prefix string = ",\"name\":"
  8819. out.RawString(prefix[1:])
  8820. out.String(string(in.Name))
  8821. }
  8822. {
  8823. const prefix string = ",\"value\":"
  8824. out.RawString(prefix)
  8825. out.String(string(in.Value))
  8826. }
  8827. out.RawByte('}')
  8828. }
  8829. // MarshalJSON supports json.Marshaler interface
  8830. func (v ComputedStyleProperty) MarshalJSON() ([]byte, error) {
  8831. w := jwriter.Writer{}
  8832. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(&w, v)
  8833. return w.Buffer.BuildBytes(), w.Error
  8834. }
  8835. // MarshalEasyJSON supports easyjson.Marshaler interface
  8836. func (v ComputedStyleProperty) MarshalEasyJSON(w *jwriter.Writer) {
  8837. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(w, v)
  8838. }
  8839. // UnmarshalJSON supports json.Unmarshaler interface
  8840. func (v *ComputedStyleProperty) UnmarshalJSON(data []byte) error {
  8841. r := jlexer.Lexer{Data: data}
  8842. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(&r, v)
  8843. return r.Error()
  8844. }
  8845. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8846. func (v *ComputedStyleProperty) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8847. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(l, v)
  8848. }
  8849. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(in *jlexer.Lexer, out *CollectClassNamesReturns) {
  8850. isTopLevel := in.IsStart()
  8851. if in.IsNull() {
  8852. if isTopLevel {
  8853. in.Consumed()
  8854. }
  8855. in.Skip()
  8856. return
  8857. }
  8858. in.Delim('{')
  8859. for !in.IsDelim('}') {
  8860. key := in.UnsafeFieldName(false)
  8861. in.WantColon()
  8862. if in.IsNull() {
  8863. in.Skip()
  8864. in.WantComma()
  8865. continue
  8866. }
  8867. switch key {
  8868. case "classNames":
  8869. if in.IsNull() {
  8870. in.Skip()
  8871. out.ClassNames = nil
  8872. } else {
  8873. in.Delim('[')
  8874. if out.ClassNames == nil {
  8875. if !in.IsDelim(']') {
  8876. out.ClassNames = make([]string, 0, 4)
  8877. } else {
  8878. out.ClassNames = []string{}
  8879. }
  8880. } else {
  8881. out.ClassNames = (out.ClassNames)[:0]
  8882. }
  8883. for !in.IsDelim(']') {
  8884. var v121 string
  8885. v121 = string(in.String())
  8886. out.ClassNames = append(out.ClassNames, v121)
  8887. in.WantComma()
  8888. }
  8889. in.Delim(']')
  8890. }
  8891. default:
  8892. in.SkipRecursive()
  8893. }
  8894. in.WantComma()
  8895. }
  8896. in.Delim('}')
  8897. if isTopLevel {
  8898. in.Consumed()
  8899. }
  8900. }
  8901. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(out *jwriter.Writer, in CollectClassNamesReturns) {
  8902. out.RawByte('{')
  8903. first := true
  8904. _ = first
  8905. if len(in.ClassNames) != 0 {
  8906. const prefix string = ",\"classNames\":"
  8907. first = false
  8908. out.RawString(prefix[1:])
  8909. {
  8910. out.RawByte('[')
  8911. for v122, v123 := range in.ClassNames {
  8912. if v122 > 0 {
  8913. out.RawByte(',')
  8914. }
  8915. out.String(string(v123))
  8916. }
  8917. out.RawByte(']')
  8918. }
  8919. }
  8920. out.RawByte('}')
  8921. }
  8922. // MarshalJSON supports json.Marshaler interface
  8923. func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error) {
  8924. w := jwriter.Writer{}
  8925. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(&w, v)
  8926. return w.Buffer.BuildBytes(), w.Error
  8927. }
  8928. // MarshalEasyJSON supports easyjson.Marshaler interface
  8929. func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  8930. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(w, v)
  8931. }
  8932. // UnmarshalJSON supports json.Unmarshaler interface
  8933. func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error {
  8934. r := jlexer.Lexer{Data: data}
  8935. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(&r, v)
  8936. return r.Error()
  8937. }
  8938. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  8939. func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  8940. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(l, v)
  8941. }
  8942. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(in *jlexer.Lexer, out *CollectClassNamesParams) {
  8943. isTopLevel := in.IsStart()
  8944. if in.IsNull() {
  8945. if isTopLevel {
  8946. in.Consumed()
  8947. }
  8948. in.Skip()
  8949. return
  8950. }
  8951. in.Delim('{')
  8952. for !in.IsDelim('}') {
  8953. key := in.UnsafeFieldName(false)
  8954. in.WantColon()
  8955. if in.IsNull() {
  8956. in.Skip()
  8957. in.WantComma()
  8958. continue
  8959. }
  8960. switch key {
  8961. case "styleSheetId":
  8962. out.StyleSheetID = StyleSheetID(in.String())
  8963. default:
  8964. in.SkipRecursive()
  8965. }
  8966. in.WantComma()
  8967. }
  8968. in.Delim('}')
  8969. if isTopLevel {
  8970. in.Consumed()
  8971. }
  8972. }
  8973. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(out *jwriter.Writer, in CollectClassNamesParams) {
  8974. out.RawByte('{')
  8975. first := true
  8976. _ = first
  8977. {
  8978. const prefix string = ",\"styleSheetId\":"
  8979. out.RawString(prefix[1:])
  8980. out.String(string(in.StyleSheetID))
  8981. }
  8982. out.RawByte('}')
  8983. }
  8984. // MarshalJSON supports json.Marshaler interface
  8985. func (v CollectClassNamesParams) MarshalJSON() ([]byte, error) {
  8986. w := jwriter.Writer{}
  8987. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(&w, v)
  8988. return w.Buffer.BuildBytes(), w.Error
  8989. }
  8990. // MarshalEasyJSON supports easyjson.Marshaler interface
  8991. func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) {
  8992. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(w, v)
  8993. }
  8994. // UnmarshalJSON supports json.Unmarshaler interface
  8995. func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error {
  8996. r := jlexer.Lexer{Data: data}
  8997. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(&r, v)
  8998. return r.Error()
  8999. }
  9000. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9001. func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9002. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(l, v)
  9003. }
  9004. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(in *jlexer.Lexer, out *AddRuleReturns) {
  9005. isTopLevel := in.IsStart()
  9006. if in.IsNull() {
  9007. if isTopLevel {
  9008. in.Consumed()
  9009. }
  9010. in.Skip()
  9011. return
  9012. }
  9013. in.Delim('{')
  9014. for !in.IsDelim('}') {
  9015. key := in.UnsafeFieldName(false)
  9016. in.WantColon()
  9017. if in.IsNull() {
  9018. in.Skip()
  9019. in.WantComma()
  9020. continue
  9021. }
  9022. switch key {
  9023. case "rule":
  9024. if in.IsNull() {
  9025. in.Skip()
  9026. out.Rule = nil
  9027. } else {
  9028. if out.Rule == nil {
  9029. out.Rule = new(Rule)
  9030. }
  9031. (*out.Rule).UnmarshalEasyJSON(in)
  9032. }
  9033. default:
  9034. in.SkipRecursive()
  9035. }
  9036. in.WantComma()
  9037. }
  9038. in.Delim('}')
  9039. if isTopLevel {
  9040. in.Consumed()
  9041. }
  9042. }
  9043. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(out *jwriter.Writer, in AddRuleReturns) {
  9044. out.RawByte('{')
  9045. first := true
  9046. _ = first
  9047. if in.Rule != nil {
  9048. const prefix string = ",\"rule\":"
  9049. first = false
  9050. out.RawString(prefix[1:])
  9051. (*in.Rule).MarshalEasyJSON(out)
  9052. }
  9053. out.RawByte('}')
  9054. }
  9055. // MarshalJSON supports json.Marshaler interface
  9056. func (v AddRuleReturns) MarshalJSON() ([]byte, error) {
  9057. w := jwriter.Writer{}
  9058. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(&w, v)
  9059. return w.Buffer.BuildBytes(), w.Error
  9060. }
  9061. // MarshalEasyJSON supports easyjson.Marshaler interface
  9062. func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) {
  9063. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(w, v)
  9064. }
  9065. // UnmarshalJSON supports json.Unmarshaler interface
  9066. func (v *AddRuleReturns) UnmarshalJSON(data []byte) error {
  9067. r := jlexer.Lexer{Data: data}
  9068. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(&r, v)
  9069. return r.Error()
  9070. }
  9071. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9072. func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9073. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(l, v)
  9074. }
  9075. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(in *jlexer.Lexer, out *AddRuleParams) {
  9076. isTopLevel := in.IsStart()
  9077. if in.IsNull() {
  9078. if isTopLevel {
  9079. in.Consumed()
  9080. }
  9081. in.Skip()
  9082. return
  9083. }
  9084. in.Delim('{')
  9085. for !in.IsDelim('}') {
  9086. key := in.UnsafeFieldName(false)
  9087. in.WantColon()
  9088. if in.IsNull() {
  9089. in.Skip()
  9090. in.WantComma()
  9091. continue
  9092. }
  9093. switch key {
  9094. case "styleSheetId":
  9095. out.StyleSheetID = StyleSheetID(in.String())
  9096. case "ruleText":
  9097. out.RuleText = string(in.String())
  9098. case "location":
  9099. if in.IsNull() {
  9100. in.Skip()
  9101. out.Location = nil
  9102. } else {
  9103. if out.Location == nil {
  9104. out.Location = new(SourceRange)
  9105. }
  9106. (*out.Location).UnmarshalEasyJSON(in)
  9107. }
  9108. case "nodeForPropertySyntaxValidation":
  9109. (out.NodeForPropertySyntaxValidation).UnmarshalEasyJSON(in)
  9110. default:
  9111. in.SkipRecursive()
  9112. }
  9113. in.WantComma()
  9114. }
  9115. in.Delim('}')
  9116. if isTopLevel {
  9117. in.Consumed()
  9118. }
  9119. }
  9120. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(out *jwriter.Writer, in AddRuleParams) {
  9121. out.RawByte('{')
  9122. first := true
  9123. _ = first
  9124. {
  9125. const prefix string = ",\"styleSheetId\":"
  9126. out.RawString(prefix[1:])
  9127. out.String(string(in.StyleSheetID))
  9128. }
  9129. {
  9130. const prefix string = ",\"ruleText\":"
  9131. out.RawString(prefix)
  9132. out.String(string(in.RuleText))
  9133. }
  9134. {
  9135. const prefix string = ",\"location\":"
  9136. out.RawString(prefix)
  9137. if in.Location == nil {
  9138. out.RawString("null")
  9139. } else {
  9140. (*in.Location).MarshalEasyJSON(out)
  9141. }
  9142. }
  9143. if in.NodeForPropertySyntaxValidation != 0 {
  9144. const prefix string = ",\"nodeForPropertySyntaxValidation\":"
  9145. out.RawString(prefix)
  9146. out.Int64(int64(in.NodeForPropertySyntaxValidation))
  9147. }
  9148. out.RawByte('}')
  9149. }
  9150. // MarshalJSON supports json.Marshaler interface
  9151. func (v AddRuleParams) MarshalJSON() ([]byte, error) {
  9152. w := jwriter.Writer{}
  9153. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(&w, v)
  9154. return w.Buffer.BuildBytes(), w.Error
  9155. }
  9156. // MarshalEasyJSON supports easyjson.Marshaler interface
  9157. func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer) {
  9158. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(w, v)
  9159. }
  9160. // UnmarshalJSON supports json.Unmarshaler interface
  9161. func (v *AddRuleParams) UnmarshalJSON(data []byte) error {
  9162. r := jlexer.Lexer{Data: data}
  9163. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(&r, v)
  9164. return r.Error()
  9165. }
  9166. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  9167. func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  9168. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(l, v)
  9169. }