easyjson.go 91 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package emulation
  3. import (
  4. json "encoding/json"
  5. cdp "github.com/chromedp/cdproto/cdp"
  6. page "github.com/chromedp/cdproto/page"
  7. easyjson "github.com/mailru/easyjson"
  8. jlexer "github.com/mailru/easyjson/jlexer"
  9. jwriter "github.com/mailru/easyjson/jwriter"
  10. )
  11. // suppress unused package warning
  12. var (
  13. _ *json.RawMessage
  14. _ *jlexer.Lexer
  15. _ *jwriter.Writer
  16. _ easyjson.Marshaler
  17. )
  18. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation(in *jlexer.Lexer, out *UserAgentMetadata) {
  19. isTopLevel := in.IsStart()
  20. if in.IsNull() {
  21. if isTopLevel {
  22. in.Consumed()
  23. }
  24. in.Skip()
  25. return
  26. }
  27. in.Delim('{')
  28. for !in.IsDelim('}') {
  29. key := in.UnsafeFieldName(false)
  30. in.WantColon()
  31. if in.IsNull() {
  32. in.Skip()
  33. in.WantComma()
  34. continue
  35. }
  36. switch key {
  37. case "brands":
  38. if in.IsNull() {
  39. in.Skip()
  40. out.Brands = nil
  41. } else {
  42. in.Delim('[')
  43. if out.Brands == nil {
  44. if !in.IsDelim(']') {
  45. out.Brands = make([]*UserAgentBrandVersion, 0, 8)
  46. } else {
  47. out.Brands = []*UserAgentBrandVersion{}
  48. }
  49. } else {
  50. out.Brands = (out.Brands)[:0]
  51. }
  52. for !in.IsDelim(']') {
  53. var v1 *UserAgentBrandVersion
  54. if in.IsNull() {
  55. in.Skip()
  56. v1 = nil
  57. } else {
  58. if v1 == nil {
  59. v1 = new(UserAgentBrandVersion)
  60. }
  61. (*v1).UnmarshalEasyJSON(in)
  62. }
  63. out.Brands = append(out.Brands, v1)
  64. in.WantComma()
  65. }
  66. in.Delim(']')
  67. }
  68. case "fullVersionList":
  69. if in.IsNull() {
  70. in.Skip()
  71. out.FullVersionList = nil
  72. } else {
  73. in.Delim('[')
  74. if out.FullVersionList == nil {
  75. if !in.IsDelim(']') {
  76. out.FullVersionList = make([]*UserAgentBrandVersion, 0, 8)
  77. } else {
  78. out.FullVersionList = []*UserAgentBrandVersion{}
  79. }
  80. } else {
  81. out.FullVersionList = (out.FullVersionList)[:0]
  82. }
  83. for !in.IsDelim(']') {
  84. var v2 *UserAgentBrandVersion
  85. if in.IsNull() {
  86. in.Skip()
  87. v2 = nil
  88. } else {
  89. if v2 == nil {
  90. v2 = new(UserAgentBrandVersion)
  91. }
  92. (*v2).UnmarshalEasyJSON(in)
  93. }
  94. out.FullVersionList = append(out.FullVersionList, v2)
  95. in.WantComma()
  96. }
  97. in.Delim(']')
  98. }
  99. case "platform":
  100. out.Platform = string(in.String())
  101. case "platformVersion":
  102. out.PlatformVersion = string(in.String())
  103. case "architecture":
  104. out.Architecture = string(in.String())
  105. case "model":
  106. out.Model = string(in.String())
  107. case "mobile":
  108. out.Mobile = bool(in.Bool())
  109. case "bitness":
  110. out.Bitness = string(in.String())
  111. case "wow64":
  112. out.Wow64 = bool(in.Bool())
  113. default:
  114. in.SkipRecursive()
  115. }
  116. in.WantComma()
  117. }
  118. in.Delim('}')
  119. if isTopLevel {
  120. in.Consumed()
  121. }
  122. }
  123. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation(out *jwriter.Writer, in UserAgentMetadata) {
  124. out.RawByte('{')
  125. first := true
  126. _ = first
  127. if len(in.Brands) != 0 {
  128. const prefix string = ",\"brands\":"
  129. first = false
  130. out.RawString(prefix[1:])
  131. {
  132. out.RawByte('[')
  133. for v3, v4 := range in.Brands {
  134. if v3 > 0 {
  135. out.RawByte(',')
  136. }
  137. if v4 == nil {
  138. out.RawString("null")
  139. } else {
  140. (*v4).MarshalEasyJSON(out)
  141. }
  142. }
  143. out.RawByte(']')
  144. }
  145. }
  146. if len(in.FullVersionList) != 0 {
  147. const prefix string = ",\"fullVersionList\":"
  148. if first {
  149. first = false
  150. out.RawString(prefix[1:])
  151. } else {
  152. out.RawString(prefix)
  153. }
  154. {
  155. out.RawByte('[')
  156. for v5, v6 := range in.FullVersionList {
  157. if v5 > 0 {
  158. out.RawByte(',')
  159. }
  160. if v6 == nil {
  161. out.RawString("null")
  162. } else {
  163. (*v6).MarshalEasyJSON(out)
  164. }
  165. }
  166. out.RawByte(']')
  167. }
  168. }
  169. {
  170. const prefix string = ",\"platform\":"
  171. if first {
  172. first = false
  173. out.RawString(prefix[1:])
  174. } else {
  175. out.RawString(prefix)
  176. }
  177. out.String(string(in.Platform))
  178. }
  179. {
  180. const prefix string = ",\"platformVersion\":"
  181. out.RawString(prefix)
  182. out.String(string(in.PlatformVersion))
  183. }
  184. {
  185. const prefix string = ",\"architecture\":"
  186. out.RawString(prefix)
  187. out.String(string(in.Architecture))
  188. }
  189. {
  190. const prefix string = ",\"model\":"
  191. out.RawString(prefix)
  192. out.String(string(in.Model))
  193. }
  194. {
  195. const prefix string = ",\"mobile\":"
  196. out.RawString(prefix)
  197. out.Bool(bool(in.Mobile))
  198. }
  199. if in.Bitness != "" {
  200. const prefix string = ",\"bitness\":"
  201. out.RawString(prefix)
  202. out.String(string(in.Bitness))
  203. }
  204. if in.Wow64 {
  205. const prefix string = ",\"wow64\":"
  206. out.RawString(prefix)
  207. out.Bool(bool(in.Wow64))
  208. }
  209. out.RawByte('}')
  210. }
  211. // MarshalJSON supports json.Marshaler interface
  212. func (v UserAgentMetadata) MarshalJSON() ([]byte, error) {
  213. w := jwriter.Writer{}
  214. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation(&w, v)
  215. return w.Buffer.BuildBytes(), w.Error
  216. }
  217. // MarshalEasyJSON supports easyjson.Marshaler interface
  218. func (v UserAgentMetadata) MarshalEasyJSON(w *jwriter.Writer) {
  219. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation(w, v)
  220. }
  221. // UnmarshalJSON supports json.Unmarshaler interface
  222. func (v *UserAgentMetadata) UnmarshalJSON(data []byte) error {
  223. r := jlexer.Lexer{Data: data}
  224. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation(&r, v)
  225. return r.Error()
  226. }
  227. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  228. func (v *UserAgentMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
  229. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation(l, v)
  230. }
  231. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation1(in *jlexer.Lexer, out *UserAgentBrandVersion) {
  232. isTopLevel := in.IsStart()
  233. if in.IsNull() {
  234. if isTopLevel {
  235. in.Consumed()
  236. }
  237. in.Skip()
  238. return
  239. }
  240. in.Delim('{')
  241. for !in.IsDelim('}') {
  242. key := in.UnsafeFieldName(false)
  243. in.WantColon()
  244. if in.IsNull() {
  245. in.Skip()
  246. in.WantComma()
  247. continue
  248. }
  249. switch key {
  250. case "brand":
  251. out.Brand = string(in.String())
  252. case "version":
  253. out.Version = string(in.String())
  254. default:
  255. in.SkipRecursive()
  256. }
  257. in.WantComma()
  258. }
  259. in.Delim('}')
  260. if isTopLevel {
  261. in.Consumed()
  262. }
  263. }
  264. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation1(out *jwriter.Writer, in UserAgentBrandVersion) {
  265. out.RawByte('{')
  266. first := true
  267. _ = first
  268. {
  269. const prefix string = ",\"brand\":"
  270. out.RawString(prefix[1:])
  271. out.String(string(in.Brand))
  272. }
  273. {
  274. const prefix string = ",\"version\":"
  275. out.RawString(prefix)
  276. out.String(string(in.Version))
  277. }
  278. out.RawByte('}')
  279. }
  280. // MarshalJSON supports json.Marshaler interface
  281. func (v UserAgentBrandVersion) MarshalJSON() ([]byte, error) {
  282. w := jwriter.Writer{}
  283. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation1(&w, v)
  284. return w.Buffer.BuildBytes(), w.Error
  285. }
  286. // MarshalEasyJSON supports easyjson.Marshaler interface
  287. func (v UserAgentBrandVersion) MarshalEasyJSON(w *jwriter.Writer) {
  288. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation1(w, v)
  289. }
  290. // UnmarshalJSON supports json.Unmarshaler interface
  291. func (v *UserAgentBrandVersion) UnmarshalJSON(data []byte) error {
  292. r := jlexer.Lexer{Data: data}
  293. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation1(&r, v)
  294. return r.Error()
  295. }
  296. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  297. func (v *UserAgentBrandVersion) UnmarshalEasyJSON(l *jlexer.Lexer) {
  298. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation1(l, v)
  299. }
  300. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation2(in *jlexer.Lexer, out *SetVirtualTimePolicyReturns) {
  301. isTopLevel := in.IsStart()
  302. if in.IsNull() {
  303. if isTopLevel {
  304. in.Consumed()
  305. }
  306. in.Skip()
  307. return
  308. }
  309. in.Delim('{')
  310. for !in.IsDelim('}') {
  311. key := in.UnsafeFieldName(false)
  312. in.WantColon()
  313. if in.IsNull() {
  314. in.Skip()
  315. in.WantComma()
  316. continue
  317. }
  318. switch key {
  319. case "virtualTimeTicksBase":
  320. out.VirtualTimeTicksBase = float64(in.Float64())
  321. default:
  322. in.SkipRecursive()
  323. }
  324. in.WantComma()
  325. }
  326. in.Delim('}')
  327. if isTopLevel {
  328. in.Consumed()
  329. }
  330. }
  331. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation2(out *jwriter.Writer, in SetVirtualTimePolicyReturns) {
  332. out.RawByte('{')
  333. first := true
  334. _ = first
  335. if in.VirtualTimeTicksBase != 0 {
  336. const prefix string = ",\"virtualTimeTicksBase\":"
  337. first = false
  338. out.RawString(prefix[1:])
  339. out.Float64(float64(in.VirtualTimeTicksBase))
  340. }
  341. out.RawByte('}')
  342. }
  343. // MarshalJSON supports json.Marshaler interface
  344. func (v SetVirtualTimePolicyReturns) MarshalJSON() ([]byte, error) {
  345. w := jwriter.Writer{}
  346. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation2(&w, v)
  347. return w.Buffer.BuildBytes(), w.Error
  348. }
  349. // MarshalEasyJSON supports easyjson.Marshaler interface
  350. func (v SetVirtualTimePolicyReturns) MarshalEasyJSON(w *jwriter.Writer) {
  351. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation2(w, v)
  352. }
  353. // UnmarshalJSON supports json.Unmarshaler interface
  354. func (v *SetVirtualTimePolicyReturns) UnmarshalJSON(data []byte) error {
  355. r := jlexer.Lexer{Data: data}
  356. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation2(&r, v)
  357. return r.Error()
  358. }
  359. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  360. func (v *SetVirtualTimePolicyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  361. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation2(l, v)
  362. }
  363. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation3(in *jlexer.Lexer, out *SetVirtualTimePolicyParams) {
  364. isTopLevel := in.IsStart()
  365. if in.IsNull() {
  366. if isTopLevel {
  367. in.Consumed()
  368. }
  369. in.Skip()
  370. return
  371. }
  372. in.Delim('{')
  373. for !in.IsDelim('}') {
  374. key := in.UnsafeFieldName(false)
  375. in.WantColon()
  376. if in.IsNull() {
  377. in.Skip()
  378. in.WantComma()
  379. continue
  380. }
  381. switch key {
  382. case "policy":
  383. (out.Policy).UnmarshalEasyJSON(in)
  384. case "budget":
  385. out.Budget = float64(in.Float64())
  386. case "maxVirtualTimeTaskStarvationCount":
  387. out.MaxVirtualTimeTaskStarvationCount = int64(in.Int64())
  388. case "initialVirtualTime":
  389. if in.IsNull() {
  390. in.Skip()
  391. out.InitialVirtualTime = nil
  392. } else {
  393. if out.InitialVirtualTime == nil {
  394. out.InitialVirtualTime = new(cdp.TimeSinceEpoch)
  395. }
  396. (*out.InitialVirtualTime).UnmarshalEasyJSON(in)
  397. }
  398. default:
  399. in.SkipRecursive()
  400. }
  401. in.WantComma()
  402. }
  403. in.Delim('}')
  404. if isTopLevel {
  405. in.Consumed()
  406. }
  407. }
  408. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation3(out *jwriter.Writer, in SetVirtualTimePolicyParams) {
  409. out.RawByte('{')
  410. first := true
  411. _ = first
  412. {
  413. const prefix string = ",\"policy\":"
  414. out.RawString(prefix[1:])
  415. (in.Policy).MarshalEasyJSON(out)
  416. }
  417. if in.Budget != 0 {
  418. const prefix string = ",\"budget\":"
  419. out.RawString(prefix)
  420. out.Float64(float64(in.Budget))
  421. }
  422. if in.MaxVirtualTimeTaskStarvationCount != 0 {
  423. const prefix string = ",\"maxVirtualTimeTaskStarvationCount\":"
  424. out.RawString(prefix)
  425. out.Int64(int64(in.MaxVirtualTimeTaskStarvationCount))
  426. }
  427. if in.InitialVirtualTime != nil {
  428. const prefix string = ",\"initialVirtualTime\":"
  429. out.RawString(prefix)
  430. (*in.InitialVirtualTime).MarshalEasyJSON(out)
  431. }
  432. out.RawByte('}')
  433. }
  434. // MarshalJSON supports json.Marshaler interface
  435. func (v SetVirtualTimePolicyParams) MarshalJSON() ([]byte, error) {
  436. w := jwriter.Writer{}
  437. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation3(&w, v)
  438. return w.Buffer.BuildBytes(), w.Error
  439. }
  440. // MarshalEasyJSON supports easyjson.Marshaler interface
  441. func (v SetVirtualTimePolicyParams) MarshalEasyJSON(w *jwriter.Writer) {
  442. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation3(w, v)
  443. }
  444. // UnmarshalJSON supports json.Unmarshaler interface
  445. func (v *SetVirtualTimePolicyParams) UnmarshalJSON(data []byte) error {
  446. r := jlexer.Lexer{Data: data}
  447. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation3(&r, v)
  448. return r.Error()
  449. }
  450. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  451. func (v *SetVirtualTimePolicyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  452. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation3(l, v)
  453. }
  454. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation4(in *jlexer.Lexer, out *SetUserAgentOverrideParams) {
  455. isTopLevel := in.IsStart()
  456. if in.IsNull() {
  457. if isTopLevel {
  458. in.Consumed()
  459. }
  460. in.Skip()
  461. return
  462. }
  463. in.Delim('{')
  464. for !in.IsDelim('}') {
  465. key := in.UnsafeFieldName(false)
  466. in.WantColon()
  467. if in.IsNull() {
  468. in.Skip()
  469. in.WantComma()
  470. continue
  471. }
  472. switch key {
  473. case "userAgent":
  474. out.UserAgent = string(in.String())
  475. case "acceptLanguage":
  476. out.AcceptLanguage = string(in.String())
  477. case "platform":
  478. out.Platform = string(in.String())
  479. case "userAgentMetadata":
  480. if in.IsNull() {
  481. in.Skip()
  482. out.UserAgentMetadata = nil
  483. } else {
  484. if out.UserAgentMetadata == nil {
  485. out.UserAgentMetadata = new(UserAgentMetadata)
  486. }
  487. (*out.UserAgentMetadata).UnmarshalEasyJSON(in)
  488. }
  489. default:
  490. in.SkipRecursive()
  491. }
  492. in.WantComma()
  493. }
  494. in.Delim('}')
  495. if isTopLevel {
  496. in.Consumed()
  497. }
  498. }
  499. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation4(out *jwriter.Writer, in SetUserAgentOverrideParams) {
  500. out.RawByte('{')
  501. first := true
  502. _ = first
  503. {
  504. const prefix string = ",\"userAgent\":"
  505. out.RawString(prefix[1:])
  506. out.String(string(in.UserAgent))
  507. }
  508. if in.AcceptLanguage != "" {
  509. const prefix string = ",\"acceptLanguage\":"
  510. out.RawString(prefix)
  511. out.String(string(in.AcceptLanguage))
  512. }
  513. if in.Platform != "" {
  514. const prefix string = ",\"platform\":"
  515. out.RawString(prefix)
  516. out.String(string(in.Platform))
  517. }
  518. if in.UserAgentMetadata != nil {
  519. const prefix string = ",\"userAgentMetadata\":"
  520. out.RawString(prefix)
  521. (*in.UserAgentMetadata).MarshalEasyJSON(out)
  522. }
  523. out.RawByte('}')
  524. }
  525. // MarshalJSON supports json.Marshaler interface
  526. func (v SetUserAgentOverrideParams) MarshalJSON() ([]byte, error) {
  527. w := jwriter.Writer{}
  528. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation4(&w, v)
  529. return w.Buffer.BuildBytes(), w.Error
  530. }
  531. // MarshalEasyJSON supports easyjson.Marshaler interface
  532. func (v SetUserAgentOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  533. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation4(w, v)
  534. }
  535. // UnmarshalJSON supports json.Unmarshaler interface
  536. func (v *SetUserAgentOverrideParams) UnmarshalJSON(data []byte) error {
  537. r := jlexer.Lexer{Data: data}
  538. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation4(&r, v)
  539. return r.Error()
  540. }
  541. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  542. func (v *SetUserAgentOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  543. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation4(l, v)
  544. }
  545. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation5(in *jlexer.Lexer, out *SetTouchEmulationEnabledParams) {
  546. isTopLevel := in.IsStart()
  547. if in.IsNull() {
  548. if isTopLevel {
  549. in.Consumed()
  550. }
  551. in.Skip()
  552. return
  553. }
  554. in.Delim('{')
  555. for !in.IsDelim('}') {
  556. key := in.UnsafeFieldName(false)
  557. in.WantColon()
  558. if in.IsNull() {
  559. in.Skip()
  560. in.WantComma()
  561. continue
  562. }
  563. switch key {
  564. case "enabled":
  565. out.Enabled = bool(in.Bool())
  566. case "maxTouchPoints":
  567. out.MaxTouchPoints = int64(in.Int64())
  568. default:
  569. in.SkipRecursive()
  570. }
  571. in.WantComma()
  572. }
  573. in.Delim('}')
  574. if isTopLevel {
  575. in.Consumed()
  576. }
  577. }
  578. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation5(out *jwriter.Writer, in SetTouchEmulationEnabledParams) {
  579. out.RawByte('{')
  580. first := true
  581. _ = first
  582. {
  583. const prefix string = ",\"enabled\":"
  584. out.RawString(prefix[1:])
  585. out.Bool(bool(in.Enabled))
  586. }
  587. if in.MaxTouchPoints != 0 {
  588. const prefix string = ",\"maxTouchPoints\":"
  589. out.RawString(prefix)
  590. out.Int64(int64(in.MaxTouchPoints))
  591. }
  592. out.RawByte('}')
  593. }
  594. // MarshalJSON supports json.Marshaler interface
  595. func (v SetTouchEmulationEnabledParams) MarshalJSON() ([]byte, error) {
  596. w := jwriter.Writer{}
  597. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation5(&w, v)
  598. return w.Buffer.BuildBytes(), w.Error
  599. }
  600. // MarshalEasyJSON supports easyjson.Marshaler interface
  601. func (v SetTouchEmulationEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
  602. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation5(w, v)
  603. }
  604. // UnmarshalJSON supports json.Unmarshaler interface
  605. func (v *SetTouchEmulationEnabledParams) UnmarshalJSON(data []byte) error {
  606. r := jlexer.Lexer{Data: data}
  607. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation5(&r, v)
  608. return r.Error()
  609. }
  610. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  611. func (v *SetTouchEmulationEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  612. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation5(l, v)
  613. }
  614. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation6(in *jlexer.Lexer, out *SetTimezoneOverrideParams) {
  615. isTopLevel := in.IsStart()
  616. if in.IsNull() {
  617. if isTopLevel {
  618. in.Consumed()
  619. }
  620. in.Skip()
  621. return
  622. }
  623. in.Delim('{')
  624. for !in.IsDelim('}') {
  625. key := in.UnsafeFieldName(false)
  626. in.WantColon()
  627. if in.IsNull() {
  628. in.Skip()
  629. in.WantComma()
  630. continue
  631. }
  632. switch key {
  633. case "timezoneId":
  634. out.TimezoneID = string(in.String())
  635. default:
  636. in.SkipRecursive()
  637. }
  638. in.WantComma()
  639. }
  640. in.Delim('}')
  641. if isTopLevel {
  642. in.Consumed()
  643. }
  644. }
  645. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation6(out *jwriter.Writer, in SetTimezoneOverrideParams) {
  646. out.RawByte('{')
  647. first := true
  648. _ = first
  649. {
  650. const prefix string = ",\"timezoneId\":"
  651. out.RawString(prefix[1:])
  652. out.String(string(in.TimezoneID))
  653. }
  654. out.RawByte('}')
  655. }
  656. // MarshalJSON supports json.Marshaler interface
  657. func (v SetTimezoneOverrideParams) MarshalJSON() ([]byte, error) {
  658. w := jwriter.Writer{}
  659. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation6(&w, v)
  660. return w.Buffer.BuildBytes(), w.Error
  661. }
  662. // MarshalEasyJSON supports easyjson.Marshaler interface
  663. func (v SetTimezoneOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  664. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation6(w, v)
  665. }
  666. // UnmarshalJSON supports json.Unmarshaler interface
  667. func (v *SetTimezoneOverrideParams) UnmarshalJSON(data []byte) error {
  668. r := jlexer.Lexer{Data: data}
  669. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation6(&r, v)
  670. return r.Error()
  671. }
  672. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  673. func (v *SetTimezoneOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  674. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation6(l, v)
  675. }
  676. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation7(in *jlexer.Lexer, out *SetSensorOverrideReadingsParams) {
  677. isTopLevel := in.IsStart()
  678. if in.IsNull() {
  679. if isTopLevel {
  680. in.Consumed()
  681. }
  682. in.Skip()
  683. return
  684. }
  685. in.Delim('{')
  686. for !in.IsDelim('}') {
  687. key := in.UnsafeFieldName(false)
  688. in.WantColon()
  689. if in.IsNull() {
  690. in.Skip()
  691. in.WantComma()
  692. continue
  693. }
  694. switch key {
  695. case "type":
  696. (out.Type).UnmarshalEasyJSON(in)
  697. case "reading":
  698. if in.IsNull() {
  699. in.Skip()
  700. out.Reading = nil
  701. } else {
  702. if out.Reading == nil {
  703. out.Reading = new(SensorReading)
  704. }
  705. (*out.Reading).UnmarshalEasyJSON(in)
  706. }
  707. default:
  708. in.SkipRecursive()
  709. }
  710. in.WantComma()
  711. }
  712. in.Delim('}')
  713. if isTopLevel {
  714. in.Consumed()
  715. }
  716. }
  717. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation7(out *jwriter.Writer, in SetSensorOverrideReadingsParams) {
  718. out.RawByte('{')
  719. first := true
  720. _ = first
  721. {
  722. const prefix string = ",\"type\":"
  723. out.RawString(prefix[1:])
  724. (in.Type).MarshalEasyJSON(out)
  725. }
  726. {
  727. const prefix string = ",\"reading\":"
  728. out.RawString(prefix)
  729. if in.Reading == nil {
  730. out.RawString("null")
  731. } else {
  732. (*in.Reading).MarshalEasyJSON(out)
  733. }
  734. }
  735. out.RawByte('}')
  736. }
  737. // MarshalJSON supports json.Marshaler interface
  738. func (v SetSensorOverrideReadingsParams) MarshalJSON() ([]byte, error) {
  739. w := jwriter.Writer{}
  740. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation7(&w, v)
  741. return w.Buffer.BuildBytes(), w.Error
  742. }
  743. // MarshalEasyJSON supports easyjson.Marshaler interface
  744. func (v SetSensorOverrideReadingsParams) MarshalEasyJSON(w *jwriter.Writer) {
  745. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation7(w, v)
  746. }
  747. // UnmarshalJSON supports json.Unmarshaler interface
  748. func (v *SetSensorOverrideReadingsParams) UnmarshalJSON(data []byte) error {
  749. r := jlexer.Lexer{Data: data}
  750. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation7(&r, v)
  751. return r.Error()
  752. }
  753. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  754. func (v *SetSensorOverrideReadingsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  755. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation7(l, v)
  756. }
  757. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation8(in *jlexer.Lexer, out *SetSensorOverrideEnabledParams) {
  758. isTopLevel := in.IsStart()
  759. if in.IsNull() {
  760. if isTopLevel {
  761. in.Consumed()
  762. }
  763. in.Skip()
  764. return
  765. }
  766. in.Delim('{')
  767. for !in.IsDelim('}') {
  768. key := in.UnsafeFieldName(false)
  769. in.WantColon()
  770. if in.IsNull() {
  771. in.Skip()
  772. in.WantComma()
  773. continue
  774. }
  775. switch key {
  776. case "enabled":
  777. out.Enabled = bool(in.Bool())
  778. case "type":
  779. (out.Type).UnmarshalEasyJSON(in)
  780. case "metadata":
  781. if in.IsNull() {
  782. in.Skip()
  783. out.Metadata = nil
  784. } else {
  785. if out.Metadata == nil {
  786. out.Metadata = new(SensorMetadata)
  787. }
  788. (*out.Metadata).UnmarshalEasyJSON(in)
  789. }
  790. default:
  791. in.SkipRecursive()
  792. }
  793. in.WantComma()
  794. }
  795. in.Delim('}')
  796. if isTopLevel {
  797. in.Consumed()
  798. }
  799. }
  800. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation8(out *jwriter.Writer, in SetSensorOverrideEnabledParams) {
  801. out.RawByte('{')
  802. first := true
  803. _ = first
  804. {
  805. const prefix string = ",\"enabled\":"
  806. out.RawString(prefix[1:])
  807. out.Bool(bool(in.Enabled))
  808. }
  809. {
  810. const prefix string = ",\"type\":"
  811. out.RawString(prefix)
  812. (in.Type).MarshalEasyJSON(out)
  813. }
  814. if in.Metadata != nil {
  815. const prefix string = ",\"metadata\":"
  816. out.RawString(prefix)
  817. (*in.Metadata).MarshalEasyJSON(out)
  818. }
  819. out.RawByte('}')
  820. }
  821. // MarshalJSON supports json.Marshaler interface
  822. func (v SetSensorOverrideEnabledParams) MarshalJSON() ([]byte, error) {
  823. w := jwriter.Writer{}
  824. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation8(&w, v)
  825. return w.Buffer.BuildBytes(), w.Error
  826. }
  827. // MarshalEasyJSON supports easyjson.Marshaler interface
  828. func (v SetSensorOverrideEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
  829. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation8(w, v)
  830. }
  831. // UnmarshalJSON supports json.Unmarshaler interface
  832. func (v *SetSensorOverrideEnabledParams) UnmarshalJSON(data []byte) error {
  833. r := jlexer.Lexer{Data: data}
  834. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation8(&r, v)
  835. return r.Error()
  836. }
  837. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  838. func (v *SetSensorOverrideEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  839. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation8(l, v)
  840. }
  841. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation9(in *jlexer.Lexer, out *SetScrollbarsHiddenParams) {
  842. isTopLevel := in.IsStart()
  843. if in.IsNull() {
  844. if isTopLevel {
  845. in.Consumed()
  846. }
  847. in.Skip()
  848. return
  849. }
  850. in.Delim('{')
  851. for !in.IsDelim('}') {
  852. key := in.UnsafeFieldName(false)
  853. in.WantColon()
  854. if in.IsNull() {
  855. in.Skip()
  856. in.WantComma()
  857. continue
  858. }
  859. switch key {
  860. case "hidden":
  861. out.Hidden = bool(in.Bool())
  862. default:
  863. in.SkipRecursive()
  864. }
  865. in.WantComma()
  866. }
  867. in.Delim('}')
  868. if isTopLevel {
  869. in.Consumed()
  870. }
  871. }
  872. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation9(out *jwriter.Writer, in SetScrollbarsHiddenParams) {
  873. out.RawByte('{')
  874. first := true
  875. _ = first
  876. {
  877. const prefix string = ",\"hidden\":"
  878. out.RawString(prefix[1:])
  879. out.Bool(bool(in.Hidden))
  880. }
  881. out.RawByte('}')
  882. }
  883. // MarshalJSON supports json.Marshaler interface
  884. func (v SetScrollbarsHiddenParams) MarshalJSON() ([]byte, error) {
  885. w := jwriter.Writer{}
  886. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation9(&w, v)
  887. return w.Buffer.BuildBytes(), w.Error
  888. }
  889. // MarshalEasyJSON supports easyjson.Marshaler interface
  890. func (v SetScrollbarsHiddenParams) MarshalEasyJSON(w *jwriter.Writer) {
  891. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation9(w, v)
  892. }
  893. // UnmarshalJSON supports json.Unmarshaler interface
  894. func (v *SetScrollbarsHiddenParams) UnmarshalJSON(data []byte) error {
  895. r := jlexer.Lexer{Data: data}
  896. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation9(&r, v)
  897. return r.Error()
  898. }
  899. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  900. func (v *SetScrollbarsHiddenParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  901. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation9(l, v)
  902. }
  903. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation10(in *jlexer.Lexer, out *SetScriptExecutionDisabledParams) {
  904. isTopLevel := in.IsStart()
  905. if in.IsNull() {
  906. if isTopLevel {
  907. in.Consumed()
  908. }
  909. in.Skip()
  910. return
  911. }
  912. in.Delim('{')
  913. for !in.IsDelim('}') {
  914. key := in.UnsafeFieldName(false)
  915. in.WantColon()
  916. if in.IsNull() {
  917. in.Skip()
  918. in.WantComma()
  919. continue
  920. }
  921. switch key {
  922. case "value":
  923. out.Value = bool(in.Bool())
  924. default:
  925. in.SkipRecursive()
  926. }
  927. in.WantComma()
  928. }
  929. in.Delim('}')
  930. if isTopLevel {
  931. in.Consumed()
  932. }
  933. }
  934. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation10(out *jwriter.Writer, in SetScriptExecutionDisabledParams) {
  935. out.RawByte('{')
  936. first := true
  937. _ = first
  938. {
  939. const prefix string = ",\"value\":"
  940. out.RawString(prefix[1:])
  941. out.Bool(bool(in.Value))
  942. }
  943. out.RawByte('}')
  944. }
  945. // MarshalJSON supports json.Marshaler interface
  946. func (v SetScriptExecutionDisabledParams) MarshalJSON() ([]byte, error) {
  947. w := jwriter.Writer{}
  948. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation10(&w, v)
  949. return w.Buffer.BuildBytes(), w.Error
  950. }
  951. // MarshalEasyJSON supports easyjson.Marshaler interface
  952. func (v SetScriptExecutionDisabledParams) MarshalEasyJSON(w *jwriter.Writer) {
  953. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation10(w, v)
  954. }
  955. // UnmarshalJSON supports json.Unmarshaler interface
  956. func (v *SetScriptExecutionDisabledParams) UnmarshalJSON(data []byte) error {
  957. r := jlexer.Lexer{Data: data}
  958. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation10(&r, v)
  959. return r.Error()
  960. }
  961. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  962. func (v *SetScriptExecutionDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  963. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation10(l, v)
  964. }
  965. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation11(in *jlexer.Lexer, out *SetPageScaleFactorParams) {
  966. isTopLevel := in.IsStart()
  967. if in.IsNull() {
  968. if isTopLevel {
  969. in.Consumed()
  970. }
  971. in.Skip()
  972. return
  973. }
  974. in.Delim('{')
  975. for !in.IsDelim('}') {
  976. key := in.UnsafeFieldName(false)
  977. in.WantColon()
  978. if in.IsNull() {
  979. in.Skip()
  980. in.WantComma()
  981. continue
  982. }
  983. switch key {
  984. case "pageScaleFactor":
  985. out.PageScaleFactor = float64(in.Float64())
  986. default:
  987. in.SkipRecursive()
  988. }
  989. in.WantComma()
  990. }
  991. in.Delim('}')
  992. if isTopLevel {
  993. in.Consumed()
  994. }
  995. }
  996. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation11(out *jwriter.Writer, in SetPageScaleFactorParams) {
  997. out.RawByte('{')
  998. first := true
  999. _ = first
  1000. {
  1001. const prefix string = ",\"pageScaleFactor\":"
  1002. out.RawString(prefix[1:])
  1003. out.Float64(float64(in.PageScaleFactor))
  1004. }
  1005. out.RawByte('}')
  1006. }
  1007. // MarshalJSON supports json.Marshaler interface
  1008. func (v SetPageScaleFactorParams) MarshalJSON() ([]byte, error) {
  1009. w := jwriter.Writer{}
  1010. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation11(&w, v)
  1011. return w.Buffer.BuildBytes(), w.Error
  1012. }
  1013. // MarshalEasyJSON supports easyjson.Marshaler interface
  1014. func (v SetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) {
  1015. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation11(w, v)
  1016. }
  1017. // UnmarshalJSON supports json.Unmarshaler interface
  1018. func (v *SetPageScaleFactorParams) UnmarshalJSON(data []byte) error {
  1019. r := jlexer.Lexer{Data: data}
  1020. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation11(&r, v)
  1021. return r.Error()
  1022. }
  1023. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1024. func (v *SetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1025. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation11(l, v)
  1026. }
  1027. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation12(in *jlexer.Lexer, out *SetLocaleOverrideParams) {
  1028. isTopLevel := in.IsStart()
  1029. if in.IsNull() {
  1030. if isTopLevel {
  1031. in.Consumed()
  1032. }
  1033. in.Skip()
  1034. return
  1035. }
  1036. in.Delim('{')
  1037. for !in.IsDelim('}') {
  1038. key := in.UnsafeFieldName(false)
  1039. in.WantColon()
  1040. if in.IsNull() {
  1041. in.Skip()
  1042. in.WantComma()
  1043. continue
  1044. }
  1045. switch key {
  1046. case "locale":
  1047. out.Locale = string(in.String())
  1048. default:
  1049. in.SkipRecursive()
  1050. }
  1051. in.WantComma()
  1052. }
  1053. in.Delim('}')
  1054. if isTopLevel {
  1055. in.Consumed()
  1056. }
  1057. }
  1058. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation12(out *jwriter.Writer, in SetLocaleOverrideParams) {
  1059. out.RawByte('{')
  1060. first := true
  1061. _ = first
  1062. if in.Locale != "" {
  1063. const prefix string = ",\"locale\":"
  1064. first = false
  1065. out.RawString(prefix[1:])
  1066. out.String(string(in.Locale))
  1067. }
  1068. out.RawByte('}')
  1069. }
  1070. // MarshalJSON supports json.Marshaler interface
  1071. func (v SetLocaleOverrideParams) MarshalJSON() ([]byte, error) {
  1072. w := jwriter.Writer{}
  1073. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation12(&w, v)
  1074. return w.Buffer.BuildBytes(), w.Error
  1075. }
  1076. // MarshalEasyJSON supports easyjson.Marshaler interface
  1077. func (v SetLocaleOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  1078. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation12(w, v)
  1079. }
  1080. // UnmarshalJSON supports json.Unmarshaler interface
  1081. func (v *SetLocaleOverrideParams) UnmarshalJSON(data []byte) error {
  1082. r := jlexer.Lexer{Data: data}
  1083. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation12(&r, v)
  1084. return r.Error()
  1085. }
  1086. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1087. func (v *SetLocaleOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1088. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation12(l, v)
  1089. }
  1090. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation13(in *jlexer.Lexer, out *SetIdleOverrideParams) {
  1091. isTopLevel := in.IsStart()
  1092. if in.IsNull() {
  1093. if isTopLevel {
  1094. in.Consumed()
  1095. }
  1096. in.Skip()
  1097. return
  1098. }
  1099. in.Delim('{')
  1100. for !in.IsDelim('}') {
  1101. key := in.UnsafeFieldName(false)
  1102. in.WantColon()
  1103. if in.IsNull() {
  1104. in.Skip()
  1105. in.WantComma()
  1106. continue
  1107. }
  1108. switch key {
  1109. case "isUserActive":
  1110. out.IsUserActive = bool(in.Bool())
  1111. case "isScreenUnlocked":
  1112. out.IsScreenUnlocked = bool(in.Bool())
  1113. default:
  1114. in.SkipRecursive()
  1115. }
  1116. in.WantComma()
  1117. }
  1118. in.Delim('}')
  1119. if isTopLevel {
  1120. in.Consumed()
  1121. }
  1122. }
  1123. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation13(out *jwriter.Writer, in SetIdleOverrideParams) {
  1124. out.RawByte('{')
  1125. first := true
  1126. _ = first
  1127. {
  1128. const prefix string = ",\"isUserActive\":"
  1129. out.RawString(prefix[1:])
  1130. out.Bool(bool(in.IsUserActive))
  1131. }
  1132. {
  1133. const prefix string = ",\"isScreenUnlocked\":"
  1134. out.RawString(prefix)
  1135. out.Bool(bool(in.IsScreenUnlocked))
  1136. }
  1137. out.RawByte('}')
  1138. }
  1139. // MarshalJSON supports json.Marshaler interface
  1140. func (v SetIdleOverrideParams) MarshalJSON() ([]byte, error) {
  1141. w := jwriter.Writer{}
  1142. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation13(&w, v)
  1143. return w.Buffer.BuildBytes(), w.Error
  1144. }
  1145. // MarshalEasyJSON supports easyjson.Marshaler interface
  1146. func (v SetIdleOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  1147. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation13(w, v)
  1148. }
  1149. // UnmarshalJSON supports json.Unmarshaler interface
  1150. func (v *SetIdleOverrideParams) UnmarshalJSON(data []byte) error {
  1151. r := jlexer.Lexer{Data: data}
  1152. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation13(&r, v)
  1153. return r.Error()
  1154. }
  1155. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1156. func (v *SetIdleOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1157. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation13(l, v)
  1158. }
  1159. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation14(in *jlexer.Lexer, out *SetHardwareConcurrencyOverrideParams) {
  1160. isTopLevel := in.IsStart()
  1161. if in.IsNull() {
  1162. if isTopLevel {
  1163. in.Consumed()
  1164. }
  1165. in.Skip()
  1166. return
  1167. }
  1168. in.Delim('{')
  1169. for !in.IsDelim('}') {
  1170. key := in.UnsafeFieldName(false)
  1171. in.WantColon()
  1172. if in.IsNull() {
  1173. in.Skip()
  1174. in.WantComma()
  1175. continue
  1176. }
  1177. switch key {
  1178. case "hardwareConcurrency":
  1179. out.HardwareConcurrency = int64(in.Int64())
  1180. default:
  1181. in.SkipRecursive()
  1182. }
  1183. in.WantComma()
  1184. }
  1185. in.Delim('}')
  1186. if isTopLevel {
  1187. in.Consumed()
  1188. }
  1189. }
  1190. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation14(out *jwriter.Writer, in SetHardwareConcurrencyOverrideParams) {
  1191. out.RawByte('{')
  1192. first := true
  1193. _ = first
  1194. {
  1195. const prefix string = ",\"hardwareConcurrency\":"
  1196. out.RawString(prefix[1:])
  1197. out.Int64(int64(in.HardwareConcurrency))
  1198. }
  1199. out.RawByte('}')
  1200. }
  1201. // MarshalJSON supports json.Marshaler interface
  1202. func (v SetHardwareConcurrencyOverrideParams) MarshalJSON() ([]byte, error) {
  1203. w := jwriter.Writer{}
  1204. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation14(&w, v)
  1205. return w.Buffer.BuildBytes(), w.Error
  1206. }
  1207. // MarshalEasyJSON supports easyjson.Marshaler interface
  1208. func (v SetHardwareConcurrencyOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  1209. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation14(w, v)
  1210. }
  1211. // UnmarshalJSON supports json.Unmarshaler interface
  1212. func (v *SetHardwareConcurrencyOverrideParams) UnmarshalJSON(data []byte) error {
  1213. r := jlexer.Lexer{Data: data}
  1214. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation14(&r, v)
  1215. return r.Error()
  1216. }
  1217. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1218. func (v *SetHardwareConcurrencyOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1219. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation14(l, v)
  1220. }
  1221. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation15(in *jlexer.Lexer, out *SetGeolocationOverrideParams) {
  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 "latitude":
  1241. out.Latitude = float64(in.Float64())
  1242. case "longitude":
  1243. out.Longitude = float64(in.Float64())
  1244. case "accuracy":
  1245. out.Accuracy = float64(in.Float64())
  1246. default:
  1247. in.SkipRecursive()
  1248. }
  1249. in.WantComma()
  1250. }
  1251. in.Delim('}')
  1252. if isTopLevel {
  1253. in.Consumed()
  1254. }
  1255. }
  1256. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation15(out *jwriter.Writer, in SetGeolocationOverrideParams) {
  1257. out.RawByte('{')
  1258. first := true
  1259. _ = first
  1260. if in.Latitude != 0 {
  1261. const prefix string = ",\"latitude\":"
  1262. first = false
  1263. out.RawString(prefix[1:])
  1264. out.Float64(float64(in.Latitude))
  1265. }
  1266. if in.Longitude != 0 {
  1267. const prefix string = ",\"longitude\":"
  1268. if first {
  1269. first = false
  1270. out.RawString(prefix[1:])
  1271. } else {
  1272. out.RawString(prefix)
  1273. }
  1274. out.Float64(float64(in.Longitude))
  1275. }
  1276. if in.Accuracy != 0 {
  1277. const prefix string = ",\"accuracy\":"
  1278. if first {
  1279. first = false
  1280. out.RawString(prefix[1:])
  1281. } else {
  1282. out.RawString(prefix)
  1283. }
  1284. out.Float64(float64(in.Accuracy))
  1285. }
  1286. out.RawByte('}')
  1287. }
  1288. // MarshalJSON supports json.Marshaler interface
  1289. func (v SetGeolocationOverrideParams) MarshalJSON() ([]byte, error) {
  1290. w := jwriter.Writer{}
  1291. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation15(&w, v)
  1292. return w.Buffer.BuildBytes(), w.Error
  1293. }
  1294. // MarshalEasyJSON supports easyjson.Marshaler interface
  1295. func (v SetGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  1296. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation15(w, v)
  1297. }
  1298. // UnmarshalJSON supports json.Unmarshaler interface
  1299. func (v *SetGeolocationOverrideParams) UnmarshalJSON(data []byte) error {
  1300. r := jlexer.Lexer{Data: data}
  1301. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation15(&r, v)
  1302. return r.Error()
  1303. }
  1304. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1305. func (v *SetGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1306. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation15(l, v)
  1307. }
  1308. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation16(in *jlexer.Lexer, out *SetFocusEmulationEnabledParams) {
  1309. isTopLevel := in.IsStart()
  1310. if in.IsNull() {
  1311. if isTopLevel {
  1312. in.Consumed()
  1313. }
  1314. in.Skip()
  1315. return
  1316. }
  1317. in.Delim('{')
  1318. for !in.IsDelim('}') {
  1319. key := in.UnsafeFieldName(false)
  1320. in.WantColon()
  1321. if in.IsNull() {
  1322. in.Skip()
  1323. in.WantComma()
  1324. continue
  1325. }
  1326. switch key {
  1327. case "enabled":
  1328. out.Enabled = bool(in.Bool())
  1329. default:
  1330. in.SkipRecursive()
  1331. }
  1332. in.WantComma()
  1333. }
  1334. in.Delim('}')
  1335. if isTopLevel {
  1336. in.Consumed()
  1337. }
  1338. }
  1339. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation16(out *jwriter.Writer, in SetFocusEmulationEnabledParams) {
  1340. out.RawByte('{')
  1341. first := true
  1342. _ = first
  1343. {
  1344. const prefix string = ",\"enabled\":"
  1345. out.RawString(prefix[1:])
  1346. out.Bool(bool(in.Enabled))
  1347. }
  1348. out.RawByte('}')
  1349. }
  1350. // MarshalJSON supports json.Marshaler interface
  1351. func (v SetFocusEmulationEnabledParams) MarshalJSON() ([]byte, error) {
  1352. w := jwriter.Writer{}
  1353. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation16(&w, v)
  1354. return w.Buffer.BuildBytes(), w.Error
  1355. }
  1356. // MarshalEasyJSON supports easyjson.Marshaler interface
  1357. func (v SetFocusEmulationEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
  1358. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation16(w, v)
  1359. }
  1360. // UnmarshalJSON supports json.Unmarshaler interface
  1361. func (v *SetFocusEmulationEnabledParams) UnmarshalJSON(data []byte) error {
  1362. r := jlexer.Lexer{Data: data}
  1363. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation16(&r, v)
  1364. return r.Error()
  1365. }
  1366. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1367. func (v *SetFocusEmulationEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1368. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation16(l, v)
  1369. }
  1370. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation17(in *jlexer.Lexer, out *SetEmulatedVisionDeficiencyParams) {
  1371. isTopLevel := in.IsStart()
  1372. if in.IsNull() {
  1373. if isTopLevel {
  1374. in.Consumed()
  1375. }
  1376. in.Skip()
  1377. return
  1378. }
  1379. in.Delim('{')
  1380. for !in.IsDelim('}') {
  1381. key := in.UnsafeFieldName(false)
  1382. in.WantColon()
  1383. if in.IsNull() {
  1384. in.Skip()
  1385. in.WantComma()
  1386. continue
  1387. }
  1388. switch key {
  1389. case "type":
  1390. (out.Type).UnmarshalEasyJSON(in)
  1391. default:
  1392. in.SkipRecursive()
  1393. }
  1394. in.WantComma()
  1395. }
  1396. in.Delim('}')
  1397. if isTopLevel {
  1398. in.Consumed()
  1399. }
  1400. }
  1401. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation17(out *jwriter.Writer, in SetEmulatedVisionDeficiencyParams) {
  1402. out.RawByte('{')
  1403. first := true
  1404. _ = first
  1405. {
  1406. const prefix string = ",\"type\":"
  1407. out.RawString(prefix[1:])
  1408. (in.Type).MarshalEasyJSON(out)
  1409. }
  1410. out.RawByte('}')
  1411. }
  1412. // MarshalJSON supports json.Marshaler interface
  1413. func (v SetEmulatedVisionDeficiencyParams) MarshalJSON() ([]byte, error) {
  1414. w := jwriter.Writer{}
  1415. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation17(&w, v)
  1416. return w.Buffer.BuildBytes(), w.Error
  1417. }
  1418. // MarshalEasyJSON supports easyjson.Marshaler interface
  1419. func (v SetEmulatedVisionDeficiencyParams) MarshalEasyJSON(w *jwriter.Writer) {
  1420. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation17(w, v)
  1421. }
  1422. // UnmarshalJSON supports json.Unmarshaler interface
  1423. func (v *SetEmulatedVisionDeficiencyParams) UnmarshalJSON(data []byte) error {
  1424. r := jlexer.Lexer{Data: data}
  1425. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation17(&r, v)
  1426. return r.Error()
  1427. }
  1428. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1429. func (v *SetEmulatedVisionDeficiencyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1430. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation17(l, v)
  1431. }
  1432. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation18(in *jlexer.Lexer, out *SetEmulatedMediaParams) {
  1433. isTopLevel := in.IsStart()
  1434. if in.IsNull() {
  1435. if isTopLevel {
  1436. in.Consumed()
  1437. }
  1438. in.Skip()
  1439. return
  1440. }
  1441. in.Delim('{')
  1442. for !in.IsDelim('}') {
  1443. key := in.UnsafeFieldName(false)
  1444. in.WantColon()
  1445. if in.IsNull() {
  1446. in.Skip()
  1447. in.WantComma()
  1448. continue
  1449. }
  1450. switch key {
  1451. case "media":
  1452. out.Media = string(in.String())
  1453. case "features":
  1454. if in.IsNull() {
  1455. in.Skip()
  1456. out.Features = nil
  1457. } else {
  1458. in.Delim('[')
  1459. if out.Features == nil {
  1460. if !in.IsDelim(']') {
  1461. out.Features = make([]*MediaFeature, 0, 8)
  1462. } else {
  1463. out.Features = []*MediaFeature{}
  1464. }
  1465. } else {
  1466. out.Features = (out.Features)[:0]
  1467. }
  1468. for !in.IsDelim(']') {
  1469. var v7 *MediaFeature
  1470. if in.IsNull() {
  1471. in.Skip()
  1472. v7 = nil
  1473. } else {
  1474. if v7 == nil {
  1475. v7 = new(MediaFeature)
  1476. }
  1477. (*v7).UnmarshalEasyJSON(in)
  1478. }
  1479. out.Features = append(out.Features, v7)
  1480. in.WantComma()
  1481. }
  1482. in.Delim(']')
  1483. }
  1484. default:
  1485. in.SkipRecursive()
  1486. }
  1487. in.WantComma()
  1488. }
  1489. in.Delim('}')
  1490. if isTopLevel {
  1491. in.Consumed()
  1492. }
  1493. }
  1494. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation18(out *jwriter.Writer, in SetEmulatedMediaParams) {
  1495. out.RawByte('{')
  1496. first := true
  1497. _ = first
  1498. if in.Media != "" {
  1499. const prefix string = ",\"media\":"
  1500. first = false
  1501. out.RawString(prefix[1:])
  1502. out.String(string(in.Media))
  1503. }
  1504. if len(in.Features) != 0 {
  1505. const prefix string = ",\"features\":"
  1506. if first {
  1507. first = false
  1508. out.RawString(prefix[1:])
  1509. } else {
  1510. out.RawString(prefix)
  1511. }
  1512. {
  1513. out.RawByte('[')
  1514. for v8, v9 := range in.Features {
  1515. if v8 > 0 {
  1516. out.RawByte(',')
  1517. }
  1518. if v9 == nil {
  1519. out.RawString("null")
  1520. } else {
  1521. (*v9).MarshalEasyJSON(out)
  1522. }
  1523. }
  1524. out.RawByte(']')
  1525. }
  1526. }
  1527. out.RawByte('}')
  1528. }
  1529. // MarshalJSON supports json.Marshaler interface
  1530. func (v SetEmulatedMediaParams) MarshalJSON() ([]byte, error) {
  1531. w := jwriter.Writer{}
  1532. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation18(&w, v)
  1533. return w.Buffer.BuildBytes(), w.Error
  1534. }
  1535. // MarshalEasyJSON supports easyjson.Marshaler interface
  1536. func (v SetEmulatedMediaParams) MarshalEasyJSON(w *jwriter.Writer) {
  1537. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation18(w, v)
  1538. }
  1539. // UnmarshalJSON supports json.Unmarshaler interface
  1540. func (v *SetEmulatedMediaParams) UnmarshalJSON(data []byte) error {
  1541. r := jlexer.Lexer{Data: data}
  1542. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation18(&r, v)
  1543. return r.Error()
  1544. }
  1545. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1546. func (v *SetEmulatedMediaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1547. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation18(l, v)
  1548. }
  1549. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation19(in *jlexer.Lexer, out *SetEmitTouchEventsForMouseParams) {
  1550. isTopLevel := in.IsStart()
  1551. if in.IsNull() {
  1552. if isTopLevel {
  1553. in.Consumed()
  1554. }
  1555. in.Skip()
  1556. return
  1557. }
  1558. in.Delim('{')
  1559. for !in.IsDelim('}') {
  1560. key := in.UnsafeFieldName(false)
  1561. in.WantColon()
  1562. if in.IsNull() {
  1563. in.Skip()
  1564. in.WantComma()
  1565. continue
  1566. }
  1567. switch key {
  1568. case "enabled":
  1569. out.Enabled = bool(in.Bool())
  1570. case "configuration":
  1571. (out.Configuration).UnmarshalEasyJSON(in)
  1572. default:
  1573. in.SkipRecursive()
  1574. }
  1575. in.WantComma()
  1576. }
  1577. in.Delim('}')
  1578. if isTopLevel {
  1579. in.Consumed()
  1580. }
  1581. }
  1582. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation19(out *jwriter.Writer, in SetEmitTouchEventsForMouseParams) {
  1583. out.RawByte('{')
  1584. first := true
  1585. _ = first
  1586. {
  1587. const prefix string = ",\"enabled\":"
  1588. out.RawString(prefix[1:])
  1589. out.Bool(bool(in.Enabled))
  1590. }
  1591. if in.Configuration != "" {
  1592. const prefix string = ",\"configuration\":"
  1593. out.RawString(prefix)
  1594. (in.Configuration).MarshalEasyJSON(out)
  1595. }
  1596. out.RawByte('}')
  1597. }
  1598. // MarshalJSON supports json.Marshaler interface
  1599. func (v SetEmitTouchEventsForMouseParams) MarshalJSON() ([]byte, error) {
  1600. w := jwriter.Writer{}
  1601. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation19(&w, v)
  1602. return w.Buffer.BuildBytes(), w.Error
  1603. }
  1604. // MarshalEasyJSON supports easyjson.Marshaler interface
  1605. func (v SetEmitTouchEventsForMouseParams) MarshalEasyJSON(w *jwriter.Writer) {
  1606. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation19(w, v)
  1607. }
  1608. // UnmarshalJSON supports json.Unmarshaler interface
  1609. func (v *SetEmitTouchEventsForMouseParams) UnmarshalJSON(data []byte) error {
  1610. r := jlexer.Lexer{Data: data}
  1611. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation19(&r, v)
  1612. return r.Error()
  1613. }
  1614. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1615. func (v *SetEmitTouchEventsForMouseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1616. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation19(l, v)
  1617. }
  1618. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation20(in *jlexer.Lexer, out *SetDocumentCookieDisabledParams) {
  1619. isTopLevel := in.IsStart()
  1620. if in.IsNull() {
  1621. if isTopLevel {
  1622. in.Consumed()
  1623. }
  1624. in.Skip()
  1625. return
  1626. }
  1627. in.Delim('{')
  1628. for !in.IsDelim('}') {
  1629. key := in.UnsafeFieldName(false)
  1630. in.WantColon()
  1631. if in.IsNull() {
  1632. in.Skip()
  1633. in.WantComma()
  1634. continue
  1635. }
  1636. switch key {
  1637. case "disabled":
  1638. out.Disabled = bool(in.Bool())
  1639. default:
  1640. in.SkipRecursive()
  1641. }
  1642. in.WantComma()
  1643. }
  1644. in.Delim('}')
  1645. if isTopLevel {
  1646. in.Consumed()
  1647. }
  1648. }
  1649. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation20(out *jwriter.Writer, in SetDocumentCookieDisabledParams) {
  1650. out.RawByte('{')
  1651. first := true
  1652. _ = first
  1653. {
  1654. const prefix string = ",\"disabled\":"
  1655. out.RawString(prefix[1:])
  1656. out.Bool(bool(in.Disabled))
  1657. }
  1658. out.RawByte('}')
  1659. }
  1660. // MarshalJSON supports json.Marshaler interface
  1661. func (v SetDocumentCookieDisabledParams) MarshalJSON() ([]byte, error) {
  1662. w := jwriter.Writer{}
  1663. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation20(&w, v)
  1664. return w.Buffer.BuildBytes(), w.Error
  1665. }
  1666. // MarshalEasyJSON supports easyjson.Marshaler interface
  1667. func (v SetDocumentCookieDisabledParams) MarshalEasyJSON(w *jwriter.Writer) {
  1668. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation20(w, v)
  1669. }
  1670. // UnmarshalJSON supports json.Unmarshaler interface
  1671. func (v *SetDocumentCookieDisabledParams) UnmarshalJSON(data []byte) error {
  1672. r := jlexer.Lexer{Data: data}
  1673. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation20(&r, v)
  1674. return r.Error()
  1675. }
  1676. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1677. func (v *SetDocumentCookieDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1678. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation20(l, v)
  1679. }
  1680. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation21(in *jlexer.Lexer, out *SetDisabledImageTypesParams) {
  1681. isTopLevel := in.IsStart()
  1682. if in.IsNull() {
  1683. if isTopLevel {
  1684. in.Consumed()
  1685. }
  1686. in.Skip()
  1687. return
  1688. }
  1689. in.Delim('{')
  1690. for !in.IsDelim('}') {
  1691. key := in.UnsafeFieldName(false)
  1692. in.WantColon()
  1693. if in.IsNull() {
  1694. in.Skip()
  1695. in.WantComma()
  1696. continue
  1697. }
  1698. switch key {
  1699. case "imageTypes":
  1700. if in.IsNull() {
  1701. in.Skip()
  1702. out.ImageTypes = nil
  1703. } else {
  1704. in.Delim('[')
  1705. if out.ImageTypes == nil {
  1706. if !in.IsDelim(']') {
  1707. out.ImageTypes = make([]DisabledImageType, 0, 4)
  1708. } else {
  1709. out.ImageTypes = []DisabledImageType{}
  1710. }
  1711. } else {
  1712. out.ImageTypes = (out.ImageTypes)[:0]
  1713. }
  1714. for !in.IsDelim(']') {
  1715. var v10 DisabledImageType
  1716. (v10).UnmarshalEasyJSON(in)
  1717. out.ImageTypes = append(out.ImageTypes, v10)
  1718. in.WantComma()
  1719. }
  1720. in.Delim(']')
  1721. }
  1722. default:
  1723. in.SkipRecursive()
  1724. }
  1725. in.WantComma()
  1726. }
  1727. in.Delim('}')
  1728. if isTopLevel {
  1729. in.Consumed()
  1730. }
  1731. }
  1732. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation21(out *jwriter.Writer, in SetDisabledImageTypesParams) {
  1733. out.RawByte('{')
  1734. first := true
  1735. _ = first
  1736. {
  1737. const prefix string = ",\"imageTypes\":"
  1738. out.RawString(prefix[1:])
  1739. if in.ImageTypes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1740. out.RawString("null")
  1741. } else {
  1742. out.RawByte('[')
  1743. for v11, v12 := range in.ImageTypes {
  1744. if v11 > 0 {
  1745. out.RawByte(',')
  1746. }
  1747. (v12).MarshalEasyJSON(out)
  1748. }
  1749. out.RawByte(']')
  1750. }
  1751. }
  1752. out.RawByte('}')
  1753. }
  1754. // MarshalJSON supports json.Marshaler interface
  1755. func (v SetDisabledImageTypesParams) MarshalJSON() ([]byte, error) {
  1756. w := jwriter.Writer{}
  1757. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation21(&w, v)
  1758. return w.Buffer.BuildBytes(), w.Error
  1759. }
  1760. // MarshalEasyJSON supports easyjson.Marshaler interface
  1761. func (v SetDisabledImageTypesParams) MarshalEasyJSON(w *jwriter.Writer) {
  1762. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation21(w, v)
  1763. }
  1764. // UnmarshalJSON supports json.Unmarshaler interface
  1765. func (v *SetDisabledImageTypesParams) UnmarshalJSON(data []byte) error {
  1766. r := jlexer.Lexer{Data: data}
  1767. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation21(&r, v)
  1768. return r.Error()
  1769. }
  1770. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1771. func (v *SetDisabledImageTypesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1772. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation21(l, v)
  1773. }
  1774. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation22(in *jlexer.Lexer, out *SetDevicePostureOverrideParams) {
  1775. isTopLevel := in.IsStart()
  1776. if in.IsNull() {
  1777. if isTopLevel {
  1778. in.Consumed()
  1779. }
  1780. in.Skip()
  1781. return
  1782. }
  1783. in.Delim('{')
  1784. for !in.IsDelim('}') {
  1785. key := in.UnsafeFieldName(false)
  1786. in.WantColon()
  1787. if in.IsNull() {
  1788. in.Skip()
  1789. in.WantComma()
  1790. continue
  1791. }
  1792. switch key {
  1793. case "posture":
  1794. if in.IsNull() {
  1795. in.Skip()
  1796. out.Posture = nil
  1797. } else {
  1798. if out.Posture == nil {
  1799. out.Posture = new(DevicePosture)
  1800. }
  1801. (*out.Posture).UnmarshalEasyJSON(in)
  1802. }
  1803. default:
  1804. in.SkipRecursive()
  1805. }
  1806. in.WantComma()
  1807. }
  1808. in.Delim('}')
  1809. if isTopLevel {
  1810. in.Consumed()
  1811. }
  1812. }
  1813. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation22(out *jwriter.Writer, in SetDevicePostureOverrideParams) {
  1814. out.RawByte('{')
  1815. first := true
  1816. _ = first
  1817. {
  1818. const prefix string = ",\"posture\":"
  1819. out.RawString(prefix[1:])
  1820. if in.Posture == nil {
  1821. out.RawString("null")
  1822. } else {
  1823. (*in.Posture).MarshalEasyJSON(out)
  1824. }
  1825. }
  1826. out.RawByte('}')
  1827. }
  1828. // MarshalJSON supports json.Marshaler interface
  1829. func (v SetDevicePostureOverrideParams) MarshalJSON() ([]byte, error) {
  1830. w := jwriter.Writer{}
  1831. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation22(&w, v)
  1832. return w.Buffer.BuildBytes(), w.Error
  1833. }
  1834. // MarshalEasyJSON supports easyjson.Marshaler interface
  1835. func (v SetDevicePostureOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  1836. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation22(w, v)
  1837. }
  1838. // UnmarshalJSON supports json.Unmarshaler interface
  1839. func (v *SetDevicePostureOverrideParams) UnmarshalJSON(data []byte) error {
  1840. r := jlexer.Lexer{Data: data}
  1841. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation22(&r, v)
  1842. return r.Error()
  1843. }
  1844. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1845. func (v *SetDevicePostureOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1846. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation22(l, v)
  1847. }
  1848. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation23(in *jlexer.Lexer, out *SetDeviceMetricsOverrideParams) {
  1849. isTopLevel := in.IsStart()
  1850. if in.IsNull() {
  1851. if isTopLevel {
  1852. in.Consumed()
  1853. }
  1854. in.Skip()
  1855. return
  1856. }
  1857. in.Delim('{')
  1858. for !in.IsDelim('}') {
  1859. key := in.UnsafeFieldName(false)
  1860. in.WantColon()
  1861. if in.IsNull() {
  1862. in.Skip()
  1863. in.WantComma()
  1864. continue
  1865. }
  1866. switch key {
  1867. case "width":
  1868. out.Width = int64(in.Int64())
  1869. case "height":
  1870. out.Height = int64(in.Int64())
  1871. case "deviceScaleFactor":
  1872. out.DeviceScaleFactor = float64(in.Float64())
  1873. case "mobile":
  1874. out.Mobile = bool(in.Bool())
  1875. case "scale":
  1876. out.Scale = float64(in.Float64())
  1877. case "screenWidth":
  1878. out.ScreenWidth = int64(in.Int64())
  1879. case "screenHeight":
  1880. out.ScreenHeight = int64(in.Int64())
  1881. case "positionX":
  1882. out.PositionX = int64(in.Int64())
  1883. case "positionY":
  1884. out.PositionY = int64(in.Int64())
  1885. case "dontSetVisibleSize":
  1886. out.DontSetVisibleSize = bool(in.Bool())
  1887. case "screenOrientation":
  1888. if in.IsNull() {
  1889. in.Skip()
  1890. out.ScreenOrientation = nil
  1891. } else {
  1892. if out.ScreenOrientation == nil {
  1893. out.ScreenOrientation = new(ScreenOrientation)
  1894. }
  1895. (*out.ScreenOrientation).UnmarshalEasyJSON(in)
  1896. }
  1897. case "viewport":
  1898. if in.IsNull() {
  1899. in.Skip()
  1900. out.Viewport = nil
  1901. } else {
  1902. if out.Viewport == nil {
  1903. out.Viewport = new(page.Viewport)
  1904. }
  1905. (*out.Viewport).UnmarshalEasyJSON(in)
  1906. }
  1907. case "displayFeature":
  1908. if in.IsNull() {
  1909. in.Skip()
  1910. out.DisplayFeature = nil
  1911. } else {
  1912. if out.DisplayFeature == nil {
  1913. out.DisplayFeature = new(DisplayFeature)
  1914. }
  1915. (*out.DisplayFeature).UnmarshalEasyJSON(in)
  1916. }
  1917. default:
  1918. in.SkipRecursive()
  1919. }
  1920. in.WantComma()
  1921. }
  1922. in.Delim('}')
  1923. if isTopLevel {
  1924. in.Consumed()
  1925. }
  1926. }
  1927. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation23(out *jwriter.Writer, in SetDeviceMetricsOverrideParams) {
  1928. out.RawByte('{')
  1929. first := true
  1930. _ = first
  1931. {
  1932. const prefix string = ",\"width\":"
  1933. out.RawString(prefix[1:])
  1934. out.Int64(int64(in.Width))
  1935. }
  1936. {
  1937. const prefix string = ",\"height\":"
  1938. out.RawString(prefix)
  1939. out.Int64(int64(in.Height))
  1940. }
  1941. {
  1942. const prefix string = ",\"deviceScaleFactor\":"
  1943. out.RawString(prefix)
  1944. out.Float64(float64(in.DeviceScaleFactor))
  1945. }
  1946. {
  1947. const prefix string = ",\"mobile\":"
  1948. out.RawString(prefix)
  1949. out.Bool(bool(in.Mobile))
  1950. }
  1951. if in.Scale != 0 {
  1952. const prefix string = ",\"scale\":"
  1953. out.RawString(prefix)
  1954. out.Float64(float64(in.Scale))
  1955. }
  1956. if in.ScreenWidth != 0 {
  1957. const prefix string = ",\"screenWidth\":"
  1958. out.RawString(prefix)
  1959. out.Int64(int64(in.ScreenWidth))
  1960. }
  1961. if in.ScreenHeight != 0 {
  1962. const prefix string = ",\"screenHeight\":"
  1963. out.RawString(prefix)
  1964. out.Int64(int64(in.ScreenHeight))
  1965. }
  1966. if in.PositionX != 0 {
  1967. const prefix string = ",\"positionX\":"
  1968. out.RawString(prefix)
  1969. out.Int64(int64(in.PositionX))
  1970. }
  1971. if in.PositionY != 0 {
  1972. const prefix string = ",\"positionY\":"
  1973. out.RawString(prefix)
  1974. out.Int64(int64(in.PositionY))
  1975. }
  1976. if in.DontSetVisibleSize {
  1977. const prefix string = ",\"dontSetVisibleSize\":"
  1978. out.RawString(prefix)
  1979. out.Bool(bool(in.DontSetVisibleSize))
  1980. }
  1981. if in.ScreenOrientation != nil {
  1982. const prefix string = ",\"screenOrientation\":"
  1983. out.RawString(prefix)
  1984. (*in.ScreenOrientation).MarshalEasyJSON(out)
  1985. }
  1986. if in.Viewport != nil {
  1987. const prefix string = ",\"viewport\":"
  1988. out.RawString(prefix)
  1989. (*in.Viewport).MarshalEasyJSON(out)
  1990. }
  1991. if in.DisplayFeature != nil {
  1992. const prefix string = ",\"displayFeature\":"
  1993. out.RawString(prefix)
  1994. (*in.DisplayFeature).MarshalEasyJSON(out)
  1995. }
  1996. out.RawByte('}')
  1997. }
  1998. // MarshalJSON supports json.Marshaler interface
  1999. func (v SetDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) {
  2000. w := jwriter.Writer{}
  2001. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation23(&w, v)
  2002. return w.Buffer.BuildBytes(), w.Error
  2003. }
  2004. // MarshalEasyJSON supports easyjson.Marshaler interface
  2005. func (v SetDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  2006. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation23(w, v)
  2007. }
  2008. // UnmarshalJSON supports json.Unmarshaler interface
  2009. func (v *SetDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error {
  2010. r := jlexer.Lexer{Data: data}
  2011. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation23(&r, v)
  2012. return r.Error()
  2013. }
  2014. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2015. func (v *SetDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2016. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation23(l, v)
  2017. }
  2018. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation24(in *jlexer.Lexer, out *SetDefaultBackgroundColorOverrideParams) {
  2019. isTopLevel := in.IsStart()
  2020. if in.IsNull() {
  2021. if isTopLevel {
  2022. in.Consumed()
  2023. }
  2024. in.Skip()
  2025. return
  2026. }
  2027. in.Delim('{')
  2028. for !in.IsDelim('}') {
  2029. key := in.UnsafeFieldName(false)
  2030. in.WantColon()
  2031. if in.IsNull() {
  2032. in.Skip()
  2033. in.WantComma()
  2034. continue
  2035. }
  2036. switch key {
  2037. case "color":
  2038. if in.IsNull() {
  2039. in.Skip()
  2040. out.Color = nil
  2041. } else {
  2042. if out.Color == nil {
  2043. out.Color = new(cdp.RGBA)
  2044. }
  2045. (*out.Color).UnmarshalEasyJSON(in)
  2046. }
  2047. default:
  2048. in.SkipRecursive()
  2049. }
  2050. in.WantComma()
  2051. }
  2052. in.Delim('}')
  2053. if isTopLevel {
  2054. in.Consumed()
  2055. }
  2056. }
  2057. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation24(out *jwriter.Writer, in SetDefaultBackgroundColorOverrideParams) {
  2058. out.RawByte('{')
  2059. first := true
  2060. _ = first
  2061. if in.Color != nil {
  2062. const prefix string = ",\"color\":"
  2063. first = false
  2064. out.RawString(prefix[1:])
  2065. (*in.Color).MarshalEasyJSON(out)
  2066. }
  2067. out.RawByte('}')
  2068. }
  2069. // MarshalJSON supports json.Marshaler interface
  2070. func (v SetDefaultBackgroundColorOverrideParams) MarshalJSON() ([]byte, error) {
  2071. w := jwriter.Writer{}
  2072. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation24(&w, v)
  2073. return w.Buffer.BuildBytes(), w.Error
  2074. }
  2075. // MarshalEasyJSON supports easyjson.Marshaler interface
  2076. func (v SetDefaultBackgroundColorOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  2077. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation24(w, v)
  2078. }
  2079. // UnmarshalJSON supports json.Unmarshaler interface
  2080. func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalJSON(data []byte) error {
  2081. r := jlexer.Lexer{Data: data}
  2082. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation24(&r, v)
  2083. return r.Error()
  2084. }
  2085. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2086. func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2087. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation24(l, v)
  2088. }
  2089. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation25(in *jlexer.Lexer, out *SetCPUThrottlingRateParams) {
  2090. isTopLevel := in.IsStart()
  2091. if in.IsNull() {
  2092. if isTopLevel {
  2093. in.Consumed()
  2094. }
  2095. in.Skip()
  2096. return
  2097. }
  2098. in.Delim('{')
  2099. for !in.IsDelim('}') {
  2100. key := in.UnsafeFieldName(false)
  2101. in.WantColon()
  2102. if in.IsNull() {
  2103. in.Skip()
  2104. in.WantComma()
  2105. continue
  2106. }
  2107. switch key {
  2108. case "rate":
  2109. out.Rate = float64(in.Float64())
  2110. default:
  2111. in.SkipRecursive()
  2112. }
  2113. in.WantComma()
  2114. }
  2115. in.Delim('}')
  2116. if isTopLevel {
  2117. in.Consumed()
  2118. }
  2119. }
  2120. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation25(out *jwriter.Writer, in SetCPUThrottlingRateParams) {
  2121. out.RawByte('{')
  2122. first := true
  2123. _ = first
  2124. {
  2125. const prefix string = ",\"rate\":"
  2126. out.RawString(prefix[1:])
  2127. out.Float64(float64(in.Rate))
  2128. }
  2129. out.RawByte('}')
  2130. }
  2131. // MarshalJSON supports json.Marshaler interface
  2132. func (v SetCPUThrottlingRateParams) MarshalJSON() ([]byte, error) {
  2133. w := jwriter.Writer{}
  2134. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation25(&w, v)
  2135. return w.Buffer.BuildBytes(), w.Error
  2136. }
  2137. // MarshalEasyJSON supports easyjson.Marshaler interface
  2138. func (v SetCPUThrottlingRateParams) MarshalEasyJSON(w *jwriter.Writer) {
  2139. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation25(w, v)
  2140. }
  2141. // UnmarshalJSON supports json.Unmarshaler interface
  2142. func (v *SetCPUThrottlingRateParams) UnmarshalJSON(data []byte) error {
  2143. r := jlexer.Lexer{Data: data}
  2144. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation25(&r, v)
  2145. return r.Error()
  2146. }
  2147. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2148. func (v *SetCPUThrottlingRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2149. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation25(l, v)
  2150. }
  2151. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation26(in *jlexer.Lexer, out *SetAutomationOverrideParams) {
  2152. isTopLevel := in.IsStart()
  2153. if in.IsNull() {
  2154. if isTopLevel {
  2155. in.Consumed()
  2156. }
  2157. in.Skip()
  2158. return
  2159. }
  2160. in.Delim('{')
  2161. for !in.IsDelim('}') {
  2162. key := in.UnsafeFieldName(false)
  2163. in.WantColon()
  2164. if in.IsNull() {
  2165. in.Skip()
  2166. in.WantComma()
  2167. continue
  2168. }
  2169. switch key {
  2170. case "enabled":
  2171. out.Enabled = bool(in.Bool())
  2172. default:
  2173. in.SkipRecursive()
  2174. }
  2175. in.WantComma()
  2176. }
  2177. in.Delim('}')
  2178. if isTopLevel {
  2179. in.Consumed()
  2180. }
  2181. }
  2182. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation26(out *jwriter.Writer, in SetAutomationOverrideParams) {
  2183. out.RawByte('{')
  2184. first := true
  2185. _ = first
  2186. {
  2187. const prefix string = ",\"enabled\":"
  2188. out.RawString(prefix[1:])
  2189. out.Bool(bool(in.Enabled))
  2190. }
  2191. out.RawByte('}')
  2192. }
  2193. // MarshalJSON supports json.Marshaler interface
  2194. func (v SetAutomationOverrideParams) MarshalJSON() ([]byte, error) {
  2195. w := jwriter.Writer{}
  2196. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation26(&w, v)
  2197. return w.Buffer.BuildBytes(), w.Error
  2198. }
  2199. // MarshalEasyJSON supports easyjson.Marshaler interface
  2200. func (v SetAutomationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  2201. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation26(w, v)
  2202. }
  2203. // UnmarshalJSON supports json.Unmarshaler interface
  2204. func (v *SetAutomationOverrideParams) UnmarshalJSON(data []byte) error {
  2205. r := jlexer.Lexer{Data: data}
  2206. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation26(&r, v)
  2207. return r.Error()
  2208. }
  2209. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2210. func (v *SetAutomationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2211. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation26(l, v)
  2212. }
  2213. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation27(in *jlexer.Lexer, out *SetAutoDarkModeOverrideParams) {
  2214. isTopLevel := in.IsStart()
  2215. if in.IsNull() {
  2216. if isTopLevel {
  2217. in.Consumed()
  2218. }
  2219. in.Skip()
  2220. return
  2221. }
  2222. in.Delim('{')
  2223. for !in.IsDelim('}') {
  2224. key := in.UnsafeFieldName(false)
  2225. in.WantColon()
  2226. if in.IsNull() {
  2227. in.Skip()
  2228. in.WantComma()
  2229. continue
  2230. }
  2231. switch key {
  2232. case "enabled":
  2233. out.Enabled = bool(in.Bool())
  2234. default:
  2235. in.SkipRecursive()
  2236. }
  2237. in.WantComma()
  2238. }
  2239. in.Delim('}')
  2240. if isTopLevel {
  2241. in.Consumed()
  2242. }
  2243. }
  2244. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation27(out *jwriter.Writer, in SetAutoDarkModeOverrideParams) {
  2245. out.RawByte('{')
  2246. first := true
  2247. _ = first
  2248. if in.Enabled {
  2249. const prefix string = ",\"enabled\":"
  2250. first = false
  2251. out.RawString(prefix[1:])
  2252. out.Bool(bool(in.Enabled))
  2253. }
  2254. out.RawByte('}')
  2255. }
  2256. // MarshalJSON supports json.Marshaler interface
  2257. func (v SetAutoDarkModeOverrideParams) MarshalJSON() ([]byte, error) {
  2258. w := jwriter.Writer{}
  2259. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation27(&w, v)
  2260. return w.Buffer.BuildBytes(), w.Error
  2261. }
  2262. // MarshalEasyJSON supports easyjson.Marshaler interface
  2263. func (v SetAutoDarkModeOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  2264. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation27(w, v)
  2265. }
  2266. // UnmarshalJSON supports json.Unmarshaler interface
  2267. func (v *SetAutoDarkModeOverrideParams) UnmarshalJSON(data []byte) error {
  2268. r := jlexer.Lexer{Data: data}
  2269. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation27(&r, v)
  2270. return r.Error()
  2271. }
  2272. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2273. func (v *SetAutoDarkModeOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2274. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation27(l, v)
  2275. }
  2276. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation28(in *jlexer.Lexer, out *SensorReadingXYZ) {
  2277. isTopLevel := in.IsStart()
  2278. if in.IsNull() {
  2279. if isTopLevel {
  2280. in.Consumed()
  2281. }
  2282. in.Skip()
  2283. return
  2284. }
  2285. in.Delim('{')
  2286. for !in.IsDelim('}') {
  2287. key := in.UnsafeFieldName(false)
  2288. in.WantColon()
  2289. if in.IsNull() {
  2290. in.Skip()
  2291. in.WantComma()
  2292. continue
  2293. }
  2294. switch key {
  2295. case "x":
  2296. out.X = float64(in.Float64())
  2297. case "y":
  2298. out.Y = float64(in.Float64())
  2299. case "z":
  2300. out.Z = float64(in.Float64())
  2301. default:
  2302. in.SkipRecursive()
  2303. }
  2304. in.WantComma()
  2305. }
  2306. in.Delim('}')
  2307. if isTopLevel {
  2308. in.Consumed()
  2309. }
  2310. }
  2311. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation28(out *jwriter.Writer, in SensorReadingXYZ) {
  2312. out.RawByte('{')
  2313. first := true
  2314. _ = first
  2315. {
  2316. const prefix string = ",\"x\":"
  2317. out.RawString(prefix[1:])
  2318. out.Float64(float64(in.X))
  2319. }
  2320. {
  2321. const prefix string = ",\"y\":"
  2322. out.RawString(prefix)
  2323. out.Float64(float64(in.Y))
  2324. }
  2325. {
  2326. const prefix string = ",\"z\":"
  2327. out.RawString(prefix)
  2328. out.Float64(float64(in.Z))
  2329. }
  2330. out.RawByte('}')
  2331. }
  2332. // MarshalJSON supports json.Marshaler interface
  2333. func (v SensorReadingXYZ) MarshalJSON() ([]byte, error) {
  2334. w := jwriter.Writer{}
  2335. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation28(&w, v)
  2336. return w.Buffer.BuildBytes(), w.Error
  2337. }
  2338. // MarshalEasyJSON supports easyjson.Marshaler interface
  2339. func (v SensorReadingXYZ) MarshalEasyJSON(w *jwriter.Writer) {
  2340. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation28(w, v)
  2341. }
  2342. // UnmarshalJSON supports json.Unmarshaler interface
  2343. func (v *SensorReadingXYZ) UnmarshalJSON(data []byte) error {
  2344. r := jlexer.Lexer{Data: data}
  2345. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation28(&r, v)
  2346. return r.Error()
  2347. }
  2348. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2349. func (v *SensorReadingXYZ) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2350. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation28(l, v)
  2351. }
  2352. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation29(in *jlexer.Lexer, out *SensorReadingSingle) {
  2353. isTopLevel := in.IsStart()
  2354. if in.IsNull() {
  2355. if isTopLevel {
  2356. in.Consumed()
  2357. }
  2358. in.Skip()
  2359. return
  2360. }
  2361. in.Delim('{')
  2362. for !in.IsDelim('}') {
  2363. key := in.UnsafeFieldName(false)
  2364. in.WantColon()
  2365. if in.IsNull() {
  2366. in.Skip()
  2367. in.WantComma()
  2368. continue
  2369. }
  2370. switch key {
  2371. case "value":
  2372. out.Value = float64(in.Float64())
  2373. default:
  2374. in.SkipRecursive()
  2375. }
  2376. in.WantComma()
  2377. }
  2378. in.Delim('}')
  2379. if isTopLevel {
  2380. in.Consumed()
  2381. }
  2382. }
  2383. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation29(out *jwriter.Writer, in SensorReadingSingle) {
  2384. out.RawByte('{')
  2385. first := true
  2386. _ = first
  2387. {
  2388. const prefix string = ",\"value\":"
  2389. out.RawString(prefix[1:])
  2390. out.Float64(float64(in.Value))
  2391. }
  2392. out.RawByte('}')
  2393. }
  2394. // MarshalJSON supports json.Marshaler interface
  2395. func (v SensorReadingSingle) MarshalJSON() ([]byte, error) {
  2396. w := jwriter.Writer{}
  2397. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation29(&w, v)
  2398. return w.Buffer.BuildBytes(), w.Error
  2399. }
  2400. // MarshalEasyJSON supports easyjson.Marshaler interface
  2401. func (v SensorReadingSingle) MarshalEasyJSON(w *jwriter.Writer) {
  2402. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation29(w, v)
  2403. }
  2404. // UnmarshalJSON supports json.Unmarshaler interface
  2405. func (v *SensorReadingSingle) UnmarshalJSON(data []byte) error {
  2406. r := jlexer.Lexer{Data: data}
  2407. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation29(&r, v)
  2408. return r.Error()
  2409. }
  2410. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2411. func (v *SensorReadingSingle) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2412. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation29(l, v)
  2413. }
  2414. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation30(in *jlexer.Lexer, out *SensorReadingQuaternion) {
  2415. isTopLevel := in.IsStart()
  2416. if in.IsNull() {
  2417. if isTopLevel {
  2418. in.Consumed()
  2419. }
  2420. in.Skip()
  2421. return
  2422. }
  2423. in.Delim('{')
  2424. for !in.IsDelim('}') {
  2425. key := in.UnsafeFieldName(false)
  2426. in.WantColon()
  2427. if in.IsNull() {
  2428. in.Skip()
  2429. in.WantComma()
  2430. continue
  2431. }
  2432. switch key {
  2433. case "x":
  2434. out.X = float64(in.Float64())
  2435. case "y":
  2436. out.Y = float64(in.Float64())
  2437. case "z":
  2438. out.Z = float64(in.Float64())
  2439. case "w":
  2440. out.W = float64(in.Float64())
  2441. default:
  2442. in.SkipRecursive()
  2443. }
  2444. in.WantComma()
  2445. }
  2446. in.Delim('}')
  2447. if isTopLevel {
  2448. in.Consumed()
  2449. }
  2450. }
  2451. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation30(out *jwriter.Writer, in SensorReadingQuaternion) {
  2452. out.RawByte('{')
  2453. first := true
  2454. _ = first
  2455. {
  2456. const prefix string = ",\"x\":"
  2457. out.RawString(prefix[1:])
  2458. out.Float64(float64(in.X))
  2459. }
  2460. {
  2461. const prefix string = ",\"y\":"
  2462. out.RawString(prefix)
  2463. out.Float64(float64(in.Y))
  2464. }
  2465. {
  2466. const prefix string = ",\"z\":"
  2467. out.RawString(prefix)
  2468. out.Float64(float64(in.Z))
  2469. }
  2470. {
  2471. const prefix string = ",\"w\":"
  2472. out.RawString(prefix)
  2473. out.Float64(float64(in.W))
  2474. }
  2475. out.RawByte('}')
  2476. }
  2477. // MarshalJSON supports json.Marshaler interface
  2478. func (v SensorReadingQuaternion) MarshalJSON() ([]byte, error) {
  2479. w := jwriter.Writer{}
  2480. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation30(&w, v)
  2481. return w.Buffer.BuildBytes(), w.Error
  2482. }
  2483. // MarshalEasyJSON supports easyjson.Marshaler interface
  2484. func (v SensorReadingQuaternion) MarshalEasyJSON(w *jwriter.Writer) {
  2485. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation30(w, v)
  2486. }
  2487. // UnmarshalJSON supports json.Unmarshaler interface
  2488. func (v *SensorReadingQuaternion) UnmarshalJSON(data []byte) error {
  2489. r := jlexer.Lexer{Data: data}
  2490. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation30(&r, v)
  2491. return r.Error()
  2492. }
  2493. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2494. func (v *SensorReadingQuaternion) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2495. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation30(l, v)
  2496. }
  2497. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation31(in *jlexer.Lexer, out *SensorReading) {
  2498. isTopLevel := in.IsStart()
  2499. if in.IsNull() {
  2500. if isTopLevel {
  2501. in.Consumed()
  2502. }
  2503. in.Skip()
  2504. return
  2505. }
  2506. in.Delim('{')
  2507. for !in.IsDelim('}') {
  2508. key := in.UnsafeFieldName(false)
  2509. in.WantColon()
  2510. if in.IsNull() {
  2511. in.Skip()
  2512. in.WantComma()
  2513. continue
  2514. }
  2515. switch key {
  2516. case "single":
  2517. if in.IsNull() {
  2518. in.Skip()
  2519. out.Single = nil
  2520. } else {
  2521. if out.Single == nil {
  2522. out.Single = new(SensorReadingSingle)
  2523. }
  2524. (*out.Single).UnmarshalEasyJSON(in)
  2525. }
  2526. case "xyz":
  2527. if in.IsNull() {
  2528. in.Skip()
  2529. out.Xyz = nil
  2530. } else {
  2531. if out.Xyz == nil {
  2532. out.Xyz = new(SensorReadingXYZ)
  2533. }
  2534. (*out.Xyz).UnmarshalEasyJSON(in)
  2535. }
  2536. case "quaternion":
  2537. if in.IsNull() {
  2538. in.Skip()
  2539. out.Quaternion = nil
  2540. } else {
  2541. if out.Quaternion == nil {
  2542. out.Quaternion = new(SensorReadingQuaternion)
  2543. }
  2544. (*out.Quaternion).UnmarshalEasyJSON(in)
  2545. }
  2546. default:
  2547. in.SkipRecursive()
  2548. }
  2549. in.WantComma()
  2550. }
  2551. in.Delim('}')
  2552. if isTopLevel {
  2553. in.Consumed()
  2554. }
  2555. }
  2556. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation31(out *jwriter.Writer, in SensorReading) {
  2557. out.RawByte('{')
  2558. first := true
  2559. _ = first
  2560. if in.Single != nil {
  2561. const prefix string = ",\"single\":"
  2562. first = false
  2563. out.RawString(prefix[1:])
  2564. (*in.Single).MarshalEasyJSON(out)
  2565. }
  2566. if in.Xyz != nil {
  2567. const prefix string = ",\"xyz\":"
  2568. if first {
  2569. first = false
  2570. out.RawString(prefix[1:])
  2571. } else {
  2572. out.RawString(prefix)
  2573. }
  2574. (*in.Xyz).MarshalEasyJSON(out)
  2575. }
  2576. if in.Quaternion != nil {
  2577. const prefix string = ",\"quaternion\":"
  2578. if first {
  2579. first = false
  2580. out.RawString(prefix[1:])
  2581. } else {
  2582. out.RawString(prefix)
  2583. }
  2584. (*in.Quaternion).MarshalEasyJSON(out)
  2585. }
  2586. out.RawByte('}')
  2587. }
  2588. // MarshalJSON supports json.Marshaler interface
  2589. func (v SensorReading) MarshalJSON() ([]byte, error) {
  2590. w := jwriter.Writer{}
  2591. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation31(&w, v)
  2592. return w.Buffer.BuildBytes(), w.Error
  2593. }
  2594. // MarshalEasyJSON supports easyjson.Marshaler interface
  2595. func (v SensorReading) MarshalEasyJSON(w *jwriter.Writer) {
  2596. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation31(w, v)
  2597. }
  2598. // UnmarshalJSON supports json.Unmarshaler interface
  2599. func (v *SensorReading) UnmarshalJSON(data []byte) error {
  2600. r := jlexer.Lexer{Data: data}
  2601. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation31(&r, v)
  2602. return r.Error()
  2603. }
  2604. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2605. func (v *SensorReading) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2606. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation31(l, v)
  2607. }
  2608. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation32(in *jlexer.Lexer, out *SensorMetadata) {
  2609. isTopLevel := in.IsStart()
  2610. if in.IsNull() {
  2611. if isTopLevel {
  2612. in.Consumed()
  2613. }
  2614. in.Skip()
  2615. return
  2616. }
  2617. in.Delim('{')
  2618. for !in.IsDelim('}') {
  2619. key := in.UnsafeFieldName(false)
  2620. in.WantColon()
  2621. if in.IsNull() {
  2622. in.Skip()
  2623. in.WantComma()
  2624. continue
  2625. }
  2626. switch key {
  2627. case "available":
  2628. out.Available = bool(in.Bool())
  2629. case "minimumFrequency":
  2630. out.MinimumFrequency = float64(in.Float64())
  2631. case "maximumFrequency":
  2632. out.MaximumFrequency = float64(in.Float64())
  2633. default:
  2634. in.SkipRecursive()
  2635. }
  2636. in.WantComma()
  2637. }
  2638. in.Delim('}')
  2639. if isTopLevel {
  2640. in.Consumed()
  2641. }
  2642. }
  2643. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation32(out *jwriter.Writer, in SensorMetadata) {
  2644. out.RawByte('{')
  2645. first := true
  2646. _ = first
  2647. if in.Available {
  2648. const prefix string = ",\"available\":"
  2649. first = false
  2650. out.RawString(prefix[1:])
  2651. out.Bool(bool(in.Available))
  2652. }
  2653. if in.MinimumFrequency != 0 {
  2654. const prefix string = ",\"minimumFrequency\":"
  2655. if first {
  2656. first = false
  2657. out.RawString(prefix[1:])
  2658. } else {
  2659. out.RawString(prefix)
  2660. }
  2661. out.Float64(float64(in.MinimumFrequency))
  2662. }
  2663. if in.MaximumFrequency != 0 {
  2664. const prefix string = ",\"maximumFrequency\":"
  2665. if first {
  2666. first = false
  2667. out.RawString(prefix[1:])
  2668. } else {
  2669. out.RawString(prefix)
  2670. }
  2671. out.Float64(float64(in.MaximumFrequency))
  2672. }
  2673. out.RawByte('}')
  2674. }
  2675. // MarshalJSON supports json.Marshaler interface
  2676. func (v SensorMetadata) MarshalJSON() ([]byte, error) {
  2677. w := jwriter.Writer{}
  2678. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation32(&w, v)
  2679. return w.Buffer.BuildBytes(), w.Error
  2680. }
  2681. // MarshalEasyJSON supports easyjson.Marshaler interface
  2682. func (v SensorMetadata) MarshalEasyJSON(w *jwriter.Writer) {
  2683. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation32(w, v)
  2684. }
  2685. // UnmarshalJSON supports json.Unmarshaler interface
  2686. func (v *SensorMetadata) UnmarshalJSON(data []byte) error {
  2687. r := jlexer.Lexer{Data: data}
  2688. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation32(&r, v)
  2689. return r.Error()
  2690. }
  2691. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2692. func (v *SensorMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2693. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation32(l, v)
  2694. }
  2695. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation33(in *jlexer.Lexer, out *ScreenOrientation) {
  2696. isTopLevel := in.IsStart()
  2697. if in.IsNull() {
  2698. if isTopLevel {
  2699. in.Consumed()
  2700. }
  2701. in.Skip()
  2702. return
  2703. }
  2704. in.Delim('{')
  2705. for !in.IsDelim('}') {
  2706. key := in.UnsafeFieldName(false)
  2707. in.WantColon()
  2708. if in.IsNull() {
  2709. in.Skip()
  2710. in.WantComma()
  2711. continue
  2712. }
  2713. switch key {
  2714. case "type":
  2715. (out.Type).UnmarshalEasyJSON(in)
  2716. case "angle":
  2717. out.Angle = int64(in.Int64())
  2718. default:
  2719. in.SkipRecursive()
  2720. }
  2721. in.WantComma()
  2722. }
  2723. in.Delim('}')
  2724. if isTopLevel {
  2725. in.Consumed()
  2726. }
  2727. }
  2728. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation33(out *jwriter.Writer, in ScreenOrientation) {
  2729. out.RawByte('{')
  2730. first := true
  2731. _ = first
  2732. {
  2733. const prefix string = ",\"type\":"
  2734. out.RawString(prefix[1:])
  2735. (in.Type).MarshalEasyJSON(out)
  2736. }
  2737. {
  2738. const prefix string = ",\"angle\":"
  2739. out.RawString(prefix)
  2740. out.Int64(int64(in.Angle))
  2741. }
  2742. out.RawByte('}')
  2743. }
  2744. // MarshalJSON supports json.Marshaler interface
  2745. func (v ScreenOrientation) MarshalJSON() ([]byte, error) {
  2746. w := jwriter.Writer{}
  2747. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation33(&w, v)
  2748. return w.Buffer.BuildBytes(), w.Error
  2749. }
  2750. // MarshalEasyJSON supports easyjson.Marshaler interface
  2751. func (v ScreenOrientation) MarshalEasyJSON(w *jwriter.Writer) {
  2752. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation33(w, v)
  2753. }
  2754. // UnmarshalJSON supports json.Unmarshaler interface
  2755. func (v *ScreenOrientation) UnmarshalJSON(data []byte) error {
  2756. r := jlexer.Lexer{Data: data}
  2757. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation33(&r, v)
  2758. return r.Error()
  2759. }
  2760. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2761. func (v *ScreenOrientation) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2762. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation33(l, v)
  2763. }
  2764. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation34(in *jlexer.Lexer, out *ResetPageScaleFactorParams) {
  2765. isTopLevel := in.IsStart()
  2766. if in.IsNull() {
  2767. if isTopLevel {
  2768. in.Consumed()
  2769. }
  2770. in.Skip()
  2771. return
  2772. }
  2773. in.Delim('{')
  2774. for !in.IsDelim('}') {
  2775. key := in.UnsafeFieldName(false)
  2776. in.WantColon()
  2777. if in.IsNull() {
  2778. in.Skip()
  2779. in.WantComma()
  2780. continue
  2781. }
  2782. switch key {
  2783. default:
  2784. in.SkipRecursive()
  2785. }
  2786. in.WantComma()
  2787. }
  2788. in.Delim('}')
  2789. if isTopLevel {
  2790. in.Consumed()
  2791. }
  2792. }
  2793. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation34(out *jwriter.Writer, in ResetPageScaleFactorParams) {
  2794. out.RawByte('{')
  2795. first := true
  2796. _ = first
  2797. out.RawByte('}')
  2798. }
  2799. // MarshalJSON supports json.Marshaler interface
  2800. func (v ResetPageScaleFactorParams) MarshalJSON() ([]byte, error) {
  2801. w := jwriter.Writer{}
  2802. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation34(&w, v)
  2803. return w.Buffer.BuildBytes(), w.Error
  2804. }
  2805. // MarshalEasyJSON supports easyjson.Marshaler interface
  2806. func (v ResetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) {
  2807. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation34(w, v)
  2808. }
  2809. // UnmarshalJSON supports json.Unmarshaler interface
  2810. func (v *ResetPageScaleFactorParams) UnmarshalJSON(data []byte) error {
  2811. r := jlexer.Lexer{Data: data}
  2812. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation34(&r, v)
  2813. return r.Error()
  2814. }
  2815. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2816. func (v *ResetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2817. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation34(l, v)
  2818. }
  2819. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation35(in *jlexer.Lexer, out *MediaFeature) {
  2820. isTopLevel := in.IsStart()
  2821. if in.IsNull() {
  2822. if isTopLevel {
  2823. in.Consumed()
  2824. }
  2825. in.Skip()
  2826. return
  2827. }
  2828. in.Delim('{')
  2829. for !in.IsDelim('}') {
  2830. key := in.UnsafeFieldName(false)
  2831. in.WantColon()
  2832. if in.IsNull() {
  2833. in.Skip()
  2834. in.WantComma()
  2835. continue
  2836. }
  2837. switch key {
  2838. case "name":
  2839. out.Name = string(in.String())
  2840. case "value":
  2841. out.Value = string(in.String())
  2842. default:
  2843. in.SkipRecursive()
  2844. }
  2845. in.WantComma()
  2846. }
  2847. in.Delim('}')
  2848. if isTopLevel {
  2849. in.Consumed()
  2850. }
  2851. }
  2852. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation35(out *jwriter.Writer, in MediaFeature) {
  2853. out.RawByte('{')
  2854. first := true
  2855. _ = first
  2856. {
  2857. const prefix string = ",\"name\":"
  2858. out.RawString(prefix[1:])
  2859. out.String(string(in.Name))
  2860. }
  2861. {
  2862. const prefix string = ",\"value\":"
  2863. out.RawString(prefix)
  2864. out.String(string(in.Value))
  2865. }
  2866. out.RawByte('}')
  2867. }
  2868. // MarshalJSON supports json.Marshaler interface
  2869. func (v MediaFeature) MarshalJSON() ([]byte, error) {
  2870. w := jwriter.Writer{}
  2871. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation35(&w, v)
  2872. return w.Buffer.BuildBytes(), w.Error
  2873. }
  2874. // MarshalEasyJSON supports easyjson.Marshaler interface
  2875. func (v MediaFeature) MarshalEasyJSON(w *jwriter.Writer) {
  2876. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation35(w, v)
  2877. }
  2878. // UnmarshalJSON supports json.Unmarshaler interface
  2879. func (v *MediaFeature) UnmarshalJSON(data []byte) error {
  2880. r := jlexer.Lexer{Data: data}
  2881. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation35(&r, v)
  2882. return r.Error()
  2883. }
  2884. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2885. func (v *MediaFeature) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2886. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation35(l, v)
  2887. }
  2888. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation36(in *jlexer.Lexer, out *GetOverriddenSensorInformationReturns) {
  2889. isTopLevel := in.IsStart()
  2890. if in.IsNull() {
  2891. if isTopLevel {
  2892. in.Consumed()
  2893. }
  2894. in.Skip()
  2895. return
  2896. }
  2897. in.Delim('{')
  2898. for !in.IsDelim('}') {
  2899. key := in.UnsafeFieldName(false)
  2900. in.WantColon()
  2901. if in.IsNull() {
  2902. in.Skip()
  2903. in.WantComma()
  2904. continue
  2905. }
  2906. switch key {
  2907. case "requestedSamplingFrequency":
  2908. out.RequestedSamplingFrequency = float64(in.Float64())
  2909. default:
  2910. in.SkipRecursive()
  2911. }
  2912. in.WantComma()
  2913. }
  2914. in.Delim('}')
  2915. if isTopLevel {
  2916. in.Consumed()
  2917. }
  2918. }
  2919. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation36(out *jwriter.Writer, in GetOverriddenSensorInformationReturns) {
  2920. out.RawByte('{')
  2921. first := true
  2922. _ = first
  2923. if in.RequestedSamplingFrequency != 0 {
  2924. const prefix string = ",\"requestedSamplingFrequency\":"
  2925. first = false
  2926. out.RawString(prefix[1:])
  2927. out.Float64(float64(in.RequestedSamplingFrequency))
  2928. }
  2929. out.RawByte('}')
  2930. }
  2931. // MarshalJSON supports json.Marshaler interface
  2932. func (v GetOverriddenSensorInformationReturns) MarshalJSON() ([]byte, error) {
  2933. w := jwriter.Writer{}
  2934. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation36(&w, v)
  2935. return w.Buffer.BuildBytes(), w.Error
  2936. }
  2937. // MarshalEasyJSON supports easyjson.Marshaler interface
  2938. func (v GetOverriddenSensorInformationReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2939. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation36(w, v)
  2940. }
  2941. // UnmarshalJSON supports json.Unmarshaler interface
  2942. func (v *GetOverriddenSensorInformationReturns) UnmarshalJSON(data []byte) error {
  2943. r := jlexer.Lexer{Data: data}
  2944. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation36(&r, v)
  2945. return r.Error()
  2946. }
  2947. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2948. func (v *GetOverriddenSensorInformationReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2949. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation36(l, v)
  2950. }
  2951. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation37(in *jlexer.Lexer, out *GetOverriddenSensorInformationParams) {
  2952. isTopLevel := in.IsStart()
  2953. if in.IsNull() {
  2954. if isTopLevel {
  2955. in.Consumed()
  2956. }
  2957. in.Skip()
  2958. return
  2959. }
  2960. in.Delim('{')
  2961. for !in.IsDelim('}') {
  2962. key := in.UnsafeFieldName(false)
  2963. in.WantColon()
  2964. if in.IsNull() {
  2965. in.Skip()
  2966. in.WantComma()
  2967. continue
  2968. }
  2969. switch key {
  2970. case "type":
  2971. (out.Type).UnmarshalEasyJSON(in)
  2972. default:
  2973. in.SkipRecursive()
  2974. }
  2975. in.WantComma()
  2976. }
  2977. in.Delim('}')
  2978. if isTopLevel {
  2979. in.Consumed()
  2980. }
  2981. }
  2982. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation37(out *jwriter.Writer, in GetOverriddenSensorInformationParams) {
  2983. out.RawByte('{')
  2984. first := true
  2985. _ = first
  2986. {
  2987. const prefix string = ",\"type\":"
  2988. out.RawString(prefix[1:])
  2989. (in.Type).MarshalEasyJSON(out)
  2990. }
  2991. out.RawByte('}')
  2992. }
  2993. // MarshalJSON supports json.Marshaler interface
  2994. func (v GetOverriddenSensorInformationParams) MarshalJSON() ([]byte, error) {
  2995. w := jwriter.Writer{}
  2996. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation37(&w, v)
  2997. return w.Buffer.BuildBytes(), w.Error
  2998. }
  2999. // MarshalEasyJSON supports easyjson.Marshaler interface
  3000. func (v GetOverriddenSensorInformationParams) MarshalEasyJSON(w *jwriter.Writer) {
  3001. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation37(w, v)
  3002. }
  3003. // UnmarshalJSON supports json.Unmarshaler interface
  3004. func (v *GetOverriddenSensorInformationParams) UnmarshalJSON(data []byte) error {
  3005. r := jlexer.Lexer{Data: data}
  3006. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation37(&r, v)
  3007. return r.Error()
  3008. }
  3009. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3010. func (v *GetOverriddenSensorInformationParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3011. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation37(l, v)
  3012. }
  3013. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation38(in *jlexer.Lexer, out *EventVirtualTimeBudgetExpired) {
  3014. isTopLevel := in.IsStart()
  3015. if in.IsNull() {
  3016. if isTopLevel {
  3017. in.Consumed()
  3018. }
  3019. in.Skip()
  3020. return
  3021. }
  3022. in.Delim('{')
  3023. for !in.IsDelim('}') {
  3024. key := in.UnsafeFieldName(false)
  3025. in.WantColon()
  3026. if in.IsNull() {
  3027. in.Skip()
  3028. in.WantComma()
  3029. continue
  3030. }
  3031. switch key {
  3032. default:
  3033. in.SkipRecursive()
  3034. }
  3035. in.WantComma()
  3036. }
  3037. in.Delim('}')
  3038. if isTopLevel {
  3039. in.Consumed()
  3040. }
  3041. }
  3042. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation38(out *jwriter.Writer, in EventVirtualTimeBudgetExpired) {
  3043. out.RawByte('{')
  3044. first := true
  3045. _ = first
  3046. out.RawByte('}')
  3047. }
  3048. // MarshalJSON supports json.Marshaler interface
  3049. func (v EventVirtualTimeBudgetExpired) MarshalJSON() ([]byte, error) {
  3050. w := jwriter.Writer{}
  3051. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation38(&w, v)
  3052. return w.Buffer.BuildBytes(), w.Error
  3053. }
  3054. // MarshalEasyJSON supports easyjson.Marshaler interface
  3055. func (v EventVirtualTimeBudgetExpired) MarshalEasyJSON(w *jwriter.Writer) {
  3056. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation38(w, v)
  3057. }
  3058. // UnmarshalJSON supports json.Unmarshaler interface
  3059. func (v *EventVirtualTimeBudgetExpired) UnmarshalJSON(data []byte) error {
  3060. r := jlexer.Lexer{Data: data}
  3061. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation38(&r, v)
  3062. return r.Error()
  3063. }
  3064. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3065. func (v *EventVirtualTimeBudgetExpired) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3066. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation38(l, v)
  3067. }
  3068. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation39(in *jlexer.Lexer, out *DisplayFeature) {
  3069. isTopLevel := in.IsStart()
  3070. if in.IsNull() {
  3071. if isTopLevel {
  3072. in.Consumed()
  3073. }
  3074. in.Skip()
  3075. return
  3076. }
  3077. in.Delim('{')
  3078. for !in.IsDelim('}') {
  3079. key := in.UnsafeFieldName(false)
  3080. in.WantColon()
  3081. if in.IsNull() {
  3082. in.Skip()
  3083. in.WantComma()
  3084. continue
  3085. }
  3086. switch key {
  3087. case "orientation":
  3088. (out.Orientation).UnmarshalEasyJSON(in)
  3089. case "offset":
  3090. out.Offset = int64(in.Int64())
  3091. case "maskLength":
  3092. out.MaskLength = int64(in.Int64())
  3093. default:
  3094. in.SkipRecursive()
  3095. }
  3096. in.WantComma()
  3097. }
  3098. in.Delim('}')
  3099. if isTopLevel {
  3100. in.Consumed()
  3101. }
  3102. }
  3103. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation39(out *jwriter.Writer, in DisplayFeature) {
  3104. out.RawByte('{')
  3105. first := true
  3106. _ = first
  3107. {
  3108. const prefix string = ",\"orientation\":"
  3109. out.RawString(prefix[1:])
  3110. (in.Orientation).MarshalEasyJSON(out)
  3111. }
  3112. {
  3113. const prefix string = ",\"offset\":"
  3114. out.RawString(prefix)
  3115. out.Int64(int64(in.Offset))
  3116. }
  3117. {
  3118. const prefix string = ",\"maskLength\":"
  3119. out.RawString(prefix)
  3120. out.Int64(int64(in.MaskLength))
  3121. }
  3122. out.RawByte('}')
  3123. }
  3124. // MarshalJSON supports json.Marshaler interface
  3125. func (v DisplayFeature) MarshalJSON() ([]byte, error) {
  3126. w := jwriter.Writer{}
  3127. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation39(&w, v)
  3128. return w.Buffer.BuildBytes(), w.Error
  3129. }
  3130. // MarshalEasyJSON supports easyjson.Marshaler interface
  3131. func (v DisplayFeature) MarshalEasyJSON(w *jwriter.Writer) {
  3132. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation39(w, v)
  3133. }
  3134. // UnmarshalJSON supports json.Unmarshaler interface
  3135. func (v *DisplayFeature) UnmarshalJSON(data []byte) error {
  3136. r := jlexer.Lexer{Data: data}
  3137. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation39(&r, v)
  3138. return r.Error()
  3139. }
  3140. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3141. func (v *DisplayFeature) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3142. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation39(l, v)
  3143. }
  3144. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation40(in *jlexer.Lexer, out *DevicePosture) {
  3145. isTopLevel := in.IsStart()
  3146. if in.IsNull() {
  3147. if isTopLevel {
  3148. in.Consumed()
  3149. }
  3150. in.Skip()
  3151. return
  3152. }
  3153. in.Delim('{')
  3154. for !in.IsDelim('}') {
  3155. key := in.UnsafeFieldName(false)
  3156. in.WantColon()
  3157. if in.IsNull() {
  3158. in.Skip()
  3159. in.WantComma()
  3160. continue
  3161. }
  3162. switch key {
  3163. case "type":
  3164. (out.Type).UnmarshalEasyJSON(in)
  3165. default:
  3166. in.SkipRecursive()
  3167. }
  3168. in.WantComma()
  3169. }
  3170. in.Delim('}')
  3171. if isTopLevel {
  3172. in.Consumed()
  3173. }
  3174. }
  3175. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation40(out *jwriter.Writer, in DevicePosture) {
  3176. out.RawByte('{')
  3177. first := true
  3178. _ = first
  3179. {
  3180. const prefix string = ",\"type\":"
  3181. out.RawString(prefix[1:])
  3182. (in.Type).MarshalEasyJSON(out)
  3183. }
  3184. out.RawByte('}')
  3185. }
  3186. // MarshalJSON supports json.Marshaler interface
  3187. func (v DevicePosture) MarshalJSON() ([]byte, error) {
  3188. w := jwriter.Writer{}
  3189. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation40(&w, v)
  3190. return w.Buffer.BuildBytes(), w.Error
  3191. }
  3192. // MarshalEasyJSON supports easyjson.Marshaler interface
  3193. func (v DevicePosture) MarshalEasyJSON(w *jwriter.Writer) {
  3194. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation40(w, v)
  3195. }
  3196. // UnmarshalJSON supports json.Unmarshaler interface
  3197. func (v *DevicePosture) UnmarshalJSON(data []byte) error {
  3198. r := jlexer.Lexer{Data: data}
  3199. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation40(&r, v)
  3200. return r.Error()
  3201. }
  3202. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3203. func (v *DevicePosture) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3204. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation40(l, v)
  3205. }
  3206. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation41(in *jlexer.Lexer, out *ClearIdleOverrideParams) {
  3207. isTopLevel := in.IsStart()
  3208. if in.IsNull() {
  3209. if isTopLevel {
  3210. in.Consumed()
  3211. }
  3212. in.Skip()
  3213. return
  3214. }
  3215. in.Delim('{')
  3216. for !in.IsDelim('}') {
  3217. key := in.UnsafeFieldName(false)
  3218. in.WantColon()
  3219. if in.IsNull() {
  3220. in.Skip()
  3221. in.WantComma()
  3222. continue
  3223. }
  3224. switch key {
  3225. default:
  3226. in.SkipRecursive()
  3227. }
  3228. in.WantComma()
  3229. }
  3230. in.Delim('}')
  3231. if isTopLevel {
  3232. in.Consumed()
  3233. }
  3234. }
  3235. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation41(out *jwriter.Writer, in ClearIdleOverrideParams) {
  3236. out.RawByte('{')
  3237. first := true
  3238. _ = first
  3239. out.RawByte('}')
  3240. }
  3241. // MarshalJSON supports json.Marshaler interface
  3242. func (v ClearIdleOverrideParams) MarshalJSON() ([]byte, error) {
  3243. w := jwriter.Writer{}
  3244. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation41(&w, v)
  3245. return w.Buffer.BuildBytes(), w.Error
  3246. }
  3247. // MarshalEasyJSON supports easyjson.Marshaler interface
  3248. func (v ClearIdleOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  3249. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation41(w, v)
  3250. }
  3251. // UnmarshalJSON supports json.Unmarshaler interface
  3252. func (v *ClearIdleOverrideParams) UnmarshalJSON(data []byte) error {
  3253. r := jlexer.Lexer{Data: data}
  3254. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation41(&r, v)
  3255. return r.Error()
  3256. }
  3257. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3258. func (v *ClearIdleOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3259. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation41(l, v)
  3260. }
  3261. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation42(in *jlexer.Lexer, out *ClearGeolocationOverrideParams) {
  3262. isTopLevel := in.IsStart()
  3263. if in.IsNull() {
  3264. if isTopLevel {
  3265. in.Consumed()
  3266. }
  3267. in.Skip()
  3268. return
  3269. }
  3270. in.Delim('{')
  3271. for !in.IsDelim('}') {
  3272. key := in.UnsafeFieldName(false)
  3273. in.WantColon()
  3274. if in.IsNull() {
  3275. in.Skip()
  3276. in.WantComma()
  3277. continue
  3278. }
  3279. switch key {
  3280. default:
  3281. in.SkipRecursive()
  3282. }
  3283. in.WantComma()
  3284. }
  3285. in.Delim('}')
  3286. if isTopLevel {
  3287. in.Consumed()
  3288. }
  3289. }
  3290. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation42(out *jwriter.Writer, in ClearGeolocationOverrideParams) {
  3291. out.RawByte('{')
  3292. first := true
  3293. _ = first
  3294. out.RawByte('}')
  3295. }
  3296. // MarshalJSON supports json.Marshaler interface
  3297. func (v ClearGeolocationOverrideParams) MarshalJSON() ([]byte, error) {
  3298. w := jwriter.Writer{}
  3299. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation42(&w, v)
  3300. return w.Buffer.BuildBytes(), w.Error
  3301. }
  3302. // MarshalEasyJSON supports easyjson.Marshaler interface
  3303. func (v ClearGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  3304. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation42(w, v)
  3305. }
  3306. // UnmarshalJSON supports json.Unmarshaler interface
  3307. func (v *ClearGeolocationOverrideParams) UnmarshalJSON(data []byte) error {
  3308. r := jlexer.Lexer{Data: data}
  3309. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation42(&r, v)
  3310. return r.Error()
  3311. }
  3312. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3313. func (v *ClearGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3314. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation42(l, v)
  3315. }
  3316. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation43(in *jlexer.Lexer, out *ClearDevicePostureOverrideParams) {
  3317. isTopLevel := in.IsStart()
  3318. if in.IsNull() {
  3319. if isTopLevel {
  3320. in.Consumed()
  3321. }
  3322. in.Skip()
  3323. return
  3324. }
  3325. in.Delim('{')
  3326. for !in.IsDelim('}') {
  3327. key := in.UnsafeFieldName(false)
  3328. in.WantColon()
  3329. if in.IsNull() {
  3330. in.Skip()
  3331. in.WantComma()
  3332. continue
  3333. }
  3334. switch key {
  3335. default:
  3336. in.SkipRecursive()
  3337. }
  3338. in.WantComma()
  3339. }
  3340. in.Delim('}')
  3341. if isTopLevel {
  3342. in.Consumed()
  3343. }
  3344. }
  3345. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation43(out *jwriter.Writer, in ClearDevicePostureOverrideParams) {
  3346. out.RawByte('{')
  3347. first := true
  3348. _ = first
  3349. out.RawByte('}')
  3350. }
  3351. // MarshalJSON supports json.Marshaler interface
  3352. func (v ClearDevicePostureOverrideParams) MarshalJSON() ([]byte, error) {
  3353. w := jwriter.Writer{}
  3354. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation43(&w, v)
  3355. return w.Buffer.BuildBytes(), w.Error
  3356. }
  3357. // MarshalEasyJSON supports easyjson.Marshaler interface
  3358. func (v ClearDevicePostureOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  3359. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation43(w, v)
  3360. }
  3361. // UnmarshalJSON supports json.Unmarshaler interface
  3362. func (v *ClearDevicePostureOverrideParams) UnmarshalJSON(data []byte) error {
  3363. r := jlexer.Lexer{Data: data}
  3364. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation43(&r, v)
  3365. return r.Error()
  3366. }
  3367. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3368. func (v *ClearDevicePostureOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3369. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation43(l, v)
  3370. }
  3371. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation44(in *jlexer.Lexer, out *ClearDeviceMetricsOverrideParams) {
  3372. isTopLevel := in.IsStart()
  3373. if in.IsNull() {
  3374. if isTopLevel {
  3375. in.Consumed()
  3376. }
  3377. in.Skip()
  3378. return
  3379. }
  3380. in.Delim('{')
  3381. for !in.IsDelim('}') {
  3382. key := in.UnsafeFieldName(false)
  3383. in.WantColon()
  3384. if in.IsNull() {
  3385. in.Skip()
  3386. in.WantComma()
  3387. continue
  3388. }
  3389. switch key {
  3390. default:
  3391. in.SkipRecursive()
  3392. }
  3393. in.WantComma()
  3394. }
  3395. in.Delim('}')
  3396. if isTopLevel {
  3397. in.Consumed()
  3398. }
  3399. }
  3400. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation44(out *jwriter.Writer, in ClearDeviceMetricsOverrideParams) {
  3401. out.RawByte('{')
  3402. first := true
  3403. _ = first
  3404. out.RawByte('}')
  3405. }
  3406. // MarshalJSON supports json.Marshaler interface
  3407. func (v ClearDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) {
  3408. w := jwriter.Writer{}
  3409. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation44(&w, v)
  3410. return w.Buffer.BuildBytes(), w.Error
  3411. }
  3412. // MarshalEasyJSON supports easyjson.Marshaler interface
  3413. func (v ClearDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
  3414. easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation44(w, v)
  3415. }
  3416. // UnmarshalJSON supports json.Unmarshaler interface
  3417. func (v *ClearDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error {
  3418. r := jlexer.Lexer{Data: data}
  3419. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation44(&r, v)
  3420. return r.Error()
  3421. }
  3422. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3423. func (v *ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3424. easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation44(l, v)
  3425. }