easyjson.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package log
  3. import (
  4. json "encoding/json"
  5. network "github.com/chromedp/cdproto/network"
  6. runtime "github.com/chromedp/cdproto/runtime"
  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 easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog(in *jlexer.Lexer, out *ViolationSetting) {
  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 "name":
  38. (out.Name).UnmarshalEasyJSON(in)
  39. case "threshold":
  40. out.Threshold = float64(in.Float64())
  41. default:
  42. in.SkipRecursive()
  43. }
  44. in.WantComma()
  45. }
  46. in.Delim('}')
  47. if isTopLevel {
  48. in.Consumed()
  49. }
  50. }
  51. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog(out *jwriter.Writer, in ViolationSetting) {
  52. out.RawByte('{')
  53. first := true
  54. _ = first
  55. {
  56. const prefix string = ",\"name\":"
  57. out.RawString(prefix[1:])
  58. (in.Name).MarshalEasyJSON(out)
  59. }
  60. {
  61. const prefix string = ",\"threshold\":"
  62. out.RawString(prefix)
  63. out.Float64(float64(in.Threshold))
  64. }
  65. out.RawByte('}')
  66. }
  67. // MarshalJSON supports json.Marshaler interface
  68. func (v ViolationSetting) MarshalJSON() ([]byte, error) {
  69. w := jwriter.Writer{}
  70. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog(&w, v)
  71. return w.Buffer.BuildBytes(), w.Error
  72. }
  73. // MarshalEasyJSON supports easyjson.Marshaler interface
  74. func (v ViolationSetting) MarshalEasyJSON(w *jwriter.Writer) {
  75. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog(w, v)
  76. }
  77. // UnmarshalJSON supports json.Unmarshaler interface
  78. func (v *ViolationSetting) UnmarshalJSON(data []byte) error {
  79. r := jlexer.Lexer{Data: data}
  80. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog(&r, v)
  81. return r.Error()
  82. }
  83. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  84. func (v *ViolationSetting) UnmarshalEasyJSON(l *jlexer.Lexer) {
  85. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog(l, v)
  86. }
  87. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog1(in *jlexer.Lexer, out *StopViolationsReportParams) {
  88. isTopLevel := in.IsStart()
  89. if in.IsNull() {
  90. if isTopLevel {
  91. in.Consumed()
  92. }
  93. in.Skip()
  94. return
  95. }
  96. in.Delim('{')
  97. for !in.IsDelim('}') {
  98. key := in.UnsafeFieldName(false)
  99. in.WantColon()
  100. if in.IsNull() {
  101. in.Skip()
  102. in.WantComma()
  103. continue
  104. }
  105. switch key {
  106. default:
  107. in.SkipRecursive()
  108. }
  109. in.WantComma()
  110. }
  111. in.Delim('}')
  112. if isTopLevel {
  113. in.Consumed()
  114. }
  115. }
  116. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog1(out *jwriter.Writer, in StopViolationsReportParams) {
  117. out.RawByte('{')
  118. first := true
  119. _ = first
  120. out.RawByte('}')
  121. }
  122. // MarshalJSON supports json.Marshaler interface
  123. func (v StopViolationsReportParams) MarshalJSON() ([]byte, error) {
  124. w := jwriter.Writer{}
  125. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog1(&w, v)
  126. return w.Buffer.BuildBytes(), w.Error
  127. }
  128. // MarshalEasyJSON supports easyjson.Marshaler interface
  129. func (v StopViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) {
  130. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog1(w, v)
  131. }
  132. // UnmarshalJSON supports json.Unmarshaler interface
  133. func (v *StopViolationsReportParams) UnmarshalJSON(data []byte) error {
  134. r := jlexer.Lexer{Data: data}
  135. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog1(&r, v)
  136. return r.Error()
  137. }
  138. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  139. func (v *StopViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  140. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog1(l, v)
  141. }
  142. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog2(in *jlexer.Lexer, out *StartViolationsReportParams) {
  143. isTopLevel := in.IsStart()
  144. if in.IsNull() {
  145. if isTopLevel {
  146. in.Consumed()
  147. }
  148. in.Skip()
  149. return
  150. }
  151. in.Delim('{')
  152. for !in.IsDelim('}') {
  153. key := in.UnsafeFieldName(false)
  154. in.WantColon()
  155. if in.IsNull() {
  156. in.Skip()
  157. in.WantComma()
  158. continue
  159. }
  160. switch key {
  161. case "config":
  162. if in.IsNull() {
  163. in.Skip()
  164. out.Config = nil
  165. } else {
  166. in.Delim('[')
  167. if out.Config == nil {
  168. if !in.IsDelim(']') {
  169. out.Config = make([]*ViolationSetting, 0, 8)
  170. } else {
  171. out.Config = []*ViolationSetting{}
  172. }
  173. } else {
  174. out.Config = (out.Config)[:0]
  175. }
  176. for !in.IsDelim(']') {
  177. var v1 *ViolationSetting
  178. if in.IsNull() {
  179. in.Skip()
  180. v1 = nil
  181. } else {
  182. if v1 == nil {
  183. v1 = new(ViolationSetting)
  184. }
  185. (*v1).UnmarshalEasyJSON(in)
  186. }
  187. out.Config = append(out.Config, v1)
  188. in.WantComma()
  189. }
  190. in.Delim(']')
  191. }
  192. default:
  193. in.SkipRecursive()
  194. }
  195. in.WantComma()
  196. }
  197. in.Delim('}')
  198. if isTopLevel {
  199. in.Consumed()
  200. }
  201. }
  202. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog2(out *jwriter.Writer, in StartViolationsReportParams) {
  203. out.RawByte('{')
  204. first := true
  205. _ = first
  206. {
  207. const prefix string = ",\"config\":"
  208. out.RawString(prefix[1:])
  209. if in.Config == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  210. out.RawString("null")
  211. } else {
  212. out.RawByte('[')
  213. for v2, v3 := range in.Config {
  214. if v2 > 0 {
  215. out.RawByte(',')
  216. }
  217. if v3 == nil {
  218. out.RawString("null")
  219. } else {
  220. (*v3).MarshalEasyJSON(out)
  221. }
  222. }
  223. out.RawByte(']')
  224. }
  225. }
  226. out.RawByte('}')
  227. }
  228. // MarshalJSON supports json.Marshaler interface
  229. func (v StartViolationsReportParams) MarshalJSON() ([]byte, error) {
  230. w := jwriter.Writer{}
  231. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog2(&w, v)
  232. return w.Buffer.BuildBytes(), w.Error
  233. }
  234. // MarshalEasyJSON supports easyjson.Marshaler interface
  235. func (v StartViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) {
  236. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog2(w, v)
  237. }
  238. // UnmarshalJSON supports json.Unmarshaler interface
  239. func (v *StartViolationsReportParams) UnmarshalJSON(data []byte) error {
  240. r := jlexer.Lexer{Data: data}
  241. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog2(&r, v)
  242. return r.Error()
  243. }
  244. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  245. func (v *StartViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  246. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog2(l, v)
  247. }
  248. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog3(in *jlexer.Lexer, out *EventEntryAdded) {
  249. isTopLevel := in.IsStart()
  250. if in.IsNull() {
  251. if isTopLevel {
  252. in.Consumed()
  253. }
  254. in.Skip()
  255. return
  256. }
  257. in.Delim('{')
  258. for !in.IsDelim('}') {
  259. key := in.UnsafeFieldName(false)
  260. in.WantColon()
  261. if in.IsNull() {
  262. in.Skip()
  263. in.WantComma()
  264. continue
  265. }
  266. switch key {
  267. case "entry":
  268. if in.IsNull() {
  269. in.Skip()
  270. out.Entry = nil
  271. } else {
  272. if out.Entry == nil {
  273. out.Entry = new(Entry)
  274. }
  275. (*out.Entry).UnmarshalEasyJSON(in)
  276. }
  277. default:
  278. in.SkipRecursive()
  279. }
  280. in.WantComma()
  281. }
  282. in.Delim('}')
  283. if isTopLevel {
  284. in.Consumed()
  285. }
  286. }
  287. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog3(out *jwriter.Writer, in EventEntryAdded) {
  288. out.RawByte('{')
  289. first := true
  290. _ = first
  291. {
  292. const prefix string = ",\"entry\":"
  293. out.RawString(prefix[1:])
  294. if in.Entry == nil {
  295. out.RawString("null")
  296. } else {
  297. (*in.Entry).MarshalEasyJSON(out)
  298. }
  299. }
  300. out.RawByte('}')
  301. }
  302. // MarshalJSON supports json.Marshaler interface
  303. func (v EventEntryAdded) MarshalJSON() ([]byte, error) {
  304. w := jwriter.Writer{}
  305. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog3(&w, v)
  306. return w.Buffer.BuildBytes(), w.Error
  307. }
  308. // MarshalEasyJSON supports easyjson.Marshaler interface
  309. func (v EventEntryAdded) MarshalEasyJSON(w *jwriter.Writer) {
  310. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog3(w, v)
  311. }
  312. // UnmarshalJSON supports json.Unmarshaler interface
  313. func (v *EventEntryAdded) UnmarshalJSON(data []byte) error {
  314. r := jlexer.Lexer{Data: data}
  315. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog3(&r, v)
  316. return r.Error()
  317. }
  318. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  319. func (v *EventEntryAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
  320. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog3(l, v)
  321. }
  322. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog4(in *jlexer.Lexer, out *Entry) {
  323. isTopLevel := in.IsStart()
  324. if in.IsNull() {
  325. if isTopLevel {
  326. in.Consumed()
  327. }
  328. in.Skip()
  329. return
  330. }
  331. in.Delim('{')
  332. for !in.IsDelim('}') {
  333. key := in.UnsafeFieldName(false)
  334. in.WantColon()
  335. if in.IsNull() {
  336. in.Skip()
  337. in.WantComma()
  338. continue
  339. }
  340. switch key {
  341. case "source":
  342. (out.Source).UnmarshalEasyJSON(in)
  343. case "level":
  344. (out.Level).UnmarshalEasyJSON(in)
  345. case "text":
  346. out.Text = string(in.String())
  347. case "category":
  348. (out.Category).UnmarshalEasyJSON(in)
  349. case "timestamp":
  350. if in.IsNull() {
  351. in.Skip()
  352. out.Timestamp = nil
  353. } else {
  354. if out.Timestamp == nil {
  355. out.Timestamp = new(runtime.Timestamp)
  356. }
  357. (*out.Timestamp).UnmarshalEasyJSON(in)
  358. }
  359. case "url":
  360. out.URL = string(in.String())
  361. case "lineNumber":
  362. out.LineNumber = int64(in.Int64())
  363. case "stackTrace":
  364. if in.IsNull() {
  365. in.Skip()
  366. out.StackTrace = nil
  367. } else {
  368. if out.StackTrace == nil {
  369. out.StackTrace = new(runtime.StackTrace)
  370. }
  371. (*out.StackTrace).UnmarshalEasyJSON(in)
  372. }
  373. case "networkRequestId":
  374. out.NetworkRequestID = network.RequestID(in.String())
  375. case "workerId":
  376. out.WorkerID = string(in.String())
  377. case "args":
  378. if in.IsNull() {
  379. in.Skip()
  380. out.Args = nil
  381. } else {
  382. in.Delim('[')
  383. if out.Args == nil {
  384. if !in.IsDelim(']') {
  385. out.Args = make([]*runtime.RemoteObject, 0, 8)
  386. } else {
  387. out.Args = []*runtime.RemoteObject{}
  388. }
  389. } else {
  390. out.Args = (out.Args)[:0]
  391. }
  392. for !in.IsDelim(']') {
  393. var v4 *runtime.RemoteObject
  394. if in.IsNull() {
  395. in.Skip()
  396. v4 = nil
  397. } else {
  398. if v4 == nil {
  399. v4 = new(runtime.RemoteObject)
  400. }
  401. (*v4).UnmarshalEasyJSON(in)
  402. }
  403. out.Args = append(out.Args, v4)
  404. in.WantComma()
  405. }
  406. in.Delim(']')
  407. }
  408. default:
  409. in.SkipRecursive()
  410. }
  411. in.WantComma()
  412. }
  413. in.Delim('}')
  414. if isTopLevel {
  415. in.Consumed()
  416. }
  417. }
  418. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog4(out *jwriter.Writer, in Entry) {
  419. out.RawByte('{')
  420. first := true
  421. _ = first
  422. {
  423. const prefix string = ",\"source\":"
  424. out.RawString(prefix[1:])
  425. (in.Source).MarshalEasyJSON(out)
  426. }
  427. {
  428. const prefix string = ",\"level\":"
  429. out.RawString(prefix)
  430. (in.Level).MarshalEasyJSON(out)
  431. }
  432. {
  433. const prefix string = ",\"text\":"
  434. out.RawString(prefix)
  435. out.String(string(in.Text))
  436. }
  437. if in.Category != "" {
  438. const prefix string = ",\"category\":"
  439. out.RawString(prefix)
  440. (in.Category).MarshalEasyJSON(out)
  441. }
  442. {
  443. const prefix string = ",\"timestamp\":"
  444. out.RawString(prefix)
  445. if in.Timestamp == nil {
  446. out.RawString("null")
  447. } else {
  448. (*in.Timestamp).MarshalEasyJSON(out)
  449. }
  450. }
  451. if in.URL != "" {
  452. const prefix string = ",\"url\":"
  453. out.RawString(prefix)
  454. out.String(string(in.URL))
  455. }
  456. if in.LineNumber != 0 {
  457. const prefix string = ",\"lineNumber\":"
  458. out.RawString(prefix)
  459. out.Int64(int64(in.LineNumber))
  460. }
  461. if in.StackTrace != nil {
  462. const prefix string = ",\"stackTrace\":"
  463. out.RawString(prefix)
  464. (*in.StackTrace).MarshalEasyJSON(out)
  465. }
  466. if in.NetworkRequestID != "" {
  467. const prefix string = ",\"networkRequestId\":"
  468. out.RawString(prefix)
  469. out.String(string(in.NetworkRequestID))
  470. }
  471. if in.WorkerID != "" {
  472. const prefix string = ",\"workerId\":"
  473. out.RawString(prefix)
  474. out.String(string(in.WorkerID))
  475. }
  476. if len(in.Args) != 0 {
  477. const prefix string = ",\"args\":"
  478. out.RawString(prefix)
  479. {
  480. out.RawByte('[')
  481. for v5, v6 := range in.Args {
  482. if v5 > 0 {
  483. out.RawByte(',')
  484. }
  485. if v6 == nil {
  486. out.RawString("null")
  487. } else {
  488. (*v6).MarshalEasyJSON(out)
  489. }
  490. }
  491. out.RawByte(']')
  492. }
  493. }
  494. out.RawByte('}')
  495. }
  496. // MarshalJSON supports json.Marshaler interface
  497. func (v Entry) MarshalJSON() ([]byte, error) {
  498. w := jwriter.Writer{}
  499. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog4(&w, v)
  500. return w.Buffer.BuildBytes(), w.Error
  501. }
  502. // MarshalEasyJSON supports easyjson.Marshaler interface
  503. func (v Entry) MarshalEasyJSON(w *jwriter.Writer) {
  504. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog4(w, v)
  505. }
  506. // UnmarshalJSON supports json.Unmarshaler interface
  507. func (v *Entry) UnmarshalJSON(data []byte) error {
  508. r := jlexer.Lexer{Data: data}
  509. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog4(&r, v)
  510. return r.Error()
  511. }
  512. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  513. func (v *Entry) UnmarshalEasyJSON(l *jlexer.Lexer) {
  514. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog4(l, v)
  515. }
  516. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog5(in *jlexer.Lexer, out *EnableParams) {
  517. isTopLevel := in.IsStart()
  518. if in.IsNull() {
  519. if isTopLevel {
  520. in.Consumed()
  521. }
  522. in.Skip()
  523. return
  524. }
  525. in.Delim('{')
  526. for !in.IsDelim('}') {
  527. key := in.UnsafeFieldName(false)
  528. in.WantColon()
  529. if in.IsNull() {
  530. in.Skip()
  531. in.WantComma()
  532. continue
  533. }
  534. switch key {
  535. default:
  536. in.SkipRecursive()
  537. }
  538. in.WantComma()
  539. }
  540. in.Delim('}')
  541. if isTopLevel {
  542. in.Consumed()
  543. }
  544. }
  545. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog5(out *jwriter.Writer, in EnableParams) {
  546. out.RawByte('{')
  547. first := true
  548. _ = first
  549. out.RawByte('}')
  550. }
  551. // MarshalJSON supports json.Marshaler interface
  552. func (v EnableParams) MarshalJSON() ([]byte, error) {
  553. w := jwriter.Writer{}
  554. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog5(&w, v)
  555. return w.Buffer.BuildBytes(), w.Error
  556. }
  557. // MarshalEasyJSON supports easyjson.Marshaler interface
  558. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  559. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog5(w, v)
  560. }
  561. // UnmarshalJSON supports json.Unmarshaler interface
  562. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  563. r := jlexer.Lexer{Data: data}
  564. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog5(&r, v)
  565. return r.Error()
  566. }
  567. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  568. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  569. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog5(l, v)
  570. }
  571. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog6(in *jlexer.Lexer, out *DisableParams) {
  572. isTopLevel := in.IsStart()
  573. if in.IsNull() {
  574. if isTopLevel {
  575. in.Consumed()
  576. }
  577. in.Skip()
  578. return
  579. }
  580. in.Delim('{')
  581. for !in.IsDelim('}') {
  582. key := in.UnsafeFieldName(false)
  583. in.WantColon()
  584. if in.IsNull() {
  585. in.Skip()
  586. in.WantComma()
  587. continue
  588. }
  589. switch key {
  590. default:
  591. in.SkipRecursive()
  592. }
  593. in.WantComma()
  594. }
  595. in.Delim('}')
  596. if isTopLevel {
  597. in.Consumed()
  598. }
  599. }
  600. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog6(out *jwriter.Writer, in DisableParams) {
  601. out.RawByte('{')
  602. first := true
  603. _ = first
  604. out.RawByte('}')
  605. }
  606. // MarshalJSON supports json.Marshaler interface
  607. func (v DisableParams) MarshalJSON() ([]byte, error) {
  608. w := jwriter.Writer{}
  609. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog6(&w, v)
  610. return w.Buffer.BuildBytes(), w.Error
  611. }
  612. // MarshalEasyJSON supports easyjson.Marshaler interface
  613. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  614. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog6(w, v)
  615. }
  616. // UnmarshalJSON supports json.Unmarshaler interface
  617. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  618. r := jlexer.Lexer{Data: data}
  619. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog6(&r, v)
  620. return r.Error()
  621. }
  622. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  623. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  624. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog6(l, v)
  625. }
  626. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog7(in *jlexer.Lexer, out *ClearParams) {
  627. isTopLevel := in.IsStart()
  628. if in.IsNull() {
  629. if isTopLevel {
  630. in.Consumed()
  631. }
  632. in.Skip()
  633. return
  634. }
  635. in.Delim('{')
  636. for !in.IsDelim('}') {
  637. key := in.UnsafeFieldName(false)
  638. in.WantColon()
  639. if in.IsNull() {
  640. in.Skip()
  641. in.WantComma()
  642. continue
  643. }
  644. switch key {
  645. default:
  646. in.SkipRecursive()
  647. }
  648. in.WantComma()
  649. }
  650. in.Delim('}')
  651. if isTopLevel {
  652. in.Consumed()
  653. }
  654. }
  655. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog7(out *jwriter.Writer, in ClearParams) {
  656. out.RawByte('{')
  657. first := true
  658. _ = first
  659. out.RawByte('}')
  660. }
  661. // MarshalJSON supports json.Marshaler interface
  662. func (v ClearParams) MarshalJSON() ([]byte, error) {
  663. w := jwriter.Writer{}
  664. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog7(&w, v)
  665. return w.Buffer.BuildBytes(), w.Error
  666. }
  667. // MarshalEasyJSON supports easyjson.Marshaler interface
  668. func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer) {
  669. easyjsonC5a4559bEncodeGithubComChromedpCdprotoLog7(w, v)
  670. }
  671. // UnmarshalJSON supports json.Unmarshaler interface
  672. func (v *ClearParams) UnmarshalJSON(data []byte) error {
  673. r := jlexer.Lexer{Data: data}
  674. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog7(&r, v)
  675. return r.Error()
  676. }
  677. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  678. func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  679. easyjsonC5a4559bDecodeGithubComChromedpCdprotoLog7(l, v)
  680. }