diff --git a/cdp/audits/easyjson.go b/cdp/audits/easyjson.go index 8ab91c0..6c3be97 100644 --- a/cdp/audits/easyjson.go +++ b/cdp/audits/easyjson.go @@ -1,204 +1,23 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. +// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package +// compilable during generation. -package audits +package audits import ( - 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" + "github.com/mailru/easyjson/jwriter" + "github.com/mailru/easyjson/jlexer" ) -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) +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) {} -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('}') -} +type EasyJSON_exporter_GetEncodedResponseParams *GetEncodedResponseParams -// MarshalJSON supports json.Marshaler interface -func (v GetEncodedResponseReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// 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) -} +type EasyJSON_exporter_GetEncodedResponseReturns *GetEncodedResponseReturns diff --git a/cdp/cdp.go b/cdp/cdp.go index 058e84d..22ff2e2 100644 --- a/cdp/cdp.go +++ b/cdp/cdp.go @@ -139,6 +139,7 @@ const ( CommandEmulationSetCPUThrottlingRate MethodType = "Emulation.setCPUThrottlingRate" CommandEmulationCanEmulate MethodType = "Emulation.canEmulate" CommandEmulationSetVirtualTimePolicy MethodType = "Emulation.setVirtualTimePolicy" + CommandEmulationSetNavigatorOverrides MethodType = "Emulation.setNavigatorOverrides" CommandEmulationSetDefaultBackgroundColorOverride MethodType = "Emulation.setDefaultBackgroundColorOverride" EventSecuritySecurityStateChanged MethodType = "Security.securityStateChanged" EventSecurityCertificateError MethodType = "Security.certificateError" @@ -340,6 +341,7 @@ const ( CommandServiceWorkerStartWorker MethodType = "ServiceWorker.startWorker" CommandServiceWorkerSkipWaiting MethodType = "ServiceWorker.skipWaiting" CommandServiceWorkerStopWorker MethodType = "ServiceWorker.stopWorker" + CommandServiceWorkerStopAllWorkers MethodType = "ServiceWorker.stopAllWorkers" CommandServiceWorkerInspectWorker MethodType = "ServiceWorker.inspectWorker" CommandServiceWorkerSetForceUpdateOnPageLoad MethodType = "ServiceWorker.setForceUpdateOnPageLoad" CommandServiceWorkerDeliverPushMessage MethodType = "ServiceWorker.deliverPushMessage" @@ -470,6 +472,9 @@ const ( CommandProfilerStopPreciseCoverage MethodType = "Profiler.stopPreciseCoverage" CommandProfilerTakePreciseCoverage MethodType = "Profiler.takePreciseCoverage" CommandProfilerGetBestEffortCoverage MethodType = "Profiler.getBestEffortCoverage" + CommandProfilerStartTypeProfile MethodType = "Profiler.startTypeProfile" + CommandProfilerStopTypeProfile MethodType = "Profiler.stopTypeProfile" + CommandProfilerTakeTypeProfile MethodType = "Profiler.takeTypeProfile" EventHeapProfilerAddHeapSnapshotChunk MethodType = "HeapProfiler.addHeapSnapshotChunk" EventHeapProfilerResetProfiles MethodType = "HeapProfiler.resetProfiles" EventHeapProfilerReportHeapSnapshotProgress MethodType = "HeapProfiler.reportHeapSnapshotProgress" @@ -681,6 +686,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandEmulationCanEmulate case CommandEmulationSetVirtualTimePolicy: *t = CommandEmulationSetVirtualTimePolicy + case CommandEmulationSetNavigatorOverrides: + *t = CommandEmulationSetNavigatorOverrides case CommandEmulationSetDefaultBackgroundColorOverride: *t = CommandEmulationSetDefaultBackgroundColorOverride case EventSecuritySecurityStateChanged: @@ -1083,6 +1090,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandServiceWorkerSkipWaiting case CommandServiceWorkerStopWorker: *t = CommandServiceWorkerStopWorker + case CommandServiceWorkerStopAllWorkers: + *t = CommandServiceWorkerStopAllWorkers case CommandServiceWorkerInspectWorker: *t = CommandServiceWorkerInspectWorker case CommandServiceWorkerSetForceUpdateOnPageLoad: @@ -1343,6 +1352,12 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandProfilerTakePreciseCoverage case CommandProfilerGetBestEffortCoverage: *t = CommandProfilerGetBestEffortCoverage + case CommandProfilerStartTypeProfile: + *t = CommandProfilerStartTypeProfile + case CommandProfilerStopTypeProfile: + *t = CommandProfilerStopTypeProfile + case CommandProfilerTakeTypeProfile: + *t = CommandProfilerTakeTypeProfile case EventHeapProfilerAddHeapSnapshotChunk: *t = EventHeapProfilerAddHeapSnapshotChunk case EventHeapProfilerResetProfiles: diff --git a/cdp/cdputil/cdputil.go b/cdp/cdputil/cdputil.go index 42d881e..0870c38 100644 --- a/cdp/cdputil/cdputil.go +++ b/cdp/cdputil/cdputil.go @@ -316,6 +316,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandEmulationSetVirtualTimePolicy: return emptyVal, nil + case cdp.CommandEmulationSetNavigatorOverrides: + return emptyVal, nil + case cdp.CommandEmulationSetDefaultBackgroundColorOverride: return emptyVal, nil @@ -916,6 +919,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandServiceWorkerStopWorker: return emptyVal, nil + case cdp.CommandServiceWorkerStopAllWorkers: + return emptyVal, nil + case cdp.CommandServiceWorkerInspectWorker: return emptyVal, nil @@ -1309,6 +1315,15 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandProfilerGetBestEffortCoverage: v = new(profiler.GetBestEffortCoverageReturns) + case cdp.CommandProfilerStartTypeProfile: + return emptyVal, nil + + case cdp.CommandProfilerStopTypeProfile: + return emptyVal, nil + + case cdp.CommandProfilerTakeTypeProfile: + v = new(profiler.TakeTypeProfileReturns) + case cdp.EventProfilerConsoleProfileStarted: v = new(profiler.EventConsoleProfileStarted) diff --git a/cdp/debugger/easyjson.go b/cdp/debugger/easyjson.go index c295319..6e78825 100644 --- a/cdp/debugger/easyjson.go +++ b/cdp/debugger/easyjson.go @@ -1,4328 +1,317 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. +// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package +// compilable during generation. -package debugger +package debugger import ( - 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" + "github.com/mailru/easyjson/jwriter" + "github.com/mailru/easyjson/jlexer" ) -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) +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) {} -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('}') -} +type EasyJSON_exporter_BreakLocation *BreakLocation -// MarshalJSON supports json.Marshaler interface -func (v StepOverParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StepOverParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(w, v) -} +type EasyJSON_exporter_CallFrame *CallFrame -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StepOverParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_ContinueToLocationParams *ContinueToLocationParams -// MarshalJSON supports json.Marshaler interface -func (v StepOutParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StepOutParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(w, v) -} +type EasyJSON_exporter_DisableParams *DisableParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StepOutParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EnableParams *EnableParams -// MarshalJSON supports json.Marshaler interface -func (v StepIntoParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StepIntoParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(w, v) -} +type EasyJSON_exporter_EvaluateOnCallFrameParams *EvaluateOnCallFrameParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StepIntoParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EvaluateOnCallFrameReturns *EvaluateOnCallFrameReturns -// MarshalJSON supports json.Marshaler interface -func (v SetVariableValueParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetVariableValueParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(w, v) -} +type EasyJSON_exporter_EventBreakpointResolved *EventBreakpointResolved -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetVariableValueParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventPaused *EventPaused -// MarshalJSON supports json.Marshaler interface -func (v SetSkipAllPausesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetSkipAllPausesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(w, v) -} +type EasyJSON_exporter_EventResumed *EventResumed -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetSkipAllPausesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventScriptFailedToParse *EventScriptFailedToParse -// MarshalJSON supports json.Marshaler interface -func (v SetScriptSourceReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(w, v) -} +type EasyJSON_exporter_EventScriptParsed *EventScriptParsed -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetScriptSourceReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetPossibleBreakpointsParams *GetPossibleBreakpointsParams -// MarshalJSON supports json.Marshaler interface -func (v SetScriptSourceParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(w, v) -} +type EasyJSON_exporter_GetPossibleBreakpointsReturns *GetPossibleBreakpointsReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetScriptSourceParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetScriptSourceParams *GetScriptSourceParams -// MarshalJSON supports json.Marshaler interface -func (v SetPauseOnExceptionsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetPauseOnExceptionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(w, v) -} +type EasyJSON_exporter_GetScriptSourceReturns *GetScriptSourceReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetPauseOnExceptionsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_Location *Location -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointsActiveParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointsActiveParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(w, v) -} +type EasyJSON_exporter_PauseParams *PauseParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointsActiveParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_RemoveBreakpointParams *RemoveBreakpointParams -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(w, v) -} +type EasyJSON_exporter_RestartFrameParams *RestartFrameParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_RestartFrameReturns *RestartFrameReturns -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(w, v) -} +type EasyJSON_exporter_ResumeParams *ResumeParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_ScheduleStepIntoAsyncParams *ScheduleStepIntoAsyncParams -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointByURLReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointByURLReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(w, v) -} +type EasyJSON_exporter_Scope *Scope -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointByURLReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_ScriptPosition *ScriptPosition -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointByURLParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointByURLParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(w, v) -} +type EasyJSON_exporter_SearchInContentParams *SearchInContentParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointByURLParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SearchInContentReturns *SearchInContentReturns -// MarshalJSON supports json.Marshaler interface -func (v SetBlackboxedRangesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBlackboxedRangesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(w, v) -} +type EasyJSON_exporter_SearchMatch *SearchMatch -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBlackboxedRangesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetAsyncCallStackDepthParams *SetAsyncCallStackDepthParams -// MarshalJSON supports json.Marshaler interface -func (v SetBlackboxPatternsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBlackboxPatternsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(w, v) -} +type EasyJSON_exporter_SetBlackboxPatternsParams *SetBlackboxPatternsParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBlackboxPatternsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetBlackboxedRangesParams *SetBlackboxedRangesParams -// MarshalJSON supports json.Marshaler interface -func (v SetAsyncCallStackDepthParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAsyncCallStackDepthParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(w, v) -} +type EasyJSON_exporter_SetBreakpointByURLParams *SetBreakpointByURLParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAsyncCallStackDepthParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetBreakpointByURLReturns *SetBreakpointByURLReturns -// MarshalJSON supports json.Marshaler interface -func (v SearchMatch) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchMatch) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(w, v) -} +type EasyJSON_exporter_SetBreakpointParams *SetBreakpointParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchMatch) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetBreakpointReturns *SetBreakpointReturns -// MarshalJSON supports json.Marshaler interface -func (v SearchInContentReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchInContentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(w, v) -} +type EasyJSON_exporter_SetBreakpointsActiveParams *SetBreakpointsActiveParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchInContentReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetPauseOnExceptionsParams *SetPauseOnExceptionsParams -// MarshalJSON supports json.Marshaler interface -func (v SearchInContentParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchInContentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(w, v) -} +type EasyJSON_exporter_SetScriptSourceParams *SetScriptSourceParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchInContentParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetScriptSourceReturns *SetScriptSourceReturns -// MarshalJSON supports json.Marshaler interface -func (v ScriptPosition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScriptPosition) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(w, v) -} +type EasyJSON_exporter_SetSkipAllPausesParams *SetSkipAllPausesParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScriptPosition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetVariableValueParams *SetVariableValueParams -// MarshalJSON supports json.Marshaler interface -func (v Scope) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Scope) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(w, v) -} +type EasyJSON_exporter_StepIntoParams *StepIntoParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Scope) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_StepOutParams *StepOutParams -// MarshalJSON supports json.Marshaler interface -func (v ScheduleStepIntoAsyncParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// 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 "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("\"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) -} +type EasyJSON_exporter_StepOverParams *StepOverParams diff --git a/cdp/debugger/types.go b/cdp/debugger/types.go index 0f4b2ba..50cff2b 100644 --- a/cdp/debugger/types.go +++ b/cdp/debugger/types.go @@ -3,7 +3,6 @@ package debugger import ( "errors" - "github.com/knq/chromedp/cdp/runtime" "github.com/mailru/easyjson" "github.com/mailru/easyjson/jlexer" "github.com/mailru/easyjson/jwriter" @@ -46,6 +45,7 @@ type CallFrame struct { FunctionName string `json:"functionName"` // Name of the JavaScript function called on this call frame. FunctionLocation *Location `json:"functionLocation,omitempty"` // Location in the source code. Location *Location `json:"location"` // Location in the source code. + URL string `json:"url"` // JavaScript script name or url. ScopeChain []*Scope `json:"scopeChain"` // Scope chain for this call frame. This *runtime.RemoteObject `json:"this"` // this object for this call frame. ReturnValue *runtime.RemoteObject `json:"returnValue,omitempty"` // The value being returned, if the function is at return point. diff --git a/cdp/emulation/easyjson.go b/cdp/emulation/easyjson.go index 2645259..3c5c917 100644 --- a/cdp/emulation/easyjson.go +++ b/cdp/emulation/easyjson.go @@ -306,7 +306,74 @@ func (v *SetPageScaleFactorParams) UnmarshalJSON(data []byte) error { func (v *SetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, out *SetGeolocationOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, out *SetNavigatorOverridesParams) { + 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 "platform": + out.Platform = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer, in SetNavigatorOverridesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"platform\":") + out.String(string(in.Platform)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetNavigatorOverridesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetNavigatorOverridesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetNavigatorOverridesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetNavigatorOverridesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, out *SetGeolocationOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -341,7 +408,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer, in SetGeolocationOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer, in SetGeolocationOverrideParams) { out.RawByte('{') first := true _ = first @@ -375,27 +442,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetGeolocationOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetGeolocationOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, out *SetEmulatedMediaParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, out *SetEmulatedMediaParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -426,7 +493,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer, in SetEmulatedMediaParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer, in SetEmulatedMediaParams) { out.RawByte('{') first := true _ = first @@ -442,27 +509,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetEmulatedMediaParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetEmulatedMediaParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetEmulatedMediaParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetEmulatedMediaParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, out *SetEmitTouchEventsForMouseParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, out *SetEmitTouchEventsForMouseParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -495,7 +562,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer, in SetEmitTouchEventsForMouseParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer, in SetEmitTouchEventsForMouseParams) { out.RawByte('{') first := true _ = first @@ -519,27 +586,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetEmitTouchEventsForMouseParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetEmitTouchEventsForMouseParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetEmitTouchEventsForMouseParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetEmitTouchEventsForMouseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, out *SetDeviceMetricsOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, out *SetDeviceMetricsOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -598,7 +665,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer, in SetDeviceMetricsOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer, in SetDeviceMetricsOverrideParams) { out.RawByte('{') first := true _ = first @@ -692,27 +759,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, out *SetDefaultBackgroundColorOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, out *SetDefaultBackgroundColorOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -751,7 +818,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer, in SetDefaultBackgroundColorOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer, in SetDefaultBackgroundColorOverrideParams) { out.RawByte('{') first := true _ = first @@ -773,27 +840,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetDefaultBackgroundColorOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetDefaultBackgroundColorOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, out *SetCPUThrottlingRateParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, out *SetCPUThrottlingRateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -824,7 +891,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer, in SetCPUThrottlingRateParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Writer, in SetCPUThrottlingRateParams) { out.RawByte('{') first := true _ = first @@ -840,27 +907,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetCPUThrottlingRateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCPUThrottlingRateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCPUThrottlingRateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCPUThrottlingRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, out *ScreenOrientation) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, out *ScreenOrientation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -893,7 +960,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Writer, in ScreenOrientation) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Writer, in ScreenOrientation) { out.RawByte('{') first := true _ = first @@ -915,27 +982,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v ScreenOrientation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ScreenOrientation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ScreenOrientation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ScreenOrientation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, out *ResetPageScaleFactorParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer, out *ResetPageScaleFactorParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -964,7 +1031,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Writer, in ResetPageScaleFactorParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Writer, in ResetPageScaleFactorParams) { out.RawByte('{') first := true _ = first @@ -974,27 +1041,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v ResetPageScaleFactorParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ResetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ResetPageScaleFactorParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ResetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer, out *EventVirtualTimePaused) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer, out *EventVirtualTimePaused) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1025,7 +1092,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Writer, in EventVirtualTimePaused) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Writer, in EventVirtualTimePaused) { out.RawByte('{') first := true _ = first @@ -1041,27 +1108,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventVirtualTimePaused) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventVirtualTimePaused) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventVirtualTimePaused) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventVirtualTimePaused) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer, out *EventVirtualTimeBudgetExpired) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer, out *EventVirtualTimeBudgetExpired) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1090,7 +1157,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Writer, in EventVirtualTimeBudgetExpired) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Writer, in EventVirtualTimeBudgetExpired) { out.RawByte('{') first := true _ = first @@ -1100,27 +1167,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventVirtualTimeBudgetExpired) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventVirtualTimeBudgetExpired) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventVirtualTimeBudgetExpired) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventVirtualTimeBudgetExpired) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer, out *ClearGeolocationOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer, out *ClearGeolocationOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1149,7 +1216,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Writer, in ClearGeolocationOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Writer, in ClearGeolocationOverrideParams) { out.RawByte('{') first := true _ = first @@ -1159,27 +1226,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v ClearGeolocationOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearGeolocationOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer, out *ClearDeviceMetricsOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(in *jlexer.Lexer, out *ClearDeviceMetricsOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1208,7 +1275,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Writer, in ClearDeviceMetricsOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(out *jwriter.Writer, in ClearDeviceMetricsOverrideParams) { out.RawByte('{') first := true _ = first @@ -1218,27 +1285,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v ClearDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(in *jlexer.Lexer, out *CanEmulateReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(in *jlexer.Lexer, out *CanEmulateReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1269,7 +1336,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(out *jwriter.Writer, in CanEmulateReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(out *jwriter.Writer, in CanEmulateReturns) { out.RawByte('{') first := true _ = first @@ -1287,27 +1354,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v CanEmulateReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanEmulateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanEmulateReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanEmulateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(in *jlexer.Lexer, out *CanEmulateParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(in *jlexer.Lexer, out *CanEmulateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1336,7 +1403,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(out *jwriter.Writer, in CanEmulateParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(out *jwriter.Writer, in CanEmulateParams) { out.RawByte('{') first := true _ = first @@ -1346,23 +1413,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v CanEmulateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanEmulateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanEmulateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanEmulateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(l, v) } diff --git a/cdp/emulation/emulation.go b/cdp/emulation/emulation.go index ccec63e..f26bf07 100644 --- a/cdp/emulation/emulation.go +++ b/cdp/emulation/emulation.go @@ -23,11 +23,11 @@ type SetDeviceMetricsOverrideParams struct { Height int64 `json:"height"` // Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. DeviceScaleFactor float64 `json:"deviceScaleFactor"` // Overriding device scale factor value. 0 disables the override. Mobile bool `json:"mobile"` // Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. - Scale float64 `json:"scale,omitempty"` // Scale to apply to resulting view image. Ignored in |fitWindow| mode. - ScreenWidth int64 `json:"screenWidth,omitempty"` // Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. - ScreenHeight int64 `json:"screenHeight,omitempty"` // Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. - PositionX int64 `json:"positionX,omitempty"` // Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. - PositionY int64 `json:"positionY,omitempty"` // Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + Scale float64 `json:"scale,omitempty"` // Scale to apply to resulting view image. + ScreenWidth int64 `json:"screenWidth,omitempty"` // Overriding screen width value in pixels (minimum 0, maximum 10000000). + ScreenHeight int64 `json:"screenHeight,omitempty"` // Overriding screen height value in pixels (minimum 0, maximum 10000000). + PositionX int64 `json:"positionX,omitempty"` // Overriding view X position on screen in pixels (minimum 0, maximum 10000000). + PositionY int64 `json:"positionY,omitempty"` // Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). DontSetVisibleSize bool `json:"dontSetVisibleSize,omitempty"` // Do not set visible view size, rely upon explicit setVisibleSize call. ScreenOrientation *ScreenOrientation `json:"screenOrientation,omitempty"` // Screen orientation override. } @@ -51,36 +51,35 @@ func SetDeviceMetricsOverride(width int64, height int64, deviceScaleFactor float } } -// WithScale scale to apply to resulting view image. Ignored in |fitWindow| -// mode. +// WithScale scale to apply to resulting view image. func (p SetDeviceMetricsOverrideParams) WithScale(scale float64) *SetDeviceMetricsOverrideParams { p.Scale = scale return &p } // WithScreenWidth overriding screen width value in pixels (minimum 0, -// maximum 10000000). Only used for |mobile==true|. +// maximum 10000000). func (p SetDeviceMetricsOverrideParams) WithScreenWidth(screenWidth int64) *SetDeviceMetricsOverrideParams { p.ScreenWidth = screenWidth return &p } // WithScreenHeight overriding screen height value in pixels (minimum 0, -// maximum 10000000). Only used for |mobile==true|. +// maximum 10000000). func (p SetDeviceMetricsOverrideParams) WithScreenHeight(screenHeight int64) *SetDeviceMetricsOverrideParams { p.ScreenHeight = screenHeight return &p } // WithPositionX overriding view X position on screen in pixels (minimum 0, -// maximum 10000000). Only used for |mobile==true|. +// maximum 10000000). func (p SetDeviceMetricsOverrideParams) WithPositionX(positionX int64) *SetDeviceMetricsOverrideParams { p.PositionX = positionX return &p } // WithPositionY overriding view Y position on screen in pixels (minimum 0, -// maximum 10000000). Only used for |mobile==true|. +// maximum 10000000). func (p SetDeviceMetricsOverrideParams) WithPositionY(positionY int64) *SetDeviceMetricsOverrideParams { p.PositionY = positionY return &p @@ -396,6 +395,29 @@ func (p *SetVirtualTimePolicyParams) Do(ctxt context.Context, h cdp.Handler) (er return h.Execute(ctxt, cdp.CommandEmulationSetVirtualTimePolicy, p, nil) } +// SetNavigatorOverridesParams overrides value returned by the javascript +// navigator object. +type SetNavigatorOverridesParams struct { + Platform string `json:"platform"` // The platform navigator.platform should return. +} + +// SetNavigatorOverrides overrides value returned by the javascript navigator +// object. +// +// parameters: +// platform - The platform navigator.platform should return. +func SetNavigatorOverrides(platform string) *SetNavigatorOverridesParams { + return &SetNavigatorOverridesParams{ + Platform: platform, + } +} + +// Do executes Emulation.setNavigatorOverrides against the provided context and +// target handler. +func (p *SetNavigatorOverridesParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandEmulationSetNavigatorOverrides, p, nil) +} + // SetDefaultBackgroundColorOverrideParams sets or clears an override of the // default background color of the frame. This override is used if the content // does not specify one. diff --git a/cdp/input/easyjson.go b/cdp/input/easyjson.go index 2e862d5..9f75b02 100644 --- a/cdp/input/easyjson.go +++ b/cdp/input/easyjson.go @@ -37,13 +37,13 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInput(in *jlexer.Lexer, out *T } switch key { case "x": - out.X = int64(in.Int64()) + out.X = float64(in.Float64()) case "y": - out.Y = int64(in.Int64()) + out.Y = float64(in.Float64()) case "radiusX": - out.RadiusX = int64(in.Int64()) + out.RadiusX = float64(in.Float64()) case "radiusY": - out.RadiusY = int64(in.Int64()) + out.RadiusY = float64(in.Float64()) case "rotationAngle": out.RotationAngle = float64(in.Float64()) case "force": @@ -69,20 +69,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput(out *jwriter.Writer, in } first = false out.RawString("\"x\":") - out.Int64(int64(in.X)) + out.Float64(float64(in.X)) if !first { out.RawByte(',') } first = false out.RawString("\"y\":") - out.Int64(int64(in.Y)) + out.Float64(float64(in.Y)) if in.RadiusX != 0 { if !first { out.RawByte(',') } first = false out.RawString("\"radiusX\":") - out.Int64(int64(in.RadiusX)) + out.Float64(float64(in.RadiusX)) } if in.RadiusY != 0 { if !first { @@ -90,7 +90,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput(out *jwriter.Writer, in } first = false out.RawString("\"radiusY\":") - out.Int64(int64(in.RadiusY)) + out.Float64(float64(in.RadiusY)) } if in.RotationAngle != 0 { if !first { diff --git a/cdp/input/types.go b/cdp/input/types.go index a21cb4a..f9546c1 100644 --- a/cdp/input/types.go +++ b/cdp/input/types.go @@ -15,10 +15,10 @@ import ( // TouchPoint [no description]. type TouchPoint struct { - X int64 `json:"x"` // X coordinate of the event relative to the main frame's viewport in CSS pixels. - Y int64 `json:"y"` // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. - RadiusX int64 `json:"radiusX,omitempty"` // X radius of the touch area (default: 1). - RadiusY int64 `json:"radiusY,omitempty"` // Y radius of the touch area (default: 1). + X float64 `json:"x"` // X coordinate of the event relative to the main frame's viewport in CSS pixels. + Y float64 `json:"y"` // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. + RadiusX float64 `json:"radiusX,omitempty"` // X radius of the touch area (default: 1.0). + RadiusY float64 `json:"radiusY,omitempty"` // Y radius of the touch area (default: 1.0). RotationAngle float64 `json:"rotationAngle,omitempty"` // Rotation angle (default: 0.0). Force float64 `json:"force,omitempty"` // Force (default: 1.0). ID float64 `json:"id,omitempty"` // Identifier used to track touch sources between events, must be unique within an event. diff --git a/cdp/log/easyjson.go b/cdp/log/easyjson.go index 410d98e..3d497a1 100644 --- a/cdp/log/easyjson.go +++ b/cdp/log/easyjson.go @@ -1,687 +1,65 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. +// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package +// compilable during generation. -package log +package log import ( - 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" + "github.com/mailru/easyjson/jwriter" + "github.com/mailru/easyjson/jlexer" ) -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) +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) {} -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('}') -} +type EasyJSON_exporter_ClearParams *ClearParams -// MarshalJSON supports json.Marshaler interface -func (v ViolationSetting) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ViolationSetting) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(w, v) -} +type EasyJSON_exporter_DisableParams *DisableParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ViolationSetting) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EnableParams *EnableParams -// MarshalJSON supports json.Marshaler interface -func (v StopViolationsReportParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(w, v) -} +type EasyJSON_exporter_Entry *Entry -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopViolationsReportParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventEntryAdded *EventEntryAdded -// MarshalJSON supports json.Marshaler interface -func (v StartViolationsReportParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(w, v) -} +type EasyJSON_exporter_StartViolationsReportParams *StartViolationsReportParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartViolationsReportParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_StopViolationsReportParams *StopViolationsReportParams -// MarshalJSON supports json.Marshaler interface -func (v EventEntryAdded) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// 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) -} +type EasyJSON_exporter_ViolationSetting *ViolationSetting diff --git a/cdp/network/easyjson.go b/cdp/network/easyjson.go index 4c20421..1339913 100644 --- a/cdp/network/easyjson.go +++ b/cdp/network/easyjson.go @@ -1,6803 +1,443 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. +// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package +// compilable during generation. -package network +package network import ( - 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" + "github.com/mailru/easyjson/jwriter" + "github.com/mailru/easyjson/jlexer" ) -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) +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) {} -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('}') -} +type EasyJSON_exporter_AuthChallenge *AuthChallenge -// MarshalJSON supports json.Marshaler interface -func (v WebSocketResponse) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(w, v) -} +type EasyJSON_exporter_AuthChallengeResponse *AuthChallengeResponse -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WebSocketResponse) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_CachedResource *CachedResource -// MarshalJSON supports json.Marshaler interface -func (v WebSocketRequest) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(w, v) -} +type EasyJSON_exporter_CanClearBrowserCacheParams *CanClearBrowserCacheParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WebSocketRequest) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_CanClearBrowserCacheReturns *CanClearBrowserCacheReturns -// MarshalJSON supports json.Marshaler interface -func (v WebSocketFrame) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(w, v) -} +type EasyJSON_exporter_CanClearBrowserCookiesParams *CanClearBrowserCookiesParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WebSocketFrame) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_CanClearBrowserCookiesReturns *CanClearBrowserCookiesReturns -// MarshalJSON supports json.Marshaler interface -func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(w, v) -} +type EasyJSON_exporter_CanEmulateNetworkConditionsParams *CanEmulateNetworkConditionsParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_CanEmulateNetworkConditionsReturns *CanEmulateNetworkConditionsReturns -// MarshalJSON supports json.Marshaler interface -func (v SetUserAgentOverrideParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetUserAgentOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(w, v) -} +type EasyJSON_exporter_ClearBrowserCacheParams *ClearBrowserCacheParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetUserAgentOverrideParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_ClearBrowserCookiesParams *ClearBrowserCookiesParams -// MarshalJSON supports json.Marshaler interface -func (v SetRequestInterceptionEnabledParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetRequestInterceptionEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(w, v) -} +type EasyJSON_exporter_ContinueInterceptedRequestParams *ContinueInterceptedRequestParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetRequestInterceptionEnabledParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_Cookie *Cookie -// MarshalJSON supports json.Marshaler interface -func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(w, v) -} +type EasyJSON_exporter_CookieParam *CookieParam -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_DeleteCookiesParams *DeleteCookiesParams -// MarshalJSON supports json.Marshaler interface -func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(w, v) -} +type EasyJSON_exporter_DisableParams *DisableParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EmulateNetworkConditionsParams *EmulateNetworkConditionsParams -// MarshalJSON supports json.Marshaler interface -func (v SetCookiesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v) -} +type EasyJSON_exporter_EnableParams *EnableParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetCookiesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventDataReceived *EventDataReceived -// MarshalJSON supports json.Marshaler interface -func (v SetCookieReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetCookieReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v) -} +type EasyJSON_exporter_EventEventSourceMessageReceived *EventEventSourceMessageReceived -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetCookieReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventLoadingFailed *EventLoadingFailed -// MarshalJSON supports json.Marshaler interface -func (v SetCookieParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v) -} +type EasyJSON_exporter_EventLoadingFinished *EventLoadingFinished -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetCookieParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventRequestIntercepted *EventRequestIntercepted -// MarshalJSON supports json.Marshaler interface -func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v) -} +type EasyJSON_exporter_EventRequestServedFromCache *EventRequestServedFromCache -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventRequestWillBeSent *EventRequestWillBeSent -// MarshalJSON supports json.Marshaler interface -func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v) -} +type EasyJSON_exporter_EventResourceChangedPriority *EventResourceChangedPriority -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventResponseReceived *EventResponseReceived -// MarshalJSON supports json.Marshaler interface -func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v) -} +type EasyJSON_exporter_EventWebSocketClosed *EventWebSocketClosed -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventWebSocketCreated *EventWebSocketCreated -// MarshalJSON supports json.Marshaler interface -func (v SecurityDetails) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v) -} +type EasyJSON_exporter_EventWebSocketFrameError *EventWebSocketFrameError -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecurityDetails) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventWebSocketFrameReceived *EventWebSocketFrameReceived -// MarshalJSON supports json.Marshaler interface -func (v Response) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Response) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v) -} +type EasyJSON_exporter_EventWebSocketFrameSent *EventWebSocketFrameSent -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Response) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventWebSocketHandshakeResponseReceived *EventWebSocketHandshakeResponseReceived -// MarshalJSON supports json.Marshaler interface -func (v ResourceTiming) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v) -} +type EasyJSON_exporter_EventWebSocketWillSendHandshakeRequest *EventWebSocketWillSendHandshakeRequest -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResourceTiming) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetAllCookiesParams *GetAllCookiesParams -// MarshalJSON supports json.Marshaler interface -func (v Request) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Request) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v) -} +type EasyJSON_exporter_GetAllCookiesReturns *GetAllCookiesReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Request) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetCertificateParams *GetCertificateParams -// MarshalJSON supports json.Marshaler interface -func (v ReplayXHRParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v) -} +type EasyJSON_exporter_GetCertificateReturns *GetCertificateReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetCookiesParams *GetCookiesParams -// MarshalJSON supports json.Marshaler interface -func (v Initiator) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v) -} +type EasyJSON_exporter_GetCookiesReturns *GetCookiesReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Initiator) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetResponseBodyParams *GetResponseBodyParams -// MarshalJSON supports json.Marshaler interface -func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v) -} +type EasyJSON_exporter_GetResponseBodyReturns *GetResponseBodyReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_Initiator *Initiator -// MarshalJSON supports json.Marshaler interface -func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v) -} +type EasyJSON_exporter_ReplayXHRParams *ReplayXHRParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_Request *Request -// MarshalJSON supports json.Marshaler interface -func (v GetCookiesReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v) -} +type EasyJSON_exporter_ResourceTiming *ResourceTiming -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_Response *Response -// MarshalJSON supports json.Marshaler interface -func (v GetCookiesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v) -} +type EasyJSON_exporter_SecurityDetails *SecurityDetails -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCookiesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetBlockedURLSParams *SetBlockedURLSParams -// MarshalJSON supports json.Marshaler interface -func (v GetCertificateReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v) -} +type EasyJSON_exporter_SetBypassServiceWorkerParams *SetBypassServiceWorkerParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetCacheDisabledParams *SetCacheDisabledParams -// MarshalJSON supports json.Marshaler interface -func (v GetCertificateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v) -} +type EasyJSON_exporter_SetCookieParams *SetCookieParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCertificateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetCookieReturns *SetCookieReturns -// MarshalJSON supports json.Marshaler interface -func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v) -} +type EasyJSON_exporter_SetCookiesParams *SetCookiesParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetDataSizeLimitsForTestParams *SetDataSizeLimitsForTestParams -// MarshalJSON supports json.Marshaler interface -func (v GetAllCookiesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v) -} +type EasyJSON_exporter_SetExtraHTTPHeadersParams *SetExtraHTTPHeadersParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetRequestInterceptionEnabledParams *SetRequestInterceptionEnabledParams -// MarshalJSON supports json.Marshaler interface -func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v) -} +type EasyJSON_exporter_SetUserAgentOverrideParams *SetUserAgentOverrideParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SignedCertificateTimestamp *SignedCertificateTimestamp -// MarshalJSON supports json.Marshaler interface -func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v) -} +type EasyJSON_exporter_WebSocketFrame *WebSocketFrame -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_WebSocketRequest *WebSocketRequest -// MarshalJSON supports json.Marshaler interface -func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// 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) -} +type EasyJSON_exporter_WebSocketResponse *WebSocketResponse diff --git a/cdp/network/network.go b/cdp/network/network.go index 05e9a17..2f4998d 100644 --- a/cdp/network/network.go +++ b/cdp/network/network.go @@ -562,9 +562,9 @@ func (p *CanEmulateNetworkConditionsParams) Do(ctxt context.Context, h cdp.Handl // EmulateNetworkConditionsParams activates emulation of network conditions. type EmulateNetworkConditionsParams struct { Offline bool `json:"offline"` // True to emulate internet disconnection. - Latency float64 `json:"latency"` // Additional latency (ms). - DownloadThroughput float64 `json:"downloadThroughput"` // Maximal aggregated download throughput. - UploadThroughput float64 `json:"uploadThroughput"` // Maximal aggregated upload throughput. + Latency float64 `json:"latency"` // Minimum latency from request sent to response headers received (ms). + DownloadThroughput float64 `json:"downloadThroughput"` // Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. + UploadThroughput float64 `json:"uploadThroughput"` // Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. ConnectionType ConnectionType `json:"connectionType,omitempty"` // Connection type if known. } @@ -572,9 +572,9 @@ type EmulateNetworkConditionsParams struct { // // parameters: // offline - True to emulate internet disconnection. -// latency - Additional latency (ms). -// downloadThroughput - Maximal aggregated download throughput. -// uploadThroughput - Maximal aggregated upload throughput. +// latency - Minimum latency from request sent to response headers received (ms). +// downloadThroughput - Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. +// uploadThroughput - Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. func EmulateNetworkConditions(offline bool, latency float64, downloadThroughput float64, uploadThroughput float64) *EmulateNetworkConditionsParams { return &EmulateNetworkConditionsParams{ Offline: offline, diff --git a/cdp/network/types.go b/cdp/network/types.go index 92ce784..4877a83 100644 --- a/cdp/network/types.go +++ b/cdp/network/types.go @@ -105,7 +105,8 @@ func (t *ErrorReason) UnmarshalJSON(buf []byte) error { // Headers request / response headers as keys / values of JSON object. type Headers map[string]interface{} -// ConnectionType loading priority of a resource request. +// ConnectionType the underlying connection technology that the browser is +// supposedly using. type ConnectionType string // String returns the ConnectionType as string value. diff --git a/cdp/overlay/easyjson.go b/cdp/overlay/easyjson.go index 0838a04..fac7716 100644 --- a/cdp/overlay/easyjson.go +++ b/cdp/overlay/easyjson.go @@ -1,1892 +1,156 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. +// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package +// compilable during generation. -package overlay +package overlay import ( - 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" + "github.com/mailru/easyjson/jwriter" + "github.com/mailru/easyjson/jlexer" ) -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) +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) {} -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('}') -} +type EasyJSON_exporter_DisableParams *DisableParams -// MarshalJSON supports json.Marshaler interface -func (v SetSuspendedParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetSuspendedParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay(w, v) -} +type EasyJSON_exporter_EnableParams *EnableParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetSuspendedParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventInspectNodeRequested *EventInspectNodeRequested -// MarshalJSON supports json.Marshaler interface -func (v SetShowViewportSizeOnResizeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetShowViewportSizeOnResizeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay1(w, v) -} +type EasyJSON_exporter_EventNodeHighlightRequested *EventNodeHighlightRequested -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetShowViewportSizeOnResizeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay1(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventScreenshotRequested *EventScreenshotRequested -// MarshalJSON supports json.Marshaler interface -func (v SetShowScrollBottleneckRectsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetShowScrollBottleneckRectsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay2(w, v) -} +type EasyJSON_exporter_GetHighlightObjectForTestParams *GetHighlightObjectForTestParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetShowScrollBottleneckRectsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay2(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetHighlightObjectForTestReturns *GetHighlightObjectForTestReturns -// MarshalJSON supports json.Marshaler interface -func (v SetShowPaintRectsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetShowPaintRectsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay3(w, v) -} +type EasyJSON_exporter_HideHighlightParams *HideHighlightParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetShowPaintRectsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay3(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_HighlightConfig *HighlightConfig -// MarshalJSON supports json.Marshaler interface -func (v SetShowFPSCounterParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetShowFPSCounterParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay4(w, v) -} +type EasyJSON_exporter_HighlightFrameParams *HighlightFrameParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetShowFPSCounterParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay4(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_HighlightNodeParams *HighlightNodeParams -// MarshalJSON supports json.Marshaler interface -func (v SetShowDebugBordersParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetShowDebugBordersParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay5(w, v) -} +type EasyJSON_exporter_HighlightQuadParams *HighlightQuadParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetShowDebugBordersParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay5(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_HighlightRectParams *HighlightRectParams -// MarshalJSON supports json.Marshaler interface -func (v SetPausedInDebuggerMessageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetPausedInDebuggerMessageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay6(w, v) -} +type EasyJSON_exporter_SetInspectModeParams *SetInspectModeParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetPausedInDebuggerMessageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay6(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetPausedInDebuggerMessageParams *SetPausedInDebuggerMessageParams -// MarshalJSON supports json.Marshaler interface -func (v SetInspectModeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay7(w, v) -} +type EasyJSON_exporter_SetShowDebugBordersParams *SetShowDebugBordersParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay7(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetShowFPSCounterParams *SetShowFPSCounterParams -// MarshalJSON supports json.Marshaler interface -func (v HighlightRectParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay8(w, v) -} +type EasyJSON_exporter_SetShowPaintRectsParams *SetShowPaintRectsParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HighlightRectParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay8(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetShowScrollBottleneckRectsParams *SetShowScrollBottleneckRectsParams -// MarshalJSON supports json.Marshaler interface -func (v HighlightQuadParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay9(w, v) -} +type EasyJSON_exporter_SetShowViewportSizeOnResizeParams *SetShowViewportSizeOnResizeParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay9(&r, v) - return r.Error() -} +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) {} -// 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) -} +type EasyJSON_exporter_SetSuspendedParams *SetSuspendedParams diff --git a/cdp/page/easyjson.go b/cdp/page/easyjson.go index ea94855..bb96488 100644 --- a/cdp/page/easyjson.go +++ b/cdp/page/easyjson.go @@ -1,5304 +1,450 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. +// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package +// compilable during generation. -package page +package page import ( - 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" + "github.com/mailru/easyjson/jwriter" + "github.com/mailru/easyjson/jlexer" ) -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) +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) {} -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('}') -} +type EasyJSON_exporter_AddScriptToEvaluateOnNewDocumentParams *AddScriptToEvaluateOnNewDocumentParams -// MarshalJSON supports json.Marshaler interface -func (v VisualViewport) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v VisualViewport) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage(w, v) -} +type EasyJSON_exporter_AddScriptToEvaluateOnNewDocumentReturns *AddScriptToEvaluateOnNewDocumentReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *VisualViewport) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_AppManifestError *AppManifestError -// MarshalJSON supports json.Marshaler interface -func (v Viewport) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Viewport) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(w, v) -} +type EasyJSON_exporter_BringToFrontParams *BringToFrontParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Viewport) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_CaptureScreenshotParams *CaptureScreenshotParams -// MarshalJSON supports json.Marshaler interface -func (v StopScreencastParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(w, v) -} +type EasyJSON_exporter_CaptureScreenshotReturns *CaptureScreenshotReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopScreencastParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_CreateIsolatedWorldParams *CreateIsolatedWorldParams -// MarshalJSON supports json.Marshaler interface -func (v StopLoadingParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(w, v) -} +type EasyJSON_exporter_CreateIsolatedWorldReturns *CreateIsolatedWorldReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopLoadingParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_DisableParams *DisableParams -// MarshalJSON supports json.Marshaler interface -func (v StartScreencastParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(w, v) -} +type EasyJSON_exporter_EnableParams *EnableParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartScreencastParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventDomContentEventFired *EventDomContentEventFired -// MarshalJSON supports json.Marshaler interface -func (v SetDownloadBehaviorParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetDownloadBehaviorParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(w, v) -} +type EasyJSON_exporter_EventFrameAttached *EventFrameAttached -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetDownloadBehaviorParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventFrameClearedScheduledNavigation *EventFrameClearedScheduledNavigation -// MarshalJSON supports json.Marshaler interface -func (v SetDocumentContentParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(w, v) -} +type EasyJSON_exporter_EventFrameDetached *EventFrameDetached -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventFrameNavigated *EventFrameNavigated -// MarshalJSON supports json.Marshaler interface -func (v SetAutoAttachToCreatedPagesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAutoAttachToCreatedPagesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(w, v) -} +type EasyJSON_exporter_EventFrameResized *EventFrameResized -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAutoAttachToCreatedPagesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventFrameScheduledNavigation *EventFrameScheduledNavigation -// MarshalJSON supports json.Marshaler interface -func (v SetAdBlockingEnabledParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAdBlockingEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(w, v) -} +type EasyJSON_exporter_EventFrameStartedLoading *EventFrameStartedLoading -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAdBlockingEnabledParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventFrameStoppedLoading *EventFrameStoppedLoading -// MarshalJSON supports json.Marshaler interface -func (v SearchInResourceReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchInResourceReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(w, v) -} +type EasyJSON_exporter_EventInterstitialHidden *EventInterstitialHidden -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchInResourceReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventInterstitialShown *EventInterstitialShown -// MarshalJSON supports json.Marshaler interface -func (v SearchInResourceParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(w, v) -} +type EasyJSON_exporter_EventJavascriptDialogClosed *EventJavascriptDialogClosed -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventJavascriptDialogOpening *EventJavascriptDialogOpening -// MarshalJSON supports json.Marshaler interface -func (v ScreencastFrameMetadata) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScreencastFrameMetadata) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(w, v) -} +type EasyJSON_exporter_EventLifecycleEvent *EventLifecycleEvent -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScreencastFrameMetadata) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventLoadEventFired *EventLoadEventFired -// MarshalJSON supports json.Marshaler interface -func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(w, v) -} +type EasyJSON_exporter_EventScreencastFrame *EventScreencastFrame -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_EventScreencastVisibilityChanged *EventScreencastVisibilityChanged -// MarshalJSON supports json.Marshaler interface -func (v RequestAppBannerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestAppBannerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(w, v) -} +type EasyJSON_exporter_FrameResource *FrameResource -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestAppBannerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_FrameResourceTree *FrameResourceTree -// MarshalJSON supports json.Marshaler interface -func (v RemoveScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(w, v) -} +type EasyJSON_exporter_GetAppManifestParams *GetAppManifestParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetAppManifestReturns *GetAppManifestReturns -// MarshalJSON supports json.Marshaler interface -func (v ReloadParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(w, v) -} +type EasyJSON_exporter_GetLayoutMetricsParams *GetLayoutMetricsParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReloadParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetLayoutMetricsReturns *GetLayoutMetricsReturns -// MarshalJSON supports json.Marshaler interface -func (v PrintToPDFReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PrintToPDFReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(w, v) -} +type EasyJSON_exporter_GetNavigationHistoryParams *GetNavigationHistoryParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PrintToPDFReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetNavigationHistoryReturns *GetNavigationHistoryReturns -// MarshalJSON supports json.Marshaler interface -func (v PrintToPDFParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PrintToPDFParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(w, v) -} +type EasyJSON_exporter_GetResourceContentParams *GetResourceContentParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PrintToPDFParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetResourceContentReturns *GetResourceContentReturns -// MarshalJSON supports json.Marshaler interface -func (v NavigationEntry) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NavigationEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(w, v) -} +type EasyJSON_exporter_GetResourceTreeParams *GetResourceTreeParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NavigationEntry) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_GetResourceTreeReturns *GetResourceTreeReturns -// MarshalJSON supports json.Marshaler interface -func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(w, v) -} +type EasyJSON_exporter_HandleJavaScriptDialogParams *HandleJavaScriptDialogParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_LayoutViewport *LayoutViewport -// MarshalJSON supports json.Marshaler interface -func (v NavigateReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(w, v) -} +type EasyJSON_exporter_NavigateParams *NavigateParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NavigateReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_NavigateReturns *NavigateReturns -// MarshalJSON supports json.Marshaler interface -func (v NavigateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(w, v) -} +type EasyJSON_exporter_NavigateToHistoryEntryParams *NavigateToHistoryEntryParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NavigateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_NavigationEntry *NavigationEntry -// MarshalJSON supports json.Marshaler interface -func (v LayoutViewport) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(w, v) -} +type EasyJSON_exporter_PrintToPDFParams *PrintToPDFParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LayoutViewport) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_PrintToPDFReturns *PrintToPDFReturns -// MarshalJSON supports json.Marshaler interface -func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(w, v) -} +type EasyJSON_exporter_ReloadParams *ReloadParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_RemoveScriptToEvaluateOnNewDocumentParams *RemoveScriptToEvaluateOnNewDocumentParams -// MarshalJSON supports json.Marshaler interface -func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(w, v) -} +type EasyJSON_exporter_RequestAppBannerParams *RequestAppBannerParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_ScreencastFrameAckParams *ScreencastFrameAckParams -// MarshalJSON supports json.Marshaler interface -func (v GetResourceTreeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(w, v) -} +type EasyJSON_exporter_ScreencastFrameMetadata *ScreencastFrameMetadata -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SearchInResourceParams *SearchInResourceParams -// MarshalJSON supports json.Marshaler interface -func (v GetResourceContentReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(w, v) -} +type EasyJSON_exporter_SearchInResourceReturns *SearchInResourceReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetAdBlockingEnabledParams *SetAdBlockingEnabledParams -// MarshalJSON supports json.Marshaler interface -func (v GetResourceContentParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(w, v) -} +type EasyJSON_exporter_SetAutoAttachToCreatedPagesParams *SetAutoAttachToCreatedPagesParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_SetDocumentContentParams *SetDocumentContentParams -// MarshalJSON supports json.Marshaler interface -func (v GetNavigationHistoryReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(w, v) -} +type EasyJSON_exporter_SetDownloadBehaviorParams *SetDownloadBehaviorParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_StartScreencastParams *StartScreencastParams -// MarshalJSON supports json.Marshaler interface -func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(w, v) -} +type EasyJSON_exporter_StopLoadingParams *StopLoadingParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(&r, v) - return r.Error() -} +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) {} -// 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('}') -} +type EasyJSON_exporter_StopScreencastParams *StopScreencastParams -// MarshalJSON supports json.Marshaler interface -func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(w, v) -} +type EasyJSON_exporter_Viewport *Viewport -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(&r, v) - return r.Error() -} +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) {} -// 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) -} +type EasyJSON_exporter_VisualViewport *VisualViewport diff --git a/cdp/profiler/easyjson.go b/cdp/profiler/easyjson.go index 1496faf..9b3ae0b 100644 --- a/cdp/profiler/easyjson.go +++ b/cdp/profiler/easyjson.go @@ -1,1927 +1,198 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. +// TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package +// compilable during generation. -package profiler +package profiler import ( - 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" + "github.com/mailru/easyjson/jwriter" + "github.com/mailru/easyjson/jlexer" ) -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) +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) {} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(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 v1 *ScriptCoverage - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ScriptCoverage) - } - (*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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(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 v2, v3 := range in.Result { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} +type EasyJSON_exporter_CoverageRange *CoverageRange -// MarshalJSON supports json.Marshaler interface -func (v TakePreciseCoverageReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TakePreciseCoverageReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(w, v) -} +type EasyJSON_exporter_DisableParams *DisableParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TakePreciseCoverageReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TakePreciseCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(out *jwriter.Writer, in TakePreciseCoverageParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} +type EasyJSON_exporter_EnableParams *EnableParams -// MarshalJSON supports json.Marshaler interface -func (v TakePreciseCoverageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TakePreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(w, v) -} +type EasyJSON_exporter_EventConsoleProfileFinished *EventConsoleProfileFinished -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TakePreciseCoverageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TakePreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(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('}') -} +type EasyJSON_exporter_EventConsoleProfileStarted *EventConsoleProfileStarted -// MarshalJSON supports json.Marshaler interface -func (v StopReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(w, v) -} +type EasyJSON_exporter_FunctionCoverage *FunctionCoverage -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(out *jwriter.Writer, in StopPreciseCoverageParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} +type EasyJSON_exporter_GetBestEffortCoverageParams *GetBestEffortCoverageParams -// MarshalJSON supports json.Marshaler interface -func (v StopPreciseCoverageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(w, v) -} +type EasyJSON_exporter_GetBestEffortCoverageReturns *GetBestEffortCoverageReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopPreciseCoverageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer, in StopParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} +type EasyJSON_exporter_PositionTickInfo *PositionTickInfo -// MarshalJSON supports json.Marshaler interface -func (v StopParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(w, v) -} +type EasyJSON_exporter_Profile *Profile -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(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('}') -} +type EasyJSON_exporter_ProfileNode *ProfileNode -// MarshalJSON supports json.Marshaler interface -func (v StartPreciseCoverageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(w, v) -} +type EasyJSON_exporter_ScriptCoverage *ScriptCoverage -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartPreciseCoverageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(out *jwriter.Writer, in StartParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} +type EasyJSON_exporter_ScriptTypeProfile *ScriptTypeProfile -// MarshalJSON supports json.Marshaler interface -func (v StartParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(w, v) -} +type EasyJSON_exporter_SetSamplingIntervalParams *SetSamplingIntervalParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(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('}') -} +type EasyJSON_exporter_StartParams *StartParams -// MarshalJSON supports json.Marshaler interface -func (v SetSamplingIntervalParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetSamplingIntervalParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(w, v) -} +type EasyJSON_exporter_StartPreciseCoverageParams *StartPreciseCoverageParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetSamplingIntervalParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetSamplingIntervalParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(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 v4 *FunctionCoverage - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(FunctionCoverage) - } - (*v4).UnmarshalEasyJSON(in) - } - out.Functions = append(out.Functions, v4) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(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 v5, v6 := range in.Functions { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - out.RawByte('}') -} +type EasyJSON_exporter_StartTypeProfileParams *StartTypeProfileParams -// MarshalJSON supports json.Marshaler interface -func (v ScriptCoverage) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScriptCoverage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(w, v) -} +type EasyJSON_exporter_StopParams *StopParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScriptCoverage) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScriptCoverage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(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 v7 int64 - v7 = int64(in.Int64()) - out.Children = append(out.Children, v7) - 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 v8 *PositionTickInfo - if in.IsNull() { - in.Skip() - v8 = nil - } else { - if v8 == nil { - v8 = new(PositionTickInfo) - } - (*v8).UnmarshalEasyJSON(in) - } - out.PositionTicks = append(out.PositionTicks, v8) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(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 v9, v10 := range in.Children { - if v9 > 0 { - out.RawByte(',') - } - out.Int64(int64(v10)) - } - 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 v11, v12 := range in.PositionTicks { - if v11 > 0 { - out.RawByte(',') - } - if v12 == nil { - out.RawString("null") - } else { - (*v12).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} +type EasyJSON_exporter_StopPreciseCoverageParams *StopPreciseCoverageParams -// MarshalJSON supports json.Marshaler interface -func (v ProfileNode) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ProfileNode) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(w, v) -} +type EasyJSON_exporter_StopReturns *StopReturns -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ProfileNode) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(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 v13 *ProfileNode - if in.IsNull() { - in.Skip() - v13 = nil - } else { - if v13 == nil { - v13 = new(ProfileNode) - } - (*v13).UnmarshalEasyJSON(in) - } - out.Nodes = append(out.Nodes, v13) - 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 v14 int64 - v14 = int64(in.Int64()) - out.Samples = append(out.Samples, v14) - 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 v15 int64 - v15 = int64(in.Int64()) - out.TimeDeltas = append(out.TimeDeltas, v15) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(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 v16, v17 := range in.Nodes { - if v16 > 0 { - out.RawByte(',') - } - if v17 == nil { - out.RawString("null") - } else { - (*v17).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 v18, v19 := range in.Samples { - if v18 > 0 { - out.RawByte(',') - } - out.Int64(int64(v19)) - } - 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 v20, v21 := range in.TimeDeltas { - if v20 > 0 { - out.RawByte(',') - } - out.Int64(int64(v21)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} +type EasyJSON_exporter_StopTypeProfileParams *StopTypeProfileParams -// MarshalJSON supports json.Marshaler interface -func (v Profile) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Profile) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(w, v) -} +type EasyJSON_exporter_TakePreciseCoverageParams *TakePreciseCoverageParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Profile) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Profile) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(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('}') -} +type EasyJSON_exporter_TakePreciseCoverageReturns *TakePreciseCoverageReturns -// MarshalJSON supports json.Marshaler interface -func (v PositionTickInfo) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PositionTickInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(w, v) -} +type EasyJSON_exporter_TakeTypeProfileParams *TakeTypeProfileParams -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PositionTickInfo) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PositionTickInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(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 v22 *ScriptCoverage - if in.IsNull() { - in.Skip() - v22 = nil - } else { - if v22 == nil { - v22 = new(ScriptCoverage) - } - (*v22).UnmarshalEasyJSON(in) - } - out.Result = append(out.Result, v22) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(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 v23, v24 := range in.Result { - if v23 > 0 { - out.RawByte(',') - } - if v24 == nil { - out.RawString("null") - } else { - (*v24).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} +type EasyJSON_exporter_TakeTypeProfileReturns *TakeTypeProfileReturns -// MarshalJSON supports json.Marshaler interface -func (v GetBestEffortCoverageReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} +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) {} -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetBestEffortCoverageReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(w, v) -} +type EasyJSON_exporter_TypeObject *TypeObject -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetBestEffortCoverageReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(&r, v) - return r.Error() -} +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) {} -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetBestEffortCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetBestEffortCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetBestEffortCoverageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetBestEffortCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(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 v25 *CoverageRange - if in.IsNull() { - in.Skip() - v25 = nil - } else { - if v25 == nil { - v25 = new(CoverageRange) - } - (*v25).UnmarshalEasyJSON(in) - } - out.Ranges = append(out.Ranges, v25) - in.WantComma() - } - in.Delim(']') - } - case "isBlockCoverage": - out.IsBlockCoverage = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(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 v26, v27 := range in.Ranges { - if v26 > 0 { - out.RawByte(',') - } - if v27 == nil { - out.RawString("null") - } else { - (*v27).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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FunctionCoverage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FunctionCoverage) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FunctionCoverage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventConsoleProfileStarted) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventConsoleProfileStarted) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventConsoleProfileStarted) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventConsoleProfileFinished) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventConsoleProfileFinished) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventConsoleProfileFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CoverageRange) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CoverageRange) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CoverageRange) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(l, v) -} +type EasyJSON_exporter_TypeProfileEntry *TypeProfileEntry diff --git a/cdp/profiler/profiler.go b/cdp/profiler/profiler.go index 209a527..26a59c0 100644 --- a/cdp/profiler/profiler.go +++ b/cdp/profiler/profiler.go @@ -220,3 +220,62 @@ func (p *GetBestEffortCoverageParams) Do(ctxt context.Context, h cdp.Handler) (r return res.Result, nil } + +// StartTypeProfileParams enable type profile. +type StartTypeProfileParams struct{} + +// StartTypeProfile enable type profile. +func StartTypeProfile() *StartTypeProfileParams { + return &StartTypeProfileParams{} +} + +// Do executes Profiler.startTypeProfile against the provided context and +// target handler. +func (p *StartTypeProfileParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandProfilerStartTypeProfile, nil, nil) +} + +// StopTypeProfileParams disable type profile. Disabling releases type +// profile data collected so far. +type StopTypeProfileParams struct{} + +// StopTypeProfile disable type profile. Disabling releases type profile data +// collected so far. +func StopTypeProfile() *StopTypeProfileParams { + return &StopTypeProfileParams{} +} + +// Do executes Profiler.stopTypeProfile against the provided context and +// target handler. +func (p *StopTypeProfileParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandProfilerStopTypeProfile, nil, nil) +} + +// TakeTypeProfileParams collect type profile. +type TakeTypeProfileParams struct{} + +// TakeTypeProfile collect type profile. +func TakeTypeProfile() *TakeTypeProfileParams { + return &TakeTypeProfileParams{} +} + +// TakeTypeProfileReturns return values. +type TakeTypeProfileReturns struct { + Result []*ScriptTypeProfile `json:"result,omitempty"` // Type profile for all scripts since startTypeProfile() was turned on. +} + +// Do executes Profiler.takeTypeProfile against the provided context and +// target handler. +// +// returns: +// result - Type profile for all scripts since startTypeProfile() was turned on. +func (p *TakeTypeProfileParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptTypeProfile, err error) { + // execute + var res TakeTypeProfileReturns + err = h.Execute(ctxt, cdp.CommandProfilerTakeTypeProfile, nil, &res) + if err != nil { + return nil, err + } + + return res.Result, nil +} diff --git a/cdp/profiler/types.go b/cdp/profiler/types.go index 4aedd7c..4021191 100644 --- a/cdp/profiler/types.go +++ b/cdp/profiler/types.go @@ -51,3 +51,22 @@ type ScriptCoverage struct { URL string `json:"url"` // JavaScript script name or url. Functions []*FunctionCoverage `json:"functions"` // Functions contained in the script that has coverage data. } + +// TypeObject describes a type collected during runtime. +type TypeObject struct { + Name string `json:"name"` // Name of a type collected with type profiling. +} + +// TypeProfileEntry source offset and types for a parameter or return value. +type TypeProfileEntry struct { + Offset int64 `json:"offset"` // Source offset of the parameter or end of function for return values. + Types []*TypeObject `json:"types"` // The types for this parameter or return value. +} + +// ScriptTypeProfile type profile data collected during runtime for a +// JavaScript script. +type ScriptTypeProfile struct { + ScriptID runtime.ScriptID `json:"scriptId"` // JavaScript script id. + URL string `json:"url"` // JavaScript script name or url. + Entries []*TypeProfileEntry `json:"entries"` // Type profile entries for parameters and return values of the functions in the script. +} diff --git a/cdp/serviceworker/easyjson.go b/cdp/serviceworker/easyjson.go index 8951b25..d259a97 100644 --- a/cdp/serviceworker/easyjson.go +++ b/cdp/serviceworker/easyjson.go @@ -390,7 +390,66 @@ func (v *StopWorkerParams) UnmarshalJSON(data []byte) error { func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexer, out *StartWorkerParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexer, out *StopAllWorkersParams) { + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(out *jwriter.Writer, in StopAllWorkersParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StopAllWorkersParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopAllWorkersParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopAllWorkersParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopAllWorkersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexer, out *StartWorkerParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -421,7 +480,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(out *jwriter.Writer, in StartWorkerParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Writer, in StartWorkerParams) { out.RawByte('{') first := true _ = first @@ -437,27 +496,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v StartWorkerParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StartWorkerParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexer, out *SkipWaitingParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexer, out *SkipWaitingParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -488,7 +547,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Writer, in SkipWaitingParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Writer, in SkipWaitingParams) { out.RawByte('{') first := true _ = first @@ -504,27 +563,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v SkipWaitingParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexer, out *SetForceUpdateOnPageLoadParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(in *jlexer.Lexer, out *SetForceUpdateOnPageLoadParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -555,7 +614,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Writer, in SetForceUpdateOnPageLoadParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Writer, in SetForceUpdateOnPageLoadParams) { out.RawByte('{') first := true _ = first @@ -571,27 +630,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(in *jlexer.Lexer, out *Registration) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(in *jlexer.Lexer, out *Registration) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -626,7 +685,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Writer, in Registration) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Writer, in Registration) { out.RawByte('{') first := true _ = first @@ -654,27 +713,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v Registration) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Registration) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Registration) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Registration) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(in *jlexer.Lexer, out *InspectWorkerParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(in *jlexer.Lexer, out *InspectWorkerParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -705,7 +764,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Writer, in InspectWorkerParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Writer, in InspectWorkerParams) { out.RawByte('{') first := true _ = first @@ -721,27 +780,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v InspectWorkerParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(in *jlexer.Lexer, out *EventWorkerVersionUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(in *jlexer.Lexer, out *EventWorkerVersionUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -801,7 +860,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Writer, in EventWorkerVersionUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.Writer, in EventWorkerVersionUpdated) { out.RawByte('{') first := true _ = first @@ -832,27 +891,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v EventWorkerVersionUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWorkerVersionUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWorkerVersionUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWorkerVersionUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(in *jlexer.Lexer, out *EventWorkerRegistrationUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(in *jlexer.Lexer, out *EventWorkerRegistrationUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -912,7 +971,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(in *jlexer.Lex in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.Writer, in EventWorkerRegistrationUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.Writer, in EventWorkerRegistrationUpdated) { out.RawByte('{') first := true _ = first @@ -943,27 +1002,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v EventWorkerRegistrationUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWorkerRegistrationUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWorkerRegistrationUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWorkerRegistrationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(in *jlexer.Lexer, out *EventWorkerErrorReported) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(in *jlexer.Lexer, out *EventWorkerErrorReported) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1002,7 +1061,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(in *jlexer.Lex in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.Writer, in EventWorkerErrorReported) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.Writer, in EventWorkerErrorReported) { out.RawByte('{') first := true _ = first @@ -1022,27 +1081,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v EventWorkerErrorReported) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWorkerErrorReported) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWorkerErrorReported) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWorkerErrorReported) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(in *jlexer.Lexer, out *ErrorMessage) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(in *jlexer.Lexer, out *ErrorMessage) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1083,7 +1142,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(in *jlexer.Lex in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.Writer, in ErrorMessage) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.Writer, in ErrorMessage) { out.RawByte('{') first := true _ = first @@ -1129,27 +1188,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v ErrorMessage) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ErrorMessage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ErrorMessage) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ErrorMessage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1178,7 +1237,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(in *jlexer.Lex in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -1188,27 +1247,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(in *jlexer.Lexer, out *DispatchSyncEventParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(in *jlexer.Lexer, out *DispatchSyncEventParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1245,7 +1304,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(in *jlexer.Lex in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(out *jwriter.Writer, in DispatchSyncEventParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(out *jwriter.Writer, in DispatchSyncEventParams) { out.RawByte('{') first := true _ = first @@ -1279,27 +1338,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v DispatchSyncEventParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1328,7 +1387,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(in *jlexer.Lex in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -1338,27 +1397,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lexer, out *DeliverPushMessageParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker17(in *jlexer.Lexer, out *DeliverPushMessageParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1393,7 +1452,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lex in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(out *jwriter.Writer, in DeliverPushMessageParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker17(out *jwriter.Writer, in DeliverPushMessageParams) { out.RawByte('{') first := true _ = first @@ -1421,23 +1480,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker17(l, v) } diff --git a/cdp/serviceworker/serviceworker.go b/cdp/serviceworker/serviceworker.go index 5780f23..a9ccb28 100644 --- a/cdp/serviceworker/serviceworker.go +++ b/cdp/serviceworker/serviceworker.go @@ -145,6 +145,20 @@ func (p *StopWorkerParams) Do(ctxt context.Context, h cdp.Handler) (err error) { return h.Execute(ctxt, cdp.CommandServiceWorkerStopWorker, p, nil) } +// StopAllWorkersParams [no description]. +type StopAllWorkersParams struct{} + +// StopAllWorkers [no description]. +func StopAllWorkers() *StopAllWorkersParams { + return &StopAllWorkersParams{} +} + +// Do executes ServiceWorker.stopAllWorkers against the provided context and +// target handler. +func (p *StopAllWorkersParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandServiceWorkerStopAllWorkers, nil, nil) +} + // InspectWorkerParams [no description]. type InspectWorkerParams struct { VersionID string `json:"versionId"` diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 982ebeb..d090a43 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -936,31 +936,31 @@ "name": "scale", "type": "number", "optional": true, - "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." + "description": "Scale to apply to resulting view image." }, { "name": "screenWidth", "type": "integer", "optional": true, - "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." + "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000)." }, { "name": "screenHeight", "type": "integer", "optional": true, - "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." + "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000)." }, { "name": "positionX", "type": "integer", "optional": true, - "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." + "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000)." }, { "name": "positionY", "type": "integer", "optional": true, - "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." + "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000)." }, { "name": "dontSetVisibleSize", @@ -2070,35 +2070,35 @@ "name": "scale", "type": "number", "optional": true, - "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." + "description": "Scale to apply to resulting view image." }, { "name": "screenWidth", "type": "integer", "optional": true, "experimental": true, - "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." + "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000)." }, { "name": "screenHeight", "type": "integer", "optional": true, "experimental": true, - "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." + "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000)." }, { "name": "positionX", "type": "integer", "optional": true, "experimental": true, - "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." + "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000)." }, { "name": "positionY", "type": "integer", "optional": true, "experimental": true, - "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." + "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000)." }, { "name": "dontSetVisibleSize", @@ -2286,6 +2286,18 @@ ], "experimental": true }, + { + "name": "setNavigatorOverrides", + "description": "Overrides value returned by the javascript navigator object.", + "parameters": [ + { + "name": "platform", + "type": "string", + "description": "The platform navigator.platform should return." + } + ], + "experimental": true + }, { "name": "setDefaultBackgroundColorOverride", "description": "Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.", @@ -2667,7 +2679,7 @@ "wimax", "other" ], - "description": "Loading priority of a resource request." + "description": "The underlying connection technology that the browser is supposedly using." }, { "id": "CookieSameSite", @@ -3719,17 +3731,17 @@ { "name": "latency", "type": "number", - "description": "Additional latency (ms)." + "description": "Minimum latency from request sent to response headers received (ms)." }, { "name": "downloadThroughput", "type": "number", - "description": "Maximal aggregated download throughput." + "description": "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling." }, { "name": "uploadThroughput", "type": "number", - "description": "Maximal aggregated upload throughput." + "description": "Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling." }, { "name": "connectionType", @@ -9142,6 +9154,9 @@ } ] }, + { + "name": "stopAllWorkers" + }, { "name": "inspectWorker", "parameters": [ @@ -9245,25 +9260,25 @@ "properties": [ { "name": "x", - "type": "integer", + "type": "number", "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels." }, { "name": "y", - "type": "integer", + "type": "number", "description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport." }, { "name": "radiusX", - "type": "integer", + "type": "number", "optional": true, - "description": "X radius of the touch area (default: 1)." + "description": "X radius of the touch area (default: 1.0)." }, { "name": "radiusY", - "type": "integer", + "type": "number", "optional": true, - "description": "Y radius of the touch area (default: 1)." + "description": "Y radius of the touch area (default: 1.0)." }, { "name": "rotationAngle", @@ -12950,6 +12965,11 @@ "$ref": "Location", "description": "Location in the source code." }, + { + "name": "url", + "type": "string", + "description": "JavaScript script name or url." + }, { "name": "scopeChain", "type": "array", @@ -14101,6 +14121,66 @@ } ], "experimental": true + }, + { + "id": "TypeObject", + "type": "object", + "description": "Describes a type collected during runtime.", + "properties": [ + { + "name": "name", + "type": "string", + "description": "Name of a type collected with type profiling." + } + ], + "experimental": true + }, + { + "id": "TypeProfileEntry", + "type": "object", + "description": "Source offset and types for a parameter or return value.", + "properties": [ + { + "name": "offset", + "type": "integer", + "description": "Source offset of the parameter or end of function for return values." + }, + { + "name": "types", + "type": "array", + "items": { + "$ref": "TypeObject" + }, + "description": "The types for this parameter or return value." + } + ], + "experimental": true + }, + { + "id": "ScriptTypeProfile", + "type": "object", + "description": "Type profile data collected during runtime for a JavaScript script.", + "properties": [ + { + "name": "scriptId", + "$ref": "Runtime.ScriptId", + "description": "JavaScript script id." + }, + { + "name": "url", + "type": "string", + "description": "JavaScript script name or url." + }, + { + "name": "entries", + "type": "array", + "items": { + "$ref": "TypeProfileEntry" + }, + "description": "Type profile entries for parameters and return values of the functions in the script." + } + ], + "experimental": true } ], "commands": [ @@ -14187,6 +14267,31 @@ ], "description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.", "experimental": true + }, + { + "name": "startTypeProfile", + "description": "Enable type profile.", + "experimental": true + }, + { + "name": "stopTypeProfile", + "description": "Disable type profile. Disabling releases type profile data collected so far.", + "experimental": true + }, + { + "name": "takeTypeProfile", + "returns": [ + { + "name": "result", + "type": "array", + "items": { + "$ref": "ScriptTypeProfile" + }, + "description": "Type profile for all scripts since startTypeProfile() was turned on." + } + ], + "description": "Collect type profile.", + "experimental": true } ], "events": [