easyjson.go 133 KB

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