From f7ba4ae79bcdd7a05f7ba967bff8426d1c2a8f09 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sat, 16 Sep 2017 06:56:18 +0700 Subject: [PATCH] Fixing last commit --- cdp/audits/easyjson.go | 211 +- cdp/debugger/easyjson.go | 4469 ++++++++++++++++++++++-- cdp/debugger/types.go | 1 + cdp/log/easyjson.go | 712 +++- cdp/network/easyjson.go | 6990 ++++++++++++++++++++++++++++++++++++-- cdp/overlay/easyjson.go | 1956 ++++++++++- cdp/page/easyjson.go | 5494 ++++++++++++++++++++++++++++-- cdp/profiler/easyjson.go | 2612 +++++++++++++- 8 files changed, 21275 insertions(+), 1170 deletions(-) diff --git a/cdp/audits/easyjson.go b/cdp/audits/easyjson.go index 6c3be97..8ab91c0 100644 --- a/cdp/audits/easyjson.go +++ b/cdp/audits/easyjson.go @@ -1,23 +1,204 @@ -// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package -// compilable during generation. +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. -package audits +package audits import ( - "github.com/mailru/easyjson/jwriter" - "github.com/mailru/easyjson/jlexer" + json "encoding/json" + network "github.com/knq/chromedp/cdp/network" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" ) -func ( GetEncodedResponseParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetEncodedResponseParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetEncodedResponseParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetEncodedResponseParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) -type EasyJSON_exporter_GetEncodedResponseParams *GetEncodedResponseParams +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(in *jlexer.Lexer, out *GetEncodedResponseReturns) { + 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 "body": + out.Body = string(in.String()) + case "originalSize": + out.OriginalSize = int64(in.Int64()) + case "encodedSize": + out.EncodedSize = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(out *jwriter.Writer, in GetEncodedResponseReturns) { + out.RawByte('{') + first := true + _ = first + if in.Body != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"body\":") + out.String(string(in.Body)) + } + if in.OriginalSize != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"originalSize\":") + out.Int64(int64(in.OriginalSize)) + } + if in.EncodedSize != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"encodedSize\":") + out.Int64(int64(in.EncodedSize)) + } + out.RawByte('}') +} -func ( GetEncodedResponseReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetEncodedResponseReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetEncodedResponseReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetEncodedResponseReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetEncodedResponseReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetEncodedResponseReturns *GetEncodedResponseReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetEncodedResponseReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetEncodedResponseReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetEncodedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(in *jlexer.Lexer, out *GetEncodedResponseParams) { + 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 "requestId": + out.RequestID = network.RequestID(in.String()) + case "encoding": + (out.Encoding).UnmarshalEasyJSON(in) + case "quality": + out.Quality = float64(in.Float64()) + case "sizeOnly": + out.SizeOnly = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(out *jwriter.Writer, in GetEncodedResponseParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"encoding\":") + (in.Encoding).MarshalEasyJSON(out) + if in.Quality != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"quality\":") + out.Float64(float64(in.Quality)) + } + if in.SizeOnly { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sizeOnly\":") + out.Bool(bool(in.SizeOnly)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(l, v) +} diff --git a/cdp/debugger/easyjson.go b/cdp/debugger/easyjson.go index 6e78825..3291159 100644 --- a/cdp/debugger/easyjson.go +++ b/cdp/debugger/easyjson.go @@ -1,317 +1,4336 @@ -// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package -// compilable during generation. +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. -package debugger +package debugger import ( - "github.com/mailru/easyjson/jwriter" - "github.com/mailru/easyjson/jlexer" + json "encoding/json" + runtime "github.com/knq/chromedp/cdp/runtime" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" ) -func ( BreakLocation ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* BreakLocation ) UnmarshalJSON([]byte) error { return nil } -func ( BreakLocation ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* BreakLocation ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) -type EasyJSON_exporter_BreakLocation *BreakLocation +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(in *jlexer.Lexer, out *StepOverParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(out *jwriter.Writer, in StepOverParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( CallFrame ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CallFrame ) UnmarshalJSON([]byte) error { return nil } -func ( CallFrame ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CallFrame ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StepOverParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_CallFrame *CallFrame +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StepOverParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(w, v) +} -func ( ContinueToLocationParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ContinueToLocationParams ) UnmarshalJSON([]byte) error { return nil } -func ( ContinueToLocationParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ContinueToLocationParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StepOverParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(&r, v) + return r.Error() +} -type EasyJSON_exporter_ContinueToLocationParams *ContinueToLocationParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StepOverParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(in *jlexer.Lexer, out *StepOutParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(out *jwriter.Writer, in StepOutParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( DisableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* DisableParams ) UnmarshalJSON([]byte) error { return nil } -func ( DisableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* DisableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StepOutParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_DisableParams *DisableParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StepOutParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(w, v) +} -func ( EnableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EnableParams ) UnmarshalJSON([]byte) error { return nil } -func ( EnableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EnableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StepOutParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(&r, v) + return r.Error() +} -type EasyJSON_exporter_EnableParams *EnableParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StepOutParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(in *jlexer.Lexer, out *StepIntoParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(out *jwriter.Writer, in StepIntoParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( EvaluateOnCallFrameParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EvaluateOnCallFrameParams ) UnmarshalJSON([]byte) error { return nil } -func ( EvaluateOnCallFrameParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EvaluateOnCallFrameParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StepIntoParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EvaluateOnCallFrameParams *EvaluateOnCallFrameParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StepIntoParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(w, v) +} -func ( EvaluateOnCallFrameReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EvaluateOnCallFrameReturns ) UnmarshalJSON([]byte) error { return nil } -func ( EvaluateOnCallFrameReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EvaluateOnCallFrameReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StepIntoParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(&r, v) + return r.Error() +} -type EasyJSON_exporter_EvaluateOnCallFrameReturns *EvaluateOnCallFrameReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StepIntoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(in *jlexer.Lexer, out *SetVariableValueParams) { + 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 "scopeNumber": + out.ScopeNumber = int64(in.Int64()) + case "variableName": + out.VariableName = string(in.String()) + case "newValue": + if in.IsNull() { + in.Skip() + out.NewValue = nil + } else { + if out.NewValue == nil { + out.NewValue = new(runtime.CallArgument) + } + (*out.NewValue).UnmarshalEasyJSON(in) + } + case "callFrameId": + out.CallFrameID = CallFrameID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(out *jwriter.Writer, in SetVariableValueParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scopeNumber\":") + out.Int64(int64(in.ScopeNumber)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"variableName\":") + out.String(string(in.VariableName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"newValue\":") + if in.NewValue == nil { + out.RawString("null") + } else { + (*in.NewValue).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrameId\":") + out.String(string(in.CallFrameID)) + out.RawByte('}') +} -func ( EventBreakpointResolved ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventBreakpointResolved ) UnmarshalJSON([]byte) error { return nil } -func ( EventBreakpointResolved ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventBreakpointResolved ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetVariableValueParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventBreakpointResolved *EventBreakpointResolved +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetVariableValueParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(w, v) +} -func ( EventPaused ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventPaused ) UnmarshalJSON([]byte) error { return nil } -func ( EventPaused ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventPaused ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetVariableValueParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventPaused *EventPaused +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetVariableValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(in *jlexer.Lexer, out *SetSkipAllPausesParams) { + 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 "skip": + out.Skip = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(out *jwriter.Writer, in SetSkipAllPausesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"skip\":") + out.Bool(bool(in.Skip)) + out.RawByte('}') +} -func ( EventResumed ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventResumed ) UnmarshalJSON([]byte) error { return nil } -func ( EventResumed ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventResumed ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetSkipAllPausesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventResumed *EventResumed +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetSkipAllPausesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(w, v) +} -func ( EventScriptFailedToParse ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventScriptFailedToParse ) UnmarshalJSON([]byte) error { return nil } -func ( EventScriptFailedToParse ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventScriptFailedToParse ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetSkipAllPausesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventScriptFailedToParse *EventScriptFailedToParse +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetSkipAllPausesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(in *jlexer.Lexer, out *SetScriptSourceReturns) { + 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 "callFrames": + if in.IsNull() { + in.Skip() + out.CallFrames = nil + } else { + in.Delim('[') + if out.CallFrames == nil { + if !in.IsDelim(']') { + out.CallFrames = make([]*CallFrame, 0, 8) + } else { + out.CallFrames = []*CallFrame{} + } + } else { + out.CallFrames = (out.CallFrames)[:0] + } + for !in.IsDelim(']') { + var v1 *CallFrame + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(CallFrame) + } + (*v1).UnmarshalEasyJSON(in) + } + out.CallFrames = append(out.CallFrames, v1) + in.WantComma() + } + in.Delim(']') + } + case "stackChanged": + out.StackChanged = bool(in.Bool()) + case "asyncStackTrace": + if in.IsNull() { + in.Skip() + out.AsyncStackTrace = nil + } else { + if out.AsyncStackTrace == nil { + out.AsyncStackTrace = new(runtime.StackTrace) + } + (*out.AsyncStackTrace).UnmarshalEasyJSON(in) + } + case "exceptionDetails": + if in.IsNull() { + in.Skip() + out.ExceptionDetails = nil + } else { + if out.ExceptionDetails == nil { + out.ExceptionDetails = new(runtime.ExceptionDetails) + } + (*out.ExceptionDetails).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(out *jwriter.Writer, in SetScriptSourceReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.CallFrames) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrames\":") + if in.CallFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.CallFrames { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.StackChanged { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"stackChanged\":") + out.Bool(bool(in.StackChanged)) + } + if in.AsyncStackTrace != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"asyncStackTrace\":") + if in.AsyncStackTrace == nil { + out.RawString("null") + } else { + (*in.AsyncStackTrace).MarshalEasyJSON(out) + } + } + if in.ExceptionDetails != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"exceptionDetails\":") + if in.ExceptionDetails == nil { + out.RawString("null") + } else { + (*in.ExceptionDetails).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( EventScriptParsed ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventScriptParsed ) UnmarshalJSON([]byte) error { return nil } -func ( EventScriptParsed ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventScriptParsed ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetScriptSourceReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventScriptParsed *EventScriptParsed +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(w, v) +} -func ( GetPossibleBreakpointsParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetPossibleBreakpointsParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetPossibleBreakpointsParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetPossibleBreakpointsParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetScriptSourceReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetPossibleBreakpointsParams *GetPossibleBreakpointsParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(in *jlexer.Lexer, out *SetScriptSourceParams) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "scriptSource": + out.ScriptSource = string(in.String()) + case "dryRun": + out.DryRun = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(out *jwriter.Writer, in SetScriptSourceParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptSource\":") + out.String(string(in.ScriptSource)) + if in.DryRun { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"dryRun\":") + out.Bool(bool(in.DryRun)) + } + out.RawByte('}') +} -func ( GetPossibleBreakpointsReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetPossibleBreakpointsReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetPossibleBreakpointsReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetPossibleBreakpointsReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetScriptSourceParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetPossibleBreakpointsReturns *GetPossibleBreakpointsReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(w, v) +} -func ( GetScriptSourceParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetScriptSourceParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetScriptSourceParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetScriptSourceParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetScriptSourceParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetScriptSourceParams *GetScriptSourceParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(in *jlexer.Lexer, out *SetPauseOnExceptionsParams) { + 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 "state": + (out.State).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(out *jwriter.Writer, in SetPauseOnExceptionsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"state\":") + (in.State).MarshalEasyJSON(out) + out.RawByte('}') +} -func ( GetScriptSourceReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetScriptSourceReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetScriptSourceReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetScriptSourceReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetPauseOnExceptionsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetScriptSourceReturns *GetScriptSourceReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetPauseOnExceptionsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(w, v) +} -func ( Location ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Location ) UnmarshalJSON([]byte) error { return nil } -func ( Location ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Location ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetPauseOnExceptionsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(&r, v) + return r.Error() +} -type EasyJSON_exporter_Location *Location +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetPauseOnExceptionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(in *jlexer.Lexer, out *SetBreakpointsActiveParams) { + 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 "active": + out.Active = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(out *jwriter.Writer, in SetBreakpointsActiveParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"active\":") + out.Bool(bool(in.Active)) + out.RawByte('}') +} -func ( PauseParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* PauseParams ) UnmarshalJSON([]byte) error { return nil } -func ( PauseParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* PauseParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointsActiveParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_PauseParams *PauseParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointsActiveParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(w, v) +} -func ( RemoveBreakpointParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* RemoveBreakpointParams ) UnmarshalJSON([]byte) error { return nil } -func ( RemoveBreakpointParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* RemoveBreakpointParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointsActiveParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(&r, v) + return r.Error() +} -type EasyJSON_exporter_RemoveBreakpointParams *RemoveBreakpointParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBreakpointsActiveParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(in *jlexer.Lexer, out *SetBreakpointReturns) { + 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 "breakpointId": + out.BreakpointID = BreakpointID(in.String()) + case "actualLocation": + if in.IsNull() { + in.Skip() + out.ActualLocation = nil + } else { + if out.ActualLocation == nil { + out.ActualLocation = new(Location) + } + (*out.ActualLocation).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(out *jwriter.Writer, in SetBreakpointReturns) { + out.RawByte('{') + first := true + _ = first + if in.BreakpointID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"breakpointId\":") + out.String(string(in.BreakpointID)) + } + if in.ActualLocation != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"actualLocation\":") + if in.ActualLocation == nil { + out.RawString("null") + } else { + (*in.ActualLocation).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( RestartFrameParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* RestartFrameParams ) UnmarshalJSON([]byte) error { return nil } -func ( RestartFrameParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* RestartFrameParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_RestartFrameParams *RestartFrameParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(w, v) +} -func ( RestartFrameReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* RestartFrameReturns ) UnmarshalJSON([]byte) error { return nil } -func ( RestartFrameReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* RestartFrameReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(&r, v) + return r.Error() +} -type EasyJSON_exporter_RestartFrameReturns *RestartFrameReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBreakpointReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(in *jlexer.Lexer, out *SetBreakpointParams) { + 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 "location": + if in.IsNull() { + in.Skip() + out.Location = nil + } else { + if out.Location == nil { + out.Location = new(Location) + } + (*out.Location).UnmarshalEasyJSON(in) + } + case "condition": + out.Condition = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(out *jwriter.Writer, in SetBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"location\":") + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) + } + if in.Condition != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"condition\":") + out.String(string(in.Condition)) + } + out.RawByte('}') +} -func ( ResumeParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ResumeParams ) UnmarshalJSON([]byte) error { return nil } -func ( ResumeParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ResumeParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ResumeParams *ResumeParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(w, v) +} -func ( ScheduleStepIntoAsyncParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ScheduleStepIntoAsyncParams ) UnmarshalJSON([]byte) error { return nil } -func ( ScheduleStepIntoAsyncParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ScheduleStepIntoAsyncParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(&r, v) + return r.Error() +} -type EasyJSON_exporter_ScheduleStepIntoAsyncParams *ScheduleStepIntoAsyncParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(in *jlexer.Lexer, out *SetBreakpointByURLReturns) { + 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 "breakpointId": + out.BreakpointID = BreakpointID(in.String()) + case "locations": + if in.IsNull() { + in.Skip() + out.Locations = nil + } else { + in.Delim('[') + if out.Locations == nil { + if !in.IsDelim(']') { + out.Locations = make([]*Location, 0, 8) + } else { + out.Locations = []*Location{} + } + } else { + out.Locations = (out.Locations)[:0] + } + for !in.IsDelim(']') { + var v4 *Location + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(Location) + } + (*v4).UnmarshalEasyJSON(in) + } + out.Locations = append(out.Locations, v4) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(out *jwriter.Writer, in SetBreakpointByURLReturns) { + out.RawByte('{') + first := true + _ = first + if in.BreakpointID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"breakpointId\":") + out.String(string(in.BreakpointID)) + } + if len(in.Locations) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"locations\":") + if in.Locations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.Locations { + if v5 > 0 { + out.RawByte(',') + } + if v6 == nil { + out.RawString("null") + } else { + (*v6).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( Scope ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Scope ) UnmarshalJSON([]byte) error { return nil } -func ( Scope ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Scope ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointByURLReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_Scope *Scope +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointByURLReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(w, v) +} -func ( ScriptPosition ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ScriptPosition ) UnmarshalJSON([]byte) error { return nil } -func ( ScriptPosition ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ScriptPosition ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointByURLReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(&r, v) + return r.Error() +} -type EasyJSON_exporter_ScriptPosition *ScriptPosition +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBreakpointByURLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(in *jlexer.Lexer, out *SetBreakpointByURLParams) { + 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 "lineNumber": + out.LineNumber = int64(in.Int64()) + case "url": + out.URL = string(in.String()) + case "urlRegex": + out.URLRegex = string(in.String()) + case "columnNumber": + out.ColumnNumber = int64(in.Int64()) + case "condition": + out.Condition = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(out *jwriter.Writer, in SetBreakpointByURLParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lineNumber\":") + out.Int64(int64(in.LineNumber)) + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.URLRegex != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"urlRegex\":") + out.String(string(in.URLRegex)) + } + if in.ColumnNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"columnNumber\":") + out.Int64(int64(in.ColumnNumber)) + } + if in.Condition != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"condition\":") + out.String(string(in.Condition)) + } + out.RawByte('}') +} -func ( SearchInContentParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SearchInContentParams ) UnmarshalJSON([]byte) error { return nil } -func ( SearchInContentParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SearchInContentParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointByURLParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SearchInContentParams *SearchInContentParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointByURLParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(w, v) +} -func ( SearchInContentReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SearchInContentReturns ) UnmarshalJSON([]byte) error { return nil } -func ( SearchInContentReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SearchInContentReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointByURLParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(&r, v) + return r.Error() +} -type EasyJSON_exporter_SearchInContentReturns *SearchInContentReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBreakpointByURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(in *jlexer.Lexer, out *SetBlackboxedRangesParams) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "positions": + if in.IsNull() { + in.Skip() + out.Positions = nil + } else { + in.Delim('[') + if out.Positions == nil { + if !in.IsDelim(']') { + out.Positions = make([]*ScriptPosition, 0, 8) + } else { + out.Positions = []*ScriptPosition{} + } + } else { + out.Positions = (out.Positions)[:0] + } + for !in.IsDelim(']') { + var v7 *ScriptPosition + if in.IsNull() { + in.Skip() + v7 = nil + } else { + if v7 == nil { + v7 = new(ScriptPosition) + } + (*v7).UnmarshalEasyJSON(in) + } + out.Positions = append(out.Positions, v7) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(out *jwriter.Writer, in SetBlackboxedRangesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"positions\":") + if in.Positions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.Positions { + if v8 > 0 { + out.RawByte(',') + } + if v9 == nil { + out.RawString("null") + } else { + (*v9).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} -func ( SearchMatch ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SearchMatch ) UnmarshalJSON([]byte) error { return nil } -func ( SearchMatch ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SearchMatch ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBlackboxedRangesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SearchMatch *SearchMatch +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBlackboxedRangesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(w, v) +} -func ( SetAsyncCallStackDepthParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetAsyncCallStackDepthParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetAsyncCallStackDepthParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetAsyncCallStackDepthParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBlackboxedRangesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetAsyncCallStackDepthParams *SetAsyncCallStackDepthParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBlackboxedRangesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(in *jlexer.Lexer, out *SetBlackboxPatternsParams) { + 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 "patterns": + if in.IsNull() { + in.Skip() + out.Patterns = nil + } else { + in.Delim('[') + if out.Patterns == nil { + if !in.IsDelim(']') { + out.Patterns = make([]string, 0, 4) + } else { + out.Patterns = []string{} + } + } else { + out.Patterns = (out.Patterns)[:0] + } + for !in.IsDelim(']') { + var v10 string + v10 = string(in.String()) + out.Patterns = append(out.Patterns, v10) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(out *jwriter.Writer, in SetBlackboxPatternsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"patterns\":") + if in.Patterns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v11, v12 := range in.Patterns { + if v11 > 0 { + out.RawByte(',') + } + out.String(string(v12)) + } + out.RawByte(']') + } + out.RawByte('}') +} -func ( SetBlackboxPatternsParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBlackboxPatternsParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetBlackboxPatternsParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBlackboxPatternsParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBlackboxPatternsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetBlackboxPatternsParams *SetBlackboxPatternsParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBlackboxPatternsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(w, v) +} -func ( SetBlackboxedRangesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBlackboxedRangesParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetBlackboxedRangesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBlackboxedRangesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBlackboxPatternsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetBlackboxedRangesParams *SetBlackboxedRangesParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBlackboxPatternsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(in *jlexer.Lexer, out *SetAsyncCallStackDepthParams) { + 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 "maxDepth": + out.MaxDepth = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(out *jwriter.Writer, in SetAsyncCallStackDepthParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"maxDepth\":") + out.Int64(int64(in.MaxDepth)) + out.RawByte('}') +} -func ( SetBreakpointByURLParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBreakpointByURLParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetBreakpointByURLParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBreakpointByURLParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetAsyncCallStackDepthParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetBreakpointByURLParams *SetBreakpointByURLParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAsyncCallStackDepthParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(w, v) +} -func ( SetBreakpointByURLReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBreakpointByURLReturns ) UnmarshalJSON([]byte) error { return nil } -func ( SetBreakpointByURLReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBreakpointByURLReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAsyncCallStackDepthParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetBreakpointByURLReturns *SetBreakpointByURLReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetAsyncCallStackDepthParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(in *jlexer.Lexer, out *SearchMatch) { + 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 "lineNumber": + out.LineNumber = float64(in.Float64()) + case "lineContent": + out.LineContent = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(out *jwriter.Writer, in SearchMatch) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lineNumber\":") + out.Float64(float64(in.LineNumber)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lineContent\":") + out.String(string(in.LineContent)) + out.RawByte('}') +} -func ( SetBreakpointParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBreakpointParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetBreakpointParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBreakpointParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SearchMatch) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetBreakpointParams *SetBreakpointParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchMatch) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(w, v) +} -func ( SetBreakpointReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBreakpointReturns ) UnmarshalJSON([]byte) error { return nil } -func ( SetBreakpointReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBreakpointReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchMatch) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetBreakpointReturns *SetBreakpointReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SearchMatch) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(in *jlexer.Lexer, out *SearchInContentReturns) { + 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 "result": + if in.IsNull() { + in.Skip() + out.Result = nil + } else { + in.Delim('[') + if out.Result == nil { + if !in.IsDelim(']') { + out.Result = make([]*SearchMatch, 0, 8) + } else { + out.Result = []*SearchMatch{} + } + } else { + out.Result = (out.Result)[:0] + } + for !in.IsDelim(']') { + var v13 *SearchMatch + if in.IsNull() { + in.Skip() + v13 = nil + } else { + if v13 == nil { + v13 = new(SearchMatch) + } + (*v13).UnmarshalEasyJSON(in) + } + out.Result = append(out.Result, v13) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(out *jwriter.Writer, in SearchInContentReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Result) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v14, v15 := range in.Result { + if v14 > 0 { + out.RawByte(',') + } + if v15 == nil { + out.RawString("null") + } else { + (*v15).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( SetBreakpointsActiveParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBreakpointsActiveParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetBreakpointsActiveParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBreakpointsActiveParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SearchInContentReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetBreakpointsActiveParams *SetBreakpointsActiveParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchInContentReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(w, v) +} -func ( SetPauseOnExceptionsParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetPauseOnExceptionsParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetPauseOnExceptionsParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetPauseOnExceptionsParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchInContentReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetPauseOnExceptionsParams *SetPauseOnExceptionsParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SearchInContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(in *jlexer.Lexer, out *SearchInContentParams) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "query": + out.Query = string(in.String()) + case "caseSensitive": + out.CaseSensitive = bool(in.Bool()) + case "isRegex": + out.IsRegex = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(out *jwriter.Writer, in SearchInContentParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"query\":") + out.String(string(in.Query)) + if in.CaseSensitive { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"caseSensitive\":") + out.Bool(bool(in.CaseSensitive)) + } + if in.IsRegex { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isRegex\":") + out.Bool(bool(in.IsRegex)) + } + out.RawByte('}') +} -func ( SetScriptSourceParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetScriptSourceParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetScriptSourceParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetScriptSourceParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SearchInContentParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetScriptSourceParams *SetScriptSourceParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchInContentParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(w, v) +} -func ( SetScriptSourceReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetScriptSourceReturns ) UnmarshalJSON([]byte) error { return nil } -func ( SetScriptSourceReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetScriptSourceReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchInContentParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetScriptSourceReturns *SetScriptSourceReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SearchInContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(in *jlexer.Lexer, out *ScriptPosition) { + 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 "lineNumber": + out.LineNumber = int64(in.Int64()) + case "columnNumber": + out.ColumnNumber = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(out *jwriter.Writer, in ScriptPosition) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lineNumber\":") + out.Int64(int64(in.LineNumber)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"columnNumber\":") + out.Int64(int64(in.ColumnNumber)) + out.RawByte('}') +} -func ( SetSkipAllPausesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetSkipAllPausesParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetSkipAllPausesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetSkipAllPausesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v ScriptPosition) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetSkipAllPausesParams *SetSkipAllPausesParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScriptPosition) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(w, v) +} -func ( SetVariableValueParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetVariableValueParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetVariableValueParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetVariableValueParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScriptPosition) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetVariableValueParams *SetVariableValueParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScriptPosition) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(in *jlexer.Lexer, out *Scope) { + 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 "type": + (out.Type).UnmarshalEasyJSON(in) + case "object": + if in.IsNull() { + in.Skip() + out.Object = nil + } else { + if out.Object == nil { + out.Object = new(runtime.RemoteObject) + } + (*out.Object).UnmarshalEasyJSON(in) + } + case "name": + out.Name = string(in.String()) + case "startLocation": + if in.IsNull() { + in.Skip() + out.StartLocation = nil + } else { + if out.StartLocation == nil { + out.StartLocation = new(Location) + } + (*out.StartLocation).UnmarshalEasyJSON(in) + } + case "endLocation": + if in.IsNull() { + in.Skip() + out.EndLocation = nil + } else { + if out.EndLocation == nil { + out.EndLocation = new(Location) + } + (*out.EndLocation).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(out *jwriter.Writer, in Scope) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"object\":") + if in.Object == nil { + out.RawString("null") + } else { + (*in.Object).MarshalEasyJSON(out) + } + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if in.StartLocation != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startLocation\":") + if in.StartLocation == nil { + out.RawString("null") + } else { + (*in.StartLocation).MarshalEasyJSON(out) + } + } + if in.EndLocation != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endLocation\":") + if in.EndLocation == nil { + out.RawString("null") + } else { + (*in.EndLocation).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( StepIntoParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StepIntoParams ) UnmarshalJSON([]byte) error { return nil } -func ( StepIntoParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StepIntoParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v Scope) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_StepIntoParams *StepIntoParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Scope) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(w, v) +} -func ( StepOutParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StepOutParams ) UnmarshalJSON([]byte) error { return nil } -func ( StepOutParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StepOutParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Scope) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(&r, v) + return r.Error() +} -type EasyJSON_exporter_StepOutParams *StepOutParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Scope) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(in *jlexer.Lexer, out *ScheduleStepIntoAsyncParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(out *jwriter.Writer, in ScheduleStepIntoAsyncParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( StepOverParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StepOverParams ) UnmarshalJSON([]byte) error { return nil } -func ( StepOverParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StepOverParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v ScheduleStepIntoAsyncParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_StepOverParams *StepOverParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScheduleStepIntoAsyncParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScheduleStepIntoAsyncParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScheduleStepIntoAsyncParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(in *jlexer.Lexer, out *ResumeParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(out *jwriter.Writer, in ResumeParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ResumeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ResumeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ResumeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ResumeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(in *jlexer.Lexer, out *RestartFrameReturns) { + 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 "callFrames": + if in.IsNull() { + in.Skip() + out.CallFrames = nil + } else { + in.Delim('[') + if out.CallFrames == nil { + if !in.IsDelim(']') { + out.CallFrames = make([]*CallFrame, 0, 8) + } else { + out.CallFrames = []*CallFrame{} + } + } else { + out.CallFrames = (out.CallFrames)[:0] + } + for !in.IsDelim(']') { + var v16 *CallFrame + if in.IsNull() { + in.Skip() + v16 = nil + } else { + if v16 == nil { + v16 = new(CallFrame) + } + (*v16).UnmarshalEasyJSON(in) + } + out.CallFrames = append(out.CallFrames, v16) + in.WantComma() + } + in.Delim(']') + } + case "asyncStackTrace": + if in.IsNull() { + in.Skip() + out.AsyncStackTrace = nil + } else { + if out.AsyncStackTrace == nil { + out.AsyncStackTrace = new(runtime.StackTrace) + } + (*out.AsyncStackTrace).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(out *jwriter.Writer, in RestartFrameReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.CallFrames) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrames\":") + if in.CallFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v17, v18 := range in.CallFrames { + if v17 > 0 { + out.RawByte(',') + } + if v18 == nil { + out.RawString("null") + } else { + (*v18).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.AsyncStackTrace != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"asyncStackTrace\":") + if in.AsyncStackTrace == nil { + out.RawString("null") + } else { + (*in.AsyncStackTrace).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RestartFrameReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RestartFrameReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RestartFrameReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RestartFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(in *jlexer.Lexer, out *RestartFrameParams) { + 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 "callFrameId": + out.CallFrameID = CallFrameID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(out *jwriter.Writer, in RestartFrameParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrameId\":") + out.String(string(in.CallFrameID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RestartFrameParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RestartFrameParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RestartFrameParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RestartFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(in *jlexer.Lexer, out *RemoveBreakpointParams) { + 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 "breakpointId": + out.BreakpointID = BreakpointID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(out *jwriter.Writer, in RemoveBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"breakpointId\":") + out.String(string(in.BreakpointID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(in *jlexer.Lexer, out *PauseParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(out *jwriter.Writer, in PauseParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PauseParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PauseParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PauseParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PauseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(in *jlexer.Lexer, out *Location) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "lineNumber": + out.LineNumber = int64(in.Int64()) + case "columnNumber": + out.ColumnNumber = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(out *jwriter.Writer, in Location) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lineNumber\":") + out.Int64(int64(in.LineNumber)) + if in.ColumnNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"columnNumber\":") + out.Int64(int64(in.ColumnNumber)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Location) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Location) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Location) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(in *jlexer.Lexer, out *GetScriptSourceReturns) { + 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 "scriptSource": + out.ScriptSource = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(out *jwriter.Writer, in GetScriptSourceReturns) { + out.RawByte('{') + first := true + _ = first + if in.ScriptSource != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptSource\":") + out.String(string(in.ScriptSource)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetScriptSourceReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetScriptSourceReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(in *jlexer.Lexer, out *GetScriptSourceParams) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(out *jwriter.Writer, in GetScriptSourceParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetScriptSourceParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetScriptSourceParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(in *jlexer.Lexer, out *GetPossibleBreakpointsReturns) { + 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 "locations": + if in.IsNull() { + in.Skip() + out.Locations = nil + } else { + in.Delim('[') + if out.Locations == nil { + if !in.IsDelim(']') { + out.Locations = make([]*BreakLocation, 0, 8) + } else { + out.Locations = []*BreakLocation{} + } + } else { + out.Locations = (out.Locations)[:0] + } + for !in.IsDelim(']') { + var v19 *BreakLocation + if in.IsNull() { + in.Skip() + v19 = nil + } else { + if v19 == nil { + v19 = new(BreakLocation) + } + (*v19).UnmarshalEasyJSON(in) + } + out.Locations = append(out.Locations, v19) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(out *jwriter.Writer, in GetPossibleBreakpointsReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Locations) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"locations\":") + if in.Locations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v20, v21 := range in.Locations { + if v20 > 0 { + out.RawByte(',') + } + if v21 == nil { + out.RawString("null") + } else { + (*v21).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetPossibleBreakpointsReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetPossibleBreakpointsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetPossibleBreakpointsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetPossibleBreakpointsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(in *jlexer.Lexer, out *GetPossibleBreakpointsParams) { + 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 "start": + if in.IsNull() { + in.Skip() + out.Start = nil + } else { + if out.Start == nil { + out.Start = new(Location) + } + (*out.Start).UnmarshalEasyJSON(in) + } + case "end": + if in.IsNull() { + in.Skip() + out.End = nil + } else { + if out.End == nil { + out.End = new(Location) + } + (*out.End).UnmarshalEasyJSON(in) + } + case "restrictToFunction": + out.RestrictToFunction = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(out *jwriter.Writer, in GetPossibleBreakpointsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"start\":") + if in.Start == nil { + out.RawString("null") + } else { + (*in.Start).MarshalEasyJSON(out) + } + if in.End != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"end\":") + if in.End == nil { + out.RawString("null") + } else { + (*in.End).MarshalEasyJSON(out) + } + } + if in.RestrictToFunction { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"restrictToFunction\":") + out.Bool(bool(in.RestrictToFunction)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetPossibleBreakpointsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetPossibleBreakpointsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetPossibleBreakpointsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetPossibleBreakpointsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(in *jlexer.Lexer, out *EventScriptParsed) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "url": + out.URL = string(in.String()) + case "startLine": + out.StartLine = int64(in.Int64()) + case "startColumn": + out.StartColumn = int64(in.Int64()) + case "endLine": + out.EndLine = int64(in.Int64()) + case "endColumn": + out.EndColumn = int64(in.Int64()) + case "executionContextId": + out.ExecutionContextID = runtime.ExecutionContextID(in.Int64()) + case "hash": + out.Hash = string(in.String()) + case "executionContextAuxData": + (out.ExecutionContextAuxData).UnmarshalEasyJSON(in) + case "isLiveEdit": + out.IsLiveEdit = bool(in.Bool()) + case "sourceMapURL": + out.SourceMapURL = string(in.String()) + case "hasSourceURL": + out.HasSourceURL = bool(in.Bool()) + case "isModule": + out.IsModule = bool(in.Bool()) + case "length": + out.Length = int64(in.Int64()) + case "stackTrace": + if in.IsNull() { + in.Skip() + out.StackTrace = nil + } else { + if out.StackTrace == nil { + out.StackTrace = new(runtime.StackTrace) + } + (*out.StackTrace).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(out *jwriter.Writer, in EventScriptParsed) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startLine\":") + out.Int64(int64(in.StartLine)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startColumn\":") + out.Int64(int64(in.StartColumn)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endLine\":") + out.Int64(int64(in.EndLine)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endColumn\":") + out.Int64(int64(in.EndColumn)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"executionContextId\":") + out.Int64(int64(in.ExecutionContextID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hash\":") + out.String(string(in.Hash)) + if (in.ExecutionContextAuxData).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"executionContextAuxData\":") + (in.ExecutionContextAuxData).MarshalEasyJSON(out) + } + if in.IsLiveEdit { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isLiveEdit\":") + out.Bool(bool(in.IsLiveEdit)) + } + if in.SourceMapURL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sourceMapURL\":") + out.String(string(in.SourceMapURL)) + } + if in.HasSourceURL { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hasSourceURL\":") + out.Bool(bool(in.HasSourceURL)) + } + if in.IsModule { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isModule\":") + out.Bool(bool(in.IsModule)) + } + if in.Length != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"length\":") + out.Int64(int64(in.Length)) + } + if in.StackTrace != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"stackTrace\":") + if in.StackTrace == nil { + out.RawString("null") + } else { + (*in.StackTrace).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventScriptParsed) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventScriptParsed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventScriptParsed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventScriptParsed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(in *jlexer.Lexer, out *EventScriptFailedToParse) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "url": + out.URL = string(in.String()) + case "startLine": + out.StartLine = int64(in.Int64()) + case "startColumn": + out.StartColumn = int64(in.Int64()) + case "endLine": + out.EndLine = int64(in.Int64()) + case "endColumn": + out.EndColumn = int64(in.Int64()) + case "executionContextId": + out.ExecutionContextID = runtime.ExecutionContextID(in.Int64()) + case "hash": + out.Hash = string(in.String()) + case "executionContextAuxData": + (out.ExecutionContextAuxData).UnmarshalEasyJSON(in) + case "sourceMapURL": + out.SourceMapURL = string(in.String()) + case "hasSourceURL": + out.HasSourceURL = bool(in.Bool()) + case "isModule": + out.IsModule = bool(in.Bool()) + case "length": + out.Length = int64(in.Int64()) + case "stackTrace": + if in.IsNull() { + in.Skip() + out.StackTrace = nil + } else { + if out.StackTrace == nil { + out.StackTrace = new(runtime.StackTrace) + } + (*out.StackTrace).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(out *jwriter.Writer, in EventScriptFailedToParse) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startLine\":") + out.Int64(int64(in.StartLine)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startColumn\":") + out.Int64(int64(in.StartColumn)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endLine\":") + out.Int64(int64(in.EndLine)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endColumn\":") + out.Int64(int64(in.EndColumn)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"executionContextId\":") + out.Int64(int64(in.ExecutionContextID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hash\":") + out.String(string(in.Hash)) + if (in.ExecutionContextAuxData).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"executionContextAuxData\":") + (in.ExecutionContextAuxData).MarshalEasyJSON(out) + } + if in.SourceMapURL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sourceMapURL\":") + out.String(string(in.SourceMapURL)) + } + if in.HasSourceURL { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hasSourceURL\":") + out.Bool(bool(in.HasSourceURL)) + } + if in.IsModule { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isModule\":") + out.Bool(bool(in.IsModule)) + } + if in.Length != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"length\":") + out.Int64(int64(in.Length)) + } + if in.StackTrace != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"stackTrace\":") + if in.StackTrace == nil { + out.RawString("null") + } else { + (*in.StackTrace).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventScriptFailedToParse) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventScriptFailedToParse) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventScriptFailedToParse) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventScriptFailedToParse) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(in *jlexer.Lexer, out *EventResumed) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(out *jwriter.Writer, in EventResumed) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventResumed) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventResumed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventResumed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventResumed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(in *jlexer.Lexer, out *EventPaused) { + 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 "callFrames": + if in.IsNull() { + in.Skip() + out.CallFrames = nil + } else { + in.Delim('[') + if out.CallFrames == nil { + if !in.IsDelim(']') { + out.CallFrames = make([]*CallFrame, 0, 8) + } else { + out.CallFrames = []*CallFrame{} + } + } else { + out.CallFrames = (out.CallFrames)[:0] + } + for !in.IsDelim(']') { + var v22 *CallFrame + if in.IsNull() { + in.Skip() + v22 = nil + } else { + if v22 == nil { + v22 = new(CallFrame) + } + (*v22).UnmarshalEasyJSON(in) + } + out.CallFrames = append(out.CallFrames, v22) + in.WantComma() + } + in.Delim(']') + } + case "reason": + (out.Reason).UnmarshalEasyJSON(in) + case "data": + (out.Data).UnmarshalEasyJSON(in) + case "hitBreakpoints": + if in.IsNull() { + in.Skip() + out.HitBreakpoints = nil + } else { + in.Delim('[') + if out.HitBreakpoints == nil { + if !in.IsDelim(']') { + out.HitBreakpoints = make([]string, 0, 4) + } else { + out.HitBreakpoints = []string{} + } + } else { + out.HitBreakpoints = (out.HitBreakpoints)[:0] + } + for !in.IsDelim(']') { + var v23 string + v23 = string(in.String()) + out.HitBreakpoints = append(out.HitBreakpoints, v23) + in.WantComma() + } + in.Delim(']') + } + case "asyncStackTrace": + if in.IsNull() { + in.Skip() + out.AsyncStackTrace = nil + } else { + if out.AsyncStackTrace == nil { + out.AsyncStackTrace = new(runtime.StackTrace) + } + (*out.AsyncStackTrace).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(out *jwriter.Writer, in EventPaused) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrames\":") + if in.CallFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v24, v25 := range in.CallFrames { + if v24 > 0 { + out.RawByte(',') + } + if v25 == nil { + out.RawString("null") + } else { + (*v25).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"reason\":") + (in.Reason).MarshalEasyJSON(out) + if (in.Data).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"data\":") + (in.Data).MarshalEasyJSON(out) + } + if len(in.HitBreakpoints) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hitBreakpoints\":") + if in.HitBreakpoints == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v26, v27 := range in.HitBreakpoints { + if v26 > 0 { + out.RawByte(',') + } + out.String(string(v27)) + } + out.RawByte(']') + } + } + if in.AsyncStackTrace != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"asyncStackTrace\":") + if in.AsyncStackTrace == nil { + out.RawString("null") + } else { + (*in.AsyncStackTrace).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventPaused) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventPaused) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(in *jlexer.Lexer, out *EventBreakpointResolved) { + 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 "breakpointId": + out.BreakpointID = BreakpointID(in.String()) + case "location": + if in.IsNull() { + in.Skip() + out.Location = nil + } else { + if out.Location == nil { + out.Location = new(Location) + } + (*out.Location).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(out *jwriter.Writer, in EventBreakpointResolved) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"breakpointId\":") + out.String(string(in.BreakpointID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"location\":") + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventBreakpointResolved) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventBreakpointResolved) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventBreakpointResolved) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventBreakpointResolved) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(in *jlexer.Lexer, out *EvaluateOnCallFrameReturns) { + 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 "result": + if in.IsNull() { + in.Skip() + out.Result = nil + } else { + if out.Result == nil { + out.Result = new(runtime.RemoteObject) + } + (*out.Result).UnmarshalEasyJSON(in) + } + case "exceptionDetails": + if in.IsNull() { + in.Skip() + out.ExceptionDetails = nil + } else { + if out.ExceptionDetails == nil { + out.ExceptionDetails = new(runtime.ExceptionDetails) + } + (*out.ExceptionDetails).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(out *jwriter.Writer, in EvaluateOnCallFrameReturns) { + out.RawByte('{') + first := true + _ = first + if in.Result != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + if in.Result == nil { + out.RawString("null") + } else { + (*in.Result).MarshalEasyJSON(out) + } + } + if in.ExceptionDetails != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"exceptionDetails\":") + if in.ExceptionDetails == nil { + out.RawString("null") + } else { + (*in.ExceptionDetails).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EvaluateOnCallFrameReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EvaluateOnCallFrameReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EvaluateOnCallFrameReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EvaluateOnCallFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(in *jlexer.Lexer, out *EvaluateOnCallFrameParams) { + 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 "callFrameId": + out.CallFrameID = CallFrameID(in.String()) + case "expression": + out.Expression = string(in.String()) + case "objectGroup": + out.ObjectGroup = string(in.String()) + case "includeCommandLineAPI": + out.IncludeCommandLineAPI = bool(in.Bool()) + case "silent": + out.Silent = bool(in.Bool()) + case "returnByValue": + out.ReturnByValue = bool(in.Bool()) + case "generatePreview": + out.GeneratePreview = bool(in.Bool()) + case "throwOnSideEffect": + out.ThrowOnSideEffect = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(out *jwriter.Writer, in EvaluateOnCallFrameParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrameId\":") + out.String(string(in.CallFrameID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"expression\":") + out.String(string(in.Expression)) + if in.ObjectGroup != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectGroup\":") + out.String(string(in.ObjectGroup)) + } + if in.IncludeCommandLineAPI { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"includeCommandLineAPI\":") + out.Bool(bool(in.IncludeCommandLineAPI)) + } + if in.Silent { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"silent\":") + out.Bool(bool(in.Silent)) + } + if in.ReturnByValue { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"returnByValue\":") + out.Bool(bool(in.ReturnByValue)) + } + if in.GeneratePreview { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"generatePreview\":") + out.Bool(bool(in.GeneratePreview)) + } + if in.ThrowOnSideEffect { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"throwOnSideEffect\":") + out.Bool(bool(in.ThrowOnSideEffect)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EvaluateOnCallFrameParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EvaluateOnCallFrameParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EvaluateOnCallFrameParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EvaluateOnCallFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(in *jlexer.Lexer, out *EnableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(out *jwriter.Writer, in EnableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EnableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(in *jlexer.Lexer, out *DisableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(out *jwriter.Writer, in DisableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(in *jlexer.Lexer, out *ContinueToLocationParams) { + 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 "location": + if in.IsNull() { + in.Skip() + out.Location = nil + } else { + if out.Location == nil { + out.Location = new(Location) + } + (*out.Location).UnmarshalEasyJSON(in) + } + case "targetCallFrames": + (out.TargetCallFrames).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(out *jwriter.Writer, in ContinueToLocationParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"location\":") + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) + } + if in.TargetCallFrames != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetCallFrames\":") + (in.TargetCallFrames).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ContinueToLocationParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ContinueToLocationParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ContinueToLocationParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ContinueToLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(in *jlexer.Lexer, out *CallFrame) { + 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 "callFrameId": + out.CallFrameID = CallFrameID(in.String()) + case "functionName": + out.FunctionName = string(in.String()) + case "functionLocation": + if in.IsNull() { + in.Skip() + out.FunctionLocation = nil + } else { + if out.FunctionLocation == nil { + out.FunctionLocation = new(Location) + } + (*out.FunctionLocation).UnmarshalEasyJSON(in) + } + case "location": + if in.IsNull() { + in.Skip() + out.Location = nil + } else { + if out.Location == nil { + out.Location = new(Location) + } + (*out.Location).UnmarshalEasyJSON(in) + } + case "url": + out.URL = string(in.String()) + case "scopeChain": + if in.IsNull() { + in.Skip() + out.ScopeChain = nil + } else { + in.Delim('[') + if out.ScopeChain == nil { + if !in.IsDelim(']') { + out.ScopeChain = make([]*Scope, 0, 8) + } else { + out.ScopeChain = []*Scope{} + } + } else { + out.ScopeChain = (out.ScopeChain)[:0] + } + for !in.IsDelim(']') { + var v28 *Scope + if in.IsNull() { + in.Skip() + v28 = nil + } else { + if v28 == nil { + v28 = new(Scope) + } + (*v28).UnmarshalEasyJSON(in) + } + out.ScopeChain = append(out.ScopeChain, v28) + in.WantComma() + } + in.Delim(']') + } + case "this": + if in.IsNull() { + in.Skip() + out.This = nil + } else { + if out.This == nil { + out.This = new(runtime.RemoteObject) + } + (*out.This).UnmarshalEasyJSON(in) + } + case "returnValue": + if in.IsNull() { + in.Skip() + out.ReturnValue = nil + } else { + if out.ReturnValue == nil { + out.ReturnValue = new(runtime.RemoteObject) + } + (*out.ReturnValue).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(out *jwriter.Writer, in CallFrame) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrameId\":") + out.String(string(in.CallFrameID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"functionName\":") + out.String(string(in.FunctionName)) + if in.FunctionLocation != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"functionLocation\":") + if in.FunctionLocation == nil { + out.RawString("null") + } else { + (*in.FunctionLocation).MarshalEasyJSON(out) + } + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"location\":") + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scopeChain\":") + if in.ScopeChain == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v29, v30 := range in.ScopeChain { + if v29 > 0 { + out.RawByte(',') + } + if v30 == nil { + out.RawString("null") + } else { + (*v30).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"this\":") + if in.This == nil { + out.RawString("null") + } else { + (*in.This).MarshalEasyJSON(out) + } + if in.ReturnValue != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"returnValue\":") + if in.ReturnValue == nil { + out.RawString("null") + } else { + (*in.ReturnValue).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CallFrame) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CallFrame) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(in *jlexer.Lexer, out *BreakLocation) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "lineNumber": + out.LineNumber = int64(in.Int64()) + case "columnNumber": + out.ColumnNumber = int64(in.Int64()) + case "type": + (out.Type).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(out *jwriter.Writer, in BreakLocation) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lineNumber\":") + out.Int64(int64(in.LineNumber)) + if in.ColumnNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"columnNumber\":") + out.Int64(int64(in.ColumnNumber)) + } + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BreakLocation) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BreakLocation) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BreakLocation) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BreakLocation) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(l, v) +} diff --git a/cdp/debugger/types.go b/cdp/debugger/types.go index 50cff2b..19bc73e 100644 --- a/cdp/debugger/types.go +++ b/cdp/debugger/types.go @@ -3,6 +3,7 @@ package debugger import ( "errors" + "github.com/knq/chromedp/cdp/runtime" "github.com/mailru/easyjson" "github.com/mailru/easyjson/jlexer" "github.com/mailru/easyjson/jwriter" diff --git a/cdp/log/easyjson.go b/cdp/log/easyjson.go index 3d497a1..410d98e 100644 --- a/cdp/log/easyjson.go +++ b/cdp/log/easyjson.go @@ -1,65 +1,687 @@ -// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package -// compilable during generation. +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. -package log +package log import ( - "github.com/mailru/easyjson/jwriter" - "github.com/mailru/easyjson/jlexer" + json "encoding/json" + network "github.com/knq/chromedp/cdp/network" + runtime "github.com/knq/chromedp/cdp/runtime" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" ) -func ( ClearParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ClearParams ) UnmarshalJSON([]byte) error { return nil } -func ( ClearParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ClearParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) -type EasyJSON_exporter_ClearParams *ClearParams +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(in *jlexer.Lexer, out *ViolationSetting) { + 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 "name": + (out.Name).UnmarshalEasyJSON(in) + case "threshold": + out.Threshold = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(out *jwriter.Writer, in ViolationSetting) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + (in.Name).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"threshold\":") + out.Float64(float64(in.Threshold)) + out.RawByte('}') +} -func ( DisableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* DisableParams ) UnmarshalJSON([]byte) error { return nil } -func ( DisableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* DisableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v ViolationSetting) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_DisableParams *DisableParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ViolationSetting) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(w, v) +} -func ( EnableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EnableParams ) UnmarshalJSON([]byte) error { return nil } -func ( EnableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EnableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ViolationSetting) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(&r, v) + return r.Error() +} -type EasyJSON_exporter_EnableParams *EnableParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ViolationSetting) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(in *jlexer.Lexer, out *StopViolationsReportParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(out *jwriter.Writer, in StopViolationsReportParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( Entry ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Entry ) UnmarshalJSON([]byte) error { return nil } -func ( Entry ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Entry ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StopViolationsReportParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_Entry *Entry +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(w, v) +} -func ( EventEntryAdded ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventEntryAdded ) UnmarshalJSON([]byte) error { return nil } -func ( EventEntryAdded ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventEntryAdded ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopViolationsReportParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventEntryAdded *EventEntryAdded +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(in *jlexer.Lexer, out *StartViolationsReportParams) { + 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 "config": + if in.IsNull() { + in.Skip() + out.Config = nil + } else { + in.Delim('[') + if out.Config == nil { + if !in.IsDelim(']') { + out.Config = make([]*ViolationSetting, 0, 8) + } else { + out.Config = []*ViolationSetting{} + } + } else { + out.Config = (out.Config)[:0] + } + for !in.IsDelim(']') { + var v1 *ViolationSetting + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(ViolationSetting) + } + (*v1).UnmarshalEasyJSON(in) + } + out.Config = append(out.Config, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(out *jwriter.Writer, in StartViolationsReportParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"config\":") + if in.Config == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.Config { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} -func ( StartViolationsReportParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StartViolationsReportParams ) UnmarshalJSON([]byte) error { return nil } -func ( StartViolationsReportParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StartViolationsReportParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StartViolationsReportParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_StartViolationsReportParams *StartViolationsReportParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(w, v) +} -func ( StopViolationsReportParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StopViolationsReportParams ) UnmarshalJSON([]byte) error { return nil } -func ( StopViolationsReportParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StopViolationsReportParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartViolationsReportParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(&r, v) + return r.Error() +} -type EasyJSON_exporter_StopViolationsReportParams *StopViolationsReportParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(in *jlexer.Lexer, out *EventEntryAdded) { + 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 "entry": + if in.IsNull() { + in.Skip() + out.Entry = nil + } else { + if out.Entry == nil { + out.Entry = new(Entry) + } + (*out.Entry).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(out *jwriter.Writer, in EventEntryAdded) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"entry\":") + if in.Entry == nil { + out.RawString("null") + } else { + (*in.Entry).MarshalEasyJSON(out) + } + out.RawByte('}') +} -func ( ViolationSetting ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ViolationSetting ) UnmarshalJSON([]byte) error { return nil } -func ( ViolationSetting ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ViolationSetting ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v EventEntryAdded) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ViolationSetting *ViolationSetting +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventEntryAdded) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventEntryAdded) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventEntryAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(in *jlexer.Lexer, out *Entry) { + 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 "source": + (out.Source).UnmarshalEasyJSON(in) + case "level": + (out.Level).UnmarshalEasyJSON(in) + case "text": + out.Text = string(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(runtime.Timestamp) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "url": + out.URL = string(in.String()) + case "lineNumber": + out.LineNumber = int64(in.Int64()) + case "stackTrace": + if in.IsNull() { + in.Skip() + out.StackTrace = nil + } else { + if out.StackTrace == nil { + out.StackTrace = new(runtime.StackTrace) + } + (*out.StackTrace).UnmarshalEasyJSON(in) + } + case "networkRequestId": + out.NetworkRequestID = network.RequestID(in.String()) + case "workerId": + out.WorkerID = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(out *jwriter.Writer, in Entry) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"source\":") + (in.Source).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"level\":") + (in.Level).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"text\":") + out.String(string(in.Text)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.LineNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lineNumber\":") + out.Int64(int64(in.LineNumber)) + } + if in.StackTrace != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"stackTrace\":") + if in.StackTrace == nil { + out.RawString("null") + } else { + (*in.StackTrace).MarshalEasyJSON(out) + } + } + if in.NetworkRequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"networkRequestId\":") + out.String(string(in.NetworkRequestID)) + } + if in.WorkerID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"workerId\":") + out.String(string(in.WorkerID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Entry) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Entry) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Entry) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Entry) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(in *jlexer.Lexer, out *EnableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(out *jwriter.Writer, in EnableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EnableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(in *jlexer.Lexer, out *DisableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(out *jwriter.Writer, in DisableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(in *jlexer.Lexer, out *ClearParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog7(out *jwriter.Writer, in ClearParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ClearParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ClearParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(l, v) +} diff --git a/cdp/network/easyjson.go b/cdp/network/easyjson.go index 1339913..4c20421 100644 --- a/cdp/network/easyjson.go +++ b/cdp/network/easyjson.go @@ -1,443 +1,6803 @@ -// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package -// compilable during generation. +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. -package network +package network import ( - "github.com/mailru/easyjson/jwriter" - "github.com/mailru/easyjson/jlexer" + json "encoding/json" + cdp "github.com/knq/chromedp/cdp" + runtime "github.com/knq/chromedp/cdp/runtime" + security "github.com/knq/chromedp/cdp/security" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" ) -func ( AuthChallenge ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* AuthChallenge ) UnmarshalJSON([]byte) error { return nil } -func ( AuthChallenge ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* AuthChallenge ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) -type EasyJSON_exporter_AuthChallenge *AuthChallenge +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(in *jlexer.Lexer, out *WebSocketResponse) { + 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 "status": + out.Status = float64(in.Float64()) + case "statusText": + out.StatusText = string(in.String()) + case "headers": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.Headers = make(Headers) + } else { + out.Headers = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v1 interface{} + if m, ok := v1.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v1.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v1 = in.Interface() + } + (out.Headers)[key] = v1 + in.WantComma() + } + in.Delim('}') + } + case "headersText": + out.HeadersText = string(in.String()) + case "requestHeaders": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.RequestHeaders = make(Headers) + } else { + out.RequestHeaders = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v2 interface{} + if m, ok := v2.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v2.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v2 = in.Interface() + } + (out.RequestHeaders)[key] = v2 + in.WantComma() + } + in.Delim('}') + } + case "requestHeadersText": + out.RequestHeadersText = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(out *jwriter.Writer, in WebSocketResponse) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"status\":") + out.Float64(float64(in.Status)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"statusText\":") + out.String(string(in.StatusText)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headers\":") + if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v3First := true + for v3Name, v3Value := range in.Headers { + if !v3First { + out.RawByte(',') + } + v3First = false + out.String(string(v3Name)) + out.RawByte(':') + if m, ok := v3Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v3Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v3Value)) + } + } + out.RawByte('}') + } + if in.HeadersText != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headersText\":") + out.String(string(in.HeadersText)) + } + if len(in.RequestHeaders) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestHeaders\":") + if in.RequestHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v4First := true + for v4Name, v4Value := range in.RequestHeaders { + if !v4First { + out.RawByte(',') + } + v4First = false + out.String(string(v4Name)) + out.RawByte(':') + if m, ok := v4Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v4Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v4Value)) + } + } + out.RawByte('}') + } + } + if in.RequestHeadersText != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestHeadersText\":") + out.String(string(in.RequestHeadersText)) + } + out.RawByte('}') +} -func ( AuthChallengeResponse ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* AuthChallengeResponse ) UnmarshalJSON([]byte) error { return nil } -func ( AuthChallengeResponse ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* AuthChallengeResponse ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v WebSocketResponse) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_AuthChallengeResponse *AuthChallengeResponse +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(w, v) +} -func ( CachedResource ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CachedResource ) UnmarshalJSON([]byte) error { return nil } -func ( CachedResource ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CachedResource ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *WebSocketResponse) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(&r, v) + return r.Error() +} -type EasyJSON_exporter_CachedResource *CachedResource +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(in *jlexer.Lexer, out *WebSocketRequest) { + 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 "headers": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.Headers = make(Headers) + } else { + out.Headers = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v5 interface{} + if m, ok := v5.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v5.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v5 = in.Interface() + } + (out.Headers)[key] = v5 + in.WantComma() + } + in.Delim('}') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(out *jwriter.Writer, in WebSocketRequest) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headers\":") + if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v6First := true + for v6Name, v6Value := range in.Headers { + if !v6First { + out.RawByte(',') + } + v6First = false + out.String(string(v6Name)) + out.RawByte(':') + if m, ok := v6Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v6Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v6Value)) + } + } + out.RawByte('}') + } + out.RawByte('}') +} -func ( CanClearBrowserCacheParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CanClearBrowserCacheParams ) UnmarshalJSON([]byte) error { return nil } -func ( CanClearBrowserCacheParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CanClearBrowserCacheParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v WebSocketRequest) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_CanClearBrowserCacheParams *CanClearBrowserCacheParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(w, v) +} -func ( CanClearBrowserCacheReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CanClearBrowserCacheReturns ) UnmarshalJSON([]byte) error { return nil } -func ( CanClearBrowserCacheReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CanClearBrowserCacheReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *WebSocketRequest) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(&r, v) + return r.Error() +} -type EasyJSON_exporter_CanClearBrowserCacheReturns *CanClearBrowserCacheReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(in *jlexer.Lexer, out *WebSocketFrame) { + 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 "opcode": + out.Opcode = float64(in.Float64()) + case "mask": + out.Mask = bool(in.Bool()) + case "payloadData": + out.PayloadData = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(out *jwriter.Writer, in WebSocketFrame) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"opcode\":") + out.Float64(float64(in.Opcode)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"mask\":") + out.Bool(bool(in.Mask)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"payloadData\":") + out.String(string(in.PayloadData)) + out.RawByte('}') +} -func ( CanClearBrowserCookiesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CanClearBrowserCookiesParams ) UnmarshalJSON([]byte) error { return nil } -func ( CanClearBrowserCookiesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CanClearBrowserCookiesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v WebSocketFrame) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_CanClearBrowserCookiesParams *CanClearBrowserCookiesParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(w, v) +} -func ( CanClearBrowserCookiesReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CanClearBrowserCookiesReturns ) UnmarshalJSON([]byte) error { return nil } -func ( CanClearBrowserCookiesReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CanClearBrowserCookiesReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *WebSocketFrame) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(&r, v) + return r.Error() +} -type EasyJSON_exporter_CanClearBrowserCookiesReturns *CanClearBrowserCookiesReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(in *jlexer.Lexer, out *SignedCertificateTimestamp) { + 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 "status": + out.Status = string(in.String()) + case "origin": + out.Origin = string(in.String()) + case "logDescription": + out.LogDescription = string(in.String()) + case "logId": + out.LogID = string(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.TimeSinceEpoch) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "hashAlgorithm": + out.HashAlgorithm = string(in.String()) + case "signatureAlgorithm": + out.SignatureAlgorithm = string(in.String()) + case "signatureData": + out.SignatureData = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(out *jwriter.Writer, in SignedCertificateTimestamp) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"status\":") + out.String(string(in.Status)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"logDescription\":") + out.String(string(in.LogDescription)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"logId\":") + out.String(string(in.LogID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hashAlgorithm\":") + out.String(string(in.HashAlgorithm)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"signatureAlgorithm\":") + out.String(string(in.SignatureAlgorithm)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"signatureData\":") + out.String(string(in.SignatureData)) + out.RawByte('}') +} -func ( CanEmulateNetworkConditionsParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CanEmulateNetworkConditionsParams ) UnmarshalJSON([]byte) error { return nil } -func ( CanEmulateNetworkConditionsParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CanEmulateNetworkConditionsParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_CanEmulateNetworkConditionsParams *CanEmulateNetworkConditionsParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(w, v) +} -func ( CanEmulateNetworkConditionsReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CanEmulateNetworkConditionsReturns ) UnmarshalJSON([]byte) error { return nil } -func ( CanEmulateNetworkConditionsReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CanEmulateNetworkConditionsReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(&r, v) + return r.Error() +} -type EasyJSON_exporter_CanEmulateNetworkConditionsReturns *CanEmulateNetworkConditionsReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(in *jlexer.Lexer, out *SetUserAgentOverrideParams) { + 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 "userAgent": + out.UserAgent = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(out *jwriter.Writer, in SetUserAgentOverrideParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"userAgent\":") + out.String(string(in.UserAgent)) + out.RawByte('}') +} -func ( ClearBrowserCacheParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ClearBrowserCacheParams ) UnmarshalJSON([]byte) error { return nil } -func ( ClearBrowserCacheParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ClearBrowserCacheParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetUserAgentOverrideParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ClearBrowserCacheParams *ClearBrowserCacheParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetUserAgentOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(w, v) +} -func ( ClearBrowserCookiesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ClearBrowserCookiesParams ) UnmarshalJSON([]byte) error { return nil } -func ( ClearBrowserCookiesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ClearBrowserCookiesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetUserAgentOverrideParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(&r, v) + return r.Error() +} -type EasyJSON_exporter_ClearBrowserCookiesParams *ClearBrowserCookiesParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetUserAgentOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(in *jlexer.Lexer, out *SetRequestInterceptionEnabledParams) { + 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 "enabled": + out.Enabled = bool(in.Bool()) + case "patterns": + if in.IsNull() { + in.Skip() + out.Patterns = nil + } else { + in.Delim('[') + if out.Patterns == nil { + if !in.IsDelim(']') { + out.Patterns = make([]string, 0, 4) + } else { + out.Patterns = []string{} + } + } else { + out.Patterns = (out.Patterns)[:0] + } + for !in.IsDelim(']') { + var v7 string + v7 = string(in.String()) + out.Patterns = append(out.Patterns, v7) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(out *jwriter.Writer, in SetRequestInterceptionEnabledParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"enabled\":") + out.Bool(bool(in.Enabled)) + if len(in.Patterns) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"patterns\":") + if in.Patterns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.Patterns { + if v8 > 0 { + out.RawByte(',') + } + out.String(string(v9)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( ContinueInterceptedRequestParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ContinueInterceptedRequestParams ) UnmarshalJSON([]byte) error { return nil } -func ( ContinueInterceptedRequestParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ContinueInterceptedRequestParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetRequestInterceptionEnabledParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ContinueInterceptedRequestParams *ContinueInterceptedRequestParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetRequestInterceptionEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(w, v) +} -func ( Cookie ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Cookie ) UnmarshalJSON([]byte) error { return nil } -func ( Cookie ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Cookie ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetRequestInterceptionEnabledParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(&r, v) + return r.Error() +} -type EasyJSON_exporter_Cookie *Cookie +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetRequestInterceptionEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(in *jlexer.Lexer, out *SetExtraHTTPHeadersParams) { + 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 "headers": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.Headers = make(Headers) + } else { + out.Headers = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v10 interface{} + if m, ok := v10.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v10.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v10 = in.Interface() + } + (out.Headers)[key] = v10 + in.WantComma() + } + in.Delim('}') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(out *jwriter.Writer, in SetExtraHTTPHeadersParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headers\":") + if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v11First := true + for v11Name, v11Value := range in.Headers { + if !v11First { + out.RawByte(',') + } + v11First = false + out.String(string(v11Name)) + out.RawByte(':') + if m, ok := v11Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v11Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v11Value)) + } + } + out.RawByte('}') + } + out.RawByte('}') +} -func ( CookieParam ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CookieParam ) UnmarshalJSON([]byte) error { return nil } -func ( CookieParam ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CookieParam ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_CookieParam *CookieParam +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(w, v) +} -func ( DeleteCookiesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* DeleteCookiesParams ) UnmarshalJSON([]byte) error { return nil } -func ( DeleteCookiesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* DeleteCookiesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(&r, v) + return r.Error() +} -type EasyJSON_exporter_DeleteCookiesParams *DeleteCookiesParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(in *jlexer.Lexer, out *SetDataSizeLimitsForTestParams) { + 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 "maxTotalSize": + out.MaxTotalSize = int64(in.Int64()) + case "maxResourceSize": + out.MaxResourceSize = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(out *jwriter.Writer, in SetDataSizeLimitsForTestParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"maxTotalSize\":") + out.Int64(int64(in.MaxTotalSize)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"maxResourceSize\":") + out.Int64(int64(in.MaxResourceSize)) + out.RawByte('}') +} -func ( DisableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* DisableParams ) UnmarshalJSON([]byte) error { return nil } -func ( DisableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* DisableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_DisableParams *DisableParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(w, v) +} -func ( EmulateNetworkConditionsParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EmulateNetworkConditionsParams ) UnmarshalJSON([]byte) error { return nil } -func ( EmulateNetworkConditionsParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EmulateNetworkConditionsParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(&r, v) + return r.Error() +} -type EasyJSON_exporter_EmulateNetworkConditionsParams *EmulateNetworkConditionsParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out *SetCookiesParams) { + 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 "cookies": + if in.IsNull() { + in.Skip() + out.Cookies = nil + } else { + in.Delim('[') + if out.Cookies == nil { + if !in.IsDelim(']') { + out.Cookies = make([]*CookieParam, 0, 8) + } else { + out.Cookies = []*CookieParam{} + } + } else { + out.Cookies = (out.Cookies)[:0] + } + for !in.IsDelim(']') { + var v12 *CookieParam + if in.IsNull() { + in.Skip() + v12 = nil + } else { + if v12 == nil { + v12 = new(CookieParam) + } + (*v12).UnmarshalEasyJSON(in) + } + out.Cookies = append(out.Cookies, v12) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in SetCookiesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cookies\":") + if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v13, v14 := range in.Cookies { + if v13 > 0 { + out.RawByte(',') + } + if v14 == nil { + out.RawString("null") + } else { + (*v14).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} -func ( EnableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EnableParams ) UnmarshalJSON([]byte) error { return nil } -func ( EnableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EnableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EnableParams *EnableParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v) +} -func ( EventDataReceived ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventDataReceived ) UnmarshalJSON([]byte) error { return nil } -func ( EventDataReceived ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventDataReceived ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventDataReceived *EventDataReceived +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out *SetCookieReturns) { + 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 "success": + out.Success = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in SetCookieReturns) { + out.RawByte('{') + first := true + _ = first + if in.Success { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"success\":") + out.Bool(bool(in.Success)) + } + out.RawByte('}') +} -func ( EventEventSourceMessageReceived ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventEventSourceMessageReceived ) UnmarshalJSON([]byte) error { return nil } -func ( EventEventSourceMessageReceived ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventEventSourceMessageReceived ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetCookieReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventEventSourceMessageReceived *EventEventSourceMessageReceived +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetCookieReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v) +} -func ( EventLoadingFailed ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventLoadingFailed ) UnmarshalJSON([]byte) error { return nil } -func ( EventLoadingFailed ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventLoadingFailed ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetCookieReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventLoadingFailed *EventLoadingFailed +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetCookieReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, out *SetCookieParams) { + 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 "name": + out.Name = string(in.String()) + case "value": + out.Value = string(in.String()) + case "url": + out.URL = string(in.String()) + case "domain": + out.Domain = string(in.String()) + case "path": + out.Path = string(in.String()) + case "secure": + out.Secure = bool(in.Bool()) + case "httpOnly": + out.HTTPOnly = bool(in.Bool()) + case "sameSite": + (out.SameSite).UnmarshalEasyJSON(in) + case "expires": + if in.IsNull() { + in.Skip() + out.Expires = nil + } else { + if out.Expires == nil { + out.Expires = new(cdp.TimeSinceEpoch) + } + (*out.Expires).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in SetCookieParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.Domain != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"domain\":") + out.String(string(in.Domain)) + } + if in.Path != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"path\":") + out.String(string(in.Path)) + } + if in.Secure { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"secure\":") + out.Bool(bool(in.Secure)) + } + if in.HTTPOnly { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"httpOnly\":") + out.Bool(bool(in.HTTPOnly)) + } + if in.SameSite != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sameSite\":") + (in.SameSite).MarshalEasyJSON(out) + } + if in.Expires != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"expires\":") + if in.Expires == nil { + out.RawString("null") + } else { + (*in.Expires).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( EventLoadingFinished ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventLoadingFinished ) UnmarshalJSON([]byte) error { return nil } -func ( EventLoadingFinished ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventLoadingFinished ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetCookieParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventLoadingFinished *EventLoadingFinished +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v) +} -func ( EventRequestIntercepted ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventRequestIntercepted ) UnmarshalJSON([]byte) error { return nil } -func ( EventRequestIntercepted ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventRequestIntercepted ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetCookieParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventRequestIntercepted *EventRequestIntercepted +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, out *SetCacheDisabledParams) { + 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 "cacheDisabled": + out.CacheDisabled = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, in SetCacheDisabledParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cacheDisabled\":") + out.Bool(bool(in.CacheDisabled)) + out.RawByte('}') +} -func ( EventRequestServedFromCache ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventRequestServedFromCache ) UnmarshalJSON([]byte) error { return nil } -func ( EventRequestServedFromCache ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventRequestServedFromCache ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventRequestServedFromCache *EventRequestServedFromCache +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v) +} -func ( EventRequestWillBeSent ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventRequestWillBeSent ) UnmarshalJSON([]byte) error { return nil } -func ( EventRequestWillBeSent ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventRequestWillBeSent ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventRequestWillBeSent *EventRequestWillBeSent +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) { + 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 "bypass": + out.Bypass = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SetBypassServiceWorkerParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"bypass\":") + out.Bool(bool(in.Bypass)) + out.RawByte('}') +} -func ( EventResourceChangedPriority ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventResourceChangedPriority ) UnmarshalJSON([]byte) error { return nil } -func ( EventResourceChangedPriority ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventResourceChangedPriority ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventResourceChangedPriority *EventResourceChangedPriority +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v) +} -func ( EventResponseReceived ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventResponseReceived ) UnmarshalJSON([]byte) error { return nil } -func ( EventResponseReceived ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventResponseReceived ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventResponseReceived *EventResponseReceived +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *SetBlockedURLSParams) { + 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 "urls": + if in.IsNull() { + in.Skip() + out.Urls = nil + } else { + in.Delim('[') + if out.Urls == nil { + if !in.IsDelim(']') { + out.Urls = make([]string, 0, 4) + } else { + out.Urls = []string{} + } + } else { + out.Urls = (out.Urls)[:0] + } + for !in.IsDelim(']') { + var v15 string + v15 = string(in.String()) + out.Urls = append(out.Urls, v15) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in SetBlockedURLSParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"urls\":") + if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v16, v17 := range in.Urls { + if v16 > 0 { + out.RawByte(',') + } + out.String(string(v17)) + } + out.RawByte(']') + } + out.RawByte('}') +} -func ( EventWebSocketClosed ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventWebSocketClosed ) UnmarshalJSON([]byte) error { return nil } -func ( EventWebSocketClosed ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventWebSocketClosed ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventWebSocketClosed *EventWebSocketClosed +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v) +} -func ( EventWebSocketCreated ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventWebSocketCreated ) UnmarshalJSON([]byte) error { return nil } -func ( EventWebSocketCreated ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventWebSocketCreated ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventWebSocketCreated *EventWebSocketCreated +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *SecurityDetails) { + 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 "protocol": + out.Protocol = string(in.String()) + case "keyExchange": + out.KeyExchange = string(in.String()) + case "keyExchangeGroup": + out.KeyExchangeGroup = string(in.String()) + case "cipher": + out.Cipher = string(in.String()) + case "mac": + out.Mac = string(in.String()) + case "certificateId": + out.CertificateID = security.CertificateID(in.Int64()) + case "subjectName": + out.SubjectName = string(in.String()) + case "sanList": + if in.IsNull() { + in.Skip() + out.SanList = nil + } else { + in.Delim('[') + if out.SanList == nil { + if !in.IsDelim(']') { + out.SanList = make([]string, 0, 4) + } else { + out.SanList = []string{} + } + } else { + out.SanList = (out.SanList)[:0] + } + for !in.IsDelim(']') { + var v18 string + v18 = string(in.String()) + out.SanList = append(out.SanList, v18) + in.WantComma() + } + in.Delim(']') + } + case "issuer": + out.Issuer = string(in.String()) + case "validFrom": + if in.IsNull() { + in.Skip() + out.ValidFrom = nil + } else { + if out.ValidFrom == nil { + out.ValidFrom = new(cdp.TimeSinceEpoch) + } + (*out.ValidFrom).UnmarshalEasyJSON(in) + } + case "validTo": + if in.IsNull() { + in.Skip() + out.ValidTo = nil + } else { + if out.ValidTo == nil { + out.ValidTo = new(cdp.TimeSinceEpoch) + } + (*out.ValidTo).UnmarshalEasyJSON(in) + } + case "signedCertificateTimestampList": + if in.IsNull() { + in.Skip() + out.SignedCertificateTimestampList = nil + } else { + in.Delim('[') + if out.SignedCertificateTimestampList == nil { + if !in.IsDelim(']') { + out.SignedCertificateTimestampList = make([]*SignedCertificateTimestamp, 0, 8) + } else { + out.SignedCertificateTimestampList = []*SignedCertificateTimestamp{} + } + } else { + out.SignedCertificateTimestampList = (out.SignedCertificateTimestampList)[:0] + } + for !in.IsDelim(']') { + var v19 *SignedCertificateTimestamp + if in.IsNull() { + in.Skip() + v19 = nil + } else { + if v19 == nil { + v19 = new(SignedCertificateTimestamp) + } + (*v19).UnmarshalEasyJSON(in) + } + out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v19) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in SecurityDetails) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"protocol\":") + out.String(string(in.Protocol)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"keyExchange\":") + out.String(string(in.KeyExchange)) + if in.KeyExchangeGroup != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"keyExchangeGroup\":") + out.String(string(in.KeyExchangeGroup)) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cipher\":") + out.String(string(in.Cipher)) + if in.Mac != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"mac\":") + out.String(string(in.Mac)) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"certificateId\":") + out.Int64(int64(in.CertificateID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"subjectName\":") + out.String(string(in.SubjectName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sanList\":") + if in.SanList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v20, v21 := range in.SanList { + if v20 > 0 { + out.RawByte(',') + } + out.String(string(v21)) + } + out.RawByte(']') + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"issuer\":") + out.String(string(in.Issuer)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"validFrom\":") + if in.ValidFrom == nil { + out.RawString("null") + } else { + (*in.ValidFrom).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"validTo\":") + if in.ValidTo == nil { + out.RawString("null") + } else { + (*in.ValidTo).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"signedCertificateTimestampList\":") + if in.SignedCertificateTimestampList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v22, v23 := range in.SignedCertificateTimestampList { + if v22 > 0 { + out.RawByte(',') + } + if v23 == nil { + out.RawString("null") + } else { + (*v23).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} -func ( EventWebSocketFrameError ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventWebSocketFrameError ) UnmarshalJSON([]byte) error { return nil } -func ( EventWebSocketFrameError ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventWebSocketFrameError ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SecurityDetails) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventWebSocketFrameError *EventWebSocketFrameError +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v) +} -func ( EventWebSocketFrameReceived ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventWebSocketFrameReceived ) UnmarshalJSON([]byte) error { return nil } -func ( EventWebSocketFrameReceived ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventWebSocketFrameReceived ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SecurityDetails) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventWebSocketFrameReceived *EventWebSocketFrameReceived +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *Response) { + 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 "url": + out.URL = string(in.String()) + case "status": + out.Status = float64(in.Float64()) + case "statusText": + out.StatusText = string(in.String()) + case "headers": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.Headers = make(Headers) + } else { + out.Headers = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v24 interface{} + if m, ok := v24.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v24.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v24 = in.Interface() + } + (out.Headers)[key] = v24 + in.WantComma() + } + in.Delim('}') + } + case "headersText": + out.HeadersText = string(in.String()) + case "mimeType": + out.MimeType = string(in.String()) + case "requestHeaders": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.RequestHeaders = make(Headers) + } else { + out.RequestHeaders = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v25 interface{} + if m, ok := v25.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v25.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v25 = in.Interface() + } + (out.RequestHeaders)[key] = v25 + in.WantComma() + } + in.Delim('}') + } + case "requestHeadersText": + out.RequestHeadersText = string(in.String()) + case "connectionReused": + out.ConnectionReused = bool(in.Bool()) + case "connectionId": + out.ConnectionID = float64(in.Float64()) + case "remoteIPAddress": + out.RemoteIPAddress = string(in.String()) + case "remotePort": + out.RemotePort = int64(in.Int64()) + case "fromDiskCache": + out.FromDiskCache = bool(in.Bool()) + case "fromServiceWorker": + out.FromServiceWorker = bool(in.Bool()) + case "encodedDataLength": + out.EncodedDataLength = float64(in.Float64()) + case "timing": + if in.IsNull() { + in.Skip() + out.Timing = nil + } else { + if out.Timing == nil { + out.Timing = new(ResourceTiming) + } + (*out.Timing).UnmarshalEasyJSON(in) + } + case "protocol": + out.Protocol = string(in.String()) + case "securityState": + (out.SecurityState).UnmarshalEasyJSON(in) + case "securityDetails": + if in.IsNull() { + in.Skip() + out.SecurityDetails = nil + } else { + if out.SecurityDetails == nil { + out.SecurityDetails = new(SecurityDetails) + } + (*out.SecurityDetails).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in Response) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"status\":") + out.Float64(float64(in.Status)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"statusText\":") + out.String(string(in.StatusText)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headers\":") + if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v26First := true + for v26Name, v26Value := range in.Headers { + if !v26First { + out.RawByte(',') + } + v26First = false + out.String(string(v26Name)) + out.RawByte(':') + if m, ok := v26Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v26Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v26Value)) + } + } + out.RawByte('}') + } + if in.HeadersText != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headersText\":") + out.String(string(in.HeadersText)) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"mimeType\":") + out.String(string(in.MimeType)) + if len(in.RequestHeaders) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestHeaders\":") + if in.RequestHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v27First := true + for v27Name, v27Value := range in.RequestHeaders { + if !v27First { + out.RawByte(',') + } + v27First = false + out.String(string(v27Name)) + out.RawByte(':') + if m, ok := v27Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v27Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v27Value)) + } + } + out.RawByte('}') + } + } + if in.RequestHeadersText != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestHeadersText\":") + out.String(string(in.RequestHeadersText)) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"connectionReused\":") + out.Bool(bool(in.ConnectionReused)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"connectionId\":") + out.Float64(float64(in.ConnectionID)) + if in.RemoteIPAddress != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"remoteIPAddress\":") + out.String(string(in.RemoteIPAddress)) + } + if in.RemotePort != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"remotePort\":") + out.Int64(int64(in.RemotePort)) + } + if in.FromDiskCache { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"fromDiskCache\":") + out.Bool(bool(in.FromDiskCache)) + } + if in.FromServiceWorker { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"fromServiceWorker\":") + out.Bool(bool(in.FromServiceWorker)) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"encodedDataLength\":") + out.Float64(float64(in.EncodedDataLength)) + if in.Timing != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timing\":") + if in.Timing == nil { + out.RawString("null") + } else { + (*in.Timing).MarshalEasyJSON(out) + } + } + if in.Protocol != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"protocol\":") + out.String(string(in.Protocol)) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"securityState\":") + (in.SecurityState).MarshalEasyJSON(out) + if in.SecurityDetails != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"securityDetails\":") + if in.SecurityDetails == nil { + out.RawString("null") + } else { + (*in.SecurityDetails).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( EventWebSocketFrameSent ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventWebSocketFrameSent ) UnmarshalJSON([]byte) error { return nil } -func ( EventWebSocketFrameSent ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventWebSocketFrameSent ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v Response) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventWebSocketFrameSent *EventWebSocketFrameSent +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Response) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v) +} -func ( EventWebSocketHandshakeResponseReceived ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventWebSocketHandshakeResponseReceived ) UnmarshalJSON([]byte) error { return nil } -func ( EventWebSocketHandshakeResponseReceived ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventWebSocketHandshakeResponseReceived ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Response) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventWebSocketHandshakeResponseReceived *EventWebSocketHandshakeResponseReceived +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *ResourceTiming) { + 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 "requestTime": + out.RequestTime = float64(in.Float64()) + case "proxyStart": + out.ProxyStart = float64(in.Float64()) + case "proxyEnd": + out.ProxyEnd = float64(in.Float64()) + case "dnsStart": + out.DNSStart = float64(in.Float64()) + case "dnsEnd": + out.DNSEnd = float64(in.Float64()) + case "connectStart": + out.ConnectStart = float64(in.Float64()) + case "connectEnd": + out.ConnectEnd = float64(in.Float64()) + case "sslStart": + out.SslStart = float64(in.Float64()) + case "sslEnd": + out.SslEnd = float64(in.Float64()) + case "workerStart": + out.WorkerStart = float64(in.Float64()) + case "workerReady": + out.WorkerReady = float64(in.Float64()) + case "sendStart": + out.SendStart = float64(in.Float64()) + case "sendEnd": + out.SendEnd = float64(in.Float64()) + case "pushStart": + out.PushStart = float64(in.Float64()) + case "pushEnd": + out.PushEnd = float64(in.Float64()) + case "receiveHeadersEnd": + out.ReceiveHeadersEnd = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in ResourceTiming) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestTime\":") + out.Float64(float64(in.RequestTime)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"proxyStart\":") + out.Float64(float64(in.ProxyStart)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"proxyEnd\":") + out.Float64(float64(in.ProxyEnd)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"dnsStart\":") + out.Float64(float64(in.DNSStart)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"dnsEnd\":") + out.Float64(float64(in.DNSEnd)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"connectStart\":") + out.Float64(float64(in.ConnectStart)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"connectEnd\":") + out.Float64(float64(in.ConnectEnd)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sslStart\":") + out.Float64(float64(in.SslStart)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sslEnd\":") + out.Float64(float64(in.SslEnd)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"workerStart\":") + out.Float64(float64(in.WorkerStart)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"workerReady\":") + out.Float64(float64(in.WorkerReady)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sendStart\":") + out.Float64(float64(in.SendStart)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sendEnd\":") + out.Float64(float64(in.SendEnd)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pushStart\":") + out.Float64(float64(in.PushStart)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pushEnd\":") + out.Float64(float64(in.PushEnd)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"receiveHeadersEnd\":") + out.Float64(float64(in.ReceiveHeadersEnd)) + out.RawByte('}') +} -func ( EventWebSocketWillSendHandshakeRequest ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventWebSocketWillSendHandshakeRequest ) UnmarshalJSON([]byte) error { return nil } -func ( EventWebSocketWillSendHandshakeRequest ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventWebSocketWillSendHandshakeRequest ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v ResourceTiming) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventWebSocketWillSendHandshakeRequest *EventWebSocketWillSendHandshakeRequest +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v) +} -func ( GetAllCookiesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetAllCookiesParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetAllCookiesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetAllCookiesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ResourceTiming) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetAllCookiesParams *GetAllCookiesParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *Request) { + 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 "url": + out.URL = string(in.String()) + case "method": + out.Method = string(in.String()) + case "headers": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.Headers = make(Headers) + } else { + out.Headers = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v28 interface{} + if m, ok := v28.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v28.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v28 = in.Interface() + } + (out.Headers)[key] = v28 + in.WantComma() + } + in.Delim('}') + } + case "postData": + out.PostData = string(in.String()) + case "mixedContentType": + (out.MixedContentType).UnmarshalEasyJSON(in) + case "initialPriority": + (out.InitialPriority).UnmarshalEasyJSON(in) + case "referrerPolicy": + (out.ReferrerPolicy).UnmarshalEasyJSON(in) + case "isLinkPreload": + out.IsLinkPreload = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in Request) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"method\":") + out.String(string(in.Method)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headers\":") + if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v29First := true + for v29Name, v29Value := range in.Headers { + if !v29First { + out.RawByte(',') + } + v29First = false + out.String(string(v29Name)) + out.RawByte(':') + if m, ok := v29Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v29Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v29Value)) + } + } + out.RawByte('}') + } + if in.PostData != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"postData\":") + out.String(string(in.PostData)) + } + if in.MixedContentType != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"mixedContentType\":") + (in.MixedContentType).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"initialPriority\":") + (in.InitialPriority).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"referrerPolicy\":") + (in.ReferrerPolicy).MarshalEasyJSON(out) + if in.IsLinkPreload { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isLinkPreload\":") + out.Bool(bool(in.IsLinkPreload)) + } + out.RawByte('}') +} -func ( GetAllCookiesReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetAllCookiesReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetAllCookiesReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetAllCookiesReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v Request) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetAllCookiesReturns *GetAllCookiesReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Request) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v) +} -func ( GetCertificateParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetCertificateParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetCertificateParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetCertificateParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Request) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetCertificateParams *GetCertificateParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *ReplayXHRParams) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, in ReplayXHRParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + out.RawByte('}') +} -func ( GetCertificateReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetCertificateReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetCertificateReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetCertificateReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v ReplayXHRParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetCertificateReturns *GetCertificateReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v) +} -func ( GetCookiesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetCookiesParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetCookiesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetCookiesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetCookiesParams *GetCookiesParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, out *Initiator) { + 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 "type": + (out.Type).UnmarshalEasyJSON(in) + case "stack": + if in.IsNull() { + in.Skip() + out.Stack = nil + } else { + if out.Stack == nil { + out.Stack = new(runtime.StackTrace) + } + (*out.Stack).UnmarshalEasyJSON(in) + } + case "url": + out.URL = string(in.String()) + case "lineNumber": + out.LineNumber = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, in Initiator) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + if in.Stack != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"stack\":") + if in.Stack == nil { + out.RawString("null") + } else { + (*in.Stack).MarshalEasyJSON(out) + } + } + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.LineNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lineNumber\":") + out.Float64(float64(in.LineNumber)) + } + out.RawByte('}') +} -func ( GetCookiesReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetCookiesReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetCookiesReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetCookiesReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v Initiator) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetCookiesReturns *GetCookiesReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v) +} -func ( GetResponseBodyParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetResponseBodyParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetResponseBodyParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetResponseBodyParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Initiator) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetResponseBodyParams *GetResponseBodyParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, out *GetResponseBodyReturns) { + 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 "body": + out.Body = string(in.String()) + case "base64Encoded": + out.Base64encoded = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, in GetResponseBodyReturns) { + out.RawByte('{') + first := true + _ = first + if in.Body != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"body\":") + out.String(string(in.Body)) + } + if in.Base64encoded { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"base64Encoded\":") + out.Bool(bool(in.Base64encoded)) + } + out.RawByte('}') +} -func ( GetResponseBodyReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetResponseBodyReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetResponseBodyReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetResponseBodyReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetResponseBodyReturns *GetResponseBodyReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v) +} -func ( Initiator ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Initiator ) UnmarshalJSON([]byte) error { return nil } -func ( Initiator ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Initiator ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v) + return r.Error() +} -type EasyJSON_exporter_Initiator *Initiator +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, out *GetResponseBodyParams) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, in GetResponseBodyParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + out.RawByte('}') +} -func ( ReplayXHRParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ReplayXHRParams ) UnmarshalJSON([]byte) error { return nil } -func ( ReplayXHRParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ReplayXHRParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ReplayXHRParams *ReplayXHRParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v) +} -func ( Request ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Request ) UnmarshalJSON([]byte) error { return nil } -func ( Request ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Request ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v) + return r.Error() +} -type EasyJSON_exporter_Request *Request +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, out *GetCookiesReturns) { + 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 "cookies": + if in.IsNull() { + in.Skip() + out.Cookies = nil + } else { + in.Delim('[') + if out.Cookies == nil { + if !in.IsDelim(']') { + out.Cookies = make([]*Cookie, 0, 8) + } else { + out.Cookies = []*Cookie{} + } + } else { + out.Cookies = (out.Cookies)[:0] + } + for !in.IsDelim(']') { + var v30 *Cookie + if in.IsNull() { + in.Skip() + v30 = nil + } else { + if v30 == nil { + v30 = new(Cookie) + } + (*v30).UnmarshalEasyJSON(in) + } + out.Cookies = append(out.Cookies, v30) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, in GetCookiesReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Cookies) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cookies\":") + if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v31, v32 := range in.Cookies { + if v31 > 0 { + out.RawByte(',') + } + if v32 == nil { + out.RawString("null") + } else { + (*v32).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( ResourceTiming ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ResourceTiming ) UnmarshalJSON([]byte) error { return nil } -func ( ResourceTiming ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ResourceTiming ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetCookiesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ResourceTiming *ResourceTiming +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v) +} -func ( Response ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Response ) UnmarshalJSON([]byte) error { return nil } -func ( Response ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Response ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v) + return r.Error() +} -type EasyJSON_exporter_Response *Response +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, out *GetCookiesParams) { + 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 "urls": + if in.IsNull() { + in.Skip() + out.Urls = nil + } else { + in.Delim('[') + if out.Urls == nil { + if !in.IsDelim(']') { + out.Urls = make([]string, 0, 4) + } else { + out.Urls = []string{} + } + } else { + out.Urls = (out.Urls)[:0] + } + for !in.IsDelim(']') { + var v33 string + v33 = string(in.String()) + out.Urls = append(out.Urls, v33) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, in GetCookiesParams) { + out.RawByte('{') + first := true + _ = first + if len(in.Urls) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"urls\":") + if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v34, v35 := range in.Urls { + if v34 > 0 { + out.RawByte(',') + } + out.String(string(v35)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( SecurityDetails ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SecurityDetails ) UnmarshalJSON([]byte) error { return nil } -func ( SecurityDetails ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SecurityDetails ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SecurityDetails *SecurityDetails +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v) +} -func ( SetBlockedURLSParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBlockedURLSParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetBlockedURLSParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBlockedURLSParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetBlockedURLSParams *SetBlockedURLSParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, out *GetCertificateReturns) { + 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 "tableNames": + if in.IsNull() { + in.Skip() + out.TableNames = nil + } else { + in.Delim('[') + if out.TableNames == nil { + if !in.IsDelim(']') { + out.TableNames = make([]string, 0, 4) + } else { + out.TableNames = []string{} + } + } else { + out.TableNames = (out.TableNames)[:0] + } + for !in.IsDelim(']') { + var v36 string + v36 = string(in.String()) + out.TableNames = append(out.TableNames, v36) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, in GetCertificateReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.TableNames) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"tableNames\":") + if in.TableNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v37, v38 := range in.TableNames { + if v37 > 0 { + out.RawByte(',') + } + out.String(string(v38)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( SetBypassServiceWorkerParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetBypassServiceWorkerParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetBypassServiceWorkerParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetBypassServiceWorkerParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetCertificateReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetBypassServiceWorkerParams *SetBypassServiceWorkerParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v) +} -func ( SetCacheDisabledParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetCacheDisabledParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetCacheDisabledParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetCacheDisabledParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetCacheDisabledParams *SetCacheDisabledParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, out *GetCertificateParams) { + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, in GetCertificateParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + out.RawByte('}') +} -func ( SetCookieParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetCookieParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetCookieParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetCookieParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetCertificateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetCookieParams *SetCookieParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v) +} -func ( SetCookieReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetCookieReturns ) UnmarshalJSON([]byte) error { return nil } -func ( SetCookieReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetCookieReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetCertificateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetCookieReturns *SetCookieReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, out *GetAllCookiesReturns) { + 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 "cookies": + if in.IsNull() { + in.Skip() + out.Cookies = nil + } else { + in.Delim('[') + if out.Cookies == nil { + if !in.IsDelim(']') { + out.Cookies = make([]*Cookie, 0, 8) + } else { + out.Cookies = []*Cookie{} + } + } else { + out.Cookies = (out.Cookies)[:0] + } + for !in.IsDelim(']') { + var v39 *Cookie + if in.IsNull() { + in.Skip() + v39 = nil + } else { + if v39 == nil { + v39 = new(Cookie) + } + (*v39).UnmarshalEasyJSON(in) + } + out.Cookies = append(out.Cookies, v39) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, in GetAllCookiesReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Cookies) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cookies\":") + if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v40, v41 := range in.Cookies { + if v40 > 0 { + out.RawByte(',') + } + if v41 == nil { + out.RawString("null") + } else { + (*v41).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( SetCookiesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetCookiesParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetCookiesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetCookiesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetCookiesParams *SetCookiesParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v) +} -func ( SetDataSizeLimitsForTestParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetDataSizeLimitsForTestParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetDataSizeLimitsForTestParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetDataSizeLimitsForTestParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetDataSizeLimitsForTestParams *SetDataSizeLimitsForTestParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetAllCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, out *GetAllCookiesParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, in GetAllCookiesParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( SetExtraHTTPHeadersParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetExtraHTTPHeadersParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetExtraHTTPHeadersParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetExtraHTTPHeadersParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetAllCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetExtraHTTPHeadersParams *SetExtraHTTPHeadersParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v) +} -func ( SetRequestInterceptionEnabledParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetRequestInterceptionEnabledParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetRequestInterceptionEnabledParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetRequestInterceptionEnabledParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetRequestInterceptionEnabledParams *SetRequestInterceptionEnabledParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "wallTime": + if in.IsNull() { + in.Skip() + out.WallTime = nil + } else { + if out.WallTime == nil { + out.WallTime = new(cdp.TimeSinceEpoch) + } + (*out.WallTime).UnmarshalEasyJSON(in) + } + case "request": + if in.IsNull() { + in.Skip() + out.Request = nil + } else { + if out.Request == nil { + out.Request = new(WebSocketRequest) + } + (*out.Request).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"wallTime\":") + if in.WallTime == nil { + out.RawString("null") + } else { + (*in.WallTime).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"request\":") + if in.Request == nil { + out.RawString("null") + } else { + (*in.Request).MarshalEasyJSON(out) + } + out.RawByte('}') +} -func ( SetUserAgentOverrideParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetUserAgentOverrideParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetUserAgentOverrideParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetUserAgentOverrideParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetUserAgentOverrideParams *SetUserAgentOverrideParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v) +} -func ( SignedCertificateTimestamp ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SignedCertificateTimestamp ) UnmarshalJSON([]byte) error { return nil } -func ( SignedCertificateTimestamp ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SignedCertificateTimestamp ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v) + return r.Error() +} -type EasyJSON_exporter_SignedCertificateTimestamp *SignedCertificateTimestamp +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "response": + if in.IsNull() { + in.Skip() + out.Response = nil + } else { + if out.Response == nil { + out.Response = new(WebSocketResponse) + } + (*out.Response).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"response\":") + if in.Response == nil { + out.RawString("null") + } else { + (*in.Response).MarshalEasyJSON(out) + } + out.RawByte('}') +} -func ( WebSocketFrame ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* WebSocketFrame ) UnmarshalJSON([]byte) error { return nil } -func ( WebSocketFrame ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* WebSocketFrame ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_WebSocketFrame *WebSocketFrame +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v) +} -func ( WebSocketRequest ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* WebSocketRequest ) UnmarshalJSON([]byte) error { return nil } -func ( WebSocketRequest ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* WebSocketRequest ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v) + return r.Error() +} -type EasyJSON_exporter_WebSocketRequest *WebSocketRequest +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, out *EventWebSocketFrameSent) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "response": + if in.IsNull() { + in.Skip() + out.Response = nil + } else { + if out.Response == nil { + out.Response = new(WebSocketFrame) + } + (*out.Response).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, in EventWebSocketFrameSent) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"response\":") + if in.Response == nil { + out.RawString("null") + } else { + (*in.Response).MarshalEasyJSON(out) + } + out.RawByte('}') +} -func ( WebSocketResponse ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* WebSocketResponse ) UnmarshalJSON([]byte) error { return nil } -func ( WebSocketResponse ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* WebSocketResponse ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_WebSocketResponse *WebSocketResponse +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, out *EventWebSocketFrameReceived) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "response": + if in.IsNull() { + in.Skip() + out.Response = nil + } else { + if out.Response == nil { + out.Response = new(WebSocketFrame) + } + (*out.Response).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, in EventWebSocketFrameReceived) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"response\":") + if in.Response == nil { + out.RawString("null") + } else { + (*in.Response).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, out *EventWebSocketFrameError) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "errorMessage": + out.ErrorMessage = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, in EventWebSocketFrameError) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"errorMessage\":") + out.String(string(in.ErrorMessage)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, out *EventWebSocketCreated) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "url": + out.URL = string(in.String()) + case "initiator": + if in.IsNull() { + in.Skip() + out.Initiator = nil + } else { + if out.Initiator == nil { + out.Initiator = new(Initiator) + } + (*out.Initiator).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, in EventWebSocketCreated) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if in.Initiator != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"initiator\":") + if in.Initiator == nil { + out.RawString("null") + } else { + (*in.Initiator).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketCreated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, out *EventWebSocketClosed) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, in EventWebSocketClosed) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketClosed) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, out *EventResponseReceived) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "loaderId": + out.LoaderID = cdp.LoaderID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "type": + (out.Type).UnmarshalEasyJSON(in) + case "response": + if in.IsNull() { + in.Skip() + out.Response = nil + } else { + if out.Response == nil { + out.Response = new(Response) + } + (*out.Response).UnmarshalEasyJSON(in) + } + case "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, in EventResponseReceived) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"loaderId\":") + out.String(string(in.LoaderID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"response\":") + if in.Response == nil { + out.RawString("null") + } else { + (*in.Response).MarshalEasyJSON(out) + } + if in.FrameID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventResponseReceived) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventResponseReceived) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, out *EventResourceChangedPriority) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "newPriority": + (out.NewPriority).UnmarshalEasyJSON(in) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, in EventResourceChangedPriority) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"newPriority\":") + (in.NewPriority).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, out *EventRequestWillBeSent) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "loaderId": + out.LoaderID = cdp.LoaderID(in.String()) + case "documentURL": + out.DocumentURL = string(in.String()) + case "request": + if in.IsNull() { + in.Skip() + out.Request = nil + } else { + if out.Request == nil { + out.Request = new(Request) + } + (*out.Request).UnmarshalEasyJSON(in) + } + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "wallTime": + if in.IsNull() { + in.Skip() + out.WallTime = nil + } else { + if out.WallTime == nil { + out.WallTime = new(cdp.TimeSinceEpoch) + } + (*out.WallTime).UnmarshalEasyJSON(in) + } + case "initiator": + if in.IsNull() { + in.Skip() + out.Initiator = nil + } else { + if out.Initiator == nil { + out.Initiator = new(Initiator) + } + (*out.Initiator).UnmarshalEasyJSON(in) + } + case "redirectResponse": + if in.IsNull() { + in.Skip() + out.RedirectResponse = nil + } else { + if out.RedirectResponse == nil { + out.RedirectResponse = new(Response) + } + (*out.RedirectResponse).UnmarshalEasyJSON(in) + } + case "type": + (out.Type).UnmarshalEasyJSON(in) + case "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, in EventRequestWillBeSent) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"loaderId\":") + out.String(string(in.LoaderID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"documentURL\":") + out.String(string(in.DocumentURL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"request\":") + if in.Request == nil { + out.RawString("null") + } else { + (*in.Request).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"wallTime\":") + if in.WallTime == nil { + out.RawString("null") + } else { + (*in.WallTime).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"initiator\":") + if in.Initiator == nil { + out.RawString("null") + } else { + (*in.Initiator).MarshalEasyJSON(out) + } + if in.RedirectResponse != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"redirectResponse\":") + if in.RedirectResponse == nil { + out.RawString("null") + } else { + (*in.RedirectResponse).MarshalEasyJSON(out) + } + } + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.FrameID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, out *EventRequestServedFromCache) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, in EventRequestServedFromCache) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, out *EventRequestIntercepted) { + 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 "interceptionId": + out.InterceptionID = InterceptionID(in.String()) + case "request": + if in.IsNull() { + in.Skip() + out.Request = nil + } else { + if out.Request == nil { + out.Request = new(Request) + } + (*out.Request).UnmarshalEasyJSON(in) + } + case "resourceType": + (out.ResourceType).UnmarshalEasyJSON(in) + case "isNavigationRequest": + out.IsNavigationRequest = bool(in.Bool()) + case "redirectHeaders": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.RedirectHeaders = make(Headers) + } else { + out.RedirectHeaders = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v42 interface{} + if m, ok := v42.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v42.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v42 = in.Interface() + } + (out.RedirectHeaders)[key] = v42 + in.WantComma() + } + in.Delim('}') + } + case "redirectStatusCode": + out.RedirectStatusCode = int64(in.Int64()) + case "redirectUrl": + out.RedirectURL = string(in.String()) + case "authChallenge": + if in.IsNull() { + in.Skip() + out.AuthChallenge = nil + } else { + if out.AuthChallenge == nil { + out.AuthChallenge = new(AuthChallenge) + } + (*out.AuthChallenge).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in EventRequestIntercepted) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"interceptionId\":") + out.String(string(in.InterceptionID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"request\":") + if in.Request == nil { + out.RawString("null") + } else { + (*in.Request).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"resourceType\":") + (in.ResourceType).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isNavigationRequest\":") + out.Bool(bool(in.IsNavigationRequest)) + if len(in.RedirectHeaders) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"redirectHeaders\":") + if in.RedirectHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v43First := true + for v43Name, v43Value := range in.RedirectHeaders { + if !v43First { + out.RawByte(',') + } + v43First = false + out.String(string(v43Name)) + out.RawByte(':') + if m, ok := v43Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v43Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v43Value)) + } + } + out.RawByte('}') + } + } + if in.RedirectStatusCode != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"redirectStatusCode\":") + out.Int64(int64(in.RedirectStatusCode)) + } + if in.RedirectURL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"redirectUrl\":") + out.String(string(in.RedirectURL)) + } + if in.AuthChallenge != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"authChallenge\":") + if in.AuthChallenge == nil { + out.RawString("null") + } else { + (*in.AuthChallenge).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventRequestIntercepted) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventRequestIntercepted) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventRequestIntercepted) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventRequestIntercepted) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, out *EventLoadingFinished) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "encodedDataLength": + out.EncodedDataLength = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, in EventLoadingFinished) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"encodedDataLength\":") + out.Float64(float64(in.EncodedDataLength)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventLoadingFinished) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, out *EventLoadingFailed) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "type": + (out.Type).UnmarshalEasyJSON(in) + case "errorText": + out.ErrorText = string(in.String()) + case "canceled": + out.Canceled = bool(in.Bool()) + case "blockedReason": + (out.BlockedReason).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, in EventLoadingFailed) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"errorText\":") + out.String(string(in.ErrorText)) + if in.Canceled { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"canceled\":") + out.Bool(bool(in.Canceled)) + } + if in.BlockedReason != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"blockedReason\":") + (in.BlockedReason).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventLoadingFailed) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, out *EventEventSourceMessageReceived) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "eventName": + out.EventName = string(in.String()) + case "eventId": + out.EventID = string(in.String()) + case "data": + out.Data = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in EventEventSourceMessageReceived) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventName\":") + out.String(string(in.EventName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventId\":") + out.String(string(in.EventID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"data\":") + out.String(string(in.Data)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, out *EventDataReceived) { + 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 "requestId": + out.RequestID = RequestID(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + case "dataLength": + out.DataLength = int64(in.Int64()) + case "encodedDataLength": + out.EncodedDataLength = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, in EventDataReceived) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"dataLength\":") + out.Int64(int64(in.DataLength)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"encodedDataLength\":") + out.Int64(int64(in.EncodedDataLength)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventDataReceived) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventDataReceived) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, out *EnableParams) { + 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 "maxTotalBufferSize": + out.MaxTotalBufferSize = int64(in.Int64()) + case "maxResourceBufferSize": + out.MaxResourceBufferSize = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, in EnableParams) { + out.RawByte('{') + first := true + _ = first + if in.MaxTotalBufferSize != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"maxTotalBufferSize\":") + out.Int64(int64(in.MaxTotalBufferSize)) + } + if in.MaxResourceBufferSize != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"maxResourceBufferSize\":") + out.Int64(int64(in.MaxResourceBufferSize)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EnableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) { + 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 "offline": + out.Offline = bool(in.Bool()) + case "latency": + out.Latency = float64(in.Float64()) + case "downloadThroughput": + out.DownloadThroughput = float64(in.Float64()) + case "uploadThroughput": + out.UploadThroughput = float64(in.Float64()) + case "connectionType": + (out.ConnectionType).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, in EmulateNetworkConditionsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"offline\":") + out.Bool(bool(in.Offline)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"latency\":") + out.Float64(float64(in.Latency)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"downloadThroughput\":") + out.Float64(float64(in.DownloadThroughput)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"uploadThroughput\":") + out.Float64(float64(in.UploadThroughput)) + if in.ConnectionType != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"connectionType\":") + (in.ConnectionType).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, out *DisableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in DisableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, out *DeleteCookiesParams) { + 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 "name": + out.Name = string(in.String()) + case "url": + out.URL = string(in.String()) + case "domain": + out.Domain = string(in.String()) + case "path": + out.Path = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in DeleteCookiesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.Domain != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"domain\":") + out.String(string(in.Domain)) + } + if in.Path != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"path\":") + out.String(string(in.Path)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DeleteCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, out *CookieParam) { + 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 "name": + out.Name = string(in.String()) + case "value": + out.Value = string(in.String()) + case "url": + out.URL = string(in.String()) + case "domain": + out.Domain = string(in.String()) + case "path": + out.Path = string(in.String()) + case "secure": + out.Secure = bool(in.Bool()) + case "httpOnly": + out.HTTPOnly = bool(in.Bool()) + case "sameSite": + (out.SameSite).UnmarshalEasyJSON(in) + case "expires": + if in.IsNull() { + in.Skip() + out.Expires = nil + } else { + if out.Expires == nil { + out.Expires = new(cdp.TimeSinceEpoch) + } + (*out.Expires).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, in CookieParam) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.Domain != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"domain\":") + out.String(string(in.Domain)) + } + if in.Path != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"path\":") + out.String(string(in.Path)) + } + if in.Secure { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"secure\":") + out.Bool(bool(in.Secure)) + } + if in.HTTPOnly { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"httpOnly\":") + out.Bool(bool(in.HTTPOnly)) + } + if in.SameSite != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sameSite\":") + (in.SameSite).MarshalEasyJSON(out) + } + if in.Expires != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"expires\":") + if in.Expires == nil { + out.RawString("null") + } else { + (*in.Expires).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CookieParam) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CookieParam) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CookieParam) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CookieParam) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, out *Cookie) { + 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 "name": + out.Name = string(in.String()) + case "value": + out.Value = string(in.String()) + case "domain": + out.Domain = string(in.String()) + case "path": + out.Path = string(in.String()) + case "expires": + out.Expires = float64(in.Float64()) + case "size": + out.Size = int64(in.Int64()) + case "httpOnly": + out.HTTPOnly = bool(in.Bool()) + case "secure": + out.Secure = bool(in.Bool()) + case "session": + out.Session = bool(in.Bool()) + case "sameSite": + (out.SameSite).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, in Cookie) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"domain\":") + out.String(string(in.Domain)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"path\":") + out.String(string(in.Path)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"expires\":") + out.Float64(float64(in.Expires)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"size\":") + out.Int64(int64(in.Size)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"httpOnly\":") + out.Bool(bool(in.HTTPOnly)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"secure\":") + out.Bool(bool(in.Secure)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"session\":") + out.Bool(bool(in.Session)) + if in.SameSite != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sameSite\":") + (in.SameSite).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Cookie) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Cookie) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, out *ContinueInterceptedRequestParams) { + 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 "interceptionId": + out.InterceptionID = InterceptionID(in.String()) + case "errorReason": + (out.ErrorReason).UnmarshalEasyJSON(in) + case "rawResponse": + out.RawResponse = string(in.String()) + case "url": + out.URL = string(in.String()) + case "method": + out.Method = string(in.String()) + case "postData": + out.PostData = string(in.String()) + case "headers": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + if !in.IsDelim('}') { + out.Headers = make(Headers) + } else { + out.Headers = nil + } + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v44 interface{} + if m, ok := v44.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v44.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v44 = in.Interface() + } + (out.Headers)[key] = v44 + in.WantComma() + } + in.Delim('}') + } + case "authChallengeResponse": + if in.IsNull() { + in.Skip() + out.AuthChallengeResponse = nil + } else { + if out.AuthChallengeResponse == nil { + out.AuthChallengeResponse = new(AuthChallengeResponse) + } + (*out.AuthChallengeResponse).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, in ContinueInterceptedRequestParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"interceptionId\":") + out.String(string(in.InterceptionID)) + if in.ErrorReason != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"errorReason\":") + (in.ErrorReason).MarshalEasyJSON(out) + } + if in.RawResponse != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"rawResponse\":") + out.String(string(in.RawResponse)) + } + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.Method != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"method\":") + out.String(string(in.Method)) + } + if in.PostData != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"postData\":") + out.String(string(in.PostData)) + } + if len(in.Headers) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headers\":") + if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v45First := true + for v45Name, v45Value := range in.Headers { + if !v45First { + out.RawByte(',') + } + v45First = false + out.String(string(v45Name)) + out.RawByte(':') + if m, ok := v45Value.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v45Value.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v45Value)) + } + } + out.RawByte('}') + } + } + if in.AuthChallengeResponse != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"authChallengeResponse\":") + if in.AuthChallengeResponse == nil { + out.RawString("null") + } else { + (*in.AuthChallengeResponse).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ContinueInterceptedRequestParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ContinueInterceptedRequestParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ContinueInterceptedRequestParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ContinueInterceptedRequestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, out *ClearBrowserCookiesParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, in ClearBrowserCookiesParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, out *ClearBrowserCacheParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, in ClearBrowserCacheParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, out *CanEmulateNetworkConditionsReturns) { + 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 "result": + out.Result = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, in CanEmulateNetworkConditionsReturns) { + out.RawByte('{') + first := true + _ = first + if in.Result { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + out.Bool(bool(in.Result)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CanEmulateNetworkConditionsReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanEmulateNetworkConditionsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanEmulateNetworkConditionsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanEmulateNetworkConditionsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, out *CanEmulateNetworkConditionsParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, in CanEmulateNetworkConditionsParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CanEmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanEmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanEmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanEmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, out *CanClearBrowserCookiesReturns) { + 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 "result": + out.Result = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, in CanClearBrowserCookiesReturns) { + out.RawByte('{') + first := true + _ = first + if in.Result { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + out.Bool(bool(in.Result)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CanClearBrowserCookiesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanClearBrowserCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanClearBrowserCookiesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanClearBrowserCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, out *CanClearBrowserCookiesParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, in CanClearBrowserCookiesParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CanClearBrowserCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, out *CanClearBrowserCacheReturns) { + 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 "result": + out.Result = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, in CanClearBrowserCacheReturns) { + out.RawByte('{') + first := true + _ = first + if in.Result { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + out.Bool(bool(in.Result)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CanClearBrowserCacheReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanClearBrowserCacheReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanClearBrowserCacheReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanClearBrowserCacheReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(in *jlexer.Lexer, out *CanClearBrowserCacheParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(out *jwriter.Writer, in CanClearBrowserCacheParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CanClearBrowserCacheParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanClearBrowserCacheParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(in *jlexer.Lexer, out *CachedResource) { + 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 "url": + out.URL = string(in.String()) + case "type": + (out.Type).UnmarshalEasyJSON(in) + case "response": + if in.IsNull() { + in.Skip() + out.Response = nil + } else { + if out.Response == nil { + out.Response = new(Response) + } + (*out.Response).UnmarshalEasyJSON(in) + } + case "bodySize": + out.BodySize = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(out *jwriter.Writer, in CachedResource) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + if in.Response != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"response\":") + if in.Response == nil { + out.RawString("null") + } else { + (*in.Response).MarshalEasyJSON(out) + } + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"bodySize\":") + out.Float64(float64(in.BodySize)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CachedResource) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CachedResource) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(in *jlexer.Lexer, out *AuthChallengeResponse) { + 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 "response": + (out.Response).UnmarshalEasyJSON(in) + case "username": + out.Username = string(in.String()) + case "password": + out.Password = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(out *jwriter.Writer, in AuthChallengeResponse) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"response\":") + (in.Response).MarshalEasyJSON(out) + if in.Username != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"username\":") + out.String(string(in.Username)) + } + if in.Password != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"password\":") + out.String(string(in.Password)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AuthChallengeResponse) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(in *jlexer.Lexer, out *AuthChallenge) { + 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 "source": + (out.Source).UnmarshalEasyJSON(in) + case "origin": + out.Origin = string(in.String()) + case "scheme": + out.Scheme = string(in.String()) + case "realm": + out.Realm = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(out *jwriter.Writer, in AuthChallenge) { + out.RawByte('{') + first := true + _ = first + if in.Source != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"source\":") + (in.Source).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scheme\":") + out.String(string(in.Scheme)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"realm\":") + out.String(string(in.Realm)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AuthChallenge) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AuthChallenge) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(l, v) +} diff --git a/cdp/overlay/easyjson.go b/cdp/overlay/easyjson.go index fac7716..0838a04 100644 --- a/cdp/overlay/easyjson.go +++ b/cdp/overlay/easyjson.go @@ -1,156 +1,1892 @@ -// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package -// compilable during generation. +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. -package overlay +package overlay import ( - "github.com/mailru/easyjson/jwriter" - "github.com/mailru/easyjson/jlexer" + json "encoding/json" + cdp "github.com/knq/chromedp/cdp" + dom "github.com/knq/chromedp/cdp/dom" + page "github.com/knq/chromedp/cdp/page" + runtime "github.com/knq/chromedp/cdp/runtime" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" ) -func ( DisableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* DisableParams ) UnmarshalJSON([]byte) error { return nil } -func ( DisableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* DisableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) -type EasyJSON_exporter_DisableParams *DisableParams +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay(in *jlexer.Lexer, out *SetSuspendedParams) { + 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 "suspended": + out.Suspended = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay(out *jwriter.Writer, in SetSuspendedParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"suspended\":") + out.Bool(bool(in.Suspended)) + out.RawByte('}') +} -func ( EnableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EnableParams ) UnmarshalJSON([]byte) error { return nil } -func ( EnableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EnableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetSuspendedParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EnableParams *EnableParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetSuspendedParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay(w, v) +} -func ( EventInspectNodeRequested ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventInspectNodeRequested ) UnmarshalJSON([]byte) error { return nil } -func ( EventInspectNodeRequested ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventInspectNodeRequested ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetSuspendedParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventInspectNodeRequested *EventInspectNodeRequested +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetSuspendedParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay1(in *jlexer.Lexer, out *SetShowViewportSizeOnResizeParams) { + 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 "show": + out.Show = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay1(out *jwriter.Writer, in SetShowViewportSizeOnResizeParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"show\":") + out.Bool(bool(in.Show)) + out.RawByte('}') +} -func ( EventNodeHighlightRequested ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventNodeHighlightRequested ) UnmarshalJSON([]byte) error { return nil } -func ( EventNodeHighlightRequested ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventNodeHighlightRequested ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetShowViewportSizeOnResizeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventNodeHighlightRequested *EventNodeHighlightRequested +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetShowViewportSizeOnResizeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay1(w, v) +} -func ( EventScreenshotRequested ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventScreenshotRequested ) UnmarshalJSON([]byte) error { return nil } -func ( EventScreenshotRequested ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventScreenshotRequested ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetShowViewportSizeOnResizeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay1(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventScreenshotRequested *EventScreenshotRequested +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetShowViewportSizeOnResizeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay2(in *jlexer.Lexer, out *SetShowScrollBottleneckRectsParams) { + 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 "show": + out.Show = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay2(out *jwriter.Writer, in SetShowScrollBottleneckRectsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"show\":") + out.Bool(bool(in.Show)) + out.RawByte('}') +} -func ( GetHighlightObjectForTestParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetHighlightObjectForTestParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetHighlightObjectForTestParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetHighlightObjectForTestParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetShowScrollBottleneckRectsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetHighlightObjectForTestParams *GetHighlightObjectForTestParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetShowScrollBottleneckRectsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay2(w, v) +} -func ( GetHighlightObjectForTestReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetHighlightObjectForTestReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetHighlightObjectForTestReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetHighlightObjectForTestReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetShowScrollBottleneckRectsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay2(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetHighlightObjectForTestReturns *GetHighlightObjectForTestReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetShowScrollBottleneckRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay3(in *jlexer.Lexer, out *SetShowPaintRectsParams) { + 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 "result": + out.Result = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay3(out *jwriter.Writer, in SetShowPaintRectsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + out.Bool(bool(in.Result)) + out.RawByte('}') +} -func ( HideHighlightParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* HideHighlightParams ) UnmarshalJSON([]byte) error { return nil } -func ( HideHighlightParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* HideHighlightParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetShowPaintRectsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_HideHighlightParams *HideHighlightParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetShowPaintRectsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay3(w, v) +} -func ( HighlightConfig ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* HighlightConfig ) UnmarshalJSON([]byte) error { return nil } -func ( HighlightConfig ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* HighlightConfig ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetShowPaintRectsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay3(&r, v) + return r.Error() +} -type EasyJSON_exporter_HighlightConfig *HighlightConfig +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetShowPaintRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay4(in *jlexer.Lexer, out *SetShowFPSCounterParams) { + 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 "show": + out.Show = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay4(out *jwriter.Writer, in SetShowFPSCounterParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"show\":") + out.Bool(bool(in.Show)) + out.RawByte('}') +} -func ( HighlightFrameParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* HighlightFrameParams ) UnmarshalJSON([]byte) error { return nil } -func ( HighlightFrameParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* HighlightFrameParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetShowFPSCounterParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_HighlightFrameParams *HighlightFrameParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetShowFPSCounterParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay4(w, v) +} -func ( HighlightNodeParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* HighlightNodeParams ) UnmarshalJSON([]byte) error { return nil } -func ( HighlightNodeParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* HighlightNodeParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetShowFPSCounterParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay4(&r, v) + return r.Error() +} -type EasyJSON_exporter_HighlightNodeParams *HighlightNodeParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetShowFPSCounterParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay5(in *jlexer.Lexer, out *SetShowDebugBordersParams) { + 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 "show": + out.Show = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay5(out *jwriter.Writer, in SetShowDebugBordersParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"show\":") + out.Bool(bool(in.Show)) + out.RawByte('}') +} -func ( HighlightQuadParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* HighlightQuadParams ) UnmarshalJSON([]byte) error { return nil } -func ( HighlightQuadParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* HighlightQuadParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetShowDebugBordersParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_HighlightQuadParams *HighlightQuadParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetShowDebugBordersParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay5(w, v) +} -func ( HighlightRectParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* HighlightRectParams ) UnmarshalJSON([]byte) error { return nil } -func ( HighlightRectParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* HighlightRectParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetShowDebugBordersParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay5(&r, v) + return r.Error() +} -type EasyJSON_exporter_HighlightRectParams *HighlightRectParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetShowDebugBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay6(in *jlexer.Lexer, out *SetPausedInDebuggerMessageParams) { + 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 "message": + out.Message = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay6(out *jwriter.Writer, in SetPausedInDebuggerMessageParams) { + out.RawByte('{') + first := true + _ = first + if in.Message != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"message\":") + out.String(string(in.Message)) + } + out.RawByte('}') +} -func ( SetInspectModeParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetInspectModeParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetInspectModeParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetInspectModeParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetPausedInDebuggerMessageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetInspectModeParams *SetInspectModeParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetPausedInDebuggerMessageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay6(w, v) +} -func ( SetPausedInDebuggerMessageParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetPausedInDebuggerMessageParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetPausedInDebuggerMessageParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetPausedInDebuggerMessageParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetPausedInDebuggerMessageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay6(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetPausedInDebuggerMessageParams *SetPausedInDebuggerMessageParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetPausedInDebuggerMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay7(in *jlexer.Lexer, out *SetInspectModeParams) { + 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 "mode": + (out.Mode).UnmarshalEasyJSON(in) + case "highlightConfig": + if in.IsNull() { + in.Skip() + out.HighlightConfig = nil + } else { + if out.HighlightConfig == nil { + out.HighlightConfig = new(HighlightConfig) + } + (*out.HighlightConfig).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay7(out *jwriter.Writer, in SetInspectModeParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"mode\":") + (in.Mode).MarshalEasyJSON(out) + if in.HighlightConfig != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"highlightConfig\":") + if in.HighlightConfig == nil { + out.RawString("null") + } else { + (*in.HighlightConfig).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( SetShowDebugBordersParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetShowDebugBordersParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetShowDebugBordersParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetShowDebugBordersParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetInspectModeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetShowDebugBordersParams *SetShowDebugBordersParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay7(w, v) +} -func ( SetShowFPSCounterParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetShowFPSCounterParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetShowFPSCounterParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetShowFPSCounterParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay7(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetShowFPSCounterParams *SetShowFPSCounterParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay8(in *jlexer.Lexer, out *HighlightRectParams) { + 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 "x": + out.X = int64(in.Int64()) + case "y": + out.Y = int64(in.Int64()) + case "width": + out.Width = int64(in.Int64()) + case "height": + out.Height = int64(in.Int64()) + case "color": + if in.IsNull() { + in.Skip() + out.Color = nil + } else { + if out.Color == nil { + out.Color = new(cdp.RGBA) + } + (*out.Color).UnmarshalEasyJSON(in) + } + case "outlineColor": + if in.IsNull() { + in.Skip() + out.OutlineColor = nil + } else { + if out.OutlineColor == nil { + out.OutlineColor = new(cdp.RGBA) + } + (*out.OutlineColor).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay8(out *jwriter.Writer, in HighlightRectParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"x\":") + out.Int64(int64(in.X)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"y\":") + out.Int64(int64(in.Y)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"width\":") + out.Int64(int64(in.Width)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"height\":") + out.Int64(int64(in.Height)) + if in.Color != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"color\":") + if in.Color == nil { + out.RawString("null") + } else { + (*in.Color).MarshalEasyJSON(out) + } + } + if in.OutlineColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"outlineColor\":") + if in.OutlineColor == nil { + out.RawString("null") + } else { + (*in.OutlineColor).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( SetShowPaintRectsParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetShowPaintRectsParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetShowPaintRectsParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetShowPaintRectsParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v HighlightRectParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetShowPaintRectsParams *SetShowPaintRectsParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay8(w, v) +} -func ( SetShowScrollBottleneckRectsParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetShowScrollBottleneckRectsParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetShowScrollBottleneckRectsParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetShowScrollBottleneckRectsParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightRectParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay8(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetShowScrollBottleneckRectsParams *SetShowScrollBottleneckRectsParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay9(in *jlexer.Lexer, out *HighlightQuadParams) { + 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 "quad": + if in.IsNull() { + in.Skip() + out.Quad = nil + } else { + in.Delim('[') + if out.Quad == nil { + if !in.IsDelim(']') { + out.Quad = make(dom.Quad, 0, 8) + } else { + out.Quad = dom.Quad{} + } + } else { + out.Quad = (out.Quad)[:0] + } + for !in.IsDelim(']') { + var v1 float64 + v1 = float64(in.Float64()) + out.Quad = append(out.Quad, v1) + in.WantComma() + } + in.Delim(']') + } + case "color": + if in.IsNull() { + in.Skip() + out.Color = nil + } else { + if out.Color == nil { + out.Color = new(cdp.RGBA) + } + (*out.Color).UnmarshalEasyJSON(in) + } + case "outlineColor": + if in.IsNull() { + in.Skip() + out.OutlineColor = nil + } else { + if out.OutlineColor == nil { + out.OutlineColor = new(cdp.RGBA) + } + (*out.OutlineColor).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay9(out *jwriter.Writer, in HighlightQuadParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"quad\":") + if in.Quad == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.Quad { + if v2 > 0 { + out.RawByte(',') + } + out.Float64(float64(v3)) + } + out.RawByte(']') + } + if in.Color != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"color\":") + if in.Color == nil { + out.RawString("null") + } else { + (*in.Color).MarshalEasyJSON(out) + } + } + if in.OutlineColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"outlineColor\":") + if in.OutlineColor == nil { + out.RawString("null") + } else { + (*in.OutlineColor).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( SetShowViewportSizeOnResizeParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetShowViewportSizeOnResizeParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetShowViewportSizeOnResizeParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetShowViewportSizeOnResizeParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v HighlightQuadParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetShowViewportSizeOnResizeParams *SetShowViewportSizeOnResizeParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay9(w, v) +} -func ( SetSuspendedParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetSuspendedParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetSuspendedParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetSuspendedParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay9(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetSuspendedParams *SetSuspendedParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay10(in *jlexer.Lexer, out *HighlightNodeParams) { + 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 "highlightConfig": + if in.IsNull() { + in.Skip() + out.HighlightConfig = nil + } else { + if out.HighlightConfig == nil { + out.HighlightConfig = new(HighlightConfig) + } + (*out.HighlightConfig).UnmarshalEasyJSON(in) + } + case "nodeId": + (out.NodeID).UnmarshalEasyJSON(in) + case "backendNodeId": + (out.BackendNodeID).UnmarshalEasyJSON(in) + case "objectId": + out.ObjectID = runtime.RemoteObjectID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay10(out *jwriter.Writer, in HighlightNodeParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"highlightConfig\":") + if in.HighlightConfig == nil { + out.RawString("null") + } else { + (*in.HighlightConfig).MarshalEasyJSON(out) + } + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + if in.BackendNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendNodeId\":") + out.Int64(int64(in.BackendNodeID)) + } + if in.ObjectID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectId\":") + out.String(string(in.ObjectID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v HighlightNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay11(in *jlexer.Lexer, out *HighlightFrameParams) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + case "contentColor": + if in.IsNull() { + in.Skip() + out.ContentColor = nil + } else { + if out.ContentColor == nil { + out.ContentColor = new(cdp.RGBA) + } + (*out.ContentColor).UnmarshalEasyJSON(in) + } + case "contentOutlineColor": + if in.IsNull() { + in.Skip() + out.ContentOutlineColor = nil + } else { + if out.ContentOutlineColor == nil { + out.ContentOutlineColor = new(cdp.RGBA) + } + (*out.ContentOutlineColor).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay11(out *jwriter.Writer, in HighlightFrameParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + if in.ContentColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"contentColor\":") + if in.ContentColor == nil { + out.RawString("null") + } else { + (*in.ContentColor).MarshalEasyJSON(out) + } + } + if in.ContentOutlineColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"contentOutlineColor\":") + if in.ContentOutlineColor == nil { + out.RawString("null") + } else { + (*in.ContentOutlineColor).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v HighlightFrameParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightFrameParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightFrameParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay12(in *jlexer.Lexer, out *HighlightConfig) { + 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 "showInfo": + out.ShowInfo = bool(in.Bool()) + case "showRulers": + out.ShowRulers = bool(in.Bool()) + case "showExtensionLines": + out.ShowExtensionLines = bool(in.Bool()) + case "displayAsMaterial": + out.DisplayAsMaterial = bool(in.Bool()) + case "contentColor": + if in.IsNull() { + in.Skip() + out.ContentColor = nil + } else { + if out.ContentColor == nil { + out.ContentColor = new(cdp.RGBA) + } + (*out.ContentColor).UnmarshalEasyJSON(in) + } + case "paddingColor": + if in.IsNull() { + in.Skip() + out.PaddingColor = nil + } else { + if out.PaddingColor == nil { + out.PaddingColor = new(cdp.RGBA) + } + (*out.PaddingColor).UnmarshalEasyJSON(in) + } + case "borderColor": + if in.IsNull() { + in.Skip() + out.BorderColor = nil + } else { + if out.BorderColor == nil { + out.BorderColor = new(cdp.RGBA) + } + (*out.BorderColor).UnmarshalEasyJSON(in) + } + case "marginColor": + if in.IsNull() { + in.Skip() + out.MarginColor = nil + } else { + if out.MarginColor == nil { + out.MarginColor = new(cdp.RGBA) + } + (*out.MarginColor).UnmarshalEasyJSON(in) + } + case "eventTargetColor": + if in.IsNull() { + in.Skip() + out.EventTargetColor = nil + } else { + if out.EventTargetColor == nil { + out.EventTargetColor = new(cdp.RGBA) + } + (*out.EventTargetColor).UnmarshalEasyJSON(in) + } + case "shapeColor": + if in.IsNull() { + in.Skip() + out.ShapeColor = nil + } else { + if out.ShapeColor == nil { + out.ShapeColor = new(cdp.RGBA) + } + (*out.ShapeColor).UnmarshalEasyJSON(in) + } + case "shapeMarginColor": + if in.IsNull() { + in.Skip() + out.ShapeMarginColor = nil + } else { + if out.ShapeMarginColor == nil { + out.ShapeMarginColor = new(cdp.RGBA) + } + (*out.ShapeMarginColor).UnmarshalEasyJSON(in) + } + case "selectorList": + out.SelectorList = string(in.String()) + case "cssGridColor": + if in.IsNull() { + in.Skip() + out.CSSGridColor = nil + } else { + if out.CSSGridColor == nil { + out.CSSGridColor = new(cdp.RGBA) + } + (*out.CSSGridColor).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay12(out *jwriter.Writer, in HighlightConfig) { + out.RawByte('{') + first := true + _ = first + if in.ShowInfo { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"showInfo\":") + out.Bool(bool(in.ShowInfo)) + } + if in.ShowRulers { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"showRulers\":") + out.Bool(bool(in.ShowRulers)) + } + if in.ShowExtensionLines { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"showExtensionLines\":") + out.Bool(bool(in.ShowExtensionLines)) + } + if in.DisplayAsMaterial { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"displayAsMaterial\":") + out.Bool(bool(in.DisplayAsMaterial)) + } + if in.ContentColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"contentColor\":") + if in.ContentColor == nil { + out.RawString("null") + } else { + (*in.ContentColor).MarshalEasyJSON(out) + } + } + if in.PaddingColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"paddingColor\":") + if in.PaddingColor == nil { + out.RawString("null") + } else { + (*in.PaddingColor).MarshalEasyJSON(out) + } + } + if in.BorderColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"borderColor\":") + if in.BorderColor == nil { + out.RawString("null") + } else { + (*in.BorderColor).MarshalEasyJSON(out) + } + } + if in.MarginColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"marginColor\":") + if in.MarginColor == nil { + out.RawString("null") + } else { + (*in.MarginColor).MarshalEasyJSON(out) + } + } + if in.EventTargetColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventTargetColor\":") + if in.EventTargetColor == nil { + out.RawString("null") + } else { + (*in.EventTargetColor).MarshalEasyJSON(out) + } + } + if in.ShapeColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"shapeColor\":") + if in.ShapeColor == nil { + out.RawString("null") + } else { + (*in.ShapeColor).MarshalEasyJSON(out) + } + } + if in.ShapeMarginColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"shapeMarginColor\":") + if in.ShapeMarginColor == nil { + out.RawString("null") + } else { + (*in.ShapeMarginColor).MarshalEasyJSON(out) + } + } + if in.SelectorList != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"selectorList\":") + out.String(string(in.SelectorList)) + } + if in.CSSGridColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cssGridColor\":") + if in.CSSGridColor == nil { + out.RawString("null") + } else { + (*in.CSSGridColor).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v HighlightConfig) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightConfig) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay12(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightConfig) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay12(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay13(in *jlexer.Lexer, out *HideHighlightParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay13(out *jwriter.Writer, in HideHighlightParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v HideHighlightParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HideHighlightParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay14(in *jlexer.Lexer, out *GetHighlightObjectForTestReturns) { + 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 "highlight": + (out.Highlight).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay14(out *jwriter.Writer, in GetHighlightObjectForTestReturns) { + out.RawByte('{') + first := true + _ = first + if (in.Highlight).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"highlight\":") + (in.Highlight).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetHighlightObjectForTestReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay14(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay15(in *jlexer.Lexer, out *GetHighlightObjectForTestParams) { + 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 "nodeId": + (out.NodeID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay15(out *jwriter.Writer, in GetHighlightObjectForTestParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetHighlightObjectForTestParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(in *jlexer.Lexer, out *EventScreenshotRequested) { + 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 "viewport": + if in.IsNull() { + in.Skip() + out.Viewport = nil + } else { + if out.Viewport == nil { + out.Viewport = new(page.Viewport) + } + (*out.Viewport).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(out *jwriter.Writer, in EventScreenshotRequested) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"viewport\":") + if in.Viewport == nil { + out.RawString("null") + } else { + (*in.Viewport).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventScreenshotRequested) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventScreenshotRequested) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventScreenshotRequested) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventScreenshotRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(in *jlexer.Lexer, out *EventNodeHighlightRequested) { + 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 "nodeId": + (out.NodeID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(out *jwriter.Writer, in EventNodeHighlightRequested) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventNodeHighlightRequested) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventNodeHighlightRequested) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventNodeHighlightRequested) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventNodeHighlightRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(in *jlexer.Lexer, out *EventInspectNodeRequested) { + 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 "backendNodeId": + (out.BackendNodeID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(out *jwriter.Writer, in EventInspectNodeRequested) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendNodeId\":") + out.Int64(int64(in.BackendNodeID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventInspectNodeRequested) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventInspectNodeRequested) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventInspectNodeRequested) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventInspectNodeRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(in *jlexer.Lexer, out *EnableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(out *jwriter.Writer, in EnableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EnableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay20(in *jlexer.Lexer, out *DisableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay20(out *jwriter.Writer, in DisableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay20(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay20(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay20(l, v) +} diff --git a/cdp/page/easyjson.go b/cdp/page/easyjson.go index bb96488..ea94855 100644 --- a/cdp/page/easyjson.go +++ b/cdp/page/easyjson.go @@ -1,450 +1,5304 @@ -// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package -// compilable during generation. +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. -package page +package page import ( - "github.com/mailru/easyjson/jwriter" - "github.com/mailru/easyjson/jlexer" + json "encoding/json" + cdp "github.com/knq/chromedp/cdp" + debugger "github.com/knq/chromedp/cdp/debugger" + dom "github.com/knq/chromedp/cdp/dom" + runtime "github.com/knq/chromedp/cdp/runtime" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" ) -func ( AddScriptToEvaluateOnNewDocumentParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* AddScriptToEvaluateOnNewDocumentParams ) UnmarshalJSON([]byte) error { return nil } -func ( AddScriptToEvaluateOnNewDocumentParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* AddScriptToEvaluateOnNewDocumentParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) -type EasyJSON_exporter_AddScriptToEvaluateOnNewDocumentParams *AddScriptToEvaluateOnNewDocumentParams +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage(in *jlexer.Lexer, out *VisualViewport) { + 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 "offsetX": + out.OffsetX = float64(in.Float64()) + case "offsetY": + out.OffsetY = float64(in.Float64()) + case "pageX": + out.PageX = float64(in.Float64()) + case "pageY": + out.PageY = float64(in.Float64()) + case "clientWidth": + out.ClientWidth = float64(in.Float64()) + case "clientHeight": + out.ClientHeight = float64(in.Float64()) + case "scale": + out.Scale = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage(out *jwriter.Writer, in VisualViewport) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"offsetX\":") + out.Float64(float64(in.OffsetX)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"offsetY\":") + out.Float64(float64(in.OffsetY)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageX\":") + out.Float64(float64(in.PageX)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageY\":") + out.Float64(float64(in.PageY)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"clientWidth\":") + out.Float64(float64(in.ClientWidth)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"clientHeight\":") + out.Float64(float64(in.ClientHeight)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scale\":") + out.Float64(float64(in.Scale)) + out.RawByte('}') +} -func ( AddScriptToEvaluateOnNewDocumentReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* AddScriptToEvaluateOnNewDocumentReturns ) UnmarshalJSON([]byte) error { return nil } -func ( AddScriptToEvaluateOnNewDocumentReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* AddScriptToEvaluateOnNewDocumentReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v VisualViewport) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_AddScriptToEvaluateOnNewDocumentReturns *AddScriptToEvaluateOnNewDocumentReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v VisualViewport) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage(w, v) +} -func ( AppManifestError ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* AppManifestError ) UnmarshalJSON([]byte) error { return nil } -func ( AppManifestError ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* AppManifestError ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *VisualViewport) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage(&r, v) + return r.Error() +} -type EasyJSON_exporter_AppManifestError *AppManifestError +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *VisualViewport) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(in *jlexer.Lexer, out *Viewport) { + 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 "x": + out.X = float64(in.Float64()) + case "y": + out.Y = float64(in.Float64()) + case "width": + out.Width = float64(in.Float64()) + case "height": + out.Height = float64(in.Float64()) + case "scale": + out.Scale = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(out *jwriter.Writer, in Viewport) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"x\":") + out.Float64(float64(in.X)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"y\":") + out.Float64(float64(in.Y)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"width\":") + out.Float64(float64(in.Width)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"height\":") + out.Float64(float64(in.Height)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scale\":") + out.Float64(float64(in.Scale)) + out.RawByte('}') +} -func ( BringToFrontParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* BringToFrontParams ) UnmarshalJSON([]byte) error { return nil } -func ( BringToFrontParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* BringToFrontParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v Viewport) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_BringToFrontParams *BringToFrontParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Viewport) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(w, v) +} -func ( CaptureScreenshotParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CaptureScreenshotParams ) UnmarshalJSON([]byte) error { return nil } -func ( CaptureScreenshotParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CaptureScreenshotParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Viewport) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(&r, v) + return r.Error() +} -type EasyJSON_exporter_CaptureScreenshotParams *CaptureScreenshotParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Viewport) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(in *jlexer.Lexer, out *StopScreencastParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(out *jwriter.Writer, in StopScreencastParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( CaptureScreenshotReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CaptureScreenshotReturns ) UnmarshalJSON([]byte) error { return nil } -func ( CaptureScreenshotReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CaptureScreenshotReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StopScreencastParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_CaptureScreenshotReturns *CaptureScreenshotReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(w, v) +} -func ( CreateIsolatedWorldParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CreateIsolatedWorldParams ) UnmarshalJSON([]byte) error { return nil } -func ( CreateIsolatedWorldParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CreateIsolatedWorldParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopScreencastParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(&r, v) + return r.Error() +} -type EasyJSON_exporter_CreateIsolatedWorldParams *CreateIsolatedWorldParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(in *jlexer.Lexer, out *StopLoadingParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(out *jwriter.Writer, in StopLoadingParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( CreateIsolatedWorldReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CreateIsolatedWorldReturns ) UnmarshalJSON([]byte) error { return nil } -func ( CreateIsolatedWorldReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CreateIsolatedWorldReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StopLoadingParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_CreateIsolatedWorldReturns *CreateIsolatedWorldReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(w, v) +} -func ( DisableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* DisableParams ) UnmarshalJSON([]byte) error { return nil } -func ( DisableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* DisableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopLoadingParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(&r, v) + return r.Error() +} -type EasyJSON_exporter_DisableParams *DisableParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopLoadingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(in *jlexer.Lexer, out *StartScreencastParams) { + 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 "format": + (out.Format).UnmarshalEasyJSON(in) + case "quality": + out.Quality = int64(in.Int64()) + case "maxWidth": + out.MaxWidth = int64(in.Int64()) + case "maxHeight": + out.MaxHeight = int64(in.Int64()) + case "everyNthFrame": + out.EveryNthFrame = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(out *jwriter.Writer, in StartScreencastParams) { + out.RawByte('{') + first := true + _ = first + if in.Format != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"format\":") + (in.Format).MarshalEasyJSON(out) + } + if in.Quality != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"quality\":") + out.Int64(int64(in.Quality)) + } + if in.MaxWidth != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"maxWidth\":") + out.Int64(int64(in.MaxWidth)) + } + if in.MaxHeight != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"maxHeight\":") + out.Int64(int64(in.MaxHeight)) + } + if in.EveryNthFrame != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"everyNthFrame\":") + out.Int64(int64(in.EveryNthFrame)) + } + out.RawByte('}') +} -func ( EnableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EnableParams ) UnmarshalJSON([]byte) error { return nil } -func ( EnableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EnableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StartScreencastParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EnableParams *EnableParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(w, v) +} -func ( EventDomContentEventFired ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventDomContentEventFired ) UnmarshalJSON([]byte) error { return nil } -func ( EventDomContentEventFired ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventDomContentEventFired ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartScreencastParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventDomContentEventFired *EventDomContentEventFired +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(in *jlexer.Lexer, out *SetDownloadBehaviorParams) { + 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 "behavior": + (out.Behavior).UnmarshalEasyJSON(in) + case "downloadPath": + out.DownloadPath = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(out *jwriter.Writer, in SetDownloadBehaviorParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"behavior\":") + (in.Behavior).MarshalEasyJSON(out) + if in.DownloadPath != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"downloadPath\":") + out.String(string(in.DownloadPath)) + } + out.RawByte('}') +} -func ( EventFrameAttached ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventFrameAttached ) UnmarshalJSON([]byte) error { return nil } -func ( EventFrameAttached ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventFrameAttached ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetDownloadBehaviorParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventFrameAttached *EventFrameAttached +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetDownloadBehaviorParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(w, v) +} -func ( EventFrameClearedScheduledNavigation ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventFrameClearedScheduledNavigation ) UnmarshalJSON([]byte) error { return nil } -func ( EventFrameClearedScheduledNavigation ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventFrameClearedScheduledNavigation ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetDownloadBehaviorParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventFrameClearedScheduledNavigation *EventFrameClearedScheduledNavigation +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDownloadBehaviorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(in *jlexer.Lexer, out *SetDocumentContentParams) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + case "html": + out.HTML = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(out *jwriter.Writer, in SetDocumentContentParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"html\":") + out.String(string(in.HTML)) + out.RawByte('}') +} -func ( EventFrameDetached ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventFrameDetached ) UnmarshalJSON([]byte) error { return nil } -func ( EventFrameDetached ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventFrameDetached ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetDocumentContentParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventFrameDetached *EventFrameDetached +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(w, v) +} -func ( EventFrameNavigated ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventFrameNavigated ) UnmarshalJSON([]byte) error { return nil } -func ( EventFrameNavigated ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventFrameNavigated ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventFrameNavigated *EventFrameNavigated +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDocumentContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(in *jlexer.Lexer, out *SetAutoAttachToCreatedPagesParams) { + 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 "autoAttach": + out.AutoAttach = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(out *jwriter.Writer, in SetAutoAttachToCreatedPagesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"autoAttach\":") + out.Bool(bool(in.AutoAttach)) + out.RawByte('}') +} -func ( EventFrameResized ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventFrameResized ) UnmarshalJSON([]byte) error { return nil } -func ( EventFrameResized ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventFrameResized ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetAutoAttachToCreatedPagesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventFrameResized *EventFrameResized +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAutoAttachToCreatedPagesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(w, v) +} -func ( EventFrameScheduledNavigation ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventFrameScheduledNavigation ) UnmarshalJSON([]byte) error { return nil } -func ( EventFrameScheduledNavigation ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventFrameScheduledNavigation ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAutoAttachToCreatedPagesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventFrameScheduledNavigation *EventFrameScheduledNavigation +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetAutoAttachToCreatedPagesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(in *jlexer.Lexer, out *SetAdBlockingEnabledParams) { + 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 "enabled": + out.Enabled = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(out *jwriter.Writer, in SetAdBlockingEnabledParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"enabled\":") + out.Bool(bool(in.Enabled)) + out.RawByte('}') +} -func ( EventFrameStartedLoading ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventFrameStartedLoading ) UnmarshalJSON([]byte) error { return nil } -func ( EventFrameStartedLoading ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventFrameStartedLoading ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SetAdBlockingEnabledParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventFrameStartedLoading *EventFrameStartedLoading +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAdBlockingEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(w, v) +} -func ( EventFrameStoppedLoading ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventFrameStoppedLoading ) UnmarshalJSON([]byte) error { return nil } -func ( EventFrameStoppedLoading ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventFrameStoppedLoading ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAdBlockingEnabledParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventFrameStoppedLoading *EventFrameStoppedLoading +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetAdBlockingEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(in *jlexer.Lexer, out *SearchInResourceReturns) { + 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 "result": + if in.IsNull() { + in.Skip() + out.Result = nil + } else { + in.Delim('[') + if out.Result == nil { + if !in.IsDelim(']') { + out.Result = make([]*debugger.SearchMatch, 0, 8) + } else { + out.Result = []*debugger.SearchMatch{} + } + } else { + out.Result = (out.Result)[:0] + } + for !in.IsDelim(']') { + var v1 *debugger.SearchMatch + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(debugger.SearchMatch) + } + (*v1).UnmarshalEasyJSON(in) + } + out.Result = append(out.Result, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(out *jwriter.Writer, in SearchInResourceReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Result) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.Result { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( EventInterstitialHidden ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventInterstitialHidden ) UnmarshalJSON([]byte) error { return nil } -func ( EventInterstitialHidden ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventInterstitialHidden ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SearchInResourceReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventInterstitialHidden *EventInterstitialHidden +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchInResourceReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(w, v) +} -func ( EventInterstitialShown ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventInterstitialShown ) UnmarshalJSON([]byte) error { return nil } -func ( EventInterstitialShown ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventInterstitialShown ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchInResourceReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventInterstitialShown *EventInterstitialShown +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SearchInResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(in *jlexer.Lexer, out *SearchInResourceParams) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + case "url": + out.URL = string(in.String()) + case "query": + out.Query = string(in.String()) + case "caseSensitive": + out.CaseSensitive = bool(in.Bool()) + case "isRegex": + out.IsRegex = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(out *jwriter.Writer, in SearchInResourceParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"query\":") + out.String(string(in.Query)) + if in.CaseSensitive { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"caseSensitive\":") + out.Bool(bool(in.CaseSensitive)) + } + if in.IsRegex { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isRegex\":") + out.Bool(bool(in.IsRegex)) + } + out.RawByte('}') +} -func ( EventJavascriptDialogClosed ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventJavascriptDialogClosed ) UnmarshalJSON([]byte) error { return nil } -func ( EventJavascriptDialogClosed ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventJavascriptDialogClosed ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v SearchInResourceParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventJavascriptDialogClosed *EventJavascriptDialogClosed +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(w, v) +} -func ( EventJavascriptDialogOpening ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventJavascriptDialogOpening ) UnmarshalJSON([]byte) error { return nil } -func ( EventJavascriptDialogOpening ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventJavascriptDialogOpening ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventJavascriptDialogOpening *EventJavascriptDialogOpening +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SearchInResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(in *jlexer.Lexer, out *ScreencastFrameMetadata) { + 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 "offsetTop": + out.OffsetTop = float64(in.Float64()) + case "pageScaleFactor": + out.PageScaleFactor = float64(in.Float64()) + case "deviceWidth": + out.DeviceWidth = float64(in.Float64()) + case "deviceHeight": + out.DeviceHeight = float64(in.Float64()) + case "scrollOffsetX": + out.ScrollOffsetX = float64(in.Float64()) + case "scrollOffsetY": + out.ScrollOffsetY = float64(in.Float64()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.TimeSinceEpoch) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(out *jwriter.Writer, in ScreencastFrameMetadata) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"offsetTop\":") + out.Float64(float64(in.OffsetTop)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageScaleFactor\":") + out.Float64(float64(in.PageScaleFactor)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"deviceWidth\":") + out.Float64(float64(in.DeviceWidth)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"deviceHeight\":") + out.Float64(float64(in.DeviceHeight)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scrollOffsetX\":") + out.Float64(float64(in.ScrollOffsetX)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scrollOffsetY\":") + out.Float64(float64(in.ScrollOffsetY)) + if in.Timestamp != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( EventLifecycleEvent ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventLifecycleEvent ) UnmarshalJSON([]byte) error { return nil } -func ( EventLifecycleEvent ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventLifecycleEvent ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v ScreencastFrameMetadata) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventLifecycleEvent *EventLifecycleEvent +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScreencastFrameMetadata) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(w, v) +} -func ( EventLoadEventFired ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventLoadEventFired ) UnmarshalJSON([]byte) error { return nil } -func ( EventLoadEventFired ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventLoadEventFired ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScreencastFrameMetadata) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventLoadEventFired *EventLoadEventFired +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScreencastFrameMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(in *jlexer.Lexer, out *ScreencastFrameAckParams) { + 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 "sessionId": + out.SessionID = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(out *jwriter.Writer, in ScreencastFrameAckParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sessionId\":") + out.Int64(int64(in.SessionID)) + out.RawByte('}') +} -func ( EventScreencastFrame ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventScreencastFrame ) UnmarshalJSON([]byte) error { return nil } -func ( EventScreencastFrame ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventScreencastFrame ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventScreencastFrame *EventScreencastFrame +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(w, v) +} -func ( EventScreencastVisibilityChanged ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventScreencastVisibilityChanged ) UnmarshalJSON([]byte) error { return nil } -func ( EventScreencastVisibilityChanged ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventScreencastVisibilityChanged ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventScreencastVisibilityChanged *EventScreencastVisibilityChanged +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScreencastFrameAckParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(in *jlexer.Lexer, out *RequestAppBannerParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(out *jwriter.Writer, in RequestAppBannerParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( FrameResource ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* FrameResource ) UnmarshalJSON([]byte) error { return nil } -func ( FrameResource ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* FrameResource ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v RequestAppBannerParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_FrameResource *FrameResource +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestAppBannerParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(w, v) +} -func ( FrameResourceTree ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* FrameResourceTree ) UnmarshalJSON([]byte) error { return nil } -func ( FrameResourceTree ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* FrameResourceTree ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestAppBannerParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(&r, v) + return r.Error() +} -type EasyJSON_exporter_FrameResourceTree *FrameResourceTree +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestAppBannerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(in *jlexer.Lexer, out *RemoveScriptToEvaluateOnNewDocumentParams) { + 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 "identifier": + out.Identifier = ScriptIdentifier(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(out *jwriter.Writer, in RemoveScriptToEvaluateOnNewDocumentParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"identifier\":") + out.String(string(in.Identifier)) + out.RawByte('}') +} -func ( GetAppManifestParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetAppManifestParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetAppManifestParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetAppManifestParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v RemoveScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetAppManifestParams *GetAppManifestParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(w, v) +} -func ( GetAppManifestReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetAppManifestReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetAppManifestReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetAppManifestReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetAppManifestReturns *GetAppManifestReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(in *jlexer.Lexer, out *ReloadParams) { + 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 "ignoreCache": + out.IgnoreCache = bool(in.Bool()) + case "scriptToEvaluateOnLoad": + out.ScriptToEvaluateOnLoad = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(out *jwriter.Writer, in ReloadParams) { + out.RawByte('{') + first := true + _ = first + if in.IgnoreCache { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ignoreCache\":") + out.Bool(bool(in.IgnoreCache)) + } + if in.ScriptToEvaluateOnLoad != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptToEvaluateOnLoad\":") + out.String(string(in.ScriptToEvaluateOnLoad)) + } + out.RawByte('}') +} -func ( GetLayoutMetricsParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetLayoutMetricsParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetLayoutMetricsParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetLayoutMetricsParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v ReloadParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetLayoutMetricsParams *GetLayoutMetricsParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(w, v) +} -func ( GetLayoutMetricsReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetLayoutMetricsReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetLayoutMetricsReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetLayoutMetricsReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ReloadParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetLayoutMetricsReturns *GetLayoutMetricsReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(in *jlexer.Lexer, out *PrintToPDFReturns) { + 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 "data": + out.Data = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(out *jwriter.Writer, in PrintToPDFReturns) { + out.RawByte('{') + first := true + _ = first + if in.Data != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"data\":") + out.String(string(in.Data)) + } + out.RawByte('}') +} -func ( GetNavigationHistoryParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetNavigationHistoryParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetNavigationHistoryParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetNavigationHistoryParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v PrintToPDFReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetNavigationHistoryParams *GetNavigationHistoryParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PrintToPDFReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(w, v) +} -func ( GetNavigationHistoryReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetNavigationHistoryReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetNavigationHistoryReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetNavigationHistoryReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PrintToPDFReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetNavigationHistoryReturns *GetNavigationHistoryReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PrintToPDFReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(in *jlexer.Lexer, out *PrintToPDFParams) { + 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 "landscape": + out.Landscape = bool(in.Bool()) + case "displayHeaderFooter": + out.DisplayHeaderFooter = bool(in.Bool()) + case "printBackground": + out.PrintBackground = bool(in.Bool()) + case "scale": + out.Scale = float64(in.Float64()) + case "paperWidth": + out.PaperWidth = float64(in.Float64()) + case "paperHeight": + out.PaperHeight = float64(in.Float64()) + case "marginTop": + out.MarginTop = float64(in.Float64()) + case "marginBottom": + out.MarginBottom = float64(in.Float64()) + case "marginLeft": + out.MarginLeft = float64(in.Float64()) + case "marginRight": + out.MarginRight = float64(in.Float64()) + case "pageRanges": + out.PageRanges = string(in.String()) + case "ignoreInvalidPageRanges": + out.IgnoreInvalidPageRanges = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(out *jwriter.Writer, in PrintToPDFParams) { + out.RawByte('{') + first := true + _ = first + if in.Landscape { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"landscape\":") + out.Bool(bool(in.Landscape)) + } + if in.DisplayHeaderFooter { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"displayHeaderFooter\":") + out.Bool(bool(in.DisplayHeaderFooter)) + } + if in.PrintBackground { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"printBackground\":") + out.Bool(bool(in.PrintBackground)) + } + if in.Scale != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scale\":") + out.Float64(float64(in.Scale)) + } + if in.PaperWidth != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"paperWidth\":") + out.Float64(float64(in.PaperWidth)) + } + if in.PaperHeight != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"paperHeight\":") + out.Float64(float64(in.PaperHeight)) + } + if in.MarginTop != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"marginTop\":") + out.Float64(float64(in.MarginTop)) + } + if in.MarginBottom != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"marginBottom\":") + out.Float64(float64(in.MarginBottom)) + } + if in.MarginLeft != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"marginLeft\":") + out.Float64(float64(in.MarginLeft)) + } + if in.MarginRight != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"marginRight\":") + out.Float64(float64(in.MarginRight)) + } + if in.PageRanges != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageRanges\":") + out.String(string(in.PageRanges)) + } + if in.IgnoreInvalidPageRanges { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ignoreInvalidPageRanges\":") + out.Bool(bool(in.IgnoreInvalidPageRanges)) + } + out.RawByte('}') +} -func ( GetResourceContentParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetResourceContentParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetResourceContentParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetResourceContentParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v PrintToPDFParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetResourceContentParams *GetResourceContentParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PrintToPDFParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(w, v) +} -func ( GetResourceContentReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetResourceContentReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetResourceContentReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetResourceContentReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PrintToPDFParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetResourceContentReturns *GetResourceContentReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PrintToPDFParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(in *jlexer.Lexer, out *NavigationEntry) { + 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 "id": + out.ID = int64(in.Int64()) + case "url": + out.URL = string(in.String()) + case "userTypedURL": + out.UserTypedURL = string(in.String()) + case "title": + out.Title = string(in.String()) + case "transitionType": + (out.TransitionType).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(out *jwriter.Writer, in NavigationEntry) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.Int64(int64(in.ID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"userTypedURL\":") + out.String(string(in.UserTypedURL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"title\":") + out.String(string(in.Title)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"transitionType\":") + (in.TransitionType).MarshalEasyJSON(out) + out.RawByte('}') +} -func ( GetResourceTreeParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetResourceTreeParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetResourceTreeParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetResourceTreeParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v NavigationEntry) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetResourceTreeParams *GetResourceTreeParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v NavigationEntry) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(w, v) +} -func ( GetResourceTreeReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetResourceTreeReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetResourceTreeReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetResourceTreeReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *NavigationEntry) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetResourceTreeReturns *GetResourceTreeReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *NavigationEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(in *jlexer.Lexer, out *NavigateToHistoryEntryParams) { + 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 "entryId": + out.EntryID = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(out *jwriter.Writer, in NavigateToHistoryEntryParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"entryId\":") + out.Int64(int64(in.EntryID)) + out.RawByte('}') +} -func ( HandleJavaScriptDialogParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* HandleJavaScriptDialogParams ) UnmarshalJSON([]byte) error { return nil } -func ( HandleJavaScriptDialogParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* HandleJavaScriptDialogParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_HandleJavaScriptDialogParams *HandleJavaScriptDialogParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(w, v) +} -func ( LayoutViewport ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* LayoutViewport ) UnmarshalJSON([]byte) error { return nil } -func ( LayoutViewport ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* LayoutViewport ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(&r, v) + return r.Error() +} -type EasyJSON_exporter_LayoutViewport *LayoutViewport +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(in *jlexer.Lexer, out *NavigateReturns) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(out *jwriter.Writer, in NavigateReturns) { + out.RawByte('{') + first := true + _ = first + if in.FrameID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + } + out.RawByte('}') +} -func ( NavigateParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* NavigateParams ) UnmarshalJSON([]byte) error { return nil } -func ( NavigateParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* NavigateParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v NavigateReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_NavigateParams *NavigateParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(w, v) +} -func ( NavigateReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* NavigateReturns ) UnmarshalJSON([]byte) error { return nil } -func ( NavigateReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* NavigateReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *NavigateReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(&r, v) + return r.Error() +} -type EasyJSON_exporter_NavigateReturns *NavigateReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *NavigateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(in *jlexer.Lexer, out *NavigateParams) { + 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 "url": + out.URL = string(in.String()) + case "referrer": + out.Referrer = string(in.String()) + case "transitionType": + (out.TransitionType).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(out *jwriter.Writer, in NavigateParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if in.Referrer != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"referrer\":") + out.String(string(in.Referrer)) + } + if in.TransitionType != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"transitionType\":") + (in.TransitionType).MarshalEasyJSON(out) + } + out.RawByte('}') +} -func ( NavigateToHistoryEntryParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* NavigateToHistoryEntryParams ) UnmarshalJSON([]byte) error { return nil } -func ( NavigateToHistoryEntryParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* NavigateToHistoryEntryParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v NavigateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_NavigateToHistoryEntryParams *NavigateToHistoryEntryParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(w, v) +} -func ( NavigationEntry ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* NavigationEntry ) UnmarshalJSON([]byte) error { return nil } -func ( NavigationEntry ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* NavigationEntry ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *NavigateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(&r, v) + return r.Error() +} -type EasyJSON_exporter_NavigationEntry *NavigationEntry +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(in *jlexer.Lexer, out *LayoutViewport) { + 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 "pageX": + out.PageX = int64(in.Int64()) + case "pageY": + out.PageY = int64(in.Int64()) + case "clientWidth": + out.ClientWidth = int64(in.Int64()) + case "clientHeight": + out.ClientHeight = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(out *jwriter.Writer, in LayoutViewport) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageX\":") + out.Int64(int64(in.PageX)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageY\":") + out.Int64(int64(in.PageY)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"clientWidth\":") + out.Int64(int64(in.ClientWidth)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"clientHeight\":") + out.Int64(int64(in.ClientHeight)) + out.RawByte('}') +} -func ( PrintToPDFParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* PrintToPDFParams ) UnmarshalJSON([]byte) error { return nil } -func ( PrintToPDFParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* PrintToPDFParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v LayoutViewport) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_PrintToPDFParams *PrintToPDFParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(w, v) +} -func ( PrintToPDFReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* PrintToPDFReturns ) UnmarshalJSON([]byte) error { return nil } -func ( PrintToPDFReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* PrintToPDFReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *LayoutViewport) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(&r, v) + return r.Error() +} -type EasyJSON_exporter_PrintToPDFReturns *PrintToPDFReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *LayoutViewport) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(in *jlexer.Lexer, out *HandleJavaScriptDialogParams) { + 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 "accept": + out.Accept = bool(in.Bool()) + case "promptText": + out.PromptText = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(out *jwriter.Writer, in HandleJavaScriptDialogParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"accept\":") + out.Bool(bool(in.Accept)) + if in.PromptText != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"promptText\":") + out.String(string(in.PromptText)) + } + out.RawByte('}') +} -func ( ReloadParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ReloadParams ) UnmarshalJSON([]byte) error { return nil } -func ( ReloadParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ReloadParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ReloadParams *ReloadParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(w, v) +} -func ( RemoveScriptToEvaluateOnNewDocumentParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* RemoveScriptToEvaluateOnNewDocumentParams ) UnmarshalJSON([]byte) error { return nil } -func ( RemoveScriptToEvaluateOnNewDocumentParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* RemoveScriptToEvaluateOnNewDocumentParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(&r, v) + return r.Error() +} -type EasyJSON_exporter_RemoveScriptToEvaluateOnNewDocumentParams *RemoveScriptToEvaluateOnNewDocumentParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(in *jlexer.Lexer, out *GetResourceTreeReturns) { + 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 "frameTree": + if in.IsNull() { + in.Skip() + out.FrameTree = nil + } else { + if out.FrameTree == nil { + out.FrameTree = new(FrameResourceTree) + } + (*out.FrameTree).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(out *jwriter.Writer, in GetResourceTreeReturns) { + out.RawByte('{') + first := true + _ = first + if in.FrameTree != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameTree\":") + if in.FrameTree == nil { + out.RawString("null") + } else { + (*in.FrameTree).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( RequestAppBannerParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* RequestAppBannerParams ) UnmarshalJSON([]byte) error { return nil } -func ( RequestAppBannerParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* RequestAppBannerParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_RequestAppBannerParams *RequestAppBannerParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(w, v) +} -func ( ScreencastFrameAckParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ScreencastFrameAckParams ) UnmarshalJSON([]byte) error { return nil } -func ( ScreencastFrameAckParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ScreencastFrameAckParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(&r, v) + return r.Error() +} -type EasyJSON_exporter_ScreencastFrameAckParams *ScreencastFrameAckParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResourceTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(in *jlexer.Lexer, out *GetResourceTreeParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(out *jwriter.Writer, in GetResourceTreeParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( ScreencastFrameMetadata ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ScreencastFrameMetadata ) UnmarshalJSON([]byte) error { return nil } -func ( ScreencastFrameMetadata ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ScreencastFrameMetadata ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetResourceTreeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ScreencastFrameMetadata *ScreencastFrameMetadata +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(w, v) +} -func ( SearchInResourceParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SearchInResourceParams ) UnmarshalJSON([]byte) error { return nil } -func ( SearchInResourceParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SearchInResourceParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(&r, v) + return r.Error() +} -type EasyJSON_exporter_SearchInResourceParams *SearchInResourceParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(in *jlexer.Lexer, out *GetResourceContentReturns) { + 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 "content": + out.Content = string(in.String()) + case "base64Encoded": + out.Base64encoded = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(out *jwriter.Writer, in GetResourceContentReturns) { + out.RawByte('{') + first := true + _ = first + if in.Content != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"content\":") + out.String(string(in.Content)) + } + if in.Base64encoded { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"base64Encoded\":") + out.Bool(bool(in.Base64encoded)) + } + out.RawByte('}') +} -func ( SearchInResourceReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SearchInResourceReturns ) UnmarshalJSON([]byte) error { return nil } -func ( SearchInResourceReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SearchInResourceReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetResourceContentReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SearchInResourceReturns *SearchInResourceReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(w, v) +} -func ( SetAdBlockingEnabledParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetAdBlockingEnabledParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetAdBlockingEnabledParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetAdBlockingEnabledParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetAdBlockingEnabledParams *SetAdBlockingEnabledParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(in *jlexer.Lexer, out *GetResourceContentParams) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + case "url": + out.URL = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(out *jwriter.Writer, in GetResourceContentParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + out.RawByte('}') +} -func ( SetAutoAttachToCreatedPagesParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetAutoAttachToCreatedPagesParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetAutoAttachToCreatedPagesParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetAutoAttachToCreatedPagesParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetResourceContentParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetAutoAttachToCreatedPagesParams *SetAutoAttachToCreatedPagesParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(w, v) +} -func ( SetDocumentContentParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetDocumentContentParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetDocumentContentParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetDocumentContentParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(&r, v) + return r.Error() +} -type EasyJSON_exporter_SetDocumentContentParams *SetDocumentContentParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(in *jlexer.Lexer, out *GetNavigationHistoryReturns) { + 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 "currentIndex": + out.CurrentIndex = int64(in.Int64()) + case "entries": + if in.IsNull() { + in.Skip() + out.Entries = nil + } else { + in.Delim('[') + if out.Entries == nil { + if !in.IsDelim(']') { + out.Entries = make([]*NavigationEntry, 0, 8) + } else { + out.Entries = []*NavigationEntry{} + } + } else { + out.Entries = (out.Entries)[:0] + } + for !in.IsDelim(']') { + var v4 *NavigationEntry + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(NavigationEntry) + } + (*v4).UnmarshalEasyJSON(in) + } + out.Entries = append(out.Entries, v4) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(out *jwriter.Writer, in GetNavigationHistoryReturns) { + out.RawByte('{') + first := true + _ = first + if in.CurrentIndex != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"currentIndex\":") + out.Int64(int64(in.CurrentIndex)) + } + if len(in.Entries) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"entries\":") + if in.Entries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.Entries { + if v5 > 0 { + out.RawByte(',') + } + if v6 == nil { + out.RawString("null") + } else { + (*v6).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( SetDownloadBehaviorParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetDownloadBehaviorParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetDownloadBehaviorParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetDownloadBehaviorParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetNavigationHistoryReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetDownloadBehaviorParams *SetDownloadBehaviorParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(w, v) +} -func ( StartScreencastParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StartScreencastParams ) UnmarshalJSON([]byte) error { return nil } -func ( StartScreencastParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StartScreencastParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(&r, v) + return r.Error() +} -type EasyJSON_exporter_StartScreencastParams *StartScreencastParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetNavigationHistoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(in *jlexer.Lexer, out *GetNavigationHistoryParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(out *jwriter.Writer, in GetNavigationHistoryParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( StopLoadingParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StopLoadingParams ) UnmarshalJSON([]byte) error { return nil } -func ( StopLoadingParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StopLoadingParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_StopLoadingParams *StopLoadingParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(w, v) +} -func ( StopScreencastParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StopScreencastParams ) UnmarshalJSON([]byte) error { return nil } -func ( StopScreencastParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StopScreencastParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(&r, v) + return r.Error() +} -type EasyJSON_exporter_StopScreencastParams *StopScreencastParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(in *jlexer.Lexer, out *GetLayoutMetricsReturns) { + 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 "layoutViewport": + if in.IsNull() { + in.Skip() + out.LayoutViewport = nil + } else { + if out.LayoutViewport == nil { + out.LayoutViewport = new(LayoutViewport) + } + (*out.LayoutViewport).UnmarshalEasyJSON(in) + } + case "visualViewport": + if in.IsNull() { + in.Skip() + out.VisualViewport = nil + } else { + if out.VisualViewport == nil { + out.VisualViewport = new(VisualViewport) + } + (*out.VisualViewport).UnmarshalEasyJSON(in) + } + case "contentSize": + if in.IsNull() { + in.Skip() + out.ContentSize = nil + } else { + if out.ContentSize == nil { + out.ContentSize = new(dom.Rect) + } + (*out.ContentSize).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(out *jwriter.Writer, in GetLayoutMetricsReturns) { + out.RawByte('{') + first := true + _ = first + if in.LayoutViewport != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"layoutViewport\":") + if in.LayoutViewport == nil { + out.RawString("null") + } else { + (*in.LayoutViewport).MarshalEasyJSON(out) + } + } + if in.VisualViewport != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"visualViewport\":") + if in.VisualViewport == nil { + out.RawString("null") + } else { + (*in.VisualViewport).MarshalEasyJSON(out) + } + } + if in.ContentSize != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"contentSize\":") + if in.ContentSize == nil { + out.RawString("null") + } else { + (*in.ContentSize).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( Viewport ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Viewport ) UnmarshalJSON([]byte) error { return nil } -func ( Viewport ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Viewport ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_Viewport *Viewport +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(w, v) +} -func ( VisualViewport ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* VisualViewport ) UnmarshalJSON([]byte) error { return nil } -func ( VisualViewport ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* VisualViewport ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(&r, v) + return r.Error() +} -type EasyJSON_exporter_VisualViewport *VisualViewport +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetLayoutMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(in *jlexer.Lexer, out *GetLayoutMetricsParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(out *jwriter.Writer, in GetLayoutMetricsParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetLayoutMetricsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(in *jlexer.Lexer, out *GetAppManifestReturns) { + 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 "url": + out.URL = string(in.String()) + case "errors": + if in.IsNull() { + in.Skip() + out.Errors = nil + } else { + in.Delim('[') + if out.Errors == nil { + if !in.IsDelim(']') { + out.Errors = make([]*AppManifestError, 0, 8) + } else { + out.Errors = []*AppManifestError{} + } + } else { + out.Errors = (out.Errors)[:0] + } + for !in.IsDelim(']') { + var v7 *AppManifestError + if in.IsNull() { + in.Skip() + v7 = nil + } else { + if v7 == nil { + v7 = new(AppManifestError) + } + (*v7).UnmarshalEasyJSON(in) + } + out.Errors = append(out.Errors, v7) + in.WantComma() + } + in.Delim(']') + } + case "data": + out.Data = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(out *jwriter.Writer, in GetAppManifestReturns) { + out.RawByte('{') + first := true + _ = first + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if len(in.Errors) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"errors\":") + if in.Errors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.Errors { + if v8 > 0 { + out.RawByte(',') + } + if v9 == nil { + out.RawString("null") + } else { + (*v9).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.Data != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"data\":") + out.String(string(in.Data)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetAppManifestReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(in *jlexer.Lexer, out *GetAppManifestParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(out *jwriter.Writer, in GetAppManifestParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetAppManifestParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(in *jlexer.Lexer, out *FrameResourceTree) { + 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 "frame": + if in.IsNull() { + in.Skip() + out.Frame = nil + } else { + if out.Frame == nil { + out.Frame = new(cdp.Frame) + } + (*out.Frame).UnmarshalEasyJSON(in) + } + case "childFrames": + if in.IsNull() { + in.Skip() + out.ChildFrames = nil + } else { + in.Delim('[') + if out.ChildFrames == nil { + if !in.IsDelim(']') { + out.ChildFrames = make([]*FrameResourceTree, 0, 8) + } else { + out.ChildFrames = []*FrameResourceTree{} + } + } else { + out.ChildFrames = (out.ChildFrames)[:0] + } + for !in.IsDelim(']') { + var v10 *FrameResourceTree + if in.IsNull() { + in.Skip() + v10 = nil + } else { + if v10 == nil { + v10 = new(FrameResourceTree) + } + (*v10).UnmarshalEasyJSON(in) + } + out.ChildFrames = append(out.ChildFrames, v10) + in.WantComma() + } + in.Delim(']') + } + case "resources": + if in.IsNull() { + in.Skip() + out.Resources = nil + } else { + in.Delim('[') + if out.Resources == nil { + if !in.IsDelim(']') { + out.Resources = make([]*FrameResource, 0, 8) + } else { + out.Resources = []*FrameResource{} + } + } else { + out.Resources = (out.Resources)[:0] + } + for !in.IsDelim(']') { + var v11 *FrameResource + if in.IsNull() { + in.Skip() + v11 = nil + } else { + if v11 == nil { + v11 = new(FrameResource) + } + (*v11).UnmarshalEasyJSON(in) + } + out.Resources = append(out.Resources, v11) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in FrameResourceTree) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frame\":") + if in.Frame == nil { + out.RawString("null") + } else { + (*in.Frame).MarshalEasyJSON(out) + } + if len(in.ChildFrames) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"childFrames\":") + if in.ChildFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v12, v13 := range in.ChildFrames { + if v12 > 0 { + out.RawByte(',') + } + if v13 == nil { + out.RawString("null") + } else { + (*v13).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"resources\":") + if in.Resources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v14, v15 := range in.Resources { + if v14 > 0 { + out.RawByte(',') + } + if v15 == nil { + out.RawString("null") + } else { + (*v15).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v FrameResourceTree) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v FrameResourceTree) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *FrameResourceTree) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *FrameResourceTree) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(in *jlexer.Lexer, out *FrameResource) { + 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 "url": + out.URL = string(in.String()) + case "type": + (out.Type).UnmarshalEasyJSON(in) + case "mimeType": + out.MimeType = string(in.String()) + case "lastModified": + if in.IsNull() { + in.Skip() + out.LastModified = nil + } else { + if out.LastModified == nil { + out.LastModified = new(cdp.TimeSinceEpoch) + } + (*out.LastModified).UnmarshalEasyJSON(in) + } + case "contentSize": + out.ContentSize = float64(in.Float64()) + case "failed": + out.Failed = bool(in.Bool()) + case "canceled": + out.Canceled = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(out *jwriter.Writer, in FrameResource) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"mimeType\":") + out.String(string(in.MimeType)) + if in.LastModified != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lastModified\":") + if in.LastModified == nil { + out.RawString("null") + } else { + (*in.LastModified).MarshalEasyJSON(out) + } + } + if in.ContentSize != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"contentSize\":") + out.Float64(float64(in.ContentSize)) + } + if in.Failed { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"failed\":") + out.Bool(bool(in.Failed)) + } + if in.Canceled { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"canceled\":") + out.Bool(bool(in.Canceled)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v FrameResource) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *FrameResource) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(in *jlexer.Lexer, out *EventScreencastVisibilityChanged) { + 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 "visible": + out.Visible = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(out *jwriter.Writer, in EventScreencastVisibilityChanged) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"visible\":") + out.Bool(bool(in.Visible)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(in *jlexer.Lexer, out *EventScreencastFrame) { + 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 "data": + out.Data = string(in.String()) + case "metadata": + if in.IsNull() { + in.Skip() + out.Metadata = nil + } else { + if out.Metadata == nil { + out.Metadata = new(ScreencastFrameMetadata) + } + (*out.Metadata).UnmarshalEasyJSON(in) + } + case "sessionId": + out.SessionID = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(out *jwriter.Writer, in EventScreencastFrame) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"data\":") + out.String(string(in.Data)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"metadata\":") + if in.Metadata == nil { + out.RawString("null") + } else { + (*in.Metadata).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sessionId\":") + out.Int64(int64(in.SessionID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventScreencastFrame) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventScreencastFrame) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventScreencastFrame) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventScreencastFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(in *jlexer.Lexer, out *EventLoadEventFired) { + 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 "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(out *jwriter.Writer, in EventLoadEventFired) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventLoadEventFired) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(in *jlexer.Lexer, out *EventLifecycleEvent) { + 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 "name": + out.Name = string(in.String()) + case "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(out *jwriter.Writer, in EventLifecycleEvent) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventLifecycleEvent) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventLifecycleEvent) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventLifecycleEvent) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventLifecycleEvent) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(in *jlexer.Lexer, out *EventJavascriptDialogOpening) { + 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 "url": + out.URL = string(in.String()) + case "message": + out.Message = string(in.String()) + case "type": + (out.Type).UnmarshalEasyJSON(in) + case "defaultPrompt": + out.DefaultPrompt = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(out *jwriter.Writer, in EventJavascriptDialogOpening) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"message\":") + out.String(string(in.Message)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + if in.DefaultPrompt != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"defaultPrompt\":") + out.String(string(in.DefaultPrompt)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventJavascriptDialogOpening) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventJavascriptDialogOpening) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventJavascriptDialogOpening) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventJavascriptDialogOpening) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(in *jlexer.Lexer, out *EventJavascriptDialogClosed) { + 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 "result": + out.Result = bool(in.Bool()) + case "userInput": + out.UserInput = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(out *jwriter.Writer, in EventJavascriptDialogClosed) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + out.Bool(bool(in.Result)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"userInput\":") + out.String(string(in.UserInput)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventJavascriptDialogClosed) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(in *jlexer.Lexer, out *EventInterstitialShown) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(out *jwriter.Writer, in EventInterstitialShown) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventInterstitialShown) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(in *jlexer.Lexer, out *EventInterstitialHidden) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(out *jwriter.Writer, in EventInterstitialHidden) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventInterstitialHidden) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventInterstitialHidden) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventInterstitialHidden) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventInterstitialHidden) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(in *jlexer.Lexer, out *EventFrameStoppedLoading) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(out *jwriter.Writer, in EventFrameStoppedLoading) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameStoppedLoading) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(in *jlexer.Lexer, out *EventFrameStartedLoading) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(out *jwriter.Writer, in EventFrameStartedLoading) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(in *jlexer.Lexer, out *EventFrameScheduledNavigation) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + case "delay": + out.Delay = float64(in.Float64()) + case "reason": + (out.Reason).UnmarshalEasyJSON(in) + case "url": + out.URL = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(out *jwriter.Writer, in EventFrameScheduledNavigation) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"delay\":") + out.Float64(float64(in.Delay)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"reason\":") + (in.Reason).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameScheduledNavigation) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameScheduledNavigation) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(in *jlexer.Lexer, out *EventFrameResized) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(out *jwriter.Writer, in EventFrameResized) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameResized) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameResized) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(in *jlexer.Lexer, out *EventFrameNavigated) { + 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 "frame": + if in.IsNull() { + in.Skip() + out.Frame = nil + } else { + if out.Frame == nil { + out.Frame = new(cdp.Frame) + } + (*out.Frame).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(out *jwriter.Writer, in EventFrameNavigated) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frame\":") + if in.Frame == nil { + out.RawString("null") + } else { + (*in.Frame).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameNavigated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(in *jlexer.Lexer, out *EventFrameDetached) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(out *jwriter.Writer, in EventFrameDetached) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameDetached) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameDetached) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(in *jlexer.Lexer, out *EventFrameClearedScheduledNavigation) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(out *jwriter.Writer, in EventFrameClearedScheduledNavigation) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameClearedScheduledNavigation) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameClearedScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameClearedScheduledNavigation) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameClearedScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(in *jlexer.Lexer, out *EventFrameAttached) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + case "parentFrameId": + (out.ParentFrameID).UnmarshalEasyJSON(in) + case "stack": + if in.IsNull() { + in.Skip() + out.Stack = nil + } else { + if out.Stack == nil { + out.Stack = new(runtime.StackTrace) + } + (*out.Stack).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(out *jwriter.Writer, in EventFrameAttached) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"parentFrameId\":") + out.String(string(in.ParentFrameID)) + if in.Stack != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"stack\":") + if in.Stack == nil { + out.RawString("null") + } else { + (*in.Stack).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameAttached) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameAttached) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(in *jlexer.Lexer, out *EventDomContentEventFired) { + 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 "timestamp": + if in.IsNull() { + in.Skip() + out.Timestamp = nil + } else { + if out.Timestamp == nil { + out.Timestamp = new(cdp.MonotonicTime) + } + (*out.Timestamp).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(out *jwriter.Writer, in EventDomContentEventFired) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + if in.Timestamp == nil { + out.RawString("null") + } else { + (*in.Timestamp).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventDomContentEventFired) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(in *jlexer.Lexer, out *EnableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(out *jwriter.Writer, in EnableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EnableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(in *jlexer.Lexer, out *DisableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(out *jwriter.Writer, in DisableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(in *jlexer.Lexer, out *CreateIsolatedWorldReturns) { + 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 "executionContextId": + out.ExecutionContextID = runtime.ExecutionContextID(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(out *jwriter.Writer, in CreateIsolatedWorldReturns) { + out.RawByte('{') + first := true + _ = first + if in.ExecutionContextID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"executionContextId\":") + out.Int64(int64(in.ExecutionContextID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CreateIsolatedWorldReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CreateIsolatedWorldReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CreateIsolatedWorldReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CreateIsolatedWorldReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(in *jlexer.Lexer, out *CreateIsolatedWorldParams) { + 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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + case "worldName": + out.WorldName = string(in.String()) + case "grantUniveralAccess": + out.GrantUniveralAccess = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(out *jwriter.Writer, in CreateIsolatedWorldParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + if in.WorldName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"worldName\":") + out.String(string(in.WorldName)) + } + if in.GrantUniveralAccess { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"grantUniveralAccess\":") + out.Bool(bool(in.GrantUniveralAccess)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CreateIsolatedWorldParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CreateIsolatedWorldParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CreateIsolatedWorldParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CreateIsolatedWorldParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(in *jlexer.Lexer, out *CaptureScreenshotReturns) { + 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 "data": + out.Data = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(out *jwriter.Writer, in CaptureScreenshotReturns) { + out.RawByte('{') + first := true + _ = first + if in.Data != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"data\":") + out.String(string(in.Data)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CaptureScreenshotReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out *CaptureScreenshotParams) { + 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 "format": + (out.Format).UnmarshalEasyJSON(in) + case "quality": + out.Quality = int64(in.Int64()) + case "clip": + if in.IsNull() { + in.Skip() + out.Clip = nil + } else { + if out.Clip == nil { + out.Clip = new(Viewport) + } + (*out.Clip).UnmarshalEasyJSON(in) + } + case "fromSurface": + out.FromSurface = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(out *jwriter.Writer, in CaptureScreenshotParams) { + out.RawByte('{') + first := true + _ = first + if in.Format != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"format\":") + (in.Format).MarshalEasyJSON(out) + } + if in.Quality != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"quality\":") + out.Int64(int64(in.Quality)) + } + if in.Clip != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"clip\":") + if in.Clip == nil { + out.RawString("null") + } else { + (*in.Clip).MarshalEasyJSON(out) + } + } + if in.FromSurface { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"fromSurface\":") + out.Bool(bool(in.FromSurface)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(in *jlexer.Lexer, out *BringToFrontParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(out *jwriter.Writer, in BringToFrontParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BringToFrontParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BringToFrontParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BringToFrontParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BringToFrontParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(in *jlexer.Lexer, out *AppManifestError) { + 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 "message": + out.Message = string(in.String()) + case "critical": + out.Critical = int64(in.Int64()) + case "line": + out.Line = int64(in.Int64()) + case "column": + out.Column = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(out *jwriter.Writer, in AppManifestError) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"message\":") + out.String(string(in.Message)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"critical\":") + out.Int64(int64(in.Critical)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"line\":") + out.Int64(int64(in.Line)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"column\":") + out.Int64(int64(in.Column)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AppManifestError) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AppManifestError) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) { + 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 "identifier": + out.Identifier = ScriptIdentifier(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) { + out.RawByte('{') + first := true + _ = first + if in.Identifier != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"identifier\":") + out.String(string(in.Identifier)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) { + 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 "source": + out.Source = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"source\":") + out.String(string(in.Source)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AddScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AddScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(l, v) +} diff --git a/cdp/profiler/easyjson.go b/cdp/profiler/easyjson.go index 9b3ae0b..bb241b4 100644 --- a/cdp/profiler/easyjson.go +++ b/cdp/profiler/easyjson.go @@ -1,198 +1,2530 @@ -// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package -// compilable during generation. +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. -package profiler +package profiler import ( - "github.com/mailru/easyjson/jwriter" - "github.com/mailru/easyjson/jlexer" + json "encoding/json" + debugger "github.com/knq/chromedp/cdp/debugger" + runtime "github.com/knq/chromedp/cdp/runtime" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" ) -func ( CoverageRange ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* CoverageRange ) UnmarshalJSON([]byte) error { return nil } -func ( CoverageRange ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* CoverageRange ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) -type EasyJSON_exporter_CoverageRange *CoverageRange +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(in *jlexer.Lexer, out *TypeProfileEntry) { + 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 "offset": + out.Offset = int64(in.Int64()) + case "types": + if in.IsNull() { + in.Skip() + out.Types = nil + } else { + in.Delim('[') + if out.Types == nil { + if !in.IsDelim(']') { + out.Types = make([]*TypeObject, 0, 8) + } else { + out.Types = []*TypeObject{} + } + } else { + out.Types = (out.Types)[:0] + } + for !in.IsDelim(']') { + var v1 *TypeObject + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(TypeObject) + } + (*v1).UnmarshalEasyJSON(in) + } + out.Types = append(out.Types, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(out *jwriter.Writer, in TypeProfileEntry) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"offset\":") + out.Int64(int64(in.Offset)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"types\":") + if in.Types == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.Types { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} -func ( DisableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* DisableParams ) UnmarshalJSON([]byte) error { return nil } -func ( DisableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* DisableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v TypeProfileEntry) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_DisableParams *DisableParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TypeProfileEntry) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(w, v) +} -func ( EnableParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EnableParams ) UnmarshalJSON([]byte) error { return nil } -func ( EnableParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EnableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TypeProfileEntry) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(&r, v) + return r.Error() +} -type EasyJSON_exporter_EnableParams *EnableParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TypeProfileEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(in *jlexer.Lexer, out *TypeObject) { + 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 "name": + out.Name = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(out *jwriter.Writer, in TypeObject) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + out.RawByte('}') +} -func ( EventConsoleProfileFinished ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventConsoleProfileFinished ) UnmarshalJSON([]byte) error { return nil } -func ( EventConsoleProfileFinished ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventConsoleProfileFinished ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v TypeObject) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_EventConsoleProfileFinished *EventConsoleProfileFinished +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TypeObject) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(w, v) +} -func ( EventConsoleProfileStarted ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* EventConsoleProfileStarted ) UnmarshalJSON([]byte) error { return nil } -func ( EventConsoleProfileStarted ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* EventConsoleProfileStarted ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TypeObject) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(&r, v) + return r.Error() +} -type EasyJSON_exporter_EventConsoleProfileStarted *EventConsoleProfileStarted +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TypeObject) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(in *jlexer.Lexer, out *TakeTypeProfileReturns) { + 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 "result": + if in.IsNull() { + in.Skip() + out.Result = nil + } else { + in.Delim('[') + if out.Result == nil { + if !in.IsDelim(']') { + out.Result = make([]*ScriptTypeProfile, 0, 8) + } else { + out.Result = []*ScriptTypeProfile{} + } + } else { + out.Result = (out.Result)[:0] + } + for !in.IsDelim(']') { + var v4 *ScriptTypeProfile + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(ScriptTypeProfile) + } + (*v4).UnmarshalEasyJSON(in) + } + out.Result = append(out.Result, v4) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, in TakeTypeProfileReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Result) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.Result { + if v5 > 0 { + out.RawByte(',') + } + if v6 == nil { + out.RawString("null") + } else { + (*v6).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( FunctionCoverage ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* FunctionCoverage ) UnmarshalJSON([]byte) error { return nil } -func ( FunctionCoverage ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* FunctionCoverage ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v TakeTypeProfileReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_FunctionCoverage *FunctionCoverage +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TakeTypeProfileReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(w, v) +} -func ( GetBestEffortCoverageParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetBestEffortCoverageParams ) UnmarshalJSON([]byte) error { return nil } -func ( GetBestEffortCoverageParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetBestEffortCoverageParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TakeTypeProfileReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(&r, v) + return r.Error() +} -type EasyJSON_exporter_GetBestEffortCoverageParams *GetBestEffortCoverageParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TakeTypeProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(in *jlexer.Lexer, out *TakeTypeProfileParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(out *jwriter.Writer, in TakeTypeProfileParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( GetBestEffortCoverageReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* GetBestEffortCoverageReturns ) UnmarshalJSON([]byte) error { return nil } -func ( GetBestEffortCoverageReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* GetBestEffortCoverageReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v TakeTypeProfileParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_GetBestEffortCoverageReturns *GetBestEffortCoverageReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TakeTypeProfileParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(w, v) +} -func ( PositionTickInfo ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* PositionTickInfo ) UnmarshalJSON([]byte) error { return nil } -func ( PositionTickInfo ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* PositionTickInfo ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TakeTypeProfileParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(&r, v) + return r.Error() +} -type EasyJSON_exporter_PositionTickInfo *PositionTickInfo +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TakeTypeProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(in *jlexer.Lexer, out *TakePreciseCoverageReturns) { + 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 "result": + if in.IsNull() { + in.Skip() + out.Result = nil + } else { + in.Delim('[') + if out.Result == nil { + if !in.IsDelim(']') { + out.Result = make([]*ScriptCoverage, 0, 8) + } else { + out.Result = []*ScriptCoverage{} + } + } else { + out.Result = (out.Result)[:0] + } + for !in.IsDelim(']') { + var v7 *ScriptCoverage + if in.IsNull() { + in.Skip() + v7 = nil + } else { + if v7 == nil { + v7 = new(ScriptCoverage) + } + (*v7).UnmarshalEasyJSON(in) + } + out.Result = append(out.Result, v7) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer, in TakePreciseCoverageReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Result) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.Result { + if v8 > 0 { + out.RawByte(',') + } + if v9 == nil { + out.RawString("null") + } else { + (*v9).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} -func ( Profile ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* Profile ) UnmarshalJSON([]byte) error { return nil } -func ( Profile ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* Profile ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v TakePreciseCoverageReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_Profile *Profile +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TakePreciseCoverageReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(w, v) +} -func ( ProfileNode ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ProfileNode ) UnmarshalJSON([]byte) error { return nil } -func ( ProfileNode ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ProfileNode ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TakePreciseCoverageReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(&r, v) + return r.Error() +} -type EasyJSON_exporter_ProfileNode *ProfileNode +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TakePreciseCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(in *jlexer.Lexer, out *TakePreciseCoverageParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, in TakePreciseCoverageParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( ScriptCoverage ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ScriptCoverage ) UnmarshalJSON([]byte) error { return nil } -func ( ScriptCoverage ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ScriptCoverage ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v TakePreciseCoverageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_ScriptCoverage *ScriptCoverage +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TakePreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(w, v) +} -func ( ScriptTypeProfile ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* ScriptTypeProfile ) UnmarshalJSON([]byte) error { return nil } -func ( ScriptTypeProfile ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* ScriptTypeProfile ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TakePreciseCoverageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(&r, v) + return r.Error() +} -type EasyJSON_exporter_ScriptTypeProfile *ScriptTypeProfile +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TakePreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(in *jlexer.Lexer, out *StopTypeProfileParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(out *jwriter.Writer, in StopTypeProfileParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( SetSamplingIntervalParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* SetSamplingIntervalParams ) UnmarshalJSON([]byte) error { return nil } -func ( SetSamplingIntervalParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* SetSamplingIntervalParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StopTypeProfileParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_SetSamplingIntervalParams *SetSamplingIntervalParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopTypeProfileParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(w, v) +} -func ( StartParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StartParams ) UnmarshalJSON([]byte) error { return nil } -func ( StartParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StartParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopTypeProfileParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(&r, v) + return r.Error() +} -type EasyJSON_exporter_StartParams *StartParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopTypeProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(in *jlexer.Lexer, out *StopReturns) { + 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 "profile": + if in.IsNull() { + in.Skip() + out.Profile = nil + } else { + if out.Profile == nil { + out.Profile = new(Profile) + } + (*out.Profile).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(out *jwriter.Writer, in StopReturns) { + out.RawByte('{') + first := true + _ = first + if in.Profile != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"profile\":") + if in.Profile == nil { + out.RawString("null") + } else { + (*in.Profile).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} -func ( StartPreciseCoverageParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StartPreciseCoverageParams ) UnmarshalJSON([]byte) error { return nil } -func ( StartPreciseCoverageParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StartPreciseCoverageParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StopReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_StartPreciseCoverageParams *StartPreciseCoverageParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(w, v) +} -func ( StartTypeProfileParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StartTypeProfileParams ) UnmarshalJSON([]byte) error { return nil } -func ( StartTypeProfileParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StartTypeProfileParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(&r, v) + return r.Error() +} -type EasyJSON_exporter_StartTypeProfileParams *StartTypeProfileParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(in *jlexer.Lexer, out *StopPreciseCoverageParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(out *jwriter.Writer, in StopPreciseCoverageParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( StopParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StopParams ) UnmarshalJSON([]byte) error { return nil } -func ( StopParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StopParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StopPreciseCoverageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_StopParams *StopParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(w, v) +} -func ( StopPreciseCoverageParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StopPreciseCoverageParams ) UnmarshalJSON([]byte) error { return nil } -func ( StopPreciseCoverageParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StopPreciseCoverageParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopPreciseCoverageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(&r, v) + return r.Error() +} -type EasyJSON_exporter_StopPreciseCoverageParams *StopPreciseCoverageParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(in *jlexer.Lexer, out *StopParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(out *jwriter.Writer, in StopParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( StopReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StopReturns ) UnmarshalJSON([]byte) error { return nil } -func ( StopReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StopReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StopParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_StopReturns *StopReturns +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(w, v) +} -func ( StopTypeProfileParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* StopTypeProfileParams ) UnmarshalJSON([]byte) error { return nil } -func ( StopTypeProfileParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* StopTypeProfileParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(&r, v) + return r.Error() +} -type EasyJSON_exporter_StopTypeProfileParams *StopTypeProfileParams +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(in *jlexer.Lexer, out *StartTypeProfileParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(out *jwriter.Writer, in StartTypeProfileParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( TakePreciseCoverageParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* TakePreciseCoverageParams ) UnmarshalJSON([]byte) error { return nil } -func ( TakePreciseCoverageParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* TakePreciseCoverageParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StartTypeProfileParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_TakePreciseCoverageParams *TakePreciseCoverageParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartTypeProfileParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(w, v) +} -func ( TakePreciseCoverageReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* TakePreciseCoverageReturns ) UnmarshalJSON([]byte) error { return nil } -func ( TakePreciseCoverageReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* TakePreciseCoverageReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartTypeProfileParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(&r, v) + return r.Error() +} -type EasyJSON_exporter_TakePreciseCoverageReturns *TakePreciseCoverageReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartTypeProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(in *jlexer.Lexer, out *StartPreciseCoverageParams) { + 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 "callCount": + out.CallCount = bool(in.Bool()) + case "detailed": + out.Detailed = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(out *jwriter.Writer, in StartPreciseCoverageParams) { + out.RawByte('{') + first := true + _ = first + if in.CallCount { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callCount\":") + out.Bool(bool(in.CallCount)) + } + if in.Detailed { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"detailed\":") + out.Bool(bool(in.Detailed)) + } + out.RawByte('}') +} -func ( TakeTypeProfileParams ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* TakeTypeProfileParams ) UnmarshalJSON([]byte) error { return nil } -func ( TakeTypeProfileParams ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* TakeTypeProfileParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StartPreciseCoverageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_TakeTypeProfileParams *TakeTypeProfileParams +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(w, v) +} -func ( TakeTypeProfileReturns ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* TakeTypeProfileReturns ) UnmarshalJSON([]byte) error { return nil } -func ( TakeTypeProfileReturns ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* TakeTypeProfileReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartPreciseCoverageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(&r, v) + return r.Error() +} -type EasyJSON_exporter_TakeTypeProfileReturns *TakeTypeProfileReturns +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(in *jlexer.Lexer, out *StartParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(out *jwriter.Writer, in StartParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} -func ( TypeObject ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* TypeObject ) UnmarshalJSON([]byte) error { return nil } -func ( TypeObject ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* TypeObject ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// MarshalJSON supports json.Marshaler interface +func (v StartParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} -type EasyJSON_exporter_TypeObject *TypeObject +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(w, v) +} -func ( TypeProfileEntry ) MarshalJSON() ([]byte, error) { return nil, nil } -func (* TypeProfileEntry ) UnmarshalJSON([]byte) error { return nil } -func ( TypeProfileEntry ) MarshalEasyJSON(w *jwriter.Writer) {} -func (* TypeProfileEntry ) UnmarshalEasyJSON(l *jlexer.Lexer) {} +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(&r, v) + return r.Error() +} -type EasyJSON_exporter_TypeProfileEntry *TypeProfileEntry +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(in *jlexer.Lexer, out *SetSamplingIntervalParams) { + 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 "interval": + out.Interval = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(out *jwriter.Writer, in SetSamplingIntervalParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"interval\":") + out.Int64(int64(in.Interval)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetSamplingIntervalParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetSamplingIntervalParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetSamplingIntervalParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetSamplingIntervalParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(in *jlexer.Lexer, out *ScriptTypeProfile) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "url": + out.URL = string(in.String()) + case "entries": + if in.IsNull() { + in.Skip() + out.Entries = nil + } else { + in.Delim('[') + if out.Entries == nil { + if !in.IsDelim(']') { + out.Entries = make([]*TypeProfileEntry, 0, 8) + } else { + out.Entries = []*TypeProfileEntry{} + } + } else { + out.Entries = (out.Entries)[:0] + } + for !in.IsDelim(']') { + var v10 *TypeProfileEntry + if in.IsNull() { + in.Skip() + v10 = nil + } else { + if v10 == nil { + v10 = new(TypeProfileEntry) + } + (*v10).UnmarshalEasyJSON(in) + } + out.Entries = append(out.Entries, v10) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(out *jwriter.Writer, in ScriptTypeProfile) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"entries\":") + if in.Entries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v11, v12 := range in.Entries { + if v11 > 0 { + out.RawByte(',') + } + if v12 == nil { + out.RawString("null") + } else { + (*v12).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ScriptTypeProfile) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScriptTypeProfile) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScriptTypeProfile) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScriptTypeProfile) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(in *jlexer.Lexer, out *ScriptCoverage) { + 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 "scriptId": + out.ScriptID = runtime.ScriptID(in.String()) + case "url": + out.URL = string(in.String()) + case "functions": + if in.IsNull() { + in.Skip() + out.Functions = nil + } else { + in.Delim('[') + if out.Functions == nil { + if !in.IsDelim(']') { + out.Functions = make([]*FunctionCoverage, 0, 8) + } else { + out.Functions = []*FunctionCoverage{} + } + } else { + out.Functions = (out.Functions)[:0] + } + for !in.IsDelim(']') { + var v13 *FunctionCoverage + if in.IsNull() { + in.Skip() + v13 = nil + } else { + if v13 == nil { + v13 = new(FunctionCoverage) + } + (*v13).UnmarshalEasyJSON(in) + } + out.Functions = append(out.Functions, v13) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(out *jwriter.Writer, in ScriptCoverage) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"functions\":") + if in.Functions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v14, v15 := range in.Functions { + if v14 > 0 { + out.RawByte(',') + } + if v15 == nil { + out.RawString("null") + } else { + (*v15).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ScriptCoverage) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScriptCoverage) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScriptCoverage) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScriptCoverage) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(in *jlexer.Lexer, out *ProfileNode) { + 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 "id": + out.ID = int64(in.Int64()) + case "callFrame": + if in.IsNull() { + in.Skip() + out.CallFrame = nil + } else { + if out.CallFrame == nil { + out.CallFrame = new(runtime.CallFrame) + } + (*out.CallFrame).UnmarshalEasyJSON(in) + } + case "hitCount": + out.HitCount = int64(in.Int64()) + case "children": + if in.IsNull() { + in.Skip() + out.Children = nil + } else { + in.Delim('[') + if out.Children == nil { + if !in.IsDelim(']') { + out.Children = make([]int64, 0, 8) + } else { + out.Children = []int64{} + } + } else { + out.Children = (out.Children)[:0] + } + for !in.IsDelim(']') { + var v16 int64 + v16 = int64(in.Int64()) + out.Children = append(out.Children, v16) + in.WantComma() + } + in.Delim(']') + } + case "deoptReason": + out.DeoptReason = string(in.String()) + case "positionTicks": + if in.IsNull() { + in.Skip() + out.PositionTicks = nil + } else { + in.Delim('[') + if out.PositionTicks == nil { + if !in.IsDelim(']') { + out.PositionTicks = make([]*PositionTickInfo, 0, 8) + } else { + out.PositionTicks = []*PositionTickInfo{} + } + } else { + out.PositionTicks = (out.PositionTicks)[:0] + } + for !in.IsDelim(']') { + var v17 *PositionTickInfo + if in.IsNull() { + in.Skip() + v17 = nil + } else { + if v17 == nil { + v17 = new(PositionTickInfo) + } + (*v17).UnmarshalEasyJSON(in) + } + out.PositionTicks = append(out.PositionTicks, v17) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(out *jwriter.Writer, in ProfileNode) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.Int64(int64(in.ID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrame\":") + if in.CallFrame == nil { + out.RawString("null") + } else { + (*in.CallFrame).MarshalEasyJSON(out) + } + if in.HitCount != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hitCount\":") + out.Int64(int64(in.HitCount)) + } + if len(in.Children) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"children\":") + if in.Children == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v18, v19 := range in.Children { + if v18 > 0 { + out.RawByte(',') + } + out.Int64(int64(v19)) + } + out.RawByte(']') + } + } + if in.DeoptReason != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"deoptReason\":") + out.String(string(in.DeoptReason)) + } + if len(in.PositionTicks) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"positionTicks\":") + if in.PositionTicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v20, v21 := range in.PositionTicks { + if v20 > 0 { + out.RawByte(',') + } + if v21 == nil { + out.RawString("null") + } else { + (*v21).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ProfileNode) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ProfileNode) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ProfileNode) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(in *jlexer.Lexer, out *Profile) { + 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 "nodes": + if in.IsNull() { + in.Skip() + out.Nodes = nil + } else { + in.Delim('[') + if out.Nodes == nil { + if !in.IsDelim(']') { + out.Nodes = make([]*ProfileNode, 0, 8) + } else { + out.Nodes = []*ProfileNode{} + } + } else { + out.Nodes = (out.Nodes)[:0] + } + for !in.IsDelim(']') { + var v22 *ProfileNode + if in.IsNull() { + in.Skip() + v22 = nil + } else { + if v22 == nil { + v22 = new(ProfileNode) + } + (*v22).UnmarshalEasyJSON(in) + } + out.Nodes = append(out.Nodes, v22) + in.WantComma() + } + in.Delim(']') + } + case "startTime": + out.StartTime = float64(in.Float64()) + case "endTime": + out.EndTime = float64(in.Float64()) + case "samples": + if in.IsNull() { + in.Skip() + out.Samples = nil + } else { + in.Delim('[') + if out.Samples == nil { + if !in.IsDelim(']') { + out.Samples = make([]int64, 0, 8) + } else { + out.Samples = []int64{} + } + } else { + out.Samples = (out.Samples)[:0] + } + for !in.IsDelim(']') { + var v23 int64 + v23 = int64(in.Int64()) + out.Samples = append(out.Samples, v23) + in.WantComma() + } + in.Delim(']') + } + case "timeDeltas": + if in.IsNull() { + in.Skip() + out.TimeDeltas = nil + } else { + in.Delim('[') + if out.TimeDeltas == nil { + if !in.IsDelim(']') { + out.TimeDeltas = make([]int64, 0, 8) + } else { + out.TimeDeltas = []int64{} + } + } else { + out.TimeDeltas = (out.TimeDeltas)[:0] + } + for !in.IsDelim(']') { + var v24 int64 + v24 = int64(in.Int64()) + out.TimeDeltas = append(out.TimeDeltas, v24) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(out *jwriter.Writer, in Profile) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodes\":") + if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v25, v26 := range in.Nodes { + if v25 > 0 { + out.RawByte(',') + } + if v26 == nil { + out.RawString("null") + } else { + (*v26).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startTime\":") + out.Float64(float64(in.StartTime)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endTime\":") + out.Float64(float64(in.EndTime)) + if len(in.Samples) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"samples\":") + if in.Samples == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v27, v28 := range in.Samples { + if v27 > 0 { + out.RawByte(',') + } + out.Int64(int64(v28)) + } + out.RawByte(']') + } + } + if len(in.TimeDeltas) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timeDeltas\":") + if in.TimeDeltas == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v29, v30 := range in.TimeDeltas { + if v29 > 0 { + out.RawByte(',') + } + out.Int64(int64(v30)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Profile) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Profile) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Profile) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Profile) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(in *jlexer.Lexer, out *PositionTickInfo) { + 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 "line": + out.Line = int64(in.Int64()) + case "ticks": + out.Ticks = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(out *jwriter.Writer, in PositionTickInfo) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"line\":") + out.Int64(int64(in.Line)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ticks\":") + out.Int64(int64(in.Ticks)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PositionTickInfo) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PositionTickInfo) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PositionTickInfo) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PositionTickInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(in *jlexer.Lexer, out *GetBestEffortCoverageReturns) { + 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 "result": + if in.IsNull() { + in.Skip() + out.Result = nil + } else { + in.Delim('[') + if out.Result == nil { + if !in.IsDelim(']') { + out.Result = make([]*ScriptCoverage, 0, 8) + } else { + out.Result = []*ScriptCoverage{} + } + } else { + out.Result = (out.Result)[:0] + } + for !in.IsDelim(']') { + var v31 *ScriptCoverage + if in.IsNull() { + in.Skip() + v31 = nil + } else { + if v31 == nil { + v31 = new(ScriptCoverage) + } + (*v31).UnmarshalEasyJSON(in) + } + out.Result = append(out.Result, v31) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(out *jwriter.Writer, in GetBestEffortCoverageReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Result) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v32, v33 := range in.Result { + if v32 > 0 { + out.RawByte(',') + } + if v33 == nil { + out.RawString("null") + } else { + (*v33).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetBestEffortCoverageReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetBestEffortCoverageReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetBestEffortCoverageReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetBestEffortCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler20(in *jlexer.Lexer, out *GetBestEffortCoverageParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler20(out *jwriter.Writer, in GetBestEffortCoverageParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetBestEffortCoverageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetBestEffortCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler20(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetBestEffortCoverageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler20(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetBestEffortCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler20(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler21(in *jlexer.Lexer, out *FunctionCoverage) { + 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 "functionName": + out.FunctionName = string(in.String()) + case "ranges": + if in.IsNull() { + in.Skip() + out.Ranges = nil + } else { + in.Delim('[') + if out.Ranges == nil { + if !in.IsDelim(']') { + out.Ranges = make([]*CoverageRange, 0, 8) + } else { + out.Ranges = []*CoverageRange{} + } + } else { + out.Ranges = (out.Ranges)[:0] + } + for !in.IsDelim(']') { + var v34 *CoverageRange + if in.IsNull() { + in.Skip() + v34 = nil + } else { + if v34 == nil { + v34 = new(CoverageRange) + } + (*v34).UnmarshalEasyJSON(in) + } + out.Ranges = append(out.Ranges, v34) + in.WantComma() + } + in.Delim(']') + } + case "isBlockCoverage": + out.IsBlockCoverage = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler21(out *jwriter.Writer, in FunctionCoverage) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"functionName\":") + out.String(string(in.FunctionName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ranges\":") + if in.Ranges == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v35, v36 := range in.Ranges { + if v35 > 0 { + out.RawByte(',') + } + if v36 == nil { + out.RawString("null") + } else { + (*v36).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isBlockCoverage\":") + out.Bool(bool(in.IsBlockCoverage)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v FunctionCoverage) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v FunctionCoverage) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler21(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *FunctionCoverage) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler21(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *FunctionCoverage) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler22(in *jlexer.Lexer, out *EventConsoleProfileStarted) { + 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 "id": + out.ID = string(in.String()) + case "location": + if in.IsNull() { + in.Skip() + out.Location = nil + } else { + if out.Location == nil { + out.Location = new(debugger.Location) + } + (*out.Location).UnmarshalEasyJSON(in) + } + case "title": + out.Title = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler22(out *jwriter.Writer, in EventConsoleProfileStarted) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.String(string(in.ID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"location\":") + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) + } + if in.Title != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"title\":") + out.String(string(in.Title)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventConsoleProfileStarted) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventConsoleProfileStarted) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventConsoleProfileStarted) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventConsoleProfileStarted) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler23(in *jlexer.Lexer, out *EventConsoleProfileFinished) { + 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 "id": + out.ID = string(in.String()) + case "location": + if in.IsNull() { + in.Skip() + out.Location = nil + } else { + if out.Location == nil { + out.Location = new(debugger.Location) + } + (*out.Location).UnmarshalEasyJSON(in) + } + case "profile": + if in.IsNull() { + in.Skip() + out.Profile = nil + } else { + if out.Profile == nil { + out.Profile = new(Profile) + } + (*out.Profile).UnmarshalEasyJSON(in) + } + case "title": + out.Title = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler23(out *jwriter.Writer, in EventConsoleProfileFinished) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.String(string(in.ID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"location\":") + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"profile\":") + if in.Profile == nil { + out.RawString("null") + } else { + (*in.Profile).MarshalEasyJSON(out) + } + if in.Title != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"title\":") + out.String(string(in.Title)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventConsoleProfileFinished) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventConsoleProfileFinished) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler23(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventConsoleProfileFinished) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler23(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventConsoleProfileFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler23(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler24(in *jlexer.Lexer, out *EnableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler24(out *jwriter.Writer, in EnableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EnableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler24(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler24(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler25(in *jlexer.Lexer, out *DisableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler25(out *jwriter.Writer, in DisableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler25(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler25(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler26(in *jlexer.Lexer, out *CoverageRange) { + 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 "startOffset": + out.StartOffset = int64(in.Int64()) + case "endOffset": + out.EndOffset = int64(in.Int64()) + case "count": + out.Count = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler26(out *jwriter.Writer, in CoverageRange) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startOffset\":") + out.Int64(int64(in.StartOffset)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endOffset\":") + out.Int64(int64(in.EndOffset)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"count\":") + out.Int64(int64(in.Count)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CoverageRange) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CoverageRange) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler26(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CoverageRange) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler26(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CoverageRange) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler26(l, v) +}