easyjson.go 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package cdp
  3. import (
  4. json "encoding/json"
  5. easyjson "github.com/mailru/easyjson"
  6. jlexer "github.com/mailru/easyjson/jlexer"
  7. jwriter "github.com/mailru/easyjson/jwriter"
  8. )
  9. // suppress unused package warning
  10. var (
  11. _ *json.RawMessage
  12. _ *jlexer.Lexer
  13. _ *jwriter.Writer
  14. _ easyjson.Marshaler
  15. )
  16. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp(in *jlexer.Lexer, out *RGBA) {
  17. isTopLevel := in.IsStart()
  18. if in.IsNull() {
  19. if isTopLevel {
  20. in.Consumed()
  21. }
  22. in.Skip()
  23. return
  24. }
  25. in.Delim('{')
  26. for !in.IsDelim('}') {
  27. key := in.UnsafeFieldName(false)
  28. in.WantColon()
  29. if in.IsNull() {
  30. in.Skip()
  31. in.WantComma()
  32. continue
  33. }
  34. switch key {
  35. case "r":
  36. out.R = int64(in.Int64())
  37. case "g":
  38. out.G = int64(in.Int64())
  39. case "b":
  40. out.B = int64(in.Int64())
  41. case "a":
  42. out.A = float64(in.Float64())
  43. default:
  44. in.SkipRecursive()
  45. }
  46. in.WantComma()
  47. }
  48. in.Delim('}')
  49. if isTopLevel {
  50. in.Consumed()
  51. }
  52. }
  53. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp(out *jwriter.Writer, in RGBA) {
  54. out.RawByte('{')
  55. first := true
  56. _ = first
  57. {
  58. const prefix string = ",\"r\":"
  59. out.RawString(prefix[1:])
  60. out.Int64(int64(in.R))
  61. }
  62. {
  63. const prefix string = ",\"g\":"
  64. out.RawString(prefix)
  65. out.Int64(int64(in.G))
  66. }
  67. {
  68. const prefix string = ",\"b\":"
  69. out.RawString(prefix)
  70. out.Int64(int64(in.B))
  71. }
  72. {
  73. const prefix string = ",\"a\":"
  74. out.RawString(prefix)
  75. out.Float64(float64(in.A))
  76. }
  77. out.RawByte('}')
  78. }
  79. // MarshalJSON supports json.Marshaler interface
  80. func (v RGBA) MarshalJSON() ([]byte, error) {
  81. w := jwriter.Writer{}
  82. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp(&w, v)
  83. return w.Buffer.BuildBytes(), w.Error
  84. }
  85. // MarshalEasyJSON supports easyjson.Marshaler interface
  86. func (v RGBA) MarshalEasyJSON(w *jwriter.Writer) {
  87. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp(w, v)
  88. }
  89. // UnmarshalJSON supports json.Unmarshaler interface
  90. func (v *RGBA) UnmarshalJSON(data []byte) error {
  91. r := jlexer.Lexer{Data: data}
  92. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp(&r, v)
  93. return r.Error()
  94. }
  95. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  96. func (v *RGBA) UnmarshalEasyJSON(l *jlexer.Lexer) {
  97. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp(l, v)
  98. }
  99. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp1(in *jlexer.Lexer, out *OriginTrialTokenWithStatus) {
  100. isTopLevel := in.IsStart()
  101. if in.IsNull() {
  102. if isTopLevel {
  103. in.Consumed()
  104. }
  105. in.Skip()
  106. return
  107. }
  108. in.Delim('{')
  109. for !in.IsDelim('}') {
  110. key := in.UnsafeFieldName(false)
  111. in.WantColon()
  112. if in.IsNull() {
  113. in.Skip()
  114. in.WantComma()
  115. continue
  116. }
  117. switch key {
  118. case "rawTokenText":
  119. out.RawTokenText = string(in.String())
  120. case "parsedToken":
  121. if in.IsNull() {
  122. in.Skip()
  123. out.ParsedToken = nil
  124. } else {
  125. if out.ParsedToken == nil {
  126. out.ParsedToken = new(OriginTrialToken)
  127. }
  128. (*out.ParsedToken).UnmarshalEasyJSON(in)
  129. }
  130. case "status":
  131. (out.Status).UnmarshalEasyJSON(in)
  132. default:
  133. in.SkipRecursive()
  134. }
  135. in.WantComma()
  136. }
  137. in.Delim('}')
  138. if isTopLevel {
  139. in.Consumed()
  140. }
  141. }
  142. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp1(out *jwriter.Writer, in OriginTrialTokenWithStatus) {
  143. out.RawByte('{')
  144. first := true
  145. _ = first
  146. {
  147. const prefix string = ",\"rawTokenText\":"
  148. out.RawString(prefix[1:])
  149. out.String(string(in.RawTokenText))
  150. }
  151. if in.ParsedToken != nil {
  152. const prefix string = ",\"parsedToken\":"
  153. out.RawString(prefix)
  154. (*in.ParsedToken).MarshalEasyJSON(out)
  155. }
  156. {
  157. const prefix string = ",\"status\":"
  158. out.RawString(prefix)
  159. (in.Status).MarshalEasyJSON(out)
  160. }
  161. out.RawByte('}')
  162. }
  163. // MarshalJSON supports json.Marshaler interface
  164. func (v OriginTrialTokenWithStatus) MarshalJSON() ([]byte, error) {
  165. w := jwriter.Writer{}
  166. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp1(&w, v)
  167. return w.Buffer.BuildBytes(), w.Error
  168. }
  169. // MarshalEasyJSON supports easyjson.Marshaler interface
  170. func (v OriginTrialTokenWithStatus) MarshalEasyJSON(w *jwriter.Writer) {
  171. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp1(w, v)
  172. }
  173. // UnmarshalJSON supports json.Unmarshaler interface
  174. func (v *OriginTrialTokenWithStatus) UnmarshalJSON(data []byte) error {
  175. r := jlexer.Lexer{Data: data}
  176. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp1(&r, v)
  177. return r.Error()
  178. }
  179. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  180. func (v *OriginTrialTokenWithStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
  181. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp1(l, v)
  182. }
  183. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp2(in *jlexer.Lexer, out *OriginTrialToken) {
  184. isTopLevel := in.IsStart()
  185. if in.IsNull() {
  186. if isTopLevel {
  187. in.Consumed()
  188. }
  189. in.Skip()
  190. return
  191. }
  192. in.Delim('{')
  193. for !in.IsDelim('}') {
  194. key := in.UnsafeFieldName(false)
  195. in.WantColon()
  196. if in.IsNull() {
  197. in.Skip()
  198. in.WantComma()
  199. continue
  200. }
  201. switch key {
  202. case "origin":
  203. out.Origin = string(in.String())
  204. case "matchSubDomains":
  205. out.MatchSubDomains = bool(in.Bool())
  206. case "trialName":
  207. out.TrialName = string(in.String())
  208. case "expiryTime":
  209. if in.IsNull() {
  210. in.Skip()
  211. out.ExpiryTime = nil
  212. } else {
  213. if out.ExpiryTime == nil {
  214. out.ExpiryTime = new(TimeSinceEpoch)
  215. }
  216. (*out.ExpiryTime).UnmarshalEasyJSON(in)
  217. }
  218. case "isThirdParty":
  219. out.IsThirdParty = bool(in.Bool())
  220. case "usageRestriction":
  221. (out.UsageRestriction).UnmarshalEasyJSON(in)
  222. default:
  223. in.SkipRecursive()
  224. }
  225. in.WantComma()
  226. }
  227. in.Delim('}')
  228. if isTopLevel {
  229. in.Consumed()
  230. }
  231. }
  232. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp2(out *jwriter.Writer, in OriginTrialToken) {
  233. out.RawByte('{')
  234. first := true
  235. _ = first
  236. {
  237. const prefix string = ",\"origin\":"
  238. out.RawString(prefix[1:])
  239. out.String(string(in.Origin))
  240. }
  241. {
  242. const prefix string = ",\"matchSubDomains\":"
  243. out.RawString(prefix)
  244. out.Bool(bool(in.MatchSubDomains))
  245. }
  246. {
  247. const prefix string = ",\"trialName\":"
  248. out.RawString(prefix)
  249. out.String(string(in.TrialName))
  250. }
  251. {
  252. const prefix string = ",\"expiryTime\":"
  253. out.RawString(prefix)
  254. if in.ExpiryTime == nil {
  255. out.RawString("null")
  256. } else {
  257. (*in.ExpiryTime).MarshalEasyJSON(out)
  258. }
  259. }
  260. {
  261. const prefix string = ",\"isThirdParty\":"
  262. out.RawString(prefix)
  263. out.Bool(bool(in.IsThirdParty))
  264. }
  265. {
  266. const prefix string = ",\"usageRestriction\":"
  267. out.RawString(prefix)
  268. (in.UsageRestriction).MarshalEasyJSON(out)
  269. }
  270. out.RawByte('}')
  271. }
  272. // MarshalJSON supports json.Marshaler interface
  273. func (v OriginTrialToken) MarshalJSON() ([]byte, error) {
  274. w := jwriter.Writer{}
  275. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp2(&w, v)
  276. return w.Buffer.BuildBytes(), w.Error
  277. }
  278. // MarshalEasyJSON supports easyjson.Marshaler interface
  279. func (v OriginTrialToken) MarshalEasyJSON(w *jwriter.Writer) {
  280. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp2(w, v)
  281. }
  282. // UnmarshalJSON supports json.Unmarshaler interface
  283. func (v *OriginTrialToken) UnmarshalJSON(data []byte) error {
  284. r := jlexer.Lexer{Data: data}
  285. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp2(&r, v)
  286. return r.Error()
  287. }
  288. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  289. func (v *OriginTrialToken) UnmarshalEasyJSON(l *jlexer.Lexer) {
  290. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp2(l, v)
  291. }
  292. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp3(in *jlexer.Lexer, out *OriginTrial) {
  293. isTopLevel := in.IsStart()
  294. if in.IsNull() {
  295. if isTopLevel {
  296. in.Consumed()
  297. }
  298. in.Skip()
  299. return
  300. }
  301. in.Delim('{')
  302. for !in.IsDelim('}') {
  303. key := in.UnsafeFieldName(false)
  304. in.WantColon()
  305. if in.IsNull() {
  306. in.Skip()
  307. in.WantComma()
  308. continue
  309. }
  310. switch key {
  311. case "trialName":
  312. out.TrialName = string(in.String())
  313. case "status":
  314. (out.Status).UnmarshalEasyJSON(in)
  315. case "tokensWithStatus":
  316. if in.IsNull() {
  317. in.Skip()
  318. out.TokensWithStatus = nil
  319. } else {
  320. in.Delim('[')
  321. if out.TokensWithStatus == nil {
  322. if !in.IsDelim(']') {
  323. out.TokensWithStatus = make([]*OriginTrialTokenWithStatus, 0, 8)
  324. } else {
  325. out.TokensWithStatus = []*OriginTrialTokenWithStatus{}
  326. }
  327. } else {
  328. out.TokensWithStatus = (out.TokensWithStatus)[:0]
  329. }
  330. for !in.IsDelim(']') {
  331. var v1 *OriginTrialTokenWithStatus
  332. if in.IsNull() {
  333. in.Skip()
  334. v1 = nil
  335. } else {
  336. if v1 == nil {
  337. v1 = new(OriginTrialTokenWithStatus)
  338. }
  339. (*v1).UnmarshalEasyJSON(in)
  340. }
  341. out.TokensWithStatus = append(out.TokensWithStatus, v1)
  342. in.WantComma()
  343. }
  344. in.Delim(']')
  345. }
  346. default:
  347. in.SkipRecursive()
  348. }
  349. in.WantComma()
  350. }
  351. in.Delim('}')
  352. if isTopLevel {
  353. in.Consumed()
  354. }
  355. }
  356. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp3(out *jwriter.Writer, in OriginTrial) {
  357. out.RawByte('{')
  358. first := true
  359. _ = first
  360. {
  361. const prefix string = ",\"trialName\":"
  362. out.RawString(prefix[1:])
  363. out.String(string(in.TrialName))
  364. }
  365. {
  366. const prefix string = ",\"status\":"
  367. out.RawString(prefix)
  368. (in.Status).MarshalEasyJSON(out)
  369. }
  370. {
  371. const prefix string = ",\"tokensWithStatus\":"
  372. out.RawString(prefix)
  373. if in.TokensWithStatus == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  374. out.RawString("null")
  375. } else {
  376. out.RawByte('[')
  377. for v2, v3 := range in.TokensWithStatus {
  378. if v2 > 0 {
  379. out.RawByte(',')
  380. }
  381. if v3 == nil {
  382. out.RawString("null")
  383. } else {
  384. (*v3).MarshalEasyJSON(out)
  385. }
  386. }
  387. out.RawByte(']')
  388. }
  389. }
  390. out.RawByte('}')
  391. }
  392. // MarshalJSON supports json.Marshaler interface
  393. func (v OriginTrial) MarshalJSON() ([]byte, error) {
  394. w := jwriter.Writer{}
  395. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp3(&w, v)
  396. return w.Buffer.BuildBytes(), w.Error
  397. }
  398. // MarshalEasyJSON supports easyjson.Marshaler interface
  399. func (v OriginTrial) MarshalEasyJSON(w *jwriter.Writer) {
  400. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp3(w, v)
  401. }
  402. // UnmarshalJSON supports json.Unmarshaler interface
  403. func (v *OriginTrial) UnmarshalJSON(data []byte) error {
  404. r := jlexer.Lexer{Data: data}
  405. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp3(&r, v)
  406. return r.Error()
  407. }
  408. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  409. func (v *OriginTrial) UnmarshalEasyJSON(l *jlexer.Lexer) {
  410. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp3(l, v)
  411. }
  412. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp4(in *jlexer.Lexer, out *Node) {
  413. isTopLevel := in.IsStart()
  414. if in.IsNull() {
  415. if isTopLevel {
  416. in.Consumed()
  417. }
  418. in.Skip()
  419. return
  420. }
  421. in.Delim('{')
  422. for !in.IsDelim('}') {
  423. key := in.UnsafeFieldName(false)
  424. in.WantColon()
  425. if in.IsNull() {
  426. in.Skip()
  427. in.WantComma()
  428. continue
  429. }
  430. switch key {
  431. case "nodeId":
  432. (out.NodeID).UnmarshalEasyJSON(in)
  433. case "parentId":
  434. (out.ParentID).UnmarshalEasyJSON(in)
  435. case "backendNodeId":
  436. (out.BackendNodeID).UnmarshalEasyJSON(in)
  437. case "nodeType":
  438. (out.NodeType).UnmarshalEasyJSON(in)
  439. case "nodeName":
  440. out.NodeName = string(in.String())
  441. case "localName":
  442. out.LocalName = string(in.String())
  443. case "nodeValue":
  444. out.NodeValue = string(in.String())
  445. case "childNodeCount":
  446. out.ChildNodeCount = int64(in.Int64())
  447. case "children":
  448. if in.IsNull() {
  449. in.Skip()
  450. out.Children = nil
  451. } else {
  452. in.Delim('[')
  453. if out.Children == nil {
  454. if !in.IsDelim(']') {
  455. out.Children = make([]*Node, 0, 8)
  456. } else {
  457. out.Children = []*Node{}
  458. }
  459. } else {
  460. out.Children = (out.Children)[:0]
  461. }
  462. for !in.IsDelim(']') {
  463. var v4 *Node
  464. if in.IsNull() {
  465. in.Skip()
  466. v4 = nil
  467. } else {
  468. if v4 == nil {
  469. v4 = new(Node)
  470. }
  471. (*v4).UnmarshalEasyJSON(in)
  472. }
  473. out.Children = append(out.Children, v4)
  474. in.WantComma()
  475. }
  476. in.Delim(']')
  477. }
  478. case "attributes":
  479. if in.IsNull() {
  480. in.Skip()
  481. out.Attributes = nil
  482. } else {
  483. in.Delim('[')
  484. if out.Attributes == nil {
  485. if !in.IsDelim(']') {
  486. out.Attributes = make([]string, 0, 4)
  487. } else {
  488. out.Attributes = []string{}
  489. }
  490. } else {
  491. out.Attributes = (out.Attributes)[:0]
  492. }
  493. for !in.IsDelim(']') {
  494. var v5 string
  495. v5 = string(in.String())
  496. out.Attributes = append(out.Attributes, v5)
  497. in.WantComma()
  498. }
  499. in.Delim(']')
  500. }
  501. case "documentURL":
  502. out.DocumentURL = string(in.String())
  503. case "baseURL":
  504. out.BaseURL = string(in.String())
  505. case "publicId":
  506. out.PublicID = string(in.String())
  507. case "systemId":
  508. out.SystemID = string(in.String())
  509. case "internalSubset":
  510. out.InternalSubset = string(in.String())
  511. case "xmlVersion":
  512. out.XMLVersion = string(in.String())
  513. case "name":
  514. out.Name = string(in.String())
  515. case "value":
  516. out.Value = string(in.String())
  517. case "pseudoType":
  518. (out.PseudoType).UnmarshalEasyJSON(in)
  519. case "pseudoIdentifier":
  520. out.PseudoIdentifier = string(in.String())
  521. case "shadowRootType":
  522. (out.ShadowRootType).UnmarshalEasyJSON(in)
  523. case "frameId":
  524. (out.FrameID).UnmarshalEasyJSON(in)
  525. case "contentDocument":
  526. if in.IsNull() {
  527. in.Skip()
  528. out.ContentDocument = nil
  529. } else {
  530. if out.ContentDocument == nil {
  531. out.ContentDocument = new(Node)
  532. }
  533. (*out.ContentDocument).UnmarshalEasyJSON(in)
  534. }
  535. case "shadowRoots":
  536. if in.IsNull() {
  537. in.Skip()
  538. out.ShadowRoots = nil
  539. } else {
  540. in.Delim('[')
  541. if out.ShadowRoots == nil {
  542. if !in.IsDelim(']') {
  543. out.ShadowRoots = make([]*Node, 0, 8)
  544. } else {
  545. out.ShadowRoots = []*Node{}
  546. }
  547. } else {
  548. out.ShadowRoots = (out.ShadowRoots)[:0]
  549. }
  550. for !in.IsDelim(']') {
  551. var v6 *Node
  552. if in.IsNull() {
  553. in.Skip()
  554. v6 = nil
  555. } else {
  556. if v6 == nil {
  557. v6 = new(Node)
  558. }
  559. (*v6).UnmarshalEasyJSON(in)
  560. }
  561. out.ShadowRoots = append(out.ShadowRoots, v6)
  562. in.WantComma()
  563. }
  564. in.Delim(']')
  565. }
  566. case "templateContent":
  567. if in.IsNull() {
  568. in.Skip()
  569. out.TemplateContent = nil
  570. } else {
  571. if out.TemplateContent == nil {
  572. out.TemplateContent = new(Node)
  573. }
  574. (*out.TemplateContent).UnmarshalEasyJSON(in)
  575. }
  576. case "pseudoElements":
  577. if in.IsNull() {
  578. in.Skip()
  579. out.PseudoElements = nil
  580. } else {
  581. in.Delim('[')
  582. if out.PseudoElements == nil {
  583. if !in.IsDelim(']') {
  584. out.PseudoElements = make([]*Node, 0, 8)
  585. } else {
  586. out.PseudoElements = []*Node{}
  587. }
  588. } else {
  589. out.PseudoElements = (out.PseudoElements)[:0]
  590. }
  591. for !in.IsDelim(']') {
  592. var v7 *Node
  593. if in.IsNull() {
  594. in.Skip()
  595. v7 = nil
  596. } else {
  597. if v7 == nil {
  598. v7 = new(Node)
  599. }
  600. (*v7).UnmarshalEasyJSON(in)
  601. }
  602. out.PseudoElements = append(out.PseudoElements, v7)
  603. in.WantComma()
  604. }
  605. in.Delim(']')
  606. }
  607. case "distributedNodes":
  608. if in.IsNull() {
  609. in.Skip()
  610. out.DistributedNodes = nil
  611. } else {
  612. in.Delim('[')
  613. if out.DistributedNodes == nil {
  614. if !in.IsDelim(']') {
  615. out.DistributedNodes = make([]*BackendNode, 0, 8)
  616. } else {
  617. out.DistributedNodes = []*BackendNode{}
  618. }
  619. } else {
  620. out.DistributedNodes = (out.DistributedNodes)[:0]
  621. }
  622. for !in.IsDelim(']') {
  623. var v8 *BackendNode
  624. if in.IsNull() {
  625. in.Skip()
  626. v8 = nil
  627. } else {
  628. if v8 == nil {
  629. v8 = new(BackendNode)
  630. }
  631. (*v8).UnmarshalEasyJSON(in)
  632. }
  633. out.DistributedNodes = append(out.DistributedNodes, v8)
  634. in.WantComma()
  635. }
  636. in.Delim(']')
  637. }
  638. case "isSVG":
  639. out.IsSVG = bool(in.Bool())
  640. case "compatibilityMode":
  641. (out.CompatibilityMode).UnmarshalEasyJSON(in)
  642. case "assignedSlot":
  643. if in.IsNull() {
  644. in.Skip()
  645. out.AssignedSlot = nil
  646. } else {
  647. if out.AssignedSlot == nil {
  648. out.AssignedSlot = new(BackendNode)
  649. }
  650. (*out.AssignedSlot).UnmarshalEasyJSON(in)
  651. }
  652. default:
  653. in.SkipRecursive()
  654. }
  655. in.WantComma()
  656. }
  657. in.Delim('}')
  658. if isTopLevel {
  659. in.Consumed()
  660. }
  661. }
  662. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp4(out *jwriter.Writer, in Node) {
  663. out.RawByte('{')
  664. first := true
  665. _ = first
  666. {
  667. const prefix string = ",\"nodeId\":"
  668. out.RawString(prefix[1:])
  669. out.Int64(int64(in.NodeID))
  670. }
  671. if in.ParentID != 0 {
  672. const prefix string = ",\"parentId\":"
  673. out.RawString(prefix)
  674. out.Int64(int64(in.ParentID))
  675. }
  676. {
  677. const prefix string = ",\"backendNodeId\":"
  678. out.RawString(prefix)
  679. out.Int64(int64(in.BackendNodeID))
  680. }
  681. {
  682. const prefix string = ",\"nodeType\":"
  683. out.RawString(prefix)
  684. (in.NodeType).MarshalEasyJSON(out)
  685. }
  686. {
  687. const prefix string = ",\"nodeName\":"
  688. out.RawString(prefix)
  689. out.String(string(in.NodeName))
  690. }
  691. {
  692. const prefix string = ",\"localName\":"
  693. out.RawString(prefix)
  694. out.String(string(in.LocalName))
  695. }
  696. {
  697. const prefix string = ",\"nodeValue\":"
  698. out.RawString(prefix)
  699. out.String(string(in.NodeValue))
  700. }
  701. if in.ChildNodeCount != 0 {
  702. const prefix string = ",\"childNodeCount\":"
  703. out.RawString(prefix)
  704. out.Int64(int64(in.ChildNodeCount))
  705. }
  706. if len(in.Children) != 0 {
  707. const prefix string = ",\"children\":"
  708. out.RawString(prefix)
  709. {
  710. out.RawByte('[')
  711. for v9, v10 := range in.Children {
  712. if v9 > 0 {
  713. out.RawByte(',')
  714. }
  715. if v10 == nil {
  716. out.RawString("null")
  717. } else {
  718. (*v10).MarshalEasyJSON(out)
  719. }
  720. }
  721. out.RawByte(']')
  722. }
  723. }
  724. if len(in.Attributes) != 0 {
  725. const prefix string = ",\"attributes\":"
  726. out.RawString(prefix)
  727. {
  728. out.RawByte('[')
  729. for v11, v12 := range in.Attributes {
  730. if v11 > 0 {
  731. out.RawByte(',')
  732. }
  733. out.String(string(v12))
  734. }
  735. out.RawByte(']')
  736. }
  737. }
  738. if in.DocumentURL != "" {
  739. const prefix string = ",\"documentURL\":"
  740. out.RawString(prefix)
  741. out.String(string(in.DocumentURL))
  742. }
  743. if in.BaseURL != "" {
  744. const prefix string = ",\"baseURL\":"
  745. out.RawString(prefix)
  746. out.String(string(in.BaseURL))
  747. }
  748. if in.PublicID != "" {
  749. const prefix string = ",\"publicId\":"
  750. out.RawString(prefix)
  751. out.String(string(in.PublicID))
  752. }
  753. if in.SystemID != "" {
  754. const prefix string = ",\"systemId\":"
  755. out.RawString(prefix)
  756. out.String(string(in.SystemID))
  757. }
  758. if in.InternalSubset != "" {
  759. const prefix string = ",\"internalSubset\":"
  760. out.RawString(prefix)
  761. out.String(string(in.InternalSubset))
  762. }
  763. if in.XMLVersion != "" {
  764. const prefix string = ",\"xmlVersion\":"
  765. out.RawString(prefix)
  766. out.String(string(in.XMLVersion))
  767. }
  768. if in.Name != "" {
  769. const prefix string = ",\"name\":"
  770. out.RawString(prefix)
  771. out.String(string(in.Name))
  772. }
  773. if in.Value != "" {
  774. const prefix string = ",\"value\":"
  775. out.RawString(prefix)
  776. out.String(string(in.Value))
  777. }
  778. if in.PseudoType != "" {
  779. const prefix string = ",\"pseudoType\":"
  780. out.RawString(prefix)
  781. (in.PseudoType).MarshalEasyJSON(out)
  782. }
  783. if in.PseudoIdentifier != "" {
  784. const prefix string = ",\"pseudoIdentifier\":"
  785. out.RawString(prefix)
  786. out.String(string(in.PseudoIdentifier))
  787. }
  788. if in.ShadowRootType != "" {
  789. const prefix string = ",\"shadowRootType\":"
  790. out.RawString(prefix)
  791. (in.ShadowRootType).MarshalEasyJSON(out)
  792. }
  793. if in.FrameID != "" {
  794. const prefix string = ",\"frameId\":"
  795. out.RawString(prefix)
  796. out.String(string(in.FrameID))
  797. }
  798. if in.ContentDocument != nil {
  799. const prefix string = ",\"contentDocument\":"
  800. out.RawString(prefix)
  801. (*in.ContentDocument).MarshalEasyJSON(out)
  802. }
  803. if len(in.ShadowRoots) != 0 {
  804. const prefix string = ",\"shadowRoots\":"
  805. out.RawString(prefix)
  806. {
  807. out.RawByte('[')
  808. for v13, v14 := range in.ShadowRoots {
  809. if v13 > 0 {
  810. out.RawByte(',')
  811. }
  812. if v14 == nil {
  813. out.RawString("null")
  814. } else {
  815. (*v14).MarshalEasyJSON(out)
  816. }
  817. }
  818. out.RawByte(']')
  819. }
  820. }
  821. if in.TemplateContent != nil {
  822. const prefix string = ",\"templateContent\":"
  823. out.RawString(prefix)
  824. (*in.TemplateContent).MarshalEasyJSON(out)
  825. }
  826. if len(in.PseudoElements) != 0 {
  827. const prefix string = ",\"pseudoElements\":"
  828. out.RawString(prefix)
  829. {
  830. out.RawByte('[')
  831. for v15, v16 := range in.PseudoElements {
  832. if v15 > 0 {
  833. out.RawByte(',')
  834. }
  835. if v16 == nil {
  836. out.RawString("null")
  837. } else {
  838. (*v16).MarshalEasyJSON(out)
  839. }
  840. }
  841. out.RawByte(']')
  842. }
  843. }
  844. if len(in.DistributedNodes) != 0 {
  845. const prefix string = ",\"distributedNodes\":"
  846. out.RawString(prefix)
  847. {
  848. out.RawByte('[')
  849. for v17, v18 := range in.DistributedNodes {
  850. if v17 > 0 {
  851. out.RawByte(',')
  852. }
  853. if v18 == nil {
  854. out.RawString("null")
  855. } else {
  856. (*v18).MarshalEasyJSON(out)
  857. }
  858. }
  859. out.RawByte(']')
  860. }
  861. }
  862. if in.IsSVG {
  863. const prefix string = ",\"isSVG\":"
  864. out.RawString(prefix)
  865. out.Bool(bool(in.IsSVG))
  866. }
  867. if in.CompatibilityMode != "" {
  868. const prefix string = ",\"compatibilityMode\":"
  869. out.RawString(prefix)
  870. (in.CompatibilityMode).MarshalEasyJSON(out)
  871. }
  872. if in.AssignedSlot != nil {
  873. const prefix string = ",\"assignedSlot\":"
  874. out.RawString(prefix)
  875. (*in.AssignedSlot).MarshalEasyJSON(out)
  876. }
  877. out.RawByte('}')
  878. }
  879. // MarshalJSON supports json.Marshaler interface
  880. func (v Node) MarshalJSON() ([]byte, error) {
  881. w := jwriter.Writer{}
  882. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp4(&w, v)
  883. return w.Buffer.BuildBytes(), w.Error
  884. }
  885. // MarshalEasyJSON supports easyjson.Marshaler interface
  886. func (v Node) MarshalEasyJSON(w *jwriter.Writer) {
  887. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp4(w, v)
  888. }
  889. // UnmarshalJSON supports json.Unmarshaler interface
  890. func (v *Node) UnmarshalJSON(data []byte) error {
  891. r := jlexer.Lexer{Data: data}
  892. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp4(&r, v)
  893. return r.Error()
  894. }
  895. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  896. func (v *Node) UnmarshalEasyJSON(l *jlexer.Lexer) {
  897. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp4(l, v)
  898. }
  899. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp5(in *jlexer.Lexer, out *Frame) {
  900. isTopLevel := in.IsStart()
  901. if in.IsNull() {
  902. if isTopLevel {
  903. in.Consumed()
  904. }
  905. in.Skip()
  906. return
  907. }
  908. in.Delim('{')
  909. for !in.IsDelim('}') {
  910. key := in.UnsafeFieldName(false)
  911. in.WantColon()
  912. if in.IsNull() {
  913. in.Skip()
  914. in.WantComma()
  915. continue
  916. }
  917. switch key {
  918. case "id":
  919. (out.ID).UnmarshalEasyJSON(in)
  920. case "parentId":
  921. (out.ParentID).UnmarshalEasyJSON(in)
  922. case "loaderId":
  923. out.LoaderID = LoaderID(in.String())
  924. case "name":
  925. out.Name = string(in.String())
  926. case "url":
  927. out.URL = string(in.String())
  928. case "urlFragment":
  929. out.URLFragment = string(in.String())
  930. case "domainAndRegistry":
  931. out.DomainAndRegistry = string(in.String())
  932. case "securityOrigin":
  933. out.SecurityOrigin = string(in.String())
  934. case "mimeType":
  935. out.MimeType = string(in.String())
  936. case "unreachableUrl":
  937. out.UnreachableURL = string(in.String())
  938. case "adFrameStatus":
  939. if in.IsNull() {
  940. in.Skip()
  941. out.AdFrameStatus = nil
  942. } else {
  943. if out.AdFrameStatus == nil {
  944. out.AdFrameStatus = new(AdFrameStatus)
  945. }
  946. (*out.AdFrameStatus).UnmarshalEasyJSON(in)
  947. }
  948. case "secureContextType":
  949. (out.SecureContextType).UnmarshalEasyJSON(in)
  950. case "crossOriginIsolatedContextType":
  951. (out.CrossOriginIsolatedContextType).UnmarshalEasyJSON(in)
  952. case "gatedAPIFeatures":
  953. if in.IsNull() {
  954. in.Skip()
  955. out.GatedAPIFeatures = nil
  956. } else {
  957. in.Delim('[')
  958. if out.GatedAPIFeatures == nil {
  959. if !in.IsDelim(']') {
  960. out.GatedAPIFeatures = make([]GatedAPIFeatures, 0, 4)
  961. } else {
  962. out.GatedAPIFeatures = []GatedAPIFeatures{}
  963. }
  964. } else {
  965. out.GatedAPIFeatures = (out.GatedAPIFeatures)[:0]
  966. }
  967. for !in.IsDelim(']') {
  968. var v19 GatedAPIFeatures
  969. (v19).UnmarshalEasyJSON(in)
  970. out.GatedAPIFeatures = append(out.GatedAPIFeatures, v19)
  971. in.WantComma()
  972. }
  973. in.Delim(']')
  974. }
  975. default:
  976. in.SkipRecursive()
  977. }
  978. in.WantComma()
  979. }
  980. in.Delim('}')
  981. if isTopLevel {
  982. in.Consumed()
  983. }
  984. }
  985. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp5(out *jwriter.Writer, in Frame) {
  986. out.RawByte('{')
  987. first := true
  988. _ = first
  989. {
  990. const prefix string = ",\"id\":"
  991. out.RawString(prefix[1:])
  992. out.String(string(in.ID))
  993. }
  994. if in.ParentID != "" {
  995. const prefix string = ",\"parentId\":"
  996. out.RawString(prefix)
  997. out.String(string(in.ParentID))
  998. }
  999. {
  1000. const prefix string = ",\"loaderId\":"
  1001. out.RawString(prefix)
  1002. out.String(string(in.LoaderID))
  1003. }
  1004. if in.Name != "" {
  1005. const prefix string = ",\"name\":"
  1006. out.RawString(prefix)
  1007. out.String(string(in.Name))
  1008. }
  1009. {
  1010. const prefix string = ",\"url\":"
  1011. out.RawString(prefix)
  1012. out.String(string(in.URL))
  1013. }
  1014. if in.URLFragment != "" {
  1015. const prefix string = ",\"urlFragment\":"
  1016. out.RawString(prefix)
  1017. out.String(string(in.URLFragment))
  1018. }
  1019. {
  1020. const prefix string = ",\"domainAndRegistry\":"
  1021. out.RawString(prefix)
  1022. out.String(string(in.DomainAndRegistry))
  1023. }
  1024. {
  1025. const prefix string = ",\"securityOrigin\":"
  1026. out.RawString(prefix)
  1027. out.String(string(in.SecurityOrigin))
  1028. }
  1029. {
  1030. const prefix string = ",\"mimeType\":"
  1031. out.RawString(prefix)
  1032. out.String(string(in.MimeType))
  1033. }
  1034. if in.UnreachableURL != "" {
  1035. const prefix string = ",\"unreachableUrl\":"
  1036. out.RawString(prefix)
  1037. out.String(string(in.UnreachableURL))
  1038. }
  1039. if in.AdFrameStatus != nil {
  1040. const prefix string = ",\"adFrameStatus\":"
  1041. out.RawString(prefix)
  1042. (*in.AdFrameStatus).MarshalEasyJSON(out)
  1043. }
  1044. {
  1045. const prefix string = ",\"secureContextType\":"
  1046. out.RawString(prefix)
  1047. (in.SecureContextType).MarshalEasyJSON(out)
  1048. }
  1049. {
  1050. const prefix string = ",\"crossOriginIsolatedContextType\":"
  1051. out.RawString(prefix)
  1052. (in.CrossOriginIsolatedContextType).MarshalEasyJSON(out)
  1053. }
  1054. {
  1055. const prefix string = ",\"gatedAPIFeatures\":"
  1056. out.RawString(prefix)
  1057. if in.GatedAPIFeatures == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1058. out.RawString("null")
  1059. } else {
  1060. out.RawByte('[')
  1061. for v20, v21 := range in.GatedAPIFeatures {
  1062. if v20 > 0 {
  1063. out.RawByte(',')
  1064. }
  1065. (v21).MarshalEasyJSON(out)
  1066. }
  1067. out.RawByte(']')
  1068. }
  1069. }
  1070. out.RawByte('}')
  1071. }
  1072. // MarshalJSON supports json.Marshaler interface
  1073. func (v Frame) MarshalJSON() ([]byte, error) {
  1074. w := jwriter.Writer{}
  1075. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp5(&w, v)
  1076. return w.Buffer.BuildBytes(), w.Error
  1077. }
  1078. // MarshalEasyJSON supports easyjson.Marshaler interface
  1079. func (v Frame) MarshalEasyJSON(w *jwriter.Writer) {
  1080. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp5(w, v)
  1081. }
  1082. // UnmarshalJSON supports json.Unmarshaler interface
  1083. func (v *Frame) UnmarshalJSON(data []byte) error {
  1084. r := jlexer.Lexer{Data: data}
  1085. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp5(&r, v)
  1086. return r.Error()
  1087. }
  1088. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1089. func (v *Frame) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1090. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp5(l, v)
  1091. }
  1092. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp6(in *jlexer.Lexer, out *BackendNode) {
  1093. isTopLevel := in.IsStart()
  1094. if in.IsNull() {
  1095. if isTopLevel {
  1096. in.Consumed()
  1097. }
  1098. in.Skip()
  1099. return
  1100. }
  1101. in.Delim('{')
  1102. for !in.IsDelim('}') {
  1103. key := in.UnsafeFieldName(false)
  1104. in.WantColon()
  1105. if in.IsNull() {
  1106. in.Skip()
  1107. in.WantComma()
  1108. continue
  1109. }
  1110. switch key {
  1111. case "nodeType":
  1112. (out.NodeType).UnmarshalEasyJSON(in)
  1113. case "nodeName":
  1114. out.NodeName = string(in.String())
  1115. case "backendNodeId":
  1116. (out.BackendNodeID).UnmarshalEasyJSON(in)
  1117. default:
  1118. in.SkipRecursive()
  1119. }
  1120. in.WantComma()
  1121. }
  1122. in.Delim('}')
  1123. if isTopLevel {
  1124. in.Consumed()
  1125. }
  1126. }
  1127. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp6(out *jwriter.Writer, in BackendNode) {
  1128. out.RawByte('{')
  1129. first := true
  1130. _ = first
  1131. {
  1132. const prefix string = ",\"nodeType\":"
  1133. out.RawString(prefix[1:])
  1134. (in.NodeType).MarshalEasyJSON(out)
  1135. }
  1136. {
  1137. const prefix string = ",\"nodeName\":"
  1138. out.RawString(prefix)
  1139. out.String(string(in.NodeName))
  1140. }
  1141. {
  1142. const prefix string = ",\"backendNodeId\":"
  1143. out.RawString(prefix)
  1144. out.Int64(int64(in.BackendNodeID))
  1145. }
  1146. out.RawByte('}')
  1147. }
  1148. // MarshalJSON supports json.Marshaler interface
  1149. func (v BackendNode) MarshalJSON() ([]byte, error) {
  1150. w := jwriter.Writer{}
  1151. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp6(&w, v)
  1152. return w.Buffer.BuildBytes(), w.Error
  1153. }
  1154. // MarshalEasyJSON supports easyjson.Marshaler interface
  1155. func (v BackendNode) MarshalEasyJSON(w *jwriter.Writer) {
  1156. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp6(w, v)
  1157. }
  1158. // UnmarshalJSON supports json.Unmarshaler interface
  1159. func (v *BackendNode) UnmarshalJSON(data []byte) error {
  1160. r := jlexer.Lexer{Data: data}
  1161. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp6(&r, v)
  1162. return r.Error()
  1163. }
  1164. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1165. func (v *BackendNode) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1166. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp6(l, v)
  1167. }
  1168. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp7(in *jlexer.Lexer, out *AdFrameStatus) {
  1169. isTopLevel := in.IsStart()
  1170. if in.IsNull() {
  1171. if isTopLevel {
  1172. in.Consumed()
  1173. }
  1174. in.Skip()
  1175. return
  1176. }
  1177. in.Delim('{')
  1178. for !in.IsDelim('}') {
  1179. key := in.UnsafeFieldName(false)
  1180. in.WantColon()
  1181. if in.IsNull() {
  1182. in.Skip()
  1183. in.WantComma()
  1184. continue
  1185. }
  1186. switch key {
  1187. case "adFrameType":
  1188. (out.AdFrameType).UnmarshalEasyJSON(in)
  1189. case "explanations":
  1190. if in.IsNull() {
  1191. in.Skip()
  1192. out.Explanations = nil
  1193. } else {
  1194. in.Delim('[')
  1195. if out.Explanations == nil {
  1196. if !in.IsDelim(']') {
  1197. out.Explanations = make([]AdFrameExplanation, 0, 4)
  1198. } else {
  1199. out.Explanations = []AdFrameExplanation{}
  1200. }
  1201. } else {
  1202. out.Explanations = (out.Explanations)[:0]
  1203. }
  1204. for !in.IsDelim(']') {
  1205. var v22 AdFrameExplanation
  1206. (v22).UnmarshalEasyJSON(in)
  1207. out.Explanations = append(out.Explanations, v22)
  1208. in.WantComma()
  1209. }
  1210. in.Delim(']')
  1211. }
  1212. default:
  1213. in.SkipRecursive()
  1214. }
  1215. in.WantComma()
  1216. }
  1217. in.Delim('}')
  1218. if isTopLevel {
  1219. in.Consumed()
  1220. }
  1221. }
  1222. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp7(out *jwriter.Writer, in AdFrameStatus) {
  1223. out.RawByte('{')
  1224. first := true
  1225. _ = first
  1226. {
  1227. const prefix string = ",\"adFrameType\":"
  1228. out.RawString(prefix[1:])
  1229. (in.AdFrameType).MarshalEasyJSON(out)
  1230. }
  1231. if len(in.Explanations) != 0 {
  1232. const prefix string = ",\"explanations\":"
  1233. out.RawString(prefix)
  1234. {
  1235. out.RawByte('[')
  1236. for v23, v24 := range in.Explanations {
  1237. if v23 > 0 {
  1238. out.RawByte(',')
  1239. }
  1240. (v24).MarshalEasyJSON(out)
  1241. }
  1242. out.RawByte(']')
  1243. }
  1244. }
  1245. out.RawByte('}')
  1246. }
  1247. // MarshalJSON supports json.Marshaler interface
  1248. func (v AdFrameStatus) MarshalJSON() ([]byte, error) {
  1249. w := jwriter.Writer{}
  1250. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp7(&w, v)
  1251. return w.Buffer.BuildBytes(), w.Error
  1252. }
  1253. // MarshalEasyJSON supports easyjson.Marshaler interface
  1254. func (v AdFrameStatus) MarshalEasyJSON(w *jwriter.Writer) {
  1255. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp7(w, v)
  1256. }
  1257. // UnmarshalJSON supports json.Unmarshaler interface
  1258. func (v *AdFrameStatus) UnmarshalJSON(data []byte) error {
  1259. r := jlexer.Lexer{Data: data}
  1260. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp7(&r, v)
  1261. return r.Error()
  1262. }
  1263. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1264. func (v *AdFrameStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1265. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCdp7(l, v)
  1266. }