chromedp/cdp/storage/easyjson.go

998 lines
24 KiB
Go
Raw Normal View History

// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
2017-01-24 15:09:23 +00:00
package storage
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)
2017-06-23 02:00:24 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage(in *jlexer.Lexer, out *UsageForType) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "storageType":
(out.StorageType).UnmarshalEasyJSON(in)
case "usage":
out.Usage = float64(in.Float64())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage(out *jwriter.Writer, in UsageForType) {
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"storageType\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.StorageType).MarshalEasyJSON(out)
}
{
const prefix string = ",\"usage\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Usage))
}
2017-06-23 02:00:24 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v UsageForType) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v UsageForType) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *UsageForType) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *UsageForType) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage(l, v)
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(in *jlexer.Lexer, out *UntrackIndexedDBForOriginParams) {
2017-08-20 23:56:21 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(out *jwriter.Writer, in UntrackIndexedDBForOriginParams) {
2017-08-20 23:56:21 +00:00
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
2017-08-20 23:56:21 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
2017-09-30 01:27:51 +00:00
func (v UntrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error) {
2017-08-20 23:56:21 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
2017-09-30 01:27:51 +00:00
func (v UntrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-08-20 23:56:21 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
2017-09-30 01:27:51 +00:00
func (v *UntrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error {
2017-08-20 23:56:21 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
2017-09-30 01:27:51 +00:00
func (v *UntrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-08-20 23:56:21 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(l, v)
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(in *jlexer.Lexer, out *UntrackCacheStorageForOriginParams) {
2017-08-20 23:56:21 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(out *jwriter.Writer, in UntrackCacheStorageForOriginParams) {
2017-08-20 23:56:21 +00:00
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
2017-08-20 23:56:21 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
2017-09-30 01:27:51 +00:00
func (v UntrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error) {
2017-08-20 23:56:21 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
2017-09-30 01:27:51 +00:00
func (v UntrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-08-20 23:56:21 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
2017-09-30 01:27:51 +00:00
func (v *UntrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error {
2017-08-20 23:56:21 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
2017-09-30 01:27:51 +00:00
func (v *UntrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-08-20 23:56:21 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(l, v)
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(in *jlexer.Lexer, out *TrackIndexedDBForOriginParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(out *jwriter.Writer, in TrackIndexedDBForOriginParams) {
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
2017-09-30 01:27:51 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v TrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v TrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *TrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *TrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage4(in *jlexer.Lexer, out *TrackCacheStorageForOriginParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage4(out *jwriter.Writer, in TrackCacheStorageForOriginParams) {
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
2017-09-30 01:27:51 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v TrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage4(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v TrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage4(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *TrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage4(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *TrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage4(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage5(in *jlexer.Lexer, out *GetUsageAndQuotaReturns) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "usage":
out.Usage = float64(in.Float64())
case "quota":
out.Quota = float64(in.Float64())
2017-06-23 02:00:24 +00:00
case "usageBreakdown":
if in.IsNull() {
in.Skip()
out.UsageBreakdown = nil
} else {
in.Delim('[')
if out.UsageBreakdown == nil {
if !in.IsDelim(']') {
out.UsageBreakdown = make([]*UsageForType, 0, 8)
} else {
out.UsageBreakdown = []*UsageForType{}
}
} else {
out.UsageBreakdown = (out.UsageBreakdown)[:0]
}
for !in.IsDelim(']') {
var v1 *UsageForType
if in.IsNull() {
in.Skip()
v1 = nil
} else {
if v1 == nil {
v1 = new(UsageForType)
}
(*v1).UnmarshalEasyJSON(in)
}
out.UsageBreakdown = append(out.UsageBreakdown, v1)
in.WantComma()
}
in.Delim(']')
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage5(out *jwriter.Writer, in GetUsageAndQuotaReturns) {
out.RawByte('{')
first := true
_ = first
if in.Usage != 0 {
2017-11-22 05:01:27 +00:00
const prefix string = ",\"usage\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Usage))
}
if in.Quota != 0 {
2017-11-22 05:01:27 +00:00
const prefix string = ",\"quota\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Quota))
}
2017-06-23 02:00:24 +00:00
if len(in.UsageBreakdown) != 0 {
2017-11-22 05:01:27 +00:00
const prefix string = ",\"usageBreakdown\":"
if first {
first = false
out.RawString(prefix[1:])
2017-06-23 02:00:24 +00:00
} else {
2017-11-22 05:01:27 +00:00
out.RawString(prefix)
}
{
2017-06-23 02:00:24 +00:00
out.RawByte('[')
for v2, v3 := range in.UsageBreakdown {
if v2 > 0 {
out.RawByte(',')
}
if v3 == nil {
out.RawString("null")
} else {
(*v3).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetUsageAndQuotaReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage5(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetUsageAndQuotaReturns) MarshalEasyJSON(w *jwriter.Writer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage5(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetUsageAndQuotaReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage5(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetUsageAndQuotaReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage5(l, v)
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage6(in *jlexer.Lexer, out *GetUsageAndQuotaParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage6(out *jwriter.Writer, in GetUsageAndQuotaParams) {
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage6(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage6(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage6(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage6(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage7(in *jlexer.Lexer, out *EventIndexedDBListUpdated) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage7(out *jwriter.Writer, in EventIndexedDBListUpdated) {
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
2017-09-30 01:27:51 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventIndexedDBListUpdated) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage7(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventIndexedDBListUpdated) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage7(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventIndexedDBListUpdated) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage7(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventIndexedDBListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage7(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage8(in *jlexer.Lexer, out *EventIndexedDBContentUpdated) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
case "databaseName":
out.DatabaseName = string(in.String())
case "objectStoreName":
out.ObjectStoreName = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
2017-08-20 23:56:21 +00:00
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage8(out *jwriter.Writer, in EventIndexedDBContentUpdated) {
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
}
{
const prefix string = ",\"databaseName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName))
}
{
const prefix string = ",\"objectStoreName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectStoreName))
}
2017-09-30 01:27:51 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventIndexedDBContentUpdated) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage8(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventIndexedDBContentUpdated) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage8(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventIndexedDBContentUpdated) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage8(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventIndexedDBContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage8(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage9(in *jlexer.Lexer, out *EventCacheStorageListUpdated) {
2017-08-20 23:56:21 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage9(out *jwriter.Writer, in EventCacheStorageListUpdated) {
2017-08-20 23:56:21 +00:00
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
2017-08-20 23:56:21 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventCacheStorageListUpdated) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage9(&w, v)
2017-08-20 23:56:21 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventCacheStorageListUpdated) MarshalEasyJSON(w *jwriter.Writer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage9(w, v)
2017-08-20 23:56:21 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventCacheStorageListUpdated) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage9(&r, v)
2017-08-20 23:56:21 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventCacheStorageListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage9(l, v)
2017-08-20 23:56:21 +00:00
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage10(in *jlexer.Lexer, out *EventCacheStorageContentUpdated) {
2017-08-20 23:56:21 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
case "cacheName":
out.CacheName = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage10(out *jwriter.Writer, in EventCacheStorageContentUpdated) {
2017-08-20 23:56:21 +00:00
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
}
{
const prefix string = ",\"cacheName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CacheName))
}
2017-08-20 23:56:21 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventCacheStorageContentUpdated) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage10(&w, v)
2017-08-20 23:56:21 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventCacheStorageContentUpdated) MarshalEasyJSON(w *jwriter.Writer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage10(w, v)
2017-08-20 23:56:21 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventCacheStorageContentUpdated) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage10(&r, v)
2017-08-20 23:56:21 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventCacheStorageContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage10(l, v)
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage11(in *jlexer.Lexer, out *ClearDataForOriginParams) {
2017-01-24 15:09:23 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "origin":
out.Origin = string(in.String())
case "storageTypes":
out.StorageTypes = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-09-30 01:27:51 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage11(out *jwriter.Writer, in ClearDataForOriginParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
2017-11-22 05:01:27 +00:00
{
const prefix string = ",\"origin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin))
}
{
const prefix string = ",\"storageTypes\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.StorageTypes))
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage11(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage11(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage11(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-09-30 01:27:51 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage11(l, v)
2017-01-24 15:09:23 +00:00
}