easyjson.go 126 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package overlay
  3. import (
  4. json "encoding/json"
  5. cdp "github.com/chromedp/cdproto/cdp"
  6. dom "github.com/chromedp/cdproto/dom"
  7. page "github.com/chromedp/cdproto/page"
  8. runtime "github.com/chromedp/cdproto/runtime"
  9. easyjson "github.com/mailru/easyjson"
  10. jlexer "github.com/mailru/easyjson/jlexer"
  11. jwriter "github.com/mailru/easyjson/jwriter"
  12. )
  13. // suppress unused package warning
  14. var (
  15. _ *json.RawMessage
  16. _ *jlexer.Lexer
  17. _ *jwriter.Writer
  18. _ easyjson.Marshaler
  19. )
  20. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay(in *jlexer.Lexer, out *WindowControlsOverlayConfig) {
  21. isTopLevel := in.IsStart()
  22. if in.IsNull() {
  23. if isTopLevel {
  24. in.Consumed()
  25. }
  26. in.Skip()
  27. return
  28. }
  29. in.Delim('{')
  30. for !in.IsDelim('}') {
  31. key := in.UnsafeFieldName(false)
  32. in.WantColon()
  33. if in.IsNull() {
  34. in.Skip()
  35. in.WantComma()
  36. continue
  37. }
  38. switch key {
  39. case "showCSS":
  40. out.ShowCSS = bool(in.Bool())
  41. case "selectedPlatform":
  42. out.SelectedPlatform = string(in.String())
  43. case "themeColor":
  44. out.ThemeColor = string(in.String())
  45. default:
  46. in.SkipRecursive()
  47. }
  48. in.WantComma()
  49. }
  50. in.Delim('}')
  51. if isTopLevel {
  52. in.Consumed()
  53. }
  54. }
  55. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay(out *jwriter.Writer, in WindowControlsOverlayConfig) {
  56. out.RawByte('{')
  57. first := true
  58. _ = first
  59. {
  60. const prefix string = ",\"showCSS\":"
  61. out.RawString(prefix[1:])
  62. out.Bool(bool(in.ShowCSS))
  63. }
  64. {
  65. const prefix string = ",\"selectedPlatform\":"
  66. out.RawString(prefix)
  67. out.String(string(in.SelectedPlatform))
  68. }
  69. {
  70. const prefix string = ",\"themeColor\":"
  71. out.RawString(prefix)
  72. out.String(string(in.ThemeColor))
  73. }
  74. out.RawByte('}')
  75. }
  76. // MarshalJSON supports json.Marshaler interface
  77. func (v WindowControlsOverlayConfig) MarshalJSON() ([]byte, error) {
  78. w := jwriter.Writer{}
  79. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay(&w, v)
  80. return w.Buffer.BuildBytes(), w.Error
  81. }
  82. // MarshalEasyJSON supports easyjson.Marshaler interface
  83. func (v WindowControlsOverlayConfig) MarshalEasyJSON(w *jwriter.Writer) {
  84. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay(w, v)
  85. }
  86. // UnmarshalJSON supports json.Unmarshaler interface
  87. func (v *WindowControlsOverlayConfig) UnmarshalJSON(data []byte) error {
  88. r := jlexer.Lexer{Data: data}
  89. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay(&r, v)
  90. return r.Error()
  91. }
  92. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  93. func (v *WindowControlsOverlayConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  94. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay(l, v)
  95. }
  96. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay1(in *jlexer.Lexer, out *SourceOrderConfig) {
  97. isTopLevel := in.IsStart()
  98. if in.IsNull() {
  99. if isTopLevel {
  100. in.Consumed()
  101. }
  102. in.Skip()
  103. return
  104. }
  105. in.Delim('{')
  106. for !in.IsDelim('}') {
  107. key := in.UnsafeFieldName(false)
  108. in.WantColon()
  109. if in.IsNull() {
  110. in.Skip()
  111. in.WantComma()
  112. continue
  113. }
  114. switch key {
  115. case "parentOutlineColor":
  116. if in.IsNull() {
  117. in.Skip()
  118. out.ParentOutlineColor = nil
  119. } else {
  120. if out.ParentOutlineColor == nil {
  121. out.ParentOutlineColor = new(cdp.RGBA)
  122. }
  123. (*out.ParentOutlineColor).UnmarshalEasyJSON(in)
  124. }
  125. case "childOutlineColor":
  126. if in.IsNull() {
  127. in.Skip()
  128. out.ChildOutlineColor = nil
  129. } else {
  130. if out.ChildOutlineColor == nil {
  131. out.ChildOutlineColor = new(cdp.RGBA)
  132. }
  133. (*out.ChildOutlineColor).UnmarshalEasyJSON(in)
  134. }
  135. default:
  136. in.SkipRecursive()
  137. }
  138. in.WantComma()
  139. }
  140. in.Delim('}')
  141. if isTopLevel {
  142. in.Consumed()
  143. }
  144. }
  145. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay1(out *jwriter.Writer, in SourceOrderConfig) {
  146. out.RawByte('{')
  147. first := true
  148. _ = first
  149. {
  150. const prefix string = ",\"parentOutlineColor\":"
  151. out.RawString(prefix[1:])
  152. if in.ParentOutlineColor == nil {
  153. out.RawString("null")
  154. } else {
  155. (*in.ParentOutlineColor).MarshalEasyJSON(out)
  156. }
  157. }
  158. {
  159. const prefix string = ",\"childOutlineColor\":"
  160. out.RawString(prefix)
  161. if in.ChildOutlineColor == nil {
  162. out.RawString("null")
  163. } else {
  164. (*in.ChildOutlineColor).MarshalEasyJSON(out)
  165. }
  166. }
  167. out.RawByte('}')
  168. }
  169. // MarshalJSON supports json.Marshaler interface
  170. func (v SourceOrderConfig) MarshalJSON() ([]byte, error) {
  171. w := jwriter.Writer{}
  172. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay1(&w, v)
  173. return w.Buffer.BuildBytes(), w.Error
  174. }
  175. // MarshalEasyJSON supports easyjson.Marshaler interface
  176. func (v SourceOrderConfig) MarshalEasyJSON(w *jwriter.Writer) {
  177. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay1(w, v)
  178. }
  179. // UnmarshalJSON supports json.Unmarshaler interface
  180. func (v *SourceOrderConfig) UnmarshalJSON(data []byte) error {
  181. r := jlexer.Lexer{Data: data}
  182. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay1(&r, v)
  183. return r.Error()
  184. }
  185. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  186. func (v *SourceOrderConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  187. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay1(l, v)
  188. }
  189. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay2(in *jlexer.Lexer, out *SetShowWindowControlsOverlayParams) {
  190. isTopLevel := in.IsStart()
  191. if in.IsNull() {
  192. if isTopLevel {
  193. in.Consumed()
  194. }
  195. in.Skip()
  196. return
  197. }
  198. in.Delim('{')
  199. for !in.IsDelim('}') {
  200. key := in.UnsafeFieldName(false)
  201. in.WantColon()
  202. if in.IsNull() {
  203. in.Skip()
  204. in.WantComma()
  205. continue
  206. }
  207. switch key {
  208. case "windowControlsOverlayConfig":
  209. if in.IsNull() {
  210. in.Skip()
  211. out.WindowControlsOverlayConfig = nil
  212. } else {
  213. if out.WindowControlsOverlayConfig == nil {
  214. out.WindowControlsOverlayConfig = new(WindowControlsOverlayConfig)
  215. }
  216. (*out.WindowControlsOverlayConfig).UnmarshalEasyJSON(in)
  217. }
  218. default:
  219. in.SkipRecursive()
  220. }
  221. in.WantComma()
  222. }
  223. in.Delim('}')
  224. if isTopLevel {
  225. in.Consumed()
  226. }
  227. }
  228. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay2(out *jwriter.Writer, in SetShowWindowControlsOverlayParams) {
  229. out.RawByte('{')
  230. first := true
  231. _ = first
  232. if in.WindowControlsOverlayConfig != nil {
  233. const prefix string = ",\"windowControlsOverlayConfig\":"
  234. first = false
  235. out.RawString(prefix[1:])
  236. (*in.WindowControlsOverlayConfig).MarshalEasyJSON(out)
  237. }
  238. out.RawByte('}')
  239. }
  240. // MarshalJSON supports json.Marshaler interface
  241. func (v SetShowWindowControlsOverlayParams) MarshalJSON() ([]byte, error) {
  242. w := jwriter.Writer{}
  243. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay2(&w, v)
  244. return w.Buffer.BuildBytes(), w.Error
  245. }
  246. // MarshalEasyJSON supports easyjson.Marshaler interface
  247. func (v SetShowWindowControlsOverlayParams) MarshalEasyJSON(w *jwriter.Writer) {
  248. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay2(w, v)
  249. }
  250. // UnmarshalJSON supports json.Unmarshaler interface
  251. func (v *SetShowWindowControlsOverlayParams) UnmarshalJSON(data []byte) error {
  252. r := jlexer.Lexer{Data: data}
  253. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay2(&r, v)
  254. return r.Error()
  255. }
  256. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  257. func (v *SetShowWindowControlsOverlayParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  258. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay2(l, v)
  259. }
  260. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay3(in *jlexer.Lexer, out *SetShowWebVitalsParams) {
  261. isTopLevel := in.IsStart()
  262. if in.IsNull() {
  263. if isTopLevel {
  264. in.Consumed()
  265. }
  266. in.Skip()
  267. return
  268. }
  269. in.Delim('{')
  270. for !in.IsDelim('}') {
  271. key := in.UnsafeFieldName(false)
  272. in.WantColon()
  273. if in.IsNull() {
  274. in.Skip()
  275. in.WantComma()
  276. continue
  277. }
  278. switch key {
  279. case "show":
  280. out.Show = bool(in.Bool())
  281. default:
  282. in.SkipRecursive()
  283. }
  284. in.WantComma()
  285. }
  286. in.Delim('}')
  287. if isTopLevel {
  288. in.Consumed()
  289. }
  290. }
  291. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay3(out *jwriter.Writer, in SetShowWebVitalsParams) {
  292. out.RawByte('{')
  293. first := true
  294. _ = first
  295. {
  296. const prefix string = ",\"show\":"
  297. out.RawString(prefix[1:])
  298. out.Bool(bool(in.Show))
  299. }
  300. out.RawByte('}')
  301. }
  302. // MarshalJSON supports json.Marshaler interface
  303. func (v SetShowWebVitalsParams) MarshalJSON() ([]byte, error) {
  304. w := jwriter.Writer{}
  305. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay3(&w, v)
  306. return w.Buffer.BuildBytes(), w.Error
  307. }
  308. // MarshalEasyJSON supports easyjson.Marshaler interface
  309. func (v SetShowWebVitalsParams) MarshalEasyJSON(w *jwriter.Writer) {
  310. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay3(w, v)
  311. }
  312. // UnmarshalJSON supports json.Unmarshaler interface
  313. func (v *SetShowWebVitalsParams) UnmarshalJSON(data []byte) error {
  314. r := jlexer.Lexer{Data: data}
  315. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay3(&r, v)
  316. return r.Error()
  317. }
  318. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  319. func (v *SetShowWebVitalsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  320. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay3(l, v)
  321. }
  322. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay4(in *jlexer.Lexer, out *SetShowViewportSizeOnResizeParams) {
  323. isTopLevel := in.IsStart()
  324. if in.IsNull() {
  325. if isTopLevel {
  326. in.Consumed()
  327. }
  328. in.Skip()
  329. return
  330. }
  331. in.Delim('{')
  332. for !in.IsDelim('}') {
  333. key := in.UnsafeFieldName(false)
  334. in.WantColon()
  335. if in.IsNull() {
  336. in.Skip()
  337. in.WantComma()
  338. continue
  339. }
  340. switch key {
  341. case "show":
  342. out.Show = bool(in.Bool())
  343. default:
  344. in.SkipRecursive()
  345. }
  346. in.WantComma()
  347. }
  348. in.Delim('}')
  349. if isTopLevel {
  350. in.Consumed()
  351. }
  352. }
  353. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay4(out *jwriter.Writer, in SetShowViewportSizeOnResizeParams) {
  354. out.RawByte('{')
  355. first := true
  356. _ = first
  357. {
  358. const prefix string = ",\"show\":"
  359. out.RawString(prefix[1:])
  360. out.Bool(bool(in.Show))
  361. }
  362. out.RawByte('}')
  363. }
  364. // MarshalJSON supports json.Marshaler interface
  365. func (v SetShowViewportSizeOnResizeParams) MarshalJSON() ([]byte, error) {
  366. w := jwriter.Writer{}
  367. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay4(&w, v)
  368. return w.Buffer.BuildBytes(), w.Error
  369. }
  370. // MarshalEasyJSON supports easyjson.Marshaler interface
  371. func (v SetShowViewportSizeOnResizeParams) MarshalEasyJSON(w *jwriter.Writer) {
  372. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay4(w, v)
  373. }
  374. // UnmarshalJSON supports json.Unmarshaler interface
  375. func (v *SetShowViewportSizeOnResizeParams) UnmarshalJSON(data []byte) error {
  376. r := jlexer.Lexer{Data: data}
  377. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay4(&r, v)
  378. return r.Error()
  379. }
  380. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  381. func (v *SetShowViewportSizeOnResizeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  382. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay4(l, v)
  383. }
  384. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay5(in *jlexer.Lexer, out *SetShowScrollSnapOverlaysParams) {
  385. isTopLevel := in.IsStart()
  386. if in.IsNull() {
  387. if isTopLevel {
  388. in.Consumed()
  389. }
  390. in.Skip()
  391. return
  392. }
  393. in.Delim('{')
  394. for !in.IsDelim('}') {
  395. key := in.UnsafeFieldName(false)
  396. in.WantColon()
  397. if in.IsNull() {
  398. in.Skip()
  399. in.WantComma()
  400. continue
  401. }
  402. switch key {
  403. case "scrollSnapHighlightConfigs":
  404. if in.IsNull() {
  405. in.Skip()
  406. out.ScrollSnapHighlightConfigs = nil
  407. } else {
  408. in.Delim('[')
  409. if out.ScrollSnapHighlightConfigs == nil {
  410. if !in.IsDelim(']') {
  411. out.ScrollSnapHighlightConfigs = make([]*ScrollSnapHighlightConfig, 0, 8)
  412. } else {
  413. out.ScrollSnapHighlightConfigs = []*ScrollSnapHighlightConfig{}
  414. }
  415. } else {
  416. out.ScrollSnapHighlightConfigs = (out.ScrollSnapHighlightConfigs)[:0]
  417. }
  418. for !in.IsDelim(']') {
  419. var v1 *ScrollSnapHighlightConfig
  420. if in.IsNull() {
  421. in.Skip()
  422. v1 = nil
  423. } else {
  424. if v1 == nil {
  425. v1 = new(ScrollSnapHighlightConfig)
  426. }
  427. (*v1).UnmarshalEasyJSON(in)
  428. }
  429. out.ScrollSnapHighlightConfigs = append(out.ScrollSnapHighlightConfigs, v1)
  430. in.WantComma()
  431. }
  432. in.Delim(']')
  433. }
  434. default:
  435. in.SkipRecursive()
  436. }
  437. in.WantComma()
  438. }
  439. in.Delim('}')
  440. if isTopLevel {
  441. in.Consumed()
  442. }
  443. }
  444. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay5(out *jwriter.Writer, in SetShowScrollSnapOverlaysParams) {
  445. out.RawByte('{')
  446. first := true
  447. _ = first
  448. {
  449. const prefix string = ",\"scrollSnapHighlightConfigs\":"
  450. out.RawString(prefix[1:])
  451. if in.ScrollSnapHighlightConfigs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  452. out.RawString("null")
  453. } else {
  454. out.RawByte('[')
  455. for v2, v3 := range in.ScrollSnapHighlightConfigs {
  456. if v2 > 0 {
  457. out.RawByte(',')
  458. }
  459. if v3 == nil {
  460. out.RawString("null")
  461. } else {
  462. (*v3).MarshalEasyJSON(out)
  463. }
  464. }
  465. out.RawByte(']')
  466. }
  467. }
  468. out.RawByte('}')
  469. }
  470. // MarshalJSON supports json.Marshaler interface
  471. func (v SetShowScrollSnapOverlaysParams) MarshalJSON() ([]byte, error) {
  472. w := jwriter.Writer{}
  473. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay5(&w, v)
  474. return w.Buffer.BuildBytes(), w.Error
  475. }
  476. // MarshalEasyJSON supports easyjson.Marshaler interface
  477. func (v SetShowScrollSnapOverlaysParams) MarshalEasyJSON(w *jwriter.Writer) {
  478. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay5(w, v)
  479. }
  480. // UnmarshalJSON supports json.Unmarshaler interface
  481. func (v *SetShowScrollSnapOverlaysParams) UnmarshalJSON(data []byte) error {
  482. r := jlexer.Lexer{Data: data}
  483. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay5(&r, v)
  484. return r.Error()
  485. }
  486. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  487. func (v *SetShowScrollSnapOverlaysParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  488. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay5(l, v)
  489. }
  490. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay6(in *jlexer.Lexer, out *SetShowScrollBottleneckRectsParams) {
  491. isTopLevel := in.IsStart()
  492. if in.IsNull() {
  493. if isTopLevel {
  494. in.Consumed()
  495. }
  496. in.Skip()
  497. return
  498. }
  499. in.Delim('{')
  500. for !in.IsDelim('}') {
  501. key := in.UnsafeFieldName(false)
  502. in.WantColon()
  503. if in.IsNull() {
  504. in.Skip()
  505. in.WantComma()
  506. continue
  507. }
  508. switch key {
  509. case "show":
  510. out.Show = bool(in.Bool())
  511. default:
  512. in.SkipRecursive()
  513. }
  514. in.WantComma()
  515. }
  516. in.Delim('}')
  517. if isTopLevel {
  518. in.Consumed()
  519. }
  520. }
  521. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay6(out *jwriter.Writer, in SetShowScrollBottleneckRectsParams) {
  522. out.RawByte('{')
  523. first := true
  524. _ = first
  525. {
  526. const prefix string = ",\"show\":"
  527. out.RawString(prefix[1:])
  528. out.Bool(bool(in.Show))
  529. }
  530. out.RawByte('}')
  531. }
  532. // MarshalJSON supports json.Marshaler interface
  533. func (v SetShowScrollBottleneckRectsParams) MarshalJSON() ([]byte, error) {
  534. w := jwriter.Writer{}
  535. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay6(&w, v)
  536. return w.Buffer.BuildBytes(), w.Error
  537. }
  538. // MarshalEasyJSON supports easyjson.Marshaler interface
  539. func (v SetShowScrollBottleneckRectsParams) MarshalEasyJSON(w *jwriter.Writer) {
  540. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay6(w, v)
  541. }
  542. // UnmarshalJSON supports json.Unmarshaler interface
  543. func (v *SetShowScrollBottleneckRectsParams) UnmarshalJSON(data []byte) error {
  544. r := jlexer.Lexer{Data: data}
  545. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay6(&r, v)
  546. return r.Error()
  547. }
  548. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  549. func (v *SetShowScrollBottleneckRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  550. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay6(l, v)
  551. }
  552. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay7(in *jlexer.Lexer, out *SetShowPaintRectsParams) {
  553. isTopLevel := in.IsStart()
  554. if in.IsNull() {
  555. if isTopLevel {
  556. in.Consumed()
  557. }
  558. in.Skip()
  559. return
  560. }
  561. in.Delim('{')
  562. for !in.IsDelim('}') {
  563. key := in.UnsafeFieldName(false)
  564. in.WantColon()
  565. if in.IsNull() {
  566. in.Skip()
  567. in.WantComma()
  568. continue
  569. }
  570. switch key {
  571. case "result":
  572. out.Result = bool(in.Bool())
  573. default:
  574. in.SkipRecursive()
  575. }
  576. in.WantComma()
  577. }
  578. in.Delim('}')
  579. if isTopLevel {
  580. in.Consumed()
  581. }
  582. }
  583. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay7(out *jwriter.Writer, in SetShowPaintRectsParams) {
  584. out.RawByte('{')
  585. first := true
  586. _ = first
  587. {
  588. const prefix string = ",\"result\":"
  589. out.RawString(prefix[1:])
  590. out.Bool(bool(in.Result))
  591. }
  592. out.RawByte('}')
  593. }
  594. // MarshalJSON supports json.Marshaler interface
  595. func (v SetShowPaintRectsParams) MarshalJSON() ([]byte, error) {
  596. w := jwriter.Writer{}
  597. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay7(&w, v)
  598. return w.Buffer.BuildBytes(), w.Error
  599. }
  600. // MarshalEasyJSON supports easyjson.Marshaler interface
  601. func (v SetShowPaintRectsParams) MarshalEasyJSON(w *jwriter.Writer) {
  602. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay7(w, v)
  603. }
  604. // UnmarshalJSON supports json.Unmarshaler interface
  605. func (v *SetShowPaintRectsParams) UnmarshalJSON(data []byte) error {
  606. r := jlexer.Lexer{Data: data}
  607. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay7(&r, v)
  608. return r.Error()
  609. }
  610. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  611. func (v *SetShowPaintRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  612. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay7(l, v)
  613. }
  614. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay8(in *jlexer.Lexer, out *SetShowLayoutShiftRegionsParams) {
  615. isTopLevel := in.IsStart()
  616. if in.IsNull() {
  617. if isTopLevel {
  618. in.Consumed()
  619. }
  620. in.Skip()
  621. return
  622. }
  623. in.Delim('{')
  624. for !in.IsDelim('}') {
  625. key := in.UnsafeFieldName(false)
  626. in.WantColon()
  627. if in.IsNull() {
  628. in.Skip()
  629. in.WantComma()
  630. continue
  631. }
  632. switch key {
  633. case "result":
  634. out.Result = bool(in.Bool())
  635. default:
  636. in.SkipRecursive()
  637. }
  638. in.WantComma()
  639. }
  640. in.Delim('}')
  641. if isTopLevel {
  642. in.Consumed()
  643. }
  644. }
  645. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay8(out *jwriter.Writer, in SetShowLayoutShiftRegionsParams) {
  646. out.RawByte('{')
  647. first := true
  648. _ = first
  649. {
  650. const prefix string = ",\"result\":"
  651. out.RawString(prefix[1:])
  652. out.Bool(bool(in.Result))
  653. }
  654. out.RawByte('}')
  655. }
  656. // MarshalJSON supports json.Marshaler interface
  657. func (v SetShowLayoutShiftRegionsParams) MarshalJSON() ([]byte, error) {
  658. w := jwriter.Writer{}
  659. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay8(&w, v)
  660. return w.Buffer.BuildBytes(), w.Error
  661. }
  662. // MarshalEasyJSON supports easyjson.Marshaler interface
  663. func (v SetShowLayoutShiftRegionsParams) MarshalEasyJSON(w *jwriter.Writer) {
  664. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay8(w, v)
  665. }
  666. // UnmarshalJSON supports json.Unmarshaler interface
  667. func (v *SetShowLayoutShiftRegionsParams) UnmarshalJSON(data []byte) error {
  668. r := jlexer.Lexer{Data: data}
  669. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay8(&r, v)
  670. return r.Error()
  671. }
  672. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  673. func (v *SetShowLayoutShiftRegionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  674. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay8(l, v)
  675. }
  676. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay9(in *jlexer.Lexer, out *SetShowIsolatedElementsParams) {
  677. isTopLevel := in.IsStart()
  678. if in.IsNull() {
  679. if isTopLevel {
  680. in.Consumed()
  681. }
  682. in.Skip()
  683. return
  684. }
  685. in.Delim('{')
  686. for !in.IsDelim('}') {
  687. key := in.UnsafeFieldName(false)
  688. in.WantColon()
  689. if in.IsNull() {
  690. in.Skip()
  691. in.WantComma()
  692. continue
  693. }
  694. switch key {
  695. case "isolatedElementHighlightConfigs":
  696. if in.IsNull() {
  697. in.Skip()
  698. out.IsolatedElementHighlightConfigs = nil
  699. } else {
  700. in.Delim('[')
  701. if out.IsolatedElementHighlightConfigs == nil {
  702. if !in.IsDelim(']') {
  703. out.IsolatedElementHighlightConfigs = make([]*IsolatedElementHighlightConfig, 0, 8)
  704. } else {
  705. out.IsolatedElementHighlightConfigs = []*IsolatedElementHighlightConfig{}
  706. }
  707. } else {
  708. out.IsolatedElementHighlightConfigs = (out.IsolatedElementHighlightConfigs)[:0]
  709. }
  710. for !in.IsDelim(']') {
  711. var v4 *IsolatedElementHighlightConfig
  712. if in.IsNull() {
  713. in.Skip()
  714. v4 = nil
  715. } else {
  716. if v4 == nil {
  717. v4 = new(IsolatedElementHighlightConfig)
  718. }
  719. (*v4).UnmarshalEasyJSON(in)
  720. }
  721. out.IsolatedElementHighlightConfigs = append(out.IsolatedElementHighlightConfigs, v4)
  722. in.WantComma()
  723. }
  724. in.Delim(']')
  725. }
  726. default:
  727. in.SkipRecursive()
  728. }
  729. in.WantComma()
  730. }
  731. in.Delim('}')
  732. if isTopLevel {
  733. in.Consumed()
  734. }
  735. }
  736. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay9(out *jwriter.Writer, in SetShowIsolatedElementsParams) {
  737. out.RawByte('{')
  738. first := true
  739. _ = first
  740. {
  741. const prefix string = ",\"isolatedElementHighlightConfigs\":"
  742. out.RawString(prefix[1:])
  743. if in.IsolatedElementHighlightConfigs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  744. out.RawString("null")
  745. } else {
  746. out.RawByte('[')
  747. for v5, v6 := range in.IsolatedElementHighlightConfigs {
  748. if v5 > 0 {
  749. out.RawByte(',')
  750. }
  751. if v6 == nil {
  752. out.RawString("null")
  753. } else {
  754. (*v6).MarshalEasyJSON(out)
  755. }
  756. }
  757. out.RawByte(']')
  758. }
  759. }
  760. out.RawByte('}')
  761. }
  762. // MarshalJSON supports json.Marshaler interface
  763. func (v SetShowIsolatedElementsParams) MarshalJSON() ([]byte, error) {
  764. w := jwriter.Writer{}
  765. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay9(&w, v)
  766. return w.Buffer.BuildBytes(), w.Error
  767. }
  768. // MarshalEasyJSON supports easyjson.Marshaler interface
  769. func (v SetShowIsolatedElementsParams) MarshalEasyJSON(w *jwriter.Writer) {
  770. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay9(w, v)
  771. }
  772. // UnmarshalJSON supports json.Unmarshaler interface
  773. func (v *SetShowIsolatedElementsParams) UnmarshalJSON(data []byte) error {
  774. r := jlexer.Lexer{Data: data}
  775. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay9(&r, v)
  776. return r.Error()
  777. }
  778. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  779. func (v *SetShowIsolatedElementsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  780. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay9(l, v)
  781. }
  782. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay10(in *jlexer.Lexer, out *SetShowHingeParams) {
  783. isTopLevel := in.IsStart()
  784. if in.IsNull() {
  785. if isTopLevel {
  786. in.Consumed()
  787. }
  788. in.Skip()
  789. return
  790. }
  791. in.Delim('{')
  792. for !in.IsDelim('}') {
  793. key := in.UnsafeFieldName(false)
  794. in.WantColon()
  795. if in.IsNull() {
  796. in.Skip()
  797. in.WantComma()
  798. continue
  799. }
  800. switch key {
  801. case "hingeConfig":
  802. if in.IsNull() {
  803. in.Skip()
  804. out.HingeConfig = nil
  805. } else {
  806. if out.HingeConfig == nil {
  807. out.HingeConfig = new(HingeConfig)
  808. }
  809. (*out.HingeConfig).UnmarshalEasyJSON(in)
  810. }
  811. default:
  812. in.SkipRecursive()
  813. }
  814. in.WantComma()
  815. }
  816. in.Delim('}')
  817. if isTopLevel {
  818. in.Consumed()
  819. }
  820. }
  821. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay10(out *jwriter.Writer, in SetShowHingeParams) {
  822. out.RawByte('{')
  823. first := true
  824. _ = first
  825. if in.HingeConfig != nil {
  826. const prefix string = ",\"hingeConfig\":"
  827. first = false
  828. out.RawString(prefix[1:])
  829. (*in.HingeConfig).MarshalEasyJSON(out)
  830. }
  831. out.RawByte('}')
  832. }
  833. // MarshalJSON supports json.Marshaler interface
  834. func (v SetShowHingeParams) MarshalJSON() ([]byte, error) {
  835. w := jwriter.Writer{}
  836. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay10(&w, v)
  837. return w.Buffer.BuildBytes(), w.Error
  838. }
  839. // MarshalEasyJSON supports easyjson.Marshaler interface
  840. func (v SetShowHingeParams) MarshalEasyJSON(w *jwriter.Writer) {
  841. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay10(w, v)
  842. }
  843. // UnmarshalJSON supports json.Unmarshaler interface
  844. func (v *SetShowHingeParams) UnmarshalJSON(data []byte) error {
  845. r := jlexer.Lexer{Data: data}
  846. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay10(&r, v)
  847. return r.Error()
  848. }
  849. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  850. func (v *SetShowHingeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  851. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay10(l, v)
  852. }
  853. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay11(in *jlexer.Lexer, out *SetShowGridOverlaysParams) {
  854. isTopLevel := in.IsStart()
  855. if in.IsNull() {
  856. if isTopLevel {
  857. in.Consumed()
  858. }
  859. in.Skip()
  860. return
  861. }
  862. in.Delim('{')
  863. for !in.IsDelim('}') {
  864. key := in.UnsafeFieldName(false)
  865. in.WantColon()
  866. if in.IsNull() {
  867. in.Skip()
  868. in.WantComma()
  869. continue
  870. }
  871. switch key {
  872. case "gridNodeHighlightConfigs":
  873. if in.IsNull() {
  874. in.Skip()
  875. out.GridNodeHighlightConfigs = nil
  876. } else {
  877. in.Delim('[')
  878. if out.GridNodeHighlightConfigs == nil {
  879. if !in.IsDelim(']') {
  880. out.GridNodeHighlightConfigs = make([]*GridNodeHighlightConfig, 0, 8)
  881. } else {
  882. out.GridNodeHighlightConfigs = []*GridNodeHighlightConfig{}
  883. }
  884. } else {
  885. out.GridNodeHighlightConfigs = (out.GridNodeHighlightConfigs)[:0]
  886. }
  887. for !in.IsDelim(']') {
  888. var v7 *GridNodeHighlightConfig
  889. if in.IsNull() {
  890. in.Skip()
  891. v7 = nil
  892. } else {
  893. if v7 == nil {
  894. v7 = new(GridNodeHighlightConfig)
  895. }
  896. (*v7).UnmarshalEasyJSON(in)
  897. }
  898. out.GridNodeHighlightConfigs = append(out.GridNodeHighlightConfigs, v7)
  899. in.WantComma()
  900. }
  901. in.Delim(']')
  902. }
  903. default:
  904. in.SkipRecursive()
  905. }
  906. in.WantComma()
  907. }
  908. in.Delim('}')
  909. if isTopLevel {
  910. in.Consumed()
  911. }
  912. }
  913. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay11(out *jwriter.Writer, in SetShowGridOverlaysParams) {
  914. out.RawByte('{')
  915. first := true
  916. _ = first
  917. {
  918. const prefix string = ",\"gridNodeHighlightConfigs\":"
  919. out.RawString(prefix[1:])
  920. if in.GridNodeHighlightConfigs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  921. out.RawString("null")
  922. } else {
  923. out.RawByte('[')
  924. for v8, v9 := range in.GridNodeHighlightConfigs {
  925. if v8 > 0 {
  926. out.RawByte(',')
  927. }
  928. if v9 == nil {
  929. out.RawString("null")
  930. } else {
  931. (*v9).MarshalEasyJSON(out)
  932. }
  933. }
  934. out.RawByte(']')
  935. }
  936. }
  937. out.RawByte('}')
  938. }
  939. // MarshalJSON supports json.Marshaler interface
  940. func (v SetShowGridOverlaysParams) MarshalJSON() ([]byte, error) {
  941. w := jwriter.Writer{}
  942. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay11(&w, v)
  943. return w.Buffer.BuildBytes(), w.Error
  944. }
  945. // MarshalEasyJSON supports easyjson.Marshaler interface
  946. func (v SetShowGridOverlaysParams) MarshalEasyJSON(w *jwriter.Writer) {
  947. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay11(w, v)
  948. }
  949. // UnmarshalJSON supports json.Unmarshaler interface
  950. func (v *SetShowGridOverlaysParams) UnmarshalJSON(data []byte) error {
  951. r := jlexer.Lexer{Data: data}
  952. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay11(&r, v)
  953. return r.Error()
  954. }
  955. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  956. func (v *SetShowGridOverlaysParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  957. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay11(l, v)
  958. }
  959. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay12(in *jlexer.Lexer, out *SetShowFlexOverlaysParams) {
  960. isTopLevel := in.IsStart()
  961. if in.IsNull() {
  962. if isTopLevel {
  963. in.Consumed()
  964. }
  965. in.Skip()
  966. return
  967. }
  968. in.Delim('{')
  969. for !in.IsDelim('}') {
  970. key := in.UnsafeFieldName(false)
  971. in.WantColon()
  972. if in.IsNull() {
  973. in.Skip()
  974. in.WantComma()
  975. continue
  976. }
  977. switch key {
  978. case "flexNodeHighlightConfigs":
  979. if in.IsNull() {
  980. in.Skip()
  981. out.FlexNodeHighlightConfigs = nil
  982. } else {
  983. in.Delim('[')
  984. if out.FlexNodeHighlightConfigs == nil {
  985. if !in.IsDelim(']') {
  986. out.FlexNodeHighlightConfigs = make([]*FlexNodeHighlightConfig, 0, 8)
  987. } else {
  988. out.FlexNodeHighlightConfigs = []*FlexNodeHighlightConfig{}
  989. }
  990. } else {
  991. out.FlexNodeHighlightConfigs = (out.FlexNodeHighlightConfigs)[:0]
  992. }
  993. for !in.IsDelim(']') {
  994. var v10 *FlexNodeHighlightConfig
  995. if in.IsNull() {
  996. in.Skip()
  997. v10 = nil
  998. } else {
  999. if v10 == nil {
  1000. v10 = new(FlexNodeHighlightConfig)
  1001. }
  1002. (*v10).UnmarshalEasyJSON(in)
  1003. }
  1004. out.FlexNodeHighlightConfigs = append(out.FlexNodeHighlightConfigs, v10)
  1005. in.WantComma()
  1006. }
  1007. in.Delim(']')
  1008. }
  1009. default:
  1010. in.SkipRecursive()
  1011. }
  1012. in.WantComma()
  1013. }
  1014. in.Delim('}')
  1015. if isTopLevel {
  1016. in.Consumed()
  1017. }
  1018. }
  1019. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay12(out *jwriter.Writer, in SetShowFlexOverlaysParams) {
  1020. out.RawByte('{')
  1021. first := true
  1022. _ = first
  1023. {
  1024. const prefix string = ",\"flexNodeHighlightConfigs\":"
  1025. out.RawString(prefix[1:])
  1026. if in.FlexNodeHighlightConfigs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1027. out.RawString("null")
  1028. } else {
  1029. out.RawByte('[')
  1030. for v11, v12 := range in.FlexNodeHighlightConfigs {
  1031. if v11 > 0 {
  1032. out.RawByte(',')
  1033. }
  1034. if v12 == nil {
  1035. out.RawString("null")
  1036. } else {
  1037. (*v12).MarshalEasyJSON(out)
  1038. }
  1039. }
  1040. out.RawByte(']')
  1041. }
  1042. }
  1043. out.RawByte('}')
  1044. }
  1045. // MarshalJSON supports json.Marshaler interface
  1046. func (v SetShowFlexOverlaysParams) MarshalJSON() ([]byte, error) {
  1047. w := jwriter.Writer{}
  1048. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay12(&w, v)
  1049. return w.Buffer.BuildBytes(), w.Error
  1050. }
  1051. // MarshalEasyJSON supports easyjson.Marshaler interface
  1052. func (v SetShowFlexOverlaysParams) MarshalEasyJSON(w *jwriter.Writer) {
  1053. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay12(w, v)
  1054. }
  1055. // UnmarshalJSON supports json.Unmarshaler interface
  1056. func (v *SetShowFlexOverlaysParams) UnmarshalJSON(data []byte) error {
  1057. r := jlexer.Lexer{Data: data}
  1058. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay12(&r, v)
  1059. return r.Error()
  1060. }
  1061. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1062. func (v *SetShowFlexOverlaysParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1063. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay12(l, v)
  1064. }
  1065. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay13(in *jlexer.Lexer, out *SetShowFPSCounterParams) {
  1066. isTopLevel := in.IsStart()
  1067. if in.IsNull() {
  1068. if isTopLevel {
  1069. in.Consumed()
  1070. }
  1071. in.Skip()
  1072. return
  1073. }
  1074. in.Delim('{')
  1075. for !in.IsDelim('}') {
  1076. key := in.UnsafeFieldName(false)
  1077. in.WantColon()
  1078. if in.IsNull() {
  1079. in.Skip()
  1080. in.WantComma()
  1081. continue
  1082. }
  1083. switch key {
  1084. case "show":
  1085. out.Show = bool(in.Bool())
  1086. default:
  1087. in.SkipRecursive()
  1088. }
  1089. in.WantComma()
  1090. }
  1091. in.Delim('}')
  1092. if isTopLevel {
  1093. in.Consumed()
  1094. }
  1095. }
  1096. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay13(out *jwriter.Writer, in SetShowFPSCounterParams) {
  1097. out.RawByte('{')
  1098. first := true
  1099. _ = first
  1100. {
  1101. const prefix string = ",\"show\":"
  1102. out.RawString(prefix[1:])
  1103. out.Bool(bool(in.Show))
  1104. }
  1105. out.RawByte('}')
  1106. }
  1107. // MarshalJSON supports json.Marshaler interface
  1108. func (v SetShowFPSCounterParams) MarshalJSON() ([]byte, error) {
  1109. w := jwriter.Writer{}
  1110. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay13(&w, v)
  1111. return w.Buffer.BuildBytes(), w.Error
  1112. }
  1113. // MarshalEasyJSON supports easyjson.Marshaler interface
  1114. func (v SetShowFPSCounterParams) MarshalEasyJSON(w *jwriter.Writer) {
  1115. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay13(w, v)
  1116. }
  1117. // UnmarshalJSON supports json.Unmarshaler interface
  1118. func (v *SetShowFPSCounterParams) UnmarshalJSON(data []byte) error {
  1119. r := jlexer.Lexer{Data: data}
  1120. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay13(&r, v)
  1121. return r.Error()
  1122. }
  1123. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1124. func (v *SetShowFPSCounterParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1125. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay13(l, v)
  1126. }
  1127. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay14(in *jlexer.Lexer, out *SetShowDebugBordersParams) {
  1128. isTopLevel := in.IsStart()
  1129. if in.IsNull() {
  1130. if isTopLevel {
  1131. in.Consumed()
  1132. }
  1133. in.Skip()
  1134. return
  1135. }
  1136. in.Delim('{')
  1137. for !in.IsDelim('}') {
  1138. key := in.UnsafeFieldName(false)
  1139. in.WantColon()
  1140. if in.IsNull() {
  1141. in.Skip()
  1142. in.WantComma()
  1143. continue
  1144. }
  1145. switch key {
  1146. case "show":
  1147. out.Show = bool(in.Bool())
  1148. default:
  1149. in.SkipRecursive()
  1150. }
  1151. in.WantComma()
  1152. }
  1153. in.Delim('}')
  1154. if isTopLevel {
  1155. in.Consumed()
  1156. }
  1157. }
  1158. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay14(out *jwriter.Writer, in SetShowDebugBordersParams) {
  1159. out.RawByte('{')
  1160. first := true
  1161. _ = first
  1162. {
  1163. const prefix string = ",\"show\":"
  1164. out.RawString(prefix[1:])
  1165. out.Bool(bool(in.Show))
  1166. }
  1167. out.RawByte('}')
  1168. }
  1169. // MarshalJSON supports json.Marshaler interface
  1170. func (v SetShowDebugBordersParams) MarshalJSON() ([]byte, error) {
  1171. w := jwriter.Writer{}
  1172. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay14(&w, v)
  1173. return w.Buffer.BuildBytes(), w.Error
  1174. }
  1175. // MarshalEasyJSON supports easyjson.Marshaler interface
  1176. func (v SetShowDebugBordersParams) MarshalEasyJSON(w *jwriter.Writer) {
  1177. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay14(w, v)
  1178. }
  1179. // UnmarshalJSON supports json.Unmarshaler interface
  1180. func (v *SetShowDebugBordersParams) UnmarshalJSON(data []byte) error {
  1181. r := jlexer.Lexer{Data: data}
  1182. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay14(&r, v)
  1183. return r.Error()
  1184. }
  1185. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1186. func (v *SetShowDebugBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1187. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay14(l, v)
  1188. }
  1189. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay15(in *jlexer.Lexer, out *SetShowContainerQueryOverlaysParams) {
  1190. isTopLevel := in.IsStart()
  1191. if in.IsNull() {
  1192. if isTopLevel {
  1193. in.Consumed()
  1194. }
  1195. in.Skip()
  1196. return
  1197. }
  1198. in.Delim('{')
  1199. for !in.IsDelim('}') {
  1200. key := in.UnsafeFieldName(false)
  1201. in.WantColon()
  1202. if in.IsNull() {
  1203. in.Skip()
  1204. in.WantComma()
  1205. continue
  1206. }
  1207. switch key {
  1208. case "containerQueryHighlightConfigs":
  1209. if in.IsNull() {
  1210. in.Skip()
  1211. out.ContainerQueryHighlightConfigs = nil
  1212. } else {
  1213. in.Delim('[')
  1214. if out.ContainerQueryHighlightConfigs == nil {
  1215. if !in.IsDelim(']') {
  1216. out.ContainerQueryHighlightConfigs = make([]*ContainerQueryHighlightConfig, 0, 8)
  1217. } else {
  1218. out.ContainerQueryHighlightConfigs = []*ContainerQueryHighlightConfig{}
  1219. }
  1220. } else {
  1221. out.ContainerQueryHighlightConfigs = (out.ContainerQueryHighlightConfigs)[:0]
  1222. }
  1223. for !in.IsDelim(']') {
  1224. var v13 *ContainerQueryHighlightConfig
  1225. if in.IsNull() {
  1226. in.Skip()
  1227. v13 = nil
  1228. } else {
  1229. if v13 == nil {
  1230. v13 = new(ContainerQueryHighlightConfig)
  1231. }
  1232. (*v13).UnmarshalEasyJSON(in)
  1233. }
  1234. out.ContainerQueryHighlightConfigs = append(out.ContainerQueryHighlightConfigs, v13)
  1235. in.WantComma()
  1236. }
  1237. in.Delim(']')
  1238. }
  1239. default:
  1240. in.SkipRecursive()
  1241. }
  1242. in.WantComma()
  1243. }
  1244. in.Delim('}')
  1245. if isTopLevel {
  1246. in.Consumed()
  1247. }
  1248. }
  1249. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay15(out *jwriter.Writer, in SetShowContainerQueryOverlaysParams) {
  1250. out.RawByte('{')
  1251. first := true
  1252. _ = first
  1253. {
  1254. const prefix string = ",\"containerQueryHighlightConfigs\":"
  1255. out.RawString(prefix[1:])
  1256. if in.ContainerQueryHighlightConfigs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1257. out.RawString("null")
  1258. } else {
  1259. out.RawByte('[')
  1260. for v14, v15 := range in.ContainerQueryHighlightConfigs {
  1261. if v14 > 0 {
  1262. out.RawByte(',')
  1263. }
  1264. if v15 == nil {
  1265. out.RawString("null")
  1266. } else {
  1267. (*v15).MarshalEasyJSON(out)
  1268. }
  1269. }
  1270. out.RawByte(']')
  1271. }
  1272. }
  1273. out.RawByte('}')
  1274. }
  1275. // MarshalJSON supports json.Marshaler interface
  1276. func (v SetShowContainerQueryOverlaysParams) MarshalJSON() ([]byte, error) {
  1277. w := jwriter.Writer{}
  1278. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay15(&w, v)
  1279. return w.Buffer.BuildBytes(), w.Error
  1280. }
  1281. // MarshalEasyJSON supports easyjson.Marshaler interface
  1282. func (v SetShowContainerQueryOverlaysParams) MarshalEasyJSON(w *jwriter.Writer) {
  1283. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay15(w, v)
  1284. }
  1285. // UnmarshalJSON supports json.Unmarshaler interface
  1286. func (v *SetShowContainerQueryOverlaysParams) UnmarshalJSON(data []byte) error {
  1287. r := jlexer.Lexer{Data: data}
  1288. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay15(&r, v)
  1289. return r.Error()
  1290. }
  1291. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1292. func (v *SetShowContainerQueryOverlaysParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1293. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay15(l, v)
  1294. }
  1295. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay16(in *jlexer.Lexer, out *SetShowAdHighlightsParams) {
  1296. isTopLevel := in.IsStart()
  1297. if in.IsNull() {
  1298. if isTopLevel {
  1299. in.Consumed()
  1300. }
  1301. in.Skip()
  1302. return
  1303. }
  1304. in.Delim('{')
  1305. for !in.IsDelim('}') {
  1306. key := in.UnsafeFieldName(false)
  1307. in.WantColon()
  1308. if in.IsNull() {
  1309. in.Skip()
  1310. in.WantComma()
  1311. continue
  1312. }
  1313. switch key {
  1314. case "show":
  1315. out.Show = bool(in.Bool())
  1316. default:
  1317. in.SkipRecursive()
  1318. }
  1319. in.WantComma()
  1320. }
  1321. in.Delim('}')
  1322. if isTopLevel {
  1323. in.Consumed()
  1324. }
  1325. }
  1326. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay16(out *jwriter.Writer, in SetShowAdHighlightsParams) {
  1327. out.RawByte('{')
  1328. first := true
  1329. _ = first
  1330. {
  1331. const prefix string = ",\"show\":"
  1332. out.RawString(prefix[1:])
  1333. out.Bool(bool(in.Show))
  1334. }
  1335. out.RawByte('}')
  1336. }
  1337. // MarshalJSON supports json.Marshaler interface
  1338. func (v SetShowAdHighlightsParams) MarshalJSON() ([]byte, error) {
  1339. w := jwriter.Writer{}
  1340. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay16(&w, v)
  1341. return w.Buffer.BuildBytes(), w.Error
  1342. }
  1343. // MarshalEasyJSON supports easyjson.Marshaler interface
  1344. func (v SetShowAdHighlightsParams) MarshalEasyJSON(w *jwriter.Writer) {
  1345. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay16(w, v)
  1346. }
  1347. // UnmarshalJSON supports json.Unmarshaler interface
  1348. func (v *SetShowAdHighlightsParams) UnmarshalJSON(data []byte) error {
  1349. r := jlexer.Lexer{Data: data}
  1350. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay16(&r, v)
  1351. return r.Error()
  1352. }
  1353. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1354. func (v *SetShowAdHighlightsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1355. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay16(l, v)
  1356. }
  1357. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay17(in *jlexer.Lexer, out *SetPausedInDebuggerMessageParams) {
  1358. isTopLevel := in.IsStart()
  1359. if in.IsNull() {
  1360. if isTopLevel {
  1361. in.Consumed()
  1362. }
  1363. in.Skip()
  1364. return
  1365. }
  1366. in.Delim('{')
  1367. for !in.IsDelim('}') {
  1368. key := in.UnsafeFieldName(false)
  1369. in.WantColon()
  1370. if in.IsNull() {
  1371. in.Skip()
  1372. in.WantComma()
  1373. continue
  1374. }
  1375. switch key {
  1376. case "message":
  1377. out.Message = string(in.String())
  1378. default:
  1379. in.SkipRecursive()
  1380. }
  1381. in.WantComma()
  1382. }
  1383. in.Delim('}')
  1384. if isTopLevel {
  1385. in.Consumed()
  1386. }
  1387. }
  1388. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay17(out *jwriter.Writer, in SetPausedInDebuggerMessageParams) {
  1389. out.RawByte('{')
  1390. first := true
  1391. _ = first
  1392. if in.Message != "" {
  1393. const prefix string = ",\"message\":"
  1394. first = false
  1395. out.RawString(prefix[1:])
  1396. out.String(string(in.Message))
  1397. }
  1398. out.RawByte('}')
  1399. }
  1400. // MarshalJSON supports json.Marshaler interface
  1401. func (v SetPausedInDebuggerMessageParams) MarshalJSON() ([]byte, error) {
  1402. w := jwriter.Writer{}
  1403. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay17(&w, v)
  1404. return w.Buffer.BuildBytes(), w.Error
  1405. }
  1406. // MarshalEasyJSON supports easyjson.Marshaler interface
  1407. func (v SetPausedInDebuggerMessageParams) MarshalEasyJSON(w *jwriter.Writer) {
  1408. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay17(w, v)
  1409. }
  1410. // UnmarshalJSON supports json.Unmarshaler interface
  1411. func (v *SetPausedInDebuggerMessageParams) UnmarshalJSON(data []byte) error {
  1412. r := jlexer.Lexer{Data: data}
  1413. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay17(&r, v)
  1414. return r.Error()
  1415. }
  1416. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1417. func (v *SetPausedInDebuggerMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1418. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay17(l, v)
  1419. }
  1420. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay18(in *jlexer.Lexer, out *SetInspectModeParams) {
  1421. isTopLevel := in.IsStart()
  1422. if in.IsNull() {
  1423. if isTopLevel {
  1424. in.Consumed()
  1425. }
  1426. in.Skip()
  1427. return
  1428. }
  1429. in.Delim('{')
  1430. for !in.IsDelim('}') {
  1431. key := in.UnsafeFieldName(false)
  1432. in.WantColon()
  1433. if in.IsNull() {
  1434. in.Skip()
  1435. in.WantComma()
  1436. continue
  1437. }
  1438. switch key {
  1439. case "mode":
  1440. (out.Mode).UnmarshalEasyJSON(in)
  1441. case "highlightConfig":
  1442. if in.IsNull() {
  1443. in.Skip()
  1444. out.HighlightConfig = nil
  1445. } else {
  1446. if out.HighlightConfig == nil {
  1447. out.HighlightConfig = new(HighlightConfig)
  1448. }
  1449. (*out.HighlightConfig).UnmarshalEasyJSON(in)
  1450. }
  1451. default:
  1452. in.SkipRecursive()
  1453. }
  1454. in.WantComma()
  1455. }
  1456. in.Delim('}')
  1457. if isTopLevel {
  1458. in.Consumed()
  1459. }
  1460. }
  1461. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay18(out *jwriter.Writer, in SetInspectModeParams) {
  1462. out.RawByte('{')
  1463. first := true
  1464. _ = first
  1465. {
  1466. const prefix string = ",\"mode\":"
  1467. out.RawString(prefix[1:])
  1468. (in.Mode).MarshalEasyJSON(out)
  1469. }
  1470. if in.HighlightConfig != nil {
  1471. const prefix string = ",\"highlightConfig\":"
  1472. out.RawString(prefix)
  1473. (*in.HighlightConfig).MarshalEasyJSON(out)
  1474. }
  1475. out.RawByte('}')
  1476. }
  1477. // MarshalJSON supports json.Marshaler interface
  1478. func (v SetInspectModeParams) MarshalJSON() ([]byte, error) {
  1479. w := jwriter.Writer{}
  1480. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay18(&w, v)
  1481. return w.Buffer.BuildBytes(), w.Error
  1482. }
  1483. // MarshalEasyJSON supports easyjson.Marshaler interface
  1484. func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1485. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay18(w, v)
  1486. }
  1487. // UnmarshalJSON supports json.Unmarshaler interface
  1488. func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error {
  1489. r := jlexer.Lexer{Data: data}
  1490. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay18(&r, v)
  1491. return r.Error()
  1492. }
  1493. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1494. func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1495. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay18(l, v)
  1496. }
  1497. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay19(in *jlexer.Lexer, out *ScrollSnapHighlightConfig) {
  1498. isTopLevel := in.IsStart()
  1499. if in.IsNull() {
  1500. if isTopLevel {
  1501. in.Consumed()
  1502. }
  1503. in.Skip()
  1504. return
  1505. }
  1506. in.Delim('{')
  1507. for !in.IsDelim('}') {
  1508. key := in.UnsafeFieldName(false)
  1509. in.WantColon()
  1510. if in.IsNull() {
  1511. in.Skip()
  1512. in.WantComma()
  1513. continue
  1514. }
  1515. switch key {
  1516. case "scrollSnapContainerHighlightConfig":
  1517. if in.IsNull() {
  1518. in.Skip()
  1519. out.ScrollSnapContainerHighlightConfig = nil
  1520. } else {
  1521. if out.ScrollSnapContainerHighlightConfig == nil {
  1522. out.ScrollSnapContainerHighlightConfig = new(ScrollSnapContainerHighlightConfig)
  1523. }
  1524. (*out.ScrollSnapContainerHighlightConfig).UnmarshalEasyJSON(in)
  1525. }
  1526. case "nodeId":
  1527. (out.NodeID).UnmarshalEasyJSON(in)
  1528. default:
  1529. in.SkipRecursive()
  1530. }
  1531. in.WantComma()
  1532. }
  1533. in.Delim('}')
  1534. if isTopLevel {
  1535. in.Consumed()
  1536. }
  1537. }
  1538. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay19(out *jwriter.Writer, in ScrollSnapHighlightConfig) {
  1539. out.RawByte('{')
  1540. first := true
  1541. _ = first
  1542. {
  1543. const prefix string = ",\"scrollSnapContainerHighlightConfig\":"
  1544. out.RawString(prefix[1:])
  1545. if in.ScrollSnapContainerHighlightConfig == nil {
  1546. out.RawString("null")
  1547. } else {
  1548. (*in.ScrollSnapContainerHighlightConfig).MarshalEasyJSON(out)
  1549. }
  1550. }
  1551. {
  1552. const prefix string = ",\"nodeId\":"
  1553. out.RawString(prefix)
  1554. out.Int64(int64(in.NodeID))
  1555. }
  1556. out.RawByte('}')
  1557. }
  1558. // MarshalJSON supports json.Marshaler interface
  1559. func (v ScrollSnapHighlightConfig) MarshalJSON() ([]byte, error) {
  1560. w := jwriter.Writer{}
  1561. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay19(&w, v)
  1562. return w.Buffer.BuildBytes(), w.Error
  1563. }
  1564. // MarshalEasyJSON supports easyjson.Marshaler interface
  1565. func (v ScrollSnapHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  1566. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay19(w, v)
  1567. }
  1568. // UnmarshalJSON supports json.Unmarshaler interface
  1569. func (v *ScrollSnapHighlightConfig) UnmarshalJSON(data []byte) error {
  1570. r := jlexer.Lexer{Data: data}
  1571. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay19(&r, v)
  1572. return r.Error()
  1573. }
  1574. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1575. func (v *ScrollSnapHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1576. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay19(l, v)
  1577. }
  1578. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay20(in *jlexer.Lexer, out *ScrollSnapContainerHighlightConfig) {
  1579. isTopLevel := in.IsStart()
  1580. if in.IsNull() {
  1581. if isTopLevel {
  1582. in.Consumed()
  1583. }
  1584. in.Skip()
  1585. return
  1586. }
  1587. in.Delim('{')
  1588. for !in.IsDelim('}') {
  1589. key := in.UnsafeFieldName(false)
  1590. in.WantColon()
  1591. if in.IsNull() {
  1592. in.Skip()
  1593. in.WantComma()
  1594. continue
  1595. }
  1596. switch key {
  1597. case "snapportBorder":
  1598. if in.IsNull() {
  1599. in.Skip()
  1600. out.SnapportBorder = nil
  1601. } else {
  1602. if out.SnapportBorder == nil {
  1603. out.SnapportBorder = new(LineStyle)
  1604. }
  1605. (*out.SnapportBorder).UnmarshalEasyJSON(in)
  1606. }
  1607. case "snapAreaBorder":
  1608. if in.IsNull() {
  1609. in.Skip()
  1610. out.SnapAreaBorder = nil
  1611. } else {
  1612. if out.SnapAreaBorder == nil {
  1613. out.SnapAreaBorder = new(LineStyle)
  1614. }
  1615. (*out.SnapAreaBorder).UnmarshalEasyJSON(in)
  1616. }
  1617. case "scrollMarginColor":
  1618. if in.IsNull() {
  1619. in.Skip()
  1620. out.ScrollMarginColor = nil
  1621. } else {
  1622. if out.ScrollMarginColor == nil {
  1623. out.ScrollMarginColor = new(cdp.RGBA)
  1624. }
  1625. (*out.ScrollMarginColor).UnmarshalEasyJSON(in)
  1626. }
  1627. case "scrollPaddingColor":
  1628. if in.IsNull() {
  1629. in.Skip()
  1630. out.ScrollPaddingColor = nil
  1631. } else {
  1632. if out.ScrollPaddingColor == nil {
  1633. out.ScrollPaddingColor = new(cdp.RGBA)
  1634. }
  1635. (*out.ScrollPaddingColor).UnmarshalEasyJSON(in)
  1636. }
  1637. default:
  1638. in.SkipRecursive()
  1639. }
  1640. in.WantComma()
  1641. }
  1642. in.Delim('}')
  1643. if isTopLevel {
  1644. in.Consumed()
  1645. }
  1646. }
  1647. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay20(out *jwriter.Writer, in ScrollSnapContainerHighlightConfig) {
  1648. out.RawByte('{')
  1649. first := true
  1650. _ = first
  1651. if in.SnapportBorder != nil {
  1652. const prefix string = ",\"snapportBorder\":"
  1653. first = false
  1654. out.RawString(prefix[1:])
  1655. (*in.SnapportBorder).MarshalEasyJSON(out)
  1656. }
  1657. if in.SnapAreaBorder != nil {
  1658. const prefix string = ",\"snapAreaBorder\":"
  1659. if first {
  1660. first = false
  1661. out.RawString(prefix[1:])
  1662. } else {
  1663. out.RawString(prefix)
  1664. }
  1665. (*in.SnapAreaBorder).MarshalEasyJSON(out)
  1666. }
  1667. if in.ScrollMarginColor != nil {
  1668. const prefix string = ",\"scrollMarginColor\":"
  1669. if first {
  1670. first = false
  1671. out.RawString(prefix[1:])
  1672. } else {
  1673. out.RawString(prefix)
  1674. }
  1675. (*in.ScrollMarginColor).MarshalEasyJSON(out)
  1676. }
  1677. if in.ScrollPaddingColor != nil {
  1678. const prefix string = ",\"scrollPaddingColor\":"
  1679. if first {
  1680. first = false
  1681. out.RawString(prefix[1:])
  1682. } else {
  1683. out.RawString(prefix)
  1684. }
  1685. (*in.ScrollPaddingColor).MarshalEasyJSON(out)
  1686. }
  1687. out.RawByte('}')
  1688. }
  1689. // MarshalJSON supports json.Marshaler interface
  1690. func (v ScrollSnapContainerHighlightConfig) MarshalJSON() ([]byte, error) {
  1691. w := jwriter.Writer{}
  1692. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay20(&w, v)
  1693. return w.Buffer.BuildBytes(), w.Error
  1694. }
  1695. // MarshalEasyJSON supports easyjson.Marshaler interface
  1696. func (v ScrollSnapContainerHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  1697. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay20(w, v)
  1698. }
  1699. // UnmarshalJSON supports json.Unmarshaler interface
  1700. func (v *ScrollSnapContainerHighlightConfig) UnmarshalJSON(data []byte) error {
  1701. r := jlexer.Lexer{Data: data}
  1702. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay20(&r, v)
  1703. return r.Error()
  1704. }
  1705. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1706. func (v *ScrollSnapContainerHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1707. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay20(l, v)
  1708. }
  1709. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay21(in *jlexer.Lexer, out *LineStyle) {
  1710. isTopLevel := in.IsStart()
  1711. if in.IsNull() {
  1712. if isTopLevel {
  1713. in.Consumed()
  1714. }
  1715. in.Skip()
  1716. return
  1717. }
  1718. in.Delim('{')
  1719. for !in.IsDelim('}') {
  1720. key := in.UnsafeFieldName(false)
  1721. in.WantColon()
  1722. if in.IsNull() {
  1723. in.Skip()
  1724. in.WantComma()
  1725. continue
  1726. }
  1727. switch key {
  1728. case "color":
  1729. if in.IsNull() {
  1730. in.Skip()
  1731. out.Color = nil
  1732. } else {
  1733. if out.Color == nil {
  1734. out.Color = new(cdp.RGBA)
  1735. }
  1736. (*out.Color).UnmarshalEasyJSON(in)
  1737. }
  1738. case "pattern":
  1739. (out.Pattern).UnmarshalEasyJSON(in)
  1740. default:
  1741. in.SkipRecursive()
  1742. }
  1743. in.WantComma()
  1744. }
  1745. in.Delim('}')
  1746. if isTopLevel {
  1747. in.Consumed()
  1748. }
  1749. }
  1750. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay21(out *jwriter.Writer, in LineStyle) {
  1751. out.RawByte('{')
  1752. first := true
  1753. _ = first
  1754. if in.Color != nil {
  1755. const prefix string = ",\"color\":"
  1756. first = false
  1757. out.RawString(prefix[1:])
  1758. (*in.Color).MarshalEasyJSON(out)
  1759. }
  1760. if in.Pattern != "" {
  1761. const prefix string = ",\"pattern\":"
  1762. if first {
  1763. first = false
  1764. out.RawString(prefix[1:])
  1765. } else {
  1766. out.RawString(prefix)
  1767. }
  1768. (in.Pattern).MarshalEasyJSON(out)
  1769. }
  1770. out.RawByte('}')
  1771. }
  1772. // MarshalJSON supports json.Marshaler interface
  1773. func (v LineStyle) MarshalJSON() ([]byte, error) {
  1774. w := jwriter.Writer{}
  1775. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay21(&w, v)
  1776. return w.Buffer.BuildBytes(), w.Error
  1777. }
  1778. // MarshalEasyJSON supports easyjson.Marshaler interface
  1779. func (v LineStyle) MarshalEasyJSON(w *jwriter.Writer) {
  1780. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay21(w, v)
  1781. }
  1782. // UnmarshalJSON supports json.Unmarshaler interface
  1783. func (v *LineStyle) UnmarshalJSON(data []byte) error {
  1784. r := jlexer.Lexer{Data: data}
  1785. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay21(&r, v)
  1786. return r.Error()
  1787. }
  1788. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1789. func (v *LineStyle) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1790. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay21(l, v)
  1791. }
  1792. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay22(in *jlexer.Lexer, out *IsolationModeHighlightConfig) {
  1793. isTopLevel := in.IsStart()
  1794. if in.IsNull() {
  1795. if isTopLevel {
  1796. in.Consumed()
  1797. }
  1798. in.Skip()
  1799. return
  1800. }
  1801. in.Delim('{')
  1802. for !in.IsDelim('}') {
  1803. key := in.UnsafeFieldName(false)
  1804. in.WantColon()
  1805. if in.IsNull() {
  1806. in.Skip()
  1807. in.WantComma()
  1808. continue
  1809. }
  1810. switch key {
  1811. case "resizerColor":
  1812. if in.IsNull() {
  1813. in.Skip()
  1814. out.ResizerColor = nil
  1815. } else {
  1816. if out.ResizerColor == nil {
  1817. out.ResizerColor = new(cdp.RGBA)
  1818. }
  1819. (*out.ResizerColor).UnmarshalEasyJSON(in)
  1820. }
  1821. case "resizerHandleColor":
  1822. if in.IsNull() {
  1823. in.Skip()
  1824. out.ResizerHandleColor = nil
  1825. } else {
  1826. if out.ResizerHandleColor == nil {
  1827. out.ResizerHandleColor = new(cdp.RGBA)
  1828. }
  1829. (*out.ResizerHandleColor).UnmarshalEasyJSON(in)
  1830. }
  1831. case "maskColor":
  1832. if in.IsNull() {
  1833. in.Skip()
  1834. out.MaskColor = nil
  1835. } else {
  1836. if out.MaskColor == nil {
  1837. out.MaskColor = new(cdp.RGBA)
  1838. }
  1839. (*out.MaskColor).UnmarshalEasyJSON(in)
  1840. }
  1841. default:
  1842. in.SkipRecursive()
  1843. }
  1844. in.WantComma()
  1845. }
  1846. in.Delim('}')
  1847. if isTopLevel {
  1848. in.Consumed()
  1849. }
  1850. }
  1851. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay22(out *jwriter.Writer, in IsolationModeHighlightConfig) {
  1852. out.RawByte('{')
  1853. first := true
  1854. _ = first
  1855. if in.ResizerColor != nil {
  1856. const prefix string = ",\"resizerColor\":"
  1857. first = false
  1858. out.RawString(prefix[1:])
  1859. (*in.ResizerColor).MarshalEasyJSON(out)
  1860. }
  1861. if in.ResizerHandleColor != nil {
  1862. const prefix string = ",\"resizerHandleColor\":"
  1863. if first {
  1864. first = false
  1865. out.RawString(prefix[1:])
  1866. } else {
  1867. out.RawString(prefix)
  1868. }
  1869. (*in.ResizerHandleColor).MarshalEasyJSON(out)
  1870. }
  1871. if in.MaskColor != nil {
  1872. const prefix string = ",\"maskColor\":"
  1873. if first {
  1874. first = false
  1875. out.RawString(prefix[1:])
  1876. } else {
  1877. out.RawString(prefix)
  1878. }
  1879. (*in.MaskColor).MarshalEasyJSON(out)
  1880. }
  1881. out.RawByte('}')
  1882. }
  1883. // MarshalJSON supports json.Marshaler interface
  1884. func (v IsolationModeHighlightConfig) MarshalJSON() ([]byte, error) {
  1885. w := jwriter.Writer{}
  1886. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay22(&w, v)
  1887. return w.Buffer.BuildBytes(), w.Error
  1888. }
  1889. // MarshalEasyJSON supports easyjson.Marshaler interface
  1890. func (v IsolationModeHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  1891. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay22(w, v)
  1892. }
  1893. // UnmarshalJSON supports json.Unmarshaler interface
  1894. func (v *IsolationModeHighlightConfig) UnmarshalJSON(data []byte) error {
  1895. r := jlexer.Lexer{Data: data}
  1896. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay22(&r, v)
  1897. return r.Error()
  1898. }
  1899. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1900. func (v *IsolationModeHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1901. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay22(l, v)
  1902. }
  1903. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay23(in *jlexer.Lexer, out *IsolatedElementHighlightConfig) {
  1904. isTopLevel := in.IsStart()
  1905. if in.IsNull() {
  1906. if isTopLevel {
  1907. in.Consumed()
  1908. }
  1909. in.Skip()
  1910. return
  1911. }
  1912. in.Delim('{')
  1913. for !in.IsDelim('}') {
  1914. key := in.UnsafeFieldName(false)
  1915. in.WantColon()
  1916. if in.IsNull() {
  1917. in.Skip()
  1918. in.WantComma()
  1919. continue
  1920. }
  1921. switch key {
  1922. case "isolationModeHighlightConfig":
  1923. if in.IsNull() {
  1924. in.Skip()
  1925. out.IsolationModeHighlightConfig = nil
  1926. } else {
  1927. if out.IsolationModeHighlightConfig == nil {
  1928. out.IsolationModeHighlightConfig = new(IsolationModeHighlightConfig)
  1929. }
  1930. (*out.IsolationModeHighlightConfig).UnmarshalEasyJSON(in)
  1931. }
  1932. case "nodeId":
  1933. (out.NodeID).UnmarshalEasyJSON(in)
  1934. default:
  1935. in.SkipRecursive()
  1936. }
  1937. in.WantComma()
  1938. }
  1939. in.Delim('}')
  1940. if isTopLevel {
  1941. in.Consumed()
  1942. }
  1943. }
  1944. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay23(out *jwriter.Writer, in IsolatedElementHighlightConfig) {
  1945. out.RawByte('{')
  1946. first := true
  1947. _ = first
  1948. {
  1949. const prefix string = ",\"isolationModeHighlightConfig\":"
  1950. out.RawString(prefix[1:])
  1951. if in.IsolationModeHighlightConfig == nil {
  1952. out.RawString("null")
  1953. } else {
  1954. (*in.IsolationModeHighlightConfig).MarshalEasyJSON(out)
  1955. }
  1956. }
  1957. {
  1958. const prefix string = ",\"nodeId\":"
  1959. out.RawString(prefix)
  1960. out.Int64(int64(in.NodeID))
  1961. }
  1962. out.RawByte('}')
  1963. }
  1964. // MarshalJSON supports json.Marshaler interface
  1965. func (v IsolatedElementHighlightConfig) MarshalJSON() ([]byte, error) {
  1966. w := jwriter.Writer{}
  1967. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay23(&w, v)
  1968. return w.Buffer.BuildBytes(), w.Error
  1969. }
  1970. // MarshalEasyJSON supports easyjson.Marshaler interface
  1971. func (v IsolatedElementHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  1972. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay23(w, v)
  1973. }
  1974. // UnmarshalJSON supports json.Unmarshaler interface
  1975. func (v *IsolatedElementHighlightConfig) UnmarshalJSON(data []byte) error {
  1976. r := jlexer.Lexer{Data: data}
  1977. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay23(&r, v)
  1978. return r.Error()
  1979. }
  1980. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1981. func (v *IsolatedElementHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1982. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay23(l, v)
  1983. }
  1984. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay24(in *jlexer.Lexer, out *HingeConfig) {
  1985. isTopLevel := in.IsStart()
  1986. if in.IsNull() {
  1987. if isTopLevel {
  1988. in.Consumed()
  1989. }
  1990. in.Skip()
  1991. return
  1992. }
  1993. in.Delim('{')
  1994. for !in.IsDelim('}') {
  1995. key := in.UnsafeFieldName(false)
  1996. in.WantColon()
  1997. if in.IsNull() {
  1998. in.Skip()
  1999. in.WantComma()
  2000. continue
  2001. }
  2002. switch key {
  2003. case "rect":
  2004. if in.IsNull() {
  2005. in.Skip()
  2006. out.Rect = nil
  2007. } else {
  2008. if out.Rect == nil {
  2009. out.Rect = new(dom.Rect)
  2010. }
  2011. (*out.Rect).UnmarshalEasyJSON(in)
  2012. }
  2013. case "contentColor":
  2014. if in.IsNull() {
  2015. in.Skip()
  2016. out.ContentColor = nil
  2017. } else {
  2018. if out.ContentColor == nil {
  2019. out.ContentColor = new(cdp.RGBA)
  2020. }
  2021. (*out.ContentColor).UnmarshalEasyJSON(in)
  2022. }
  2023. case "outlineColor":
  2024. if in.IsNull() {
  2025. in.Skip()
  2026. out.OutlineColor = nil
  2027. } else {
  2028. if out.OutlineColor == nil {
  2029. out.OutlineColor = new(cdp.RGBA)
  2030. }
  2031. (*out.OutlineColor).UnmarshalEasyJSON(in)
  2032. }
  2033. default:
  2034. in.SkipRecursive()
  2035. }
  2036. in.WantComma()
  2037. }
  2038. in.Delim('}')
  2039. if isTopLevel {
  2040. in.Consumed()
  2041. }
  2042. }
  2043. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay24(out *jwriter.Writer, in HingeConfig) {
  2044. out.RawByte('{')
  2045. first := true
  2046. _ = first
  2047. {
  2048. const prefix string = ",\"rect\":"
  2049. out.RawString(prefix[1:])
  2050. if in.Rect == nil {
  2051. out.RawString("null")
  2052. } else {
  2053. (*in.Rect).MarshalEasyJSON(out)
  2054. }
  2055. }
  2056. if in.ContentColor != nil {
  2057. const prefix string = ",\"contentColor\":"
  2058. out.RawString(prefix)
  2059. (*in.ContentColor).MarshalEasyJSON(out)
  2060. }
  2061. if in.OutlineColor != nil {
  2062. const prefix string = ",\"outlineColor\":"
  2063. out.RawString(prefix)
  2064. (*in.OutlineColor).MarshalEasyJSON(out)
  2065. }
  2066. out.RawByte('}')
  2067. }
  2068. // MarshalJSON supports json.Marshaler interface
  2069. func (v HingeConfig) MarshalJSON() ([]byte, error) {
  2070. w := jwriter.Writer{}
  2071. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay24(&w, v)
  2072. return w.Buffer.BuildBytes(), w.Error
  2073. }
  2074. // MarshalEasyJSON supports easyjson.Marshaler interface
  2075. func (v HingeConfig) MarshalEasyJSON(w *jwriter.Writer) {
  2076. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay24(w, v)
  2077. }
  2078. // UnmarshalJSON supports json.Unmarshaler interface
  2079. func (v *HingeConfig) UnmarshalJSON(data []byte) error {
  2080. r := jlexer.Lexer{Data: data}
  2081. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay24(&r, v)
  2082. return r.Error()
  2083. }
  2084. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2085. func (v *HingeConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2086. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay24(l, v)
  2087. }
  2088. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay25(in *jlexer.Lexer, out *HighlightSourceOrderParams) {
  2089. isTopLevel := in.IsStart()
  2090. if in.IsNull() {
  2091. if isTopLevel {
  2092. in.Consumed()
  2093. }
  2094. in.Skip()
  2095. return
  2096. }
  2097. in.Delim('{')
  2098. for !in.IsDelim('}') {
  2099. key := in.UnsafeFieldName(false)
  2100. in.WantColon()
  2101. if in.IsNull() {
  2102. in.Skip()
  2103. in.WantComma()
  2104. continue
  2105. }
  2106. switch key {
  2107. case "sourceOrderConfig":
  2108. if in.IsNull() {
  2109. in.Skip()
  2110. out.SourceOrderConfig = nil
  2111. } else {
  2112. if out.SourceOrderConfig == nil {
  2113. out.SourceOrderConfig = new(SourceOrderConfig)
  2114. }
  2115. (*out.SourceOrderConfig).UnmarshalEasyJSON(in)
  2116. }
  2117. case "nodeId":
  2118. (out.NodeID).UnmarshalEasyJSON(in)
  2119. case "backendNodeId":
  2120. (out.BackendNodeID).UnmarshalEasyJSON(in)
  2121. case "objectId":
  2122. out.ObjectID = runtime.RemoteObjectID(in.String())
  2123. default:
  2124. in.SkipRecursive()
  2125. }
  2126. in.WantComma()
  2127. }
  2128. in.Delim('}')
  2129. if isTopLevel {
  2130. in.Consumed()
  2131. }
  2132. }
  2133. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay25(out *jwriter.Writer, in HighlightSourceOrderParams) {
  2134. out.RawByte('{')
  2135. first := true
  2136. _ = first
  2137. {
  2138. const prefix string = ",\"sourceOrderConfig\":"
  2139. out.RawString(prefix[1:])
  2140. if in.SourceOrderConfig == nil {
  2141. out.RawString("null")
  2142. } else {
  2143. (*in.SourceOrderConfig).MarshalEasyJSON(out)
  2144. }
  2145. }
  2146. if in.NodeID != 0 {
  2147. const prefix string = ",\"nodeId\":"
  2148. out.RawString(prefix)
  2149. out.Int64(int64(in.NodeID))
  2150. }
  2151. if in.BackendNodeID != 0 {
  2152. const prefix string = ",\"backendNodeId\":"
  2153. out.RawString(prefix)
  2154. out.Int64(int64(in.BackendNodeID))
  2155. }
  2156. if in.ObjectID != "" {
  2157. const prefix string = ",\"objectId\":"
  2158. out.RawString(prefix)
  2159. out.String(string(in.ObjectID))
  2160. }
  2161. out.RawByte('}')
  2162. }
  2163. // MarshalJSON supports json.Marshaler interface
  2164. func (v HighlightSourceOrderParams) MarshalJSON() ([]byte, error) {
  2165. w := jwriter.Writer{}
  2166. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay25(&w, v)
  2167. return w.Buffer.BuildBytes(), w.Error
  2168. }
  2169. // MarshalEasyJSON supports easyjson.Marshaler interface
  2170. func (v HighlightSourceOrderParams) MarshalEasyJSON(w *jwriter.Writer) {
  2171. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay25(w, v)
  2172. }
  2173. // UnmarshalJSON supports json.Unmarshaler interface
  2174. func (v *HighlightSourceOrderParams) UnmarshalJSON(data []byte) error {
  2175. r := jlexer.Lexer{Data: data}
  2176. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay25(&r, v)
  2177. return r.Error()
  2178. }
  2179. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2180. func (v *HighlightSourceOrderParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2181. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay25(l, v)
  2182. }
  2183. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay26(in *jlexer.Lexer, out *HighlightRectParams) {
  2184. isTopLevel := in.IsStart()
  2185. if in.IsNull() {
  2186. if isTopLevel {
  2187. in.Consumed()
  2188. }
  2189. in.Skip()
  2190. return
  2191. }
  2192. in.Delim('{')
  2193. for !in.IsDelim('}') {
  2194. key := in.UnsafeFieldName(false)
  2195. in.WantColon()
  2196. if in.IsNull() {
  2197. in.Skip()
  2198. in.WantComma()
  2199. continue
  2200. }
  2201. switch key {
  2202. case "x":
  2203. out.X = int64(in.Int64())
  2204. case "y":
  2205. out.Y = int64(in.Int64())
  2206. case "width":
  2207. out.Width = int64(in.Int64())
  2208. case "height":
  2209. out.Height = int64(in.Int64())
  2210. case "color":
  2211. if in.IsNull() {
  2212. in.Skip()
  2213. out.Color = nil
  2214. } else {
  2215. if out.Color == nil {
  2216. out.Color = new(cdp.RGBA)
  2217. }
  2218. (*out.Color).UnmarshalEasyJSON(in)
  2219. }
  2220. case "outlineColor":
  2221. if in.IsNull() {
  2222. in.Skip()
  2223. out.OutlineColor = nil
  2224. } else {
  2225. if out.OutlineColor == nil {
  2226. out.OutlineColor = new(cdp.RGBA)
  2227. }
  2228. (*out.OutlineColor).UnmarshalEasyJSON(in)
  2229. }
  2230. default:
  2231. in.SkipRecursive()
  2232. }
  2233. in.WantComma()
  2234. }
  2235. in.Delim('}')
  2236. if isTopLevel {
  2237. in.Consumed()
  2238. }
  2239. }
  2240. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay26(out *jwriter.Writer, in HighlightRectParams) {
  2241. out.RawByte('{')
  2242. first := true
  2243. _ = first
  2244. {
  2245. const prefix string = ",\"x\":"
  2246. out.RawString(prefix[1:])
  2247. out.Int64(int64(in.X))
  2248. }
  2249. {
  2250. const prefix string = ",\"y\":"
  2251. out.RawString(prefix)
  2252. out.Int64(int64(in.Y))
  2253. }
  2254. {
  2255. const prefix string = ",\"width\":"
  2256. out.RawString(prefix)
  2257. out.Int64(int64(in.Width))
  2258. }
  2259. {
  2260. const prefix string = ",\"height\":"
  2261. out.RawString(prefix)
  2262. out.Int64(int64(in.Height))
  2263. }
  2264. if in.Color != nil {
  2265. const prefix string = ",\"color\":"
  2266. out.RawString(prefix)
  2267. (*in.Color).MarshalEasyJSON(out)
  2268. }
  2269. if in.OutlineColor != nil {
  2270. const prefix string = ",\"outlineColor\":"
  2271. out.RawString(prefix)
  2272. (*in.OutlineColor).MarshalEasyJSON(out)
  2273. }
  2274. out.RawByte('}')
  2275. }
  2276. // MarshalJSON supports json.Marshaler interface
  2277. func (v HighlightRectParams) MarshalJSON() ([]byte, error) {
  2278. w := jwriter.Writer{}
  2279. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay26(&w, v)
  2280. return w.Buffer.BuildBytes(), w.Error
  2281. }
  2282. // MarshalEasyJSON supports easyjson.Marshaler interface
  2283. func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer) {
  2284. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay26(w, v)
  2285. }
  2286. // UnmarshalJSON supports json.Unmarshaler interface
  2287. func (v *HighlightRectParams) UnmarshalJSON(data []byte) error {
  2288. r := jlexer.Lexer{Data: data}
  2289. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay26(&r, v)
  2290. return r.Error()
  2291. }
  2292. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2293. func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2294. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay26(l, v)
  2295. }
  2296. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay27(in *jlexer.Lexer, out *HighlightQuadParams) {
  2297. isTopLevel := in.IsStart()
  2298. if in.IsNull() {
  2299. if isTopLevel {
  2300. in.Consumed()
  2301. }
  2302. in.Skip()
  2303. return
  2304. }
  2305. in.Delim('{')
  2306. for !in.IsDelim('}') {
  2307. key := in.UnsafeFieldName(false)
  2308. in.WantColon()
  2309. if in.IsNull() {
  2310. in.Skip()
  2311. in.WantComma()
  2312. continue
  2313. }
  2314. switch key {
  2315. case "quad":
  2316. if in.IsNull() {
  2317. in.Skip()
  2318. out.Quad = nil
  2319. } else {
  2320. in.Delim('[')
  2321. if out.Quad == nil {
  2322. if !in.IsDelim(']') {
  2323. out.Quad = make(dom.Quad, 0, 8)
  2324. } else {
  2325. out.Quad = dom.Quad{}
  2326. }
  2327. } else {
  2328. out.Quad = (out.Quad)[:0]
  2329. }
  2330. for !in.IsDelim(']') {
  2331. var v16 float64
  2332. v16 = float64(in.Float64())
  2333. out.Quad = append(out.Quad, v16)
  2334. in.WantComma()
  2335. }
  2336. in.Delim(']')
  2337. }
  2338. case "color":
  2339. if in.IsNull() {
  2340. in.Skip()
  2341. out.Color = nil
  2342. } else {
  2343. if out.Color == nil {
  2344. out.Color = new(cdp.RGBA)
  2345. }
  2346. (*out.Color).UnmarshalEasyJSON(in)
  2347. }
  2348. case "outlineColor":
  2349. if in.IsNull() {
  2350. in.Skip()
  2351. out.OutlineColor = nil
  2352. } else {
  2353. if out.OutlineColor == nil {
  2354. out.OutlineColor = new(cdp.RGBA)
  2355. }
  2356. (*out.OutlineColor).UnmarshalEasyJSON(in)
  2357. }
  2358. default:
  2359. in.SkipRecursive()
  2360. }
  2361. in.WantComma()
  2362. }
  2363. in.Delim('}')
  2364. if isTopLevel {
  2365. in.Consumed()
  2366. }
  2367. }
  2368. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay27(out *jwriter.Writer, in HighlightQuadParams) {
  2369. out.RawByte('{')
  2370. first := true
  2371. _ = first
  2372. {
  2373. const prefix string = ",\"quad\":"
  2374. out.RawString(prefix[1:])
  2375. if in.Quad == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2376. out.RawString("null")
  2377. } else {
  2378. out.RawByte('[')
  2379. for v17, v18 := range in.Quad {
  2380. if v17 > 0 {
  2381. out.RawByte(',')
  2382. }
  2383. out.Float64(float64(v18))
  2384. }
  2385. out.RawByte(']')
  2386. }
  2387. }
  2388. if in.Color != nil {
  2389. const prefix string = ",\"color\":"
  2390. out.RawString(prefix)
  2391. (*in.Color).MarshalEasyJSON(out)
  2392. }
  2393. if in.OutlineColor != nil {
  2394. const prefix string = ",\"outlineColor\":"
  2395. out.RawString(prefix)
  2396. (*in.OutlineColor).MarshalEasyJSON(out)
  2397. }
  2398. out.RawByte('}')
  2399. }
  2400. // MarshalJSON supports json.Marshaler interface
  2401. func (v HighlightQuadParams) MarshalJSON() ([]byte, error) {
  2402. w := jwriter.Writer{}
  2403. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay27(&w, v)
  2404. return w.Buffer.BuildBytes(), w.Error
  2405. }
  2406. // MarshalEasyJSON supports easyjson.Marshaler interface
  2407. func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer) {
  2408. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay27(w, v)
  2409. }
  2410. // UnmarshalJSON supports json.Unmarshaler interface
  2411. func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error {
  2412. r := jlexer.Lexer{Data: data}
  2413. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay27(&r, v)
  2414. return r.Error()
  2415. }
  2416. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2417. func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2418. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay27(l, v)
  2419. }
  2420. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay28(in *jlexer.Lexer, out *HighlightNodeParams) {
  2421. isTopLevel := in.IsStart()
  2422. if in.IsNull() {
  2423. if isTopLevel {
  2424. in.Consumed()
  2425. }
  2426. in.Skip()
  2427. return
  2428. }
  2429. in.Delim('{')
  2430. for !in.IsDelim('}') {
  2431. key := in.UnsafeFieldName(false)
  2432. in.WantColon()
  2433. if in.IsNull() {
  2434. in.Skip()
  2435. in.WantComma()
  2436. continue
  2437. }
  2438. switch key {
  2439. case "highlightConfig":
  2440. if in.IsNull() {
  2441. in.Skip()
  2442. out.HighlightConfig = nil
  2443. } else {
  2444. if out.HighlightConfig == nil {
  2445. out.HighlightConfig = new(HighlightConfig)
  2446. }
  2447. (*out.HighlightConfig).UnmarshalEasyJSON(in)
  2448. }
  2449. case "nodeId":
  2450. (out.NodeID).UnmarshalEasyJSON(in)
  2451. case "backendNodeId":
  2452. (out.BackendNodeID).UnmarshalEasyJSON(in)
  2453. case "objectId":
  2454. out.ObjectID = runtime.RemoteObjectID(in.String())
  2455. case "selector":
  2456. out.Selector = string(in.String())
  2457. default:
  2458. in.SkipRecursive()
  2459. }
  2460. in.WantComma()
  2461. }
  2462. in.Delim('}')
  2463. if isTopLevel {
  2464. in.Consumed()
  2465. }
  2466. }
  2467. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay28(out *jwriter.Writer, in HighlightNodeParams) {
  2468. out.RawByte('{')
  2469. first := true
  2470. _ = first
  2471. {
  2472. const prefix string = ",\"highlightConfig\":"
  2473. out.RawString(prefix[1:])
  2474. if in.HighlightConfig == nil {
  2475. out.RawString("null")
  2476. } else {
  2477. (*in.HighlightConfig).MarshalEasyJSON(out)
  2478. }
  2479. }
  2480. if in.NodeID != 0 {
  2481. const prefix string = ",\"nodeId\":"
  2482. out.RawString(prefix)
  2483. out.Int64(int64(in.NodeID))
  2484. }
  2485. if in.BackendNodeID != 0 {
  2486. const prefix string = ",\"backendNodeId\":"
  2487. out.RawString(prefix)
  2488. out.Int64(int64(in.BackendNodeID))
  2489. }
  2490. if in.ObjectID != "" {
  2491. const prefix string = ",\"objectId\":"
  2492. out.RawString(prefix)
  2493. out.String(string(in.ObjectID))
  2494. }
  2495. if in.Selector != "" {
  2496. const prefix string = ",\"selector\":"
  2497. out.RawString(prefix)
  2498. out.String(string(in.Selector))
  2499. }
  2500. out.RawByte('}')
  2501. }
  2502. // MarshalJSON supports json.Marshaler interface
  2503. func (v HighlightNodeParams) MarshalJSON() ([]byte, error) {
  2504. w := jwriter.Writer{}
  2505. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay28(&w, v)
  2506. return w.Buffer.BuildBytes(), w.Error
  2507. }
  2508. // MarshalEasyJSON supports easyjson.Marshaler interface
  2509. func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  2510. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay28(w, v)
  2511. }
  2512. // UnmarshalJSON supports json.Unmarshaler interface
  2513. func (v *HighlightNodeParams) UnmarshalJSON(data []byte) error {
  2514. r := jlexer.Lexer{Data: data}
  2515. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay28(&r, v)
  2516. return r.Error()
  2517. }
  2518. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2519. func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2520. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay28(l, v)
  2521. }
  2522. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay29(in *jlexer.Lexer, out *HighlightConfig) {
  2523. isTopLevel := in.IsStart()
  2524. if in.IsNull() {
  2525. if isTopLevel {
  2526. in.Consumed()
  2527. }
  2528. in.Skip()
  2529. return
  2530. }
  2531. in.Delim('{')
  2532. for !in.IsDelim('}') {
  2533. key := in.UnsafeFieldName(false)
  2534. in.WantColon()
  2535. if in.IsNull() {
  2536. in.Skip()
  2537. in.WantComma()
  2538. continue
  2539. }
  2540. switch key {
  2541. case "showInfo":
  2542. out.ShowInfo = bool(in.Bool())
  2543. case "showStyles":
  2544. out.ShowStyles = bool(in.Bool())
  2545. case "showRulers":
  2546. out.ShowRulers = bool(in.Bool())
  2547. case "showAccessibilityInfo":
  2548. out.ShowAccessibilityInfo = bool(in.Bool())
  2549. case "showExtensionLines":
  2550. out.ShowExtensionLines = bool(in.Bool())
  2551. case "contentColor":
  2552. if in.IsNull() {
  2553. in.Skip()
  2554. out.ContentColor = nil
  2555. } else {
  2556. if out.ContentColor == nil {
  2557. out.ContentColor = new(cdp.RGBA)
  2558. }
  2559. (*out.ContentColor).UnmarshalEasyJSON(in)
  2560. }
  2561. case "paddingColor":
  2562. if in.IsNull() {
  2563. in.Skip()
  2564. out.PaddingColor = nil
  2565. } else {
  2566. if out.PaddingColor == nil {
  2567. out.PaddingColor = new(cdp.RGBA)
  2568. }
  2569. (*out.PaddingColor).UnmarshalEasyJSON(in)
  2570. }
  2571. case "borderColor":
  2572. if in.IsNull() {
  2573. in.Skip()
  2574. out.BorderColor = nil
  2575. } else {
  2576. if out.BorderColor == nil {
  2577. out.BorderColor = new(cdp.RGBA)
  2578. }
  2579. (*out.BorderColor).UnmarshalEasyJSON(in)
  2580. }
  2581. case "marginColor":
  2582. if in.IsNull() {
  2583. in.Skip()
  2584. out.MarginColor = nil
  2585. } else {
  2586. if out.MarginColor == nil {
  2587. out.MarginColor = new(cdp.RGBA)
  2588. }
  2589. (*out.MarginColor).UnmarshalEasyJSON(in)
  2590. }
  2591. case "eventTargetColor":
  2592. if in.IsNull() {
  2593. in.Skip()
  2594. out.EventTargetColor = nil
  2595. } else {
  2596. if out.EventTargetColor == nil {
  2597. out.EventTargetColor = new(cdp.RGBA)
  2598. }
  2599. (*out.EventTargetColor).UnmarshalEasyJSON(in)
  2600. }
  2601. case "shapeColor":
  2602. if in.IsNull() {
  2603. in.Skip()
  2604. out.ShapeColor = nil
  2605. } else {
  2606. if out.ShapeColor == nil {
  2607. out.ShapeColor = new(cdp.RGBA)
  2608. }
  2609. (*out.ShapeColor).UnmarshalEasyJSON(in)
  2610. }
  2611. case "shapeMarginColor":
  2612. if in.IsNull() {
  2613. in.Skip()
  2614. out.ShapeMarginColor = nil
  2615. } else {
  2616. if out.ShapeMarginColor == nil {
  2617. out.ShapeMarginColor = new(cdp.RGBA)
  2618. }
  2619. (*out.ShapeMarginColor).UnmarshalEasyJSON(in)
  2620. }
  2621. case "cssGridColor":
  2622. if in.IsNull() {
  2623. in.Skip()
  2624. out.CSSGridColor = nil
  2625. } else {
  2626. if out.CSSGridColor == nil {
  2627. out.CSSGridColor = new(cdp.RGBA)
  2628. }
  2629. (*out.CSSGridColor).UnmarshalEasyJSON(in)
  2630. }
  2631. case "colorFormat":
  2632. (out.ColorFormat).UnmarshalEasyJSON(in)
  2633. case "gridHighlightConfig":
  2634. if in.IsNull() {
  2635. in.Skip()
  2636. out.GridHighlightConfig = nil
  2637. } else {
  2638. if out.GridHighlightConfig == nil {
  2639. out.GridHighlightConfig = new(GridHighlightConfig)
  2640. }
  2641. (*out.GridHighlightConfig).UnmarshalEasyJSON(in)
  2642. }
  2643. case "flexContainerHighlightConfig":
  2644. if in.IsNull() {
  2645. in.Skip()
  2646. out.FlexContainerHighlightConfig = nil
  2647. } else {
  2648. if out.FlexContainerHighlightConfig == nil {
  2649. out.FlexContainerHighlightConfig = new(FlexContainerHighlightConfig)
  2650. }
  2651. (*out.FlexContainerHighlightConfig).UnmarshalEasyJSON(in)
  2652. }
  2653. case "flexItemHighlightConfig":
  2654. if in.IsNull() {
  2655. in.Skip()
  2656. out.FlexItemHighlightConfig = nil
  2657. } else {
  2658. if out.FlexItemHighlightConfig == nil {
  2659. out.FlexItemHighlightConfig = new(FlexItemHighlightConfig)
  2660. }
  2661. (*out.FlexItemHighlightConfig).UnmarshalEasyJSON(in)
  2662. }
  2663. case "contrastAlgorithm":
  2664. (out.ContrastAlgorithm).UnmarshalEasyJSON(in)
  2665. case "containerQueryContainerHighlightConfig":
  2666. if in.IsNull() {
  2667. in.Skip()
  2668. out.ContainerQueryContainerHighlightConfig = nil
  2669. } else {
  2670. if out.ContainerQueryContainerHighlightConfig == nil {
  2671. out.ContainerQueryContainerHighlightConfig = new(ContainerQueryContainerHighlightConfig)
  2672. }
  2673. (*out.ContainerQueryContainerHighlightConfig).UnmarshalEasyJSON(in)
  2674. }
  2675. default:
  2676. in.SkipRecursive()
  2677. }
  2678. in.WantComma()
  2679. }
  2680. in.Delim('}')
  2681. if isTopLevel {
  2682. in.Consumed()
  2683. }
  2684. }
  2685. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay29(out *jwriter.Writer, in HighlightConfig) {
  2686. out.RawByte('{')
  2687. first := true
  2688. _ = first
  2689. if in.ShowInfo {
  2690. const prefix string = ",\"showInfo\":"
  2691. first = false
  2692. out.RawString(prefix[1:])
  2693. out.Bool(bool(in.ShowInfo))
  2694. }
  2695. if in.ShowStyles {
  2696. const prefix string = ",\"showStyles\":"
  2697. if first {
  2698. first = false
  2699. out.RawString(prefix[1:])
  2700. } else {
  2701. out.RawString(prefix)
  2702. }
  2703. out.Bool(bool(in.ShowStyles))
  2704. }
  2705. if in.ShowRulers {
  2706. const prefix string = ",\"showRulers\":"
  2707. if first {
  2708. first = false
  2709. out.RawString(prefix[1:])
  2710. } else {
  2711. out.RawString(prefix)
  2712. }
  2713. out.Bool(bool(in.ShowRulers))
  2714. }
  2715. if in.ShowAccessibilityInfo {
  2716. const prefix string = ",\"showAccessibilityInfo\":"
  2717. if first {
  2718. first = false
  2719. out.RawString(prefix[1:])
  2720. } else {
  2721. out.RawString(prefix)
  2722. }
  2723. out.Bool(bool(in.ShowAccessibilityInfo))
  2724. }
  2725. if in.ShowExtensionLines {
  2726. const prefix string = ",\"showExtensionLines\":"
  2727. if first {
  2728. first = false
  2729. out.RawString(prefix[1:])
  2730. } else {
  2731. out.RawString(prefix)
  2732. }
  2733. out.Bool(bool(in.ShowExtensionLines))
  2734. }
  2735. if in.ContentColor != nil {
  2736. const prefix string = ",\"contentColor\":"
  2737. if first {
  2738. first = false
  2739. out.RawString(prefix[1:])
  2740. } else {
  2741. out.RawString(prefix)
  2742. }
  2743. (*in.ContentColor).MarshalEasyJSON(out)
  2744. }
  2745. if in.PaddingColor != nil {
  2746. const prefix string = ",\"paddingColor\":"
  2747. if first {
  2748. first = false
  2749. out.RawString(prefix[1:])
  2750. } else {
  2751. out.RawString(prefix)
  2752. }
  2753. (*in.PaddingColor).MarshalEasyJSON(out)
  2754. }
  2755. if in.BorderColor != nil {
  2756. const prefix string = ",\"borderColor\":"
  2757. if first {
  2758. first = false
  2759. out.RawString(prefix[1:])
  2760. } else {
  2761. out.RawString(prefix)
  2762. }
  2763. (*in.BorderColor).MarshalEasyJSON(out)
  2764. }
  2765. if in.MarginColor != nil {
  2766. const prefix string = ",\"marginColor\":"
  2767. if first {
  2768. first = false
  2769. out.RawString(prefix[1:])
  2770. } else {
  2771. out.RawString(prefix)
  2772. }
  2773. (*in.MarginColor).MarshalEasyJSON(out)
  2774. }
  2775. if in.EventTargetColor != nil {
  2776. const prefix string = ",\"eventTargetColor\":"
  2777. if first {
  2778. first = false
  2779. out.RawString(prefix[1:])
  2780. } else {
  2781. out.RawString(prefix)
  2782. }
  2783. (*in.EventTargetColor).MarshalEasyJSON(out)
  2784. }
  2785. if in.ShapeColor != nil {
  2786. const prefix string = ",\"shapeColor\":"
  2787. if first {
  2788. first = false
  2789. out.RawString(prefix[1:])
  2790. } else {
  2791. out.RawString(prefix)
  2792. }
  2793. (*in.ShapeColor).MarshalEasyJSON(out)
  2794. }
  2795. if in.ShapeMarginColor != nil {
  2796. const prefix string = ",\"shapeMarginColor\":"
  2797. if first {
  2798. first = false
  2799. out.RawString(prefix[1:])
  2800. } else {
  2801. out.RawString(prefix)
  2802. }
  2803. (*in.ShapeMarginColor).MarshalEasyJSON(out)
  2804. }
  2805. if in.CSSGridColor != nil {
  2806. const prefix string = ",\"cssGridColor\":"
  2807. if first {
  2808. first = false
  2809. out.RawString(prefix[1:])
  2810. } else {
  2811. out.RawString(prefix)
  2812. }
  2813. (*in.CSSGridColor).MarshalEasyJSON(out)
  2814. }
  2815. if in.ColorFormat != "" {
  2816. const prefix string = ",\"colorFormat\":"
  2817. if first {
  2818. first = false
  2819. out.RawString(prefix[1:])
  2820. } else {
  2821. out.RawString(prefix)
  2822. }
  2823. (in.ColorFormat).MarshalEasyJSON(out)
  2824. }
  2825. if in.GridHighlightConfig != nil {
  2826. const prefix string = ",\"gridHighlightConfig\":"
  2827. if first {
  2828. first = false
  2829. out.RawString(prefix[1:])
  2830. } else {
  2831. out.RawString(prefix)
  2832. }
  2833. (*in.GridHighlightConfig).MarshalEasyJSON(out)
  2834. }
  2835. if in.FlexContainerHighlightConfig != nil {
  2836. const prefix string = ",\"flexContainerHighlightConfig\":"
  2837. if first {
  2838. first = false
  2839. out.RawString(prefix[1:])
  2840. } else {
  2841. out.RawString(prefix)
  2842. }
  2843. (*in.FlexContainerHighlightConfig).MarshalEasyJSON(out)
  2844. }
  2845. if in.FlexItemHighlightConfig != nil {
  2846. const prefix string = ",\"flexItemHighlightConfig\":"
  2847. if first {
  2848. first = false
  2849. out.RawString(prefix[1:])
  2850. } else {
  2851. out.RawString(prefix)
  2852. }
  2853. (*in.FlexItemHighlightConfig).MarshalEasyJSON(out)
  2854. }
  2855. if in.ContrastAlgorithm != "" {
  2856. const prefix string = ",\"contrastAlgorithm\":"
  2857. if first {
  2858. first = false
  2859. out.RawString(prefix[1:])
  2860. } else {
  2861. out.RawString(prefix)
  2862. }
  2863. (in.ContrastAlgorithm).MarshalEasyJSON(out)
  2864. }
  2865. if in.ContainerQueryContainerHighlightConfig != nil {
  2866. const prefix string = ",\"containerQueryContainerHighlightConfig\":"
  2867. if first {
  2868. first = false
  2869. out.RawString(prefix[1:])
  2870. } else {
  2871. out.RawString(prefix)
  2872. }
  2873. (*in.ContainerQueryContainerHighlightConfig).MarshalEasyJSON(out)
  2874. }
  2875. out.RawByte('}')
  2876. }
  2877. // MarshalJSON supports json.Marshaler interface
  2878. func (v HighlightConfig) MarshalJSON() ([]byte, error) {
  2879. w := jwriter.Writer{}
  2880. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay29(&w, v)
  2881. return w.Buffer.BuildBytes(), w.Error
  2882. }
  2883. // MarshalEasyJSON supports easyjson.Marshaler interface
  2884. func (v HighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  2885. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay29(w, v)
  2886. }
  2887. // UnmarshalJSON supports json.Unmarshaler interface
  2888. func (v *HighlightConfig) UnmarshalJSON(data []byte) error {
  2889. r := jlexer.Lexer{Data: data}
  2890. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay29(&r, v)
  2891. return r.Error()
  2892. }
  2893. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2894. func (v *HighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2895. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay29(l, v)
  2896. }
  2897. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay30(in *jlexer.Lexer, out *HideHighlightParams) {
  2898. isTopLevel := in.IsStart()
  2899. if in.IsNull() {
  2900. if isTopLevel {
  2901. in.Consumed()
  2902. }
  2903. in.Skip()
  2904. return
  2905. }
  2906. in.Delim('{')
  2907. for !in.IsDelim('}') {
  2908. key := in.UnsafeFieldName(false)
  2909. in.WantColon()
  2910. if in.IsNull() {
  2911. in.Skip()
  2912. in.WantComma()
  2913. continue
  2914. }
  2915. switch key {
  2916. default:
  2917. in.SkipRecursive()
  2918. }
  2919. in.WantComma()
  2920. }
  2921. in.Delim('}')
  2922. if isTopLevel {
  2923. in.Consumed()
  2924. }
  2925. }
  2926. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay30(out *jwriter.Writer, in HideHighlightParams) {
  2927. out.RawByte('{')
  2928. first := true
  2929. _ = first
  2930. out.RawByte('}')
  2931. }
  2932. // MarshalJSON supports json.Marshaler interface
  2933. func (v HideHighlightParams) MarshalJSON() ([]byte, error) {
  2934. w := jwriter.Writer{}
  2935. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay30(&w, v)
  2936. return w.Buffer.BuildBytes(), w.Error
  2937. }
  2938. // MarshalEasyJSON supports easyjson.Marshaler interface
  2939. func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer) {
  2940. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay30(w, v)
  2941. }
  2942. // UnmarshalJSON supports json.Unmarshaler interface
  2943. func (v *HideHighlightParams) UnmarshalJSON(data []byte) error {
  2944. r := jlexer.Lexer{Data: data}
  2945. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay30(&r, v)
  2946. return r.Error()
  2947. }
  2948. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2949. func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2950. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay30(l, v)
  2951. }
  2952. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay31(in *jlexer.Lexer, out *GridNodeHighlightConfig) {
  2953. isTopLevel := in.IsStart()
  2954. if in.IsNull() {
  2955. if isTopLevel {
  2956. in.Consumed()
  2957. }
  2958. in.Skip()
  2959. return
  2960. }
  2961. in.Delim('{')
  2962. for !in.IsDelim('}') {
  2963. key := in.UnsafeFieldName(false)
  2964. in.WantColon()
  2965. if in.IsNull() {
  2966. in.Skip()
  2967. in.WantComma()
  2968. continue
  2969. }
  2970. switch key {
  2971. case "gridHighlightConfig":
  2972. if in.IsNull() {
  2973. in.Skip()
  2974. out.GridHighlightConfig = nil
  2975. } else {
  2976. if out.GridHighlightConfig == nil {
  2977. out.GridHighlightConfig = new(GridHighlightConfig)
  2978. }
  2979. (*out.GridHighlightConfig).UnmarshalEasyJSON(in)
  2980. }
  2981. case "nodeId":
  2982. (out.NodeID).UnmarshalEasyJSON(in)
  2983. default:
  2984. in.SkipRecursive()
  2985. }
  2986. in.WantComma()
  2987. }
  2988. in.Delim('}')
  2989. if isTopLevel {
  2990. in.Consumed()
  2991. }
  2992. }
  2993. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay31(out *jwriter.Writer, in GridNodeHighlightConfig) {
  2994. out.RawByte('{')
  2995. first := true
  2996. _ = first
  2997. {
  2998. const prefix string = ",\"gridHighlightConfig\":"
  2999. out.RawString(prefix[1:])
  3000. if in.GridHighlightConfig == nil {
  3001. out.RawString("null")
  3002. } else {
  3003. (*in.GridHighlightConfig).MarshalEasyJSON(out)
  3004. }
  3005. }
  3006. {
  3007. const prefix string = ",\"nodeId\":"
  3008. out.RawString(prefix)
  3009. out.Int64(int64(in.NodeID))
  3010. }
  3011. out.RawByte('}')
  3012. }
  3013. // MarshalJSON supports json.Marshaler interface
  3014. func (v GridNodeHighlightConfig) MarshalJSON() ([]byte, error) {
  3015. w := jwriter.Writer{}
  3016. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay31(&w, v)
  3017. return w.Buffer.BuildBytes(), w.Error
  3018. }
  3019. // MarshalEasyJSON supports easyjson.Marshaler interface
  3020. func (v GridNodeHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  3021. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay31(w, v)
  3022. }
  3023. // UnmarshalJSON supports json.Unmarshaler interface
  3024. func (v *GridNodeHighlightConfig) UnmarshalJSON(data []byte) error {
  3025. r := jlexer.Lexer{Data: data}
  3026. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay31(&r, v)
  3027. return r.Error()
  3028. }
  3029. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3030. func (v *GridNodeHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3031. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay31(l, v)
  3032. }
  3033. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay32(in *jlexer.Lexer, out *GridHighlightConfig) {
  3034. isTopLevel := in.IsStart()
  3035. if in.IsNull() {
  3036. if isTopLevel {
  3037. in.Consumed()
  3038. }
  3039. in.Skip()
  3040. return
  3041. }
  3042. in.Delim('{')
  3043. for !in.IsDelim('}') {
  3044. key := in.UnsafeFieldName(false)
  3045. in.WantColon()
  3046. if in.IsNull() {
  3047. in.Skip()
  3048. in.WantComma()
  3049. continue
  3050. }
  3051. switch key {
  3052. case "showGridExtensionLines":
  3053. out.ShowGridExtensionLines = bool(in.Bool())
  3054. case "showPositiveLineNumbers":
  3055. out.ShowPositiveLineNumbers = bool(in.Bool())
  3056. case "showNegativeLineNumbers":
  3057. out.ShowNegativeLineNumbers = bool(in.Bool())
  3058. case "showAreaNames":
  3059. out.ShowAreaNames = bool(in.Bool())
  3060. case "showLineNames":
  3061. out.ShowLineNames = bool(in.Bool())
  3062. case "showTrackSizes":
  3063. out.ShowTrackSizes = bool(in.Bool())
  3064. case "gridBorderColor":
  3065. if in.IsNull() {
  3066. in.Skip()
  3067. out.GridBorderColor = nil
  3068. } else {
  3069. if out.GridBorderColor == nil {
  3070. out.GridBorderColor = new(cdp.RGBA)
  3071. }
  3072. (*out.GridBorderColor).UnmarshalEasyJSON(in)
  3073. }
  3074. case "rowLineColor":
  3075. if in.IsNull() {
  3076. in.Skip()
  3077. out.RowLineColor = nil
  3078. } else {
  3079. if out.RowLineColor == nil {
  3080. out.RowLineColor = new(cdp.RGBA)
  3081. }
  3082. (*out.RowLineColor).UnmarshalEasyJSON(in)
  3083. }
  3084. case "columnLineColor":
  3085. if in.IsNull() {
  3086. in.Skip()
  3087. out.ColumnLineColor = nil
  3088. } else {
  3089. if out.ColumnLineColor == nil {
  3090. out.ColumnLineColor = new(cdp.RGBA)
  3091. }
  3092. (*out.ColumnLineColor).UnmarshalEasyJSON(in)
  3093. }
  3094. case "gridBorderDash":
  3095. out.GridBorderDash = bool(in.Bool())
  3096. case "rowLineDash":
  3097. out.RowLineDash = bool(in.Bool())
  3098. case "columnLineDash":
  3099. out.ColumnLineDash = bool(in.Bool())
  3100. case "rowGapColor":
  3101. if in.IsNull() {
  3102. in.Skip()
  3103. out.RowGapColor = nil
  3104. } else {
  3105. if out.RowGapColor == nil {
  3106. out.RowGapColor = new(cdp.RGBA)
  3107. }
  3108. (*out.RowGapColor).UnmarshalEasyJSON(in)
  3109. }
  3110. case "rowHatchColor":
  3111. if in.IsNull() {
  3112. in.Skip()
  3113. out.RowHatchColor = nil
  3114. } else {
  3115. if out.RowHatchColor == nil {
  3116. out.RowHatchColor = new(cdp.RGBA)
  3117. }
  3118. (*out.RowHatchColor).UnmarshalEasyJSON(in)
  3119. }
  3120. case "columnGapColor":
  3121. if in.IsNull() {
  3122. in.Skip()
  3123. out.ColumnGapColor = nil
  3124. } else {
  3125. if out.ColumnGapColor == nil {
  3126. out.ColumnGapColor = new(cdp.RGBA)
  3127. }
  3128. (*out.ColumnGapColor).UnmarshalEasyJSON(in)
  3129. }
  3130. case "columnHatchColor":
  3131. if in.IsNull() {
  3132. in.Skip()
  3133. out.ColumnHatchColor = nil
  3134. } else {
  3135. if out.ColumnHatchColor == nil {
  3136. out.ColumnHatchColor = new(cdp.RGBA)
  3137. }
  3138. (*out.ColumnHatchColor).UnmarshalEasyJSON(in)
  3139. }
  3140. case "areaBorderColor":
  3141. if in.IsNull() {
  3142. in.Skip()
  3143. out.AreaBorderColor = nil
  3144. } else {
  3145. if out.AreaBorderColor == nil {
  3146. out.AreaBorderColor = new(cdp.RGBA)
  3147. }
  3148. (*out.AreaBorderColor).UnmarshalEasyJSON(in)
  3149. }
  3150. case "gridBackgroundColor":
  3151. if in.IsNull() {
  3152. in.Skip()
  3153. out.GridBackgroundColor = nil
  3154. } else {
  3155. if out.GridBackgroundColor == nil {
  3156. out.GridBackgroundColor = new(cdp.RGBA)
  3157. }
  3158. (*out.GridBackgroundColor).UnmarshalEasyJSON(in)
  3159. }
  3160. default:
  3161. in.SkipRecursive()
  3162. }
  3163. in.WantComma()
  3164. }
  3165. in.Delim('}')
  3166. if isTopLevel {
  3167. in.Consumed()
  3168. }
  3169. }
  3170. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay32(out *jwriter.Writer, in GridHighlightConfig) {
  3171. out.RawByte('{')
  3172. first := true
  3173. _ = first
  3174. if in.ShowGridExtensionLines {
  3175. const prefix string = ",\"showGridExtensionLines\":"
  3176. first = false
  3177. out.RawString(prefix[1:])
  3178. out.Bool(bool(in.ShowGridExtensionLines))
  3179. }
  3180. if in.ShowPositiveLineNumbers {
  3181. const prefix string = ",\"showPositiveLineNumbers\":"
  3182. if first {
  3183. first = false
  3184. out.RawString(prefix[1:])
  3185. } else {
  3186. out.RawString(prefix)
  3187. }
  3188. out.Bool(bool(in.ShowPositiveLineNumbers))
  3189. }
  3190. if in.ShowNegativeLineNumbers {
  3191. const prefix string = ",\"showNegativeLineNumbers\":"
  3192. if first {
  3193. first = false
  3194. out.RawString(prefix[1:])
  3195. } else {
  3196. out.RawString(prefix)
  3197. }
  3198. out.Bool(bool(in.ShowNegativeLineNumbers))
  3199. }
  3200. if in.ShowAreaNames {
  3201. const prefix string = ",\"showAreaNames\":"
  3202. if first {
  3203. first = false
  3204. out.RawString(prefix[1:])
  3205. } else {
  3206. out.RawString(prefix)
  3207. }
  3208. out.Bool(bool(in.ShowAreaNames))
  3209. }
  3210. if in.ShowLineNames {
  3211. const prefix string = ",\"showLineNames\":"
  3212. if first {
  3213. first = false
  3214. out.RawString(prefix[1:])
  3215. } else {
  3216. out.RawString(prefix)
  3217. }
  3218. out.Bool(bool(in.ShowLineNames))
  3219. }
  3220. if in.ShowTrackSizes {
  3221. const prefix string = ",\"showTrackSizes\":"
  3222. if first {
  3223. first = false
  3224. out.RawString(prefix[1:])
  3225. } else {
  3226. out.RawString(prefix)
  3227. }
  3228. out.Bool(bool(in.ShowTrackSizes))
  3229. }
  3230. if in.GridBorderColor != nil {
  3231. const prefix string = ",\"gridBorderColor\":"
  3232. if first {
  3233. first = false
  3234. out.RawString(prefix[1:])
  3235. } else {
  3236. out.RawString(prefix)
  3237. }
  3238. (*in.GridBorderColor).MarshalEasyJSON(out)
  3239. }
  3240. if in.RowLineColor != nil {
  3241. const prefix string = ",\"rowLineColor\":"
  3242. if first {
  3243. first = false
  3244. out.RawString(prefix[1:])
  3245. } else {
  3246. out.RawString(prefix)
  3247. }
  3248. (*in.RowLineColor).MarshalEasyJSON(out)
  3249. }
  3250. if in.ColumnLineColor != nil {
  3251. const prefix string = ",\"columnLineColor\":"
  3252. if first {
  3253. first = false
  3254. out.RawString(prefix[1:])
  3255. } else {
  3256. out.RawString(prefix)
  3257. }
  3258. (*in.ColumnLineColor).MarshalEasyJSON(out)
  3259. }
  3260. if in.GridBorderDash {
  3261. const prefix string = ",\"gridBorderDash\":"
  3262. if first {
  3263. first = false
  3264. out.RawString(prefix[1:])
  3265. } else {
  3266. out.RawString(prefix)
  3267. }
  3268. out.Bool(bool(in.GridBorderDash))
  3269. }
  3270. if in.RowLineDash {
  3271. const prefix string = ",\"rowLineDash\":"
  3272. if first {
  3273. first = false
  3274. out.RawString(prefix[1:])
  3275. } else {
  3276. out.RawString(prefix)
  3277. }
  3278. out.Bool(bool(in.RowLineDash))
  3279. }
  3280. if in.ColumnLineDash {
  3281. const prefix string = ",\"columnLineDash\":"
  3282. if first {
  3283. first = false
  3284. out.RawString(prefix[1:])
  3285. } else {
  3286. out.RawString(prefix)
  3287. }
  3288. out.Bool(bool(in.ColumnLineDash))
  3289. }
  3290. if in.RowGapColor != nil {
  3291. const prefix string = ",\"rowGapColor\":"
  3292. if first {
  3293. first = false
  3294. out.RawString(prefix[1:])
  3295. } else {
  3296. out.RawString(prefix)
  3297. }
  3298. (*in.RowGapColor).MarshalEasyJSON(out)
  3299. }
  3300. if in.RowHatchColor != nil {
  3301. const prefix string = ",\"rowHatchColor\":"
  3302. if first {
  3303. first = false
  3304. out.RawString(prefix[1:])
  3305. } else {
  3306. out.RawString(prefix)
  3307. }
  3308. (*in.RowHatchColor).MarshalEasyJSON(out)
  3309. }
  3310. if in.ColumnGapColor != nil {
  3311. const prefix string = ",\"columnGapColor\":"
  3312. if first {
  3313. first = false
  3314. out.RawString(prefix[1:])
  3315. } else {
  3316. out.RawString(prefix)
  3317. }
  3318. (*in.ColumnGapColor).MarshalEasyJSON(out)
  3319. }
  3320. if in.ColumnHatchColor != nil {
  3321. const prefix string = ",\"columnHatchColor\":"
  3322. if first {
  3323. first = false
  3324. out.RawString(prefix[1:])
  3325. } else {
  3326. out.RawString(prefix)
  3327. }
  3328. (*in.ColumnHatchColor).MarshalEasyJSON(out)
  3329. }
  3330. if in.AreaBorderColor != nil {
  3331. const prefix string = ",\"areaBorderColor\":"
  3332. if first {
  3333. first = false
  3334. out.RawString(prefix[1:])
  3335. } else {
  3336. out.RawString(prefix)
  3337. }
  3338. (*in.AreaBorderColor).MarshalEasyJSON(out)
  3339. }
  3340. if in.GridBackgroundColor != nil {
  3341. const prefix string = ",\"gridBackgroundColor\":"
  3342. if first {
  3343. first = false
  3344. out.RawString(prefix[1:])
  3345. } else {
  3346. out.RawString(prefix)
  3347. }
  3348. (*in.GridBackgroundColor).MarshalEasyJSON(out)
  3349. }
  3350. out.RawByte('}')
  3351. }
  3352. // MarshalJSON supports json.Marshaler interface
  3353. func (v GridHighlightConfig) MarshalJSON() ([]byte, error) {
  3354. w := jwriter.Writer{}
  3355. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay32(&w, v)
  3356. return w.Buffer.BuildBytes(), w.Error
  3357. }
  3358. // MarshalEasyJSON supports easyjson.Marshaler interface
  3359. func (v GridHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  3360. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay32(w, v)
  3361. }
  3362. // UnmarshalJSON supports json.Unmarshaler interface
  3363. func (v *GridHighlightConfig) UnmarshalJSON(data []byte) error {
  3364. r := jlexer.Lexer{Data: data}
  3365. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay32(&r, v)
  3366. return r.Error()
  3367. }
  3368. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3369. func (v *GridHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3370. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay32(l, v)
  3371. }
  3372. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay33(in *jlexer.Lexer, out *GetSourceOrderHighlightObjectForTestReturns) {
  3373. isTopLevel := in.IsStart()
  3374. if in.IsNull() {
  3375. if isTopLevel {
  3376. in.Consumed()
  3377. }
  3378. in.Skip()
  3379. return
  3380. }
  3381. in.Delim('{')
  3382. for !in.IsDelim('}') {
  3383. key := in.UnsafeFieldName(false)
  3384. in.WantColon()
  3385. if in.IsNull() {
  3386. in.Skip()
  3387. in.WantComma()
  3388. continue
  3389. }
  3390. switch key {
  3391. case "highlight":
  3392. (out.Highlight).UnmarshalEasyJSON(in)
  3393. default:
  3394. in.SkipRecursive()
  3395. }
  3396. in.WantComma()
  3397. }
  3398. in.Delim('}')
  3399. if isTopLevel {
  3400. in.Consumed()
  3401. }
  3402. }
  3403. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay33(out *jwriter.Writer, in GetSourceOrderHighlightObjectForTestReturns) {
  3404. out.RawByte('{')
  3405. first := true
  3406. _ = first
  3407. if (in.Highlight).IsDefined() {
  3408. const prefix string = ",\"highlight\":"
  3409. first = false
  3410. out.RawString(prefix[1:])
  3411. (in.Highlight).MarshalEasyJSON(out)
  3412. }
  3413. out.RawByte('}')
  3414. }
  3415. // MarshalJSON supports json.Marshaler interface
  3416. func (v GetSourceOrderHighlightObjectForTestReturns) MarshalJSON() ([]byte, error) {
  3417. w := jwriter.Writer{}
  3418. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay33(&w, v)
  3419. return w.Buffer.BuildBytes(), w.Error
  3420. }
  3421. // MarshalEasyJSON supports easyjson.Marshaler interface
  3422. func (v GetSourceOrderHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3423. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay33(w, v)
  3424. }
  3425. // UnmarshalJSON supports json.Unmarshaler interface
  3426. func (v *GetSourceOrderHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error {
  3427. r := jlexer.Lexer{Data: data}
  3428. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay33(&r, v)
  3429. return r.Error()
  3430. }
  3431. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3432. func (v *GetSourceOrderHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3433. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay33(l, v)
  3434. }
  3435. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay34(in *jlexer.Lexer, out *GetSourceOrderHighlightObjectForTestParams) {
  3436. isTopLevel := in.IsStart()
  3437. if in.IsNull() {
  3438. if isTopLevel {
  3439. in.Consumed()
  3440. }
  3441. in.Skip()
  3442. return
  3443. }
  3444. in.Delim('{')
  3445. for !in.IsDelim('}') {
  3446. key := in.UnsafeFieldName(false)
  3447. in.WantColon()
  3448. if in.IsNull() {
  3449. in.Skip()
  3450. in.WantComma()
  3451. continue
  3452. }
  3453. switch key {
  3454. case "nodeId":
  3455. (out.NodeID).UnmarshalEasyJSON(in)
  3456. default:
  3457. in.SkipRecursive()
  3458. }
  3459. in.WantComma()
  3460. }
  3461. in.Delim('}')
  3462. if isTopLevel {
  3463. in.Consumed()
  3464. }
  3465. }
  3466. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay34(out *jwriter.Writer, in GetSourceOrderHighlightObjectForTestParams) {
  3467. out.RawByte('{')
  3468. first := true
  3469. _ = first
  3470. {
  3471. const prefix string = ",\"nodeId\":"
  3472. out.RawString(prefix[1:])
  3473. out.Int64(int64(in.NodeID))
  3474. }
  3475. out.RawByte('}')
  3476. }
  3477. // MarshalJSON supports json.Marshaler interface
  3478. func (v GetSourceOrderHighlightObjectForTestParams) MarshalJSON() ([]byte, error) {
  3479. w := jwriter.Writer{}
  3480. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay34(&w, v)
  3481. return w.Buffer.BuildBytes(), w.Error
  3482. }
  3483. // MarshalEasyJSON supports easyjson.Marshaler interface
  3484. func (v GetSourceOrderHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer) {
  3485. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay34(w, v)
  3486. }
  3487. // UnmarshalJSON supports json.Unmarshaler interface
  3488. func (v *GetSourceOrderHighlightObjectForTestParams) UnmarshalJSON(data []byte) error {
  3489. r := jlexer.Lexer{Data: data}
  3490. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay34(&r, v)
  3491. return r.Error()
  3492. }
  3493. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3494. func (v *GetSourceOrderHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3495. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay34(l, v)
  3496. }
  3497. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay35(in *jlexer.Lexer, out *GetHighlightObjectForTestReturns) {
  3498. isTopLevel := in.IsStart()
  3499. if in.IsNull() {
  3500. if isTopLevel {
  3501. in.Consumed()
  3502. }
  3503. in.Skip()
  3504. return
  3505. }
  3506. in.Delim('{')
  3507. for !in.IsDelim('}') {
  3508. key := in.UnsafeFieldName(false)
  3509. in.WantColon()
  3510. if in.IsNull() {
  3511. in.Skip()
  3512. in.WantComma()
  3513. continue
  3514. }
  3515. switch key {
  3516. case "highlight":
  3517. (out.Highlight).UnmarshalEasyJSON(in)
  3518. default:
  3519. in.SkipRecursive()
  3520. }
  3521. in.WantComma()
  3522. }
  3523. in.Delim('}')
  3524. if isTopLevel {
  3525. in.Consumed()
  3526. }
  3527. }
  3528. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay35(out *jwriter.Writer, in GetHighlightObjectForTestReturns) {
  3529. out.RawByte('{')
  3530. first := true
  3531. _ = first
  3532. if (in.Highlight).IsDefined() {
  3533. const prefix string = ",\"highlight\":"
  3534. first = false
  3535. out.RawString(prefix[1:])
  3536. (in.Highlight).MarshalEasyJSON(out)
  3537. }
  3538. out.RawByte('}')
  3539. }
  3540. // MarshalJSON supports json.Marshaler interface
  3541. func (v GetHighlightObjectForTestReturns) MarshalJSON() ([]byte, error) {
  3542. w := jwriter.Writer{}
  3543. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay35(&w, v)
  3544. return w.Buffer.BuildBytes(), w.Error
  3545. }
  3546. // MarshalEasyJSON supports easyjson.Marshaler interface
  3547. func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3548. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay35(w, v)
  3549. }
  3550. // UnmarshalJSON supports json.Unmarshaler interface
  3551. func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error {
  3552. r := jlexer.Lexer{Data: data}
  3553. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay35(&r, v)
  3554. return r.Error()
  3555. }
  3556. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3557. func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3558. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay35(l, v)
  3559. }
  3560. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay36(in *jlexer.Lexer, out *GetHighlightObjectForTestParams) {
  3561. isTopLevel := in.IsStart()
  3562. if in.IsNull() {
  3563. if isTopLevel {
  3564. in.Consumed()
  3565. }
  3566. in.Skip()
  3567. return
  3568. }
  3569. in.Delim('{')
  3570. for !in.IsDelim('}') {
  3571. key := in.UnsafeFieldName(false)
  3572. in.WantColon()
  3573. if in.IsNull() {
  3574. in.Skip()
  3575. in.WantComma()
  3576. continue
  3577. }
  3578. switch key {
  3579. case "nodeId":
  3580. (out.NodeID).UnmarshalEasyJSON(in)
  3581. case "includeDistance":
  3582. out.IncludeDistance = bool(in.Bool())
  3583. case "includeStyle":
  3584. out.IncludeStyle = bool(in.Bool())
  3585. case "colorFormat":
  3586. (out.ColorFormat).UnmarshalEasyJSON(in)
  3587. case "showAccessibilityInfo":
  3588. out.ShowAccessibilityInfo = bool(in.Bool())
  3589. default:
  3590. in.SkipRecursive()
  3591. }
  3592. in.WantComma()
  3593. }
  3594. in.Delim('}')
  3595. if isTopLevel {
  3596. in.Consumed()
  3597. }
  3598. }
  3599. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay36(out *jwriter.Writer, in GetHighlightObjectForTestParams) {
  3600. out.RawByte('{')
  3601. first := true
  3602. _ = first
  3603. {
  3604. const prefix string = ",\"nodeId\":"
  3605. out.RawString(prefix[1:])
  3606. out.Int64(int64(in.NodeID))
  3607. }
  3608. if in.IncludeDistance {
  3609. const prefix string = ",\"includeDistance\":"
  3610. out.RawString(prefix)
  3611. out.Bool(bool(in.IncludeDistance))
  3612. }
  3613. if in.IncludeStyle {
  3614. const prefix string = ",\"includeStyle\":"
  3615. out.RawString(prefix)
  3616. out.Bool(bool(in.IncludeStyle))
  3617. }
  3618. if in.ColorFormat != "" {
  3619. const prefix string = ",\"colorFormat\":"
  3620. out.RawString(prefix)
  3621. (in.ColorFormat).MarshalEasyJSON(out)
  3622. }
  3623. if in.ShowAccessibilityInfo {
  3624. const prefix string = ",\"showAccessibilityInfo\":"
  3625. out.RawString(prefix)
  3626. out.Bool(bool(in.ShowAccessibilityInfo))
  3627. }
  3628. out.RawByte('}')
  3629. }
  3630. // MarshalJSON supports json.Marshaler interface
  3631. func (v GetHighlightObjectForTestParams) MarshalJSON() ([]byte, error) {
  3632. w := jwriter.Writer{}
  3633. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay36(&w, v)
  3634. return w.Buffer.BuildBytes(), w.Error
  3635. }
  3636. // MarshalEasyJSON supports easyjson.Marshaler interface
  3637. func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer) {
  3638. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay36(w, v)
  3639. }
  3640. // UnmarshalJSON supports json.Unmarshaler interface
  3641. func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error {
  3642. r := jlexer.Lexer{Data: data}
  3643. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay36(&r, v)
  3644. return r.Error()
  3645. }
  3646. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3647. func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3648. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay36(l, v)
  3649. }
  3650. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay37(in *jlexer.Lexer, out *GetGridHighlightObjectsForTestReturns) {
  3651. isTopLevel := in.IsStart()
  3652. if in.IsNull() {
  3653. if isTopLevel {
  3654. in.Consumed()
  3655. }
  3656. in.Skip()
  3657. return
  3658. }
  3659. in.Delim('{')
  3660. for !in.IsDelim('}') {
  3661. key := in.UnsafeFieldName(false)
  3662. in.WantColon()
  3663. if in.IsNull() {
  3664. in.Skip()
  3665. in.WantComma()
  3666. continue
  3667. }
  3668. switch key {
  3669. case "highlights":
  3670. (out.Highlights).UnmarshalEasyJSON(in)
  3671. default:
  3672. in.SkipRecursive()
  3673. }
  3674. in.WantComma()
  3675. }
  3676. in.Delim('}')
  3677. if isTopLevel {
  3678. in.Consumed()
  3679. }
  3680. }
  3681. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay37(out *jwriter.Writer, in GetGridHighlightObjectsForTestReturns) {
  3682. out.RawByte('{')
  3683. first := true
  3684. _ = first
  3685. if (in.Highlights).IsDefined() {
  3686. const prefix string = ",\"highlights\":"
  3687. first = false
  3688. out.RawString(prefix[1:])
  3689. (in.Highlights).MarshalEasyJSON(out)
  3690. }
  3691. out.RawByte('}')
  3692. }
  3693. // MarshalJSON supports json.Marshaler interface
  3694. func (v GetGridHighlightObjectsForTestReturns) MarshalJSON() ([]byte, error) {
  3695. w := jwriter.Writer{}
  3696. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay37(&w, v)
  3697. return w.Buffer.BuildBytes(), w.Error
  3698. }
  3699. // MarshalEasyJSON supports easyjson.Marshaler interface
  3700. func (v GetGridHighlightObjectsForTestReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3701. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay37(w, v)
  3702. }
  3703. // UnmarshalJSON supports json.Unmarshaler interface
  3704. func (v *GetGridHighlightObjectsForTestReturns) UnmarshalJSON(data []byte) error {
  3705. r := jlexer.Lexer{Data: data}
  3706. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay37(&r, v)
  3707. return r.Error()
  3708. }
  3709. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3710. func (v *GetGridHighlightObjectsForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3711. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay37(l, v)
  3712. }
  3713. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay38(in *jlexer.Lexer, out *GetGridHighlightObjectsForTestParams) {
  3714. isTopLevel := in.IsStart()
  3715. if in.IsNull() {
  3716. if isTopLevel {
  3717. in.Consumed()
  3718. }
  3719. in.Skip()
  3720. return
  3721. }
  3722. in.Delim('{')
  3723. for !in.IsDelim('}') {
  3724. key := in.UnsafeFieldName(false)
  3725. in.WantColon()
  3726. if in.IsNull() {
  3727. in.Skip()
  3728. in.WantComma()
  3729. continue
  3730. }
  3731. switch key {
  3732. case "nodeIds":
  3733. if in.IsNull() {
  3734. in.Skip()
  3735. out.NodeIDs = nil
  3736. } else {
  3737. in.Delim('[')
  3738. if out.NodeIDs == nil {
  3739. if !in.IsDelim(']') {
  3740. out.NodeIDs = make([]cdp.NodeID, 0, 8)
  3741. } else {
  3742. out.NodeIDs = []cdp.NodeID{}
  3743. }
  3744. } else {
  3745. out.NodeIDs = (out.NodeIDs)[:0]
  3746. }
  3747. for !in.IsDelim(']') {
  3748. var v19 cdp.NodeID
  3749. (v19).UnmarshalEasyJSON(in)
  3750. out.NodeIDs = append(out.NodeIDs, v19)
  3751. in.WantComma()
  3752. }
  3753. in.Delim(']')
  3754. }
  3755. default:
  3756. in.SkipRecursive()
  3757. }
  3758. in.WantComma()
  3759. }
  3760. in.Delim('}')
  3761. if isTopLevel {
  3762. in.Consumed()
  3763. }
  3764. }
  3765. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay38(out *jwriter.Writer, in GetGridHighlightObjectsForTestParams) {
  3766. out.RawByte('{')
  3767. first := true
  3768. _ = first
  3769. {
  3770. const prefix string = ",\"nodeIds\":"
  3771. out.RawString(prefix[1:])
  3772. if in.NodeIDs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3773. out.RawString("null")
  3774. } else {
  3775. out.RawByte('[')
  3776. for v20, v21 := range in.NodeIDs {
  3777. if v20 > 0 {
  3778. out.RawByte(',')
  3779. }
  3780. out.Int64(int64(v21))
  3781. }
  3782. out.RawByte(']')
  3783. }
  3784. }
  3785. out.RawByte('}')
  3786. }
  3787. // MarshalJSON supports json.Marshaler interface
  3788. func (v GetGridHighlightObjectsForTestParams) MarshalJSON() ([]byte, error) {
  3789. w := jwriter.Writer{}
  3790. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay38(&w, v)
  3791. return w.Buffer.BuildBytes(), w.Error
  3792. }
  3793. // MarshalEasyJSON supports easyjson.Marshaler interface
  3794. func (v GetGridHighlightObjectsForTestParams) MarshalEasyJSON(w *jwriter.Writer) {
  3795. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay38(w, v)
  3796. }
  3797. // UnmarshalJSON supports json.Unmarshaler interface
  3798. func (v *GetGridHighlightObjectsForTestParams) UnmarshalJSON(data []byte) error {
  3799. r := jlexer.Lexer{Data: data}
  3800. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay38(&r, v)
  3801. return r.Error()
  3802. }
  3803. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3804. func (v *GetGridHighlightObjectsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3805. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay38(l, v)
  3806. }
  3807. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay39(in *jlexer.Lexer, out *FlexNodeHighlightConfig) {
  3808. isTopLevel := in.IsStart()
  3809. if in.IsNull() {
  3810. if isTopLevel {
  3811. in.Consumed()
  3812. }
  3813. in.Skip()
  3814. return
  3815. }
  3816. in.Delim('{')
  3817. for !in.IsDelim('}') {
  3818. key := in.UnsafeFieldName(false)
  3819. in.WantColon()
  3820. if in.IsNull() {
  3821. in.Skip()
  3822. in.WantComma()
  3823. continue
  3824. }
  3825. switch key {
  3826. case "flexContainerHighlightConfig":
  3827. if in.IsNull() {
  3828. in.Skip()
  3829. out.FlexContainerHighlightConfig = nil
  3830. } else {
  3831. if out.FlexContainerHighlightConfig == nil {
  3832. out.FlexContainerHighlightConfig = new(FlexContainerHighlightConfig)
  3833. }
  3834. (*out.FlexContainerHighlightConfig).UnmarshalEasyJSON(in)
  3835. }
  3836. case "nodeId":
  3837. (out.NodeID).UnmarshalEasyJSON(in)
  3838. default:
  3839. in.SkipRecursive()
  3840. }
  3841. in.WantComma()
  3842. }
  3843. in.Delim('}')
  3844. if isTopLevel {
  3845. in.Consumed()
  3846. }
  3847. }
  3848. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay39(out *jwriter.Writer, in FlexNodeHighlightConfig) {
  3849. out.RawByte('{')
  3850. first := true
  3851. _ = first
  3852. {
  3853. const prefix string = ",\"flexContainerHighlightConfig\":"
  3854. out.RawString(prefix[1:])
  3855. if in.FlexContainerHighlightConfig == nil {
  3856. out.RawString("null")
  3857. } else {
  3858. (*in.FlexContainerHighlightConfig).MarshalEasyJSON(out)
  3859. }
  3860. }
  3861. {
  3862. const prefix string = ",\"nodeId\":"
  3863. out.RawString(prefix)
  3864. out.Int64(int64(in.NodeID))
  3865. }
  3866. out.RawByte('}')
  3867. }
  3868. // MarshalJSON supports json.Marshaler interface
  3869. func (v FlexNodeHighlightConfig) MarshalJSON() ([]byte, error) {
  3870. w := jwriter.Writer{}
  3871. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay39(&w, v)
  3872. return w.Buffer.BuildBytes(), w.Error
  3873. }
  3874. // MarshalEasyJSON supports easyjson.Marshaler interface
  3875. func (v FlexNodeHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  3876. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay39(w, v)
  3877. }
  3878. // UnmarshalJSON supports json.Unmarshaler interface
  3879. func (v *FlexNodeHighlightConfig) UnmarshalJSON(data []byte) error {
  3880. r := jlexer.Lexer{Data: data}
  3881. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay39(&r, v)
  3882. return r.Error()
  3883. }
  3884. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3885. func (v *FlexNodeHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3886. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay39(l, v)
  3887. }
  3888. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay40(in *jlexer.Lexer, out *FlexItemHighlightConfig) {
  3889. isTopLevel := in.IsStart()
  3890. if in.IsNull() {
  3891. if isTopLevel {
  3892. in.Consumed()
  3893. }
  3894. in.Skip()
  3895. return
  3896. }
  3897. in.Delim('{')
  3898. for !in.IsDelim('}') {
  3899. key := in.UnsafeFieldName(false)
  3900. in.WantColon()
  3901. if in.IsNull() {
  3902. in.Skip()
  3903. in.WantComma()
  3904. continue
  3905. }
  3906. switch key {
  3907. case "baseSizeBox":
  3908. if in.IsNull() {
  3909. in.Skip()
  3910. out.BaseSizeBox = nil
  3911. } else {
  3912. if out.BaseSizeBox == nil {
  3913. out.BaseSizeBox = new(BoxStyle)
  3914. }
  3915. (*out.BaseSizeBox).UnmarshalEasyJSON(in)
  3916. }
  3917. case "baseSizeBorder":
  3918. if in.IsNull() {
  3919. in.Skip()
  3920. out.BaseSizeBorder = nil
  3921. } else {
  3922. if out.BaseSizeBorder == nil {
  3923. out.BaseSizeBorder = new(LineStyle)
  3924. }
  3925. (*out.BaseSizeBorder).UnmarshalEasyJSON(in)
  3926. }
  3927. case "flexibilityArrow":
  3928. if in.IsNull() {
  3929. in.Skip()
  3930. out.FlexibilityArrow = nil
  3931. } else {
  3932. if out.FlexibilityArrow == nil {
  3933. out.FlexibilityArrow = new(LineStyle)
  3934. }
  3935. (*out.FlexibilityArrow).UnmarshalEasyJSON(in)
  3936. }
  3937. default:
  3938. in.SkipRecursive()
  3939. }
  3940. in.WantComma()
  3941. }
  3942. in.Delim('}')
  3943. if isTopLevel {
  3944. in.Consumed()
  3945. }
  3946. }
  3947. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay40(out *jwriter.Writer, in FlexItemHighlightConfig) {
  3948. out.RawByte('{')
  3949. first := true
  3950. _ = first
  3951. if in.BaseSizeBox != nil {
  3952. const prefix string = ",\"baseSizeBox\":"
  3953. first = false
  3954. out.RawString(prefix[1:])
  3955. (*in.BaseSizeBox).MarshalEasyJSON(out)
  3956. }
  3957. if in.BaseSizeBorder != nil {
  3958. const prefix string = ",\"baseSizeBorder\":"
  3959. if first {
  3960. first = false
  3961. out.RawString(prefix[1:])
  3962. } else {
  3963. out.RawString(prefix)
  3964. }
  3965. (*in.BaseSizeBorder).MarshalEasyJSON(out)
  3966. }
  3967. if in.FlexibilityArrow != nil {
  3968. const prefix string = ",\"flexibilityArrow\":"
  3969. if first {
  3970. first = false
  3971. out.RawString(prefix[1:])
  3972. } else {
  3973. out.RawString(prefix)
  3974. }
  3975. (*in.FlexibilityArrow).MarshalEasyJSON(out)
  3976. }
  3977. out.RawByte('}')
  3978. }
  3979. // MarshalJSON supports json.Marshaler interface
  3980. func (v FlexItemHighlightConfig) MarshalJSON() ([]byte, error) {
  3981. w := jwriter.Writer{}
  3982. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay40(&w, v)
  3983. return w.Buffer.BuildBytes(), w.Error
  3984. }
  3985. // MarshalEasyJSON supports easyjson.Marshaler interface
  3986. func (v FlexItemHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  3987. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay40(w, v)
  3988. }
  3989. // UnmarshalJSON supports json.Unmarshaler interface
  3990. func (v *FlexItemHighlightConfig) UnmarshalJSON(data []byte) error {
  3991. r := jlexer.Lexer{Data: data}
  3992. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay40(&r, v)
  3993. return r.Error()
  3994. }
  3995. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3996. func (v *FlexItemHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3997. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay40(l, v)
  3998. }
  3999. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay41(in *jlexer.Lexer, out *FlexContainerHighlightConfig) {
  4000. isTopLevel := in.IsStart()
  4001. if in.IsNull() {
  4002. if isTopLevel {
  4003. in.Consumed()
  4004. }
  4005. in.Skip()
  4006. return
  4007. }
  4008. in.Delim('{')
  4009. for !in.IsDelim('}') {
  4010. key := in.UnsafeFieldName(false)
  4011. in.WantColon()
  4012. if in.IsNull() {
  4013. in.Skip()
  4014. in.WantComma()
  4015. continue
  4016. }
  4017. switch key {
  4018. case "containerBorder":
  4019. if in.IsNull() {
  4020. in.Skip()
  4021. out.ContainerBorder = nil
  4022. } else {
  4023. if out.ContainerBorder == nil {
  4024. out.ContainerBorder = new(LineStyle)
  4025. }
  4026. (*out.ContainerBorder).UnmarshalEasyJSON(in)
  4027. }
  4028. case "lineSeparator":
  4029. if in.IsNull() {
  4030. in.Skip()
  4031. out.LineSeparator = nil
  4032. } else {
  4033. if out.LineSeparator == nil {
  4034. out.LineSeparator = new(LineStyle)
  4035. }
  4036. (*out.LineSeparator).UnmarshalEasyJSON(in)
  4037. }
  4038. case "itemSeparator":
  4039. if in.IsNull() {
  4040. in.Skip()
  4041. out.ItemSeparator = nil
  4042. } else {
  4043. if out.ItemSeparator == nil {
  4044. out.ItemSeparator = new(LineStyle)
  4045. }
  4046. (*out.ItemSeparator).UnmarshalEasyJSON(in)
  4047. }
  4048. case "mainDistributedSpace":
  4049. if in.IsNull() {
  4050. in.Skip()
  4051. out.MainDistributedSpace = nil
  4052. } else {
  4053. if out.MainDistributedSpace == nil {
  4054. out.MainDistributedSpace = new(BoxStyle)
  4055. }
  4056. (*out.MainDistributedSpace).UnmarshalEasyJSON(in)
  4057. }
  4058. case "crossDistributedSpace":
  4059. if in.IsNull() {
  4060. in.Skip()
  4061. out.CrossDistributedSpace = nil
  4062. } else {
  4063. if out.CrossDistributedSpace == nil {
  4064. out.CrossDistributedSpace = new(BoxStyle)
  4065. }
  4066. (*out.CrossDistributedSpace).UnmarshalEasyJSON(in)
  4067. }
  4068. case "rowGapSpace":
  4069. if in.IsNull() {
  4070. in.Skip()
  4071. out.RowGapSpace = nil
  4072. } else {
  4073. if out.RowGapSpace == nil {
  4074. out.RowGapSpace = new(BoxStyle)
  4075. }
  4076. (*out.RowGapSpace).UnmarshalEasyJSON(in)
  4077. }
  4078. case "columnGapSpace":
  4079. if in.IsNull() {
  4080. in.Skip()
  4081. out.ColumnGapSpace = nil
  4082. } else {
  4083. if out.ColumnGapSpace == nil {
  4084. out.ColumnGapSpace = new(BoxStyle)
  4085. }
  4086. (*out.ColumnGapSpace).UnmarshalEasyJSON(in)
  4087. }
  4088. case "crossAlignment":
  4089. if in.IsNull() {
  4090. in.Skip()
  4091. out.CrossAlignment = nil
  4092. } else {
  4093. if out.CrossAlignment == nil {
  4094. out.CrossAlignment = new(LineStyle)
  4095. }
  4096. (*out.CrossAlignment).UnmarshalEasyJSON(in)
  4097. }
  4098. default:
  4099. in.SkipRecursive()
  4100. }
  4101. in.WantComma()
  4102. }
  4103. in.Delim('}')
  4104. if isTopLevel {
  4105. in.Consumed()
  4106. }
  4107. }
  4108. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay41(out *jwriter.Writer, in FlexContainerHighlightConfig) {
  4109. out.RawByte('{')
  4110. first := true
  4111. _ = first
  4112. if in.ContainerBorder != nil {
  4113. const prefix string = ",\"containerBorder\":"
  4114. first = false
  4115. out.RawString(prefix[1:])
  4116. (*in.ContainerBorder).MarshalEasyJSON(out)
  4117. }
  4118. if in.LineSeparator != nil {
  4119. const prefix string = ",\"lineSeparator\":"
  4120. if first {
  4121. first = false
  4122. out.RawString(prefix[1:])
  4123. } else {
  4124. out.RawString(prefix)
  4125. }
  4126. (*in.LineSeparator).MarshalEasyJSON(out)
  4127. }
  4128. if in.ItemSeparator != nil {
  4129. const prefix string = ",\"itemSeparator\":"
  4130. if first {
  4131. first = false
  4132. out.RawString(prefix[1:])
  4133. } else {
  4134. out.RawString(prefix)
  4135. }
  4136. (*in.ItemSeparator).MarshalEasyJSON(out)
  4137. }
  4138. if in.MainDistributedSpace != nil {
  4139. const prefix string = ",\"mainDistributedSpace\":"
  4140. if first {
  4141. first = false
  4142. out.RawString(prefix[1:])
  4143. } else {
  4144. out.RawString(prefix)
  4145. }
  4146. (*in.MainDistributedSpace).MarshalEasyJSON(out)
  4147. }
  4148. if in.CrossDistributedSpace != nil {
  4149. const prefix string = ",\"crossDistributedSpace\":"
  4150. if first {
  4151. first = false
  4152. out.RawString(prefix[1:])
  4153. } else {
  4154. out.RawString(prefix)
  4155. }
  4156. (*in.CrossDistributedSpace).MarshalEasyJSON(out)
  4157. }
  4158. if in.RowGapSpace != nil {
  4159. const prefix string = ",\"rowGapSpace\":"
  4160. if first {
  4161. first = false
  4162. out.RawString(prefix[1:])
  4163. } else {
  4164. out.RawString(prefix)
  4165. }
  4166. (*in.RowGapSpace).MarshalEasyJSON(out)
  4167. }
  4168. if in.ColumnGapSpace != nil {
  4169. const prefix string = ",\"columnGapSpace\":"
  4170. if first {
  4171. first = false
  4172. out.RawString(prefix[1:])
  4173. } else {
  4174. out.RawString(prefix)
  4175. }
  4176. (*in.ColumnGapSpace).MarshalEasyJSON(out)
  4177. }
  4178. if in.CrossAlignment != nil {
  4179. const prefix string = ",\"crossAlignment\":"
  4180. if first {
  4181. first = false
  4182. out.RawString(prefix[1:])
  4183. } else {
  4184. out.RawString(prefix)
  4185. }
  4186. (*in.CrossAlignment).MarshalEasyJSON(out)
  4187. }
  4188. out.RawByte('}')
  4189. }
  4190. // MarshalJSON supports json.Marshaler interface
  4191. func (v FlexContainerHighlightConfig) MarshalJSON() ([]byte, error) {
  4192. w := jwriter.Writer{}
  4193. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay41(&w, v)
  4194. return w.Buffer.BuildBytes(), w.Error
  4195. }
  4196. // MarshalEasyJSON supports easyjson.Marshaler interface
  4197. func (v FlexContainerHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  4198. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay41(w, v)
  4199. }
  4200. // UnmarshalJSON supports json.Unmarshaler interface
  4201. func (v *FlexContainerHighlightConfig) UnmarshalJSON(data []byte) error {
  4202. r := jlexer.Lexer{Data: data}
  4203. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay41(&r, v)
  4204. return r.Error()
  4205. }
  4206. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4207. func (v *FlexContainerHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4208. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay41(l, v)
  4209. }
  4210. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay42(in *jlexer.Lexer, out *EventScreenshotRequested) {
  4211. isTopLevel := in.IsStart()
  4212. if in.IsNull() {
  4213. if isTopLevel {
  4214. in.Consumed()
  4215. }
  4216. in.Skip()
  4217. return
  4218. }
  4219. in.Delim('{')
  4220. for !in.IsDelim('}') {
  4221. key := in.UnsafeFieldName(false)
  4222. in.WantColon()
  4223. if in.IsNull() {
  4224. in.Skip()
  4225. in.WantComma()
  4226. continue
  4227. }
  4228. switch key {
  4229. case "viewport":
  4230. if in.IsNull() {
  4231. in.Skip()
  4232. out.Viewport = nil
  4233. } else {
  4234. if out.Viewport == nil {
  4235. out.Viewport = new(page.Viewport)
  4236. }
  4237. (*out.Viewport).UnmarshalEasyJSON(in)
  4238. }
  4239. default:
  4240. in.SkipRecursive()
  4241. }
  4242. in.WantComma()
  4243. }
  4244. in.Delim('}')
  4245. if isTopLevel {
  4246. in.Consumed()
  4247. }
  4248. }
  4249. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay42(out *jwriter.Writer, in EventScreenshotRequested) {
  4250. out.RawByte('{')
  4251. first := true
  4252. _ = first
  4253. {
  4254. const prefix string = ",\"viewport\":"
  4255. out.RawString(prefix[1:])
  4256. if in.Viewport == nil {
  4257. out.RawString("null")
  4258. } else {
  4259. (*in.Viewport).MarshalEasyJSON(out)
  4260. }
  4261. }
  4262. out.RawByte('}')
  4263. }
  4264. // MarshalJSON supports json.Marshaler interface
  4265. func (v EventScreenshotRequested) MarshalJSON() ([]byte, error) {
  4266. w := jwriter.Writer{}
  4267. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay42(&w, v)
  4268. return w.Buffer.BuildBytes(), w.Error
  4269. }
  4270. // MarshalEasyJSON supports easyjson.Marshaler interface
  4271. func (v EventScreenshotRequested) MarshalEasyJSON(w *jwriter.Writer) {
  4272. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay42(w, v)
  4273. }
  4274. // UnmarshalJSON supports json.Unmarshaler interface
  4275. func (v *EventScreenshotRequested) UnmarshalJSON(data []byte) error {
  4276. r := jlexer.Lexer{Data: data}
  4277. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay42(&r, v)
  4278. return r.Error()
  4279. }
  4280. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4281. func (v *EventScreenshotRequested) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4282. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay42(l, v)
  4283. }
  4284. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay43(in *jlexer.Lexer, out *EventNodeHighlightRequested) {
  4285. isTopLevel := in.IsStart()
  4286. if in.IsNull() {
  4287. if isTopLevel {
  4288. in.Consumed()
  4289. }
  4290. in.Skip()
  4291. return
  4292. }
  4293. in.Delim('{')
  4294. for !in.IsDelim('}') {
  4295. key := in.UnsafeFieldName(false)
  4296. in.WantColon()
  4297. if in.IsNull() {
  4298. in.Skip()
  4299. in.WantComma()
  4300. continue
  4301. }
  4302. switch key {
  4303. case "nodeId":
  4304. (out.NodeID).UnmarshalEasyJSON(in)
  4305. default:
  4306. in.SkipRecursive()
  4307. }
  4308. in.WantComma()
  4309. }
  4310. in.Delim('}')
  4311. if isTopLevel {
  4312. in.Consumed()
  4313. }
  4314. }
  4315. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay43(out *jwriter.Writer, in EventNodeHighlightRequested) {
  4316. out.RawByte('{')
  4317. first := true
  4318. _ = first
  4319. {
  4320. const prefix string = ",\"nodeId\":"
  4321. out.RawString(prefix[1:])
  4322. out.Int64(int64(in.NodeID))
  4323. }
  4324. out.RawByte('}')
  4325. }
  4326. // MarshalJSON supports json.Marshaler interface
  4327. func (v EventNodeHighlightRequested) MarshalJSON() ([]byte, error) {
  4328. w := jwriter.Writer{}
  4329. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay43(&w, v)
  4330. return w.Buffer.BuildBytes(), w.Error
  4331. }
  4332. // MarshalEasyJSON supports easyjson.Marshaler interface
  4333. func (v EventNodeHighlightRequested) MarshalEasyJSON(w *jwriter.Writer) {
  4334. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay43(w, v)
  4335. }
  4336. // UnmarshalJSON supports json.Unmarshaler interface
  4337. func (v *EventNodeHighlightRequested) UnmarshalJSON(data []byte) error {
  4338. r := jlexer.Lexer{Data: data}
  4339. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay43(&r, v)
  4340. return r.Error()
  4341. }
  4342. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4343. func (v *EventNodeHighlightRequested) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4344. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay43(l, v)
  4345. }
  4346. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay44(in *jlexer.Lexer, out *EventInspectNodeRequested) {
  4347. isTopLevel := in.IsStart()
  4348. if in.IsNull() {
  4349. if isTopLevel {
  4350. in.Consumed()
  4351. }
  4352. in.Skip()
  4353. return
  4354. }
  4355. in.Delim('{')
  4356. for !in.IsDelim('}') {
  4357. key := in.UnsafeFieldName(false)
  4358. in.WantColon()
  4359. if in.IsNull() {
  4360. in.Skip()
  4361. in.WantComma()
  4362. continue
  4363. }
  4364. switch key {
  4365. case "backendNodeId":
  4366. (out.BackendNodeID).UnmarshalEasyJSON(in)
  4367. default:
  4368. in.SkipRecursive()
  4369. }
  4370. in.WantComma()
  4371. }
  4372. in.Delim('}')
  4373. if isTopLevel {
  4374. in.Consumed()
  4375. }
  4376. }
  4377. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay44(out *jwriter.Writer, in EventInspectNodeRequested) {
  4378. out.RawByte('{')
  4379. first := true
  4380. _ = first
  4381. {
  4382. const prefix string = ",\"backendNodeId\":"
  4383. out.RawString(prefix[1:])
  4384. out.Int64(int64(in.BackendNodeID))
  4385. }
  4386. out.RawByte('}')
  4387. }
  4388. // MarshalJSON supports json.Marshaler interface
  4389. func (v EventInspectNodeRequested) MarshalJSON() ([]byte, error) {
  4390. w := jwriter.Writer{}
  4391. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay44(&w, v)
  4392. return w.Buffer.BuildBytes(), w.Error
  4393. }
  4394. // MarshalEasyJSON supports easyjson.Marshaler interface
  4395. func (v EventInspectNodeRequested) MarshalEasyJSON(w *jwriter.Writer) {
  4396. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay44(w, v)
  4397. }
  4398. // UnmarshalJSON supports json.Unmarshaler interface
  4399. func (v *EventInspectNodeRequested) UnmarshalJSON(data []byte) error {
  4400. r := jlexer.Lexer{Data: data}
  4401. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay44(&r, v)
  4402. return r.Error()
  4403. }
  4404. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4405. func (v *EventInspectNodeRequested) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4406. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay44(l, v)
  4407. }
  4408. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay45(in *jlexer.Lexer, out *EventInspectModeCanceled) {
  4409. isTopLevel := in.IsStart()
  4410. if in.IsNull() {
  4411. if isTopLevel {
  4412. in.Consumed()
  4413. }
  4414. in.Skip()
  4415. return
  4416. }
  4417. in.Delim('{')
  4418. for !in.IsDelim('}') {
  4419. key := in.UnsafeFieldName(false)
  4420. in.WantColon()
  4421. if in.IsNull() {
  4422. in.Skip()
  4423. in.WantComma()
  4424. continue
  4425. }
  4426. switch key {
  4427. default:
  4428. in.SkipRecursive()
  4429. }
  4430. in.WantComma()
  4431. }
  4432. in.Delim('}')
  4433. if isTopLevel {
  4434. in.Consumed()
  4435. }
  4436. }
  4437. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay45(out *jwriter.Writer, in EventInspectModeCanceled) {
  4438. out.RawByte('{')
  4439. first := true
  4440. _ = first
  4441. out.RawByte('}')
  4442. }
  4443. // MarshalJSON supports json.Marshaler interface
  4444. func (v EventInspectModeCanceled) MarshalJSON() ([]byte, error) {
  4445. w := jwriter.Writer{}
  4446. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay45(&w, v)
  4447. return w.Buffer.BuildBytes(), w.Error
  4448. }
  4449. // MarshalEasyJSON supports easyjson.Marshaler interface
  4450. func (v EventInspectModeCanceled) MarshalEasyJSON(w *jwriter.Writer) {
  4451. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay45(w, v)
  4452. }
  4453. // UnmarshalJSON supports json.Unmarshaler interface
  4454. func (v *EventInspectModeCanceled) UnmarshalJSON(data []byte) error {
  4455. r := jlexer.Lexer{Data: data}
  4456. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay45(&r, v)
  4457. return r.Error()
  4458. }
  4459. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4460. func (v *EventInspectModeCanceled) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4461. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay45(l, v)
  4462. }
  4463. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay46(in *jlexer.Lexer, out *EnableParams) {
  4464. isTopLevel := in.IsStart()
  4465. if in.IsNull() {
  4466. if isTopLevel {
  4467. in.Consumed()
  4468. }
  4469. in.Skip()
  4470. return
  4471. }
  4472. in.Delim('{')
  4473. for !in.IsDelim('}') {
  4474. key := in.UnsafeFieldName(false)
  4475. in.WantColon()
  4476. if in.IsNull() {
  4477. in.Skip()
  4478. in.WantComma()
  4479. continue
  4480. }
  4481. switch key {
  4482. default:
  4483. in.SkipRecursive()
  4484. }
  4485. in.WantComma()
  4486. }
  4487. in.Delim('}')
  4488. if isTopLevel {
  4489. in.Consumed()
  4490. }
  4491. }
  4492. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay46(out *jwriter.Writer, in EnableParams) {
  4493. out.RawByte('{')
  4494. first := true
  4495. _ = first
  4496. out.RawByte('}')
  4497. }
  4498. // MarshalJSON supports json.Marshaler interface
  4499. func (v EnableParams) MarshalJSON() ([]byte, error) {
  4500. w := jwriter.Writer{}
  4501. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay46(&w, v)
  4502. return w.Buffer.BuildBytes(), w.Error
  4503. }
  4504. // MarshalEasyJSON supports easyjson.Marshaler interface
  4505. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  4506. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay46(w, v)
  4507. }
  4508. // UnmarshalJSON supports json.Unmarshaler interface
  4509. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  4510. r := jlexer.Lexer{Data: data}
  4511. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay46(&r, v)
  4512. return r.Error()
  4513. }
  4514. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4515. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4516. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay46(l, v)
  4517. }
  4518. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay47(in *jlexer.Lexer, out *DisableParams) {
  4519. isTopLevel := in.IsStart()
  4520. if in.IsNull() {
  4521. if isTopLevel {
  4522. in.Consumed()
  4523. }
  4524. in.Skip()
  4525. return
  4526. }
  4527. in.Delim('{')
  4528. for !in.IsDelim('}') {
  4529. key := in.UnsafeFieldName(false)
  4530. in.WantColon()
  4531. if in.IsNull() {
  4532. in.Skip()
  4533. in.WantComma()
  4534. continue
  4535. }
  4536. switch key {
  4537. default:
  4538. in.SkipRecursive()
  4539. }
  4540. in.WantComma()
  4541. }
  4542. in.Delim('}')
  4543. if isTopLevel {
  4544. in.Consumed()
  4545. }
  4546. }
  4547. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay47(out *jwriter.Writer, in DisableParams) {
  4548. out.RawByte('{')
  4549. first := true
  4550. _ = first
  4551. out.RawByte('}')
  4552. }
  4553. // MarshalJSON supports json.Marshaler interface
  4554. func (v DisableParams) MarshalJSON() ([]byte, error) {
  4555. w := jwriter.Writer{}
  4556. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay47(&w, v)
  4557. return w.Buffer.BuildBytes(), w.Error
  4558. }
  4559. // MarshalEasyJSON supports easyjson.Marshaler interface
  4560. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  4561. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay47(w, v)
  4562. }
  4563. // UnmarshalJSON supports json.Unmarshaler interface
  4564. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  4565. r := jlexer.Lexer{Data: data}
  4566. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay47(&r, v)
  4567. return r.Error()
  4568. }
  4569. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4570. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4571. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay47(l, v)
  4572. }
  4573. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay48(in *jlexer.Lexer, out *ContainerQueryHighlightConfig) {
  4574. isTopLevel := in.IsStart()
  4575. if in.IsNull() {
  4576. if isTopLevel {
  4577. in.Consumed()
  4578. }
  4579. in.Skip()
  4580. return
  4581. }
  4582. in.Delim('{')
  4583. for !in.IsDelim('}') {
  4584. key := in.UnsafeFieldName(false)
  4585. in.WantColon()
  4586. if in.IsNull() {
  4587. in.Skip()
  4588. in.WantComma()
  4589. continue
  4590. }
  4591. switch key {
  4592. case "containerQueryContainerHighlightConfig":
  4593. if in.IsNull() {
  4594. in.Skip()
  4595. out.ContainerQueryContainerHighlightConfig = nil
  4596. } else {
  4597. if out.ContainerQueryContainerHighlightConfig == nil {
  4598. out.ContainerQueryContainerHighlightConfig = new(ContainerQueryContainerHighlightConfig)
  4599. }
  4600. (*out.ContainerQueryContainerHighlightConfig).UnmarshalEasyJSON(in)
  4601. }
  4602. case "nodeId":
  4603. (out.NodeID).UnmarshalEasyJSON(in)
  4604. default:
  4605. in.SkipRecursive()
  4606. }
  4607. in.WantComma()
  4608. }
  4609. in.Delim('}')
  4610. if isTopLevel {
  4611. in.Consumed()
  4612. }
  4613. }
  4614. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay48(out *jwriter.Writer, in ContainerQueryHighlightConfig) {
  4615. out.RawByte('{')
  4616. first := true
  4617. _ = first
  4618. {
  4619. const prefix string = ",\"containerQueryContainerHighlightConfig\":"
  4620. out.RawString(prefix[1:])
  4621. if in.ContainerQueryContainerHighlightConfig == nil {
  4622. out.RawString("null")
  4623. } else {
  4624. (*in.ContainerQueryContainerHighlightConfig).MarshalEasyJSON(out)
  4625. }
  4626. }
  4627. {
  4628. const prefix string = ",\"nodeId\":"
  4629. out.RawString(prefix)
  4630. out.Int64(int64(in.NodeID))
  4631. }
  4632. out.RawByte('}')
  4633. }
  4634. // MarshalJSON supports json.Marshaler interface
  4635. func (v ContainerQueryHighlightConfig) MarshalJSON() ([]byte, error) {
  4636. w := jwriter.Writer{}
  4637. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay48(&w, v)
  4638. return w.Buffer.BuildBytes(), w.Error
  4639. }
  4640. // MarshalEasyJSON supports easyjson.Marshaler interface
  4641. func (v ContainerQueryHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  4642. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay48(w, v)
  4643. }
  4644. // UnmarshalJSON supports json.Unmarshaler interface
  4645. func (v *ContainerQueryHighlightConfig) UnmarshalJSON(data []byte) error {
  4646. r := jlexer.Lexer{Data: data}
  4647. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay48(&r, v)
  4648. return r.Error()
  4649. }
  4650. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4651. func (v *ContainerQueryHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4652. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay48(l, v)
  4653. }
  4654. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay49(in *jlexer.Lexer, out *ContainerQueryContainerHighlightConfig) {
  4655. isTopLevel := in.IsStart()
  4656. if in.IsNull() {
  4657. if isTopLevel {
  4658. in.Consumed()
  4659. }
  4660. in.Skip()
  4661. return
  4662. }
  4663. in.Delim('{')
  4664. for !in.IsDelim('}') {
  4665. key := in.UnsafeFieldName(false)
  4666. in.WantColon()
  4667. if in.IsNull() {
  4668. in.Skip()
  4669. in.WantComma()
  4670. continue
  4671. }
  4672. switch key {
  4673. case "containerBorder":
  4674. if in.IsNull() {
  4675. in.Skip()
  4676. out.ContainerBorder = nil
  4677. } else {
  4678. if out.ContainerBorder == nil {
  4679. out.ContainerBorder = new(LineStyle)
  4680. }
  4681. (*out.ContainerBorder).UnmarshalEasyJSON(in)
  4682. }
  4683. case "descendantBorder":
  4684. if in.IsNull() {
  4685. in.Skip()
  4686. out.DescendantBorder = nil
  4687. } else {
  4688. if out.DescendantBorder == nil {
  4689. out.DescendantBorder = new(LineStyle)
  4690. }
  4691. (*out.DescendantBorder).UnmarshalEasyJSON(in)
  4692. }
  4693. default:
  4694. in.SkipRecursive()
  4695. }
  4696. in.WantComma()
  4697. }
  4698. in.Delim('}')
  4699. if isTopLevel {
  4700. in.Consumed()
  4701. }
  4702. }
  4703. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay49(out *jwriter.Writer, in ContainerQueryContainerHighlightConfig) {
  4704. out.RawByte('{')
  4705. first := true
  4706. _ = first
  4707. if in.ContainerBorder != nil {
  4708. const prefix string = ",\"containerBorder\":"
  4709. first = false
  4710. out.RawString(prefix[1:])
  4711. (*in.ContainerBorder).MarshalEasyJSON(out)
  4712. }
  4713. if in.DescendantBorder != nil {
  4714. const prefix string = ",\"descendantBorder\":"
  4715. if first {
  4716. first = false
  4717. out.RawString(prefix[1:])
  4718. } else {
  4719. out.RawString(prefix)
  4720. }
  4721. (*in.DescendantBorder).MarshalEasyJSON(out)
  4722. }
  4723. out.RawByte('}')
  4724. }
  4725. // MarshalJSON supports json.Marshaler interface
  4726. func (v ContainerQueryContainerHighlightConfig) MarshalJSON() ([]byte, error) {
  4727. w := jwriter.Writer{}
  4728. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay49(&w, v)
  4729. return w.Buffer.BuildBytes(), w.Error
  4730. }
  4731. // MarshalEasyJSON supports easyjson.Marshaler interface
  4732. func (v ContainerQueryContainerHighlightConfig) MarshalEasyJSON(w *jwriter.Writer) {
  4733. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay49(w, v)
  4734. }
  4735. // UnmarshalJSON supports json.Unmarshaler interface
  4736. func (v *ContainerQueryContainerHighlightConfig) UnmarshalJSON(data []byte) error {
  4737. r := jlexer.Lexer{Data: data}
  4738. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay49(&r, v)
  4739. return r.Error()
  4740. }
  4741. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4742. func (v *ContainerQueryContainerHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4743. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay49(l, v)
  4744. }
  4745. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay50(in *jlexer.Lexer, out *BoxStyle) {
  4746. isTopLevel := in.IsStart()
  4747. if in.IsNull() {
  4748. if isTopLevel {
  4749. in.Consumed()
  4750. }
  4751. in.Skip()
  4752. return
  4753. }
  4754. in.Delim('{')
  4755. for !in.IsDelim('}') {
  4756. key := in.UnsafeFieldName(false)
  4757. in.WantColon()
  4758. if in.IsNull() {
  4759. in.Skip()
  4760. in.WantComma()
  4761. continue
  4762. }
  4763. switch key {
  4764. case "fillColor":
  4765. if in.IsNull() {
  4766. in.Skip()
  4767. out.FillColor = nil
  4768. } else {
  4769. if out.FillColor == nil {
  4770. out.FillColor = new(cdp.RGBA)
  4771. }
  4772. (*out.FillColor).UnmarshalEasyJSON(in)
  4773. }
  4774. case "hatchColor":
  4775. if in.IsNull() {
  4776. in.Skip()
  4777. out.HatchColor = nil
  4778. } else {
  4779. if out.HatchColor == nil {
  4780. out.HatchColor = new(cdp.RGBA)
  4781. }
  4782. (*out.HatchColor).UnmarshalEasyJSON(in)
  4783. }
  4784. default:
  4785. in.SkipRecursive()
  4786. }
  4787. in.WantComma()
  4788. }
  4789. in.Delim('}')
  4790. if isTopLevel {
  4791. in.Consumed()
  4792. }
  4793. }
  4794. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay50(out *jwriter.Writer, in BoxStyle) {
  4795. out.RawByte('{')
  4796. first := true
  4797. _ = first
  4798. if in.FillColor != nil {
  4799. const prefix string = ",\"fillColor\":"
  4800. first = false
  4801. out.RawString(prefix[1:])
  4802. (*in.FillColor).MarshalEasyJSON(out)
  4803. }
  4804. if in.HatchColor != nil {
  4805. const prefix string = ",\"hatchColor\":"
  4806. if first {
  4807. first = false
  4808. out.RawString(prefix[1:])
  4809. } else {
  4810. out.RawString(prefix)
  4811. }
  4812. (*in.HatchColor).MarshalEasyJSON(out)
  4813. }
  4814. out.RawByte('}')
  4815. }
  4816. // MarshalJSON supports json.Marshaler interface
  4817. func (v BoxStyle) MarshalJSON() ([]byte, error) {
  4818. w := jwriter.Writer{}
  4819. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay50(&w, v)
  4820. return w.Buffer.BuildBytes(), w.Error
  4821. }
  4822. // MarshalEasyJSON supports easyjson.Marshaler interface
  4823. func (v BoxStyle) MarshalEasyJSON(w *jwriter.Writer) {
  4824. easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay50(w, v)
  4825. }
  4826. // UnmarshalJSON supports json.Unmarshaler interface
  4827. func (v *BoxStyle) UnmarshalJSON(data []byte) error {
  4828. r := jlexer.Lexer{Data: data}
  4829. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay50(&r, v)
  4830. return r.Error()
  4831. }
  4832. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4833. func (v *BoxStyle) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4834. easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay50(l, v)
  4835. }