easyjson.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package inspector
  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 easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector(in *jlexer.Lexer, out *EventTargetReloadedAfterCrash) {
  17. isTopLevel := in.IsStart()
  18. if in.IsNull() {
  19. if isTopLevel {
  20. in.Consumed()
  21. }
  22. in.Skip()
  23. return
  24. }
  25. in.Delim('{')
  26. for !in.IsDelim('}') {
  27. key := in.UnsafeFieldName(false)
  28. in.WantColon()
  29. if in.IsNull() {
  30. in.Skip()
  31. in.WantComma()
  32. continue
  33. }
  34. switch key {
  35. default:
  36. in.SkipRecursive()
  37. }
  38. in.WantComma()
  39. }
  40. in.Delim('}')
  41. if isTopLevel {
  42. in.Consumed()
  43. }
  44. }
  45. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector(out *jwriter.Writer, in EventTargetReloadedAfterCrash) {
  46. out.RawByte('{')
  47. first := true
  48. _ = first
  49. out.RawByte('}')
  50. }
  51. // MarshalJSON supports json.Marshaler interface
  52. func (v EventTargetReloadedAfterCrash) MarshalJSON() ([]byte, error) {
  53. w := jwriter.Writer{}
  54. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector(&w, v)
  55. return w.Buffer.BuildBytes(), w.Error
  56. }
  57. // MarshalEasyJSON supports easyjson.Marshaler interface
  58. func (v EventTargetReloadedAfterCrash) MarshalEasyJSON(w *jwriter.Writer) {
  59. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector(w, v)
  60. }
  61. // UnmarshalJSON supports json.Unmarshaler interface
  62. func (v *EventTargetReloadedAfterCrash) UnmarshalJSON(data []byte) error {
  63. r := jlexer.Lexer{Data: data}
  64. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector(&r, v)
  65. return r.Error()
  66. }
  67. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  68. func (v *EventTargetReloadedAfterCrash) UnmarshalEasyJSON(l *jlexer.Lexer) {
  69. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector(l, v)
  70. }
  71. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector1(in *jlexer.Lexer, out *EventTargetCrashed) {
  72. isTopLevel := in.IsStart()
  73. if in.IsNull() {
  74. if isTopLevel {
  75. in.Consumed()
  76. }
  77. in.Skip()
  78. return
  79. }
  80. in.Delim('{')
  81. for !in.IsDelim('}') {
  82. key := in.UnsafeFieldName(false)
  83. in.WantColon()
  84. if in.IsNull() {
  85. in.Skip()
  86. in.WantComma()
  87. continue
  88. }
  89. switch key {
  90. default:
  91. in.SkipRecursive()
  92. }
  93. in.WantComma()
  94. }
  95. in.Delim('}')
  96. if isTopLevel {
  97. in.Consumed()
  98. }
  99. }
  100. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector1(out *jwriter.Writer, in EventTargetCrashed) {
  101. out.RawByte('{')
  102. first := true
  103. _ = first
  104. out.RawByte('}')
  105. }
  106. // MarshalJSON supports json.Marshaler interface
  107. func (v EventTargetCrashed) MarshalJSON() ([]byte, error) {
  108. w := jwriter.Writer{}
  109. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector1(&w, v)
  110. return w.Buffer.BuildBytes(), w.Error
  111. }
  112. // MarshalEasyJSON supports easyjson.Marshaler interface
  113. func (v EventTargetCrashed) MarshalEasyJSON(w *jwriter.Writer) {
  114. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector1(w, v)
  115. }
  116. // UnmarshalJSON supports json.Unmarshaler interface
  117. func (v *EventTargetCrashed) UnmarshalJSON(data []byte) error {
  118. r := jlexer.Lexer{Data: data}
  119. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector1(&r, v)
  120. return r.Error()
  121. }
  122. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  123. func (v *EventTargetCrashed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  124. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector1(l, v)
  125. }
  126. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector2(in *jlexer.Lexer, out *EventDetached) {
  127. isTopLevel := in.IsStart()
  128. if in.IsNull() {
  129. if isTopLevel {
  130. in.Consumed()
  131. }
  132. in.Skip()
  133. return
  134. }
  135. in.Delim('{')
  136. for !in.IsDelim('}') {
  137. key := in.UnsafeFieldName(false)
  138. in.WantColon()
  139. if in.IsNull() {
  140. in.Skip()
  141. in.WantComma()
  142. continue
  143. }
  144. switch key {
  145. case "reason":
  146. (out.Reason).UnmarshalEasyJSON(in)
  147. default:
  148. in.SkipRecursive()
  149. }
  150. in.WantComma()
  151. }
  152. in.Delim('}')
  153. if isTopLevel {
  154. in.Consumed()
  155. }
  156. }
  157. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector2(out *jwriter.Writer, in EventDetached) {
  158. out.RawByte('{')
  159. first := true
  160. _ = first
  161. {
  162. const prefix string = ",\"reason\":"
  163. out.RawString(prefix[1:])
  164. (in.Reason).MarshalEasyJSON(out)
  165. }
  166. out.RawByte('}')
  167. }
  168. // MarshalJSON supports json.Marshaler interface
  169. func (v EventDetached) MarshalJSON() ([]byte, error) {
  170. w := jwriter.Writer{}
  171. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector2(&w, v)
  172. return w.Buffer.BuildBytes(), w.Error
  173. }
  174. // MarshalEasyJSON supports easyjson.Marshaler interface
  175. func (v EventDetached) MarshalEasyJSON(w *jwriter.Writer) {
  176. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector2(w, v)
  177. }
  178. // UnmarshalJSON supports json.Unmarshaler interface
  179. func (v *EventDetached) UnmarshalJSON(data []byte) error {
  180. r := jlexer.Lexer{Data: data}
  181. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector2(&r, v)
  182. return r.Error()
  183. }
  184. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  185. func (v *EventDetached) UnmarshalEasyJSON(l *jlexer.Lexer) {
  186. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector2(l, v)
  187. }
  188. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector3(in *jlexer.Lexer, out *EnableParams) {
  189. isTopLevel := in.IsStart()
  190. if in.IsNull() {
  191. if isTopLevel {
  192. in.Consumed()
  193. }
  194. in.Skip()
  195. return
  196. }
  197. in.Delim('{')
  198. for !in.IsDelim('}') {
  199. key := in.UnsafeFieldName(false)
  200. in.WantColon()
  201. if in.IsNull() {
  202. in.Skip()
  203. in.WantComma()
  204. continue
  205. }
  206. switch key {
  207. default:
  208. in.SkipRecursive()
  209. }
  210. in.WantComma()
  211. }
  212. in.Delim('}')
  213. if isTopLevel {
  214. in.Consumed()
  215. }
  216. }
  217. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector3(out *jwriter.Writer, in EnableParams) {
  218. out.RawByte('{')
  219. first := true
  220. _ = first
  221. out.RawByte('}')
  222. }
  223. // MarshalJSON supports json.Marshaler interface
  224. func (v EnableParams) MarshalJSON() ([]byte, error) {
  225. w := jwriter.Writer{}
  226. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector3(&w, v)
  227. return w.Buffer.BuildBytes(), w.Error
  228. }
  229. // MarshalEasyJSON supports easyjson.Marshaler interface
  230. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  231. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector3(w, v)
  232. }
  233. // UnmarshalJSON supports json.Unmarshaler interface
  234. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  235. r := jlexer.Lexer{Data: data}
  236. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector3(&r, v)
  237. return r.Error()
  238. }
  239. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  240. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  241. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector3(l, v)
  242. }
  243. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector4(in *jlexer.Lexer, out *DisableParams) {
  244. isTopLevel := in.IsStart()
  245. if in.IsNull() {
  246. if isTopLevel {
  247. in.Consumed()
  248. }
  249. in.Skip()
  250. return
  251. }
  252. in.Delim('{')
  253. for !in.IsDelim('}') {
  254. key := in.UnsafeFieldName(false)
  255. in.WantColon()
  256. if in.IsNull() {
  257. in.Skip()
  258. in.WantComma()
  259. continue
  260. }
  261. switch key {
  262. default:
  263. in.SkipRecursive()
  264. }
  265. in.WantComma()
  266. }
  267. in.Delim('}')
  268. if isTopLevel {
  269. in.Consumed()
  270. }
  271. }
  272. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector4(out *jwriter.Writer, in DisableParams) {
  273. out.RawByte('{')
  274. first := true
  275. _ = first
  276. out.RawByte('}')
  277. }
  278. // MarshalJSON supports json.Marshaler interface
  279. func (v DisableParams) MarshalJSON() ([]byte, error) {
  280. w := jwriter.Writer{}
  281. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector4(&w, v)
  282. return w.Buffer.BuildBytes(), w.Error
  283. }
  284. // MarshalEasyJSON supports easyjson.Marshaler interface
  285. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  286. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInspector4(w, v)
  287. }
  288. // UnmarshalJSON supports json.Unmarshaler interface
  289. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  290. r := jlexer.Lexer{Data: data}
  291. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector4(&r, v)
  292. return r.Error()
  293. }
  294. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  295. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  296. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInspector4(l, v)
  297. }