1// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
2
3package cachestorage
4
5import (
6	json "encoding/json"
7	easyjson "github.com/mailru/easyjson"
8	jlexer "github.com/mailru/easyjson/jlexer"
9	jwriter "github.com/mailru/easyjson/jwriter"
10)
11
12// suppress unused package warning
13var (
14	_ *json.RawMessage
15	_ *jlexer.Lexer
16	_ *jwriter.Writer
17	_ easyjson.Marshaler
18)
19
20func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage(in *jlexer.Lexer, out *RequestEntriesReturns) {
21	isTopLevel := in.IsStart()
22	if in.IsNull() {
23		if isTopLevel {
24			in.Consumed()
25		}
26		in.Skip()
27		return
28	}
29	in.Delim('{')
30	for !in.IsDelim('}') {
31		key := in.UnsafeString()
32		in.WantColon()
33		if in.IsNull() {
34			in.Skip()
35			in.WantComma()
36			continue
37		}
38		switch key {
39		case "cacheDataEntries":
40			if in.IsNull() {
41				in.Skip()
42				out.CacheDataEntries = nil
43			} else {
44				in.Delim('[')
45				if out.CacheDataEntries == nil {
46					if !in.IsDelim(']') {
47						out.CacheDataEntries = make([]*DataEntry, 0, 8)
48					} else {
49						out.CacheDataEntries = []*DataEntry{}
50					}
51				} else {
52					out.CacheDataEntries = (out.CacheDataEntries)[:0]
53				}
54				for !in.IsDelim(']') {
55					var v1 *DataEntry
56					if in.IsNull() {
57						in.Skip()
58						v1 = nil
59					} else {
60						if v1 == nil {
61							v1 = new(DataEntry)
62						}
63						(*v1).UnmarshalEasyJSON(in)
64					}
65					out.CacheDataEntries = append(out.CacheDataEntries, v1)
66					in.WantComma()
67				}
68				in.Delim(']')
69			}
70		case "returnCount":
71			out.ReturnCount = float64(in.Float64())
72		default:
73			in.SkipRecursive()
74		}
75		in.WantComma()
76	}
77	in.Delim('}')
78	if isTopLevel {
79		in.Consumed()
80	}
81}
82func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage(out *jwriter.Writer, in RequestEntriesReturns) {
83	out.RawByte('{')
84	first := true
85	_ = first
86	if len(in.CacheDataEntries) != 0 {
87		const prefix string = ",\"cacheDataEntries\":"
88		first = false
89		out.RawString(prefix[1:])
90		{
91			out.RawByte('[')
92			for v2, v3 := range in.CacheDataEntries {
93				if v2 > 0 {
94					out.RawByte(',')
95				}
96				if v3 == nil {
97					out.RawString("null")
98				} else {
99					(*v3).MarshalEasyJSON(out)
100				}
101			}
102			out.RawByte(']')
103		}
104	}
105	if in.ReturnCount != 0 {
106		const prefix string = ",\"returnCount\":"
107		if first {
108			first = false
109			out.RawString(prefix[1:])
110		} else {
111			out.RawString(prefix)
112		}
113		out.Float64(float64(in.ReturnCount))
114	}
115	out.RawByte('}')
116}
117
118// MarshalJSON supports json.Marshaler interface
119func (v RequestEntriesReturns) MarshalJSON() ([]byte, error) {
120	w := jwriter.Writer{}
121	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage(&w, v)
122	return w.Buffer.BuildBytes(), w.Error
123}
124
125// MarshalEasyJSON supports easyjson.Marshaler interface
126func (v RequestEntriesReturns) MarshalEasyJSON(w *jwriter.Writer) {
127	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage(w, v)
128}
129
130// UnmarshalJSON supports json.Unmarshaler interface
131func (v *RequestEntriesReturns) UnmarshalJSON(data []byte) error {
132	r := jlexer.Lexer{Data: data}
133	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage(&r, v)
134	return r.Error()
135}
136
137// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
138func (v *RequestEntriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
139	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage(l, v)
140}
141func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage1(in *jlexer.Lexer, out *RequestEntriesParams) {
142	isTopLevel := in.IsStart()
143	if in.IsNull() {
144		if isTopLevel {
145			in.Consumed()
146		}
147		in.Skip()
148		return
149	}
150	in.Delim('{')
151	for !in.IsDelim('}') {
152		key := in.UnsafeString()
153		in.WantColon()
154		if in.IsNull() {
155			in.Skip()
156			in.WantComma()
157			continue
158		}
159		switch key {
160		case "cacheId":
161			out.CacheID = CacheID(in.String())
162		case "skipCount":
163			out.SkipCount = int64(in.Int64())
164		case "pageSize":
165			out.PageSize = int64(in.Int64())
166		case "pathFilter":
167			out.PathFilter = string(in.String())
168		default:
169			in.SkipRecursive()
170		}
171		in.WantComma()
172	}
173	in.Delim('}')
174	if isTopLevel {
175		in.Consumed()
176	}
177}
178func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage1(out *jwriter.Writer, in RequestEntriesParams) {
179	out.RawByte('{')
180	first := true
181	_ = first
182	{
183		const prefix string = ",\"cacheId\":"
184		out.RawString(prefix[1:])
185		out.String(string(in.CacheID))
186	}
187	if in.SkipCount != 0 {
188		const prefix string = ",\"skipCount\":"
189		out.RawString(prefix)
190		out.Int64(int64(in.SkipCount))
191	}
192	if in.PageSize != 0 {
193		const prefix string = ",\"pageSize\":"
194		out.RawString(prefix)
195		out.Int64(int64(in.PageSize))
196	}
197	if in.PathFilter != "" {
198		const prefix string = ",\"pathFilter\":"
199		out.RawString(prefix)
200		out.String(string(in.PathFilter))
201	}
202	out.RawByte('}')
203}
204
205// MarshalJSON supports json.Marshaler interface
206func (v RequestEntriesParams) MarshalJSON() ([]byte, error) {
207	w := jwriter.Writer{}
208	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage1(&w, v)
209	return w.Buffer.BuildBytes(), w.Error
210}
211
212// MarshalEasyJSON supports easyjson.Marshaler interface
213func (v RequestEntriesParams) MarshalEasyJSON(w *jwriter.Writer) {
214	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage1(w, v)
215}
216
217// UnmarshalJSON supports json.Unmarshaler interface
218func (v *RequestEntriesParams) UnmarshalJSON(data []byte) error {
219	r := jlexer.Lexer{Data: data}
220	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage1(&r, v)
221	return r.Error()
222}
223
224// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
225func (v *RequestEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
226	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage1(l, v)
227}
228func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage2(in *jlexer.Lexer, out *RequestCachedResponseReturns) {
229	isTopLevel := in.IsStart()
230	if in.IsNull() {
231		if isTopLevel {
232			in.Consumed()
233		}
234		in.Skip()
235		return
236	}
237	in.Delim('{')
238	for !in.IsDelim('}') {
239		key := in.UnsafeString()
240		in.WantColon()
241		if in.IsNull() {
242			in.Skip()
243			in.WantComma()
244			continue
245		}
246		switch key {
247		case "response":
248			if in.IsNull() {
249				in.Skip()
250				out.Response = nil
251			} else {
252				if out.Response == nil {
253					out.Response = new(CachedResponse)
254				}
255				(*out.Response).UnmarshalEasyJSON(in)
256			}
257		default:
258			in.SkipRecursive()
259		}
260		in.WantComma()
261	}
262	in.Delim('}')
263	if isTopLevel {
264		in.Consumed()
265	}
266}
267func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage2(out *jwriter.Writer, in RequestCachedResponseReturns) {
268	out.RawByte('{')
269	first := true
270	_ = first
271	if in.Response != nil {
272		const prefix string = ",\"response\":"
273		first = false
274		out.RawString(prefix[1:])
275		(*in.Response).MarshalEasyJSON(out)
276	}
277	out.RawByte('}')
278}
279
280// MarshalJSON supports json.Marshaler interface
281func (v RequestCachedResponseReturns) MarshalJSON() ([]byte, error) {
282	w := jwriter.Writer{}
283	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage2(&w, v)
284	return w.Buffer.BuildBytes(), w.Error
285}
286
287// MarshalEasyJSON supports easyjson.Marshaler interface
288func (v RequestCachedResponseReturns) MarshalEasyJSON(w *jwriter.Writer) {
289	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage2(w, v)
290}
291
292// UnmarshalJSON supports json.Unmarshaler interface
293func (v *RequestCachedResponseReturns) UnmarshalJSON(data []byte) error {
294	r := jlexer.Lexer{Data: data}
295	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage2(&r, v)
296	return r.Error()
297}
298
299// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
300func (v *RequestCachedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
301	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage2(l, v)
302}
303func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage3(in *jlexer.Lexer, out *RequestCachedResponseParams) {
304	isTopLevel := in.IsStart()
305	if in.IsNull() {
306		if isTopLevel {
307			in.Consumed()
308		}
309		in.Skip()
310		return
311	}
312	in.Delim('{')
313	for !in.IsDelim('}') {
314		key := in.UnsafeString()
315		in.WantColon()
316		if in.IsNull() {
317			in.Skip()
318			in.WantComma()
319			continue
320		}
321		switch key {
322		case "cacheId":
323			out.CacheID = CacheID(in.String())
324		case "requestURL":
325			out.RequestURL = string(in.String())
326		case "requestHeaders":
327			if in.IsNull() {
328				in.Skip()
329				out.RequestHeaders = nil
330			} else {
331				in.Delim('[')
332				if out.RequestHeaders == nil {
333					if !in.IsDelim(']') {
334						out.RequestHeaders = make([]*Header, 0, 8)
335					} else {
336						out.RequestHeaders = []*Header{}
337					}
338				} else {
339					out.RequestHeaders = (out.RequestHeaders)[:0]
340				}
341				for !in.IsDelim(']') {
342					var v4 *Header
343					if in.IsNull() {
344						in.Skip()
345						v4 = nil
346					} else {
347						if v4 == nil {
348							v4 = new(Header)
349						}
350						(*v4).UnmarshalEasyJSON(in)
351					}
352					out.RequestHeaders = append(out.RequestHeaders, v4)
353					in.WantComma()
354				}
355				in.Delim(']')
356			}
357		default:
358			in.SkipRecursive()
359		}
360		in.WantComma()
361	}
362	in.Delim('}')
363	if isTopLevel {
364		in.Consumed()
365	}
366}
367func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage3(out *jwriter.Writer, in RequestCachedResponseParams) {
368	out.RawByte('{')
369	first := true
370	_ = first
371	{
372		const prefix string = ",\"cacheId\":"
373		out.RawString(prefix[1:])
374		out.String(string(in.CacheID))
375	}
376	{
377		const prefix string = ",\"requestURL\":"
378		out.RawString(prefix)
379		out.String(string(in.RequestURL))
380	}
381	{
382		const prefix string = ",\"requestHeaders\":"
383		out.RawString(prefix)
384		if in.RequestHeaders == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
385			out.RawString("null")
386		} else {
387			out.RawByte('[')
388			for v5, v6 := range in.RequestHeaders {
389				if v5 > 0 {
390					out.RawByte(',')
391				}
392				if v6 == nil {
393					out.RawString("null")
394				} else {
395					(*v6).MarshalEasyJSON(out)
396				}
397			}
398			out.RawByte(']')
399		}
400	}
401	out.RawByte('}')
402}
403
404// MarshalJSON supports json.Marshaler interface
405func (v RequestCachedResponseParams) MarshalJSON() ([]byte, error) {
406	w := jwriter.Writer{}
407	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage3(&w, v)
408	return w.Buffer.BuildBytes(), w.Error
409}
410
411// MarshalEasyJSON supports easyjson.Marshaler interface
412func (v RequestCachedResponseParams) MarshalEasyJSON(w *jwriter.Writer) {
413	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage3(w, v)
414}
415
416// UnmarshalJSON supports json.Unmarshaler interface
417func (v *RequestCachedResponseParams) UnmarshalJSON(data []byte) error {
418	r := jlexer.Lexer{Data: data}
419	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage3(&r, v)
420	return r.Error()
421}
422
423// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
424func (v *RequestCachedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
425	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage3(l, v)
426}
427func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage4(in *jlexer.Lexer, out *RequestCacheNamesReturns) {
428	isTopLevel := in.IsStart()
429	if in.IsNull() {
430		if isTopLevel {
431			in.Consumed()
432		}
433		in.Skip()
434		return
435	}
436	in.Delim('{')
437	for !in.IsDelim('}') {
438		key := in.UnsafeString()
439		in.WantColon()
440		if in.IsNull() {
441			in.Skip()
442			in.WantComma()
443			continue
444		}
445		switch key {
446		case "caches":
447			if in.IsNull() {
448				in.Skip()
449				out.Caches = nil
450			} else {
451				in.Delim('[')
452				if out.Caches == nil {
453					if !in.IsDelim(']') {
454						out.Caches = make([]*Cache, 0, 8)
455					} else {
456						out.Caches = []*Cache{}
457					}
458				} else {
459					out.Caches = (out.Caches)[:0]
460				}
461				for !in.IsDelim(']') {
462					var v7 *Cache
463					if in.IsNull() {
464						in.Skip()
465						v7 = nil
466					} else {
467						if v7 == nil {
468							v7 = new(Cache)
469						}
470						(*v7).UnmarshalEasyJSON(in)
471					}
472					out.Caches = append(out.Caches, v7)
473					in.WantComma()
474				}
475				in.Delim(']')
476			}
477		default:
478			in.SkipRecursive()
479		}
480		in.WantComma()
481	}
482	in.Delim('}')
483	if isTopLevel {
484		in.Consumed()
485	}
486}
487func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage4(out *jwriter.Writer, in RequestCacheNamesReturns) {
488	out.RawByte('{')
489	first := true
490	_ = first
491	if len(in.Caches) != 0 {
492		const prefix string = ",\"caches\":"
493		first = false
494		out.RawString(prefix[1:])
495		{
496			out.RawByte('[')
497			for v8, v9 := range in.Caches {
498				if v8 > 0 {
499					out.RawByte(',')
500				}
501				if v9 == nil {
502					out.RawString("null")
503				} else {
504					(*v9).MarshalEasyJSON(out)
505				}
506			}
507			out.RawByte(']')
508		}
509	}
510	out.RawByte('}')
511}
512
513// MarshalJSON supports json.Marshaler interface
514func (v RequestCacheNamesReturns) MarshalJSON() ([]byte, error) {
515	w := jwriter.Writer{}
516	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage4(&w, v)
517	return w.Buffer.BuildBytes(), w.Error
518}
519
520// MarshalEasyJSON supports easyjson.Marshaler interface
521func (v RequestCacheNamesReturns) MarshalEasyJSON(w *jwriter.Writer) {
522	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage4(w, v)
523}
524
525// UnmarshalJSON supports json.Unmarshaler interface
526func (v *RequestCacheNamesReturns) UnmarshalJSON(data []byte) error {
527	r := jlexer.Lexer{Data: data}
528	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage4(&r, v)
529	return r.Error()
530}
531
532// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
533func (v *RequestCacheNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
534	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage4(l, v)
535}
536func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage5(in *jlexer.Lexer, out *RequestCacheNamesParams) {
537	isTopLevel := in.IsStart()
538	if in.IsNull() {
539		if isTopLevel {
540			in.Consumed()
541		}
542		in.Skip()
543		return
544	}
545	in.Delim('{')
546	for !in.IsDelim('}') {
547		key := in.UnsafeString()
548		in.WantColon()
549		if in.IsNull() {
550			in.Skip()
551			in.WantComma()
552			continue
553		}
554		switch key {
555		case "securityOrigin":
556			out.SecurityOrigin = string(in.String())
557		default:
558			in.SkipRecursive()
559		}
560		in.WantComma()
561	}
562	in.Delim('}')
563	if isTopLevel {
564		in.Consumed()
565	}
566}
567func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage5(out *jwriter.Writer, in RequestCacheNamesParams) {
568	out.RawByte('{')
569	first := true
570	_ = first
571	{
572		const prefix string = ",\"securityOrigin\":"
573		out.RawString(prefix[1:])
574		out.String(string(in.SecurityOrigin))
575	}
576	out.RawByte('}')
577}
578
579// MarshalJSON supports json.Marshaler interface
580func (v RequestCacheNamesParams) MarshalJSON() ([]byte, error) {
581	w := jwriter.Writer{}
582	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage5(&w, v)
583	return w.Buffer.BuildBytes(), w.Error
584}
585
586// MarshalEasyJSON supports easyjson.Marshaler interface
587func (v RequestCacheNamesParams) MarshalEasyJSON(w *jwriter.Writer) {
588	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage5(w, v)
589}
590
591// UnmarshalJSON supports json.Unmarshaler interface
592func (v *RequestCacheNamesParams) UnmarshalJSON(data []byte) error {
593	r := jlexer.Lexer{Data: data}
594	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage5(&r, v)
595	return r.Error()
596}
597
598// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
599func (v *RequestCacheNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
600	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage5(l, v)
601}
602func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage6(in *jlexer.Lexer, out *Header) {
603	isTopLevel := in.IsStart()
604	if in.IsNull() {
605		if isTopLevel {
606			in.Consumed()
607		}
608		in.Skip()
609		return
610	}
611	in.Delim('{')
612	for !in.IsDelim('}') {
613		key := in.UnsafeString()
614		in.WantColon()
615		if in.IsNull() {
616			in.Skip()
617			in.WantComma()
618			continue
619		}
620		switch key {
621		case "name":
622			out.Name = string(in.String())
623		case "value":
624			out.Value = string(in.String())
625		default:
626			in.SkipRecursive()
627		}
628		in.WantComma()
629	}
630	in.Delim('}')
631	if isTopLevel {
632		in.Consumed()
633	}
634}
635func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage6(out *jwriter.Writer, in Header) {
636	out.RawByte('{')
637	first := true
638	_ = first
639	{
640		const prefix string = ",\"name\":"
641		out.RawString(prefix[1:])
642		out.String(string(in.Name))
643	}
644	{
645		const prefix string = ",\"value\":"
646		out.RawString(prefix)
647		out.String(string(in.Value))
648	}
649	out.RawByte('}')
650}
651
652// MarshalJSON supports json.Marshaler interface
653func (v Header) MarshalJSON() ([]byte, error) {
654	w := jwriter.Writer{}
655	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage6(&w, v)
656	return w.Buffer.BuildBytes(), w.Error
657}
658
659// MarshalEasyJSON supports easyjson.Marshaler interface
660func (v Header) MarshalEasyJSON(w *jwriter.Writer) {
661	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage6(w, v)
662}
663
664// UnmarshalJSON supports json.Unmarshaler interface
665func (v *Header) UnmarshalJSON(data []byte) error {
666	r := jlexer.Lexer{Data: data}
667	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage6(&r, v)
668	return r.Error()
669}
670
671// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
672func (v *Header) UnmarshalEasyJSON(l *jlexer.Lexer) {
673	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage6(l, v)
674}
675func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage7(in *jlexer.Lexer, out *DeleteEntryParams) {
676	isTopLevel := in.IsStart()
677	if in.IsNull() {
678		if isTopLevel {
679			in.Consumed()
680		}
681		in.Skip()
682		return
683	}
684	in.Delim('{')
685	for !in.IsDelim('}') {
686		key := in.UnsafeString()
687		in.WantColon()
688		if in.IsNull() {
689			in.Skip()
690			in.WantComma()
691			continue
692		}
693		switch key {
694		case "cacheId":
695			out.CacheID = CacheID(in.String())
696		case "request":
697			out.Request = string(in.String())
698		default:
699			in.SkipRecursive()
700		}
701		in.WantComma()
702	}
703	in.Delim('}')
704	if isTopLevel {
705		in.Consumed()
706	}
707}
708func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage7(out *jwriter.Writer, in DeleteEntryParams) {
709	out.RawByte('{')
710	first := true
711	_ = first
712	{
713		const prefix string = ",\"cacheId\":"
714		out.RawString(prefix[1:])
715		out.String(string(in.CacheID))
716	}
717	{
718		const prefix string = ",\"request\":"
719		out.RawString(prefix)
720		out.String(string(in.Request))
721	}
722	out.RawByte('}')
723}
724
725// MarshalJSON supports json.Marshaler interface
726func (v DeleteEntryParams) MarshalJSON() ([]byte, error) {
727	w := jwriter.Writer{}
728	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage7(&w, v)
729	return w.Buffer.BuildBytes(), w.Error
730}
731
732// MarshalEasyJSON supports easyjson.Marshaler interface
733func (v DeleteEntryParams) MarshalEasyJSON(w *jwriter.Writer) {
734	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage7(w, v)
735}
736
737// UnmarshalJSON supports json.Unmarshaler interface
738func (v *DeleteEntryParams) UnmarshalJSON(data []byte) error {
739	r := jlexer.Lexer{Data: data}
740	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage7(&r, v)
741	return r.Error()
742}
743
744// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
745func (v *DeleteEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
746	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage7(l, v)
747}
748func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage8(in *jlexer.Lexer, out *DeleteCacheParams) {
749	isTopLevel := in.IsStart()
750	if in.IsNull() {
751		if isTopLevel {
752			in.Consumed()
753		}
754		in.Skip()
755		return
756	}
757	in.Delim('{')
758	for !in.IsDelim('}') {
759		key := in.UnsafeString()
760		in.WantColon()
761		if in.IsNull() {
762			in.Skip()
763			in.WantComma()
764			continue
765		}
766		switch key {
767		case "cacheId":
768			out.CacheID = CacheID(in.String())
769		default:
770			in.SkipRecursive()
771		}
772		in.WantComma()
773	}
774	in.Delim('}')
775	if isTopLevel {
776		in.Consumed()
777	}
778}
779func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage8(out *jwriter.Writer, in DeleteCacheParams) {
780	out.RawByte('{')
781	first := true
782	_ = first
783	{
784		const prefix string = ",\"cacheId\":"
785		out.RawString(prefix[1:])
786		out.String(string(in.CacheID))
787	}
788	out.RawByte('}')
789}
790
791// MarshalJSON supports json.Marshaler interface
792func (v DeleteCacheParams) MarshalJSON() ([]byte, error) {
793	w := jwriter.Writer{}
794	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage8(&w, v)
795	return w.Buffer.BuildBytes(), w.Error
796}
797
798// MarshalEasyJSON supports easyjson.Marshaler interface
799func (v DeleteCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
800	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage8(w, v)
801}
802
803// UnmarshalJSON supports json.Unmarshaler interface
804func (v *DeleteCacheParams) UnmarshalJSON(data []byte) error {
805	r := jlexer.Lexer{Data: data}
806	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage8(&r, v)
807	return r.Error()
808}
809
810// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
811func (v *DeleteCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
812	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage8(l, v)
813}
814func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage9(in *jlexer.Lexer, out *DataEntry) {
815	isTopLevel := in.IsStart()
816	if in.IsNull() {
817		if isTopLevel {
818			in.Consumed()
819		}
820		in.Skip()
821		return
822	}
823	in.Delim('{')
824	for !in.IsDelim('}') {
825		key := in.UnsafeString()
826		in.WantColon()
827		if in.IsNull() {
828			in.Skip()
829			in.WantComma()
830			continue
831		}
832		switch key {
833		case "requestURL":
834			out.RequestURL = string(in.String())
835		case "requestMethod":
836			out.RequestMethod = string(in.String())
837		case "requestHeaders":
838			if in.IsNull() {
839				in.Skip()
840				out.RequestHeaders = nil
841			} else {
842				in.Delim('[')
843				if out.RequestHeaders == nil {
844					if !in.IsDelim(']') {
845						out.RequestHeaders = make([]*Header, 0, 8)
846					} else {
847						out.RequestHeaders = []*Header{}
848					}
849				} else {
850					out.RequestHeaders = (out.RequestHeaders)[:0]
851				}
852				for !in.IsDelim(']') {
853					var v10 *Header
854					if in.IsNull() {
855						in.Skip()
856						v10 = nil
857					} else {
858						if v10 == nil {
859							v10 = new(Header)
860						}
861						(*v10).UnmarshalEasyJSON(in)
862					}
863					out.RequestHeaders = append(out.RequestHeaders, v10)
864					in.WantComma()
865				}
866				in.Delim(']')
867			}
868		case "responseTime":
869			out.ResponseTime = float64(in.Float64())
870		case "responseStatus":
871			out.ResponseStatus = int64(in.Int64())
872		case "responseStatusText":
873			out.ResponseStatusText = string(in.String())
874		case "responseType":
875			(out.ResponseType).UnmarshalEasyJSON(in)
876		case "responseHeaders":
877			if in.IsNull() {
878				in.Skip()
879				out.ResponseHeaders = nil
880			} else {
881				in.Delim('[')
882				if out.ResponseHeaders == nil {
883					if !in.IsDelim(']') {
884						out.ResponseHeaders = make([]*Header, 0, 8)
885					} else {
886						out.ResponseHeaders = []*Header{}
887					}
888				} else {
889					out.ResponseHeaders = (out.ResponseHeaders)[:0]
890				}
891				for !in.IsDelim(']') {
892					var v11 *Header
893					if in.IsNull() {
894						in.Skip()
895						v11 = nil
896					} else {
897						if v11 == nil {
898							v11 = new(Header)
899						}
900						(*v11).UnmarshalEasyJSON(in)
901					}
902					out.ResponseHeaders = append(out.ResponseHeaders, v11)
903					in.WantComma()
904				}
905				in.Delim(']')
906			}
907		default:
908			in.SkipRecursive()
909		}
910		in.WantComma()
911	}
912	in.Delim('}')
913	if isTopLevel {
914		in.Consumed()
915	}
916}
917func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage9(out *jwriter.Writer, in DataEntry) {
918	out.RawByte('{')
919	first := true
920	_ = first
921	{
922		const prefix string = ",\"requestURL\":"
923		out.RawString(prefix[1:])
924		out.String(string(in.RequestURL))
925	}
926	{
927		const prefix string = ",\"requestMethod\":"
928		out.RawString(prefix)
929		out.String(string(in.RequestMethod))
930	}
931	{
932		const prefix string = ",\"requestHeaders\":"
933		out.RawString(prefix)
934		if in.RequestHeaders == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
935			out.RawString("null")
936		} else {
937			out.RawByte('[')
938			for v12, v13 := range in.RequestHeaders {
939				if v12 > 0 {
940					out.RawByte(',')
941				}
942				if v13 == nil {
943					out.RawString("null")
944				} else {
945					(*v13).MarshalEasyJSON(out)
946				}
947			}
948			out.RawByte(']')
949		}
950	}
951	{
952		const prefix string = ",\"responseTime\":"
953		out.RawString(prefix)
954		out.Float64(float64(in.ResponseTime))
955	}
956	{
957		const prefix string = ",\"responseStatus\":"
958		out.RawString(prefix)
959		out.Int64(int64(in.ResponseStatus))
960	}
961	{
962		const prefix string = ",\"responseStatusText\":"
963		out.RawString(prefix)
964		out.String(string(in.ResponseStatusText))
965	}
966	{
967		const prefix string = ",\"responseType\":"
968		out.RawString(prefix)
969		(in.ResponseType).MarshalEasyJSON(out)
970	}
971	{
972		const prefix string = ",\"responseHeaders\":"
973		out.RawString(prefix)
974		if in.ResponseHeaders == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
975			out.RawString("null")
976		} else {
977			out.RawByte('[')
978			for v14, v15 := range in.ResponseHeaders {
979				if v14 > 0 {
980					out.RawByte(',')
981				}
982				if v15 == nil {
983					out.RawString("null")
984				} else {
985					(*v15).MarshalEasyJSON(out)
986				}
987			}
988			out.RawByte(']')
989		}
990	}
991	out.RawByte('}')
992}
993
994// MarshalJSON supports json.Marshaler interface
995func (v DataEntry) MarshalJSON() ([]byte, error) {
996	w := jwriter.Writer{}
997	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage9(&w, v)
998	return w.Buffer.BuildBytes(), w.Error
999}
1000
1001// MarshalEasyJSON supports easyjson.Marshaler interface
1002func (v DataEntry) MarshalEasyJSON(w *jwriter.Writer) {
1003	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage9(w, v)
1004}
1005
1006// UnmarshalJSON supports json.Unmarshaler interface
1007func (v *DataEntry) UnmarshalJSON(data []byte) error {
1008	r := jlexer.Lexer{Data: data}
1009	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage9(&r, v)
1010	return r.Error()
1011}
1012
1013// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
1014func (v *DataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
1015	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage9(l, v)
1016}
1017func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage10(in *jlexer.Lexer, out *CachedResponse) {
1018	isTopLevel := in.IsStart()
1019	if in.IsNull() {
1020		if isTopLevel {
1021			in.Consumed()
1022		}
1023		in.Skip()
1024		return
1025	}
1026	in.Delim('{')
1027	for !in.IsDelim('}') {
1028		key := in.UnsafeString()
1029		in.WantColon()
1030		if in.IsNull() {
1031			in.Skip()
1032			in.WantComma()
1033			continue
1034		}
1035		switch key {
1036		case "body":
1037			out.Body = string(in.String())
1038		default:
1039			in.SkipRecursive()
1040		}
1041		in.WantComma()
1042	}
1043	in.Delim('}')
1044	if isTopLevel {
1045		in.Consumed()
1046	}
1047}
1048func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage10(out *jwriter.Writer, in CachedResponse) {
1049	out.RawByte('{')
1050	first := true
1051	_ = first
1052	{
1053		const prefix string = ",\"body\":"
1054		out.RawString(prefix[1:])
1055		out.String(string(in.Body))
1056	}
1057	out.RawByte('}')
1058}
1059
1060// MarshalJSON supports json.Marshaler interface
1061func (v CachedResponse) MarshalJSON() ([]byte, error) {
1062	w := jwriter.Writer{}
1063	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage10(&w, v)
1064	return w.Buffer.BuildBytes(), w.Error
1065}
1066
1067// MarshalEasyJSON supports easyjson.Marshaler interface
1068func (v CachedResponse) MarshalEasyJSON(w *jwriter.Writer) {
1069	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage10(w, v)
1070}
1071
1072// UnmarshalJSON supports json.Unmarshaler interface
1073func (v *CachedResponse) UnmarshalJSON(data []byte) error {
1074	r := jlexer.Lexer{Data: data}
1075	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage10(&r, v)
1076	return r.Error()
1077}
1078
1079// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
1080func (v *CachedResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
1081	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage10(l, v)
1082}
1083func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage11(in *jlexer.Lexer, out *Cache) {
1084	isTopLevel := in.IsStart()
1085	if in.IsNull() {
1086		if isTopLevel {
1087			in.Consumed()
1088		}
1089		in.Skip()
1090		return
1091	}
1092	in.Delim('{')
1093	for !in.IsDelim('}') {
1094		key := in.UnsafeString()
1095		in.WantColon()
1096		if in.IsNull() {
1097			in.Skip()
1098			in.WantComma()
1099			continue
1100		}
1101		switch key {
1102		case "cacheId":
1103			out.CacheID = CacheID(in.String())
1104		case "securityOrigin":
1105			out.SecurityOrigin = string(in.String())
1106		case "cacheName":
1107			out.CacheName = string(in.String())
1108		default:
1109			in.SkipRecursive()
1110		}
1111		in.WantComma()
1112	}
1113	in.Delim('}')
1114	if isTopLevel {
1115		in.Consumed()
1116	}
1117}
1118func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage11(out *jwriter.Writer, in Cache) {
1119	out.RawByte('{')
1120	first := true
1121	_ = first
1122	{
1123		const prefix string = ",\"cacheId\":"
1124		out.RawString(prefix[1:])
1125		out.String(string(in.CacheID))
1126	}
1127	{
1128		const prefix string = ",\"securityOrigin\":"
1129		out.RawString(prefix)
1130		out.String(string(in.SecurityOrigin))
1131	}
1132	{
1133		const prefix string = ",\"cacheName\":"
1134		out.RawString(prefix)
1135		out.String(string(in.CacheName))
1136	}
1137	out.RawByte('}')
1138}
1139
1140// MarshalJSON supports json.Marshaler interface
1141func (v Cache) MarshalJSON() ([]byte, error) {
1142	w := jwriter.Writer{}
1143	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage11(&w, v)
1144	return w.Buffer.BuildBytes(), w.Error
1145}
1146
1147// MarshalEasyJSON supports easyjson.Marshaler interface
1148func (v Cache) MarshalEasyJSON(w *jwriter.Writer) {
1149	easyjsonC5a4559bEncodeGithubComChromedpCdprotoCachestorage11(w, v)
1150}
1151
1152// UnmarshalJSON supports json.Unmarshaler interface
1153func (v *Cache) UnmarshalJSON(data []byte) error {
1154	r := jlexer.Lexer{Data: data}
1155	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage11(&r, v)
1156	return r.Error()
1157}
1158
1159// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
1160func (v *Cache) UnmarshalEasyJSON(l *jlexer.Lexer) {
1161	easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage11(l, v)
1162}
1163